:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --sheet: #fffefa;
  --ink: #171b23;
  --mid: #525661;
  --blue: #233ba9;
  --blue-dark: #182a85;
  --line: #ccc9bc;
  --orange: #b53c1d;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
p, li { line-height: 1.55; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
a { color: var(--blue); text-underline-offset: .19em; }
a:hover { color: var(--blue-dark); }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.shell { width: min(1192px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 15px; background: var(--sheet); }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); }
.top { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.045em; font-size: 1.32rem; }
.mark { position: relative; width: 23px; height: 23px; background: var(--blue); }
.mark::before { content: ""; position: absolute; top: 5px; left: 5px; width: 13px; height: 12px; border: 2px solid var(--paper); border-top: 0; }
.mark::after { content: ""; position: absolute; top: 5px; left: 10px; width: 3px; height: 10px; background: var(--paper); }
.top nav, .footer nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); flex-wrap: wrap; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .91rem; font-weight: 650; text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5.15vw, 80px); align-items: center; padding-block: clamp(45px, 4.8vw, 70px) 44px; }
.subject { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; font-size: .75rem; font-weight: 800; letter-spacing: .105em; line-height: 1.3; text-transform: uppercase; }
.subject span { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--orange); }
.hero h1 { font-size: clamp(4rem, 6.7vw, 6.55rem); font-weight: 700; letter-spacing: -.057em; line-height: .97; }
h1 em { color: var(--blue); font-style: normal; }
.lede { margin-top: 25px; max-width: 39ch; font-size: clamp(1.04rem, 1.42vw, 1.26rem); color: var(--mid); }
.jump { display: inline-flex; align-items: center; gap: 15px; min-height: 46px; margin-top: 14px; font-weight: 750; }
.jump span { font-size: 1.2em; }
.hero-image { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; object-position: 60% 50%; }
.hero-image figcaption { text-align: right; margin-top: 8px; color: var(--mid); font-size: .73rem; }

