/* UIS design system v1.1 (A2 · Signature "Dossier") — tokens from docs/design/tokens.css,
   navy aligned to the school logo and the logo orange added as a brand accent (never for text).
   Logical properties only (right-to-left first). No external fonts: put the .woff2 files in
   public/fonts (see public/fonts/README.txt); until then good Arabic system fonts are used. */

@font-face { font-family: 'Amiri'; src: url('../fonts/Amiri-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url('../fonts/Amiri-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #112C4A; --ink-hover: #22406A;           /* logo navy */
  --brand-orange: #F7931E;                         /* logo orange: accents on navy only */
  --paper: #FFFFFF; --ivory: #F6F1E7;
  --parchment: #E9E1CF; --parchment-hover: #F3EDDD;
  --line: #D8CFBC; --hairline: #EEE7D8;
  --text-muted: #4A4F5B;
  --success: #1F6B4A;
  --attention: #8E2A2A; --attention-bg: #FBEDED;
  --pending-bg: #FBEBD0; --pending-line: #C98B2B; --pending-text: #5E3600; --pending-shadow: #E7CFA0;
  --font-display: 'Amiri', 'Noto Naskh Arabic', 'Times New Roman', serif;
  --font-ui: 'IBM Plex Sans Arabic', 'SF Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif;
  --fs-display: 44px; --fs-h1: 32px; --fs-h2: 22px; --fs-h3: 17px; --fs-body: 15px; --fs-small: 13px;
  --radius-note: 4px; --radius-control: 6px; --radius-card: 8px; --radius-pill: 10px;
  --content-max: 1080px;
}

* { box-sizing: border-box; }
html { background: var(--ivory); }
body { margin: 0; font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.6; color: var(--ink); background: var(--ivory); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.topbar :focus-visible { outline-color: var(--ivory); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-hover); }
.sr-only, .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="ltr"] { unicode-bidi: isolate; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: var(--ivory); border-block-end: 3px solid var(--brand-orange); }
.topbar-inner { max-width: var(--content-max); margin: 0 auto; padding: 6px 24px; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; border-radius: var(--radius-control); background: var(--ivory); display: flex; align-items: center; justify-content: center; padding: 4px; }
.brand-mark img { width: 100%; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand-sub { font-size: var(--fs-small); color: var(--parchment); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: var(--parchment); text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border-block-end: 3px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; border-block-end-color: var(--brand-orange); }
.header-search { flex: 1 1 260px; max-width: 420px; margin-inline-start: auto; margin-block: 0; position: relative; }
.header-search input, .header-search input[type=search] { width: 100%; height: 44px; padding-inline: 40px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-control); background: var(--paper); font: inherit; color: var(--ink); }
.header-search svg { position: absolute; inset-inline-start: 12px; top: 13px; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.header-tools form { margin: 0; display: inline; }
.header-tools button { height: 44px; padding: 0 10px; border: 0; background: none; color: var(--ivory); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-size: var(--fs-small); font-weight: 600; text-align: center; line-height: 20px; }
.nav .badge { background: var(--brand-orange); color: var(--ink); }
.badge.attention { background: var(--attention); color: #fff; }

/* ---------- Page ---------- */
main { max-width: var(--content-max); margin: 0 auto; padding: 28px 24px 56px; }
main.narrow, main:not(.full):not(.wide) { max-width: 560px; }
main.wide { max-width: 760px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px 26px; }
main.full > .card { background: transparent; border: 0; padding: 0; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.25; margin: 0 0 12px; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.3; margin: 28px 0 10px; }
h3 { font-size: var(--fs-h3); font-weight: 600; margin: 20px 0 8px; }
p { margin: 0 0 10px; }
.hint { color: var(--text-muted); font-size: var(--fs-small); }
.links { margin-block-start: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-block-end: 20px; }
.page-head h1 { margin: 0; }
.eyebrow { font-size: var(--fs-small); color: var(--text-muted); margin: 0 0 2px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin-block: 16px 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], input[type=file], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-control);
  background: var(--paper); font: inherit; color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); }
