/* St Padre Pio Secondary School — school administration
   Palette: Capuchin brown (navigation, after Padre Pio's habit), deep blue (actions), crest gold. */
:root {
  --brown: #3a2a20;
  --brown-2: #4d3a2d;
  --brown-3: #6b5444;
  --blue: #1d4e89;
  --blue-d: #163d6c;
  --blue-l: #e7eef7;
  --gold: #c9a227;
  --red: #b3202a;
  --bg: #f1f2f4;
  --surface: #ffffff;
  --ink: #1e2430;
  --muted: #5f6774;
  --line: #dcdfe4;
  --line-2: #eceef1;
  --ok: #1f7a4d; --ok-l: #e3f3ea;
  --warn: #9a5a07; --warn-l: #fbf0dc;
  --bad: #b42318; --bad-l: #fbe7e5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--brown) 248px, transparent 248px); }
.side { background: var(--brown); color: #efe6dc; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.crest { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1rem 1rem; border-bottom: 1px solid var(--brown-2); color: #fff; }
.crest:hover { text-decoration: none; }
.crest-logo { width: 64px; height: auto; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.crest-mark { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; color: var(--gold); background: var(--brown-2); flex: none; overflow: hidden; }
.crest-mark img { width: 100%; height: 100%; object-fit: cover; }
.crest-name { font-family: var(--serif); font-size: 1.08rem; line-height: 1.15; }
.crest-name small { display: block; color: #e2c46a; font-family: var(--sans); font-size: .74rem; margin-top: 2px; }
.nav { padding: .6rem .5rem 1rem; flex: 1; }
.nav-group { margin-top: .9rem; padding: 0 .65rem .25rem; color: #b9a690; font-size: .74rem; letter-spacing: .02em; }
.nav a { display: flex; align-items: center; gap: .55rem; padding: .48rem .65rem; border-radius: 6px; color: #f2ebe3; font-size: .92rem; }
.nav a:hover { background: var(--brown-2); text-decoration: none; }
.nav a.on { background: #f6efe6; color: var(--brown); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.nav a .count { margin-left: auto; background: var(--gold); color: #fff; border-radius: 10px; font-size: .72rem; padding: 0 .45rem; }
/* Top-right account bar: profile, password, sign out */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin: -1.6rem -2rem 1.4rem; padding: .55rem 2rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .me { display: flex; align-items: center; gap: .55rem; padding: .25rem .5rem .25rem .3rem; border-radius: 8px; color: var(--ink); }
.topbar .me:hover, .topbar .me.on { background: var(--bg); text-decoration: none; }
.topbar .me .avatar { border: 2px solid var(--gold); }
.topbar .who { display: block; font-weight: 600; font-size: .88rem; line-height: 1.2; }
.topbar .role { display: block; color: var(--muted); font-size: .76rem; }
.top-actions { display: flex; gap: .45rem; align-items: center; }
.top-actions a, .top-actions button { color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .3rem .7rem; font: inherit; font-size: .82rem; cursor: pointer; }
.top-actions a:hover, .top-actions a.on { border-color: var(--blue); background: var(--blue-l); text-decoration: none; }
.top-actions button { color: var(--bad); }
.top-actions button:hover { border-color: #efc2bd; background: var(--bad-l); }
.main { min-width: 0; padding: 1.6rem 2rem 3rem; }
.menu-toggle { display: none; }
.menu-logo { width: 30px; height: auto; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { margin: .3rem 0 0; color: var(--muted); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: .35rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Panels & layout ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1.25rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-body { padding: 1.1rem; }
.panel-body.flush { padding: 0; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.stack > * + * { margin-top: .75rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: .85rem 1rem; }
.stat.gold { border-left-color: var(--gold); }
.stat.ok { border-left-color: var(--ok); }
.stat.bad { border-left-color: var(--bad); }
.stat .v { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: .85rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; background: #f7f8f9; border-bottom: 1px solid var(--line); padding: .55rem .75rem; white-space: nowrap; }
table.data td { border-bottom: 1px solid var(--line-2); padding: .55rem .75rem; vertical-align: middle; }
table.data tbody tr:hover { background: #fafbfc; }
table.data tfoot td { font-weight: 600; background: #f7f8f9; border-top: 1px solid var(--line); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .c { text-align: center; }
table.compact td, table.compact th { padding: .35rem .5rem; }
.broadsheet td, .broadsheet th { text-align: center; padding: .4rem .45rem; font-size: .84rem; white-space: nowrap; }
.broadsheet td.name, .broadsheet th.name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: #fff; }
.broadsheet th.name { background: #f7f8f9; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: .1rem .5rem; border-radius: 4px; background: #eef0f3; color: #3b4350; white-space: nowrap; }
.badge.ok { background: var(--ok-l); color: var(--ok); }
.badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.bad { background: var(--bad-l); color: var(--bad); }
.badge.blue { background: var(--blue-l); color: var(--blue); }
.grade { font-weight: 700; }
.grade-A { color: var(--ok); } .grade-F { color: var(--bad); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--blue); background: var(--blue); color: #fff; border-radius: 6px; padding: .45rem .9rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--blue-d); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--blue); background: var(--blue-l); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.danger { background: #fff; color: var(--bad); border-color: #efc2bd; }
.btn.danger:hover { background: var(--bad-l); }
.btn.sm { padding: .22rem .6rem; font-size: .8rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.linkbtn.danger { color: var(--bad); }
form.inline { display: inline; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.wide { grid-column: 1 / -1; }
.field label, .label { font-size: .84rem; font-weight: 600; color: #39404b; }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1px solid #c9ced6; border-radius: 6px; padding: .45rem .6rem; font: inherit; font-size: .92rem; background: #fff; color: var(--ink); }
.input:focus { border-color: var(--blue); outline: 2px solid var(--blue-l); }
textarea.input { min-height: 90px; resize: vertical; }
.input.score { width: 76px; text-align: right; padding: .3rem .45rem; }
.input.score.bad { border-color: var(--bad); background: var(--bad-l); }
.check { display: flex; align-items: center; gap: .45rem; font-size: .9rem; }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.toolbar .field { min-width: 160px; }
.error { color: var(--bad); font-size: .8rem; }

/* ---------- Alerts & misc ---------- */
.alert { border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid; font-size: .92rem; }
.alert.ok { background: var(--ok-l); border-color: #b8dfc9; color: #155c39; }
.alert.warn { background: var(--warn-l); border-color: #f0d6a8; color: #7a4705; }
.alert.bad { background: var(--bad-l); border-color: #f2c0ba; color: #8d1b12; }
.alert.info { background: var(--blue-l); border-color: #c4d5ea; color: var(--blue-d); }
.alert ul { margin: .3rem 0 0 1.1rem; padding: 0; }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; margin-bottom: .25rem; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .35rem 1rem; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: .5rem .85rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: .9rem; }
.tabs a.on { color: var(--blue); border-color: var(--blue); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e9e1d8; display: inline-grid; place-items: center; color: var(--brown); font-weight: 700; font-size: .85rem; flex: none; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.6rem; border-radius: 10px; }
.avatar.xl { width: 140px; height: 140px; font-size: 2.4rem; border-radius: 50%; border: 4px solid var(--gold); margin: 0 auto; }
.person { display: flex; align-items: center; gap: .6rem; }
.notice { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem .85rem; margin-bottom: 1rem; }
.notice h3 { font-size: .98rem; }
.notice .meta { font-size: .78rem; color: var(--muted); margin: .1rem 0 .35rem; }
.notice p { font-size: .9rem; white-space: pre-line; }
.bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); }
.pagination { display: flex; gap: .3rem; padding: .8rem 1.1rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 5px; font-size: .85rem; background: #fff; }
.pagination .on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .off { color: #a0a6af; }
details.more summary { cursor: pointer; color: var(--blue); font-size: .88rem; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand { background: var(--brown); color: #f3ece4; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 38px solid rgba(212, 160, 23, .14); }
.auth-logo { width: min(260px, 70%); height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.auth-logo-sm { display: none; width: 110px; height: auto; margin: 0 auto 1rem; }
.auth-brand .crest-mark { width: 72px; height: 72px; font-size: 1.5rem; }
.auth-brand h1 { font-size: 2.6rem; color: #fff; margin-top: 1.4rem; max-width: 12ch; }
.auth-brand .motto { font-family: var(--serif); font-style: italic; color: #e2c46a; font-size: 1.1rem; margin-top: .6rem; }
.auth-brand ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: #d8cabb; max-width: 40ch; position: relative; z-index: 1; }
.auth-brand li { padding: .3rem 0; border-top: 1px solid var(--brown-2); }
.auth-form { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.auth-card .field { margin-top: 1rem; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 1.25rem; padding: .65rem; }

/* ---------- Printable documents (report card, receipt, invoice) ---------- */
.doc { position: relative; overflow: hidden; background: #fff; max-width: 820px; margin: 0 auto 1.5rem; padding: 2rem 2.2rem; border: 1px solid var(--line); border-radius: 6px; }
.doc > * { position: relative; }
.doc .doc-watermark { position: absolute; inset: 22% 18%; background: center / contain no-repeat; opacity: .06; pointer-events: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-logo { width: 96px; height: auto; }
.doc-photo { width: 84px; height: 100px; object-fit: cover; border: 1px solid #999; justify-self: end; }
.doc-head { display: grid; grid-template-columns: 100px 1fr 100px; align-items: center; gap: 1rem; text-align: center; border-bottom: 3px double var(--brown); padding-bottom: .9rem; margin-bottom: 1rem; }
.doc-head .crest-mark { width: 74px; height: 74px; font-size: 1.4rem; color: var(--brown); background: #fff; border-color: var(--brown); }
.doc-head h1 { font-size: 1.45rem; color: var(--brown); letter-spacing: .01em; }
.doc-head .sub { font-size: .82rem; color: #444; }
.doc-title { text-align: center; font-family: var(--serif); font-size: 1.1rem; margin: .4rem 0 1rem; }
.doc table.data th { background: #f2ece4; color: #3a2a20; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.2rem; font-size: .88rem; }
.doc .sign div { border-top: 1px solid #555; padding-top: .3rem; }
.doc-foot { margin-top: 1.4rem; font-size: .78rem; color: #555; text-align: center; border-top: 1px solid var(--line); padding-top: .6rem; }
.print-only { display: none; }

@media print {
  body { background: #fff; font-size: 12px; }
  .side, .no-print, .page-head .actions, .menu-toggle { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .doc { border: 0; padding: 0; max-width: none; margin: 0; page-break-after: always; }
  .panel { border: 0; }
  .print-only { display: block; }
  a { color: inherit; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 20; }
  #menu:checked ~ .app .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .menu-toggle { display: inline-flex; position: sticky; top: 0; z-index: 10; width: 100%; background: var(--brown); color: #fff; padding: .7rem 1rem; gap: .6rem; align-items: center; font-family: var(--serif); cursor: pointer; }
  .main { padding: 1.1rem 1rem 2.5rem; }
  .topbar { position: static; margin: -1.1rem -1rem 1rem; padding: .45rem 1rem; gap: .5rem; flex-wrap: wrap; }
  .topbar .me-text { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 1.6rem 1.25rem; }
  .auth-brand h1 { font-size: 1.8rem; }
  .auth-brand ul { display: none; }
  .auth-brand { display: none; }
  .auth-logo-sm { display: block; }
  .kv { grid-template-columns: 1fr; }
  .doc { padding: 1rem; }
  .doc-head { grid-template-columns: 60px 1fr; }
  .doc-logo { width: 60px; }
  .doc-head > :last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Public website (landing page) ---------- */
.lp { background: #fbf8f4; }
.lp-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem clamp(1rem, 4vw, 3rem); background: var(--brown); color: #fff; flex-wrap: wrap; }
.lp-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.lp-brand:hover { text-decoration: none; }
.lp-brand img { width: 46px; height: auto; }
.lp-nav { display: flex; align-items: center; gap: .3rem 1.2rem; flex-wrap: wrap; }
.lp-nav a:not(.btn) { color: #f2ebe3; font-size: .92rem; }
.lp-nav .btn { background: var(--gold); border-color: var(--gold); color: var(--brown); }
.lp-hero { background: var(--brown); color: #f3ece4; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--gold) 0 60px, #b3202a 60px 120px, #1f3f9c 120px 180px); opacity: .9; }
.lp-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; line-height: 1.05; max-width: 14ch; }
.lp-motto { font-family: var(--serif); font-style: italic; color: #e2c46a; font-size: 1.2rem; margin-top: .8rem; }
.lp-lede { font-size: 1.12rem; max-width: 46ch; margin-top: 1rem; color: #e8dccf; }
.lp-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.lp-cta .btn { padding: .7rem 1.2rem; font-size: 1rem; }
.btn.lp-gold { background: var(--gold); border-color: var(--gold); color: #2b1e16; }
.btn.lp-gold:hover { background: #e0b73a; }
.btn.lp-outline { background: transparent; border-color: #a8927f; color: #fff; }
.btn.lp-outline:hover { background: var(--brown-2); }
.lp-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: #d8cabb; font-size: .95rem; }
.lp-facts strong { color: #fff; font-weight: 600; }
.lp-hero-crest { display: grid; place-items: center; }
.lp-hero-crest img { width: min(420px, 100%); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.lp-section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 6vw, 5rem); }
.lp-tint { background: #f1e9df; }
.lp-wrap { max-width: 1100px; margin: 0 auto; }
.lp-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--brown); margin-bottom: 1rem; }
.lp-section p { max-width: 68ch; font-size: 1.02rem; line-height: 1.65; }
.lp-sub { color: #5b4a3d; }
.lp-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.lp-crest-key { background: #fff; border-top: 4px solid var(--gold); border-radius: 6px; padding: 1.3rem 1.4rem; }
.lp-crest-key h3 { color: var(--brown); margin-bottom: .6rem; }
.lp-crest-key dl { margin: 0; }
.lp-crest-key dt { font-weight: 600; margin-top: .7rem; }
.lp-crest-key dd { margin: .1rem 0 0; color: #5b4a3d; font-size: .94rem; }
.lp-academics { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 2rem; margin-top: 1.6rem; }
.lp-academics h3 { color: var(--brown); margin-bottom: .6rem; }
.lp-list { margin: 0; padding-left: 1.1rem; line-height: 1.9; }
.lp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.lp-chips li { background: #fff; border: 1px solid #ddcfc0; border-radius: 4px; padding: .25rem .6rem; font-size: .9rem; }
.lp-admit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.lp-form { background: #fff; border: 1px solid #e3d8cc; border-radius: 10px; padding: 1.4rem; }
.lp-form h3 { color: var(--brown); margin-bottom: .8rem; font-size: 1.2rem; }
.lp-hp { position: absolute; left: -9999px; }
.lp-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.lp-news article { background: #fff; border-radius: 8px; padding: 1.2rem; border-left: 4px solid var(--gold); }
.lp-news time { font-size: .82rem; color: #7a6a5c; }
.lp-news h3 { margin: .2rem 0 .5rem; color: var(--brown); }
.lp-news p { font-size: .95rem; }
.lp-contact { background: var(--brown); color: #f3ece4; }
.lp-contact h2 { color: #fff; }
.lp-contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; margin: 0; }
.lp-contact-list dt { color: #e2c46a; font-size: .85rem; }
.lp-contact-list dd { margin: .2rem 0 0; font-size: 1.05rem; }
.lp-contact-list a { color: #fff; }
.lp-foot { display: flex; align-items: center; gap: 1rem; padding: 1.2rem clamp(1rem, 6vw, 5rem); background: #2a1e17; color: #c9b8a6; font-size: .9rem; }
.lp-foot img { width: 44px; height: auto; }
.lp-foot a { color: #e2c46a; }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; text-align: left; }
  .lp-hero-crest { order: -1; }
  .lp-hero-crest img { width: 200px; }
  .lp-about, .lp-academics, .lp-admit { grid-template-columns: 1fr; gap: 1.6rem; }
  .lp-nav a:not(.btn) { display: none; }
  .lp-brand span { font-size: .95rem; }
}

/* Show / Hide password button */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 4rem; }
.pw-toggle { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); background: none; border: 0; border-radius: 4px; padding: .25rem .5rem; color: var(--blue); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.pw-toggle:hover, .pw-toggle:focus-visible { background: var(--blue-l); outline: none; }

/* ---------- Annual report (school paper format) ---------- */
.doc.annual { max-width: 900px; padding: 1.4rem 1.4rem 1rem; font-family: Arial, "Helvetica Neue", sans-serif; color: #000; page: annual; }
.ar-head { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: .8rem; }
.ar-head img { width: 110px; height: auto; }
.ar-head > div { text-align: center; font-size: .86rem; line-height: 1.45; letter-spacing: .02em; padding-right: 120px; }
.ar-title { text-align: center; margin: .5rem 0 .7rem; }
.ar-title span { display: inline-block; background: #3b3b3b; color: #fff; padding: .25rem 2.2rem; font-size: 1rem; letter-spacing: .04em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
table.ar { width: 100%; border-collapse: collapse; border: 2px solid #000; font-size: .82rem; table-layout: auto; }
table.ar th, table.ar td { border: 1px solid #000; padding: .14rem .22rem; text-align: center; white-space: nowrap; }
table.ar th { font-weight: 700; }
table.ar th.lbl, table.ar th.subj, table.ar th.subj-h { text-align: left; }
table.ar th.subj { font-size: .88em; }
table.ar tr:nth-child(-n+2) td { font-weight: 700; font-size: 1.05em; }
table.ar th.subj-h { vertical-align: bottom; font-size: 1em; }
table.ar .c { text-align: center; }
table.ar tr.vh th.v { vertical-align: bottom; height: 120px; padding: .2rem .1rem; }
table.ar tr.vh th.v span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; font-size: .95em; }
table.ar tr.vh th.v.sm span { font-size: .8em; font-weight: 400; }
table.ar tr.vh th.rem-h { vertical-align: bottom; }
table.ar td.rem { text-align: left; font-size: .92em; }
table.ar td.blank { border-left-color: transparent; border-right-color: transparent; }
table.ar tr.sum td { font-weight: 600; }
table.ar th.band { font-size: 1.1em; padding: .25rem; }
table.ar td.comment { font-weight: 700; font-size: 1.1em; padding: .35rem; white-space: normal; }
table.ar tr.foot th { font-size: 1.1em; padding: .45rem .3rem; }
table.ar td.sigline { text-align: left; height: 2.6rem; vertical-align: bottom; color: #444; }
table.ar tr.foot td { text-align: left; }
.ar-key { font-size: .7rem; color: #444; margin-top: .4rem; }
@page annual { size: A4 portrait; margin: 9mm; }
@media print {
  .doc.annual { padding: 0; }
  table.ar { font-size: 10.5px; }
}
@media (max-width: 900px) { .doc.annual { overflow-x: auto; } .ar-head > div { padding-right: 0; } }