.desk { border: 1px solid var(--blue); background: var(--sheet); scroll-margin-block-start: 15px; }
.desk-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 17px 29px; background: var(--blue); color: white; }
.desk-top h2 { font-size: clamp(1.4rem, 2.25vw, 2.05rem); }
.desk-top span { font-size: .86rem; }
.desk-body { padding: 25px 29px 27px; }
.desk-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 36px; max-width: 930px; }
.school-field label, legend { display: block; font-weight: 700; margin-bottom: 9px; }
select { width: 100%; max-width: 480px; min-height: 49px; padding: 9px 12px; border: 1px solid #888a96; border-radius: 4px; background: var(--sheet); color: var(--ink); }
#state-field { margin-top: 15px; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { padding: 0; }
.choice { display: flex; min-height: 38px; gap: 10px; align-items: center; width: fit-content; cursor: pointer; }
.choice + .choice { margin-top: 2px; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; flex: none; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 16px; padding: 9px 15px; border: 1px solid; border-radius: 4px; line-height: 1.2; text-align: center; font-weight: 750; text-decoration: none; }
.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.primary:hover { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.outline { color: var(--blue); background: transparent; border-color: var(--blue); }
.outline:hover { color: var(--blue-dark); background: #eaeefe; }
#plan-form > .primary { margin-top: 19px; }
.under-form { margin-top: 13px; font-size: .9rem; }
.plan-result { border-top: 2px solid var(--blue); margin-top: 27px; padding-top: 22px; }
.result-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.result-head h3 { font-size: clamp(1.42rem, 2.8vw, 2.25rem); }
#plan-progress { margin-top: 6px; color: var(--mid); font-size: .91rem; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; list-style: none; padding: 1px; margin: 19px 0 11px; background: var(--line); }
.step { padding: 16px 17px; background: var(--sheet); }
.check-row { display: flex; gap: 9px; align-items: center; min-height: 40px; font-weight: 780; font-size: 1.05rem; cursor: pointer; }
.step p { color: var(--mid); font-size: .93rem; }
.step a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 12px; line-height: 1.25; font-size: .875rem; font-weight: 690; }
.note { font-size: .83rem; color: var(--mid); }

.directory { padding-block: 76px 62px; }
.directory-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; }
.directory-heading h2 { font-size: clamp(1.8rem, 3.8vw, 3.2rem); }
.directory-heading p { color: var(--mid); }
.records { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.records li { border-bottom: 1px solid var(--line); }
.record { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) auto; min-height: 87px; gap: 14px; align-items: center; color: var(--ink); padding: 15px 12px; text-decoration: none; }
.record:hover { background: #eeebde; color: var(--ink); }
.record strong { display: block; font-size: clamp(1.04rem, 2vw, 1.42rem); }
.record small { display: block; color: var(--mid); margin-top: 2px; }
.record .custodian { color: var(--blue); font-size: .95rem; line-height: 1.35; }
.record-arrow { color: var(--blue); font-size: 1.35rem; }
.missing { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 25px; padding: 19px 20px; border-left: 4px solid var(--blue); background: #ebeefb; }
.missing h3 { font-size: 1.25rem; }
.missing p { margin-top: 4px; color: var(--mid); font-size: .91rem; }
.missing .button { flex: none; }
.source-date { margin-top: 13px; }

.case { padding-block: 34px 64px; max-width: 1000px; }
.case h1 { font-size: clamp(2.8rem, 6.8vw, 5.5rem); letter-spacing: -.065em; max-width: 19ch; overflow-wrap: break-word; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 22px; font-weight: 730; }
.route-card { border-top: 5px solid var(--blue); margin-top: 29px; padding: 22px 26px 24px; background: var(--sheet); }
.route-kicker { color: var(--mid); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; font-size: .77rem; margin-bottom: 8px; }
.route-card h2 { font-size: clamp(1.59rem, 3.65vw, 2.82rem); }
.route-card p:not(.route-kicker) { margin-top: 9px; max-width: 66ch; }
.route-card .button { margin-top: 17px; }
.case-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 31px; margin-top: 30px; }
.case-body h2, .guide h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.case-body p, .guide p, .guide ul { margin-top: 10px; }
.case-body aside { border-left: 1px solid var(--line); padding-left: 24px; }
.case-body aside ul { padding-left: 17px; margin: 10px 0; }
.guide { display: grid; gap: 19px; margin-block: 29px 18px; max-width: 800px; }
.guide section { border-top: 1px solid var(--line); padding-top: 17px; }
.guide ul { padding-inline-start: 1.25em; }
.footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-block: 19px 25px; border-top: 1px solid var(--line); color: var(--mid); font-size: .86rem; }
.footer p a { color: var(--ink); font-weight: 750; text-decoration: none; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 50px); }
  .hero { gap: 26px; }
  .hero h1 { font-size: clamp(3.35rem, 7.7vw, 5.25rem); }
  .hero-image img { aspect-ratio: .93; }
  .directory-heading { align-items: start; flex-direction: column; gap: 7px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .top { min-height: 58px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: .78rem; }
  .wordmark { gap: 7px; font-size: 1.12rem; }
  .mark { transform: scale(.85); transform-origin: left center; margin-right: -2px; }
  .hero { padding-block: 30px 29px; grid-template-columns: 1fr; gap: 15px; }
  .hero h1 { font-size: clamp(3.3rem, 11.6vw, 5.15rem); }
  .subject { margin-bottom: 15px; }
  .lede { margin-top: 16px; }
  .jump { margin-top: 7px; }
  .hero-image img { aspect-ratio: 1.86; object-position: 52% 58%; }
  .desk-top { display: block; padding: 14px; }
  .desk-top span { display: block; margin-top: 5px; }
  .desk-body { padding: 17px 14px; }
  .desk-fields, .steps, .case-body { grid-template-columns: 1fr; gap: 18px; }
  .steps { gap: 1px; }
  .choice { min-height: 44px; }
  .result-head { align-items: flex-start; flex-wrap: wrap; }
  .directory { padding-block: 45px 42px; }
  .record { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 5px; padding: 10px 4px; }
  .record .custodian { grid-row: 2; }
  .record-arrow { grid-row: span 2; }
  .missing, .footer { align-items: flex-start; flex-direction: column; }
  .case-body aside { padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px solid var(--line); }
  .route-card { padding: 16px 14px; }
  .case { padding-block: 23px 45px; }
  .footer nav { gap: 8px 17px; }
}
@media print {
  body.has-plan { color: #000; background: #fff; }
  .has-plan :is(.masthead, .hero, .directory, .footer, .desk-top, #plan-form, .under-form, #print-plan, #storage-note) { display: none; }
  .has-plan .desk, .has-plan .desk-body, .has-plan .plan-result { border: 0; padding: 0; margin: 0; width: 100%; }
  .has-plan .steps { display: block; background: white; list-style: decimal; padding-left: 20px; }
  .has-plan .step { border-bottom: 1px solid #808080; padding: 10px 0; break-inside: avoid; }
}
