@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap");
/* ==========================================================================
   Nepal Film and Cultural Academy — shared stylesheet
   Design tokens first. Swap these values to re-skin the entire site.
   ========================================================================== */

:root {
  /* --- Colour ----------------------------------------------------------- */
  --color-bg:            #ffffff;
  --color-bg-alt:        #f9fafb;
  --color-surface:       #ffffff;
  --color-surface-2:     #f3f4f6;
  --color-line:          #d1d5db;
  --color-line-strong:   #8a919e;

  --color-text:          #050f1a;
  --color-text-muted:    #5b616e;
  --color-text-dim:      #5b616e;

  --color-accent:        #0052ff;
  --color-accent-hover:  #003ecb;
  --color-accent-soft:   rgba(0, 82, 255, 0.10);
  --color-accent-line:   rgba(0, 82, 255, 0.25);

  --color-red:           #df2935;
  --color-red-soft:      rgba(223, 41, 53, 0.10);
  --color-red-line:      rgba(223, 41, 53, 0.30);

  --color-orange:        #e2721f;
  --color-orange-soft:   rgba(226, 114, 31, 0.12);
  --color-orange-line:   rgba(226, 114, 31, 0.32);

  --color-focus:         #0052ff;

  /* Per-page accent hook: set a theme class on <body>. */
  --accent:              var(--color-accent);
  --accent-hover:        var(--color-accent-hover);
  --accent-soft:         var(--color-accent-soft);
  --accent-line:         var(--color-accent-line);
  --accent-fg:           #ffffff;

  /* --- Typography ------------------------------------------------------- */
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3rem;
  --text-5xl:  4rem;

  --leading-tight: 1.2;
  --leading-snug:  1.3;
  --leading-body:  1.5;

  --tracking-mono: 0.06em;
  --tracking-tight: -0.02em;

  /* --- Spacing ---------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-y: 2.75rem;
  --gutter: var(--space-5);
  --max-width: 1240px;
  --max-width-text: 68ch;

  /* --- Radius & lines --------------------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --border-hairline: 1px solid var(--color-line);
  --shadow-1: 0 1px 3px rgba(5, 15, 26, 0.06);
}

@media (min-width: 768px) {
  :root { --section-y: 3.5rem; --gutter: var(--space-7); }
}
@media (min-width: 1100px) {
  :root { --section-y: 4.5rem; --text-4xl: 3.75rem; --text-5xl: 5rem; }
}

/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

hr {
  border: 0;
  border-top: var(--border-hairline);
  margin: var(--space-6) 0;
}

::selection { background: var(--accent-soft); color: var(--color-text); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-fg);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); text-decoration: none; }

/* Page-builder bridge: builder containers carry the design classes below, so
   their own defaults are stripped here — declared early so the design wins. */
.nfca-c { display: block; width: auto; max-width: none; padding: 0; margin: 0; gap: 0; border: 0; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--space-6); }
.section--alt { background: var(--color-bg-alt); }
.section--line { border-top: var(--border-hairline); }

/* White sections carry a right-side accent glow, matching the CTA band.
   Uses --accent-soft, so NIFF renders red and KHFF orange automatically.
   Applies to every page using .section, including future ones. */
.section:not(.section--alt) {
  background-image: radial-gradient(90% 140% at 85% 50%, var(--accent-soft), transparent 60%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-5);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-line);
}
.eyebrow--plain::after { display: none; }

.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-7);
    align-items: end;
  }
}

.h-display { font-size: var(--text-4xl); }
.h-1 { font-size: var(--text-3xl); }
.h-2 { font-size: var(--text-2xl); }
.h-3 { font-size: var(--text-xl); }
.h-4 { font-size: var(--text-lg); }

.lede {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: var(--max-width-text);
}
@media (min-width: 768px) { .lede { font-size: var(--text-lg); line-height: 1.5; } }

.muted { color: var(--color-text-muted); }
.dim   { color: var(--color-text-dim); font-size: var(--text-sm); }
.prose { max-width: var(--max-width-text); }
.prose p + p { margin-top: var(--space-4); }

.mono-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); text-decoration: none; }