input[aria-invalid="true"], .has-error input, .has-error select { border-color: var(--attention); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: middle; }
.check label, label.check { font-weight: 400; display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 8px 0 0; }
.error { color: var(--attention); font-size: var(--fs-small); font-weight: 600; margin: 6px 0 0; }
td.error { font-size: var(--fs-body); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 16px; align-items: end; margin-block-end: 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 20px; }
.filters label { margin-block: 0 6px; font-size: var(--fs-small); }
.filters .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline; margin-inline-end: 8px; }
form > button.primary { margin-block-start: 20px; }

/* ---------- Buttons (one primary per view) ---------- */
button, .button { font: inherit; cursor: pointer; }
button.primary, a.button, .button.primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-control); font-weight: 600; text-decoration: none; }
button.primary:hover, a.button:hover { background: var(--ink-hover); color: #fff; }
main:not(.full):not(.wide) form > button.primary { width: 100%; }
button.secondary, a.button.secondary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius-control); font-weight: 600; text-decoration: none; }
button.secondary:hover, a.button.secondary:hover { background: var(--parchment-hover); }
button.danger { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--paper); color: var(--attention);
  border: 1.5px solid var(--attention); border-radius: var(--radius-control); font-weight: 600; }
button.danger:hover { background: var(--attention-bg); }
button.link { border: 0; background: none; color: var(--ink); text-decoration: underline; min-height: 44px; padding: 0 8px; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Banners ---------- */
.status { background: var(--paper); border: 1.5px solid var(--success); color: var(--ink); border-radius: var(--radius-card); padding: 12px 16px; margin-block-end: 16px; }
.status::before { content: "✓ "; color: var(--success); font-weight: 700; }
.notice { background: var(--pending-bg); border: 1.5px solid var(--pending-line); color: var(--pending-text); border-radius: var(--radius-card); padding: 12px 16px; margin-block-end: 16px; }
.alert { background: var(--attention-bg); border: 1.5px solid var(--attention); color: var(--ink); border-radius: var(--radius-card); padding: 12px 16px; margin-block-end: 16px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); }
table { width: 100%; border-collapse: collapse; }
th { text-align: start; font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); padding: 10px 14px; border-block-end: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-block-end: 1px solid var(--hairline); vertical-align: top; }
tbody tr:last-child td { border-block-end: 0; }
tbody tr:hover { background: #FCFAF5; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-block-start: 16px; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Names, numbers, status ---------- */
.name-ar { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); }
.name-en { display: block; font-size: var(--fs-small); color: var(--text-muted); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.chip { display: inline-block; font-size: var(--fs-small); color: var(--text-muted); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-note); padding: 0 8px; }
.state { font-weight: 600; font-size: var(--fs-small); }
.state-active { color: var(--success); }
.state-withdrawn, .state-attention { color: var(--attention); }
.state-graduated, .state-transferred, .state-archived { color: var(--text-muted); }
.stamp { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--success); color: var(--success); display: inline-flex; align-items: center; justify-content: center;
  transform: rotate(-8deg); font-family: var(--font-display); font-weight: 700; font-size: 20px; text-align: center; line-height: 1.1; flex: 0 0 auto; }
.stamp.withdrawn { border-color: var(--attention); color: var(--attention); }
.stamp.graduated, .stamp.transferred, .stamp.archived { border-color: var(--text-muted); color: var(--text-muted); }

/* ---------- Student header, tabs, details ---------- */
.dossier-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-block-end: 16px; }
.dossier-head .who { flex: 1 1 320px; }
.dossier-head h1 { font-size: var(--fs-display); line-height: 1.15; margin: 0; }
.dossier-head .en { font-size: var(--fs-h3); color: var(--text-muted); margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-start: 8px; }
.action-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block-end: 24px; }
.tabs { display: flex; gap: 4px; padding-inline: 8px; overflow-x: auto; }
.tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--parchment); border: 1px solid var(--line);
  border-block-end: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; text-decoration: none; color: var(--ink); }
