/* Portal HSN 2026 — mobile-first. Colours only from tokens below, taken from the
   Hari Santri 2026 logo: teal ring (#007F80) + gold ring (#E0A020). */
:root {
  --teal-900: #00393D;
  --teal-800: #004F54;
  --teal-700: #006A70;   /* text-safe on white (6.4:1) */
  --teal-600: #007F80;   /* logo teal */
  --teal-500: #109090;
  --teal-100: #C7E8E6;
  --teal-50: #E8F6F5;
  --gold-700: #7A5000;   /* gold for text on light backgrounds */
  --gold-600: #B07000;
  --gold-500: #E0A020;   /* logo gold: fills and accents only, never text on light */
  --gold-400: #F0B43C;
  --gold-50: #FDF5E2;
  --ink: #16292A;
  --white: #FFFFFF;
  --success: #1E7B4F;
  --success-bg: #E5F4EC;
  --warning: #8A5A00;
  --warning-bg: #FDF3DC;
  --danger: #B3261E;
  --danger-bg: #FBE9E7;
  --info: #1F5FA8;
  --info-bg: #E6EFFA;

  --bg: #F5F9F9;
  --surface: var(--white);
  --surface-2: var(--teal-50);
  --text: var(--ink);
  --muted: #52666A;
  --border: #D3E2E1;
  --primary: var(--teal-700);
  --primary-strong: var(--teal-800);
  --primary-ink: var(--white);
  --accent: var(--gold-500);
  --accent-ink: var(--ink);
  --accent-text: var(--gold-700);
  --focus: #1F5FA8;
  --hero-from: var(--teal-800);
  --hero-to: var(--teal-600);
  --on-hero: var(--white);
  --shadow: 0 1px 2px rgb(0 57 61 / 6%), 0 4px 16px rgb(0 57 61 / 6%);

  --radius: 14px;
  --radius-sm: 10px;
  --gap: 16px;
  --touch: 48px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081617;
    --surface: #0F2324;
    --surface-2: #133033;
    --text: #E3F0EF;
    --muted: #9BB4B2;
    --border: #21403F;
    --primary: #3CC0BC;
    --primary-strong: #6AD6D2;
    --primary-ink: #03201F;
    --accent: #F0B43C;
    --accent-ink: #1B1405;
    --accent-text: #F0B43C;
    --focus: #8AB4F8;
    --teal-50: #133033;
    --teal-100: #1C4547;
    --gold-50: #2A2412;
    --success: #5CC98F;
    --success-bg: #12301F;
    --warning: #F0B43C;
    --warning-bg: #2E2410;
    --danger: #F28B82;
    --danger-bg: #3A1614;
    --info: #8AB4F8;
    --info-bg: #14243A;
    --hero-from: #06292B;
    --hero-to: #0B4A4C;
    --shadow: none;
  }
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--touch) + 28px);
}
body.is-panel { padding-bottom: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; margin: 8px 0 12px; }
h2 { font-size: 1.25rem; margin: 28px 0 12px; }
h3 { font-size: 1.05rem; }
code { font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 30; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1040px; margin: 0 auto; padding: var(--gap); }
.container--narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow {
  margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text); font-variant-numeric: tabular-nums;
}
.empty { padding: var(--gap); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row--between { justify-content: space-between; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); padding: 6px var(--gap);
  background: linear-gradient(90deg, var(--hero-from), var(--hero-to));
  color: var(--on-hero);
  border-bottom: 3px solid var(--accent);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; color: var(--on-hero); text-decoration: none; font-weight: 800; }
