/* ==========================================================================
   Article pages — restrained reading layout
   ========================================================================== */

:root {
  --paper: var(--bg);
  --paper-light: var(--card);
  --paper-card: #f5f1e9;
  --paper-deep: var(--bg-alt);
}

.article-page {
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.article-header .header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 58px;
}

.article-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-nav a {
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
}

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

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}

.availability i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

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

.article-hero {
  padding-block: 38px 30px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent-deep);
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.article-kicker .is-accent {
  color: var(--accent-deep);
}

.article-kicker i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.article-hero h1 {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.8vw, 4.6rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.04em;
}

.article-hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.article-deck {
  max-width: 38em;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.article-cn {
  max-width: 38em;
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Article layout
   -------------------------------------------------------------------------- */

.article-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 760px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  padding-block: 42px 80px;
}

.article-layout > div[aria-hidden="true"] {
  display: none;
}

.article-aside {
  position: sticky;
  top: 84px;
  padding-top: 3px;
}

.article-toc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.article-toc a {
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
}

.article-toc a:hover {
  color: var(--accent-deep);
}

.article-aside-facts {
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.article-aside-facts div {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.article-aside-facts dt {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted-light);
}

.article-aside-facts dd {
  margin-top: 2px;
  font-size: 8.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.article-body {
  min-width: 0;
  max-width: 700px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.article-body > p {
  margin-bottom: 1.25em;
}

.article-body h2 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 31px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.article-body h3 {
  margin-top: 1.9em;
  margin-bottom: 0.5em;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.article-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body strong {
  font-weight: 500;
  color: var(--ink);
}

.article-body em {
  font-family: var(--serif);
  font-size: 1.06em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.15em;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.45em;
  padding-left: 0.15em;
}

.article-body li::marker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78em;
}

.article-body blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-body code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--ink);
}

.article-body pre {
  margin: 1.6em 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper-card);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.article-body pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

/* Figures and data */

.article-figure {
  margin: 2em 0;
}

.article-figure img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
}

.article-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--muted);
}

.article-figure figcaption span:last-child {
  color: var(--muted-light);
  white-space: nowrap;
}

.callout {
  margin: 1.9em 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--paper-card);
}

.callout p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
}

.callout .mono-label {
  margin-bottom: 6px;
  color: var(--accent-deep);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 1.8em 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat-strip div {
  padding: 13px 14px;
  background: var(--card);
}

.stat-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat-strip span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-table {
  width: 100%;
  margin: 1.7em 0;
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.5;
}

.compare-table th,
.compare-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-card);
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--ink);
}

/* Stage tables: keep the stage label on one line so the row height stays even. */
.compare-table.stages th:first-child,
.compare-table.stages td:first-child {
  white-space: nowrap;
}

.article-end {
  max-width: 700px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--muted);
}

.article-end strong {
  font-weight: 400;
  color: var(--ink);
}

/* Next note */