.tabs a:hover { background: var(--parchment-hover); }
.tabs a[aria-current="page"] { background: var(--paper); font-weight: 700; transform: translateY(-4px); }
.tab-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 0 var(--radius-card) var(--radius-card) var(--radius-card); padding: 24px 26px; margin-block-start: -1px; }
[dir="rtl"] .tab-panel { border-radius: var(--radius-card) 0 var(--radius-card) var(--radius-card); }
.details { margin: 0; }
.details > div, dl.details dt { border-block-start: 1px solid var(--hairline); }
dl.details { display: grid; grid-template-columns: 170px 1fr; }
dl.details dt { padding: 12px 0; color: var(--text-muted); font-size: var(--fs-small); }
dl.details dd { margin: 0; padding: 12px 0; border-block-start: 1px solid var(--hairline); }
@media (max-width: 600px) { dl.details { grid-template-columns: 1fr; } dl.details dd { border: 0; padding-block-start: 0; } .dossier-head h1 { font-size: var(--fs-h1); } }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Pending note (approval) ---------- */
.pending-note { position: relative; background: var(--pending-bg); border: 1px solid var(--pending-line); border-radius: var(--radius-note); box-shadow: 0 2px 0 var(--pending-shadow);
  color: var(--pending-text); padding: 16px 18px; margin: 14px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pending-note::before { content: ""; position: absolute; top: -9px; inset-inline-start: 50%; width: 56px; height: 16px; margin-inline-start: -28px; background: var(--pending-line); opacity: .45; border-radius: 2px; }
.pending-note .body { flex: 1 1 240px; }
.pending-note a { color: var(--pending-text); }

/* ---------- Home inbox ---------- */
.inbox { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 0 var(--radius-card) var(--radius-card) var(--radius-card); overflow: hidden; }
[dir="rtl"] .inbox { border-radius: var(--radius-card) 0 var(--radius-card) var(--radius-card); }
.inbox li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 16px 22px; border-block-end: 1px solid var(--hairline); }
.inbox li:last-child { border-block-end: 0; }
.inbox .what { flex: 1 1 260px; min-width: 0; }
.inbox .kind { font-weight: 600; display: block; }
.inbox .who { flex: 1 1 200px; font-size: var(--fs-small); color: var(--text-muted); }
.inbox .act { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.inbox li.mine { background: var(--pending-bg); color: var(--pending-text); }
.inbox li.empty { color: var(--text-muted); }
.late { color: var(--attention); font-weight: 700; font-size: var(--fs-small); }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.quick a, .quick div { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 20px; text-decoration: none; color: var(--ink); }
.quick .n { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.2; direction: ltr; text-align: start; }
.quick .l { font-size: var(--fs-small); color: var(--text-muted); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-block-end: 1px solid var(--hairline); }
.checklist .mark { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.checklist .done .mark { background: var(--success); border-color: var(--success); color: #fff; }
.checklist .done .t { color: var(--text-muted); text-decoration: line-through; }
.checklist code { direction: ltr; unicode-bidi: isolate; font-size: var(--fs-small); background: var(--ivory); padding: 2px 6px; border-radius: 4px; }

/* ---------- Sign-in pages ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 32px 20px 56px; }
.auth-logo { display: block; width: 200px; height: auto; margin: 0 auto 20px; }
.auth-wrap .card { padding: 28px; }
.auth-wrap .lang { text-align: center; margin-block-start: 16px; }

/* ---------- Misc kept from Stage 1 ---------- */
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--ivory); padding: 12px 16px; border-radius: var(--radius-control); direction: ltr; text-align: left; }
.qr { max-width: 12rem; margin-block: 1rem; } .qr svg { width: 100%; height: auto; }

/* English names inside Arabic pages line up with the reading edge (design system: names). */
[dir="rtl"] .en[dir="ltr"], [dir="rtl"] .name-en[dir="ltr"], [dir="rtl"] dd[dir="ltr"], [dir="rtl"] td [dir="ltr"] { text-align: right; }

/* Small helpers (used instead of inline styles, which the production security policy blocks). */
.m0 { margin: 0; } .mt { margin-block-start: 12px; } .rounded { border-radius: var(--radius-card); }
.lead { font-size: var(--fs-h3); margin: 4px 0 0; } .section-title { font-family: var(--font-ui); font-size: var(--fs-h3); }
.tabs-gap { margin-block-start: 20px; } .mb { margin-block-end: 16px; } .mb-lg { margin-block-end: 24px; }
.inbox-note { margin: 8px 8px 0; } .plain-link { text-decoration: none; } .inherit { color: inherit !important; } .start { text-align: start; }
.status strong { display: inline; }
.body-size { font-size: var(--fs-body); }
.plain-fieldset { border: 0; padding: 0; margin: 12px 0 0; } .plain-fieldset legend { font-weight: 600; margin-block-end: 6px; }
.grade-picks { display: flex; flex-wrap: wrap; gap: 0 16px; margin-block-end: 8px; }
.role-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; text-decoration: underline; }
.places-input { max-width: 120px; }