.topbar__brand img { display: block; height: 40px; width: auto; }
.topbar__nav { display: flex; align-items: center; gap: 4px; }
.topbar__nav a {
  color: var(--on-hero); min-height: var(--touch); padding: 0 10px; display: inline-flex; align-items: center;
  text-decoration: none; font-weight: 600; border-radius: var(--radius-sm);
}
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { background: rgb(255 255 255 / 12%); }
.topbar__links { display: none; }
.topbar__user { font-size: .9rem; opacity: .9; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.reset-box__password code { display: inline-block; font-size: 1.35rem; letter-spacing: .06em; padding: 6px 12px; border-radius: var(--radius); background: var(--surface); color: var(--text); user-select: all; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  margin: calc(-1 * var(--gap)) calc(-1 * var(--gap)) 0; padding: 20px var(--gap) 28px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 18%, var(--gold-50) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 80%, var(--teal-50) 0 140px, transparent 141px),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero__logo img { width: min(340px, 82vw); }
.hero__title { margin: 14px 0 4px; color: var(--primary-strong); font-size: 1.45rem; font-weight: 800; }
.hero__theme { margin: 0; font-style: italic; color: var(--accent-text); font-weight: 600; }
.hero__host { margin: 6px 0 16px; color: var(--muted); font-size: .95rem; }
.hero__actions { display: grid; gap: 10px; margin-top: 18px; }

.countdown {
  display: grid; gap: 2px; padding: 14px; max-width: 460px; margin: 0 auto;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--on-hero); border-radius: var(--radius); box-shadow: var(--shadow);
}
.countdown__label { font-size: .88rem; opacity: .9; }
.countdown__value { font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold-400); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch); padding: 0 20px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  transition: filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--secondary { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--on-hero); }
.btn--danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn--link { background: none; border: 0; padding: 0 4px; color: var(--primary); text-decoration: underline; min-height: 40px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; }
.btn--small { min-height: 40px; padding: 0 12px; font-size: .9rem; }
.btn--large { font-size: 1.05rem; min-height: 52px; }
.btn--block { width: 100%; }

/* Cards & grid */
.section { margin-top: 28px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section__head h2 { margin: 0 0 12px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--gap); box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card--center { text-align: center; max-width: 560px; margin: 32px auto; }
.card--narrow { max-width: 460px; margin: 24px auto; }
.card--accent { border-top: 4px solid var(--accent); }
.card--teal { border-top: 4px solid var(--primary); }
.card__title { margin: 0 0 6px; font-size: 1.1rem; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--primary); }
.card__foot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.comp-card { display: flex; flex-direction: column; }
.comp-card .card__foot { margin-top: auto; padding-top: 12px; }
.code-chip {
  display: inline-grid; place-items: center; min-width: 48px; height: 28px; padding: 0 8px;
  border-radius: 8px; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: .85rem; letter-spacing: .04em;
}

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; line-height: 1.6;
  font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--text); white-space: nowrap;
}
.badge--reg_open, .badge--applied, .badge--ok, .badge--verified, .badge--paid, .badge--confirmed, .badge--winner { background: var(--success-bg); color: var(--success); }
.badge--draft, .badge--pending, .badge--submitted, .badge--unpaid, .badge--pending_review, .badge--published { background: var(--warning-bg); color: var(--warning); }
.badge--needs_fix { background: var(--gold-50); color: var(--accent-text); border: 1px solid var(--accent); }
.badge--hash_mismatch, .badge--cancelled, .badge--rejected, .badge--expired { background: var(--danger-bg); color: var(--danger); }
.badge--reg_closed, .badge--finished, .badge--archived, .badge--withdrawn { background: var(--surface-2); color: var(--muted); }
.badge--running, .badge--finalist, .badge--checked_in { background: var(--info-bg); color: var(--info); }

/* Pinned announcements */
.pinned { display: grid; gap: 10px; margin-top: 20px; }
.pinned__item {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--gold-50); border-left: 4px solid var(--accent); color: var(--text); text-decoration: none;
}
.pinned__item strong { color: var(--text); }

