/* Hallmark · checked: 2026-10-22 · genre: modern-minimal (inferred)
 * built: the project · redesign: polish · v2.0.0
 * scope: shared UI; existing layout, brand, artwork and content retained.
 * Full legacy gate compliance is not claimed; see .hallmark/review.json. */
/* ==========================================================================
   Articles — News and Research. A calm reading page in the house style:
   paper in light mode, night in dark mode. Floating "On this page" rail on
   the left tracks the section in view (js/pages/article.js).
   Also: the News and Research index pages (.ix-*).
   ========================================================================== */
.art-progress { position: fixed; inset: 0 0 auto; z-index: calc(var(--z-header) + 1); height: 2px; pointer-events: none; }
.art-progress i { display: block; height: 100%; width: 100%; background: var(--crimson); transform: scaleX(var(--read, 0)); transform-origin: 0 50%; }

/* Header */
.art-head { padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(36px, 5vw, 56px); background: var(--paper); }
.art-head__inner { max-width: 880px; }
.art-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: none; color: var(--ink-3);  line-height: var(--lh-label); }
.art-kicker a { color: var(--accent-text); }
.art-title { margin-top: 22px; font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5rem); line-height: var(--lh-tight); letter-spacing: var(--tracking-mega); font-weight: 750; text-wrap: balance;  overflow-wrap: break-word;  min-width: 0; }
.art-dek { margin-top: 26px; max-width: 720px; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); text-wrap: pretty; }
.art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-3); }
.art-byline b { color: var(--ink); font-weight: 600; }
.art-byline__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--crimson); color: #fff; margin-right: 10px; vertical-align: middle; }
.art-byline__mark svg { width: 18px; height: auto; }

/* Hero figure. Until the photograph is decoded the frame is a quiet paper tone in
   both themes (never a black slab in light mode); the image is decoding="sync", so
   it paints with the page that carries it, including inside the page cross-fade. */
.art-figure { position: relative; margin: 0 0 clamp(48px, 6vw, 80px); border-radius: var(--r-2xl); overflow: hidden; aspect-ratio: 16 / 7.2; background: var(--paper-2); isolation: isolate; }
.art-figure img { width: 100%; height: 100%; object-fit: cover; }
.art-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(5 5 6 / 0.55)); }
.art-figure figcaption { position: absolute; left: 22px; bottom: 18px; z-index: 1; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: none; color: var(--night-ink);  line-height: var(--lh-label); }
@media (max-width: 700px) { .art-figure { aspect-ratio: 4 / 3; border-radius: var(--r-xl); } }
/* A hero photograph that lands after the page has appeared waits, hidden, until it has
   loaded and decoded, then fades in (theme-boot.js sets .hero-pending until then), so it
   never snaps in during or after the page cross-fade. Hiding is instant; only the
   arrival fades. A photo already in the cache is never hidden. No JS, reduced motion or
   print: never hidden. */
@media screen and (prefers-reduced-motion: no-preference) {
  .art-figure img, .ix-feature__media img { transition: opacity var(--t-ui, 280ms) var(--ease-soft); }
  .hero-pending :is(.art-figure, .ix-feature__media) img { opacity: 0; transition: none; }
}

/* Body: rail + prose */
.art-body { display: grid; grid-template-columns: 220px minmax(0, 680px); justify-content: center; gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(72px, 9vw, 128px); }
.art-rail { position: relative; }
.art-toc { position: sticky; top: calc(var(--header-h) + 40px); }
.art-toc__title { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: none; color: var(--ink-3); margin-bottom: 14px;  line-height: var(--lh-label); }
.art-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.art-toc a { position: relative; display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: var(--fs-small); line-height: 1.35; color: var(--ink-3); transition: color var(--t-fast), border-color var(--t-fast); }
@media (hover: hover) { .art-toc a:hover { color: var(--ink); } }
.art-toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--crimson); font-weight: 600; }
.art-toc__actions { margin-top: 26px; display: grid; gap: 10px; }
.art-toc__actions button, .art-toc__actions a { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-3); transition: color var(--t-fast) var(--ease-soft); }
@media (hover: hover) { .art-toc__actions button:hover, .art-toc__actions a:hover { color: var(--ink); } }

