:root {
  color-scheme: light;
  --brand: #002859;
  --brand-deep: #001d41;
  --canvas: #f2ede3;
  --surface: #fffcf6;
  --ink: #243641;
  --muted: #606b6d;
  --line: #d9d2c5;
  --signal: #e9c46d;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: "Sitka Display", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --gutter: clamp(20px, 4.2vw, 64px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { display: flex; min-height: 100dvh; flex-direction: column; margin: 0; background: var(--surface); color: var(--ink); font: 1rem/1.65 var(--sans); -webkit-text-size-adjust: 100%; }
main { flex: 1; min-width: 0; }
a { color: var(--brand); text-underline-offset: .25em; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { color: var(--brand); font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 4vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 2.7vw, 2.6rem); }
h3 { font-size: 1.06rem; line-height: 1.4; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; box-shadow: 0 0 0 6px var(--signal); }
:focus:not(:focus-visible) { outline: none; }
.container { width: min(calc(100% - var(--gutter) * 2), 1280px); margin-inline: auto; }
.skip-link { position: absolute; top: 10px; left: 10px; z-index: 10; padding: 12px 18px; transform: translateY(-180%); background: var(--signal); color: var(--brand); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
.site-header { border-top: 4px solid var(--brand); border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand img { width: 75px; flex: none; }
.brand-copy { display: grid; gap: 4px; color: var(--brand); }
.brand-copy strong { font: 600 1.6rem/1 var(--serif); letter-spacing: -.035em; }
.brand-copy > span { font-size: .7rem; line-height: 1.4; letter-spacing: .025em; }
.header-actions { display: flex; align-items: center; gap: 25px; }
.header-actions form { margin: 0; }
.header-label { color: var(--muted); font-size: .78rem; }
.quiet-button, .quiet-link { display: inline-flex; min-height: 44px; align-items: center; border: 0; padding: 8px 0; background: transparent; color: var(--brand); font: 600 .8rem/1.4 var(--sans); text-decoration: none; cursor: pointer; }
.header-actions .quiet-button { border-left: 1px solid var(--line); padding-left: 25px; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font: italic 1rem/1.4 var(--serif); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 25px; border: 1px solid var(--brand); border-radius: 3px; padding: 12px 20px; background: var(--brand); color: var(--surface); font-weight: 600; font-size: .88rem; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; transition: background 160ms ease, transform 140ms var(--ease-out); }
.button:active:not(:focus-visible), button.quiet-button:active:not(:focus-visible) { transform: scale(.98); }
.button:disabled { border-color: var(--line); background: var(--canvas); color: #69716f; cursor: not-allowed; transform: none; }
.button-note { max-width: 46ch; margin-top: 13px; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.login-main { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 72px; }
.login-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: start; gap: clamp(48px, 7.5vw, 112px); }
.welcome h1 { max-width: 16ch; font-size: clamp(2.9rem, 4.6vw, 4.5rem); }
.welcome .eyebrow { margin-bottom: 18px; }
.welcome-photo { margin: 34px 0 0; }
.welcome-photo img { width: 100%; border-radius: 3px 3px 72px 3px; }
.welcome-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; margin-top: 16px; color: var(--muted); font: italic .88rem/1.5 var(--serif); }
.welcome-photo figcaption > span { color: var(--brand); font: 500 .72rem/1.8 var(--sans); }
.sign-in { padding-top: 4px; }
.sign-in > .eyebrow { margin-bottom: 19px; color: var(--muted); font: 500 .74rem/1.5 var(--sans); letter-spacing: .025em; }
.sign-in h2 { font-size: clamp(2.2rem, 3.4vw, 3.1rem); }
.sign-in-intro { max-width: 39ch; margin: 21px 0 28px; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.sign-in .button { width: 100%; min-height: 54px; justify-content: space-between; }
.first-visit { margin-top: 31px; border-top: 1px solid var(--line); padding-top: 24px; }
.first-visit h3, .sign-in-help h3 { margin-bottom: 9px; color: var(--brand); font: 600 1.18rem/1.4 var(--serif); }
.first-visit p { max-width: 46ch; color: var(--muted); font-size: .83rem; line-height: 1.75; }
.sign-in-help { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.sign-in-help h3 { grid-column: 1 / -1; }
.sign-in-help p { color: var(--muted); font-size: .79rem; line-height: 1.7; }
.sign-in-help a { display: inline-block; padding-block: 5px; }
.separate-note { display: block; font-size: .75rem; }
.notice { margin: 0 0 24px; border-left: 3px solid #8c4b30; padding: 16px 18px; background: #f7e9df; color: #693a28; }
.notice h3 { margin-bottom: 7px; font-size: .94rem; }
.notice p { font-size: .87rem; overflow-wrap: anywhere; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--canvas); }
.footer-inner { display: flex; min-height: 110px; align-items: center; justify-content: space-between; gap: 26px; padding-block: 25px; }
.footer-inner > p { color: var(--brand); font-size: .75rem; line-height: 1.8; }
.footer-inner > p > span { color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .74rem; }
.footer-inner a { padding-block: 8px; }
.portal-nav { border-bottom: 1px solid var(--line); background: var(--canvas); }
.portal-nav > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.portal-nav a { display: inline-flex; min-height: 55px; align-items: center; gap: 10px; border-bottom: 2px solid transparent; padding-block: 14px 12px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.portal-nav .workspace-link { margin-left: auto; color: var(--muted); }
.portal-welcome { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-block: 45px 35px; }
.portal-welcome h1 { max-width: 29ch; font-size: clamp(2rem, 3.35vw, 3rem); overflow-wrap: anywhere; }
.portal-welcome > div > p:last-child { margin-top: 14px; color: var(--muted); font-size: .93rem; }
.portal-welcome .eyebrow { margin-bottom: 13px; }
.account-context { flex: none; border-left: 1px solid var(--line); padding-left: 25px; color: var(--brand); font-size: .78rem; }
.account-context span { display: block; margin-top: 3px; color: var(--muted); font-size: .73rem; }
.portal-content { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: clamp(35px, 5vw, 72px); padding-block: 0 68px; }
.family-feed { min-width: 0; }
.portal-filters { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem auto; align-items: end; gap: 12px 14px; margin: 0 0 35px; padding: 24px; border: 1px solid var(--line); border-radius: 3px; background: var(--canvas); }
.portal-filters label { display: block; margin-bottom: 8px; color: var(--brand); font-size: .77rem; font-weight: 600; }
.portal-filters input { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #a8aca3; border-radius: 3px; padding: 10px 12px; background: var(--surface); color: var(--ink); font-size: .86rem; }
.portal-filters .button { min-height: 46px; }
.portal-clear { grid-column: 1 / -1; width: fit-content; padding-block: 3px; font-size: .8rem; }
.portal-filters > p { grid-column: 1 / -1; color: var(--muted); font-size: .73rem; }
.portal-section { padding-block: 0 36px; scroll-margin-top: 24px; }
.portal-section + .portal-section { border-top: 1px solid var(--line); padding-top: 32px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(1.7rem, 2.2vw, 2rem); }
.section-heading > p { color: var(--muted); font-size: .76rem; text-align: right; }
.section-content { min-width: 0; }
.announcement { padding: 25px 0 30px; border-top: 1px solid var(--line); }
.announcement:first-child { border-top-color: var(--brand); }
.announcement:last-child { padding-bottom: 0; }
.item-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; margin-bottom: 13px; color: var(--muted); font-size: .73rem; }
.item-meta > span { color: var(--brand); font-weight: 500; }
.item-meta time { font-variant-numeric: tabular-nums; }
.announcement h3 { max-width: 40ch; color: var(--brand); font: 600 clamp(1.4rem, 2vw, 1.8rem)/1.25 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.announcement-body { max-width: 66ch; margin-top: 15px; color: var(--ink); font-size: .91rem; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { border-top: 1px solid var(--line); padding: 25px 0 8px; }
.empty-state h3 { max-width: 38ch; color: var(--brand); font: 600 1.3rem/1.35 var(--serif); }
.empty-state p { max-width: 58ch; margin-top: 12px; color: var(--muted); font-size: .84rem; line-height: 1.8; }
.document-list { margin: 0; padding: 0; border-top: 1px solid var(--brand); list-style: none; }
.document-row { display: flex; align-items: center; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.document-row:last-child { border-bottom: 0; padding-bottom: 0; }
.file-mark { display: grid; width: 43px; min-height: 53px; flex: none; place-items: center; border: 1px solid #b6bba9; border-radius: 2px 8px 2px 2px; background: var(--canvas); color: var(--brand); font-size: .61rem; font-weight: 600; letter-spacing: .035em; }
.document-copy { min-width: 0; flex: 1; }
.document-link { font-size: .94rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.document-detail { margin-top: 5px; color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.document-group { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.document-download { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; flex: none; border: 1px solid var(--line); border-radius: 3px; padding: 8px 13px; font-size: .75rem; font-weight: 600; text-decoration: none; transition: background 160ms ease, transform 140ms var(--ease-out); }
.document-download:active:not(:focus-visible) { transform: scale(.98); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .8rem; }
.pagination:empty { display: none; }
.pagination a { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; padding-block: 10px; font-weight: 600; text-decoration: none; }
.pagination-older { margin-left: auto; }
.school-section { min-width: 0; border-left: 1px solid var(--line); padding-left: 26px; scroll-margin-top: 24px; }
.family-photo { margin: 0 0 30px; }
.family-photo img { width: 100%; border-radius: 3px 3px 36px 3px; }
.family-photo figcaption { margin-top: 12px; color: var(--muted); font: italic .82rem/1.5 var(--serif); }
.school-section .section-heading { display: block; margin-bottom: 22px; }
.school-section .eyebrow { margin-bottom: 8px; font-size: .85rem; text-align: left; }
.school-section h2 { font-size: 1.7rem; }
.school-resources { display: grid; gap: 23px; }
.school-resources > div + div { padding-top: 22px; border-top: 1px solid var(--line); }
.school-resources h3 { color: var(--brand); font-size: .84rem; font-weight: 600; }
.school-resources p { max-width: 34ch; margin-block: 9px 10px; color: var(--muted); font-size: .78rem; line-height: 1.8; }
.text-link { display: inline-block; padding-block: 5px; font-size: .78rem; font-weight: 600; overflow-wrap: anywhere; }
.support-phone { display: block; width: fit-content; padding-block: 5px; font-size: .78rem; }
.message-main { padding-block: clamp(60px, 9vw, 125px); }
.message-main h1 { max-width: 21ch; overflow-wrap: anywhere; }
.message-copy { max-width: 60ch; margin-block: 25px 30px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.message-support { margin-top: 25px; color: var(--muted); font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
  .button:not(:disabled):hover { background: var(--brand-deep); text-decoration: none; }
  .quiet-button:hover { text-decoration: underline; text-underline-offset: .3em; }
  .portal-nav a:hover { border-bottom-color: #9fa99f; }
  .document-link:hover, .pagination a:hover { text-decoration: underline; }
  .document-download:hover { background: var(--canvas); }
}
@media (max-width: 1000px) {
  .portal-content { grid-template-columns: minmax(0, 1fr) 245px; gap: 32px; }
  .school-section { padding-left: 22px; }
  .portal-filters { padding: 20px; gap: 11px; }
  .section-heading { flex-wrap: wrap; gap: 5px; }
  .section-heading > p { text-align: left; }
  .document-row { gap: 12px; }
  .file-mark { width: 35px; min-height: 46px; }
  .document-download { padding-inline: 10px; }
  .login-grid { gap: 45px; }
  .sign-in-help { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 80px; }
  .brand img { width: 62px; }
  .brand-copy strong { font-size: 1.45rem; }
  .brand-copy > span { font-size: .65rem; }
  .header-label { display: none; }
  .header-actions .quiet-button { border-left: 0; padding-left: 0; }
  .portal-welcome { align-items: start; padding-block: 33px 28px; }
  .portal-welcome h1 { font-size: 2.25rem; }
  .account-context { display: none; }
  .portal-content { grid-template-columns: 1fr; gap: 5px; padding-bottom: 42px; }
  .school-section { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .family-photo { display: none; }
  .school-resources { grid-template-columns: 1fr 1fr; gap: 24px; }
  .school-resources > div + div { border: 0; padding-top: 0; }
  .public-school-link { grid-column: 1 / -1; }
  .portal-nav > div { gap: 0 24px; }
  .portal-nav a { min-height: 51px; font-size: .76rem; }
  .portal-nav .workspace-link { margin-left: 0; }
  .portal-filters { margin-bottom: 28px; }
  .portal-section { padding-bottom: 30px; }
  .login-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .welcome h1 { font-size: 2.7rem; }
  .welcome-photo img { border-bottom-right-radius: 45px; }
  .sign-in h2 { font-size: 2.25rem; }
  .sign-in-intro { font-size: .89rem; }
  .footer-inner nav { gap: 6px 18px; }
}
@media (max-width: 600px) {
  .login-main { padding-block: 31px 45px; }
  .login-grid { grid-template-columns: 1fr; gap: 31px; }
  .welcome { display: grid; grid-template-columns: 1fr 100px; align-items: center; gap: 5px 14px; }
  .welcome .eyebrow { grid-column: 1 / -1; margin-bottom: 7px; }
  .welcome h1 { font-size: clamp(1.85rem, 6.9vw, 2.6rem); letter-spacing: -.04em; }
  .welcome-photo { margin: 0; }
  .welcome-photo img { height: 100px; width: 100px; object-fit: cover; border-radius: 3px 3px 25px 3px; }
  .welcome-photo figcaption { display: none; }
  .sign-in { border-top: 1px solid var(--line); padding-top: 27px; }
  .sign-in > .eyebrow { margin-bottom: 12px; }
  .sign-in h2 { font-size: 2.15rem; }
  .sign-in-intro { max-width: 45ch; margin-block: 16px 23px; }
  .sign-in-help { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 17px; }
}
@media (max-width: 450px) {
  .brand { gap: 10px; }
  .brand img { width: 52px; }
  .brand-copy strong { font-size: 1.3rem; }
  .brand-copy > span { font-size: .58rem; }
  .header-inner { gap: 12px; }
  .quiet-button { font-size: .75rem; }
  .portal-nav > div { gap: 0 19px; }
  .portal-nav a { font-size: .72rem; }
  .portal-welcome h1 { font-size: 2rem; }
  .portal-welcome > div > p:last-child { font-size: .84rem; }
  .portal-filters { grid-template-columns: minmax(0, 1fr) 6rem; padding: 17px; }
  .portal-filters > div:first-child { grid-column: 1 / -1; }
  .portal-filters .button { align-self: end; }
  .portal-filters > p { font-size: .7rem; }
  .section-heading h2 { font-size: 1.7rem; }
  .item-meta { font-size: .69rem; }
  .announcement-body { font-size: .87rem; }
  .document-row { flex-wrap: wrap; align-items: start; gap: 12px; }
  .document-copy { flex-basis: calc(100% - 48px); }
  .document-download { margin-left: 47px; }
  .school-resources { grid-template-columns: 1fr; gap: 20px; }
  .school-resources > div + div { border-top: 1px solid var(--line); padding-top: 20px; }
  .public-school-link { grid-column: auto; }
  .message-main { padding-block: 45px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:active, button.quiet-button:active, .document-download:active { transform: none; }
}
@media print {
  .site-header, .site-footer, .portal-nav, .skip-link, .pagination, .portal-filters, .school-section { display: none; }
  body { background: white; color: #172d3e; }
  .container { width: 100%; }
  .portal-content { display: block; }
  .portal-section { padding-block: 24px; }
  .announcement, .document-row { break-inside: avoid; }
}
