/* PLO Assessment at Bellevue College
   Shared stylesheet.

   Type:    Fraunces (display) over IBM Plex Sans (body).
   Palette: warm bone paper, deep slate ink, one brick accent spent once per view.
   System:  one spacing scale, one 4px radius, hairline rules instead of shadows. */

:root {
  /* ink and paper */
  --ink:        #191F26;
  --ink-2:      #4C5761;
  --ink-3:      #7B8590;
  --paper:      #F7F4EE;
  --surface:    #FFFFFF;
  --alt:        #EFEBE2;
  --line:       #E1DCD1;
  --line-2:     #EDE9E0;

  /* dark panel */
  --deep:       #171E26;
  --deep-2:     #222B35;
  --on-deep:    #E9E4DA;
  --on-deep-2:  #A4AEB8;
  --on-deep-3:  #7A848F;
  --deep-line:  #303A45;

  /* the one accent */
  --accent:     #B4451F;
  --accent-2:   #8E3416;
  --accent-up:  #E08A50;

  --flag-bg:    #FBF0D8;
  --flag-line:  #C7A24A;
  --flag-ink:   #6B5012;

  /* spacing scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2.25rem;
  --s7: 3.5rem;
  --s8: 5rem;

  --wrap: 74rem;
  --measure: 42rem;
  --radius: 4px;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

code {
  font-family: var(--mono);
  font-size: 0.8em;
  letter-spacing: -0.01em;
}

a { color: var(--accent-2); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s5);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: var(--s3) var(--s4);
  z-index: 60;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible { outline-color: var(--accent-up); }

/* ---------- Shared type utilities ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s4);
}
.kicker__num {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-right: var(--s3);
  border-right: 1px solid var(--line);
}

.minor {
  font-size: 1.18rem;
  margin-bottom: var(--s4);
}

.micro {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--s3);
  line-height: 1.4;
}

.aside {
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 60ch;
}

.filerow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-2);
}
.filerow span {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.filerow code { color: var(--ink-2); word-break: break-all; }

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li {
  position: relative;
  padding-left: var(--s5);
  margin-bottom: var(--s3);
  color: var(--ink-2);
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--ink-3);
}
.list li:last-child { margin-bottom: 0; }
.list--tight li { margin-bottom: var(--s2); font-size: 0.95rem; }

.list--num { counter-reset: n; }
.list--num li { counter-increment: n; padding-left: 1.9rem; font-size: 0.95rem; }
.list--num li::before {
  content: counter(n);
  top: 0;
  width: auto; height: auto;
  background: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.93);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  color: var(--ink);
  padding: var(--s2) 0;
  border-radius: var(--radius);
}
.brand:hover .brand__mark { background: var(--accent); }
.brand__mark {
  width: 3px;
  height: 30px;
  flex: 0 0 auto;
  background: var(--ink);
  transition: background 140ms ease;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand__text span {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  gap: var(--s1);
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.88rem;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  transition: color 140ms ease, background 140ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: var(--s3);
  right: var(--s3);
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.nav a:hover { color: var(--ink); background: var(--alt); }
.nav a.is-current { color: var(--ink); font-weight: 600; }
.nav a.is-current::after { transform: scaleX(1); }

/* ---------- Hero ---------- */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--s8) 0 var(--s7);
}
.hero__inner { max-width: 60rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s5);
}

.hero h1 {
  font-size: clamp(2.35rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 17ch;
  margin-bottom: var(--s6);
  text-wrap: balance;
}

.hero__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: var(--s5) var(--s6);
  max-width: 58rem;
}
.hero__body > * { min-width: 0; }

.lede {
  font-size: 1.06rem;
  color: var(--ink-2);
  max-width: 46ch;
}
.lede--soft { color: var(--ink-3); }

/* fact rail */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 0;
  margin: var(--s7) 0 var(--s6);
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  min-width: 0;
  padding: var(--s4) var(--s5) var(--s4) 0;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s2);
}
.fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.fact dd span {
  display: block;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-top: var(--s1);
}
.fact--accent dd { color: var(--accent); }

