/* NPX Exchange — Registry
   Editorial reading guide. Palette: paper #FCFCFA, ink #12100E,
   muted #6B665C, hairline #E2DDD2, emerald #0F6B4F, warm grey #A79E8E. */

:root {
  --paper: #FCFCFA;
  --paper-2: #F7F5EF;
  --ink: #12100E;
  --muted: #6B665C;
  --hair: #E2DDD2;
  --emerald: #0F6B4F;
  --emerald-soft: rgba(15, 107, 79, 0.06);
  --warm: #A79E8E;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --measure: 66ch;
  --gutter: 128px;
  --gap: 30px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 560px at 84% -8%, rgba(15, 107, 79, 0.055), transparent 68%),
    radial-gradient(900px 520px at -12% 24%, rgba(167, 158, 142, 0.10), transparent 64%),
    linear-gradient(180deg, #FCFCFA 0%, #FBFAF6 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain, very quiet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(15, 107, 79, 0.16);
}

img { max-width: 100%; }

a {
  color: var(--emerald);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 28px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: top 0.25s var(--ease);
}

.skip:focus { top: 16px; color: var(--paper); }

/* ---------- top bar ---------- */

.sitebar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 252, 250, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}

.sitebar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  padding-top: 12px;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

.brand__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 1px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--hair); }

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--emerald);
}

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 8px;
  position: relative;
}

.hero__inner {
  margin-left: calc(var(--gutter) + var(--gap));
  max-width: 820px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--emerald);
}

.kicker__rule {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--emerald);
  opacity: 0.7;
}

h1 {
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.024em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.standfirst {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  line-height: 1.62;
  color: #3B372F;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  max-width: 860px;
}

.hero-meta > div {
  padding-right: 22px;
  margin-bottom: 12px;
}

.hero-meta > div + div {
  border-left: 1px solid var(--hair);
  padding-left: 22px;
}

.hero-meta dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta dd {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- lessons ---------- */

.lesson {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  grid-template-rows: min-content 1fr;
  column-gap: var(--gap);
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding: 60px 28px;
  border-top: 1px solid var(--hair);
}

.lesson--flush { border-top: 0; }

.lesson__num {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}

.lesson__note {
  grid-row: 2;
  grid-column: 1;
  align-self: start;
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.lesson__body {
  grid-row: 1 / span 2;
  grid-column: 2;
  max-width: 74ch;
}

.lesson__body > * { max-width: var(--measure); }

.lesson__body h2 {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.78rem, 3.3vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  text-wrap: balance;
  max-width: 24ch;
}

.lesson__body h3 {
  margin: 40px 0 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
}

.lesson__body p {
  margin: 0 0 20px;
}

.lesson__body p:last-child { margin-bottom: 0; }

.lesson__body > ul,
.lesson__body > ol {
  margin: 0 0 24px;
  padding: 0;
}

/* drop cap on the opening paragraph of a lesson */
.lede::first-letter {
  float: left;
  margin: 0.05em 0.1em 0 0;
  font-family: var(--serif);
  font-size: 3.5em;
  line-height: 0.78;
  font-weight: 500;
  color: var(--emerald);
}

/* quotable claim */
.claim {
  margin: 34px 0 34px !important;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--emerald);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.55;
  letter-spacing: -0.004em;
  max-width: 58ch;
}

.claim strong { font-weight: 600; }

/* pull quote */
.pullquote {
  margin: 48px 0 44px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  max-width: 56ch;
}

.pullquote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.9vw, 2.1rem);
  line-height: 1.26;
  letter-spacing: -0.016em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.pullquote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* numbered / bulleted lists inside prose */
.bullets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  max-width: var(--measure);
}

.bullets li {
  position: relative;
  padding: 0 0 0 24px;
  margin-bottom: 12px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--emerald);
}

.bullets--no li::before { background: var(--warm); }

/* ---------- comparison table ---------- */