/* Agenda */
.agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.agenda__item {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start;
  padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.agenda__date {
  display: grid; place-items: center; text-align: center; min-height: 64px; padding: 6px;
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--primary-strong);
  font-weight: 800; font-size: .9rem; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.agenda__body { display: grid; gap: 2px; }
.agenda__body strong { font-size: 1rem; }
.agenda__actions { margin-top: 6px; }
.filters { display: grid; gap: 12px; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
  text-decoration: none; font-weight: 600; font-size: .9rem;
}
.chip[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* Competition page */
.comp-hero {
  margin: calc(-1 * var(--gap)) calc(-1 * var(--gap)) 0; padding: 20px var(--gap);
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: var(--on-hero);
  border-bottom: 3px solid var(--accent);
}
.comp-hero h1 { margin: 6px 0; color: var(--on-hero); }
.comp-hero p { margin: 4px 0; opacity: .95; }
.comp-hero .eyebrow { color: var(--gold-400); }
.comp-hero .btn--accent { margin-top: 12px; }
.toc { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin-bottom: 4px; }
.facts { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.facts strong { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prose { overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose--doc { max-width: 72ch; }
.prose--doc h1 { margin: 8px 0 12px; }
.prose--doc h2 { margin: 32px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.prose--doc h3 { margin: 24px 0 8px; scroll-margin-top: 16px; }
.prose--doc h4 { margin: 16px 0 8px; }
.prose--doc hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.prose--doc blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 4px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm); }
.prose--doc pre { overflow-x: auto; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.prose--doc code { overflow-wrap: anywhere; }
.prose--doc table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 16px; font-size: .93rem; overflow-wrap: normal; }
.prose--doc th, .prose--doc td { text-align: left; padding: 8px 10px; border: 1px solid var(--border); vertical-align: top; }
.prose--doc th { background: var(--surface-2); }
.prose--doc li:has(> input[type="checkbox"]) { list-style: none; margin-left: -22px; }
.juknis-section { scroll-margin-top: 80px; }
.juknis-section h2 { display: flex; align-items: center; gap: 10px; }
.juknis-section h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--accent); }
.weight-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.weight-bar span { display: block; height: 100%; background: var(--primary); }
.w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; }
.w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; } .w-100 { width: 100%; }

/* Stepper (registration wizard) */
.steps { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps a, .steps span {
  display: grid; justify-items: center; gap: 4px; padding: 4px 2px; text-align: center;
  font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 1.2;
}
.steps a::before, .steps span::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 800; font-size: .9rem;
}
.steps .is-done a::before { content: "✓"; background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.steps .is-current a, .steps .is-current span { color: var(--primary-strong); }
.steps .is-current a::before { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* Forms */
.form { display: grid; gap: var(--gap); margin-top: var(--gap); }
.form--compact { gap: 10px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; }
.field__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.field__error { font-size: .88rem; color: var(--danger); margin: 0; font-weight: 600; }
.field__input {
  width: 100%; min-height: var(--touch); padding: 10px 12px; font: inherit;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.field__input:focus { border-color: var(--primary); }
textarea.field__input { min-height: 120px; resize: vertical; }
textarea.field__input--tall { min-height: 220px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .92rem; }
.field--invalid .field__input { border-color: var(--danger); border-width: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: var(--touch); padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--primary); }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px var(--gap) var(--gap); margin: 0; background: var(--surface); }
.fieldset legend { font-weight: 800; padding: 0 6px; color: var(--primary-strong); }
.consent-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; font-size: .92rem; }
.form-grid { display: grid; gap: var(--gap); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions--end { justify-content: flex-end; }
details.disclosure { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
details.disclosure > summary {
  cursor: pointer; list-style: none; padding: 14px var(--gap); min-height: var(--touch);
  font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); }
details.disclosure[open] > summary::after { content: "−"; }
details.disclosure > .disclosure__body { padding: 0 var(--gap) var(--gap); }

/* Alerts */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin: 12px 0; border-left: 4px solid var(--info); background: var(--info-bg); }
.alert--success { border-left-color: var(--success); background: var(--success-bg); }
.alert--error { border-left-color: var(--danger); background: var(--danger-bg); }
.alert--info { border-left-color: var(--info); background: var(--info-bg); }
.alert--warning { border-left-color: var(--accent); background: var(--gold-50); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table--compact td, .table--compact th { padding: 6px 8px; }
.table .field__input { min-height: 40px; padding: 6px 8px; min-width: 90px; }
.hash { color: var(--muted); }

/* Lists of entries (mobile cards) */
.entry-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.entry__head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.entry__title { margin: 0; font-size: 1rem; }
.entry__meta { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.entry__note { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--gold-50); font-size: .9rem; }
.entry__actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.req-item { display: grid; gap: 8px; }
.req-item__status { font-size: .88rem; font-weight: 700; }
.req-item__status--ok { color: var(--success); }
.req-item__status--missing { color: var(--warning); }
.req-item__status--rejected { color: var(--danger); }

/* KPI */
.kpi { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: grid; box-shadow: var(--shadow); border-top: 3px solid var(--primary); }
.kpi__item:nth-child(even) { border-top-color: var(--accent); }
.kpi__value { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary-strong); }
.kpi__label { color: var(--muted); font-size: .85rem; }