.btn--ghost { background: transparent; color: var(--accent); border-color: var(--color-line); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: static;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: var(--border-hairline);
}
@media (min-width: 1000px) {
  .site-header { position: sticky; top: 0; }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  margin-right: auto;
}
.brand:hover { text-decoration: none; color: var(--color-text); }
.brand img { width: 134px; height: auto; }
@media (min-width: 700px)  { .brand img { width: 192px; } }
@media (min-width: 1000px) { .brand img { width: 240px; } }

.nav { width: 100%; order: 3; }
@media (min-width: 1000px) { .nav { width: auto; order: 0; } }

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
}
.nav-list > li { display: flex; align-items: center; }
.nav-list > li.has-sub { flex-wrap: wrap; align-items: center; gap: 0 var(--space-5); }
@media (min-width: 1000px) {
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2) var(--space-5);
  }
  .nav-list > li.has-sub { flex: 0 0 auto; }
}

.nav-link,
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-text);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: default;
}
.nav-link:hover { color: var(--color-text); text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: calc(var(--space-2) - 2px); }
.nav-link[aria-current="page"] { color: var(--accent); border-bottom: 3px solid var(--accent); padding-bottom: calc(var(--space-2) - 2px); }

.nav-parent { color: var(--color-text); }
.nav-parent--current { color: var(--accent); border-bottom: 3px solid var(--accent); padding-bottom: calc(var(--space-2) - 2px); }
.nav-parent:hover { color: var(--color-text); border-bottom: 3px solid var(--accent); padding-bottom: calc(var(--space-2) - 2px); }
.has-sub { position: relative; }

.subnav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
}
.subnav .nav-link { color: var(--color-text); }
.nav-full { display: none; }
.nav-short { display: inline; }
.subnav .nav-link::before { content: "\2014\00a0"; color: var(--color-line-strong); }

@media (min-width: 1000px) {
  .subnav {
    position: absolute;
    top: 100%;
    left: calc(var(--space-4) * -1);
    min-width: 260px;
    padding: var(--space-3) 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border: var(--border-hairline);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(5, 15, 26, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
  }
  .subnav .nav-link {
    padding: var(--space-2) var(--space-4);
    width: 100%;
    border-bottom: 0;
  }
  .subnav .nav-link::before { content: none; }
  .nav-full { display: inline; }
  .nav-short { display: none; }
  .subnav .nav-link { color: var(--color-text); }
  .subnav .nav-link:hover { background: var(--accent-soft); color: var(--accent); }
  .has-sub:hover .subnav,
  .has-sub:focus-within .subnav { opacity: 1; pointer-events: auto; }
}

.nav-cta { min-height: 44px; padding-inline: var(--space-5); font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-7) var(--space-7);
  border-bottom: var(--border-hairline);
  background:
    radial-gradient(120% 90% at 12% 0%, var(--accent-soft), transparent 62%),
    var(--color-bg);
}
@media (min-width: 900px) { .hero { padding-block: var(--space-8) var(--space-8); } }

.hero--crimson {
  background:
    radial-gradient(120% 90% at 12% 0%, var(--accent-soft), transparent 62%),
    var(--color-bg);
}

.hero-title { font-size: var(--text-4xl); margin-bottom: var(--space-5); }
.hero-title em { font-style: italic; color: var(--accent); }

.hero-grid { display: grid; gap: var(--space-5); }
@media (min-width: 950px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: var(--space-8);
    align-items: end;
  }
}

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  border-top: var(--border-hairline);
  padding-top: var(--space-5);
}
.hero-meta div {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-1);
}
.hero-meta strong { font-weight: 500; color: var(--color-text); }

/* Home hero over photograph — black scrim, blue accent retained */
.hero--photo {
  border-bottom: none;
  background-color: #000000;
  background-image:
    radial-gradient(120% 90% at 12% 0%, var(--accent-soft), transparent 62%),
    radial-gradient(120% 90% at 88% 0%, var(--accent-soft), transparent 62%),
    radial-gradient(120% 90% at 12% 100%, var(--accent-soft), transparent 62%),
    radial-gradient(120% 90% at 88% 100%, var(--accent-soft), transparent 62%),
    linear-gradient(95deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.90) 34%, rgba(0, 0, 0, 0.60) 52%, rgba(0, 0, 0, 0.18) 64%, rgba(0, 0, 0, 0) 74%),
    url("https://nfcacademy.org/wp-content/uploads/2026/08/nfca-chitlang-hero.jpg");
  background-size: cover;
  background-position: center, center, center, center, center, center 45%;
  background-repeat: no-repeat;
}
@media (min-width: 900px) { .hero--photo { padding-block: var(--space-9) var(--space-9); } }
.hero.hero--photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 64px);
}
@media (min-width: 1000px) { .hero.hero--photo { min-height: calc(100svh - 84px); } }

