/* Paediatric Hand Registry — follows the Hand Registry design: indigo-to-teal header,
   white rounded sheets, pill badges, teal primary action. */

@font-face {
  font-family: 'Source Sans 3';
  src: url('assets/source-sans-3.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
/* Bangla glyphs fall through to Kalpurush (Source Sans has none) */
@font-face {
  font-family: 'Kalpurush';
  src: url('assets/kalpurush.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

:root {
  --primary: #3B43C8;
  --primary-700: #2E3299;
  --primary-50: #EEF0FF;
  --teal: #0F8F80;
  --teal-700: #0C7468;
  --teal-50: #E6F6F3;

  --ink-0: #FFFFFF;
  --ink-50: #F8FAFC;
  --ink-100: #F1F5F9;
  --ink-200: #E2E8F0;
  --ink-300: #CBD5E1;
  --ink-500: #586677;
  --ink-600: #475569;
  --ink-800: #1E293B;
  --ink-900: #0F172A;
  --app-bg: #EEF2FF;

  --warn: #C2410C;
  --warn-50: #FFF1E6;
  --err: #DC2626;
  --err-50: #FEF2F2;
  --violet: #6D28D9;
  --violet-50: #F1EAFE;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px -6px rgba(15, 23, 42, 0.14);
  --font: 'Source Sans 3', 'Kalpurush', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--app-bg);
  -webkit-font-smoothing: antialiased;
}
/* Bangla needs a little more line height and size to read comfortably */
:lang(bn) body, body:lang(bn) { line-height: 1.65; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }

/* ── layout ── */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-500); }
.small { font-size: 14px; }
.center { text-align: center; }
.page { padding-top: 18px; padding-bottom: 64px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── top bar ── */
.topbar { background: var(--ink-0); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; background: none; border: none; padding: 0; text-align: left; }
.brand-logo { height: 46px; width: auto; flex-shrink: 0; display: block; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, #12998A, #0C7468); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.brand-name { font-weight: 800; font-size: 16px; line-height: 1.15; }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-500); text-transform: uppercase; }

/* ── hero (public home, sign-in) ── */
.hero {
  background: linear-gradient(135deg, #5B4FE0 0%, #3F45D6 38%, #2D7FBF 72%, #129A8A 100%);
  color: #fff; padding: 34px 0 54px;
}
.hero h1 { font-size: 30px; font-weight: 800; }
.hero p { opacity: 0.93; margin-top: 10px; font-size: 17px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-bottom: 8px; }
.sheet { background: var(--ink-0); border-radius: 26px 26px 0 0; margin-top: -26px; padding: 22px 0 8px; position: relative; }

/* ── cards ── */
.card { background: var(--ink-0); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; border: 1px solid var(--ink-200); }
.card-flat { background: var(--ink-50); border-radius: var(--radius); padding: 14px; border: 1px solid var(--ink-200); }
.card h2 { font-size: 19px; font-weight: 800; }
.card h3 { font-size: 16px; font-weight: 700; }
.card-link { display: block; width: 100%; text-align: left; text-decoration: none; color: inherit; background: var(--ink-0); }
.card-link:hover { border-color: var(--ink-300); box-shadow: var(--shadow-md); }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-500); margin: 6px 2px 0; }

.action-tile { display: flex; align-items: center; gap: 14px; }
.action-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-50); color: var(--primary); }
.action-icon.teal { background: var(--teal-50); color: var(--teal); }
.action-icon.violet { background: var(--violet-50); color: var(--violet); }
.action-title { font-weight: 800; font-size: 17px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 13px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: filter 120ms, background 120ms;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #12998A, #0C7468); color: #fff; box-shadow: 0 8px 18px -8px rgba(12, 116, 104, 0.6); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-indigo { background: var(--primary); color: #fff; }
.btn-indigo:hover:not(:disabled) { background: var(--primary-700); }
.btn-ghost { background: var(--ink-0); color: var(--ink-800); border-color: var(--ink-300); }
.btn-ghost:hover:not(:disabled) { background: var(--ink-100); }
.btn-danger { background: var(--ink-0); color: var(--err); border-color: #F3B4B4; }
.btn-danger:hover:not(:disabled) { background: var(--err-50); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; padding: 0; color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ── forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 15px; }
.hint { font-size: 13.5px; color: var(--ink-500); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 12px;
  border: 1.5px solid var(--ink-300); background: var(--ink-0);
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 67, 200, 0.14); }
.field-err { color: var(--err); font-size: 14px; font-weight: 600; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  min-height: 42px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--ink-300);
  background: var(--ink-0); font-weight: 600; color: var(--ink-800);
}
.choice[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.check { display: flex; gap: 11px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--ink-300); border-radius: 12px; background: var(--ink-0); }
.check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--teal); }

