/* Homeschool Transcript Kit: friendly academic.
   Off-white paper, deep navy ink, goldenrod used for rules and marks only
   (--gold-text is the text-safe variant). Libre Baskerville + Nunito Sans. */

:root {
  --paper: #FAF8F2;
  --paper-2: #F2EEE3;
  --card: #FFFFFF;
  --ink: #17233F;
  --ink-2: #3B4763;
  --muted: #566079;
  --rule: #DDD5C3;
  --rule-2: #C9CFDC;
  --navy: #17233F;
  --navy-deep: #0F1830;
  --navy-tint: #EAEEF6;
  --gold: #D29C16;
  --gold-soft: #FBF1D3;
  --gold-text: #7A5600;
  --gold-on-navy: #E8B83A;
  --link: #1F4FA3;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.22; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 0 0 .6em; }
h3 { font-size: 1.12rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px; font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 8px; outline: 3px solid var(--gold); outline-offset: 2px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px;
}

/* ---------------- masthead ---------------- */
.masthead { background: var(--paper); border-bottom: 3px solid var(--gold); position: relative; z-index: 20; }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); color: var(--gold-on-navy); font-family: var(--serif); font-style: italic;
  font-weight: 700; font-size: 17px; letter-spacing: .02em; flex: none;
}
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.site-nav a.nav-cta { background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 999px; }
.site-nav a.nav-cta:hover { background: var(--navy-deep); color: #fff; text-decoration: none; }
.nav-toggle { display: none; white-space: nowrap; background: none; border: 1.5px solid var(--rule-2); border-radius: 8px; padding: 8px 10px; color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.nav-toggle .bars { display: inline-block; width: 18px; height: 2px; background: var(--ink); position: relative; vertical-align: middle; margin-right: 6px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 3px solid var(--gold); padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(23,35,63,.08); }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--rule); }
  .site-nav a.nav-cta { margin-top: 12px; text-align: center; border-bottom: none; }
  .brand-name { font-size: .98rem; }
}

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; padding: 12px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-2); font-weight: 700; }
.btn-quiet:hover { background: var(--navy-tint); color: var(--ink); border-color: var(--ink-2); }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.linkish { background: none; border: none; padding: 0; color: var(--link); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------------- home intro ---------------- */
.intro { padding: 44px 16px 20px; }
.intro h1 { max-width: 880px; }
.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 780px; }
.price-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; font-weight: 700; color: var(--ink); font-size: .98rem; }
.price-line span { display: inline-flex; align-items: center; gap: 8px; }
.price-line span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------------- builder ---------------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 48px; }
.builder-form { min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 22px 22px 18px; margin: 0 0 18px; }
.panel > legend, .panel-title { font-family: var(--serif); font-weight: 700; font-size: 1.14rem; color: var(--ink); padding: 0; margin: 0 0 4px; float: left; width: 100%; }
fieldset.panel { min-inline-size: 0; }
.panel-note { clear: both; color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.fields { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .lbl { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=date], input[type=month], input[type=number], select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--rule-2); border-radius: var(--radius); padding: 9px 11px; min-height: 44px;
}
input:hover, select:hover { border-color: var(--ink-2); }
.choice-group { clear: both; display: grid; gap: 8px; margin: 0 0 14px; }
.choice-group .lbl { margin-bottom: 2px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--navy); flex: none; }