.note {
  font-size: 0.92rem;
  color: var(--ink-2);
  border-left: 2px solid var(--line);
  padding-left: var(--s4);
  max-width: 46rem;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--line);
}
.section--alt { background: var(--alt); }
.section--alt .filerow { border-top-color: #e0dbd0; }

.section__head {
  max-width: 44rem;
  margin-bottom: var(--s7);
}
.section h2 {
  font-size: clamp(1.75rem, 3.9vw, 2.7rem);
  margin-bottom: var(--s4);
  text-wrap: balance;
}
.section__lede {
  color: var(--ink-2);
  max-width: 58ch;
}

/* pull statement */

.pull {
  margin: 0 0 var(--s7);
  padding: 0 0 0 var(--s5);
  border-left: 2px solid var(--ink);
  max-width: 50rem;
}
.pull p {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

/* timeline */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 0;
  list-style: none;
  margin: 0 0 var(--s7);
  padding: 0;
  border-top: 1px solid var(--line);
}
.timeline li {
  min-width: 0;
  padding: var(--s4) var(--s5) var(--s5) 0;
  border-top: 3px solid transparent;
  margin-top: -1px;
}
.timeline li + li { border-left: 1px solid var(--line); padding-left: var(--s5); }
.timeline__when {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}
.timeline__what {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin: 0;
}
.timeline .is-target { border-top-color: var(--accent); }
.timeline .is-target .timeline__when { color: var(--accent); }

/* two-column split */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: var(--s6) var(--s7);
  margin-bottom: var(--s6);
}
.split--tight { gap: var(--s5) var(--s6); margin-bottom: 0; }
.split__col { min-width: 0; }

.bound {
  max-width: 46rem;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bound p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Charter ---------- */

.charter {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s7);
  margin-bottom: var(--s7);
}
.charter__main, .charter__side { min-width: 0; }

.tablewrap { overflow-x: auto; }
.tablewrap + .aside { margin-top: var(--s5); }

.table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: var(--s3) var(--s4) var(--s3) 0;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  font-family: var(--body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--ink);
  padding-bottom: var(--s2);
}
.table tbody th { font-weight: 500; color: var(--ink); padding-right: var(--s5); }
.table td { color: var(--ink-2); }
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 4.5rem;
  padding-right: var(--s5);
}
.table tfoot th {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 0;
  padding-top: var(--s4);
}
.table tfoot td { border-bottom: 0; padding-top: var(--s4); font-size: 0.86rem; }
.table .total {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.rules { margin: 0; }
.rules dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s1);
}
.rules dd {
  margin: 0 0 var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.rules dd:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.notdo {
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 58rem;
}
.notdo .aside { margin-top: var(--s5); }

/* ---------- Plan feature ---------- */

.feature {
  padding: var(--s7) var(--s7) var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: var(--s6);
}
.feature__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s4);
}
.feature__title {
  font-size: clamp(1.45rem, 2.9vw, 2.05rem);
  max-width: 24ch;
  margin-bottom: var(--s5);
  text-wrap: balance;
}
.feature__lede {
  font-size: 1.02rem;
  color: var(--ink-2);
  max-width: 62ch;
  margin-bottom: var(--s6);
}
.feature__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--s6) var(--s7);
  padding-top: var(--s6);
  border-top: 1px solid var(--line-2);
}
.feature__grid > * { min-width: 0; }

.models { margin: 0 0 var(--s4); }
.models dt {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--s3);
}
.models dt:first-child { margin-top: 0; }
.models dd {
  margin: var(--s1) 0 var(--s3);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.parts {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: 0;
  counter-reset: none;
}
.parts li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.parts li:last-of-type { border-bottom: 0; }
.parts span {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.cycle {
  margin-top: var(--s6);
  padding: var(--s5) 0 0;
  border-top: 1px solid var(--line-2);
}
.cycle__line {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.42;
  color: var(--ink);
  max-width: 52ch;
  margin-bottom: var(--s4);
}
.cycle__line strong { font-weight: 600; }
.hot { color: var(--accent); }

.guard {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--paper);
  border-radius: var(--radius);
}
.guard p { font-size: 0.93rem; color: var(--ink-2); max-width: 70ch; margin: 0; }

/* paired panels */

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
}
.pair > * { min-width: 0; }
.panel {
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s3);
}
.panel__title {
  font-size: 1.34rem;
  margin-bottom: var(--s4);
  text-wrap: balance;
}
.panel p { font-size: 0.95rem; color: var(--ink-2); }
.panel .list { margin-top: var(--s4); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
  margin: var(--s4) 0 var(--s4);
  padding: 0;
}
.chips li {
  font-size: 0.78rem;
  color: var(--ink-2);
  padding: 0.2rem var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

/* ---------- BUS 223, dark section ---------- */

.section--dark {
  background: var(--deep);
  color: var(--on-deep);
  border-bottom: 0;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-deep); }
