/* B04 article, on the exact shared Webside system. */
@layer design {
  html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
  .page-article-preview { background: var(--sheet); }
  .page-article-preview main { padding-top: 6.125rem; }
  .article-progress { position: fixed; z-index: 200; inset: 0 0 auto; height: 3px; background: transparent; pointer-events: none; }
  .article-progress span { display: block; height: 100%; width: 0; background: var(--brand); }
  .article-hero { margin-top: -6.125rem; padding: 8.25rem 0 clamp(3rem, 2rem + 3vw, 5rem); background: var(--sheet-soft); }
  .article-wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
  .article-breadcrumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 clamp(2rem, 1.3rem + 2vw, 3rem); padding: 0; list-style: none; color: var(--on-sheet-muted); font-size: .95rem; }
  .article-breadcrumbs li { margin: 0; }
  .article-breadcrumbs li + li::before { content: '/'; margin-inline-end: .6rem; color: var(--on-sheet-quiet); }
  .article-breadcrumbs a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
  .article-breadcrumbs a:hover { text-decoration: underline; }
  .article-hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(2rem, 1.3rem + 3vw, 4.5rem); }
  .article-hero-copy { min-width: 0; }
  .article-kind { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; color: var(--brand); }
  .article-hero h1 { max-width: 23ch; margin: 0; font-size: clamp(2.6rem, 1.4rem + 3.1vw, 4.6rem); line-height: 1.08; text-wrap: balance; }
  .article-deck { max-width: 37rem; margin: 1.6rem 0 1.3rem; font-size: clamp(1.13rem, 1rem + .4vw, 1.35rem); line-height: 1.6; color: var(--on-sheet-muted); }
  .article-deck p { margin: 0; }
  .article-deck strong { color: var(--on-sheet); font-weight: 400; }
  .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin: 1.3rem 0 0; font-size: .95rem; color: var(--on-sheet-muted); }
  .article-meta span + span { position: relative; }
  .article-jump { margin: 1rem 0 0; }
  .article-jump a { display: inline-flex; align-items: center; min-height: 3rem; color: var(--brand); font-size: 1.05rem; font-weight: 700; text-decoration: none; gap: .5rem; }
  .article-jump a::after { content: '\2039'; font-family: var(--font-numeric); font-size: 1.4em; }
  .article-jump a:hover { text-decoration: underline; text-underline-offset: .2em; }
  .article-hero-media { margin: 0; }
  .article-hero-media picture, .article-hero-media img { display: block; width: 100%; height: auto; }
  .article-hero-media img { border-radius: var(--radius-card); }
  .article-hero-media figcaption { margin-top: .8rem; font-size: .85rem; line-height: 1.45; color: var(--on-sheet-muted); }
  .article-draft { width: fit-content; max-width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .8rem; margin: 2.5rem 0 0; font-size: .85rem; color: var(--on-sheet-muted); }
  .article-draft b { display: inline-block; border: 1px solid var(--sheet-line); border-radius: var(--radius-pill); padding: .28rem .8rem; color: var(--on-sheet); font-weight: 400; }
  .article-layout { display: grid; grid-template-columns: 13rem minmax(0, 44rem); justify-content: center; gap: clamp(2rem, 1rem + 3vw, 4.5rem); width: min(100% - 2 * var(--gutter), 72rem); margin: clamp(3rem, 2rem + 3vw, 5rem) auto 0; align-items: start; }
  .article-contents { position: sticky; top: 7rem; padding-inline-end: 1.25rem; border-inline-end: 1px solid var(--sheet-line-soft); max-height: calc(100dvh - 9rem); overflow-y: auto; font-size: .94rem; line-height: 1.4; }
  .article-contents summary { list-style: none; font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
  .article-contents summary::-webkit-details-marker { display: none; }
  .article-contents ul { list-style: none; padding: 0; margin: 0; }
  .article-contents li { margin: 0; }
  .article-contents a { display: block; padding: .55rem .1rem; color: var(--on-sheet-muted); text-decoration: none; transition: color .15s; }
  .article-contents a:hover, .article-contents a[aria-current='location'] { color: var(--brand); }
  .article-contents a[aria-current='location'] { font-weight: 700; }
  .article-content { min-width: 0; font-size: 1.1875rem; line-height: 1.78; color: var(--on-sheet); }
  .article-content > p:first-child { margin-top: 0; }
  .article-content p { margin: 1.15rem 0; }
  .article-section { padding-top: .2rem; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); scroll-margin-top: 7rem; }
  .article-section h2 { margin: 0 0 1.2rem; max-width: 28ch; font-size: clamp(1.8rem, 1.4rem + 1.1vw, 2.55rem); font-weight: 700; line-height: 1.17; letter-spacing: -.01em; text-wrap: balance; }
  .article-section h3 { margin: 2rem 0 .65rem; font-size: 1.4rem; line-height: 1.3; }
  .article-content strong { font-weight: 700; }
  .article-takeaway { margin: 1.8rem 0 0; padding: .25rem 1.2rem .3rem 0; border-inline-start: 3px solid var(--brand); font-size: 1.08rem; line-height: 1.6; }
  .article-takeaway > strong { color: var(--brand); font-size: .95rem; }
  .article-takeaway p { margin: .3rem 0 0; }
  .article-content ul, .article-content ol { padding-inline-start: 1.35rem; margin: 1.2rem 0; }
  .article-content li { padding-inline-start: .2rem; margin: .5rem 0; }
  .article-content a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
  .article-content a:hover { text-decoration-thickness: 2px; }
  .article-content blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border: 0; border-inline-start: 3px solid var(--brand); border-radius: 0 var(--radius-card) var(--radius-card) 0; background: var(--sheet-soft); color: var(--on-sheet); font-size: 1.18rem; line-height: 1.65; }
  .article-content blockquote p:first-child { margin-top: 0; }
  .article-content blockquote p:last-child { margin-bottom: 0; }
  .article-figure { margin: 2.2rem 0 2.5rem; }
  .article-figure picture, .article-figure img { display: block; width: 100%; height: auto; }
  .article-figure img, .article-figure video { border-radius: var(--radius-card); }
  .article-figure figcaption { margin: .85rem .1rem 0; font-size: .91rem; line-height: 1.5; color: var(--on-sheet-muted); }
  .article-figure .media-source { display: block; font-size: .83rem; margin-top: .25rem; }
  .article-figure video { display: block; width: 100%; height: auto; background: var(--sheet-soft); }
  .media-alternative { margin-top: 1rem; border-top: 1px solid var(--sheet-line-soft); padding-top: .5rem; font-size: 1rem; }
  .media-alternative summary { min-height: 3rem; display: flex; align-items: center; gap: .7rem; cursor: pointer; color: var(--brand); font-size: 1rem; }
  .media-alternative summary::before { content: '+'; font-family: var(--font-numeric); font-size: 1.4rem; }
  .media-alternative[open] summary::before { content: '−'; }
  .media-alternative h1, .media-alternative h2 { font-size: 1.3rem; margin-block: 1rem; }
  .media-alternative h3 { font-size: 1.1rem; }
  .media-alternative h4 { font-size: 1.1rem; margin-block: 1rem; }
  .media-alternative ul { padding-inline-start: 1.2rem; }
  .media-alternative img { margin-top: 1rem; }
  .article-small-button, .article-download { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .55rem 1.3rem; border: 1px solid var(--sheet-line); border-radius: var(--radius-pill); background: var(--sheet); color: var(--on-sheet); font: inherit; font-size: 1rem; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
  .article-small-button:hover, .article-download:hover { border-color: var(--on-sheet); }
  .article-download--primary { background: var(--on-sheet); color: var(--sheet) !important; border-color: var(--on-sheet); }
  .article-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 0; }
  .owner-checklist { margin: 2rem 0; padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); border-radius: var(--radius-card); background: var(--sheet-soft); }
  .owner-checklist legend { display: block; float: inline-start; width: 100%; margin-bottom: .6rem; padding: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.3; }
  .owner-checklist fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
  .owner-checklist .checklist-note { clear: both; margin: 0 0 .8rem; font-size: .98rem; color: var(--on-sheet-muted); line-height: 1.5; }
  .checklist-items { clear: both; }
  .checklist-item { display: flex; align-items: flex-start; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--sheet-line-soft); cursor: pointer; font-size: 1.09rem; line-height: 1.5; }
  .checklist-item input { flex: none; width: 1.3rem; height: 1.3rem; margin: .22rem 0 0; accent-color: var(--brand); cursor: pointer; }
  .checklist-item:has(input:checked) span { color: var(--brand); }
  .checklist-status { margin: 1rem 0 0 !important; font-size: .95rem; color: var(--on-sheet-muted); }
  .checklist-status b { color: var(--on-sheet); }
  .checklist-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
  .checklist-reset { font: inherit; font-size: .95rem; min-height: 3rem; border: 0; background: transparent; color: var(--on-sheet-muted); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
  .saved-card { padding: .25rem 0; }
  .saved-card summary { cursor: pointer; min-height: 3rem; display: flex; align-items: center; gap: .75rem; color: var(--brand); font-size: 1rem; }
  .saved-card summary::before { content: '+'; font-size: 1.4rem; font-family: var(--font-numeric); }
  .saved-card[open] summary::before { content: '−'; }
  .saved-card .article-figure { margin: 1rem 0; }
  .article-faq { border-top: 1px solid var(--sheet-line); }
  .article-faq details { border-bottom: 1px solid var(--sheet-line); padding: 0; }
  .article-faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; list-style: none; font-size: 1.25rem; font-weight: 700; line-height: 1.4; cursor: pointer; }
  .article-faq summary::-webkit-details-marker { display: none; }
  .article-faq summary::after { content: '+'; flex: none; font-family: var(--font-numeric); font-size: 1.5rem; font-weight: 400; color: var(--brand); }
  .article-faq details[open] summary::after { content: '−'; }
  .article-faq-answer { padding-bottom: .8rem; font-size: 1.1rem; color: var(--on-sheet-muted); }
  .article-faq-answer p:first-child { margin-top: 0; }
  .article-section--sources { font-size: 1rem; line-height: 1.6; padding-top: 2rem; border-top: 1px solid var(--sheet-line); }
  .article-section--sources h2 { font-size: 1.6rem; }
  .article-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
  .article-content th, .article-content td { padding: .8rem; border-bottom: 1px solid var(--sheet-line); text-align: start; vertical-align: top; }
  .article-content th { background: var(--sheet-soft); }
  .article-end { width: min(100% - 2 * var(--gutter), 64rem); margin: 1rem auto 4rem; padding-top: 2rem; border-top: 1px solid var(--sheet-line-soft); text-align: center; color: var(--on-sheet-muted); font-size: 1rem; }
  .article-end a { color: var(--brand); text-underline-offset: .2em; }
  .article-content :focus-visible, .article-contents :focus-visible, .article-hero :focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
  @media (min-width: 72rem) { .article-contents summary { pointer-events: none; } }
  @media (max-width: 71.99rem) {
    .article-layout { grid-template-columns: minmax(0, 44rem); gap: 2rem; }
    .article-contents { position: static; max-height: none; padding: 0; border-inline: 0; border-block: 1px solid var(--sheet-line); }
    .article-contents summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; margin: 0; min-height: 3.5rem; }
    .article-contents summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; font-family: var(--font-numeric); }
    .article-contents details[open] summary::after { content: '−'; }
    .article-contents ul { padding-bottom: 1rem; }
    .article-hero-grid { gap: 2rem; }
    .article-hero h1 { font-size: clamp(2.7rem, 1.2rem + 3.3vw, 4.1rem); }
  }
  @media (max-width: 55rem) {
    .article-hero { padding-top: 7.5rem; }
    .article-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .article-hero h1 { max-width: 25ch; font-size: clamp(2.5rem, 1.45rem + 4vw, 3.75rem); }
    .article-hero-media { width: min(100%, 40rem); margin-inline: auto; }
    .article-draft { margin-top: 1.75rem; }
    .article-breadcrumbs { margin-bottom: 1.6rem; }
  }
  @media (max-width: 40rem) {
    .article-hero { padding-top: 7.1rem; padding-bottom: 2.5rem; }
    .article-kind { font-size: 1rem; margin-bottom: .8rem; }
    .article-hero h1 { font-size: 2.7rem; line-height: 1.1; }
    .article-deck { font-size: 1.125rem; margin-top: 1.25rem; }
    .article-layout { margin-top: 2.25rem; gap: 2.1rem; }
    .article-content { font-size: 1.125rem; line-height: 1.75; }
    .article-section h2 { font-size: 1.95rem; line-height: 1.18; }
    .article-section h3 { font-size: 1.25rem; }
    .article-figure { margin-block: 1.8rem 2rem; }
    .article-figure figcaption { font-size: .88rem; }
    .article-content blockquote { padding: 1.1rem 1.2rem; font-size: 1.1rem; }
    .owner-checklist { padding: 1.15rem; }
    .checklist-item { font-size: 1rem; gap: .75rem; }
    .article-faq summary { font-size: 1.13rem; }
    .article-actions { align-items: stretch; }
    .article-actions > * { flex: 1 1 auto; }
    .article-content table { display: block; overflow-x: auto; }
  }
  @media (max-width: 23rem) { .article-hero h1 { font-size: 2.4rem; } }
  /* The shared header's existing narrow-phone rule ends below360px. Tighten its two controls at this width. */
  @media (max-width: 24rem) {
    .page-article-preview .bar__toggle { padding-inline: .65rem; gap: .45rem; }
    .page-article-preview .bar__cta { padding-inline: .85rem; font-size: 1rem; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
  @media print {
    html, body { background: white !important; color: black !important; }
    .site-header, .site-footer, .article-progress, .article-contents, .article-breadcrumbs, .article-end, .article-small-button, .article-actions, .article-draft, .checklist-reset, .media-alternative, .saved-card, video { display: none !important; }
    .article-hero { margin: 0; padding: 0 0 1rem; background: white !important; }
    .article-wide, .article-layout { width: 100%; max-width: none; }
    .article-hero-grid, .article-layout { display: block; }
    .article-hero h1 { font-size: 25pt; max-width: none; }
    .article-hero-media { max-width: 15cm; margin: 1rem auto; }
    .article-layout { margin-top: 1.5rem; }
    .article-content, .article-deck { font-size: 11pt; line-height: 1.55; }
    .article-section h2 { font-size: 18pt; break-after: avoid; }
    .article-section h3 { font-size: 13pt; break-after: avoid; }
    .article-figure, .owner-checklist, blockquote { break-inside: avoid; }
    .article-figure img { max-height: 18cm; object-fit: contain; }
    .article-figure figcaption { font-size: 9pt; }
    .article-faq details > * { display: block !important; }
    .article-faq summary::after { display: none; }
    .article-content a { color: black; }
    .article-section { margin-bottom: 1.5rem; }
  }
}
