/* /:city/articles/:slug — the article template, ported from the
   brand-exploration prototype (article.html + styles.css "article template").
   Reading gets quieter, not louder: one centred 720px reading column, a lead
   image that breaks out to 960, a slim reading bar with progress, an
   "In this story" list in the left margin on wide screens, one pastel-blue
   ask at the end, then "More from <city>" / "More on <section>" cards.
   Scoped under .article-front (--ar-* tokens) so it never leaks onto other
   pages. Values come from the prototype's tokens/tokens.css. */

.article-front {
  --ar-ink: #212121;
  --ar-ink-a80: rgba(33, 33, 33, 0.8);
  --ar-ink-a70: rgba(33, 33, 33, 0.7);
  --ar-ink-a50: rgba(33, 33, 33, 0.5);
  --ar-ink-a40: rgba(33, 33, 33, 0.4);
  --ar-ink-a10: rgba(33, 33, 33, 0.1);
  --ar-white: #ffffff;
  --ar-link: #216bff;
  --ar-link-hover: #0054fc;
  --ar-surface-subtle: #eef2f6;
  --ar-surface-blue: #d2f4ff;
  --ar-success-text: #2d794d;
  --ar-success-surface: #e4f0e7;
  --ar-font-primary: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ar-font-editorial: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
  --ar-gutter: clamp(16px, calc(16px + 1.9394vw - 7.27px), 32px);
  --ar-section-dense: clamp(24px, calc(24px + 2.9091vw - 10.9px), 48px);
  --ar-fs-40: clamp(26px, calc(26px + 1.697vw - 6.36px), 40px);
  --ar-fs-32: clamp(24px, calc(24px + 0.9697vw - 3.64px), 32px);
  --ar-fs-20: clamp(18px, calc(18px + 0.2424vw - 0.91px), 20px);
  --ar-fs-18: clamp(17px, calc(17px + 0.1212vw - 0.45px), 18px);
  --ar-fs-17: clamp(16px, calc(16px + 0.1212vw - 0.45px), 17px);
  --ar-article: 720px;
  --ar-radius: 6px;
  --ar-ease: 150ms cubic-bezier(0.2, 0, 0, 1);

  color: var(--ar-ink-a80);
  font-family: var(--ar-font-primary);
  background: var(--ar-white);
  -webkit-font-smoothing: antialiased;
}
.article-front *, .article-front *::before, .article-front *::after { box-sizing: border-box; }
.article-front :is(h1, h2, h3, p, figure, ol) { margin: 0; }
.article-front :is(h1, h2, h3) { text-wrap: balance; }
.article-front a { color: inherit; text-decoration: none; }
.article-front svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.article-front :focus-visible { outline: 2px solid var(--ar-link); outline-offset: 2px; }

.article-front .ar-edge { max-width: 1180px; margin-inline: auto; padding-inline: var(--ar-gutter); }
.article-front .ar-ic16 { width: 16px; height: 16px; }
.article-front .ar-c-secondary { color: var(--ar-ink-a70); }
.article-front .ar-metadata { font-size: 13px; font-weight: 500; line-height: 1.5; }
.article-front .ar-label { font-size: 12px; font-weight: 700; line-height: 1.25; letter-spacing: 0.03em; text-transform: uppercase; }
.article-front .ar-ui-heading { font-size: var(--ar-fs-20); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ar-ink); }
.article-front .ar-section-heading { font-size: var(--ar-fs-32); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; color: var(--ar-ink); }
.article-front .ar-display-lg {
  font-family: var(--ar-font-editorial); font-weight: 800; font-size: var(--ar-fs-40);
  line-height: 1.02; letter-spacing: -0.045em; color: var(--ar-ink);
}