/* KHFF hero over photograph — black gradient, KHFF orange (#E2721F) accents */
.hero--photo-khff {
  border-bottom: none;
  background-color: #0b0a08;
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(226, 114, 31, 0.175), transparent 62%),
    radial-gradient(120% 90% at 88% 0%, rgba(226, 114, 31, 0.175), transparent 62%),
    radial-gradient(120% 90% at 12% 100%, rgba(226, 114, 31, 0.175), transparent 62%),
    radial-gradient(120% 90% at 88% 100%, rgba(226, 114, 31, 0.175), transparent 62%),
    linear-gradient(95deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.90) 34%, rgba(0, 0, 0, 0.60) 52%, rgba(0, 0, 0, 0.18) 64%, rgba(0, 0, 0, 0) 74%),
    url("https://nfcacademy.org/wp-content/uploads/2026/08/khff-audience.jpg");
  background-size: cover, cover, cover, cover, cover, 118% auto;
  background-position: center, center, center, center, center, 6% 22%;
  background-repeat: no-repeat;
}
.hero.hero--photo-khff {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 64px);
}
@media (min-width: 1000px) { .hero.hero--photo-khff { min-height: calc(100svh - 84px); } }

/* NIFF hero over photograph — black gradient, festival red accents */
.hero--photo-niff {
  border-bottom: none;
  background-color: #000000;
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(223, 41, 53, 0.175), transparent 62%),
    radial-gradient(120% 90% at 88% 0%, rgba(223, 41, 53, 0.175), transparent 62%),
    radial-gradient(120% 90% at 12% 100%, rgba(223, 41, 53, 0.175), transparent 62%),
    radial-gradient(120% 90% at 88% 100%, rgba(223, 41, 53, 0.175), transparent 62%),
    linear-gradient(95deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.90) 34%, rgba(0, 0, 0, 0.60) 52%, rgba(0, 0, 0, 0.18) 64%, rgba(0, 0, 0, 0) 74%),
    url("https://nfcacademy.org/wp-content/uploads/2026/08/niff-winners-2026.jpg");
  background-size: cover;
  background-position: center, center, center, center, center, center 25%;
  background-repeat: no-repeat;
}
.hero.hero--photo-niff {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 64px);
}
@media (min-width: 1000px) { .hero.hero--photo-niff { min-height: calc(100svh - 84px); } }
.hero--photo-niff .eyebrow { color: rgba(255, 255, 255, 0.70); }
.hero--photo-niff .eyebrow::after { background: rgba(255, 255, 255, 0.22); }
.hero--photo-niff .hero-title { color: #ffffff; }
.hero--photo-niff .lede { color: rgba(255, 255, 255, 0.82); }
.hero--photo-niff .hero-meta { border-top-color: rgba(255, 255, 255, 0.22); }
.hero--photo-niff .hero-meta div { color: rgba(255, 255, 255, 0.62); }
.hero--photo-niff .hero-meta strong { color: rgba(255, 255, 255, 0.92); }
.hero--photo-niff .btn--ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.42); }
.hero--photo-niff .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; color: #ffffff; }
.hero--photo-khff .eyebrow { color: rgba(237, 233, 227, 0.70); }
.hero--photo-khff .eyebrow::after { background: rgba(237, 233, 227, 0.22); }
.hero--photo-khff .hero-title { color: #ffffff; }
.hero--photo-khff .lede { color: rgba(237, 233, 227, 0.82); }
.hero--photo-khff .hero-meta { border-top-color: rgba(237, 233, 227, 0.22); }
.hero--photo-khff .hero-meta div { color: rgba(237, 233, 227, 0.62); }
.hero--photo-khff .hero-meta strong { color: rgba(255, 255, 255, 0.92); }
.hero--photo-khff .btn--ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.42); }
.hero--photo-khff .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; color: #ffffff; }
.hero--photo .eyebrow { color: rgba(255, 255, 255, 0.70); }
.hero--photo .eyebrow::after { background: rgba(255, 255, 255, 0.22); }
.hero--photo .hero-title { color: #ffffff; }
.hero--photo .lede { color: rgba(255, 255, 255, 0.82); }
.hero--photo .hero-meta { border-top-color: rgba(255, 255, 255, 0.22); }
.hero--photo .hero-meta div { color: rgba(255, 255, 255, 0.62); }
.hero--photo .hero-meta strong { color: rgba(255, 255, 255, 0.92); }
.hero--photo .btn--ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.42); }
.hero--photo .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; color: #ffffff; }

