/* ============================================================
   BAMMT — Public site (home + result verification)
   Brand colours sampled from the official emblem:
   royal indigo (wordmark), cyan (tagline), magenta (stars).
   ============================================================ */

:root {
  --brand: #2e3192;
  --brand-600: #262a80;
  --brand-700: #1e2166;
  --brand-50: #eef0fb;
  --brand-100: #dde1f6;
  --cyan: #1ba8df;
  --cyan-50: #e6f6fc;
  --magenta: #92278f;

  --ink: #141833;
  --ink-2: #3c4260;
  --ink-3: #6a7090;
  --line: #e3e6ef;
  --line-2: #eef0f5;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;

  --ok: #0f8a5f;
  --ok-50: #e7f6ef;
  --bad: #c62828;
  --bad-50: #fdecec;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(20, 24, 51, .05), 0 8px 24px -12px rgba(20, 24, 51, .14);
  --shadow-lg: 0 2px 4px rgba(20, 24, 51, .04), 0 24px 48px -20px rgba(30, 33, 102, .28);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1160px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand-100); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn svg { flex-shrink: 0; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--brand-700); color: #cfd3f3; font-size: 13.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #bfe9f8; }
.topbar-list { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { opacity: .75; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: 52px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: .06em; color: var(--brand); line-height: 1.05; }
.brand-full { font-size: 12.5px; color: var(--ink-3); font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 600; font-size: 15px;
}
.nav a:hover { color: var(--brand); background: var(--brand-50); }
.nav a.active { color: var(--brand); }
.nav .btn { margin-left: 8px; color: #fff; padding: 0 16px; }
.nav .btn:hover { color: #fff; background: var(--brand-700); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(27, 168, 223, .14), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(146, 39, 143, .07), transparent 60%),
    linear-gradient(180deg, #f7f8fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); border-radius: 2px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.01em;
  margin: 16px 0 16px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }

.verify-card {
  margin-top: 32px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); max-width: 600px;
}
.verify-card label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--ink); }
.verify-row { display: flex; gap: 10px; }
.input-wrap { position: relative; flex: 1; min-width: 0; }
.input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input {
  width: 100%; height: 52px; padding: 0 14px 0 44px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
  background: var(--bg-soft); transition: border-color .15s, background .15s, box-shadow .15s;
}
.input::placeholder { font-family: var(--font); font-weight: 500; letter-spacing: 0; color: #9aa0b8; }
.input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.verify-row .btn { height: 52px; padding: 0 22px; }
.verify-hint { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: flex-start; }
.verify-hint svg { flex-shrink: 0; margin-top: 3px; color: var(--ok); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 14.5px; margin-bottom: 16px; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-bad { background: var(--bad-50); color: #8c1d1d; border: 1px solid #f6c9c9; }
.alert-bad strong { color: #6e1414; }
.alert-ok { background: var(--ok-50); color: #0b5e41; border: 1px solid #bfe6d4; }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.emblem-frame {
  position: relative; width: min(340px, 100%); aspect-ratio: 1;
  border-radius: 50%; padding: 18px; background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
}
.emblem-frame img { width: 100%; height: 100%; border-radius: 50%; }
.emblem-frame::after {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px dashed rgba(46, 49, 146, .22);
}
.hero-tag {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px 8px 10px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink);
}
.hero-tag .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.hero-tag-1 .dot { background: var(--ok-50); color: var(--ok); }
.hero-tag-2 .dot { background: var(--cyan-50); color: #0f7fae; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 38px); margin: 12px 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.program:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.program-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.program:nth-child(1) .program-icon { background: var(--brand-50); color: var(--brand); }
.program:nth-child(2) .program-icon { background: var(--cyan-50); color: #0f7fae; }
.program:nth-child(3) .program-icon { background: #f6eaf6; color: var(--magenta); }
.program h3 { font-size: 19px; margin-bottom: 10px; }
.program p { color: var(--ink-2); font-size: 15px; }

.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.about-split .section-head { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.fact strong { display: block; font-size: 15px; color: var(--brand); font-weight: 800; }
.fact span { font-size: 13.5px; color: var(--ink-3); }

/* Notices */
.notices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.notice {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
}
.notice[hidden] { display: none; }
.notice-date {
  width: 64px; height: 68px; border-radius: var(--r); background: var(--brand-50); color: var(--brand);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.notice-date b { font-size: 24px; font-weight: 800; }
.notice-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.notice-cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--magenta); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.notice h3 { font-size: 17px; margin-bottom: 6px; }
.notice p { font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notice.expanded p { -webkit-line-clamp: unset; display: block; }
.notice-more { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; font-size: 14px; cursor: pointer; }
.notices-foot { margin-top: 24px; text-align: center; }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--ink-3); background: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.contact-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.contact-card .val { font-size: 16px; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-card a.val:hover { color: var(--brand); }
.contact-card .muted { font-size: 14px; color: var(--ink-3); }
.contact-card .link { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.phone-list a { font-family: var(--font-mono); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.phone-list a:hover { color: var(--brand); }

.cta-band {
  margin-top: 40px; border-radius: var(--r-lg); padding: 32px;
  background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #3540a8);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.cta-band p { color: #cfd3f3; margin-top: 4px; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--cyan-50); color: var(--brand-700); }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #10132e; color: #aab0d4; padding: 56px 0 24px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; }
.footer-brand strong { display: block; color: #fff; font-size: 20px; letter-spacing: .06em; }
.footer-brand em { display: block; font-style: italic; color: var(--cyan); font-family: var(--font-display); font-size: 15px; margin-top: 2px; }
.footer-brand p { margin-top: 10px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d6daf3; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7f86b3; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Result verification page
   ============================================================ */
.result-page { background: var(--bg-soft); min-height: 100vh; }
.result-main { padding: 36px 0 64px; }
.result-wrap { max-width: 860px; }
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }

.status {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid; border-bottom: 0;
}
.status-ok { background: var(--ok-50); border-color: #bfe6d4; color: #0b5e41; }
.status-bad { background: var(--bad-50); border-color: #f6c9c9; color: #8c1d1d; }
.status .badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.status-ok .badge { background: var(--ok); }
.status-bad .badge { background: var(--bad); }
.status strong { display: block; font-size: 16px; }
.status span { font-size: 14px; opacity: .9; }

.result-card { background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow); }
.result-head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px; border-bottom: 1px solid var(--line-2); align-items: center; }
.avatar { width: 120px; height: 140px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--line); background: var(--bg-soft); }
.avatar-fallback { width: 120px; height: 140px; border-radius: var(--r); background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 36px; font-weight: 800; }
.result-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 6px; }
.result-head .program-name { color: var(--ink-2); font-weight: 600; }
.reg-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-family: var(--font-mono); font-weight: 700; font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-2); }
.stat { padding: 20px 28px; }
.stat + .stat { border-left: 1px solid var(--line-2); }
.stat dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.stat dd { margin: 4px 0 0; font-size: 24px; font-weight: 800; color: var(--ink); }
.stat dd small { font-size: 15px; color: var(--ink-3); font-weight: 700; }

.details { padding: 12px 28px 8px; }
.details h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 16px 0 6px; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.dl div { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.dl dt { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.dl dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }

.share { margin: 20px 28px 0; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 6px 6px 14px; background: var(--bg-soft); }
.share code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }

.result-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 24px 28px 28px; flex-wrap: wrap; }
.result-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.result-note a { font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: opacity .2s, transform .2s; z-index: 200; pointer-events: none; display: flex; gap: 8px; align-items: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.print-sheet { display: none; }

/* ============================================================
   404 page
   ============================================================ */
.error-page { background: var(--bg-soft); }
.error-main { padding: 72px 0 88px; }
.error-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 48px 36px; box-shadow: var(--shadow);
}
.error-code { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.error-code span { font-family: var(--font-display); font-weight: 600; font-size: 104px; line-height: 1; color: var(--brand); }
.error-code img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 6px var(--brand-50); }
.error-card h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 12px; }
.error-card > p { color: var(--ink-2); max-width: 480px; margin: 0 auto; }
.error-search { display: flex; gap: 10px; margin: 28px auto 0; max-width: 480px; text-align: left; }
.error-search .btn { height: 52px; }
.error-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); }
@media (max-width: 600px) {
  .error-main { padding: 40px 0 56px; }
  .error-card { padding: 32px 20px; }
  .error-code span { font-size: 72px; }
  .error-code img { width: 68px; height: 68px; }
  .error-search { flex-direction: column; }
  .error-links .btn { flex: 1 1 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .topbar .wrap { justify-content: center; }
  .topbar-hide-sm { display: none !important; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 19px; }
  .brand-full { font-size: 11.5px; max-width: 220px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: 0 12px 24px -12px rgba(20,24,51,.2);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
  .steps, .programs, .notices { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .verify-row { flex-direction: column; }
  .verify-row .btn { width: 100%; }
  .verify-card { padding: 18px; }
  .hero-lead { font-size: 16.5px; }
  .contact-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
  .brand-full { display: none; }

  .result-head { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 14px 20px; display: flex; justify-content: space-between; align-items: baseline; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-2); }
  .stat dd { font-size: 19px; margin: 0; }
  .details { padding: 8px 20px; }
  .dl { grid-template-columns: 1fr; }
  .share { margin: 16px 20px 0; }
  .result-actions { padding: 20px; }
  .result-actions .btn { flex: 1; }
}

/* ============================================================
   Print — single A4 official copy
   ============================================================ */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  .no-print, .site-header, .topbar, .site-footer, .toast, .result-main { display: none !important; }
  .print-sheet { display: block !important; color: #000; font-family: "Times New Roman", Georgia, serif; font-size: 12pt; }
  .ps-head { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; gap: 12px; border-bottom: 3px double #1e2166; padding-bottom: 10px; text-align: center; }
  .ps-head img { width: 80px; height: 80px; }
  .ps-head h1 { font-size: 17pt; color: #1e2166; letter-spacing: .02em; font-family: inherit; }
  .ps-head p { font-size: 10pt; margin-top: 3px; }
  .ps-title { text-align: center; margin: 16px 0 14px; font-size: 13pt; font-weight: bold; letter-spacing: .08em; text-decoration: underline; }
  .ps-student { display: grid; grid-template-columns: 1fr 110px; gap: 16px; margin-bottom: 14px; }
  .ps-student p { margin: 3px 0; font-size: 11.5pt; }
  .ps-student h2 { font-size: 15pt; margin-bottom: 6px; font-family: inherit; }
  .ps-student img { width: 110px; height: 130px; object-fit: cover; border: 1px solid #000; }
  .ps-table { width: 100%; border-collapse: collapse; font-size: 11.5pt; }
  .ps-table th, .ps-table td { border: 1px solid #000; padding: 7px 10px; text-align: left; }
  .ps-table th { background: #eceef8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-revoked { border: 2px solid #b00; color: #b00; padding: 8px; text-align: center; font-weight: bold; margin-bottom: 12px; }
  .ps-sign { display: flex; justify-content: flex-end; margin-top: 64px; }
  .ps-sign div { text-align: center; min-width: 240px; }
  .ps-sign .line { border-top: 1px solid #000; padding-top: 4px; font-weight: bold; }
  .ps-sign .role { font-size: 10pt; }
  .ps-foot { margin-top: 36px; border-top: 1px solid #999; padding-top: 6px; font-size: 9pt; display: flex; justify-content: space-between; gap: 12px; color: #333; }
}