/* section bar under the masthead */
.ar-sections { border-bottom: 1px solid var(--ar-ink-a10); }
.ar-sections .ar-sections-row { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.ar-sections .ar-sections-row::-webkit-scrollbar { display: none; }
.ar-sections .ar-section {
  flex: none; padding-block: 16px 12px; border-bottom: 3px solid transparent;
  font-size: 15px; font-weight: 600; color: var(--ar-ink-a70); white-space: nowrap;
  transition: color var(--ar-ease), border-color var(--ar-ease);
}
.ar-sections .ar-section:hover { color: var(--ar-ink); }
.ar-sections .ar-section[aria-current="page"] { color: var(--ar-ink); border-bottom-color: var(--ar-link); }

/* kicker: city · section */
.article-front .ar-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ar-ink-a70); }
.article-front .ar-k-city { color: var(--ar-ink); }
.article-front .ar-k-dot { color: var(--ar-ink-a40); }

/* header */
.article-front .ar-story { max-width: calc(960px + 2 * var(--ar-gutter)); padding-block: 40px var(--ar-section-dense); }
.article-front .ar-head, .article-front .ar-col { max-width: var(--ar-article); margin-inline: auto; }
.article-front .ar-back {
  display: inline-flex; align-items: center; gap: 4px; margin-left: -2px; margin-bottom: 24px;
  color: var(--ar-ink-a70); transition: color var(--ar-ease);
}
.article-front .ar-back:hover { color: var(--ar-ink); }
.article-front .ar-back:hover span { text-decoration: underline; text-underline-offset: 3px; }
.article-front .ar-head .ar-k-city { color: var(--ar-link); }
.article-front .ar-head .ar-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-front .ar-head h1 { margin-top: 16px; }
.article-front .ar-dek { margin-top: 16px; max-width: 40ch; font-size: var(--ar-fs-20); line-height: 1.5; color: var(--ar-ink-a70); }

.article-front .ar-byline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: 24px; padding-block: 12px; border-block: 1px solid var(--ar-ink-a10);
}
.article-front .ar-byline .ar-metadata { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.article-front .ar-byline-who { font-weight: 600; color: var(--ar-ink); }
.article-front .ar-byline-who::after { content: "·"; margin-left: 8px; font-weight: 400; color: var(--ar-ink-a40); }
.article-front .ar-byline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.article-front .ar-inline-form { display: contents; }
.article-front .ar-share {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding-inline: 12px;
  border: 1px solid var(--ar-ink-a10); border-radius: 9999px; background: var(--ar-white); cursor: pointer;
  font: 600 13px/1 var(--ar-font-primary); color: var(--ar-ink-a80);
  transition: border-color var(--ar-ease), background-color var(--ar-ease);
}
.article-front .ar-share:hover { border-color: var(--ar-ink-a50); }
.article-front .ar-share.is-done { background: var(--ar-success-surface); border-color: transparent; color: var(--ar-success-text); }
.article-front .ar-partof { margin-top: 12px; }
.article-front .ar-partof a { color: var(--ar-link); font-weight: 600; }
.article-front .ar-partof a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* lead image breaks out to 960 */
.article-front .ar-media { margin-top: 32px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ar-radius); background: var(--ar-surface-subtle); }
.article-front .ar-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