.copy-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px; margin-block-end: 16px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-note); }

/* Apply form (2026-11-18): wide layout, section cards, fields side by side on larger screens. */
input[type=tel] { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-control); background: var(--paper); font: inherit; color: var(--ink); }


.apply-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px 24px 24px; margin-block-start: 20px; }
.apply-card > h2 { margin-block-start: 0; }
.field-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; }
.field { grid-column: span 2; min-width: 0; }
.field.half { grid-column: span 3; }
.field.wide { grid-column: span 4; }
.field.full { grid-column: 1 / -1; }
.field > label:first-child { margin-block-start: 14px; }
.field .check { margin-block-start: 14px; }
.apply-submit { margin-block-start: 24px; }
.apply-submit .primary { min-width: 240px; }
@media (max-width: 760px) {
  .field-grid { grid-template-columns: 1fr; }
  .field, .field.half, .field.wide, .field.full { grid-column: 1 / -1; }
  .apply-card { padding: 16px; }
  .apply-submit .primary { width: 100%; }
}

/* Wide public layout (apply form for signed-out families). */
.auth-wrap.auth-wide { max-width: var(--content-max); padding-inline: 24px; }
.auth-wide .auth-logo { width: 150px; margin-block-end: 8px; }
.auth-wrap.auth-wide > main { padding: 0; max-width: none; }
@media (max-width: 760px) { .auth-wrap.auth-wide { padding-inline: 12px; } }
.plain-list { list-style: none; padding: 0; margin: 0; } .plain-list li { padding-block: 4px; border-block-end: 1px solid var(--line); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
input[type=datetime-local] { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-control); background: var(--paper); font: inherit; color: var(--ink); }
.inline-time { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline-time input { width: auto; }
/* Brothers and sisters on the apply form */
.child-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 8px 16px 16px; margin: 16px 0 0; background: var(--ivory); }
.child-title { font-family: var(--font-display); font-weight: 700; padding-inline: 6px; }
.child-remove { position: absolute; inset-block-start: 10px; inset-inline-end: 16px; }
[hidden] { display: none !important; }
.docs-hint { margin: 16px 0 0; padding-block-start: 12px; border-block-start: 1px dashed var(--line); }
input[type=file] { padding: 6px; background: var(--paper); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-control); padding: 6px 14px; margin-inline-end: 12px; cursor: pointer; }
.child-card { background: var(--paper); }