.next-note {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.next-note .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.next-note p {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.next-note h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.next-note a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.circle-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 13px;
  transition: color 0.2s, background 0.2s;
}

.next-note a:hover .circle-arrow {
  color: var(--card);
  background: var(--ink);
}

.article-footer {
  padding-top: 0;
}

.article-footer .footer-bottom {
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Journal index
   -------------------------------------------------------------------------- */

.journal-main {
  padding-top: 0;
}

.journal-hero {
  padding-block: 38px 30px;
  border-bottom: 1px solid var(--line);
}

.journal-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.journal-hero h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.4vw, 4.2rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.04em;
}

.journal-hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.journal-hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.journal-hero-bottom p {
  max-width: 42em;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.journal-hero-bottom p:last-child {
  justify-self: end;
  max-width: 24em;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-transform: uppercase;
}

.journal-feature {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: var(--card);
}

.journal-feature-media {
  order: 2;
}

.journal-feature-media img {
  width: 100%;
  height: 100%;
  max-height: 190px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.journal-feature-copy {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.demo-tags span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.journal-feature-copy h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.journal-feature-copy > p {
  margin-top: 8px;
  max-width: 38em;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.journal-feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journal-list {
  margin-top: 28px;
}

.journal-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.journal-list-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.journal-entry {
  display: grid;
  grid-template-columns: 40px 100px minmax(0, 1fr) 14px;
  gap: 14px;
  align-items: start;
  padding: 14px 6px;
  margin-inline: -6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s, padding-left 0.18s;
}

.journal-entry:hover {
  padding-left: 12px;
  background: rgba(251, 250, 246, 0.65);
}

.journal-entry-index {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-light);
}

.journal-entry-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--muted);
}

.journal-entry-meta i {
  font-style: normal;
  color: var(--accent-deep);
}

.journal-entry-main h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.journal-entry-main p {
  margin-top: 5px;
  max-width: 60em;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}

.journal-entry-arrow {
  justify-self: end;
  color: var(--muted);
}

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

@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 30px;
  }

  .article-body {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .article-header .header-inner {
    height: 54px;
  }

  .availability {
    display: none;
  }

  .article-hero {
    padding-block: 28px 24px;
  }

  .article-hero h1 {
    font-size: clamp(2.7rem, 9vw, 3.7rem);
  }

  .article-deck {
    font-size: 14px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 30px 60px;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .article-toc {
    margin-top: 8px;
  }

  .article-aside-facts {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .journal-hero-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .journal-hero-bottom p:last-child {
    justify-self: start;
  }

  .journal-feature {
    grid-template-columns: 1fr;
  }

  .journal-feature-media {
    order: 1;
  }

  .journal-feature-copy {
    order: 2;
  }

  .journal-feature-media img {
    max-height: 220px;
  }
}

@media (max-width: 620px) {
  .article-nav {
    gap: 13px;
    font-size: 7px;
  }

  .back-link {
    margin-bottom: 24px;
  }

  .article-meta {
    gap: 7px 14px;
  }

  .article-aside {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
  }

  .article-body {
    font-size: 14px;
    line-height: 1.75;
  }

  .article-body h2 {
    margin-top: 2em;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
  }

  .stat-strip strong {
    font-size: 24px;
  }

  .stat-strip span {
    margin-top: 0;
    text-align: right;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-figure figcaption {
    flex-direction: column;
    gap: 3px;
  }

  .next-note .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .journal-entry {
    grid-template-columns: 30px 1fr 12px;
    gap: 9px;
  }

  .journal-entry-meta {
    grid-column: 2;
    flex-direction: row;
    gap: 8px;
  }

  .journal-entry-main {
    grid-column: 2;
  }

  .journal-entry-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

/* Shared editorial eyebrow helpers used by the journal index. */
.eyebrow-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow-rule {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

/* Readability pass for the journal and article pages. */
html {
  font-size: 16px;
}

body {
  font-size: 15px;
  line-height: 1.65;
}

.article-hero h1 {
  font-family: var(--sans);
  max-width: 18ch;
  font-size: clamp(2.7rem, 4.8vw, 3.9rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-hero h1 em {
  font-style: normal;
}

.article-deck {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.65;
}

.article-cn {
  font-family: var(--sans);
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
}

.article-kicker,
.article-meta,
.back-link {
  font-size: 9px;
}

.article-body {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.78;
}

.article-body h2 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-body h3 {
  font-size: 13px;
  font-weight: 600;
}

.article-body blockquote {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.article-body li {
  margin-bottom: 0.55em;
}

.article-figure figcaption {
  font-size: 8px;
}

.article-toc a {
  font-size: 11px;
  line-height: 1.5;
}

.article-aside-facts dt {
  font-size: 8px;
}

.article-aside-facts dd {
  font-size: 10px;
}

.article-end {
  font-size: 8.5px;
  line-height: 1.7;
}

.stat-strip strong {
  font-size: 30px;
}

.stat-strip span {
  font-size: 8px;
}

.compare-table {
  font-size: 12px;
  line-height: 1.55;
}

.compare-table th {
  font-size: 8px;
}

.next-note h2 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.journal-hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.7rem, 4.8vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.journal-hero h1 em {
  font-style: normal;
}

.journal-hero-bottom p {
  font-size: 13px;
  line-height: 1.7;
}

.journal-hero-bottom p:last-child {
  font-size: 8.5px;
}

.journal-feature-copy h2 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.18;
}

.journal-feature-copy > p {
  font-size: 12px;
}

.journal-entry-main h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.journal-entry-main p {
  font-size: 11.5px;
  line-height: 1.6;
}

.journal-entry-meta,
.journal-entry-index,
.journal-feature-foot,
.journal-list-head .mono-label {
  font-size: 8.5px;
}

@media (max-width: 760px) {
  .article-body {
    font-size: 15px;
  }

  .article-deck {
    font-size: 15.5px;
  }

  .article-hero h1 {
    font-size: clamp(2.35rem, 9.5vw, 3rem);
  }

  .journal-hero h1 {
    font-size: clamp(2.4rem, 9.5vw, 3.1rem);
  }
}

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

.article-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-footer-links a:hover {
  color: var(--accent-deep);
}

@media (max-width: 620px) {
  .article-footer-links {
    order: 3;
    width: 100%;
  }
}

/* Center the reading column rather than leaving a dead right rail. */
.article-layout {
  max-width: 1040px;
  grid-template-columns: 160px minmax(0, 760px);
  justify-content: center;
}

@media (max-width: 1000px) {
  .article-layout {
    max-width: none;
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* Size-budget chart for the Saltline note */
.budget-chart {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper-card);
}

.budget-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: center;
}

.budget-row > span {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.budget-row > i {
  display: block;
  height: 9px;
  width: 0;
  background: var(--accent);
}

.budget-row > i.is-empty {
  background: var(--line-strong);
}

.budget-row > b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
  color: var(--ink-soft);
}

.budget-row > i.budget-w49 { width: 49%; }
.budget-row > i.budget-w48 { width: 48%; }
.budget-row > i.budget-w1 { width: 1%; }

@media (max-width: 620px) {
  .budget-row {
    grid-template-columns: 105px minmax(0, 1fr) 52px;
    gap: 8px;
  }

  .budget-row > span {
    font-size: 7px;
  }
}

@media (max-width: 620px) {
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: auto;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tr {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    background: var(--card);
  }

  .compare-table td {
    padding: 3px 0;
    border: 0;
    white-space: normal;
  }

  .compare-table td + td {
    margin-top: 4px;
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--mono);
    font-size: 6.5px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--muted-light);
  }

  .compare-table td:first-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
  }
}

/* Four-item article stat strips */
.stat-strip.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 620px) {
  .stat-strip.is-four {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-disclosure {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--muted);
}

.journal-ai-note {
  margin-top: 14px;
  max-width: 72ch;
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
  background: var(--card);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--muted);
}

.writing-ai-note {
  margin: -2px auto 8px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* Active section in the table of contents. */
.article-toc a[aria-current="true"] {
  color: var(--accent-deep);
}