/* ── notices ── */
.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; border: 1px solid; }
.notice-info { background: var(--primary-50); border-color: #D5D9FB; color: #23277A; }
.notice-ok { background: var(--teal-50); border-color: #BFE6DF; color: #0A5C53; }
.notice-warn { background: var(--warn-50); border-color: #F8D3B5; color: #8A2F08; }
.notice-err { background: var(--err-50); border-color: #F8C9C9; color: #991B1B; }
.notice strong { font-weight: 800; }

/* ── pills ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-pending { background: var(--warn-50); color: var(--warn); }
.pill-verified { background: var(--teal-50); color: var(--teal-700); }
.pill-closed { background: var(--ink-100); color: var(--ink-600); }
.pill-urgent { background: var(--err-50); color: var(--err); }
.pill-draft { background: var(--violet-50); color: var(--violet); }
.pill-plain::before { display: none; }

/* ── steps ── */
.steps { display: flex; gap: 6px; }
.step-dot { height: 5px; flex: 1; border-radius: 99px; background: var(--ink-200); }
.step-dot.on { background: var(--teal); }

/* ── uploads ── */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ink-100); border: 1px solid var(--ink-200); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(15, 23, 42, 0.72); color: #fff; font-size: 16px; line-height: 1; }
.thumb-bar { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--teal); }
.thumb-state { position: absolute; inset: auto 0 0 0; padding: 2px 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(15, 23, 42, 0.66); text-align: center; }
.add-tile { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--ink-300); background: var(--ink-50); display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-600); padding: 6px; }
.add-tile input { display: none; }

/* ── messages ── */
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.bubble { max-width: 88%; align-self: flex-start; background: var(--ink-100); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.bubble.staff { background: var(--teal-50); }
.bubble.mine { align-self: flex-end; background: var(--primary-50); border-radius: 14px 14px 4px 14px; }
.bubble-who { font-size: 12px; font-weight: 700; color: var(--ink-500); }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── rich text (guidance, awareness pages) ── */
.rich p { margin: 0 0 10px; }
.rich h4 { margin: 16px 0 6px; font-size: 16.5px; font-weight: 800; color: var(--primary-700); }
.rich h4:first-child { margin-top: 0; }
.rich ul { margin: 0 0 10px; padding-left: 22px; }
.rich li { margin-bottom: 5px; }
.rich > :last-child { margin-bottom: 0; }

/* a block that opens on tap: library groups, and the questions of a question-and-answer page */
.fold { border: 1.5px solid var(--ink-200); border-radius: var(--radius); background: var(--ink-0); }
.fold > summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; font-weight: 700; font-size: 16.5px; color: var(--ink-900); cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; margin-left: auto; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); font-weight: 800; display: grid; place-items: center; }
.fold[open] > summary::after { content: '–'; }
.fold[open] > summary { color: var(--primary-700); }
.fold-count { font-weight: 600; font-size: 14px; color: var(--ink-500); }
.fold-body { padding: 0 14px 14px; }
.back-btn { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--ink-200); background: var(--ink-0); color: var(--ink-800); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.back-btn:hover { background: var(--ink-100); }

