/* Level Entry: one stylesheet, system fonts only, mobile first, WCAG AA contrast or better throughout. */
:root {
  --teal: #123c46;
  --teal-2: #1d5866;
  --gold: #e8b04a;
  --gold-soft: #fbf1dc;
  --ground: #fbfaf6;
  --card: #ffffff;
  --text: #1b1f22;
  --soft: #4a5459;
  --rule: #d8dcd6;
  --width: 42rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 1.125rem/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--teal-2); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--teal); text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
.jump { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--text); padding: .6rem 1rem; z-index: 5; }
.jump:focus { left: .5rem; top: .5rem; }

/* top bar */
.bar { background: var(--teal); color: #fff; border-bottom: 4px solid var(--gold); }
.bar-in { max-width: 68rem; margin: 0 auto; padding: .8rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.wordmark { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; display: inline-flex; align-items: center; gap: .55rem; }
.wordmark:hover { color: var(--gold-soft); }
.wm-step { width: 1.6rem; height: 1.1rem; background: linear-gradient(to top right, var(--gold) 50%, transparent 50%); border-bottom: 3px solid #fff; }
.depts { display: flex; flex-wrap: wrap; gap: .2rem .4rem; font-size: 1rem; }
.depts a { color: #fff; text-decoration: none; padding: .35rem .6rem; border-radius: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.depts a:hover { background: var(--teal-2); color: #fff; }
.depts a[aria-current="page"], .depts a.here { background: var(--gold-soft); color: var(--teal); }

main { display: block; max-width: 68rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* articles and plain pages */
.story-top, .dept-top { max-width: var(--width); margin: 0 auto 1.5rem; }
.crumbs { font-size: .95rem; color: var(--soft); margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1.15; margin: 0 0 .7rem; color: var(--teal); letter-spacing: -.01em; }
.lede { font-size: 1.25rem; color: var(--soft); margin: 0 0 .6rem; }
.meta { font-size: .9rem; color: var(--soft); margin: 0; border-top: 1px solid var(--rule); padding-top: .5rem; }
.remit { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--teal-2); margin: 0 0 .3rem; }
.text { max-width: var(--width); margin: 0 auto; }
.text h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.2rem 0 .6rem; color: var(--teal); }
.text h3 { font-size: 1.2rem; margin: 1.6rem 0 .4rem; }
.text p, .text ul, .text ol { margin: 0 0 1.1rem; }
.text li { margin-bottom: .4rem; }
.text strong { color: var(--teal); }
.note { background: var(--gold-soft); border-left: 5px solid var(--gold); padding: .9rem 1.1rem; margin: 1.5rem 0; border-radius: 0 6px 6px 0; }
.note p:last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .8rem; height: .45rem; border-left: 3px solid var(--teal-2); border-bottom: 3px solid var(--teal-2); transform: rotate(-45deg); }
.facts { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: 1rem; }
.facts th, .facts td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts th { background: #eef3f1; color: var(--teal); }
.inpage { max-width: var(--width); margin: 0 auto 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: .8rem 1.1rem; }
.inpage-h { margin: 0 0 .3rem; font-weight: 700; font-size: .95rem; }
.inpage ol { margin: 0; padding-left: 1.2rem; font-size: 1rem; }

/* lists of articles */
.entries { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.entry { display: block; background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--teal-2); border-radius: 6px; padding: .9rem 1rem; text-decoration: none; color: var(--text); }
.entry:hover { border-left-color: var(--gold); background: #fffdf7; }
.kick { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-2); }
.entry-t { display: block; font-weight: 700; font-size: 1.12rem; line-height: 1.35; color: var(--teal); }
.dek { display: block; color: var(--soft); font-size: 1rem; margin-top: .3rem; }
.len { display: block; font-size: .85rem; color: var(--soft); margin-top: .35rem; }
.entries-compact .entry { padding: .7rem .9rem; }
.count { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); border-bottom: 2px solid var(--rule); padding-bottom: .3rem; margin-top: 2rem; }
.next { max-width: var(--width); margin: 2.5rem auto 0; border-top: 3px solid var(--teal); padding-top: 1rem; }
.next-h { font-size: 1.15rem; margin: 0 0 .8rem; color: var(--teal); }

/* home */
.welcome { max-width: var(--width); margin: 0 auto 2rem; }
.welcome h1 { font-size: clamp(2.1rem, 7vw, 3.1rem); }
.shelf { display: grid; gap: 1.6rem; }
.shelf-col h2 { margin: 0; font-size: 1.45rem; }
.shelf-col h2 a { color: var(--teal); text-decoration: none; }
.shelf-col h2 a:hover { text-decoration: underline; }
.shelf-col .remit { margin: .2rem 0 .8rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; color: var(--soft); }

/* footer */
.base { background: #eef0ea; border-top: 1px solid var(--rule); color: var(--soft); font-size: 1rem; }
.base-in { max-width: var(--width); margin: 0 auto; padding: 1.8rem 1rem 2.2rem; }
.base-name { font-weight: 800; color: var(--teal); font-size: 1.1rem; margin: 0 0 .5rem; }
.base p { margin: 0 0 .7rem; }
.base-small { font-size: .9rem; }

@media (max-width: 40rem) {
  /* narrow screens: each table row becomes a small card, first cell as its heading */
  .facts thead { position: absolute; left: -9999px; }
  .facts, .facts tbody, .facts tr, .facts td { display: block; width: 100%; }
  .facts tr { border-bottom: 1px solid var(--rule); padding: .5rem 0; }
  .facts td { border: 0; padding: .15rem .2rem; }
  .facts td:first-child { font-weight: 700; color: var(--teal); }
}
@media (min-width: 52rem) {
  main { padding-top: 2.5rem; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .t-dept .entries { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .bar, .base, .next, .inpage, .jump { display: none; } body { background: #fff; } }