.section--dark .kicker { color: var(--on-deep-3); }
.section--dark .kicker__num { color: var(--on-deep); border-right-color: var(--deep-line); }
.section--dark .section__lede { color: var(--on-deep-2); }
.section--dark .micro { color: var(--on-deep-3); }
.section--dark .aside { color: var(--on-deep-3); }
.section--dark .list li { color: var(--on-deep-2); }
.section--dark .list li::before { background: var(--on-deep-3); }
.section--dark .list--num li::before { color: var(--on-deep-3); background: none; }
.section--dark .pull { border-left-color: var(--on-deep-3); }
.section--dark .pull p { color: var(--on-deep); }
.section--dark p { color: var(--on-deep-2); }
.section--dark .facts { border-color: var(--deep-line); }
.section--dark .fact { border-right-color: var(--deep-line); }
.section--dark .fact dt { color: var(--on-deep-3); }
.section--dark .fact dd { color: var(--on-deep); }
.section--dark .fact dd span { color: var(--on-deep-3); }
.section--dark .fact--accent dd { color: var(--accent-up); }
.section--dark .rules dt { color: var(--on-deep); }
.section--dark .rules dd { color: var(--on-deep-2); border-bottom-color: var(--deep-line); }

.filerow--onDark { border-top-color: var(--deep-line); }
.filerow--onDark span { color: var(--on-deep-3); }
.filerow--onDark code { color: var(--on-deep-2); }

.steps {
  list-style: none;
  margin: var(--s7) 0 0;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--s5);
  padding: var(--s6) 0;
  border-top: 1px solid var(--deep-line);
}
.step:first-child { border-top: 1px solid var(--on-deep-3); }
.step__num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--on-deep-3);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.step__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-deep-3);
  margin-bottom: var(--s3);
}
.step__title {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin-bottom: var(--s4);
  text-wrap: balance;
}
.step__body { min-width: 0; }
.step__body > p { max-width: 68ch; }

.claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: var(--s5);
  margin: var(--s5) 0;
  padding: var(--s5);
  background: var(--deep-2);
  border-radius: var(--radius);
}
.claims__col { min-width: 0; }
.claims p { font-size: 0.92rem; margin: 0; }

.case {
  margin: var(--s5) 0;
  padding-left: var(--s5);
  border-left: 1px solid var(--deep-line);
}
.case p { font-size: 0.95rem; max-width: 66ch; }

.plos {
  list-style: none;
  margin: var(--s5) 0;
  padding: 0;
  border-top: 1px solid var(--deep-line);
}
.plos li {
  display: grid;
  grid-template-columns: 4.5rem minmax(min(9rem, 100%), 15rem) minmax(0, 1fr);
  gap: var(--s3) var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--deep-line);
  align-items: baseline;
}
.plos li > * { min-width: 0; }
.plos__id {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-deep);
}
.plos__crit { font-size: 0.92rem; color: var(--on-deep); font-weight: 500; }
.plos__ev { font-size: 0.88rem; color: var(--on-deep-3); }

.rules--flat { margin-top: var(--s5); }

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--deep-line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-deep-3);
}
.links a {
  color: var(--on-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--on-deep-3);
  padding-bottom: 1px;
  transition: color 140ms ease, border-color 140ms ease;
}
.links a:hover { color: var(--accent-up); border-bottom-color: var(--accent-up); }

/* ---------- Reference ---------- */