/* Page header (interior pages) — photograph, black gradient, blue corner accents.
   Applies to every page using .page-head, including future ones.
   NIFF and KHFF use .hero / .hero--crimson instead and are unaffected. */
.page-head {
  padding-block: var(--space-7);
  border-bottom: none;
  background-color: #000000;
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(0, 82, 255, 0.175), transparent 62%),
    radial-gradient(120% 90% at 88% 0%, rgba(0, 82, 255, 0.175), transparent 62%),
    radial-gradient(120% 90% at 12% 100%, rgba(0, 82, 255, 0.175), transparent 62%),
    radial-gradient(120% 90% at 88% 100%, rgba(0, 82, 255, 0.175), transparent 62%),
    linear-gradient(100deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 46%, rgba(0, 0, 0, 0.52) 100%),
    url("https://nfcacademy.org/wp-content/uploads/2026/08/nfca-chitlang-hero.jpg");
  background-size: cover;
  background-position: center, center, center, center, center, center 45%;
  background-repeat: no-repeat;
}
.page-head .h-display { margin-bottom: var(--space-5); color: #ffffff; }
.page-head .eyebrow { color: rgba(255, 255, 255, 0.70); }
.page-head .eyebrow::after { background: rgba(255, 255, 255, 0.22); }
.page-head .lede { color: rgba(255, 255, 255, 0.82); }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  background: var(--color-line);
  border-block: var(--border-hairline);
}
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 950px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { background: var(--color-surface); padding: var(--space-6) var(--space-5); }
.stat-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-3);
}
.stat-num small { font-size: 0.5em; color: var(--accent); vertical-align: super; }
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--color-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 140ms ease, background-color 140ms ease;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0; font-size: var(--text-lg); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.card-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--accent);
}

a.card { color: var(--color-text); }
a.card:hover { text-decoration: none; color: var(--color-text); background: var(--color-bg-alt); }
a.card .card-more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
  padding-top: var(--space-4);
}

/* Feature panels (two-up festival blocks) */
.feature {
  display: grid;
  gap: var(--space-5);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; align-items: stretch; }
}