.year { clear: both; border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 16px; }
.year:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.year-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; justify-content: space-between; margin-bottom: 10px; }
.year-head h2 { margin: 0; font-size: 1.05rem; }
.year-head .field { flex: 0 1 170px; }
.year-head .field label { font-size: .84rem; }
.course-head, .course-row { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.45fr) minmax(0, 1.3fr) minmax(0, .72fr) minmax(0, .72fr) 36px; gap: 6px; align-items: center; }
.course-head { font-size: .78rem; font-weight: 800; color: var(--muted); padding: 0 2px 4px; }
.course-row { margin-bottom: 8px; }
.course-row input, .course-row select { min-height: 40px; padding: 7px 6px; font-size: .92rem; }
.course-row select { padding-right: 2px; }
.row-remove { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--rule-2); background: #fff; color: var(--ink-2); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.row-remove:hover { border-color: var(--ink-2); color: var(--ink); background: var(--navy-tint); }
.row-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.add-row { margin-top: 4px; }
.example-note { clear: both; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: var(--gold-soft); border: 1px solid #EBD79C; border-radius: 8px; padding: 10px 14px; font-size: .93rem; margin: 0 0 18px; }

.buy { background: var(--navy); color: #fff; border-radius: 10px; padding: 22px; }
.buy h2 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.buy p { color: #DDE3F0; font-size: .96rem; }
.buy label { color: #fff; }
.buy .btn { background: var(--gold-on-navy); border-color: var(--gold-on-navy); color: var(--navy-deep); width: 100%; margin-top: 12px; }
.buy .btn:hover { background: #F2C85A; border-color: #F2C85A; color: var(--navy-deep); }
.buy a { color: #fff; }
.buy .fine { font-size: .86rem; color: #C9D2E4; margin: 10px 0 0; }
.form-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.form-status[hidden] { display: none; }
.form-status.err { background: #FFF1EC; color: #8A2A0F; border: 1px solid #F0C4B4; }
.form-status.ok { background: #EAF3EC; color: #1F5130; border: 1px solid #BFDCC7; }

/* ---------------- transcript preview ---------------- */
.preview { position: sticky; top: 16px; min-width: 0; }
.preview-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.preview-cap h2 { font-size: 1.05rem; margin: 0; }
.preview-cap p { margin: 0; font-size: .86rem; color: var(--muted); }
.sheet-paper {
  background: #fff; border: 1px solid var(--rule-2); border-radius: 4px;
  box-shadow: 0 1px 0 var(--rule), 0 14px 32px -18px rgba(23,35,63,.35);
  padding: 22px 22px 18px; font-size: 12.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere;
  max-height: calc(100vh - 110px); overflow: auto;
}
.tp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 10px; }
.tp-school { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.15; }
.tp-sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
.tp-title { font-family: var(--serif); font-size: 13px; text-align: right; }
.tp-date { font-size: 10.5px; color: var(--muted); text-align: right; }
.tp-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--rule-2); margin-bottom: 10px; }
.tp-facts div { padding: 4px 6px; border-right: 1px solid var(--rule-2); min-width: 0; }
.tp-facts div:last-child { border-right: none; }
.tp-facts span { display: block; font-size: 9.5px; color: var(--muted); }
.tp-facts b { font-size: 11.5px; }
.tp-years { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.tp-year table { width: 100%; border-collapse: collapse; }
.tp-year caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 12px; padding-bottom: 2px; }
.tp-year caption span { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 10.5px; }
.tp-year th { white-space: nowrap; font-size: 9.5px; color: var(--muted); text-align: left; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 2px 3px; }
.tp-year td { padding: 2px 3px; border-bottom: 1px solid #E7EAF1; font-size: 11.5px; }
.tp-year .n { text-align: right; white-space: nowrap; }
.tp-year .lv { color: var(--muted); font-size: 10px; }
.tp-year tr.sum td { border-top: 1px solid var(--ink); border-bottom: none; font-size: 10.5px; padding-top: 3px; }
.tp-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1.5px solid var(--ink); margin: 12px 0 10px; }
.tp-summary div { padding: 6px 8px; border-right: 1px solid var(--ink); min-width: 0; }
.tp-summary div:last-child { border-right: none; }
.tp-summary span { display: block; font-size: 9.5px; color: var(--muted); }
.tp-summary strong { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.tp-summary small { display: block; font-size: 9.5px; color: var(--muted); }
.tp-keys { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; font-size: 10.5px; }
.tp-keys b { display: block; font-size: 10.5px; margin-bottom: 2px; }
.tp-keys table { width: 100%; border-collapse: collapse; }
.tp-keys th { white-space: nowrap; text-align: left; font-size: 9.5px; color: var(--muted); border-bottom: 1px solid var(--ink); }
.tp-keys td { border-bottom: 1px solid #E7EAF1; }
.tp-keys .n { text-align: right; }
.tp-cert { border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 6px; font-size: 10.5px; }
.tp-sig { display: grid; grid-template-columns: 1.6fr 1fr .8fr; gap: 10px; margin-top: 18px; }
.tp-sig span { border-top: 1px solid var(--ink); padding-top: 2px; font-size: 9.5px; color: var(--muted); }
.tp-empty { color: var(--muted); font-style: italic; padding: 10px 0; }
.workings { margin-top: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; font-size: .92rem; }
.workings summary { cursor: pointer; font-weight: 800; }
.workings .formula { font-family: var(--serif); margin: 8px 0 4px; }
.gpa-bar { display: none; }

@media (max-width: 980px) {
  .builder { grid-template-columns: 1fr; }
  .preview { position: static; }
  .sheet-paper { max-height: none; }
  .gpa-bar { display: flex; position: sticky; bottom: 0; z-index: 15; justify-content: space-between; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 16px; font-size: .93rem; }
  .gpa-bar a { color: var(--gold-on-navy); font-weight: 800; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .panel { padding: 18px 14px 14px; }
  .course-head { display: none; }
  .course-row { grid-template-columns: 1fr 1fr; gap: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px; }
  .course-row .c-title { grid-column: 1 / -1; }
  .row-label { position: static; width: auto; height: auto; margin: 0 0 2px; overflow: visible; clip: auto; white-space: normal; display: block; font-size: .78rem; font-weight: 800; color: var(--muted); }
  .course-row .cell { display: flex; flex-direction: column; min-width: 0; }
  .row-remove { justify-self: end; align-self: end; }
  .sheet-paper { padding: 14px 12px; font-size: 11.5px; }
  .tp-years { grid-template-columns: 1fr; }
  .tp-facts { grid-template-columns: 1fr 1fr; }
  .tp-facts div:nth-child(2) { border-right: none; }
  .tp-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--rule-2); }
  .tp-summary { grid-template-columns: 1fr; }
  .tp-summary div { border-right: none; border-bottom: 1px solid var(--ink); }
  .tp-summary div:last-child { border-bottom: none; }
  .tp-keys { grid-template-columns: 1fr; }
  .tp-sig { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------------- home sections ---------------- */
.band { padding: 56px 0; border-top: 1px solid var(--rule); }
.band.tint { background: var(--paper-2); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.two > * { min-width: 0; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.contents { list-style: none; margin: 0; padding: 0; counter-reset: pg; }
.contents li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contents li:first-child { border-top: 2px solid var(--ink); }
.contents .line { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 1.08rem; }
.contents .line .dots { flex: 1; border-bottom: 2px dotted var(--rule-2); transform: translateY(-4px); min-width: 20px; }
.contents .line .pg { font-family: var(--sans); font-size: .9rem; color: var(--gold-text); font-weight: 800; white-space: nowrap; }
.contents p { margin: 4px 0 0; color: var(--ink-2); font-size: .97rem; }

table.plain { width: 100%; border-collapse: collapse; font-size: .96rem; background: #fff; }
table.plain caption { text-align: left; font-weight: 800; padding: 0 0 8px; color: var(--ink); }
table.plain th, table.plain td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain thead th { border-top: 2px solid var(--ink); border-bottom: 1.5px solid var(--ink); font-size: .86rem; color: var(--ink-2); }
table.plain td.n, table.plain th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.plain tfoot td { font-weight: 800; border-top: 1.5px solid var(--ink); border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.table-scroll table.plain { min-width: 620px; }
.table-scroll:focus-visible { outline: 3px solid var(--link); }

.formula-box { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--gold); border-radius: 6px; padding: 14px 18px; margin: 18px 0; }
.formula-box p { margin: 0 0 6px; }
.formula-box p:last-child { margin: 0; }
.formula-box .eq { font-family: var(--serif); font-size: 1.05rem; }

.state-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.state-links a { display: block; padding: 6px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 600; }
.state-links a:hover { color: var(--link); text-decoration: underline; }
.state-jump { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 14px 0 0; }
.state-jump .field { flex: 1 1 220px; }

.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.qa summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 1.06rem; list-style-position: outside; }
.qa details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------------- inner pages ---------------- */
.page-head { padding-top: 34px; padding-bottom: 10px; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-2); }
.crumbs a { color: var(--ink-2); }
.asat { color: var(--muted); font-size: .95rem; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0 0 .45em; }
.prose h2 { margin-top: 1.6em; }
.prose a.btn { color: #fff; text-decoration: none; }
.content { padding-top: 8px; padding-bottom: 60px; }

/* state reference sheet */
.ref-sheet { background: #fff; border: 1px solid var(--rule-2); border-top: 4px solid var(--navy); border-radius: 6px; margin: 18px 0 30px; }
.ref-sheet .rs-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.ref-sheet .rs-head h2 { font-size: 1.15rem; margin: 0; }
.ref-sheet .rs-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.glance { margin: 0; }
.glance > div { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.glance > div:last-child { border-bottom: none; }
.glance dt { font-weight: 800; color: var(--ink); }
.glance dd { margin: 0; color: var(--ink-2); }
.glance dd .tag { margin-bottom: 4px; }
.cite { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; }
.cite a { color: var(--muted); }
.tag { display: inline-block; font-size: .82rem; font-weight: 800; padding: 1px 10px; border-radius: 999px; border: 1.5px solid #9AA6C4; line-height: 1.55; color: #22325A; background: var(--navy-tint); margin-bottom: 4px; }
@media (max-width: 700px) { .glance > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; } .ref-sheet .rs-head { padding: 12px 14px; } }

.options { list-style: none; padding: 0; margin: 0 0 1em; }
.options li { border-left: 4px solid var(--gold); background: #fff; padding: 12px 16px; margin: 0 0 10px; border-radius: 0 6px 6px 0; }
.options b { display: block; font-family: var(--serif); }
.unverified { background: #FFF7E6; border: 1px solid #EFD9A6; border-radius: 8px; padding: 14px 18px; margin: 10px 0 20px; }
.unverified h2 { font-size: 1.15rem; margin: 0 0 6px; }
.unverified ul { margin: 0; padding-left: 1.2em; }
.sources { font-size: .93rem; }
.sources li { margin-bottom: .4em; }
.cta-box { background: var(--navy); color: #fff; border-radius: 10px; padding: 22px 24px; margin: 30px 0; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.cta-box p { margin: 0; color: #E4E9F3; max-width: 520px; }
.cta-box strong { color: #fff; font-family: var(--serif); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.cta-box .btn, .prose .cta-box a.btn { background: var(--gold-on-navy); border-color: var(--gold-on-navy); color: var(--navy-deep); }
.cta-box .btn:hover, .prose .cta-box a.btn:hover { background: #F2C85A; border-color: #F2C85A; color: var(--navy-deep); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 24px; }

.guide-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.guide-list li { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.guide-list a { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.guide-list p { margin: 6px 0 0; color: var(--ink-2); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); margin-top: 0; padding: 40px 0 26px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font-family: var(--sans); font-size: .98rem; font-weight: 800; margin: 0 0 8px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 6px; }
.foot-grid a { color: var(--ink); }
.foot-brand { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; }
.foot-note { border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 16px; color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------- status pages ---------------- */
.status-page { padding-top: 60px; padding-bottom: 80px; }
.status-page .btn { margin-top: 8px; }
.status-box { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 26px; max-width: 680px; }

/* long URLs or citations in research text must wrap, never widen the page */
main p, main li, main dd, main .cite { overflow-wrap: anywhere; }
