/* =========================================================
   CG-TECH  ·  Career Guideline Tech Exhibition
   Palette: light green + blue + white, dark navy text.
   Type: Lexend (designed for reading ease, suits students).
   ========================================================= */
:root {
  color-scheme: light;
  --navy: #0b2545;
  --ink: #1b3557;
  --muted: #5a6f86;
  --blue: #1f6feb;
  --blue-deep: #1552b8;
  --blue-soft: #e8f0fe;
  --green: #8cc63f;
  --green-deep: #2f7a12;
  --green-soft: #eef8e4;
  --violet: #4b2a8c;
  --cyan: #12a3bd;
  --mist: #f4f8f6;
  --line: #d6e2dc;
  --white: #ffffff;
  --red: #c62f3a;
  --red-soft: #fdecee;
  --amber: #9a6200;
  --amber-soft: #fff4dc;

  --t-ai: #1f6feb;
  --t-robotics: #13804a;
  --t-drone: #0b8a96;
  --t-space: #0b2545;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 6px 20px rgba(11, 37, 69, .06);
  --font: "Exo 2", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Orbitron", "Exo 2", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .9em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hint { color: var(--muted); font-size: .86rem; font-weight: 400; }
.center { text-align: center; }
.req { color: var(--red); }
.empty { color: var(--muted); margin: 0; }
.warn { color: var(--red); font-weight: 500; }
.ok { color: var(--green-deep); }
.mono-id { font-variant-numeric: tabular-nums; letter-spacing: .01em; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; }
@media (max-width: 480px) { .brand img { height: 26px; } .hide-sm { display: none; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; }
.brand-text small { font-size: .72rem; color: var(--muted); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 50% 50%, var(--green) 0 28%, transparent 29%),
    conic-gradient(from 210deg, var(--blue) 0 50%, var(--navy) 50% 100%);
  box-shadow: inset 0 0 0 3px #fff;
}
.topnav { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
@media (max-width: 480px) { .brand-text small { display: none; } .page-dash .topnav a:not(.btn) { display: none; } }
.topnav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .6rem 1.15rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a3222c; color: #fff; }
.btn-sm { min-height: 36px; padding: .35rem .85rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- alerts & notices */
.alert { padding: .85rem 1rem; border-radius: var(--r-sm); margin: 1rem 0; border-left: 4px solid; }
.alert-success { background: var(--green-soft); border-color: var(--green-deep); color: #0c5a33; }
.alert-error   { background: var(--red-soft); border-color: var(--red); color: #8a1a23; }
.alert-info    { background: var(--blue-soft); border-color: var(--blue); color: var(--navy); }
.notice { background: var(--green-soft); border-radius: var(--r-sm); padding: .8rem 1rem; font-size: .92rem; color: #0c4f2e; margin: 1rem 0 0; }

/* ---------- panels & grids */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; margin-bottom: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.grid-2, .grid-3 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .span-2 { grid-column: span 2; }
}
.dash-grid { gap: 1rem; }
.dash-grid > .panel { margin-bottom: 0; }

/* ---------- forms */
label, .field { display: block; font-weight: 500; color: var(--navy); margin-bottom: 1rem; font-size: .95rem; }
.field-label { display: block; font-weight: 500; color: var(--navy); margin-bottom: .45rem; font-size: .95rem; }
.field-label.mt { margin-top: 1.25rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: .35rem;
  min-height: 46px; padding: .6rem .8rem;
  font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
}
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31, 111, 235, .18); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--red) !important; background: #fffafa !important; }
input[type=file] { margin-top: .4rem; font: inherit; font-size: .9rem; max-width: 100%; }
.field-error { color: var(--red); font-size: .85rem; font-weight: 500; margin: .3rem 0 0; }
.hint { display: inline-block; margin-top: .25rem; }

.reg-head { background: linear-gradient(160deg, var(--green-soft), var(--blue-soft)); padding: 2rem 0 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.reg-form { max-width: 860px; }
fieldset.panel { margin: 0 0 1rem; min-width: 0; }
legend { font-size: 1.12rem; font-weight: 600; color: var(--navy); padding: 0 .25rem; display: flex; align-items: center; gap: .55rem; }
.step {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--green); font-size: .85rem; font-weight: 700;
}

/* chips (radio/checkbox pills) */
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { margin: 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: .45rem 1rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* technology tiles */
.tech-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 720px) { .tech-pick { grid-template-columns: repeat(4, 1fr); } }
.tech-tile { margin: 0; cursor: pointer; position: relative; }
.tech-tile input { position: absolute; opacity: 0; }
.tech-tile span {
  display: flex; align-items: flex-end; min-height: 84px; padding: .75rem;
  border-radius: var(--r-md); border: 2px solid var(--line); background: #fff; font-weight: 600; line-height: 1.25;
  border-top: 6px solid var(--tc);
}
.tech-tile input:checked + span { background: var(--tc); border-color: var(--tc); color: #fff; }
.tech-tile input:checked + span::after { content: "✓"; position: absolute; top: .55rem; right: .7rem; font-weight: 700; }
.tech-tile input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.tech-ai { --tc: var(--t-ai); } .tech-robotics { --tc: var(--t-robotics); }
.tech-drone { --tc: var(--t-drone); } .tech-space { --tc: var(--t-space); }

/* payment */
.fee-line { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; border-radius: var(--r-sm); padding: .85rem 1rem; margin-bottom: 1rem; }
.fee-line strong { font-size: 1.4rem; color: var(--green); }
.pay-options { display: grid; gap: .5rem; }
.pay-opt { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); margin: 0; cursor: pointer; font-weight: 400; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.pay-opt input { margin-top: .3rem; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.pay-opt small { display: block; color: var(--muted); margin-top: .15rem; }

.photo-drop { display: flex; align-items: center; gap: 1rem; margin-top: .35rem; }
#photo-preview { width: 72px; height: 90px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.terms { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.terms input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--blue); flex: none; }
.submit-bar { padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border-top: 1px solid var(--line); margin-bottom: 2rem; }
.is-hidden { display: none !important; }

/* ---------- auth */
.auth { display: grid; place-items: center; padding: 2.5rem 1rem; }
.auth-card { width: min(440px, 100%); padding: 1.75rem; }
.checklist { list-style: none; padding: 0; } .checklist .ok { color: var(--green-deep); } .checklist .fail { color: var(--red); }

/* ---------- dashboard layout */
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem 0 2rem; }
.dash-main, .dash-side { min-width: 0; }
@media (min-width: 900px) { .dash { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } .dash-side { position: sticky; top: 84px; } }
.dash-who { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.dash-who strong { display: block; color: var(--navy); line-height: 1.2; }
.dash-who .mono-id { font-size: .8rem; color: var(--muted); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); background: var(--green-soft); }
.dash-nav { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem .25rem; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a { flex: none; padding: .55rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.dash-nav a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (min-width: 900px) {
  .dash-nav { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .dash-nav a { border-radius: var(--r-sm); border-color: transparent; background: transparent; }
  .dash-nav a:hover { background: #fff; }
  .dash-nav a[aria-current="page"] { background: var(--navy); }
}
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--green); color: var(--navy); font-size: .75rem; font-weight: 700; }
.dash-title { margin-bottom: 1rem; }

.welcome { background: var(--navy); color: #fff; border: 0; padding: 1.5rem; }
.welcome h1 { color: #fff; }
.welcome p { color: #c9d6e6; }
.big-id { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.big-id span { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 700; color: var(--green); letter-spacing: .03em; font-variant-numeric: tabular-nums; }

.next { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; border-left: 5px solid var(--blue); }
.next > div { flex: 1 1 320px; }
.next p { margin: 0; color: var(--muted); }
.next-done { border-left-color: var(--green-deep); background: var(--green-soft); }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { margin: 0; padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.stat-label { font-size: .82rem; color: var(--muted); }
.stat strong { font-size: 1.05rem; color: var(--navy); }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; width: fit-content; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-green { background: var(--green-soft); color: var(--green-deep); }
.st-blue  { background: var(--blue-soft); color: var(--blue-deep); }
.st-amber { background: var(--amber-soft); color: var(--amber); }
.st-red   { background: var(--red-soft); color: var(--red); }
.st-grey  { background: #eef1f4; color: #4a5a6c; }

/* progress journey */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.journey li { position: relative; padding: 0 0 1.1rem 2.1rem; }
.journey li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.journey li:last-child::before { display: none; }
.journey .dot { position: absolute; left: 2px; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.journey .done .dot { background: var(--green-deep); border-color: var(--green-deep); }
.journey .done .dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 700; }
.journey .done::before { background: var(--green-deep); }
.journey .current .dot { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.journey .current .j-label { color: var(--blue-deep); font-weight: 600; }
.j-label { display: block; font-weight: 500; color: var(--navy); }
.j-meta { display: block; font-size: .85rem; color: var(--muted); }
@media (min-width: 1000px) {
  .journey { grid-template-columns: repeat(6, 1fr); }
  .journey li { padding: 2rem .5rem 0 0; }
  .journey li::before { left: 18px; right: 0; top: 10px; bottom: auto; width: auto; height: 2px; }
  .journey .dot { top: 1px; left: 0; }
}

.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: .55rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; background: var(--tc, var(--navy)); }
.tag-ai { --tc: var(--t-ai); } .tag-robotics { --tc: var(--t-robotics); } .tag-drone { --tc: var(--t-drone); } .tag-space { --tc: var(--t-space); }

.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.note-list li:last-child { border-bottom: 0; }
.note-list li.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: .45rem; vertical-align: middle; }
.note-list time { display: block; font-size: .82rem; color: var(--muted); }
.note-list p { margin: .35rem 0 0; font-size: .92rem; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: .6rem .5rem; border-bottom: 2px solid var(--line); }
.table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.row-warn td { background: var(--red-soft); }
.table .mono-id, .table .badge, .table td:nth-child(n+3) { white-space: nowrap; overflow-wrap: normal; }

.locked { text-align: center; padding: 2.5rem 1.25rem; }
.disclose summary { cursor: pointer; font-weight: 600; color: var(--blue-deep); padding: .5rem 0 1rem; }
.account-box { border: 2px solid var(--green); }
.cert-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.card-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }

/* ---------- Tech ID card (the signature piece) */
.tech-card {
  position: relative; overflow: hidden;
  width: min(420px, 100%);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--navy) 0 112px, #fff 112px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.tc-top { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.25rem; color: #fff; position: relative; z-index: 1; }
.tc-top strong { display: block; font-size: 1.1rem; letter-spacing: .03em; }
.tc-top small { color: #b9c9de; font-size: .72rem; }
.tc-year { margin-left: auto; font-weight: 700; color: var(--green); font-size: 1.2rem; }
.tc-body { display: flex; gap: 1rem; padding: 0 1.25rem; position: relative; z-index: 1; }
.tc-photo { width: 108px; height: 136px; object-fit: cover; border-radius: var(--r-md); border: 4px solid #fff; box-shadow: var(--shadow); background: var(--green-soft); flex: none; }
.tc-info { padding-top: 3.6rem; min-width: 0; }
.tc-info h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.tc-info p { margin: 0; font-size: .88rem; color: var(--muted); }
.tc-info .tags { margin-top: .5rem; }
.tc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.1rem 1.25rem 1.25rem; position: relative; z-index: 1; }
.tc-foot dl { margin: 0; }
.tc-foot dt { font-size: .72rem; color: var(--muted); }
.tc-foot dd { margin: 0 0 .4rem; color: var(--navy); }
.tc-orbit { position: absolute; width: 340px; height: 340px; right: -150px; top: -170px; border-radius: 50%; border: 1.5px solid rgba(91, 214, 138, .35); box-shadow: 0 0 0 36px rgba(91, 214, 138, .06), 0 0 0 72px rgba(31, 111, 235, .06); }
.qr { width: 96px; height: 96px; padding: 4px; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); flex: none; }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }

/* exhibition pass */
.pass-card { display: grid; grid-template-columns: 1fr; width: min(640px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 560px) { .pass-card { grid-template-columns: 1fr 170px; } }
.pass-main { padding: 1.4rem; border-top: 8px solid var(--green); }
.pass-event { font-size: .8rem; color: var(--green-deep); font-weight: 600; margin-bottom: .4rem; }
.pass-main h2 { font-size: 1.4rem; margin-bottom: .1rem; }
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; margin: 1rem 0 0; }
.pass-grid dt { font-size: .75rem; color: var(--muted); }
.pass-grid dd { margin: 0; color: var(--navy); font-weight: 500; font-size: .9rem; }
.pass-stub { background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.25rem; border-left: 2px dashed rgba(255,255,255,.3); }
.pass-stub .qr { width: 130px; height: 130px; }
.pass-status { color: var(--green); font-weight: 700; letter-spacing: .08em; }
.pass-used .pass-main { border-top-color: var(--muted); } .pass-used .pass-status { color: #c9d6e6; }
.pass-cancelled .pass-main { border-top-color: var(--red); } .pass-cancelled .pass-status { color: #ff9ca4; }

/* verify */
.verify { padding: 2.5rem 0; display: grid; place-items: center; }
.verify-card { width: min(520px, 100%); border-top: 8px solid var(--line); }
.verify-card.is-valid { border-top-color: var(--green-deep); }
.verify-card.is-invalid { border-top-color: var(--red); }
.verdict { font-weight: 700; font-size: 1.1rem; }
.is-valid .verdict { color: var(--green-deep); } .is-invalid .verdict { color: var(--red); }

/* admin */
.admin { padding: 1.25rem 0 2rem; }
@media (min-width: 900px) { .stat-row-wide { grid-template-columns: repeat(4, 1fr); } }
.tabs { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1rem; }
.tabs a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); white-space: nowrap; font-weight: 500; font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.review-actions { gap: 1.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- home */
.hero { background: linear-gradient(170deg, #fff 0%, var(--green-soft) 55%, #e6f6fa 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; gap: 2rem; padding: 2.5rem 0 3rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3.5rem 0 4rem; } }
.hero-logo { width: min(460px, 100%); height: auto; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; color: var(--violet); letter-spacing: .01em; margin-bottom: .6rem; }
.hero .lede { color: var(--ink); font-size: 1.1rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 1.25rem 0 1.5rem; }
.hero-facts div { border-left: 3px solid var(--green); padding-left: .7rem; }
.hero-facts dt { font-size: .78rem; color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.hero .btn-row { margin-top: 1.25rem; }
.hero-signin { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }
.hero.has-poster .hero-visual { order: -1; }
@media (max-width: 899px) {
  .hero.has-poster .hero-inner { padding-top: 1.25rem; gap: 1.25rem; }
  .hero.has-poster .poster-frame { width: fit-content; max-width: 100%; }
  .hero.has-poster .poster-frame img { max-height: 58svh; width: auto; max-width: 100%; }
  .hero.has-poster .hero-logo { width: min(300px, 80%); margin-bottom: .75rem; }
}
@media (min-width: 900px) { .hero.has-poster .hero-visual { order: 0; } }
.poster-frame { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 2px 6px rgba(11,37,69,.08), 0 24px 48px -12px rgba(11,37,69,.28); background: #fff; max-width: 560px; margin-inline: auto; }
.poster-frame img { width: 100%; height: auto; }

.orbit { position: relative; width: min(400px, 84vw); aspect-ratio: 1; margin-inline: auto; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(140, 198, 63, .55); inset: 0; }
.ring.r2 { inset: 15%; border-color: rgba(18, 163, 189, .45); }
.ring.r3 { inset: 30%; border-color: rgba(75, 42, 140, .25); }
.core { position: absolute; inset: 31%; width: 38%; height: 38%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(11,37,69,.18)); }
.node { position: absolute; padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: #fff; white-space: nowrap; box-shadow: var(--shadow); }
.n-ai { top: 3%; left: 50%; transform: translateX(-50%); background: var(--t-ai); }
.n-robotics { top: 50%; right: -3%; transform: translateY(-50%); background: var(--t-robotics); }
.n-drone { bottom: 3%; left: 50%; transform: translateX(-50%); background: var(--t-drone); }
.n-space { top: 50%; left: -3%; transform: translateY(-50%); background: var(--violet); }
@media (prefers-reduced-motion: no-preference) {
  .ring.r1 { animation: spin 60s linear infinite; border-style: dashed; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

.section { padding: 3rem 0; }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1.25rem; }

/* four technology posters */
.tech-posters { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 1000px) { .tech-posters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.tech-poster { background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tech-poster.has-img img { width: 100%; height: auto; display: block; }
.tp-art { aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 75% 20%, rgba(255,255,255,.35) 0 18%, transparent 19%), radial-gradient(circle at 20% 110%, rgba(255,255,255,.18) 0 40%, transparent 41%), var(--tc); }
.tp-art span { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; color: #fff; letter-spacing: .04em; }
.tp-caption { padding: .9rem 1rem 1rem; border-top: 5px solid var(--tc); }
.tp-caption h3 { color: var(--tc); margin-bottom: .3rem; }
.tp-caption p { font-size: .9rem; color: var(--ink); margin-bottom: .5rem; }
.tp-caption span { font-size: .8rem; color: var(--muted); }
.tech-space { --tc: var(--violet); }
@media (max-width: 520px) { .tp-caption p { display: none; } }

/* video */
.video-section { background: var(--navy); }
.video-section .section-title { color: #fff; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 24px 48px -16px rgba(0,0,0,.5); max-width: 820px; margin-inline: auto; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* downloads */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 800px) { .downloads:not(.downloads-admin) { grid-template-columns: 1fr 1fr; } }
.downloads li { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: .85rem 1rem; }
.dl-type { flex: none; width: 3.4rem; height: 3.4rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.1; }
.dl-text { flex: 1; min-width: 0; }
.dl-text strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.dl-text small { color: var(--muted); }

/* schools */
.schools { background: #fff; border-block: 1px solid var(--line); }
.schools-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .schools-inner { grid-template-columns: 1.4fr 1fr; } }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .55rem 1.25rem; }
.benefits li { padding-left: 1.6rem; position: relative; font-weight: 500; color: var(--navy); }
.benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--green-deep); font-weight: 700; }
.schools-cta { background: var(--green-soft); border-radius: var(--r-lg); padding: 1.5rem; }

.how { background: #fff; border-block: 1px solid var(--line); }
.how-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .how-steps { grid-template-columns: repeat(4, 1fr); } }
.how-steps li { counter-increment: s; padding-left: 3rem; position: relative; }
.how-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); font-weight: 700; }
.how-steps strong { display: block; color: var(--navy); }
.how-steps span { color: var(--muted); font-size: .92rem; }
.cta { text-align: center; } .cta .btn-row { justify-content: center; } .cta p { color: var(--muted); }

.prose { max-width: 760px; margin-block: 2rem; padding: 1.75rem; }
.prose h2 { margin-top: 1.5rem; }

/* ---------- footer */
.footer { background: var(--navy); color: #c9d6e6; padding: 2.25rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); margin-top: 2rem; font-size: .92rem; }
.footer strong { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.75rem; }
.footer-brand { max-width: 420px; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--r-md); padding: .6rem .9rem; margin-bottom: .9rem; }
.footer-logo img { height: 46px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-content: flex-start; max-width: 520px; }
.footer a { color: var(--green); }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; margin-top: 1.5rem; font-size: .85rem; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background-color .15s; }
.social a:hover, .social a:focus-visible { background: var(--green); color: var(--navy); }
.social .ic-in { fill: var(--navy); }
.social a:hover .ic-in, .social a:focus-visible .ic-in { fill: var(--green); }
.wa-float .ic-in { fill: #1fa855; }
.wa-float:hover .ic-in { fill: #178a45; }

/* floating WhatsApp button */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: .5rem;
  background: #1fa855; color: #fff; text-decoration: none; font-weight: 600; padding: .7rem 1.1rem .7rem .85rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.wa-float:hover { background: #178a45; color: #fff; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: .75rem; } }
.page-register .wa-float, .page-dash .wa-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
@media print { .wa-float { display: none !important; } }

/* ---------- school dashboard & admin components */
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.title-row .dash-title { margin: 0; }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--blue); }
.avatar-text { display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--green-deep); flex: none; }
.avatar-lg { width: 96px; height: 120px; border-radius: var(--r-sm); }
.money { border-top: 5px solid var(--green); }
.money-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.money-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: .75rem 0 1rem; }
@media (min-width: 900px) { .money-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .money-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.money-grid div { display: flex; flex-direction: column; gap: .15rem; }
.money-grid strong { font-size: 1.25rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.money-grid strong.ok { color: var(--green-deep); } .money-grid strong.warn { color: var(--red); }
.money-grid small { color: var(--muted); font-size: .8rem; }
.bar { display: flex; height: 12px; border-radius: 999px; background: #e7edf3; overflow: hidden; }
.bar-v { background: var(--green-deep); } .bar-p { background: #f0b429; }
.class-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.class-bars li { display: grid; grid-template-columns: 5.5rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .9rem; }
.cb-track { position: relative; height: 12px; border-radius: 999px; background: #eef2f6; overflow: hidden; }
.cb-fill, .cb-ok { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.cb-fill { background: var(--green); opacity: .45; } .cb-ok { background: var(--green-deep); }
.cb-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.filters label { margin: 0; flex: 1 1 160px; }
.pick-students { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.pick-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; background: var(--blue-soft); border-radius: var(--r-sm); padding: .6rem .8rem; margin-bottom: .5rem; }
.pick-head .terms { margin: 0; font-weight: 600; }
.pick-total { font-weight: 600; color: var(--navy); }
.pick-list { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .25rem .75rem .5rem; }
.pick-class { margin: .6rem 0 .2rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.pick { display: flex; gap: .6rem; align-items: center; margin: 0; padding: .35rem 0; font-weight: 400; border-bottom: 1px solid #f0f3f6; }
.pick input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.pick small { color: var(--muted); margin-left: .35rem; }
.plain { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .85rem; }
.ledger details summary { cursor: pointer; color: var(--blue-deep); font-weight: 600; }
.kv-tight { gap: .35rem 1rem; margin-top: .75rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: .5rem 0 0; }
.confirm-import { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.admin-tabs { margin: 0 0 1rem; }
.slot-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.slot { border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.slot-img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--mist); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .85rem; }
.slot-img img { width: 100%; height: 100%; object-fit: contain; }
.slot form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.slot input[type=file] { font-size: .8rem; max-width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.dl-form { margin-top: 1rem; align-items: end; }
.span-3 { grid-column: 1 / -1; }
.downloads-admin li form { margin: 0; }
code { background: var(--mist); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; font-size: .88em; }

/* Tech ID card sheet (school print) */
.tc-logo { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; flex: none; }
.tc-nophoto { display: grid; place-items: center; text-align: center; font-size: .78rem; color: var(--muted); text-decoration: none; }
.card-sheet { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-sheet-passes { grid-template-columns: 1fr; }
.tech-card-sm { width: 100%; }
.tech-card-sm .tc-photo { width: 88px; height: 110px; }
.tech-card-sm .tc-info { padding-top: 3.1rem; }
.tech-card-sm .qr { width: 84px; height: 84px; }

/* ---------- print: Tech ID / pass only */
@media print {
  .topbar, .footer, .no-print, .dash-side, .alert, .skip { display: none !important; }
  body { background: #fff; }
  .dash { display: block; padding: 0; }
  .tech-card, .pass-card { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-print-cards .card-sheet { grid-template-columns: 1fr 1fr; gap: 6mm; }
  .page-print-cards .card-sheet-passes { grid-template-columns: 1fr; }
  .page-print-cards .tech-card, .page-print-cards .pass-card { break-inside: avoid; }
  .dash-main { padding: 0; }
}
.ledger td:nth-child(2) { white-space: nowrap; }

/* highlight posters above the footer */
.hl-school-innovation { --tc: var(--violet); }
.hl-student-innovation { --tc: var(--t-ai); }
.hl-awards { --tc: var(--green-deep); }
.hl-live-demo { --tc: var(--t-drone); }
.tp-art .tp-art-text { font-size: clamp(1.05rem, 2.6vw, 1.35rem); letter-spacing: 0; text-align: center; padding: 0 1rem; line-height: 1.25; }

/* ---------- release 3: admin, executive, events */
.admin-tabs { flex-wrap: nowrap; padding-bottom: .25rem; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hbars li { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr 3rem; gap: .6rem; align-items: center; font-size: .9rem; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 14px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.hb-fill { display: block; height: 100%; background: var(--green-deep); border-radius: 999px; }
.hb-blue .hb-fill { background: var(--blue); } .hb-violet .hb-fill { background: var(--violet); }
.hb-n { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .35rem; height: 170px; align-items: end; }
.col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .2rem; }
.col-bar { width: 100%; max-width: 34px; background: var(--blue); border-radius: 6px 6px 0 0; min-height: 2px; }
.col-n { font-size: .75rem; font-weight: 600; color: var(--navy); }
.col-d { font-size: .68rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) { .col-d { writing-mode: vertical-rl; transform: rotate(180deg); height: 3.2rem; } }
.mini-bar { display: block; width: 80px; height: 6px; background: #eef2f6; border-radius: 999px; overflow: hidden; margin-top: .3rem; }
.mini-bar span { display: block; height: 100%; background: var(--green-deep); }
.temp-pw { border: 2px solid var(--blue); background: var(--blue-soft); }
.temp-pw .big-id span { color: var(--navy); font-size: 1.5rem; }
.actions { white-space: nowrap; }
.actions form { display: inline-flex; gap: .35rem; flex-wrap: wrap; margin: 0; }
.link-plain { color: var(--blue-deep); }
.student-head { display: flex; gap: 1.25rem; align-items: center; }
.student-head h1 { margin-bottom: .2rem; }
.student-head p { margin: 0 0 .2rem; }
.avatar-lg.avatar-text { display: inline-grid; place-items: center; font-size: .8rem; color: var(--muted); }
.mt { margin-top: 1rem; }
.audit-table td.json { font-size: .8rem; max-width: 260px; overflow-wrap: anywhere; color: var(--ink); }
.audit-table td.json b { color: var(--muted); font-weight: 500; }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1rem; font-size: .9rem; }
.pager a, .pager span:not(.pager-info) { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pager span:not(.pager-info) { color: #b3bfcc; }
.pager-info { color: var(--muted); margin-left: auto; }
.inline-search { display: flex; gap: .4rem; }
.inline-search input { min-height: 36px !important; margin: 0 !important; }
.copy-line { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5rem .75rem; justify-content: space-between; }
.copy-line code { background: none; border: 0; overflow-wrap: anywhere; font-size: .9rem; }
.assign-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-top: 1rem; }
.assign-form label { flex: 1 1 320px; margin: 0; }
.assign-form select[multiple] { min-height: 7rem; }
.revoke summary { cursor: pointer; color: var(--red); font-size: .85rem; }
.revoke form { display: flex; gap: .35rem; margin-top: .35rem; }
.revoke input { min-height: 34px !important; margin: 0 !important; }
.program-grid { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .program-grid { grid-template-columns: 1fr 1fr; } }
.program { border-top: 6px solid var(--tc); margin: 0; }
.program h2 { color: var(--tc); }

/* attendance gate */
.gate-form { display: grid; gap: .25rem; }
@media (min-width: 800px) { .gate-form { grid-template-columns: 260px 1fr auto; align-items: end; gap: 1rem; } .gate-form .hint, .gate-form video { grid-column: 1 / -1; } .gate-form label, .gate-form .btn-row { margin-bottom: 1rem; } }
#gate-code { font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase; }
#scan-video { width: 100%; max-width: 420px; border-radius: var(--r-md); background: #000; }
.gate-result { display: flex; gap: 1.25rem; align-items: center; padding: 1.25rem; border-radius: var(--r-lg); margin-bottom: 1rem; border: 3px solid; }
.gate-result img, .gate-nophoto { width: 110px; height: 138px; object-fit: cover; border-radius: var(--r-md); flex: none; background: #fff; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.gate-result h2 { font-size: 1.5rem; margin: 0 0 .2rem; }
.gate-result p { margin: 0 0 .25rem; }
.gate-verdict { font-size: 1.35rem; font-weight: 700; }
.gate-ok { background: var(--green-soft); border-color: var(--green-deep); } .gate-ok .gate-verdict { color: var(--green-deep); }
.gate-warn { background: var(--amber-soft); border-color: #e0a100; } .gate-warn .gate-verdict { color: var(--amber); }
.gate-bad { background: var(--red-soft); border-color: var(--red); } .gate-bad .gate-verdict { color: var(--red); }

/* report print view */
.report-print { padding: 1.5rem 0; }
.report-head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.report-head img { height: 54px; width: auto; }
.report-head h1 { font-size: 1.4rem; margin: 0; }
.report-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.report-table { min-width: 0; font-size: .82rem; background: #fff; }
.report-table td, .report-table th { padding: .4rem .45rem; }

/* certificate + receipt */
.cert-wrap { padding: 1.5rem 0 2rem; }
.certificate { position: relative; overflow: hidden; background: #fff; aspect-ratio: 297 / 210; width: 100%; max-width: 1050px; margin-inline: auto; padding: 4.5% 7% 4%;
  border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; color: var(--navy);
  container-type: inline-size; }
.certificate::before { content: ""; position: absolute; inset: 2.2%; border: 2px solid var(--green); border-radius: 6px; pointer-events: none; }
.certificate::after { content: ""; position: absolute; inset: 3.2%; border: 1px solid rgba(75,42,140,.35); border-radius: 4px; pointer-events: none; }
.cert-band { position: absolute; left: 0; right: 0; top: 0; height: 1.6%; background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet)); }
.cert-logo { width: 34cqw; height: auto; margin-bottom: 1.2cqw; }
.cert-org { font-size: 1.5cqw; letter-spacing: .3em; color: var(--muted); margin: 0 0 1.4cqw; font-weight: 600; }
.certificate h1 { font-size: 4.2cqw; color: var(--violet); margin: 0 0 1.6cqw; letter-spacing: .01em; }
.cert-small { font-size: 1.6cqw; margin: 0; color: var(--muted); }
.cert-name { font-size: 4.6cqw; font-weight: 700; margin: .6cqw 0 .4cqw; border-bottom: 2px solid var(--green); padding: 0 3cqw .4cqw; }
.cert-school { font-size: 1.8cqw; margin: 0 0 .6cqw; }
.cert-sub { font-size: 2cqw; font-weight: 600; color: var(--green-deep); margin: .4cqw 0; }
.cert-body { font-size: 1.8cqw; line-height: 1.55; margin: 1cqw 0 0; }
.cert-foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; }
.cert-sign { display: flex; flex-direction: column; gap: .5cqw; font-size: 1.5cqw; text-align: center; }
.cert-line { width: 22cqw; border-bottom: 1.5px solid var(--navy); height: 4cqw; }
.cert-id { display: flex; flex-direction: column; align-items: center; gap: .3cqw; font-size: 1.3cqw; }
.cert-id .qr { width: 10cqw; height: 10cqw; }
.cert-id small { color: var(--muted); }
.cert-void { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14cqw; font-weight: 700; color: rgba(198,47,58,.22); transform: rotate(-18deg); pointer-events: none; }
.receipt { background: #fff; max-width: 720px; margin-inline: auto; padding: 2rem; border: 1px solid var(--line); border-top: 8px solid var(--green); box-shadow: var(--shadow); }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.rc-head img { height: 52px; width: auto; }
.rc-head p { margin: 0; text-align: right; font-weight: 600; }
.receipt h1 { margin: 1.25rem 0 1rem; }
.rc-foot { display: flex; gap: 1.25rem; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rc-foot .qr { width: 110px; height: 110px; }
.rc-foot p { margin: 0; font-size: .9rem; }
@media print {
  .page-certificate .wrap, .page-report .wrap { width: 100%; }
  .page-certificate .certificate { box-shadow: none; border: 0; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-certificate .receipt { box-shadow: none; }
  .report-table { font-size: 9pt; }
  .report-table th { background: #eef2f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page { margin: 10mm; }

/* ---------- CG-TECH Assessment */
.assess-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--cyan); margin: 0 0 .4rem; }
.assess-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 1.25rem; }
.assess-facts li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; }
.assess-facts strong { color: var(--green); font-size: 1.05rem; }
/* homepage section: the one dark, "future-tech" band on the page */
.assess-home { background: radial-gradient(120% 140% at 85% 0%, #1b2f63 0%, var(--navy) 55%, #071a33 100%); color: #dbe5f1; }
.assess-home h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: .25rem; }
.assess-q { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--green); font-weight: 600; margin-bottom: .8rem; }
.assess-home-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .assess-home-inner { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
.assess-levels { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 1.25rem; }
.assess-levels h3 { color: #fff; margin-bottom: .75rem; }
.assess-levels ol { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .45rem; }
.assess-levels li { display: flex; gap: .75rem; align-items: center; padding: .55rem .75rem; border-radius: var(--r-sm); background: rgba(255,255,255,.06); border-left: 4px solid var(--lv); }
.lvl-range { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; min-width: 4.2rem; }
.lvl-name { color: #e6eef7; }
.assess-levels .hint { color: #9fb2c8; }
.aw-excellence { --lv: #f5b400; } .aw-future { --lv: var(--cyan); } .aw-active { --lv: var(--green); } .aw-explorer { --lv: #8b7cf6; } .aw-development { --lv: #94a3b8; }

/* assessment form */
.assess-hero { background: radial-gradient(120% 140% at 85% 0%, #1b2f63 0%, var(--navy) 60%); color: #dbe5f1; padding: 2.25rem 0 1.5rem; }
.assess-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.assess-hero .lede { color: #c9d6e6; }
.assess-wrap { max-width: 900px; padding-top: 1.25rem; padding-bottom: 2rem; }
.assess-tracker { position: sticky; top: 64px; z-index: 10; display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); font-size: .9rem; }
.as-bar { flex: 1; height: 8px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.as-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .2s; }
.assess-h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.12rem; margin: 1.5rem 0 .75rem; }
.assess-sec { padding: 0; overflow: hidden; }
.assess-sec summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; }
.assess-sec summary::-webkit-details-marker { display: none; }
.assess-sec summary::after { content: "▾"; color: var(--muted); transition: transform .15s; }
.assess-sec[open] summary::after { transform: rotate(180deg); }
.assess-sec[open] summary { border-bottom: 1px solid var(--line); }
.as-num { font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }
.as-title { flex: 1; font-weight: 600; color: var(--navy); }
.as-sec-score { font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--mist); border-radius: 999px; padding: .2rem .65rem; white-space: nowrap; }
.as-sec-score.is-done { background: var(--green-soft); color: var(--green-deep); }
.as-q { border: 0; margin: 0; padding: 1rem 1.25rem; border-bottom: 1px solid #f0f3f6; min-width: 0; }
.as-q:last-child { border-bottom: 0; }
.as-q legend { font-weight: 500; color: var(--navy); padding: 0; margin-bottom: .6rem; float: left; width: 100%; }
.as-opts { clear: both; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.as-opt { margin: 0; cursor: pointer; font-weight: 400; }
.as-opt input { position: absolute; opacity: 0; }
.as-opt span { display: flex; justify-content: space-between; gap: .5rem; align-items: center; min-height: 44px; padding: .5rem .75rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.as-opt small { color: var(--muted); white-space: nowrap; }
.as-opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.as-opt input:checked + span small { color: var(--green); }
.as-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.as-missing legend { color: var(--red); }
.as-missing legend::after { content: " · answer required"; font-size: .85rem; }

/* results + report */
.assess-result { padding: 1.5rem 0 .5rem; }
.score-hero { text-align: center; border-radius: var(--r-lg); padding: 2rem 1rem; background: radial-gradient(120% 140% at 85% 0%, #1b2f63 0%, var(--navy) 60%); color: #dbe5f1; border-top: 6px solid var(--lv); }
.score-big { font-size: clamp(1.5rem, 4vw, 2rem); color: #9fb2c8; margin: .25rem 0; }
.score-big span { font-size: clamp(4rem, 14vw, 6.5rem); font-weight: 700; color: #fff; line-height: 1; }
.award-pill { display: inline-block; background: var(--lv); color: var(--navy); font-weight: 700; padding: .45rem 1.1rem; border-radius: 999px; margin: .5rem 0; }
.award-msg { font-style: italic; color: #e6eef7; max-width: 560px; margin: .5rem auto; }
.score-hero .hint { color: #9fb2c8; }
.center-row { justify-content: center; margin: 1.25rem 0 .5rem; }
.assess-report { background: #fff; max-width: 210mm; margin: 1rem auto 2rem; padding: 12mm 12mm 10mm; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .9rem; }
.ar-head { display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--navy); padding-bottom: .75rem; }
.ar-head img { height: 44px; width: auto; }
.ar-head h1 { font-size: 1.25rem; margin: 0; }
.ar-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--cyan); margin: 0; }
.ar-id { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; font-size: .8rem; }
.ar-top { display: grid; grid-template-columns: 1fr 170px; gap: 1rem; margin-top: 1rem; }
.ar-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin: 0; }
.ar-meta dt { font-size: .7rem; color: var(--muted); }
.ar-meta dd { margin: 0; color: var(--navy); }
.ar-score { border-radius: var(--r-md); background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .75rem; border-top: 5px solid var(--lv); }
.ar-score-label { font-size: .7rem; color: #9fb2c8; }
.ar-score-num { font-size: 2.6rem; font-weight: 700; line-height: 1.1; }
.ar-score-num small { font-size: .9rem; color: #9fb2c8; }
.ar-award { font-size: .72rem; font-weight: 700; color: var(--navy); background: var(--lv); border-radius: 999px; padding: .2rem .55rem; }
.ar-quote { text-align: center; font-style: italic; color: var(--muted); margin: .9rem 0; }
.assess-report h2 { font-size: .8rem; letter-spacing: .08em; text-transform: none; color: var(--muted); margin: 1rem 0 .5rem; }
.ar-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.25rem; }
.ar-cats li { display: grid; grid-template-columns: 1fr 70px 2.6rem; gap: .5rem; align-items: center; font-size: .82rem; }
.ar-cat-bar { height: 8px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.ar-cat-bar span { display: block; height: 100%; border-radius: 999px; }
.ar-cat-bar .hi { background: var(--green-deep); } .ar-cat-bar .mid { background: var(--cyan); } .ar-cat-bar .lo { background: #f0b429; }
.ar-cat-score { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy); }
.ar-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ar-box { border-radius: var(--r-sm); padding: .25rem .9rem .6rem; border-top: 4px solid; background: var(--mist); }
.ar-good { border-color: var(--green-deep); } .ar-improve { border-color: #e0a100; }
.ar-box ol { margin: 0; padding-left: 1.1rem; }
.ar-box li span { color: var(--muted); font-size: .8rem; }
.ar-summary p { margin: 0 0 .35rem; font-size: .85rem; }
.ar-verify .qr { width: 84px; height: 84px; margin-top: .4rem; }
.ar-levels-title { margin-top: .75rem !important; }
.ar-levels { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .75rem; }
.ar-levels li { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; color: var(--muted); }
.ar-levels li.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.ar-foot { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-size: .8rem; }
.ar-sign { display: flex; flex-direction: column; gap: .3rem; }
.ar-line { border-bottom: 1px solid var(--navy); height: 1.6rem; }
.ar-tag { grid-column: 1 / -1; text-align: center; font-size: .7rem; color: var(--muted); letter-spacing: .06em; margin: 0; border-top: 1px solid var(--line); padding-top: .5rem; }
@media (max-width: 700px) {
  .assess-report { padding: 1rem; }
  .ar-top, .ar-two, .ar-cats, .ar-meta { grid-template-columns: 1fr; }
  .ar-head { flex-wrap: wrap; } .ar-id { margin-left: 0; align-items: flex-start; }
}
@media print {
  .page-assess-report .assess-report { box-shadow: none; border: 0; margin: 0; padding: 0; max-width: none; font-size: 9.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-assess-report .ar-top { grid-template-columns: 1fr 150px; } .page-assess-report .ar-two { grid-template-columns: 1fr 1fr; }
  .page-assess-report .ar-cats { grid-template-columns: 1fr 1fr; } .page-assess-report .ar-meta { grid-template-columns: 1fr 1fr; }
}
.dl-group { font-size: 1rem; color: var(--violet); margin: 1.25rem 0 .6rem; }
.dl-group:first-of-type { margin-top: 0; }
.answer-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.answer-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid #f0f3f6; }
.answer-list strong { text-align: right; white-space: nowrap; }
.assess-score-sm { font-size: 1.3rem; color: var(--navy); }
.ar-id .badge { white-space: nowrap; }
@media print {
  .page-assess-report .assess-report { font-size: 8.5pt; }
  .page-assess-report .ar-head img { height: 34px; }
  .page-assess-report .ar-head h1 { font-size: 13pt; }
  .page-assess-report .ar-top { margin-top: 3mm; gap: 4mm; }
  .page-assess-report .ar-meta { gap: 1.5mm 4mm; }
  .page-assess-report .ar-score-num { font-size: 24pt; }
  .page-assess-report .ar-quote { margin: 2.5mm 0; }
  .page-assess-report .assess-report h2 { margin: 3mm 0 1.5mm; font-size: 7.5pt; }
  .page-assess-report .ar-cats { gap: 1mm 5mm; }
  .page-assess-report .ar-cats li { font-size: 8pt; }
  .page-assess-report .ar-two { gap: 4mm; }
  .page-assess-report .ar-summary p { font-size: 8pt; line-height: 1.4; }
  .page-assess-report .ar-verify .qr { width: 64px; height: 64px; }
  .page-assess-report .ar-levels { font-size: 7pt; }
  .page-assess-report .ar-foot { margin-top: 5mm; break-inside: avoid; }
  .page-assess-report .ar-line { height: 8mm; }
}
/* footer menu columns */
.footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; }
@media (min-width: 700px) { .footer-menu { grid-template-columns: repeat(3, auto); } }
.footer-menu h2 { font-size: .8rem; letter-spacing: .1em; color: #fff; margin: 0 0 .6rem; font-weight: 600; }
.footer-menu a { display: block; padding: .25rem 0; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.section-tight { padding-top: 1.5rem; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .footer-menu { grid-template-columns: repeat(3, auto); } }
.assess-tracker { top: 62px; }
@media (min-width: 900px) { .assess-tracker { top: 72px; } }


/* ================= release 5: tech typography, header, hero ================= */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, .section-title, .dash-title, .tp-caption h3, .hero h1 { font-family: var(--font-display); letter-spacing: .02em; }
h1 { font-size: clamp(1.35rem, 3vw, 2rem); }
h2 { font-size: 1.08rem; }
.section-title { font-size: clamp(1.2rem, 2.6vw, 1.65rem); }
h3, .btn, .sitenav a, .topnav a { letter-spacing: .01em; }
.tp-caption h3 { font-size: .98rem; margin: 0; }
.mono-id { font-family: var(--font); }

/* utility strip with social icons */
.utilbar { background: var(--navy); color: #c9d6e6; font-size: .78rem; }
.utilbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 36px; }
.util-text { font-family: var(--font-display); letter-spacing: .08em; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.social .is-off { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); cursor: default; }
.social .is-off .ic-in { fill: var(--navy); }
.social a.s-wa { background: #1fa855; }
.social a.s-wa .ic-in { fill: #1fa855; }
.social a.s-wa:hover { background: #178a45; color: #fff; }
.social a.s-wa:hover .ic-in { fill: #178a45; }
.social.social-top { margin: 0; gap: .35rem; flex-wrap: nowrap; }
.social.social-top a, .social.social-top .is-off { width: 26px; height: 26px; }
.social.social-top svg { width: 15px; height: 15px; }
@media (max-width: 520px) { .util-text { display: none; } .utilbar-inner { justify-content: center; min-height: 34px; } }

/* main bar */
.topbar-inner { flex-wrap: nowrap; min-height: 60px; gap: .75rem; }
.brand img { height: 28px; }
.site-menu { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.sitenav { display: flex; gap: .15rem; }
.sitenav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .4rem .7rem; border-radius: 999px; white-space: nowrap; font-size: .95rem; }
.sitenav a:hover { background: var(--mist); color: var(--navy); }
.sitenav a[aria-current="page"] { background: var(--green-soft); color: var(--green-deep); }
.topnav a:not(.btn) { font-weight: 600; font-size: .95rem; }
.menu-toggle, .mobile-cta { display: none; }

@media (max-width: 899px) {
  .topbar-inner { min-height: 54px; gap: .5rem; }
  .brand img { height: 22px; }
  .mobile-cta { display: inline-flex; margin-left: auto; min-height: 36px; padding: .3rem .9rem; }
  .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; flex: none; }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -6px; } .menu-toggle .bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .topbar { position: sticky; }
  .site-menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(11,37,69,.35); padding: .5rem 1rem 1rem; }
  .js .site-menu:not(.open) { display: none; }
  .no-js .site-menu, html:not(.js) .site-menu { position: static; box-shadow: none; }
  .sitenav, .topnav { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
  .sitenav a, .topnav a:not(.btn) { display: block; padding: .8rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; background: none; }
  .sitenav a[aria-current="page"] { background: none; color: var(--green-deep); }
  .topnav .btn { margin-top: .75rem; width: 100%; min-height: 44px; }
  .topnav .btn-primary { display: none; } /* Register already sits next to the menu button */
  .page-dash .topnav a:not(.btn) { display: block; }
}

/* hero sizing */
.hero-inner { padding: 2rem 0 2.5rem; gap: 1.5rem; }
.hero-logo { width: min(380px, 100%); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1rem, 2vw, 1.3rem); }
.hero .lede { font-size: 1.05rem; max-width: 46ch; }
.poster-frame { max-width: 100%; width: fit-content; }
.poster-frame img { max-height: min(72vh, 620px); width: auto; max-width: 100%; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2.5rem; padding: 2.5rem 0 3rem; }
  .hero.has-poster .poster-frame { margin-left: auto; margin-right: 0; }
}
@media (max-width: 899px) {
  .hero-copy { text-align: center; }
  .hero-copy .hero-logo { margin-inline: auto; width: min(280px, 78%); }
  .hero .lede { margin-inline: auto; font-size: 1rem; }
  .hero-facts { justify-content: center; }
  .hero .btn-row { justify-content: center; }
  .hero .btn-row .btn { flex: 1 1 220px; }
  .hero.has-poster .poster-frame img { max-height: 62svh; }
  .hero.has-poster .hero-inner { padding-top: 1rem; }
}
@media (max-width: 480px) {
  .hero .btn-lg { min-height: 48px; font-size: 1rem; padding: .7rem 1rem; }
  .section { padding: 2.25rem 0; }
}

/* video: narrower on desktop, centred */
.video-section .section-title { text-align: center; }

/* footer */
.social-foot { margin-top: 1rem; }
.footer-copy { font-size: .8rem; color: #93a6bf; margin-top: .75rem; margin-bottom: 0; }
@media (max-width: 600px) { .footer-copy, .footer-note { text-align: center; } .footer-brand { text-align: center; margin-inline: auto; } .footer-brand .social { justify-content: center; } }
@media (max-width: 520px) { .tp-caption h3, .highlight h3 { font-size: .82rem; } .tp-caption { padding: .7rem .75rem .8rem; } }

/* ================= HR & Volunteer portal (/hr) ================= */
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--blue); flex: none; }
.inline-form .check { align-self: center; margin-bottom: 0; }
.txt-red { color: var(--red); font-weight: 600; }
.pre-line { white-space: pre-line; }
.wrap-cell { white-space: normal !important; min-width: 220px; }
.input-sm { width: 7.5rem !important; min-height: 38px; padding: .35rem .5rem; }
.narrow-page { max-width: 820px; }
.narrow-form { max-width: 760px; }
.hr-page { padding: 1.5rem 0 2.5rem; }
.success-panel { border-top: 5px solid var(--green); }
.eyebrow { font-family: var(--font-display); letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; color: var(--green); margin: 0 0 .75rem; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--green-soft); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.hr-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(18,163,189,.35), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(75,42,140,.45), transparent 60%), var(--navy); color: #e8eef6; }
.hr-hero-inner { display: grid; gap: 2rem; padding: 3rem 0; align-items: center; }
.hr-hero h1 { color: #fff; font-size: clamp(1.6rem, 4.2vw, 2.7rem); line-height: 1.15; margin: 0 0 1rem; }
.hr-hero .lede { color: #cdd9e7; font-size: 1.1rem; max-width: 46ch; }
.hr-zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hr-zones li { border-radius: var(--r-md); min-height: 96px; display: flex; align-items: flex-end; padding: .9rem; font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; color: #fff; border: 1px solid rgba(255,255,255,.18); }
.hr-zones .zone-ai { background: linear-gradient(135deg, #1f6feb, #12a3bd); }
.hr-zones .zone-robotics { background: linear-gradient(135deg, #13804a, #8cc63f); }
.hr-zones .zone-space { background: linear-gradient(135deg, #4b2a8c, #8a4fd8); }
.hr-zones .zone-drone { background: linear-gradient(135deg, #0b8a96, #45c4d6); }
@media (min-width: 900px) { .hr-hero-inner { grid-template-columns: 1.25fr .75fr; padding: 4rem 0; } .hr-zones li { min-height: 120px; } }
.section-alt { background: var(--mist); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--green-soft); border: 2px solid var(--green-deep); }
.job-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.job-card { display: flex; flex-direction: column; gap: .6rem; margin: 0; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.job-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.job-card strong { color: var(--navy); font-size: 1.05rem; }
.job-apply { color: var(--blue-deep); font-weight: 600; margin-top: auto; }
.tag-plain { background: var(--mist); color: var(--ink); border: 1px solid var(--line); }
.vol-roles { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.vol-roles li { padding: .5rem .9rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-weight: 600; font-size: .92rem; }
.hr-college-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.hr-college-band > div { max-width: 640px; }
.hr-stats .stat strong { font-size: 1.6rem; }
.job-detail { align-items: start; }
.form-sections fieldset { border: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; margin: 0 0 .5rem; min-width: 0; }
.form-sections fieldset:first-of-type { border-top: 0; padding-top: 0; }
.form-sections legend { font-family: var(--font-display); font-size: .9rem; color: var(--violet); padding: 0 0 .5rem; }
.contact-links a { text-decoration: none; display: flex; flex-direction: column; gap: .25rem; color: var(--ink); }
.contact-links a:hover { border-color: var(--blue); }
.verify-form { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; }
.verify-form label { flex: 1 1 260px; margin: 0; }
.verify-form .hint { flex-basis: 100%; margin: 0; }
.verify-result { border-top: 6px solid var(--line); }
.verify-result.is-ok { border-top-color: var(--green-deep); } .verify-result.is-ok h2 { color: var(--green-deep); }
.verify-result.is-bad { border-top-color: var(--red); } .verify-result.is-bad h2 { color: var(--red); }

/* staff pages */
.grid-2.wide-left { align-items: start; }
@media (min-width: 1000px) { .grid-2.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; }
.inline-form label { margin: 0; flex: 0 1 auto; }
.inline-form input:not([type=checkbox]):not([type=radio]), .inline-form select { min-height: 40px; }
td .inline-form, td form { margin: 0; }
td.actions form { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.sub-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .75rem .9rem; margin-bottom: .6rem; background: #fbfdfc; }
.sub-card p { margin: 0 0 .35rem; }
.doc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.doc-row .link-btn { color: var(--blue-deep); }
.person-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.person-head .avatar-lg { object-fit: cover; }
span.avatar-lg { display: inline-grid; place-items: center; background: var(--green-soft); color: var(--green-deep); font-size: 2rem; font-weight: 700; }
.big-code { font-size: 1.5rem; letter-spacing: .06em; color: var(--navy); background: #fff; display: inline-block; padding: .4rem .8rem; border-radius: var(--r-sm); }
.todo-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.steps-plain { padding-left: 1.2rem; display: grid; gap: .3rem; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.mini-stats span { display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); background: var(--mist); border-radius: var(--r-sm); padding: .6rem .7rem; }
.mini-stats strong { font-size: 1.25rem; color: var(--navy); font-variant-numeric: tabular-nums; }
p.unread { border-left: 3px solid var(--blue); padding-left: .6rem; }
.pipeline { list-style: none; display: flex; gap: .3rem; overflow-x: auto; padding: 0 0 .5rem; margin: 0 0 1rem; counter-reset: st; }
.pipeline li { flex: 0 0 auto; padding: .4rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef1f4; color: #5a6f86; white-space: nowrap; }
.pipeline li.is-done { background: var(--green-soft); color: var(--green-deep); }
.pipeline li.is-current { background: var(--green-deep); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; max-height: 420px; overflow-y: auto; }
.timeline li { border-left: 2px solid var(--line); padding-left: .75rem; }
.timeline p { margin: .25rem 0 0; }
.rating-table { min-width: 0; }
.rating-table td, .rating-table th { text-align: center; } .rating-table td:first-child, .rating-table th:first-child { text-align: left; }
.rating-table input { width: 20px; height: 20px; accent-color: var(--blue); }
.report-grid .report-card { text-decoration: none; display: flex; flex-direction: column; gap: .3rem; color: var(--ink); }
.report-grid .report-card span { color: var(--blue-deep); font-size: .9rem; }
.report-grid .report-card:hover { border-color: var(--blue); }
.qr-2fa { width: 200px; height: 200px; margin: .5rem auto 1rem; }
.auth-stack { display: grid; gap: 1rem; justify-items: center; }
.auth-stack .auth-card { width: 100%; }
.copy-target { word-break: break-all; }

/* printable agreements & statements */
.doc-wrap { padding: 1.5rem 0 2.5rem; }
.hr-doc { position: relative; overflow: hidden; background: #fff; max-width: 820px; margin: 0 auto; padding: 2.5rem 3rem; border: 1px solid var(--line); border-radius: var(--r-sm); line-height: 1.65; container-type: inline-size; }
.hr-doc h1 { font-size: 1.35rem; text-align: center; margin: 1.25rem 0 1.5rem; color: var(--violet); }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 3px solid var(--green); padding-bottom: .9rem; }
.doc-head img { height: 34px; width: auto; }
.doc-head div { text-align: right; font-size: .9rem; }
.doc-ref { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.doc-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; font-size: .92rem; }
.sign-line { display: block; border-bottom: 1.5px solid var(--navy); height: 3rem; margin-bottom: .4rem; position: relative; }
.sign-line em { position: absolute; bottom: .3rem; left: 0; color: var(--green-deep); font-size: .85rem; }
.hr-doc.is-draft .cert-void { font-size: 18cqw; }
.statement-table { min-width: 0; margin: 1rem 0; }
.statement-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.statement-table tr.total td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--navy); }
@media (max-width: 600px) { .hr-doc { padding: 1.25rem; } .doc-signs { grid-template-columns: 1fr; } }

/* ID cards: CR80 size when printed */
.idcard-grid { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: 2rem; }
.idcard { width: 340px; aspect-ratio: 85.6 / 54; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; break-inside: avoid; }
.idcard header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--navy); }
.idcard header img { height: 18px; width: auto; filter: brightness(1.1); background: #fff; border-radius: 4px; padding: 2px 4px; }
.idcard header span { color: #fff; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; }
.idcard-volunteer header { background: linear-gradient(90deg, var(--green-deep), var(--cyan)); }
.idc-body { flex: 1; display: grid; grid-template-columns: 70px 1fr 70px; gap: 10px; align-items: center; padding: 8px 12px; }
.idc-photo { width: 70px; height: 86px; object-fit: cover; border-radius: 6px; border: 2px solid var(--green); }
.idc-nophoto { display: grid; place-items: center; background: var(--mist); color: var(--muted); font-size: 11px; }
.idc-info { display: flex; flex-direction: column; gap: 1px; font-size: 11px; line-height: 1.3; min-width: 0; }
.idc-info strong { font-size: 14px; color: var(--navy); }
.idc-info .mono-id { font-weight: 700; color: var(--violet); }
.idc-info small { color: var(--muted); font-size: 10px; }
.idc-body .qr { width: 70px; height: 70px; }
.idcard footer { font-size: 9px; text-align: center; padding: 3px; color: var(--muted); border-top: 1px solid var(--line); }
@media print {
  .page-idcards .idcard-grid { gap: 4mm; }
  .page-idcards .idcard { width: 85.6mm; height: 54mm; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-document .hr-doc { border: 0; padding: 0; max-width: none; }
  .page-document .no-print, .page-idcards .no-print { display: none !important; }
}
.panel fieldset:not(.form-sections fieldset) { border: 0; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 899px) {
  .hr-hero-inner { padding: 2rem 0; gap: 1.5rem; }
  .hr-hero .btn-row .btn { flex: 1 1 200px; }
  .hr-zones li { min-height: 64px; font-size: .72rem; padding: .7rem; }
}