/* Festival panels carry their own festival colour — NIFF red, KHFF orange. */
.feature--niff { border-color: var(--color-red); --accent: var(--color-red); --accent-hover: #b71f2a; }
.feature--khff { border-color: var(--color-orange); --accent: var(--color-orange); --accent-hover: #f5a11e; --accent-fg: #0b0a08; }
.feature--niff .btn:not(.btn--ghost),
.feature--khff .btn:not(.btn--ghost) { background: var(--accent); border-color: var(--accent); color: var(--accent-fg, #ffffff); }
.feature--niff .btn:not(.btn--ghost):hover,
.feature--khff .btn:not(.btn--ghost):hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.feature--niff .btn--ghost:hover,
.feature--khff .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.feature-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 900px) { .feature-body { padding: var(--space-7); } }
.feature-aside {
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border-top: var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .feature-aside { border-top: 0; border-left: var(--border-hairline); padding: var(--space-7); }
}

/* Film-frame placeholder block */
.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   Definition / spec lists
   -------------------------------------------------------------------------- */
.spec {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: var(--border-hairline);
}
.spec > div {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: var(--border-hairline);
}
@media (min-width: 620px) {
  .spec > div { grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-5); align-items: baseline; }
}
.spec dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.spec dd { margin: 0; color: var(--color-text); }

/* --------------------------------------------------------------------------
   Numbered ladder (strengths / objectives)
   -------------------------------------------------------------------------- */
.ladder { list-style: none; margin: 0; padding: 0; border-top: var(--border-hairline); }
.ladder > li {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-bottom: var(--border-hairline);
}
@media (min-width: 800px) {
  .ladder > li { grid-template-columns: 80px minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--space-6); align-items: start; }
}
.ladder-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--accent);
  padding-top: 0.35em;
}
.ladder h3 { margin: 0; font-size: var(--text-lg); }
.ladder p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   Process timeline
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline > li {
  position: relative;
  padding: 0 0 var(--space-6) var(--space-6);
  border-left: 1px solid var(--color-line);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -5px; top: 6px;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-2);
}
.timeline h3 { font-size: var(--text-md); margin-bottom: var(--space-2); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.timeline p { color: var(--color-text-muted); font-size: var(--text-sm); }

@media (min-width: 1000px) {
  .timeline--row { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .timeline--row > li { padding: var(--space-6) 0 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .timeline--row > li::before { left: 0; top: -5px; }
}
@media (min-width: 1000px) {
  .timeline--six { grid-template-columns: repeat(3, 1fr); gap: var(--space-6) var(--space-6); }
  .timeline--six > li { padding: var(--space-6) 0 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .timeline--six > li::before { left: 0; top: -5px; }
}

/* --------------------------------------------------------------------------
   Data tables
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: var(--border-hairline); border-radius: var(--radius-md); }

table.data {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
table.data caption {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
  border-bottom: var(--border-hairline);
}
table.data th,
table.data td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-hairline);
  vertical-align: top;
}
table.data thead th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
  background: var(--color-bg-alt);
}
table.data tbody th { font-weight: 500; color: var(--color-text); font-family: var(--font-body); }
table.data td { color: var(--color-text-muted); }
table.data tbody tr:hover td,
table.data tbody tr:hover th { background: var(--color-bg-alt); }
table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: 0; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--color-text); }

/* --------------------------------------------------------------------------
   Fee tiers
   -------------------------------------------------------------------------- */
.tier {
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.tier--highlight { border-color: var(--accent); background: var(--color-surface); box-shadow: var(--shadow-1); }
.tier h3 { margin: 0; font-size: var(--text-lg); }
.tier-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xl);
  color: var(--accent);
}
.tier-price small { font-size: var(--text-xs); letter-spacing: var(--tracking-mono); color: var(--color-text-dim); display: block; margin-top: var(--space-2); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.tier ul li { display: flex; justify-content: space-between; gap: var(--space-4); border-bottom: var(--border-hairline); padding-bottom: var(--space-2); }
.tier ul li:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Quotes
   -------------------------------------------------------------------------- */
.quote {
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}
.quote blockquote { margin: 0; font-size: var(--text-md); line-height: 1.5; }
.quote figcaption { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-text-dim); margin-top: auto; }
.quote figcaption strong { display: block; color: var(--accent); font-weight: 500; margin-bottom: var(--space-1); }

/* --------------------------------------------------------------------------
   Committee portraits
   -------------------------------------------------------------------------- */
.people { display: grid; gap: var(--space-5); }
@media (min-width: 620px)  { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(4, 1fr); } }

.person { display: flex; flex-direction: column; gap: var(--space-4); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-line-strong);
  letter-spacing: 0.02em;
}
.person h3 { margin: 0; font-size: var(--text-md); }
.person .role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Accordion (FAQ / rules)
   -------------------------------------------------------------------------- */
.accordion { border-top: var(--border-hairline); }
.accordion details { border-bottom: var(--border-hairline); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-md);
  color: var(--color-text);
  min-height: 44px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--accent);
  line-height: 1;
  flex: none;
}
.accordion details[open] summary::after { content: "–"; }
.accordion summary:hover { color: var(--accent); }
.accordion .answer { padding-bottom: var(--space-5); color: var(--color-text-muted); max-width: var(--max-width-text); }
.accordion .answer ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }

/* --------------------------------------------------------------------------
   Comparison table (two festivals)
   -------------------------------------------------------------------------- */