/* ── Education Hub ── */
.hub-dots { display: inline-flex; gap: 5px; }
.hub-dot { width: 22px; height: 7px; border-radius: 4px; background: var(--ink-200); }
.hub-dot.on { background: var(--teal); }
.hub-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.hub-step.locked { opacity: 0.55; cursor: not-allowed; }
.hub-num { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--primary-50); color: var(--primary-700); }
.hub-step.passed .hub-num { background: var(--teal); color: #fff; }
.hub-option { display: flex; gap: 11px; align-items: flex-start; width: 100%; text-align: left; padding: 13px; border: 1.5px solid var(--ink-300); border-radius: 12px; background: var(--ink-0); font: inherit; color: inherit; cursor: pointer; }
.hub-option[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-50); }
.hub-mark { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; border: 2px solid var(--ink-300); border-radius: 50%; background: #fff; }
.hub-mark.box { border-radius: 5px; }
.hub-option[aria-pressed="true"] .hub-mark { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.hub-review { display: flex; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--ink-50); font-size: 15px; }
.hub-review.right { background: var(--teal-50); color: #0A5C53; font-weight: 600; }
.hub-review.wrong { background: var(--err-50); color: #991B1B; }
.hub-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--ink-50); }
.hub-row.me { background: var(--primary-50); }
.hub-place { width: 28px; font-weight: 800; color: var(--ink-500); text-align: center; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.pick-list .check { padding: 9px 11px; font-size: 15px; }

/* ── staff workspace ── */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tab { min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--ink-0); font-weight: 700; font-size: 14.5px; color: var(--ink-800); white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.tab .count { margin-left: 6px; padding: 0 7px; border-radius: 99px; background: rgba(15, 23, 42, 0.09); font-size: 12.5px; }
.tab[aria-selected="true"] .count { background: rgba(255, 255, 255, 0.24); }

.case-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.case-name { font-weight: 800; font-size: 17px; }
.case-meta { font-size: 14px; color: var(--ink-500); }
.case-problem { font-size: 15px; color: var(--ink-800); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 15px; }
.kv dt { color: var(--ink-500); margin: 0; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media-grid a, .media-grid video { display: block; border-radius: 12px; overflow: hidden; background: #0F172A; aspect-ratio: 1; }
.media-grid img, .media-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-500); padding: 8px 10px; border-bottom: 1px solid var(--ink-200); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; letter-spacing: 0.08em; background: var(--ink-100); padding: 2px 8px; border-radius: 7px; }

/* ── statistics ── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { border-radius: var(--radius); padding: 14px; color: #fff; background: linear-gradient(135deg, #4338CA, #3B43C8); }
.stat.teal { background: linear-gradient(135deg, #12998A, #0C7468); }
.stat.violet { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.stat.slate { background: linear-gradient(135deg, #475569, #334155); }
.stat-n { font-size: 30px; font-weight: 800; line-height: 1; }
.stat-l { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; opacity: 0.92; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-line { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 38px; gap: 10px; align-items: center; font-size: 14.5px; }
.bar-track { height: 12px; border-radius: 99px; background: var(--ink-100); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--teal); }
.bar-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── homepage banner: 50 abstract pictures cross-fading behind the ways in ── */
.banner { position: relative; overflow: hidden; color: #fff; background: #2E3299; min-height: calc(100svh - 58px); display: flex; align-items: center; }
.banner-art { position: absolute; inset: 0; }
.banner-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; }
.banner-art img.on { opacity: 1; }
.banner-art img.drift { animation: bannerDrift 24s ease-in-out infinite alternate; }
@keyframes bannerDrift { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(20, 16, 70, 0.78) 0%, rgba(20, 16, 70, 0.5) 38%, rgba(20, 16, 70, 0) 62%); }
.banner-in { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: 56px; }
.banner-copy { max-width: 640px; }
.banner h1 { font-size: 60px; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-shadow: 0 2px 24px rgba(15, 23, 42, 0.35); }
.banner-lead { font-size: 23px; font-weight: 600; margin-top: 16px; max-width: 600px; white-space: pre-line; }
.banner-text { font-size: 18px; margin-top: 10px; max-width: 560px; opacity: 0.95; }
.banner-totals { display: flex; gap: 8px 26px; flex-wrap: wrap; margin-top: 26px; font-size: 15px; opacity: 0.96; }
.banner-totals strong { font-size: 22px; font-weight: 800; margin-right: 4px; }
.banner-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.glass-tile { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; color: #fff; padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.32); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 150ms, transform 150ms; }
.glass-tile:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }
.glass-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, 0.2); }
.glass-title { display: block; font-weight: 800; font-size: 17px; line-height: 1.25; }
.glass-sub { display: block; font-size: 14px; opacity: 0.9; }
.banner-controls { position: absolute; right: 18px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; border-radius: 99px;
  background: rgba(15, 23, 42, 0.42); color: #fff; font-size: 12.5px; font-variant-numeric: tabular-nums; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.banner-controls button { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: #fff; font-size: 15px; line-height: 1; }
.banner-controls button:hover { background: rgba(255, 255, 255, 0.2); }
.banner-controls span { margin-left: 4px; }
.info-panel { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.info-panel .step-card { border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 14px; }
.about-quote { font-size: 19px; font-weight: 700; color: var(--primary-700); line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .banner-art img { transition: none; animation: none !important; } }
@media (max-width: 900px) {
  /* phones: the picture sits on top, the words underneath it */
  .banner { min-height: 0; display: block; background: #1E1B4B; }
  .banner-art { position: relative; height: 40svh; min-height: 250px; }
  .banner-art img { object-position: 70% 62%; }
  .banner-shade { background: linear-gradient(180deg, rgba(30, 27, 75, 0) 58%, #1E1B4B 100%); }
  .banner-controls { top: 10px; bottom: auto; right: 10px; }
  .banner-in { padding-top: 4px; padding-bottom: 26px; }
  .banner-tiles { grid-template-columns: 1fr; }
  .banner h1 { font-size: 38px; }
  .banner-lead { font-size: 19px; }
  .banner-text { font-size: 16.5px; }
  .glass-tile { padding: 12px 14px; }
  .banner .btn { flex: 1 1 100%; }
}

/* ── public homepage ── */
.home-nav { display: flex; gap: 4px; }
.nav-link { background: none; border: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink-600); }
.nav-link:hover { background: var(--ink-100); color: var(--ink-900); }
.hero-home { padding: 56px 0 0; position: relative; overflow: hidden; }
.hero-home h1 { font-size: 52px; font-weight: 800; max-width: 640px; line-height: 1.12; }
.hero-home p { max-width: 560px; font-size: 18px; }
.hero-home .hero-lead { font-size: 22px; font-weight: 600; opacity: 1; margin-top: 14px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-art { width: 100%; max-width: 340px; justify-self: center; filter: drop-shadow(0 22px 40px rgba(15, 23, 42, 0.28)); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 38px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 20px; padding: 18px 22px; }
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-n { font-size: 38px; font-weight: 800; line-height: 1; }
.hero-stat-l { font-size: 15px; opacity: 0.95; }
.hero-wave { display: block; width: 100%; height: 64px; margin-top: 34px; }
.home-main { background: var(--app-bg); padding: 18px 0 8px; }
.mission { position: relative; text-align: center; padding: 44px 28px; border-radius: 24px; background: linear-gradient(135deg, #1E1B4B, #2E3299 60%, #0C7468); color: #fff; overflow: hidden; }
.mission-mark { position: absolute; top: -18px; left: 22px; font-size: 150px; line-height: 1; opacity: 0.16; font-family: Georgia, serif; }
.mission-q { font-size: 26px; font-weight: 700; line-height: 1.4; max-width: 780px; margin: 0 auto; }
.mission-s { margin: 16px auto 0; max-width: 640px; opacity: 0.9; font-size: 17px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 28px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #12998A, #0C7468); }
.cta-band h2 { font-size: 26px; font-weight: 800; }
.cta-band p { margin-top: 6px; opacity: 0.95; font-size: 17px; max-width: 560px; }
.btn-white { background: #fff; color: var(--teal-700); min-height: 52px; font-size: 17px; box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.5); }
.btn-white:hover { filter: brightness(0.97); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); min-height: 52px; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.home-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-h2 { font-size: 24px; font-weight: 800; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step-card { display: flex; flex-direction: column; gap: 8px; }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, #4338CA, #3B43C8); }

@media (max-width: 900px) {
  .home-actions { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 190px; order: -1; justify-self: start; }
  .hero-home h1 { font-size: 36px; }
  .hero-home .hero-lead { font-size: 19px; }
  .hero-home { padding-top: 26px; }
  .hero-stats { margin-top: 26px; padding: 14px 16px; }
  .hero-stat-n { font-size: 28px; }
  .hero-stat-l { font-size: 13px; }
  .hero-wave { height: 40px; margin-top: 24px; }
  .mission { padding: 34px 20px; }
  .mission-q { font-size: 21px; }
}
@media (max-width: 640px) {
  .home-nav { display: none; }
  .home-actions, .steps-grid { grid-template-columns: 1fr; }
}

.footer { padding: 26px 0 40px; color: var(--ink-500); font-size: 13.5px; text-align: center; }

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}
/* phones: each table row becomes a card with "Column: value" lines */
@media (max-width: 640px) {
  .tbl-wrap { overflow-x: visible; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--ink-200); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--ink-0); }
  .tbl td { border: none; padding: 3px 0; text-align: left !important; overflow-wrap: anywhere; }
  .tbl td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-500); font-size: 13px; font-weight: 400; }
  .tbl td.row { display: flex; margin-top: 6px; }
  .tbl td:first-child { font-weight: 700; }
  .topbar-in { min-height: 54px; }
  .btn { min-height: 48px; }
  .btn-sm { min-height: 40px; }
  .kv { grid-template-columns: 116px 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 22px 18px; }
  .cta-band .btn { width: 100%; }
}
@media (max-width: 420px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 104px 1fr; }
}

/* aoss.css — the association site's look, layered over the shared stylesheet:
   green and sand from the AOSS seal, white pages. */
.aoss { --green: #0B9B4A; --green-700: #077A39; --green-50: #E9F7EE; --sand: #E8C4A0; --sand-50: #FBF4EC; --sand-700: #B98657; --primary: var(--green-700); --primary-700: #055C2B; --primary-50: var(--green-50); }
body { background: #fff; }
.aoss .topbar-in { min-height: 64px; }
.aoss .brand-logo { height: 50px; }
.aoss-nav { display: flex; gap: 2px; margin-left: auto; }
.aoss .nav-link { background: none; border: 0; padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--ink-600); font-size: 15px; text-decoration: none; }
.aoss .nav-link:hover, .aoss .nav-link.on { color: var(--green-700); background: var(--green-50); }
.aoss .nav-link.touch { color: #3B43C8; font-weight: 800; }
.aoss .burger { display: none; background: none; border: 1px solid var(--ink-200); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; }
.aoss-menu { display: flex; flex-direction: column; padding-bottom: 12px; border-top: 1px solid var(--ink-200); }
.aoss-menu .nav-link { text-align: left; padding: 12px 10px; font-size: 17px; }
.btn-green { background: var(--green); color: #fff; } .btn-green:hover { background: var(--green-700); }
.btn-white { background: #fff; color: var(--green-700); }

.aoss-ticker { display: flex; align-items: center; gap: 12px; background: var(--ink-900); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 14px; overflow: hidden; }
.aoss-ticker b { background: var(--sand-700); padding: 3px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; }
.aoss-ticker-track { white-space: nowrap; overflow: hidden; flex: 1; }
.aoss-ticker-track span { display: inline-block; animation: aoss-tick 30s linear infinite; }
.aoss-ticker-track a { color: var(--sand); font-weight: 700; text-decoration: none; }
@keyframes aoss-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.aoss-hero { display: flex; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--sand-50), #fff 55%, var(--green-50)); border-radius: 22px; padding: 34px 28px; }
.aoss-hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; }
.aoss-tag { font-size: 18px; color: var(--ink-700, #2E3B34); margin-top: 10px; }
.aoss-seal { width: min(260px, 36%); flex-shrink: 0; background: #fff; border-radius: 50%; padding: 18px; box-shadow: var(--shadow-md); border: 6px solid var(--sand-50); }
.aoss .stat.teal { border-top: 4px solid var(--green); }
.aoss-president { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; background: var(--sand-50); border: 0; }
.aoss-president.nophoto { grid-template-columns: 1fr; }
.aoss-president img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }

.aoss-event { display: flex; gap: 14px; align-items: flex-start; }
.aoss-date { width: 68px; flex-shrink: 0; background: var(--green-50); color: var(--green-700); border-radius: 12px; text-align: center; padding: 8px 4px; font-weight: 800; font-size: 22px; line-height: 1.1; }
.aoss-date small { display: block; font-size: 11px; letter-spacing: .06em; font-weight: 700; }
.aoss-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aoss-video { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.aoss-thumb { border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #1E293B, #334155); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.aoss-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aoss-yt { display: inline-flex; margin-top: 8px; background: #DC2626; color: #fff; font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 8px; }
.aoss-upd { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--ink-200); text-decoration: none; color: inherit; }
.aoss-upd:last-child { border-bottom: 0; }
.aoss-upd i { font-style: normal; width: 40px; height: 40px; border-radius: 9px; background: var(--sand-700); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.aoss-upd b { display: block; } .aoss-upd small { display: block; }
.aoss-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.aoss-person { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.aoss-person img, .aoss-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.aoss-avatar { background: linear-gradient(135deg, var(--sand), var(--sand-700)); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.aoss-person b { font-size: 16px; } .aoss-person span { color: var(--green-700); font-weight: 700; font-size: 14px; }
.aoss-notice { border-left: 4px solid var(--green); }
.aoss-cover { width: 100%; border-radius: 16px; max-height: 420px; object-fit: cover; }
.aoss-touch { display: block; background: linear-gradient(120deg, #2E3299, #3B43C8 55%, #0F8F80); color: #fff; border-radius: 22px; padding: 28px; text-decoration: none; }
.aoss-touch h2 { color: #fff; font-size: 24px; margin: 10px 0 8px; } .aoss-touch p { opacity: .95; max-width: 60ch; margin-bottom: 14px; }
.aoss-quick { background: var(--ink-100); padding: 12px 0; margin-top: 30px; }
.aoss-quick .wrap-wide { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.aoss-quick button, .aoss-quick a { background: none; border: 0; border-right: 1px solid var(--ink-300); padding: 6px 16px; font-weight: 700; color: var(--ink-600); text-decoration: none; font-size: 15px; }
.aoss-quick > div > :last-child { border-right: 0; }
.aoss-footer { background: #14201A; color: #C9D3CD; padding: 44px 0 24px; font-size: 15px; }
.aoss-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.aoss-footer h4 { color: #fff; margin: 0 0 8px; } .aoss-footer a { display: block; color: #C9D3CD; text-decoration: none; padding: 3px 0; }
.aoss-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.aoss-soon { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.aoss-soon img { width: 180px; } .aoss-soon h1 { font-size: 26px; } .aoss-soon a { color: var(--green-700); font-weight: 700; }

/* admin */
.aoss-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; }
.aoss-row-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

@media (max-width: 900px) {
  .aoss-nav { display: none; } .aoss .burger { display: block; }
  .aoss-hero { flex-direction: column-reverse; text-align: left; padding: 22px 18px; } .aoss-seal { width: 150px; }
  .aoss-grid2 { grid-template-columns: 1fr; } .aoss-video { grid-template-columns: 1fr; }
  .aoss .brand-sub { display: none; }
  .aoss-president { grid-template-columns: 1fr; } .aoss-president img { width: 80px; height: 80px; }
  .aoss-row > .row:last-child { width: 100%; }
}