/* body */
.article-front .ar-col { position: relative; margin-top: 40px; }
.article-front .ar-body { font-size: var(--ar-fs-18); line-height: 1.625; color: var(--ar-ink-a80); }
.article-front .ar-body > * + * { margin-top: 20px; }
.article-front .ar-body > p:first-child::first-letter {
  float: left; margin: .08em 8px 0 0; font-family: var(--ar-font-editorial); font-weight: 800;
  font-size: 3.4em; line-height: .8; color: var(--ar-ink);
}
.article-front .ar-body h2 {
  margin-top: 40px; scroll-margin-top: 88px;
  font-size: var(--ar-fs-20); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ar-ink);
}
.article-front .ar-body h2 + p { margin-top: 12px; }
.article-front .ar-body h3 { margin-top: 32px; font-size: var(--ar-fs-18); font-weight: 700; color: var(--ar-ink); }
.article-front .ar-body a { color: var(--ar-link); text-decoration: underline; text-underline-offset: 3px; }
.article-front .ar-body a:hover { color: var(--ar-link-hover); }
.article-front .ar-body :is(ul, ol) { padding-left: 1.25em; }
.article-front .ar-body ul { list-style: disc; }
.article-front .ar-body ol { list-style: decimal; }
.article-front .ar-body li + li { margin-top: 8px; }
.article-front .ar-body strong { color: var(--ar-ink); }
.article-front .ar-body blockquote { margin: 40px 0; padding-left: 24px; border-left: 3px solid var(--ar-ink); }
.article-front .ar-body blockquote p {
  font-family: var(--ar-font-editorial); font-weight: 700; font-size: 1.5rem; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--ar-ink);
}
.article-front .ar-body blockquote footer,
.article-front .ar-body blockquote cite { display: block; margin-top: 12px; font-size: 13px; font-weight: 500; font-style: normal; color: var(--ar-ink-a70); }
.article-front .ar-body blockquote + p { margin-top: 0; }
.article-front .ar-body img { max-width: 100%; height: auto; border-radius: var(--ar-radius); }
@media (max-width: 479px) {
  .article-front .ar-body blockquote { padding-left: 16px; }
  .article-front .ar-body blockquote p { font-size: var(--ar-fs-20); }
}
/* plain-English terms (GlossaryAnnotator): dotted underline; the tooltip itself comes from application.css */
.article-front .ar-body .glossary-term {
  border-bottom: 0; text-decoration: underline dotted var(--ar-ink-a70);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.article-front .ar-body .glossary-term:hover,
.article-front .ar-body .glossary-term:focus { color: var(--ar-ink); text-decoration-color: var(--ar-link); text-decoration-style: solid; }

/* "In this story": the left margin on wide screens only; the current section is marked */
.article-front .ar-toc { display: none; }
@media (min-width: 1280px) {
  .article-front .ar-toc { display: block; position: absolute; top: 0; bottom: 0; right: calc(100% + 48px); width: 200px; }
  .article-front .ar-toc-inner { position: sticky; top: 96px; color: var(--ar-ink-a70); }
  .article-front .ar-toc ol { margin-top: 12px; padding: 0; list-style: none; border-left: 1px solid var(--ar-ink-a10); }
  .article-front .ar-toc a {
    display: block; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent;
    font-size: 13px; line-height: 1.25; color: var(--ar-ink-a70);
    transition: color var(--ar-ease), border-color var(--ar-ease);
  }
  .article-front .ar-toc a:hover { color: var(--ar-ink); }
  .article-front .ar-toc a[aria-current] { color: var(--ar-ink); font-weight: 600; border-left-color: var(--ar-ink); }
}

/* the ask: the article's one pastel-blue moment */
.article-front .ar-ask { margin-top: 48px; padding: 32px; border-radius: var(--ar-radius); background: var(--ar-surface-blue); }
.article-front .ar-ask > p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ar-ink-a80); }
.article-front .ar-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 20px;
  padding-inline: 24px; border-radius: var(--ar-radius); background: var(--ar-link); color: var(--ar-white);
  font-weight: 600; font-size: 16px; white-space: nowrap; transition: background-color var(--ar-ease);
}
.article-front .ar-btn:hover { background: var(--ar-link-hover); }
@media (max-width: 479px) {
  .article-front .ar-ask { padding: 24px 20px; }
  .article-front .ar-btn { display: flex; width: 100%; }
}