.compare th:first-child { width: 30%; }
.compare .col-a { color: var(--color-red); }
.compare .col-b { color: var(--color-orange); }

/* --------------------------------------------------------------------------
   Articles
   -------------------------------------------------------------------------- */
.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  padding: var(--space-6);
  color: var(--color-text);
  transition: border-color 140ms ease, background-color 140ms ease;
}
.article-card:hover { border-color: var(--accent); background: var(--color-bg-alt); text-decoration: none; color: var(--color-text); }
.article-card h3 { margin: 0; font-size: var(--text-lg); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .form-row--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: grid; gap: var(--space-2); }
.field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field .req { color: var(--accent); }
.field .hint { font-size: var(--text-xs); color: var(--color-text-dim); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-dim); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--color-line-strong); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.checkbox { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.checkbox input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); margin-top: 3px; flex: none; }

/* The live enquiry form. Same fields, same look; the plugin only supplies the
   markup, so every rule here mirrors the .field styles above. */
.nfca-form { margin: 0; }
.nfca-form .wpforms-form { display: grid; gap: var(--space-5); }
.nfca-form .wpforms-field-container { display: grid; gap: var(--space-5); }
.nfca-form .wpforms-field { display: grid; gap: var(--space-2); align-content: start; margin: 0; padding: 0; }
.nfca-form .wpforms-field-hp { display: none !important; }
@media (min-width: 700px) {
  .nfca-form .wpforms-field-container { grid-template-columns: repeat(2, 1fr); }
  .nfca-form .wpforms-field { grid-column: 1 / -1; }
  .nfca-form .wpforms-one-half { grid-column: span 1; }
}
.nfca-form .wpforms-field-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.nfca-form .wpforms-required-label { color: var(--accent); border: 0; text-decoration: none; }
.nfca-form .wpforms-field-description { font-size: var(--text-xs); color: var(--color-text-dim); }

.nfca-form input[type="text"],
.nfca-form input[type="email"],
.nfca-form input[type="tel"],
.nfca-form input[type="url"],
.nfca-form select,
.nfca-form textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.nfca-form textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.nfca-form input::placeholder,
.nfca-form textarea::placeholder { color: var(--color-text-dim); }
.nfca-form input:hover,
.nfca-form select:hover,
.nfca-form textarea:hover { border-color: var(--color-line-strong); }
.nfca-form input:focus-visible,
.nfca-form select:focus-visible,
.nfca-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.nfca-form .wpforms-field-checkbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.nfca-form .wpforms-field-checkbox li { display: flex; align-items: flex-start; gap: var(--space-3); }
.nfca-form .wpforms-field-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--accent);
  margin: 3px 0 0;
  flex: none;
}
.nfca-form .wpforms-field-label-inline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
}

.nfca-form .wpforms-submit-container { padding: 0; }
.nfca-form .wpforms-submit-spinner { display: none; }

.nfca-form label.wpforms-error,
.nfca-form em.wpforms-error {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-style: normal;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
}
.nfca-form input.wpforms-error,
.nfca-form select.wpforms-error,
.nfca-form textarea.wpforms-error { border-color: var(--accent); }