.tablecard {
  margin: 30px 0 0;
  padding: 8px 28px 20px;
  background:
    linear-gradient(180deg, rgba(15, 107, 79, 0.045), rgba(15, 107, 79, 0.012)),
    var(--paper);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--ink);
  max-width: 940px;
}

.tablecard__cap,
.lesson__body .tablecard__cap {
  margin: 0 0 4px;
  padding: 14px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.55;
}

.compare thead th {
  padding: 14px 18px 14px 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--emerald);
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid var(--ink);
}

.compare tbody th {
  width: 16%;
  padding: 18px 18px 18px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--hair);
}

.compare tbody td {
  padding: 18px 18px 18px 0;
  vertical-align: top;
  border-top: 1px solid var(--hair);
}

.compare tbody tr:first-child th,
.compare tbody tr:first-child td { border-top: 0; }

.compare td:last-child { padding-right: 4px; }

.compare em {
  font-style: normal;
  color: var(--muted);
}

.tablecard__note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 78ch;
}

/* ---------- documents ---------- */

.doc {
  margin: 46px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--hair);
  max-width: 100%;
}

.doc:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc__head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.doc__num {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 500;
  color: var(--emerald);
  font-optical-sizing: auto;
  padding-top: 2px;
}

.doc__head h3 {
  margin: 0 0 8px;
  font-size: 1.42rem;
}

.doc__sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lesson__body .doc__sub { margin: 0; }

.doc__body p { max-width: 62ch; }

/* figure */
.docfig {
  margin: 26px 0 8px;
  max-width: 540px;
}

.docfig--wide { max-width: 100%; }

.docfig__frame {
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid var(--hair);
  box-shadow:
    0 26px 46px -34px rgba(18, 16, 14, 0.5),
    0 1px 2px rgba(18, 16, 14, 0.05);
}

.docfig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #EDEAE2;
  background: #FFFFFF;
}

.docfig figcaption {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* proves / does not prove */
.boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin: 30px 0 0;
  max-width: 72ch;
}

.boundary__col {
  padding: 2px 0 0 20px;
}

.boundary__col--yes { border-left: 2px solid var(--emerald); }
.boundary__col--no { border-left: 2px solid var(--warm); }

.boundary__col h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.boundary__col--yes h4 { color: var(--emerald); }

.boundary__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary__col li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.boundary__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

/* ---------- definition list ---------- */

.kv {
  margin: 28px 0 8px;
  max-width: 72ch;
  border-top: 1px solid var(--ink);
}

.kv > div {
  display: grid;
  grid-template-columns: minmax(140px, 30%) minmax(0, 1fr);
  gap: 22px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}

.kv dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.kv dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.kv dd strong { font-weight: 600; }

/* ---------- quote block ---------- */

.quote {
  margin: 32px 0;
  padding: 24px 28px 22px;
  background: linear-gradient(180deg, rgba(15, 107, 79, 0.055), rgba(15, 107, 79, 0.02));
  border-left: 2px solid var(--emerald);
  max-width: 70ch;
}

.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.6;
  letter-spacing: -0.003em;
  font-optical-sizing: auto;
}

.quote footer {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- trio motif ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 8px;
  background: var(--hair);
  border: 1px solid var(--hair);
  max-width: 900px;
}

.trio__cell {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 26px 22px 24px;
  background: #FBFAF5;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.35s var(--ease);
}

.trio__cell:hover { background: rgba(15, 107, 79, 0.055); color: var(--ink); }

.trio__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
}

.trio__label iconify-icon { font-size: 15px; color: var(--muted); }

.trio__title {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.trio__note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- checklist ---------- */

.checklist {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 8px;
  padding: 0;
  max-width: 70ch;
  border-top: 1px solid var(--ink);
}

.checklist li {
  counter-increment: step;
  position: relative;
  padding: 18px 0 18px 52px;
  border-bottom: 1px solid var(--hair);
  font-size: 0.96rem;
  line-height: 1.6;
}

.checklist li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 19px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.checklist strong { font-weight: 600; }

/* ---------- related / next ---------- */

.next {
  margin: 34px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--ink);
  font-size: 0.98rem;
  max-width: var(--measure);
}