/* reading bar: slides in once the headline is gone; title, Copy link and the progress rule */
.article-front .ar-readbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; background: var(--ar-white); border-bottom: 1px solid var(--ar-ink-a10);
  transform: translateY(-100%); visibility: hidden;
  transition: transform var(--ar-ease), visibility 0s linear 150ms;
}
.article-front .ar-readbar.is-on { transform: none; visibility: visible; transition: transform var(--ar-ease); }
@media (prefers-reduced-motion: reduce) { .article-front .ar-readbar, .article-front .ar-readbar.is-on { transition: none; } }
.article-front .ar-readbar-row { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.article-front .ar-logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.article-front .ar-mark { width: 18px; height: 18px; border-radius: 60% 40% 55% 45% / 55% 45% 58% 42%; background: var(--ar-ink); }
.article-front .ar-readbar-title {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-weight: 600; font-size: 15px; color: var(--ar-ink);
}
@media (max-width: 479px) {
  .article-front .ar-readbar .ar-share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .article-front .ar-readbar .ar-share { width: 36px; padding: 0; justify-content: center; }
}
.article-front .ar-readprog { position: absolute; inset: auto 0 -1px 0; height: 2px; pointer-events: none; }
.article-front .ar-readprog span { display: block; height: 100%; background: var(--ar-link); transform: scaleX(0); transform-origin: left; }

/* More from <city> / More on <section> */
.article-front .ar-related { padding-block: var(--ar-section-dense); border-top: 1px solid var(--ar-ink-a10); }
.article-front .ar-related h2 a { color: var(--ar-link); }
.article-front .ar-related h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-front .ar-sub-h { margin-top: var(--ar-section-dense); }
.article-front .ar-sub-h.is-first { margin-top: 0; }
.article-front .ar-cards { display: grid; gap: 32px 24px; margin-top: 24px; }
@media (min-width: 640px) { .article-front .ar-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .article-front .ar-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.article-front .ar-card a { display: flex; flex-direction: column; height: 100%; }
.article-front .ar-card-img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--ar-radius); background: var(--ar-surface-subtle); }
.article-front .ar-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-front .ar-card a:hover .ar-card-img { box-shadow: inset 0 0 0 1px var(--ar-ink-a50); }
.article-front .ar-card-body { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.article-front .ar-card-h { font-size: var(--ar-fs-18); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ar-ink); }
.article-front .ar-card a:hover .ar-card-h { text-decoration: underline; text-underline-offset: 3px; }
.article-front .ar-card a:focus-visible { outline-offset: 6px; border-radius: var(--ar-radius); }

/* mobile: cards become compact rows with a square thumbnail, not stacked posters */
@media (max-width: 639px) {
  .article-front .ar-cards { gap: 0; margin-top: 16px; }
  .article-front .ar-card { border-bottom: 1px solid var(--ar-ink-a10); }
  .article-front .ar-card a { flex-direction: row-reverse; align-items: flex-start; gap: 16px; padding-block: 16px; }
  .article-front .ar-card-img { flex: none; width: 88px; aspect-ratio: 1; }
  .article-front .ar-card-body { flex: 1; min-width: 0; padding-top: 0; gap: 4px; }
  .article-front .ar-card-h { font-size: var(--ar-fs-17); }
  .article-front .ar-card .ar-k-topic-wrap { display: none; }
}

/* Interactive mode button. The full-screen frame it opens is shared:
   public/shared/_interactive_frame + interactive_frame.css. */