.wpforms-confirmation-container-full,
.nfca-form .wpforms-confirmation-container-full {
  margin: 0;
  padding: var(--space-5) var(--space-6);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--color-text);
}
.wpforms-confirmation-container-full p { margin: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(90% 140% at 85% 50%, var(--accent-soft), transparent 60%),
    var(--color-bg);
}
.cta-inner { display: grid; gap: var(--space-5); padding-block: var(--section-y); }
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid #000000; background: var(--color-bg); color: #000000; }
.site-footer .footer-heading,
.site-footer .footer-links a,
.site-footer .footer-contact,
.site-footer .footer-contact a,
.site-footer .social a,
.site-footer .footer-bottom,
.site-footer .footer-brand,
.site-footer .footer-brand p,
.site-footer p { color: #000000; }
.footer-grid { display: grid; gap: var(--space-7); padding-block: var(--space-8); }
@media (min-width: 800px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer-brand { display: grid; gap: var(--space-4); max-width: 40ch; }
.footer-brand img { width: 187px; }
.footer-brand p { font-size: 15px; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin: 0 0 var(--space-4);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer-links a { color: var(--color-text-muted); font-size: var(--text-sm); }
.footer-links a:hover { color: var(--accent); }

.footer-contact { display: grid; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); font-style: normal; }
.footer-contact a { color: var(--color-text-muted); }
.footer-contact a:hover { color: var(--accent); }

.social { display: flex; gap: var(--space-3); margin-top: var(--space-2); }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: var(--border-hairline);
  border-radius: 8px;
  color: var(--color-text-muted);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: var(--border-hairline);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   Page themes
   -------------------------------------------------------------------------- */
body.theme-red {
  --accent: var(--color-red);
  --accent-hover: #b71f2a;
  --accent-soft: var(--color-red-soft);
  --accent-line: var(--color-red-line);
  --accent-fg: #ffffff;
  --color-focus: var(--color-red);
}

/* KHFF — orange from the festival mark */
body.theme-orange {
  --accent: var(--color-orange);
  --accent-hover: #f5a11e;
  --accent-soft: var(--color-orange-soft);
  --accent-line: var(--color-orange-line);
  --accent-fg: #0b0a08;
  --color-focus: var(--color-orange);
}

/* Imported article media (posts published through WordPress) */
.feature-aside img.nfca-thumb { width: 100%; height: auto; display: block; border: var(--border-hairline); border-radius: var(--radius-md); }
.nfca-article img { max-width: 100%; height: auto; display: block; margin: var(--space-5) 0; }
.nfca-article figure { margin: var(--space-5) 0; }
.nfca-article figcaption { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-dim); }
.nfca-article iframe { max-width: 100%; }
.nfca-article .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); list-style: none; padding: 0; }
.nfca-article .wp-block-gallery figure { margin: 0; }

/* --------------------------------------------------------------------------
   Article rows — image left, headline and preview right
   -------------------------------------------------------------------------- */
.article-list { display: grid; border-top: var(--border-hairline); }

.article-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
  padding-block: var(--space-5);
  border-bottom: var(--border-hairline);
  color: var(--color-text);
  transition: background-color 140ms ease;
}
@media (min-width: 620px) {
  .article-row {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--space-6);
    align-items: center;
  }
}
.article-row:hover { text-decoration: none; color: var(--color-text); background: var(--color-bg-alt); }
.article-row:hover h3 { color: var(--accent); }

.article-row-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.article-row-media img { width: 100%; height: 100%; object-fit: cover; }

/* Articles with no image of their own still fill the frame: the academy
   emblem, centred and quiet, so the row keeps the same rhythm as the rest. */
.article-row-media--empty { display: grid; place-items: center; background: var(--color-bg-alt); }
.article-row-media--empty img { width: 42%; max-width: 150px; height: auto; object-fit: contain; opacity: 0.42; }
.article-row-media span {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.article-row h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.article-row p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.article-row .article-meta { margin-bottom: var(--space-2); }

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  flex: none;
  cursor: pointer;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  background: var(--color-bg);
}
.nav-btn .bars { display: block; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (min-width: 1000px) { .nav-btn { display: none; } }

@media (max-width: 999px) {
  .nav { display: none; border-top: var(--border-hairline); }
  .nav-toggle:checked ~ .nav { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li,
  .nav-list > li.has-sub { display: block; border-bottom: var(--border-hairline); }

  .nav-link,
  .nav-parent {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: var(--space-3) 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-mono);
    text-transform: uppercase;
    border-bottom: 0;
  }
  .nav-parent { color: var(--color-text-dim); min-height: 44px; }

  .subnav {
    flex-direction: column;
    gap: 0;
    margin: 0 0 var(--space-3);
    padding-left: var(--space-4);
    border-left: var(--border-hairline);
  }
  .subnav .nav-link { min-height: 44px; }
  .subnav .nav-link::before { content: none; }
  .nav-full { display: inline; }
  .nav-short { display: none; }

  .nav-cta { display: none; }
  .nav-toggle:checked ~ .nav-cta {
    display: inline-flex;
    order: 4;
    width: 100%;
    margin-bottom: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-mono);
    text-transform: uppercase;
  }
}