.art-prose { font-size: 1.125rem; line-height: 1.72; color: var(--ink-2); }
.art-prose > * + * { margin-top: 1.15em; }
.art-prose h2 { margin-top: 2.4em; scroll-margin-top: 8px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
.art-prose h2:first-child { margin-top: 0; }
.art-prose h3 { margin-top: 1.8em; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.art-prose strong { color: var(--ink); font-weight: 650; }
.art-prose a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art-prose ul, .art-prose ol { padding-left: 1.2em; }
.art-prose li + li { margin-top: 0.5em; }
.art-prose li::marker { color: var(--crimson); }
.art-lede::first-line { color: var(--ink); font-weight: 600; }
.art-pull { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--crimson); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); font-weight: 600; text-wrap: balance; }
.art-note { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgb(var(--ink-rgb) / 0.025); font-size: var(--fs-small); line-height: 1.6; color: var(--ink-3); }
.art-note .status { margin-right: 10px; }
.art-end { margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.art-end p { font-size: var(--fs-small); color: var(--ink-3); }

/* Mobile: the rail becomes a sticky "On this page" disclosure */
@media (max-width: 1000px) {
  .art-body { grid-template-columns: minmax(0, 680px); }
  .art-toc { position: static; }
  .art-rail { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; margin-bottom: 8px; }
  .art-toc details { border: 1px solid var(--line); border-radius: 14px; background: rgb(var(--paper-rgb) / 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .art-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
  .art-toc summary::-webkit-details-marker { display: none; }
  .art-toc summary span { font-weight: 400; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .art-toc details ol { margin: 0 16px 14px; }
  .art-toc__title, .art-toc__actions { display: none; }
  .art-prose h2 { scroll-margin-top: calc(var(--header-h) + 32px); }   /* clears the sticky "On this page" bar */
}
@media (min-width: 1001px) {
  .art-toc summary { display: none; } .art-toc details > ol { display: block; }
  /* The desktop rail is open from the first frame, before article.js sets [open] */
  .art-toc details::details-content { content-visibility: visible; }
}

/* Related reading */
.art-related { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.art-related h2 { font-size: var(--fs-h3); margin-bottom: 24px; }

/* ---- Index pages (News, Research) */
.ix-hero { padding: calc(var(--header-h) + clamp(64px, 9vw, 128px)) 0 clamp(40px, 5vw, 64px); background: var(--paper); }
.ix-hero .page-hero__title { max-width: 14ch; }
.ix-lead { margin-top: 26px; max-width: 680px; }
.ix-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(18px, 2vw, 24px); border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--paper); transition: border-color var(--t-fast) var(--ease-soft), transform var(--t-exit, 200ms) var(--ease-out), box-shadow var(--t-fast) var(--ease-soft); }
.ix-feature:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 30px 60px -40px rgb(10 10 12 / 0.35); }
.ix-feature__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.ix-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.ix-feature__copy h2 { margin-top: 16px; font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); line-height: 1.02; letter-spacing: -0.04em; }
.ix-feature__copy p { margin-top: 16px; color: var(--ink-3); }
.ix-feature__copy .link-arrow { margin-top: 24px; }
@media (max-width: 860px) { .ix-feature { grid-template-columns: minmax(0, 1fr); } }
.ix-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: none; color: var(--ink-3);  line-height: var(--lh-label); }
.ix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 1024px) { .ix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Three or five cards keep three columns down to 880px, so no card is left alone on a row */
@media (min-width: 880px) and (max-width: 1024px) { .ix-grid:not(:has(> li:only-child)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ix-grid { grid-template-columns: minmax(0, 1fr); } }
.ix-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--paper); overflow: hidden; transition: border-color var(--t-fast) var(--ease-soft), transform var(--t-exit, 200ms) var(--ease-out); }
.ix-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ix-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
/* A tap is answered by the .985 press (components.css), not the browser's tinted tap
   rectangle, which otherwise lingers over the card when the page is restored on Back */
.ix-card, .ix-feature { -webkit-tap-highlight-color: transparent; }
.ix-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.ix-card:hover .ix-card__media img { transform: scale(1.03); }
.ix-card__body > .status { margin-top: 4px; }
.ix-card__body { display: grid; gap: 10px; padding: 20px 22px 24px; flex: 1; align-content: start; }
.ix-card__body h3 { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.02em; }
.ix-card__body p { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-3); }
.ix-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(56px, 7vw, 96px) 0 24px; }
.ix-section-title h2 { font-size: var(--fs-h3); }
.art-byline__mark i { width: 18px; height: 13px; background: #fff; -webkit-mask: url("../../assets/brand/v-mark-mask.svg?v=0474c8c228") center / contain no-repeat; mask: url("../../assets/brand/v-mark-mask.svg?v=0474c8c228") center / contain no-repeat; }
.ix-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.ix-feature__copy .status { margin-top: 10px; }
.ix-feature__copy .ix-meta { display: flex; }
@media (max-width: 1000px) {
  .art-rail { top: calc(var(--header-h) + 22px); }
  .art-toc summary { white-space: nowrap; }
  .art-toc summary span { flex: 1; text-align: right; min-width: 0; }
}
