/* --------------------------------------------------------------------------
   Event Day Guide, FAQs & Rules (includes/rules-faq-new.php) - on top of the
   .rf* rules in css/forms.css, through the same --nf-* colours.
   -------------------------------------------------------------------------- */

/* The venue update banner across the top (rules.php), the whole picture at
   full width - its words are in it - with the guide starting under it */
.rg-banner { display: block; max-width: 1920px; margin: 0 auto; }
.rg-banner img { display: block; width: 100%; height: auto; }

/* A longer title than "Rules & FAQ": a size that still fits a phone */
.rg-title { font-size: clamp(42px, 9.4vw, 92px); line-height: 1; }
.rg-title em { font-style: italic; color: var(--nf-accent-hi); }
.rg-intro { padding-bottom: 28px; }

/* Quick information */
.rg {
  position: relative; overflow: hidden;
  margin-bottom: 28px; padding: 26px 18px 22px;
  border: 1px solid var(--nf-accent); border-radius: var(--nf-radius);
  background:
    radial-gradient(90% 260px at 100% 0, rgba(216, 180, 106, .2), transparent 70%),
    radial-gradient(70% 220px at 0 100%, rgba(216, 180, 106, .08), transparent 70%),
    var(--coal, #0d0b08);
  animation: rf-in .8s .12s cubic-bezier(.2, .75, .2, 1) both;
}
.rg__flag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--nf-accent); border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--nf-on-accent); background: var(--nf-accent-hi);
}
.rg__flag i { width: 7px; height: 7px; border-radius: 50%; background: var(--nf-on-accent); animation: rg-pulse 1.8s ease-in-out infinite; }
@keyframes rg-pulse { 50% { opacity: .25; } }
.rg__title { margin-top: 16px; font-family: var(--nf-display); font-size: clamp(32px, 7vw, 56px); font-weight: 400; line-height: 1.02; color: var(--nf-text); }
.rg__title em { font-style: italic; color: var(--nf-accent-hi); }
.rg__text { margin-top: 12px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--nf-muted); }

.rg__grid { display: grid; gap: 10px; margin-top: 24px; }
.rg-card {
  padding: 18px 18px 18px;
  border: 1px solid var(--nf-line-soft); border-radius: var(--nf-field-radius);
  background: rgba(255, 244, 210, .025);
}
.rg-card__label { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--nf-accent); }
.rg-card__big { margin-top: 6px; font-family: var(--nf-display); font-size: clamp(24px, 5.4vw, 30px); line-height: 1.12; color: var(--nf-text); }
.rg-card__small { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--nf-muted); }
.rg-card--venue { border-color: var(--nf-line); background: rgba(216, 180, 106, .06); }
.rg-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.rg-card__actions .btn i { font-style: normal; }

/* The map at the bottom of the venue card: opens Google Maps */
.rg-map {
  position: relative; display: block; overflow: hidden;
  margin-top: 18px; border: 1px solid var(--nf-line); border-radius: 12px;
  background: #e8e6e1;
}
.rf a.rg-map, .rf a.rg-pill { text-decoration: none; }
.rg-map img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .75, .2, 1); }
.rg-map:hover img { transform: scale(1.03); }
.rg-map span {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: 999px; background: rgba(5, 5, 5, .82);
  font-size: 12px; font-weight: 600; color: var(--nf-accent-hi);
}
.rg-map span i { font-style: normal; }

.rg-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--nf-line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--nf-accent-hi);
  transition: border-color .3s, background-color .3s;
}
a.rg-pill:hover { border-color: var(--nf-accent); background: rgba(216, 180, 106, .08); }
.rg-pill i { font-style: normal; }
.rg-pill.is-soon, .rg-link.is-soon { color: var(--nf-muted); border-style: dashed; cursor: default; }
.rg-pill small, .rg-link small {
  padding: 2px 8px; border-radius: 999px; background: rgba(216, 180, 106, .14);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nf-accent);
}

.rg__note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 14px; padding: 14px 16px;
  border: 1px dashed var(--nf-line); border-radius: var(--nf-field-radius);
  font-size: 14.5px; line-height: 1.5; color: var(--nf-muted);
}
.rg__note::before { content: "P"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--nf-accent); border-radius: 5px; font: 700 12px var(--nf-sans); color: var(--nf-accent); }
.rg__note b { color: var(--nf-text); font-weight: 600; }

/* Answers made of several paragraphs, a link or a short list */
.rf-q__a { padding: 0 44px 22px 34px; display: grid; gap: 10px; }
.rf-q__a p { padding: 0; }
.rf-q[open] .rf-q__a { animation: rf-in .45s cubic-bezier(.2, .75, .2, 1); }
.rf-q[open] .rf-q__a p { animation: none; }
.rg-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rf a.rg-link { text-decoration: none; color: var(--nf-accent-hi); }
.rf a.rg-link:hover { text-decoration: underline; }
.rg-link i { font-style: normal; }
.rg-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0; padding: 0; list-style: none; }
.rg-list li { padding: 7px 14px; border: 1px solid var(--nf-line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--nf-text); }

/* Sign-off */
.rg-end .rf-end__title { font-size: clamp(22px, 4.2vw, 30px); max-width: 640px; }
.rg-end .rf-end__title em { font-style: italic; color: var(--nf-accent-hi); }
.rg-end__sign { margin-top: 10px; font-family: var(--nf-display); font-style: italic; font-size: 20px; color: var(--nf-accent); }
.rg-end .btn i { font-style: normal; }

/* The TOC's top-level links: three now, the rules group last */
.rf-toc > ol > li:not(.rf-toc__group) > a { font-weight: 600; }

@media (min-width: 640px) {
  .rg { padding: 36px 36px 30px; }
  .rg__grid { grid-template-columns: repeat(2, 1fr); }
  .rg-card--venue { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  /* the venue card, with its map, fills the right half; the rest sit beside it */
  .rg__grid { grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-areas: "date time venue venue" "g1 g2 venue venue"; }
  .rg__grid > :nth-child(1) { grid-area: date; }
  .rg__grid > :nth-child(2) { grid-area: time; }
  .rg-card--venue { grid-area: venue; }
  .rg__grid > :nth-child(4) { grid-area: g1; }
  .rg__grid > :nth-child(5) { grid-area: g2; }
  .rg-card { padding: 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rg, .rf-q[open] .rf-q__a { animation: none; }
  .rg__flag i { animation: none; }
}