.article-front .ar-imode-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding-inline: 16px;
  border: 0; border-radius: 9999px; cursor: pointer; background: var(--ar-ink); color: var(--ar-white);
  font: 600 13px/1 var(--ar-font-primary); transition: background-color var(--ar-ease);
}
.article-front .ar-imode-btn:hover { background: #3a3a3a; }
.article-front .ar-imode-btn svg { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.article-front .ar-imode-btn:hover svg { transform: rotate(90deg); }

/* Membership gate (Vox-style): the preview fades out, one quiet line says how
   to keep reading, then a pastel-blue sheet slides up from the bottom once the
   reader reaches that line. The sheet is the page's one ask and, like Vox, it
   stops the page (scroll lock + scrim) until the reader closes it. Card 08 still keeps
   the paid body out of the HTML entirely; this is only the presentation. */
.article-front .ar-body.is-gated {
  -webkit-mask-image: linear-gradient(to bottom, #000 max(35%, calc(100% - 260px)), transparent);
          mask-image: linear-gradient(to bottom, #000 max(35%, calc(100% - 260px)), transparent);
  user-select: none;
}
.article-front .ar-gate-line { margin-top: 8px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--ar-ink); }
.article-front .ar-gate-line a { color: var(--ar-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-front .ar-gate-line a:hover { color: var(--ar-link-hover); }

/* the page stops while the sheet is up: no scroll, everything behind it dimmed */
html.ar-gate-lock { overflow: hidden; scrollbar-gutter: stable; }
.article-front .ar-gate-scrim {
  position: fixed; inset: 0; z-index: 44; background: rgba(33, 33, 33, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 450ms ease, visibility 0s linear 450ms;
}
.article-front .ar-gate-scrim.is-on { opacity: 1; visibility: visible; transition: opacity 450ms ease; }
@media (prefers-reduced-motion: reduce) { .article-front .ar-gate-scrim, .article-front .ar-gate-scrim.is-on { transition: none; } }
.article-front .ar-gate {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  padding: 12px var(--ar-gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--ar-surface-blue); box-shadow: 0 -12px 40px rgba(33, 33, 33, 0.14);
  transform: translateY(100%); visibility: hidden;
  transition: transform 450ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 450ms;
}
.article-front .ar-gate.is-on { transform: none; visibility: visible; transition: transform 450ms cubic-bezier(0.2, 0, 0, 1); }
@media (prefers-reduced-motion: reduce) { .article-front .ar-gate, .article-front .ar-gate.is-on { transition: none; } }
.article-front .ar-gate-inner {
  position: relative; max-width: 1180px; margin-inline: auto; padding: 32px var(--ar-gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
/* exit: closes the sheet for this visit; the inline gate line stays */
.article-front .ar-gate-close {
  position: absolute; top: 4px; right: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 9999px; background: transparent; cursor: pointer;
  color: var(--ar-ink-a70); transition: color var(--ar-ease), background-color var(--ar-ease);
}
.article-front .ar-gate-close:hover { color: var(--ar-ink); background: rgba(33, 33, 33, 0.08); }
.article-front .ar-gate-close svg { width: 20px; height: 20px; }
.article-front .ar-gate-kicker { color: var(--ar-ink-a70); }
.article-front .ar-gate-h {
  margin-top: 12px; max-width: 22ch;
  font-family: var(--ar-font-editorial); font-weight: 800; font-size: var(--ar-fs-32);
  line-height: 1.02; letter-spacing: -0.035em; color: var(--ar-ink);
}
.article-front .ar-gate-body { margin-top: 12px; max-width: 52ch; font-size: var(--ar-fs-17); line-height: 1.5; color: var(--ar-ink-a80); }
.article-front .ar-gate-body strong { color: var(--ar-ink); font-weight: 600; white-space: nowrap; }
.article-front .ar-gate-btn { min-width: 280px; }
.article-front .ar-gate-links { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 20px; color: var(--ar-ink-a70); }
.article-front .ar-gate-links > span + span { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--ar-ink-a40); }
.article-front .ar-gate-links a { color: var(--ar-ink); text-decoration: underline; text-underline-offset: 3px; }
.article-front .ar-gate-links a:hover { color: var(--ar-link); }
@media (max-width: 479px) {
  .article-front .ar-gate-inner { padding: 20px 16px; }
  .article-front .ar-gate-close { top: 0; right: -8px; }
  .article-front .ar-gate-kicker { display: none; }
  .article-front .ar-gate-h { margin-top: 0; }
  .article-front .ar-gate-body strong { white-space: normal; }
  .article-front .ar-gate-btn { min-width: 0; }
  .article-front .ar-gate-links { flex-direction: column; gap: 8px; }
  .article-front .ar-gate-links > span + span { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* Shared by the other story-shaped pages that reuse this template's tokens
   (city_stories/show, stories/*, newsletters/show). */
.article-front .ar-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 24px; color: var(--ar-ink-a70); }
.article-front .ar-crumbs a:hover { color: var(--ar-ink); text-decoration: underline; text-underline-offset: 3px; }
.article-front .ar-crumbs [aria-current] { color: var(--ar-ink); }
.article-front .ar-tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 9999px; background: var(--ar-surface-subtle);
  color: var(--ar-ink-a70); font-size: 11px; letter-spacing: .02em; text-transform: none;
}
.article-front .ar-follow { margin-top: 24px; }
.article-front .ar-follow .ar-btn { margin-top: 0; }
.article-front button.ar-btn { border: 0; cursor: pointer; font-family: inherit; }
.article-front .ar-btn.ar-btn-ink { background: var(--ar-ink); }
.article-front .ar-btn.ar-btn-ink:hover { background: #3a3a3a; }
.article-front .ar-empty { margin-top: 16px; font-size: 16px; color: var(--ar-ink-a70); }
.article-front .ar-related.is-first { border-top: 0; }
.article-front .ar-lede { margin-top: 12px; max-width: 60ch; font-size: var(--ar-fs-17); line-height: 1.5; color: var(--ar-ink-a70); }

/* "Why it matters" / "What happens next" / Sources boxes (legacy /stories/:slug) */
.article-front .ar-box { margin-top: 40px; padding: 24px; border-radius: var(--ar-radius); background: var(--ar-surface-subtle); }
.article-front .ar-box.is-blue { background: var(--ar-surface-blue); }
.article-front .ar-box h2 { font-size: var(--ar-fs-20); font-weight: 600; line-height: 1.2; color: var(--ar-ink); }
.article-front .ar-box p, .article-front .ar-box ul { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ar-ink-a80); }
.article-front .ar-box ul { padding-left: 1.25em; list-style: disc; }
.article-front .ar-box li + li { margin-top: 6px; }
.article-front .ar-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ar-ink-a10); }
.article-front .ar-actions .ar-btn { margin-top: 0; }

/* text-only story card (Beehiiv posts on /stories, no image) */
.article-front .ar-card.is-text a { padding: 20px; border: 1px solid var(--ar-ink-a10); border-radius: var(--ar-radius); transition: border-color var(--ar-ease); }
.article-front .ar-card.is-text a:hover { border-color: var(--ar-ink-a50); }
.article-front .ar-card.is-text .ar-card-body { padding-top: 0; }
.article-front .ar-card-x { font-size: 15px; line-height: 1.5; color: var(--ar-ink-a70); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 639px) {
  .article-front .ar-card.is-text a { flex-direction: column; padding: 16px; margin-block: 8px; }
  .article-front .ar-card.is-text { border-bottom: 0; }
}

/* pagination (public/shared/_pagination): self-contained, works under any page wrapper */
.tx-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; font-family: Inter, system-ui, sans-serif; }
.tx-pager-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 14px;
  border: 1px solid rgba(33, 33, 33, 0.1); border-radius: 6px; color: #212121; font-size: 14px; font-weight: 600; text-decoration: none;
}
.tx-pager-link:hover { border-color: rgba(33, 33, 33, 0.5); }
.tx-pager-link.is-current { background: #212121; border-color: #212121; color: #fff; }
.article-front .ar-issue-date { margin-top: 12px; }
.article-front .ar-nl-signup { margin-top: 24px; background: transparent; }
.article-front .ar-nl-signup .nlx-card { margin-top: 0; }

/* In-body widgets (reactions, key-number box, member polls): quiet subtle-grey panels inside
   the reading column; key numbers take the article's pastel blue. */
.article-front .ar-widget { margin: 40px 0; padding: 24px; border-radius: var(--ar-radius); background: var(--ar-surface-subtle); font-size: 15px; line-height: 1.5; color: var(--ar-ink-a80); }
.article-front .ar-widget.is-blue { background: var(--ar-surface-blue); }
.article-front .ar-body > .ar-widget + * { margin-top: 0; }
.article-front .ar-widget-h { font-weight: 600; color: var(--ar-ink); }
.article-front .ar-widget-kicker { color: var(--ar-ink-a70); }
.article-front .ar-widget-note { margin-top: 12px; font-size: 14px; color: var(--ar-ink-a70); }
.article-front .ar-widget-note a { color: var(--ar-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-front .ar-widget-note.is-ok { color: var(--ar-success-text); font-weight: 600; }
.article-front .ar-widget-note.is-error { color: #b91c1c; font-weight: 600; }
.article-front .ar-widget b { color: var(--ar-ink); font-weight: 600; }

.article-front .ar-react-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.article-front .ar-react {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-inline: 16px; border: 0; border-radius: 9999px;
  background: var(--ar-ink); color: var(--ar-white); font: 600 14px/1 var(--ar-font-primary); cursor: pointer; transition: background-color var(--ar-ease);
}
.article-front .ar-react:hover { background: #3a3a3a; }
.article-front .ar-react.is-mine { background: var(--ar-link); }
.article-front .ar-react.is-mine:hover { background: var(--ar-link-hover); }
.article-front .ar-react.is-static { background: var(--ar-white); color: var(--ar-ink); box-shadow: inset 0 0 0 1px var(--ar-ink-a10); cursor: default; }
.article-front .ar-react-n { opacity: .8; }

.article-front .ar-kn { display: grid; gap: 16px 32px; margin-top: 12px; }
@media (min-width: 640px) { .article-front .ar-kn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article-front .ar-kn dt { font-size: 14px; color: var(--ar-ink-a70); }
.article-front .ar-kn dd { margin: 0; }
.article-front .ar-kn-v { font-family: var(--ar-font-editorial); font-weight: 800; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ar-ink); }
.article-front .ar-kn-note { margin-top: 2px; font-size: 12px; color: var(--ar-ink-a70); }

.article-front .ar-poll-q { margin-top: 8px; font-size: var(--ar-fs-20); font-weight: 600; line-height: 1.2; color: var(--ar-ink); }
.article-front .ar-poll-form { display: grid; gap: 8px; margin-top: 16px; }
.article-front .ar-poll-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; border-radius: var(--ar-radius); background: var(--ar-white); box-shadow: inset 0 0 0 1px var(--ar-ink-a10); cursor: pointer; color: var(--ar-ink); }
.article-front .ar-poll-opt:hover { box-shadow: inset 0 0 0 1px var(--ar-ink-a50); }
.article-front .ar-poll-opt:has(:checked) { box-shadow: inset 0 0 0 2px var(--ar-link); }
.article-front .ar-poll-form input[type=radio], .article-front .ar-poll-form input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ar-link); flex-shrink: 0; }
.article-front .ar-poll-rating { display: flex; gap: 16px; }
.article-front .ar-poll-rating label { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--ar-ink); }
.article-front .ar-poll-scale { display: flex; justify-content: space-between; max-width: 200px; font-size: 12px; color: var(--ar-ink-a70); }
.article-front .ar-poll-text { width: 100%; padding: 12px 16px; border: 2px solid var(--ar-ink-a50); border-radius: var(--ar-radius); background: var(--ar-white); font: inherit; color: var(--ar-ink); resize: vertical; }
.article-front .ar-poll-text:focus-visible { outline: 2px solid var(--ar-link); outline-offset: 2px; border-color: var(--ar-link); }
.article-front .ar-btn.ar-btn-sm { justify-self: start; min-height: 44px; margin-top: 8px; padding-inline: 20px; font-size: 15px; }
.article-front .ar-poll-results { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ar-ink-a10); }
.article-front .ar-poll-bars { display: grid; gap: 12px; margin-top: 12px; }
.article-front .ar-poll-bar-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ar-ink); }
.article-front .ar-poll-track { height: 8px; margin-top: 4px; border-radius: 9999px; background: var(--ar-ink-a10); overflow: hidden; }
.article-front .ar-poll-fill { height: 100%; border-radius: 9999px; background: var(--ar-link); }
.article-front .ar-poll-dist { display: grid; grid-template-columns: 16px 1fr 40px; align-items: center; gap: 12px; font-size: 14px; color: var(--ar-ink); }
.article-front .ar-poll-dist .ar-poll-track { margin-top: 0; }
.article-front .ar-poll-dist > span:last-child { text-align: right; }