.next__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- article header / breadcrumb ---------- */

.crumb {
  padding: 26px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--warm);
}

.crumb a {
  display: inline-block;
  padding: 13px 2px;
  margin: -13px 0;
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover { color: var(--emerald); }

.article-head {
  padding: 30px 0 44px;
}

.article-head__inner {
  margin-left: calc(var(--gutter) + var(--gap));
  max-width: 800px;
}

.article-head h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  margin-bottom: 24px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 34px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.byline span { display: inline-flex; align-items: center; gap: 8px; }

.byline b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- footer ---------- */

.sitefoot {
  margin-top: 92px;
  padding: 66px 0 34px;
  border-top: 1px solid var(--hair);
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(15, 107, 79, 0.05), transparent 70%),
    linear-gradient(180deg, #F8F7F1, #F3F1E9);
}

.sitefoot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.55fr) minmax(0, 0.75fr);
  gap: 46px;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-optical-sizing: auto;
}

.foot-brand span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-left: 10px;
  vertical-align: 3px;
}

.foot-lede {
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.disclaimer {
  margin: 0;
  max-width: 62ch;
  font-size: 0.78rem;
  line-height: 1.72;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}

.foot-h {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-list li { margin: 0 0 4px; }

.foot-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 7px 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.foot-list a:hover { color: var(--emerald); border-bottom-color: var(--emerald); }

.foot-list span { display: block; color: var(--muted); font-size: 0.78rem; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero__inner,
  .article-head__inner { margin-left: 0; }

  .lesson {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 0;
  }

  .lesson__num {
    grid-row: auto;
    grid-column: 1;
    padding: 0 0 12px;
  }

  .lesson__note {
    grid-row: auto;
    grid-column: 1;
    margin: 6px 0 24px;
    padding: 14px 0 0 16px;
    border-top: 0;
    border-left: 1px solid var(--hair);
    max-width: 52ch;
  }

  .lesson__body {
    grid-row: auto;
    grid-column: 1;
    max-width: 100%;
  }

  .sitefoot__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 38px;
  }

  .sitefoot__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .compare thead { display: none; }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td { display: block; width: auto; }

  .compare tbody tr {
    padding: 4px 0 16px;
    border-top: 1px solid var(--hair);
  }

  .compare tbody tr:first-child { border-top: 0; }

  .compare tbody th {
    padding: 16px 0 6px;
    border-top: 0;
    color: var(--emerald);
    font-size: 9.5px;
  }

  .compare tbody td {
    padding: 6px 0;
    border-top: 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    font-size: 0.88rem;
  }

  .compare tbody td::before {
    content: attr(data-col);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
  }

  .tablecard { padding: 6px 20px 16px; }

  .boundary { grid-template-columns: 1fr; gap: 26px; }

  .trio { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { padding-inline: 20px; }

  .sitebar { position: static; }

  .sitebar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 4px;
  }

  .brand { padding-top: 0; }

  .nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav a { font-size: 9.5px; white-space: nowrap; }

  .hero { padding-top: 46px; }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 34px;
  }

  .hero-meta > div { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .hero-meta > div:last-child { border-bottom: 0; }
  .hero-meta > div + div { border-left: 0; padding-left: 0; }

  .lesson { padding: 44px 20px; }

  .article-head { padding: 20px 0 34px; }

  .byline { gap: 6px 18px; }

  .kv > div { grid-template-columns: 1fr; gap: 4px; }

  .docfig { max-width: 100%; }

  .doc__head { grid-template-columns: 40px minmax(0, 1fr); }

  .sitefoot { margin-top: 66px; padding-top: 48px; }

  .sitefoot__grid { grid-template-columns: 1fr; gap: 32px; }

  .quote { padding: 20px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
