/* ==========================================================================
   Champs '26 - Australian National Championships, white design.
   Loaded after app.css on /australian-national-championships only
   ($page_css). Everything new is prefixed nx-; the few shared pieces the
   page still uses (header, .container, .reveal, countdown JS, .mobile-cta)
   are re-skinned here under body.nx so no other page is touched.

   Flat colour, clean white panels with soft corners, price tables and
   ruled lists rather than icon-tile cards, and icons only where they carry
   meaning (inside buttons). Modern without the template tells.
   ========================================================================== */

body.nx {
  --paper: #ffffff;
  --paper-2: #f4f4f5;
  --ink: #141414;
  --text: #141414;
  --muted: #55555c;
  --faint: #86868d;
  --line: #e4e4e7;
  --line-strong: #141414;
  --red: #d4112c;
  --red-dark: #a50d22;
  --subnav-h: 54px;
  --r: 16px;
  --r-sm: 10px;

  background: var(--paper);
  color: var(--text);
}
html:has(body.nx) { scroll-padding-top: calc(var(--subnav-h, 52px) + 20px); }
body.nx ::selection { background: var(--red); color: #fff; }
body.nx :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* Header sits on the page (not fixed) so the section nav owns the top edge.
   The full GKR lockup reads properly on white. */
body.nx .site-header {
  position: absolute;
  background: transparent;
  border: 0;
  transform: none !important;
}
body.nx .site-header.is-solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.nx .brand-mark { width: auto; height: 36px; border-radius: 0; }
body.nx .brand-mark img { height: 36px; }
body.nx .brand-text { display: none; }

/* Quieter reveal: a short fade and a small rise. */
body.nx .reveal { transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s var(--ease); }
body.nx .reveal.is-in { transform: none; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.nx h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--ink);
}
.nx h2 em { font-style: normal; color: var(--red); }
.nx h3 {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.nx p { color: var(--muted); }
.nx strong, .nx b { color: var(--ink); }
.nx-section p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nx-muted { color: var(--muted); }
.nx-center { text-align: center; }
.nx-lead { font-size: 1.08rem; line-height: 1.65; }
.nx-fine { font-size: 0.88rem; line-height: 1.6; }

.nx-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.nx-kicker--light { color: #fff; opacity: 0.85; }

/* --------------------------------------------------------------------------
   Buttons: flat, square-ish, no glow.
   -------------------------------------------------------------------------- */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nx-btn svg { width: 16px; height: 16px; flex: none; }

.nx-btn--red { background: var(--red); color: #fff; }
.nx-btn--red:hover { background: var(--red-dark); }
.nx-btn--ink { background: var(--ink); color: #fff; }
.nx-btn--ink:hover { background: #333; }
.nx-btn--line { background: var(--paper); color: var(--ink); border-color: #d4d4d8; }
.nx-btn--line:hover { border-color: var(--ink); }
.nx-btn--white { background: #fff; color: var(--red); }
.nx-btn--white:hover { background: var(--ink); color: #fff; }
.nx-btn--outline-light { color: #fff; border-color: #fff; }
.nx-btn--outline-light:hover { background: #fff; color: var(--red); }

.nx-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nx-actions--center { display: flex; flex-wrap: wrap; justify-content: center; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.nx-hero {
  padding: calc(var(--header-h) + clamp(16px, 2.5vw, 36px)) 0 clamp(40px, 5vw, 64px);
  background: var(--paper);
}
.nx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.nx-title {
  margin-top: 10px;
  font-size: clamp(4.2rem, 11vw, 8.6rem);
  line-height: 0.85;
  color: var(--ink);
}
.nx-title em { font-style: normal; color: var(--red); }
.nx-sub {
  margin: 10px 0 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  color: var(--ink);
}

.nx-facts { margin: clamp(22px, 2.6vw, 30px) 0 0; border-top: 1px solid var(--line); }
.nx-facts > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nx-facts dt { font-size: 0.9rem; color: var(--faint); }
.nx-facts dd { margin: 0; font-weight: 700; color: var(--ink); }

.nx-count { margin-top: 14px; }
.nx-count p { margin: 0; font-size: 0.95rem; }
.nx-count b { color: var(--red); font-variant-numeric: tabular-nums; }

.nx-closed {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #fdecee;
}

.nx-hero .nx-actions { margin-top: 24px; }

.nx-hero-photo { margin: 0; }
.nx-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 20px;
}
.nx-hero-photo figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Section nav: plain text links, the current one underlined in red.
   -------------------------------------------------------------------------- */
.nx-subnav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nx-subnav ul {
  display: flex;
  gap: 26px;
  height: var(--subnav-h);
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nx-subnav ul::-webkit-scrollbar { display: none; }
.nx .nx-subnav a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.nx .nx-subnav a:hover { color: var(--ink); }
.nx .nx-subnav a.is-on { color: var(--ink); border-bottom-color: var(--red); }

/* --------------------------------------------------------------------------
   Sections + heads
   -------------------------------------------------------------------------- */
.nx-section { padding: clamp(56px, 7vw, 96px) 0; background: var(--paper); }
.nx-section--tint { background: var(--paper-2); }

.nx-intro { padding-top: clamp(44px, 5vw, 72px); padding-bottom: clamp(44px, 5vw, 72px); }
.nx .nx-intro-big {
  max-width: 30ch;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}
.nx-intro-small { max-width: 64ch; margin-top: 16px; font-size: 1.02rem; line-height: 1.7; }

.nx-head { max-width: 780px; margin-bottom: clamp(26px, 3vw, 40px); }
.nx-head p { margin-top: 12px; font-size: 1.04rem; line-height: 1.7; max-width: 62ch; }

.nx-h3 { font-size: clamp(1.4rem, 2vw, 1.8rem) !important; margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Panels: white, soft corners, a hairline border on white sections.
   -------------------------------------------------------------------------- */
.nx-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.nx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }

.nx-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.nx-section--tint .nx-card { border-color: transparent; }
.nx-card p { margin: 0; font-size: 0.96rem; line-height: 1.65; }
.nx-card .nx-card-sub { margin-top: 12px; }
.nx-card .nx-btn { align-self: flex-start; margin-top: auto; }
.nx-card--hot { border-color: var(--red) !important; box-shadow: inset 0 3px 0 var(--red); }

/* Price tables */
.nx-rows { list-style: none; margin: 4px 0 0; padding: 0; }
.nx-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.nx-rows li:last-child { border-bottom: 0; }
/* Two prices under one heading: no rule between the pair */
.nx-rows li.is-joined { border-bottom: 0; padding-bottom: 3px; }
.nx-rows li.is-joined + li { padding-top: 3px; }
.nx-rows span { font-weight: 600; color: var(--ink); display: grid; gap: 1px; }
.nx-rows small { font-weight: 400; font-size: 0.82rem; color: var(--faint); }
.nx-rows b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.nx-rows .nx-rows-word { font-size: 1.1rem; letter-spacing: 0.03em; }
.nx-price .nx-fine { margin-top: 6px; }

/* Two-column split used by the kata requirements and the FAQ */
.nx-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.nx-split--reqs { margin-top: clamp(44px, 5vw, 68px); }

/* Accordion: ruled list, + and - drawn in CSS */
.nx-acc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.nx-section--tint .nx-acc { border-color: transparent; }
.nx-acc details + details { border-top: 1px solid var(--line); }
.nx-acc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.nx-acc summary::-webkit-details-marker { display: none; }
/* The + / - are two CSS bars rather than text glyphs, so they sit dead
   centre in the circle whatever the font's metrics. */
.nx-acc summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--red), var(--red)) center / 12px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 12px no-repeat,
    var(--paper-2);
}
.nx-acc details[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    var(--red);
}
.nx-acc summary:hover span { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.nx-acc details > div { padding: 0 64px 18px 20px; }
.nx-acc details > div p { font-size: 0.96rem; line-height: 1.7; margin: 0 0 0.7em; }
.nx-acc details > div p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Tee
   -------------------------------------------------------------------------- */
.nx-tee {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.nx-tee-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-tee-shots img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: 14px; }
.nx-tee-shots .nx-tee-main { grid-column: 1 / -1; border-radius: 20px; }
.nx-tee-copy { display: grid; gap: 12px; }
.nx-tee-copy .nx-card { margin-top: 12px; }

/* --------------------------------------------------------------------------
   After party: the page's one solid red block
   -------------------------------------------------------------------------- */
.nx-party {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 60px);
  background: var(--red);
  border-radius: 24px;
  color: #fff;
}
.nx-party-head { display: grid; gap: 10px; max-width: 760px; }
.nx-party-when {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.nx .nx-party h2 { color: #fff; font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.nx .nx-party p { color: #fff; }
.nx .nx-party strong { color: #fff; }
.nx .nx-party h3 { color: #fff; margin-bottom: 8px; }
.nx-party-head p { font-size: 1.06rem; line-height: 1.65; }
.nx-party-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid #fff;
}
.nx-party-grid > div { padding: 18px 24px 0 0; }
.nx-party-grid > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.4); }
.nx-party-grid p { font-size: 0.95rem; line-height: 1.6; margin: 0 0 0.6em; opacity: 0.95; }
.nx-party .nx-btn { justify-self: start; }

/* --------------------------------------------------------------------------
   Location
   -------------------------------------------------------------------------- */
.nx-venue {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: stretch;
}
.nx-map { min-height: 420px; background: #e5e5e5; border-radius: var(--r); overflow: hidden; }
.nx-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.nx-venue-side { display: grid; gap: 22px; align-content: start; }
.nx-venue-card address { font-style: normal; color: var(--muted); }
.nx-travel { display: grid; }
.nx-travel > div { padding: 14px 0; border-top: 1px solid var(--line); }
.nx-travel > div:first-child { border-top: 0; padding-top: 0; }
.nx-travel h4 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.nx-travel p { font-size: 0.94rem; line-height: 1.6; margin: 0; }

/* --------------------------------------------------------------------------
   Run sheet: a timetable, times down the left
   -------------------------------------------------------------------------- */
.nx-run { margin: 0; padding: 4px 28px; list-style: none; max-width: 860px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.nx-run li {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.nx-run li:last-child { border-bottom: 0; }
.nx-run-time {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--red);
}
.nx-run b { font-size: 1.08rem; }
.nx-run p { margin: 2px 0 0; font-size: 0.95rem; line-height: 1.55; }

.nx-note { margin-top: 16px; color: var(--muted); font-size: 0.94rem; }
.nx-note--box { padding: 16px 20px; border-radius: var(--r-sm); background: var(--paper); }
.nx-note--box p { margin: 0 0 0.4em; }

/* --------------------------------------------------------------------------
   Safety gear: a two-column list, item and requirement
   -------------------------------------------------------------------------- */
.nx-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 4px 28px 0;
  list-style: none;
  background: var(--paper);
  border-radius: var(--r);
  overflow: hidden;
}
.nx-checks li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.nx-checks li, .nx-bring li { margin-bottom: -1px; }
.nx-checks b { font-size: 1rem; }
.nx-checks span { font-size: 0.94rem; line-height: 1.5; color: var(--muted); }

.nx-warn {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  background: #fdecee;
}
.nx-warn p { margin: 0; color: var(--ink); line-height: 1.6; }
.nx-warn b { color: var(--red); }

/* --------------------------------------------------------------------------
   Rules
   -------------------------------------------------------------------------- */
.nx-rule-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}
.nx-card--hot .nx-rule-num { color: var(--red); }

/* --------------------------------------------------------------------------
   What to bring: a packing checklist with boxes to tick
   -------------------------------------------------------------------------- */
.nx-bring {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 4px 28px 0;
  list-style: none;
  background: var(--paper);
  border-radius: var(--r);
  overflow: hidden;
}
.nx-bring li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.nx-box { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid #a1a1aa; border-radius: 5px; }
.nx-bring + .nx-note--box { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.nx-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 10px;
}
.nx-gallery figure { margin: 0; grid-row: span 2; overflow: hidden; border-radius: 14px; }
.nx-gallery figure.is-wide { grid-column: span 2; }
.nx-gallery img { width: 100%; height: 100%; object-fit: cover; }
#gallery .nx-fine { margin-top: 12px; text-align: left; }
.nx-gallery-cta {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.nx .nx-gallery-cta b { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 0.95; text-transform: uppercase; color: #fff; }
.nx-gallery-cta span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.nx-gallery-cta .nx-btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.nx-faq-side { display: grid; gap: 22px; position: sticky; top: calc(var(--subnav-h) + 24px); }
.nx-contact p { font-size: 0.95rem; }
.nx-mail {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--red);
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Closing band
   -------------------------------------------------------------------------- */
.nx-close { padding: clamp(56px, 7vw, 96px) 0; text-align: center; background: var(--red); color: #fff; }
.nx .nx-close h2 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 5.2rem); margin: 12px 0; }
.nx .nx-close p { color: #fff; max-width: 640px; margin: 0 auto 26px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Sticky mobile CTA, re-skinned white
   -------------------------------------------------------------------------- */
body.nx .mobile-cta {
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.25);
}
body.nx .mobile-cta .nx-btn { flex: 1; min-height: 46px; }
body.nx .mobile-cta .nx-btn--line { flex: 0 0 auto; padding: 0 16px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
}

@media (max-width: 900px) {
  .nx-hero-grid,
  .nx-tee,
  .nx-venue,
  .nx-split { grid-template-columns: 1fr; }
  .nx-hero-photo { order: -1; }
  .nx-hero-photo img { aspect-ratio: 16 / 10; }
  .nx-grid-3,
  .nx-party-grid,
  .nx-checks,
  .nx-bring { grid-template-columns: 1fr; }
  .nx-party-grid > div { padding: 16px 0; }
  .nx-party-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.4); }
  .nx-faq-side { position: static; }
  .nx-map, .nx-map iframe { min-height: 300px; }
  body.nx .mobile-cta { display: flex; }
}

@media (max-width: 640px) {
  .nx-grid-2 { grid-template-columns: 1fr; }
  .nx-actions { grid-template-columns: 1fr; }
  .nx-hero .nx-actions { grid-template-columns: 1fr 1fr; }
  .nx-hero .nx-actions .nx-btn { padding: 0 10px; font-size: 0.85rem; }
  .nx-hero .nx-actions .nx-btn--red,
  .nx-hero .nx-actions .nx-btn--ink { grid-column: 1 / -1; }
  .nx-facts > div { grid-template-columns: 110px 1fr; }
  .nx-run li { grid-template-columns: 96px 1fr; column-gap: 14px; }
  .nx-run-time { font-size: 1.7rem; }
  .nx-checks li { grid-template-columns: 1fr; gap: 2px; }
  .nx-gallery { grid-auto-rows: 130px; }
  .nx-party { border-radius: 18px; }
  .nx-run, .nx-checks, .nx-bring { padding-inline: 18px; }
  .nx-acc details > div { padding-right: 20px; }
  .nx-card .nx-btn, .nx-party .nx-btn { align-self: stretch; justify-self: stretch; }
}