/* Panel navigation */
.panel-nav { background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; }
.panel-nav ul { list-style: none; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; max-width: 1040px; }
.panel-nav a {
  display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 12px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent;
}
.panel-nav a[aria-current="page"] { color: var(--primary-strong); border-bottom-color: var(--accent); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin: 12px 0 16px; }
.tabs a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent;
}
.tabs a[aria-current="page"] { color: var(--primary-strong); border-bottom-color: var(--accent); }

/* Footer & bottom nav */
.footer {
  margin-top: 40px; padding: 28px var(--gap) 32px; text-align: center; color: var(--muted); font-size: .88rem;
  border-top: 1px solid var(--border); background: var(--surface);
}
.footer img { height: 44px; width: auto; margin-bottom: 8px; }
.footer a { font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 8px 0; }
.wa-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 0 16px; margin: 8px 0;
  border-radius: 999px; background: var(--success); color: var(--white); font-weight: 700; text-decoration: none;
}
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav__item {
  min-height: calc(var(--touch) + 8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 600;
}
.bottom-nav__item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav__item[aria-current="page"] { color: var(--primary); }
.bottom-nav__item[aria-current="page"] svg { stroke: var(--primary); }

@media (min-width: 720px) {
  h1 { font-size: 1.9rem; }
  .hero { margin: calc(-1 * var(--gap)) 0 0; border-radius: 0 0 var(--radius) var(--radius); padding: 28px 24px 36px; }
  .hero__title { font-size: 1.8rem; }
  .hero__actions { grid-template-columns: repeat(3, auto); justify-content: center; }
  .comp-hero { margin: 0; border-radius: var(--radius); padding: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .kpi { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr; }
  .topbar__links { display: flex; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .steps a, .steps span { font-size: .85rem; }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media print {
  .topbar, .bottom-nav, .footer, .panel-nav, .btn { display: none !important; }
  body { background: #fff; }
}

/* Expo (M5): catalog cards, product photos, printable booth QR */
.expo-card__head { display: flex; gap: 12px; align-items: flex-start; }
.expo-card__logo { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex: none; }
.expo-card__logo--large { width: 88px; height: 88px; }
.expo-card__desc { margin: 8px 0 0; }
.product-card { padding: 12px; }
.product-card__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 8px; }
.qr-card { text-align: center; max-width: 360px; margin: 16px auto; padding: 16px; border: 2px solid var(--primary); border-radius: var(--radius); background: var(--surface); }
.qr-card h2 { margin: 4px 0; font-size: 1.2rem; }
.qr-card__booth { font-size: 1.6rem; font-weight: 800; color: var(--primary-strong); margin: 0; }
/* QR stays dark-on-white in dark mode so phones can scan it. */
.qr-box { background: #FFFFFF; color: #000000; padding: 8px; border-radius: var(--radius-sm); margin: 8px auto; max-width: 260px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-box .qr-data.dark, .qr-box .dark { fill: #000000; }
.qr-sheet { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.qr-sheet .qr-card { margin: 0; break-inside: avoid; }
@media print {
  .no-print { display: none !important; }
  .qr-sheet { grid-template-columns: repeat(3, 1fr); }
  .qr-card { border-color: #000; }
}

/* Berita & Pusat Media */
.news-card { display: flex; flex-direction: column; gap: 6px; }
.news-card__cover, .kit-card__preview {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--surface-2);
}
.kit-card__preview { aspect-ratio: 16 / 10; object-fit: contain; }
.news-card .eyebrow { margin: 4px 0 0; }
.news-card .eyebrow a { color: inherit; }
.news-card__title { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.news-card__title a { color: var(--text); text-decoration: none; }
.news-card__title a:hover, .news-card__title a:focus-visible { color: var(--primary); text-decoration: underline; }
.news-card__lead { margin: 0; color: var(--muted); font-size: .92rem; }
.news-article { margin-top: 12px; }
.news-article h1 { margin: 6px 0 10px; line-height: 1.25; }
.news-article__lead { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.news-article__figure { margin: 16px 0; }
.news-article__figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface-2); }
.news-article__figure figcaption { margin-top: 6px; }
.share { border-top: 1px solid var(--border); padding-top: 12px; }
.share__url { overflow-wrap: anywhere; }