/* ---- Public website (ADR 0012) ---- */
body.site { background: var(--ivory); }
.skip-link { position: absolute; inset-inline-start: -9999px; } .skip-link:focus { inset-inline-start: 12px; top: 12px; z-index: 10; background: var(--paper); padding: 8px 12px; border-radius: var(--radius-control); }
.preview-bar { background: var(--pending-bg); border-block-end: 2px solid var(--pending-line); color: var(--pending-text); padding: 10px 24px; text-align: center; font-weight: 600; }
.site-wrap { max-width: var(--content-max); margin: 0 auto; padding-inline: 24px; }
.site-header { background: var(--paper); border-block-end: 1px solid var(--line); }
.site-header-inner { max-width: var(--content-max); margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-brand img { width: 84px; height: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1 1 auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding-block: 8px; border-block-end: 2px solid transparent; }
.site-nav a:hover { border-block-end-color: var(--line); }
.site-nav a[aria-current="page"] { border-block-end-color: var(--brand-orange); }
.site-actions { display: flex; align-items: center; gap: 8px; }
body.site main.site-main { min-height: 50vh; max-width: none; margin: 0; padding: 0; }
.home-hero, .page-hero { background: var(--ink); color: #fff; }
.home-hero h1, .page-hero h1 { color: #fff; font-size: var(--fs-display); }
.home-hero .lead, .page-hero .lead { color: #E6ECF3; font-size: 18px; max-width: 46ch; }
.home-hero-inner, .page-hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-block: 56px; }
.page-hero:not(.has-image) .page-hero-inner { grid-template-columns: 1fr; padding-block: 44px; }
.home-hero .button.primary, .page-hero .button.primary { background: var(--brand-orange); color: var(--ink); }
.home-hero .button.secondary { background: transparent; color: #fff; border-color: #fff; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.hero-photo.placeholder { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: 1px dashed rgba(255,255,255,0.3); }
.hero-photo.placeholder img { width: 40%; opacity: 0.9; }
.division-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: -32px 8px; position: relative; }
.division-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgba(17,44,74,0.08); }
.division-card:hover { border-color: var(--ink); }
.division-card h2 { margin-block-start: 0; }
.division-card .more { font-weight: 600; }
.site-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 32px; margin-block: 28px; font-size: 16px; line-height: 1.8; }
.site-body h2:first-child { margin-block-start: 0; }
.site-body ul { padding-inline-start: 22px; }
.cta-band { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--parchment); border-radius: var(--radius-card); padding: 24px 28px; margin-block: 0 40px; }
.site-footer { background: var(--ink); color: #fff; margin-block-start: 24px; }
.site-footer-inner { max-width: var(--content-max); margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; margin-inline-end: 16px; }
.hint-on-dark { color: #C9D3DF; font-size: var(--fs-small); }
@media (max-width: 760px) {
  .home-hero-inner, .page-hero-inner { grid-template-columns: 1fr; padding-block: 32px; }
  .home-hero h1, .page-hero h1 { font-size: 30px; }
  .division-cards { grid-template-columns: 1fr; margin-block-start: 20px; }
  .site-body { padding: 20px; }
  .site-actions { width: 100%; justify-content: space-between; }
}
.lang-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 860px) { .lang-columns { grid-template-columns: 1fr; } }
.format-help { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-note); padding: 8px 12px; }
.format-help code { background: var(--paper); padding: 0 4px; border-radius: 3px; }
.edit-photo { max-width: 320px; border-radius: var(--radius-card); display: block; margin-block: 8px; }
.site-editor { max-width: 820px; }

/* Full logo in the staff/parent top bar (2026-11-18). */
.brand-logo { height: 72px; width: auto; display: block; }
.topbar-inner { padding-block: 8px; }
.brand .brand-sub { border-inline-start: 1px solid rgba(255,255,255,0.3); padding-inline-start: 12px; }
@media (max-width: 600px) { .brand-logo { height: 56px; } }