.reflist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.reflist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--s4) var(--s7);
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--line);
}
.reflist__head, .reflist__body { min-width: 0; }
.reflist h3 {
  font-size: 1.22rem;
  margin-bottom: var(--s2);
  text-wrap: balance;
}
.reflist__org {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin: 0;
}
.reflist__body p { font-size: 0.95rem; color: var(--ink-2); }
.reflist__take { color: var(--ink); }
.reflist__take strong { font-weight: 600; }
.reflist .filerow { margin-top: var(--s4); }

/* ---------- Close ---------- */

.section--close {
  background: var(--alt);
  border-bottom: 0;
  padding: var(--s8) 0;
}
.close { max-width: 58rem; }
.close h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  max-width: 18ch;
  margin-bottom: var(--s7);
  text-wrap: balance;
}

.asks {
  list-style: none;
  counter-reset: ask;
  margin: 0 0 var(--s6);
  padding: 0;
  border-top: 1px solid var(--line);
}
.asks li {
  counter-increment: ask;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}
/* The counter is a grid item in its own right, so the heading and the body
   must both be pinned to the text column. Left to auto-placement the body
   falls to row two of the 3rem number track and wraps one word per line. */
.asks li::before {
  content: counter(ask, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-3);
  padding-top: 0.2rem;
}
.asks h3 {
  grid-column: 2;
  min-width: 0;
  font-size: 1.2rem;
  margin-bottom: var(--s2);
}
.asks p {
  grid-column: 2;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}

.note--close { border-left-color: var(--accent); }

/* ---------- Footer ---------- */

.footer {
  background: var(--deep);
  color: var(--on-deep-2);
  padding: var(--s6) 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s7);
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
}
.footer__by { color: var(--on-deep); max-width: 40rem; }
.footer__by span { color: var(--on-deep-3); font-size: 0.82rem; }
.footer__meta { color: var(--on-deep-3); font-size: 0.82rem; }
.footer .ph {
  background: rgba(251, 240, 216, 0.12);
  border-color: rgba(199, 162, 74, 0.7);
  color: #F0E1B7;
}

/* ---------- Placeholders ---------- */

.ph {
  display: inline;
  background: var(--flag-bg);
  border: 1px dashed var(--flag-line);
  border-radius: 3px;
  color: var(--flag-ink);
  font-family: var(--mono);
  font-size: 0.76em;
  line-height: 1.5;
  padding: 0.1em 0.4em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Specificity fixes ----------
   These labels sit inside blocks that colour their paragraphs, so they need
   to be restated at matching weight rather than left to lose the cascade. */

.section--dark .step__num,
.section--dark .step__tag,
.section--dark .links,
.section--dark .filerow--onDark { color: var(--on-deep-3); }

.panel .panel__tag,
.panel .aside { color: var(--ink-3); }
.reflist__body .reflist__take { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .charter { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .reflist li { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .feature { padding: var(--s6) var(--s5) var(--s5); }
  .notdo { padding: var(--s5); }
}

@media (max-width: 700px) {
  .timeline li,
  .timeline li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }
  .timeline li + li { border-top: 1px solid var(--line); }
  .timeline .is-target { border-top-color: var(--accent); border-top-width: 3px; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .section--dark .fact { border-bottom-color: var(--deep-line); }
  .step { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .step__num { font-size: 1.5rem; }
  .plos li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .plos__id { font-size: 0.85rem; letter-spacing: 0.06em; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 var(--s4); }
  .hero { padding: var(--s7) 0 var(--s6); }
  .section, .section--close { padding: var(--s7) 0; }
  .section__head { margin-bottom: var(--s6); }
  .feature, .panel, .notdo, .bound { padding: var(--s5) var(--s4); }
  .claims { padding: var(--s4); }
  .asks li { grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0 var(--s3); }
  .topbar__inner { min-height: 58px; }
  .nav { width: 100%; margin: 0 0 var(--s1) calc(var(--s3) * -1); }
  .pull { padding-left: var(--s4); }
  .case { padding-left: var(--s4); }
}

@media print {
  .topbar, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .section--dark, .footer { background: #fff; color: #000; }
  .section--dark h2, .section--dark h3, .section--dark h4,
  .section--dark p, .footer__by { color: #000; }
  .section, .hero, .feature, .panel { border-color: #ccc; page-break-inside: avoid; }
  .step, .reflist li { break-inside: avoid; }
}
