@layer article-reset, article-layout, article-components, article-responsive;

@layer article-reset {
    :root {
        --article-surface-base: #fafafa;
        --article-surface-l1: #f5f5f5;
        --article-surface-l2: #efefef;
        --article-surface-l3: #e8e8e8;
        --article-border-l1: rgb(5 5 5 / 6%);
        --article-border-l2: rgb(5 5 5 / 10%);
        --article-fg-primary: #050505;
        --article-fg-secondary: #646464;
        --article-fg-tertiary: #858585;
        --article-link: #2563eb;
        --article-accent: #3b82f6;
        --article-danger: #b42318;
        --article-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 1px 3px rgb(0 0 0 / 3%);
        --article-header-height: 4rem;
        color-scheme: light;
    }

    :root[data-article-theme="dark"] {
        --article-surface-base: #141414;
        --article-surface-l1: #1f1f1f;
        --article-surface-l2: #252525;
        --article-surface-l3: #303030;
        --article-border-l1: rgb(252 252 252 / 6%);
        --article-border-l2: rgb(252 252 252 / 11%);
        --article-fg-primary: #fcfcfc;
        --article-fg-secondary: #a4a4a4;
        --article-fg-tertiary: #8c8c8c;
        --article-link: #bfdbfe;
        --article-accent: #dbeafe;
        --article-danger: #fda29b;
        --article-shadow: 0 1px 3px rgb(0 0 0 / 25%);
        color-scheme: dark;
    }

    body:has(.article-page) {
        min-height: 100%;
        overflow-x: clip;
        background: var(--article-surface-base);
        color: var(--article-fg-primary);
    }

    .article-page,
    .article-page * {
        box-sizing: border-box;
    }

    .article-page {
        min-height: 100vh;
        min-height: 100svh;
        background: var(--article-surface-base);
        color: var(--article-fg-primary);
        font-family: var(--public-font-family);
        font-size: 1rem;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    .article-page button,
    .article-page input,
    .article-page textarea {
        font: inherit;
    }

    .article-page button,
    .article-page a {
        -webkit-tap-highlight-color: transparent;
    }

    .article-page a {
        color: inherit;
    }

    .article-page img,
    .article-page svg {
        max-width: 100%;
    }

    .article-page button:focus-visible,
    .article-page a:focus-visible,
    .article-page input:focus-visible,
    .article-page textarea:focus-visible {
        outline: 3px solid color-mix(in srgb, var(--article-accent) 58%, transparent);
        outline-offset: 3px;
    }

    .article-skip-link {
        position: fixed;
        z-index: 150;
        inset-block-start: 0.75rem;
        inset-inline-start: 0.75rem;
        translate: 0 -200%;
        padding: 0.65rem 0.9rem;
        border-radius: 0.5rem;
        background: var(--article-fg-primary);
        color: var(--article-surface-base);
        font: 600 0.875rem/1.3 system-ui, sans-serif;
        text-decoration: none;
        transition: translate 150ms ease;
    }

    .article-skip-link:focus {
        translate: 0;
    }
}

@layer article-layout {
    .site-header {
        position: fixed;
        z-index: 50;
        inset: 0 0 auto;
        height: var(--article-header-height);
        border-block-end: 1px solid transparent;
        background: color-mix(in srgb, var(--article-surface-base) 92%, transparent);
        backdrop-filter: blur(14px) saturate(130%);
    }

    .article-read-progress {
        position: fixed;
        z-index: 50;
        inset-block-start: var(--article-header-height);
        inset-inline-start: 0;
        width: 100%;
        height: 1px;
        pointer-events: none;
        background: color-mix(in srgb, var(--article-fg-primary) 60%, transparent);
        transform: scaleX(0);
        transform-origin: left center;
        will-change: transform;
    }

    .header-desktop {
        display: grid;
        grid-template-columns: minmax(10rem, 1fr) minmax(18rem, 3fr) minmax(10rem, 1fr);
        align-items: center;
        gap: 1rem;
        width: min(100%, 120rem);
        height: 100%;
        margin-inline: auto;
        padding-inline: max(1.5rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-right));
    }

    .brand,
    .mobile-brand {
        color: var(--article-fg-primary);
        direction: ltr;
        font-family: var(--public-font-family);
        line-height: 1;
        letter-spacing: -0.0625rem;
        text-decoration: none;
    }

    .brand {
        justify-self: start;
        font-size: 1.5625rem;
    }

    .public-brand-lockup {
        justify-self: start;
    }

    .header-search {
        justify-self: center;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        max-width: 36rem;
        height: 2.5rem;
        padding-inline: 1.125rem;
        border: 1px solid var(--article-border-l1);
        border-radius: 999px;
        background: var(--article-surface-l1);
        color: var(--article-fg-tertiary);
        cursor: pointer;
        font-size: 0.875rem;
        text-align: start;
        transition: background 150ms ease, border-color 150ms ease;
    }

    .header-search:hover {
        border-color: var(--article-border-l2);
        background: var(--article-surface-l2);
    }

    .header-search svg {
        width: 1rem;
        height: 1rem;
        flex: none;
    }

    .header-search span {
        flex: 1;
    }

    .kbd {
        padding: 0.125rem 0.375rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.25rem;
        background: var(--article-surface-l2);
        font: 500 0.6875rem/1rem ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    .header-actions,
    .mobile-tools {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .header-actions {
        justify-self: end;
        direction: ltr;
    }

    .header-mobile {
        display: none;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
    }

    .mobile-brand {
        display: inline-flex;
        width: 5.625rem;
        height: 2.0625rem;
        align-items: center;
    }

    .mobile-brand img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .page-main {
        position: relative;
        display: flex;
        min-height: 100vh;
        min-height: 100svh;
        padding-block-start: var(--article-header-height);
    }

    .toc-sidebar {
        position: sticky;
        top: var(--article-header-height);
        order: 2;
        display: flex;
        width: 14rem;
        height: calc(100vh - var(--article-header-height));
        flex: 0 0 14rem;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
    }

    .toc-scroll {
        position: relative;
        min-height: 0;
        flex: 1;
        overflow: hidden;
        padding-inline-start: 1rem;
        mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 96px), transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 96px), transparent 100%);
    }

    .content-area {
        order: 1;
        min-width: 0;
        flex: 1;
        padding: 2rem 2rem 8rem;
    }

    .content-wrap {
        width: min(100%, 56.25rem);
        margin-inline: auto;
    }
}

@layer article-components {
    .icon-action,
    .round-action,
    .drawer-close {
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--article-fg-secondary);
        cursor: pointer;
        transition: color 150ms ease, background 150ms ease;
    }

    .icon-action {
        width: 2.125rem;
        height: 2.125rem;
        flex: none;
        text-decoration: none;
    }

    .icon-action:hover,
    .round-action:hover {
        background: var(--article-surface-l2);
        color: var(--article-fg-primary);
    }

    .icon-action svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .edit-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.125rem;
        padding-inline: 0.75rem;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--article-fg-secondary);
        cursor: pointer;
        font-size: 0.8125rem;
        text-decoration: none;
    }

    .edit-btn:hover {
        background: var(--article-surface-l2);
        color: var(--article-fg-primary);
    }

    .toc-heading {
        flex: none;
        margin: 0;
        padding-block: 2.25rem 0.625rem;
        padding-inline-start: 1rem;
        color: var(--article-fg-tertiary);
        font-size: 0.75rem;
        font-weight: 600;
    }

    .toc-box {
        position: relative;
        padding-block-end: 6rem;
        transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .toc-rail-line,
    .toc-active-indicator {
        position: absolute;
        inset-inline-start: 0;
        border-radius: 999px;
        pointer-events: none;
    }

    .toc-rail-line {
        inset-block: 0 6rem;
        width: 1px;
        background: var(--article-border-l1);
    }

    .toc-active-indicator {
        inset-block-start: 0;
        width: 2px;
        height: 12px;
        background: var(--article-fg-primary);
        opacity: 0;
        transform: translateY(0);
        transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), height 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms cubic-bezier(0.2, 0, 0, 1);
    }

    .toc-list {
        margin: 0;
        padding: 0;
        list-style: none;
        font-size: 13px;
        line-height: 1.35;
    }

    .toc-item {
        display: block;
        margin: 0;
        overflow: hidden;
    }

    .toc-row {
        min-height: 0;
        overflow: hidden;
    }

    .toc-link {
        display: block;
        padding-block: 4px;
        padding-inline: 14px 8px;
        color: var(--article-fg-tertiary);
        text-decoration: none;
        transition: color 220ms cubic-bezier(0.2, 0, 0, 1);
    }

    .toc-item[data-toc-depth]:not([data-toc-depth="2"]) .toc-link {
        padding-inline-start: 26px;
    }

    .toc-item:hover .toc-link,
    .toc-item.is-active .toc-link,
    .toc-item:focus-within .toc-link {
        color: var(--article-fg-primary);
    }

    .toc-sidebar .toc-item[data-toc-depth]:not([data-toc-depth="2"]) {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms cubic-bezier(0.2, 0, 0, 1);
    }

    .toc-sidebar .toc-item[data-toc-depth]:not([data-toc-depth="2"])[data-open="1"] {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .fact-check {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0 0 0.5rem;
        color: var(--article-fg-tertiary);
        font-size: 0.875rem;
    }

    .fact-check svg {
        width: 1rem;
        height: 1rem;
        flex: none;
    }

    .fact-check time::before {
        content: "·";
        margin-inline-end: 0.35rem;
    }

    .article {
        font-size: 1rem;
    }

    .article-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        margin-block-end: 1rem;
    }

    .article-heading-copy {
        min-width: 0;
        flex: 1;
    }

    .article-kicker,
    .article-secondary-title {
        margin: 0;
        color: var(--article-fg-secondary);
        font-size: 0.875rem;
        line-height: 1.65;
    }

    .article-kicker {
        margin-block-end: 0.35rem;
        color: var(--article-link);
        font-weight: 650;
    }

    .article-secondary-title {
        margin-block-start: 0.5rem;
    }

    .article-title {
        margin: 0;
        color: var(--article-fg-primary);
        font-family: var(--public-font-family);
        font-size: clamp(2rem, 4vw, 2.55rem);
        font-weight: 800;
        letter-spacing: -0.0625rem;
        line-height: 1.18;
        overflow-wrap: anywhere;
        scroll-margin-top: 6rem;
    }

    .article-controls {
        display: flex;
        flex: none;
        align-items: center;
        gap: 0.25rem;
    }

    .round-action {
        width: 2rem;
        height: 2rem;
    }

    .round-action svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .article-lead {
        position: relative;
        max-width: 56.25rem;
        margin: 0 0 1.375rem;
        padding: 0.125rem 2.625rem 0.125rem 0;
        border-inline-start: 1px solid var(--article-fg-primary);
        color: var(--article-fg-secondary);
        font-family: var(--public-font-family);
        font-size: 18px;
        font-weight: 500;
        letter-spacing: -0.01rem;
        line-height: 1.85;
    }

    [dir="ltr"] .article-lead {
        padding: 0.125rem 0 0.125rem 2.625rem;
    }

    .article-lead::before {
        content: "“";
        position: absolute;
        inset-block-start: -1.125rem;
        inset-inline-start: 0.625rem;
        color: var(--article-fg-tertiary);
        font: 400 4.5rem/1 Georgia, "Times New Roman", serif;
        opacity: 0.16;
        pointer-events: none;
    }

    [dir="rtl"] .article-lead::before {
        content: "”";
    }

    .article-hero {
        width: 100%;
        margin: 0 0 1.75rem;
    }

    .article-hero-photo {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 8.5;
        border: 1px solid var(--article-border-l1);
        border-radius: 0.875rem;
        background: var(--article-surface-l2);
        box-shadow: var(--article-shadow);
        object-fit: cover;
    }

    .article-hero-caption {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem 0.55rem;
        margin-block-start: 0.5rem;
        padding-inline: 0.125rem;
        color: var(--article-fg-tertiary);
        font-size: 0.75rem;
        line-height: 1.55;
    }

    .article-hero-caption span + span::before {
        content: "·";
        margin-inline-end: 0.55rem;
    }

    .article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        margin: -0.5rem 0 1.5rem;
        color: var(--article-fg-tertiary);
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .article-meta > * + *::before {
        content: "·";
        margin-inline-end: 0.75rem;
    }

    .premium-article-body {
        display: flow-root;
        color: var(--article-fg-primary);
    }

    .premium-article-body :where(p, li, dd) {
        overflow-wrap: break-word;
    }

    .premium-article-body p {
        margin: 0 0 1rem;
        font-size: 1em;
        line-height: 1.9;
    }

    .premium-article-body :where(h2, h3, h4, h5) {
        position: relative;
        clear: both;
        color: var(--article-fg-primary);
        font-family: var(--public-font-family);
        scroll-margin-top: calc(var(--article-header-height) + 20px);
    }

    .premium-article-body h6 {
        scroll-margin-top: calc(var(--article-header-height) + 20px);
    }

    .premium-article-body h2 {
        margin-block-end: 0.6em;
        padding-block-end: 0.3em;
        border-block-end: 1px solid var(--article-border-l1);
        font-size: 24px;
        font-weight: 800;
        line-height: 1.3;
    }

    .premium-article-body h3 {
        margin: 1.5rem 0 0.55rem;
        font-size: 21px;
        font-weight: 800;
        line-height: 1.35;
    }

    .premium-article-body h4 {
        margin: 1.25rem 0 0.5rem;
        font-size: 18px;
        font-weight: 700;
    }

    .premium-article-body h5 {
        font-size: 16px;
        font-weight: 700;
    }

    .heading-copy-link {
        display: inline-grid;
        place-items: center;
        width: 24px;
        height: 24px;
        margin-inline-start: 0.5rem;
        padding: 0;
        border: 0;
        border-radius: 0.25rem;
        background: transparent;
        color: var(--article-fg-tertiary);
        cursor: pointer;
        opacity: 0;
        vertical-align: middle;
        transition: color 150ms ease, background-color 150ms ease, opacity 150ms ease;
    }

    .heading-copy-link svg {
        width: 14px;
        height: 14px;
    }

    .premium-article-body :where(h2, h3, h4, h5, h6):hover .heading-copy-link,
    .heading-copy-link:focus-visible {
        opacity: 1;
    }

    .heading-copy-link:hover {
        background: var(--article-surface-l2);
        color: var(--article-fg-primary);
    }

    .premium-article-body a {
        color: var(--article-link);
        text-decoration-color: color-mix(in srgb, var(--article-link) 40%, transparent);
        text-underline-offset: 0.2em;
    }

    .premium-article-body a:hover {
        text-decoration-color: currentcolor;
    }

    .premium-article-body :where(img, video, iframe) {
        max-width: 100%;
        height: auto;
        border-radius: 0.625rem;
    }

    .premium-article-body figure {
        max-width: 100%;
        margin: 1.5rem 0;
    }

    .premium-article-body figcaption {
        margin-block-start: 0.45rem;
        color: var(--article-fg-tertiary);
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .premium-article-body blockquote {
        margin: 1.25rem 0;
        padding: 0.25rem 1rem 0.25rem 0;
        border-inline-start: 2px solid var(--article-border-l2);
        color: var(--article-fg-secondary);
        line-height: 1.9;
    }

    [dir="ltr"] .premium-article-body blockquote {
        padding: 0.25rem 0 0.25rem 1rem;
    }

    .premium-article-body :where(ul, ol) {
        margin: 0 0 1rem;
        padding-inline-start: 1.5rem;
        line-height: 1.85;
    }

    .premium-article-body li {
        margin-block: 0.3125rem;
    }

    .premium-article-body .table-scroll {
        width: auto !important;
        margin: 1.4em 0 !important;
        overflow-x: auto;
        border: 1px solid var(--article-border-l1) !important;
        border-radius: 12px !important;
        background: var(--article-surface-l1);
        -webkit-overflow-scrolling: touch;
    }

    .premium-article-body table {
        width: 100%;
        min-width: max-content;
        margin: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
        font-family: var(--public-font-family);
        font-size: 13.5px !important;
        line-height: 1.45;
    }

    .premium-article-body .table-scroll table {
        min-width: 100%;
    }

    .premium-article-body thead,
    .premium-article-body thead tr {
        background: var(--article-surface-l2);
    }

    .premium-article-body :where(th, td) {
        padding: 9px 12px !important;
        border: 0 !important;
        border-block-end: 1px solid var(--article-border-l1) !important;
        text-align: start;
        vertical-align: top;
    }

    .premium-article-body th {
        background: var(--article-surface-l2);
        font-weight: 500;
        white-space: nowrap;
    }

    .premium-article-body tbody tr:last-child td {
        border-block-end: 0 !important;
    }

    .premium-article-body pre {
        max-width: 100%;
        overflow-x: auto;
        padding: 1rem;
        border: 1px solid var(--article-border-l1);
        border-radius: 0.625rem;
        background: var(--article-surface-l1);
        direction: ltr;
        text-align: left;
    }

    .premium-article-body sup a,
    .premium-article-body a[href^="#ref"],
    .premium-article-body a[href^="#cite"] {
        color: var(--article-fg-secondary);
        font-size: 0.75rem;
        text-decoration: none;
        vertical-align: super;
    }

    .article-empty {
        color: var(--article-fg-tertiary);
    }

    .article-gallery {
        margin-block-start: 2.5rem;
        padding-block-start: 1.5rem;
        border-block-start: 1px solid var(--article-border-l1);
    }

    .article-gallery__header {
        margin-block-end: 1rem;
    }

    .article-gallery__header h2 {
        margin: 0;
        color: var(--article-fg-primary);
        font-size: 24px;
        font-weight: 800;
        line-height: 1.35;
    }

    .article-gallery__header p {
        margin: 0.45rem 0 0;
        color: var(--article-fg-secondary);
        font-size: 0.875rem;
        line-height: 1.75;
    }

    .article-gallery__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
        gap: 1rem;
    }

    .article-gallery__item {
        min-width: 0;
        margin: 0;
    }

    .article-gallery__item a {
        display: block;
        overflow: hidden;
        border: 1px solid var(--article-border-l1);
        border-radius: 0.75rem;
        background: var(--article-surface-l2);
    }

    .article-gallery__item img {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        transition: transform 180ms ease;
    }

    .article-gallery__item a:hover img,
    .article-gallery__item a:focus-visible img {
        transform: scale(1.015);
    }

    .article-gallery__item figcaption {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.55rem 0.125rem 0;
        color: var(--article-fg-secondary);
        font-size: 0.75rem;
        line-height: 1.65;
    }

    .article-gallery__item figcaption small {
        color: var(--article-fg-tertiary);
        font: inherit;
    }

    .article-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-block-start: 2.5rem;
        padding-block-start: 1rem;
        border-block-start: 1px solid var(--article-border-l1);
    }

    .article-tags a {
        padding: 0.4rem 0.7rem;
        border-radius: 999px;
        background: var(--article-surface-l1);
        color: var(--article-fg-secondary);
        font-size: 0.75rem;
        text-decoration: none;
    }

    .article-tags a:hover {
        background: var(--article-surface-l2);
        color: var(--article-fg-primary);
    }

    .mobile-toc-btn {
        position: fixed;
        z-index: 40;
        inset-inline-start: max(1rem, env(safe-area-inset-left));
        inset-block-end: max(1rem, env(safe-area-inset-bottom));
        display: none;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: auto;
        min-width: 2.5rem;
        height: 2.5rem;
        padding-inline: 0.75rem;
        border: 1px solid var(--article-border-l1);
        border-radius: 999px;
        background: var(--article-surface-l1);
        box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 12%);
        color: var(--article-fg-primary);
        cursor: pointer;
    }

    .mobile-toc-btn svg {
        width: 1.125rem;
        height: 1.125rem;
        flex: none;
    }

    .mobile-toc-btn span {
        font-size: 0.8125rem;
        line-height: 1;
    }

    .mobile-drawer,
    .search-overlay,
    .report-dialog {
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--article-fg-primary);
    }

    .mobile-drawer::backdrop,
    .search-overlay::backdrop,
    .report-dialog::backdrop {
        background: rgb(0 0 0 / 48%);
        backdrop-filter: blur(3px);
    }

    .mobile-drawer {
        position: fixed;
        inset-block: 0;
        inset-inline: 0 auto;
        width: 85vw;
        max-width: 24rem;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: auto;
        padding: 1.125rem;
        border: 0;
        border-inline-end: 1px solid var(--article-border-l2);
        border-radius: 0;
        background: var(--article-surface-base);
        box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 25%);
    }

    .mobile-drawer .toc-list {
        overflow-y: auto;
        padding-block-end: max(1rem, env(safe-area-inset-bottom));
    }

    .mobile-drawer-head,
    .report-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-block-end: 0.75rem;
    }

    .mobile-drawer-title,
    .report-head h2 {
        margin: 0;
        font-size: 0.925rem;
        font-weight: 650;
    }

    .drawer-close {
        width: 1.875rem;
        height: 1.875rem;
        background: var(--article-surface-l2);
        color: var(--article-fg-primary);
        font-size: 1.2rem;
    }

    .search-overlay {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        padding-block-start: 5.25rem;
        background: rgb(0 0 0 / 12%);
    }

    .search-panel {
        width: min(40rem, calc(100% - 1.75rem));
        margin-inline: auto;
        overflow: hidden;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.875rem;
        background: var(--article-surface-base);
        box-shadow: 0 1.5rem 4.375rem rgb(0 0 0 / 24%);
    }

    .search-panel-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 3.25rem;
        padding-inline: 1rem;
    }

    .search-panel-row svg {
        width: 1.125rem;
        height: 1.125rem;
        flex: none;
        color: var(--article-fg-tertiary);
    }

    .search-panel input {
        min-width: 0;
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--article-fg-primary);
        font-size: 0.9375rem;
    }

    .search-close {
        padding: 0.2rem 0.45rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.3rem;
        background: var(--article-surface-l2);
        color: var(--article-fg-secondary);
        cursor: pointer;
        font: 500 0.6875rem/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    .search-suggestions {
        display: grid;
        gap: 0.125rem;
        padding: 0.375rem;
        border-block-start: 1px solid var(--article-border-l1);
    }

    .search-option {
        padding: 0.625rem;
        border-radius: 0.5rem;
        color: var(--article-fg-secondary);
        font-size: 0.875rem;
        text-decoration: none;
    }

    .search-option:hover,
    .search-option:focus-visible {
        background: var(--article-surface-l2);
        color: var(--article-fg-primary);
    }

    .report-dialog {
        width: min(36rem, calc(100% - 1.75rem));
        max-width: none;
        margin: auto;
    }

    .report-card {
        padding: 1.25rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 1rem;
        background: var(--article-surface-base);
        box-shadow: 0 1.5rem 4.375rem rgb(0 0 0 / 24%);
    }

    .report-card > p {
        margin: 0 0 1rem;
        color: var(--article-fg-secondary);
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .report-card label {
        display: grid;
        gap: 0.4rem;
        color: var(--article-fg-secondary);
        font-size: 0.8125rem;
    }

    .report-card :where(input, textarea) {
        width: 100%;
        padding: 0.7rem 0.75rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.5rem;
        outline: 0;
        background: var(--article-surface-l1);
        color: var(--article-fg-primary);
        resize: vertical;
    }

    .report-card :where(input, textarea):focus {
        border-color: var(--article-accent);
    }

    .report-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-block: 0.75rem;
    }

    .report-submit {
        min-height: 2.5rem;
        padding-inline: 1rem;
        border: 0;
        border-radius: 999px;
        background: var(--article-fg-primary);
        color: var(--article-surface-base);
        cursor: pointer;
        font-weight: 650;
    }

    .cite-popover {
        position: fixed;
        z-index: 80;
        width: min(22.5rem, calc(100vw - 1.75rem));
        padding: 0.75rem 0.875rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.625rem;
        background: var(--article-surface-l2);
        box-shadow: 0 0.875rem 2.125rem rgb(0 0 0 / 14%);
        color: var(--article-fg-secondary);
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .article-player {
        position: fixed;
        z-index: 70;
        inset-inline-start: 50%;
        inset-block-end: max(1.5rem, env(safe-area-inset-bottom));
        translate: -50% 0;
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.4375rem 0.625rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 999px;
        background: color-mix(in srgb, var(--article-surface-l2) 94%, transparent);
        box-shadow: 0 0.625rem 1.875rem rgb(0 0 0 / 18%);
        backdrop-filter: blur(12px);
    }

    .article-player button {
        min-width: 2.125rem;
        height: 2.125rem;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--article-fg-secondary);
        cursor: pointer;
    }

    .article-player button:hover {
        background: var(--article-surface-l3);
        color: var(--article-fg-primary);
    }

    .wave {
        display: flex;
        align-items: center;
        gap: 0.1875rem;
    }

    .wave i {
        display: block;
        width: 0.1875rem;
        border-radius: 0.125rem;
        background: var(--article-fg-secondary);
        opacity: 0.65;
    }

    .wave i:nth-child(1) { height: 0.4375rem; }
    .wave i:nth-child(2) { height: 0.25rem; }
    .wave i:nth-child(3) { height: 0.625rem; }
    .wave i:nth-child(4) { height: 0.375rem; }
    .wave i:nth-child(5) { height: 0.75rem; }
    .wave i:nth-child(6) { height: 0.3125rem; }

    .article-breaking {
        display: inline-flex;
        width: max-content;
        margin-block-start: 0.75rem;
        padding: 0.25rem 0.7rem;
        border-radius: 999px;
        background: #c93636;
        color: #fff;
        font-size: 0.72rem;
        font-weight: 750;
    }

    .article-meta a {
        color: inherit;
        text-decoration-color: var(--article-border-l2);
        text-underline-offset: 0.2em;
    }

    .article-classifieds,
    .article-comments {
        max-width: 56.25rem;
        margin: 3rem auto 0;
        padding-block-start: 1.5rem;
        border-block-start: 1px solid var(--article-border-l2);
    }

    .article-classifieds h2,
    .article-comments h2 {
        margin: 0 0 1rem;
        font-size: 1.15rem;
        font-weight: 680;
    }

    .article-classifieds ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .article-classifieds a {
        display: inline-flex;
        min-height: 2.25rem;
        align-items: center;
        padding-inline: 0.8rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 999px;
        color: var(--article-fg-secondary);
        font-size: 0.75rem;
        text-decoration: none;
    }

    .article-classifieds a:hover {
        border-color: var(--article-fg-secondary);
        color: var(--article-fg-primary);
    }

    .article-comment-status,
    .article-comment-errors {
        padding: 0.8rem 1rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.65rem;
        background: var(--article-surface-l2);
        font-size: 0.8rem;
    }

    .article-comment-errors {
        color: #b42318;
    }

    .article-comment-list {
        display: grid;
        gap: 0.75rem;
    }

    .article-comment {
        padding: 1rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.75rem;
        background: var(--article-surface-l2);
    }

    .article-comment header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
        color: var(--article-fg-secondary);
        font-size: 0.72rem;
    }

    .article-comment > p,
    .article-comment-reply p {
        margin: 0.65rem 0 0;
        font-size: 0.84rem;
        line-height: 1.8;
    }

    .article-comment-reply {
        margin-block-start: 0.75rem;
        padding: 0.75rem;
        border-inline-start: 2px solid var(--article-fg-secondary);
        background: var(--article-surface-l1);
    }

    .article-comment-reply strong {
        font-size: 0.72rem;
    }

    .article-comment-form {
        display: grid;
        gap: 1rem;
        margin-block-start: 1.5rem;
    }

    .article-comment-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .article-comment-form label {
        display: grid;
        gap: 0.4rem;
        color: var(--article-fg-secondary);
        font-size: 0.75rem;
        font-weight: 650;
    }

    .article-comment-form input,
    .article-comment-form textarea {
        width: 100%;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.65rem;
        background: var(--article-surface-l2);
        color: var(--article-fg-primary);
        font: inherit;
    }

    .article-comment-form input {
        min-height: 2.75rem;
        padding-inline: 0.8rem;
    }

    .article-comment-form textarea {
        min-height: 8rem;
        padding: 0.8rem;
        resize: vertical;
    }

    .article-comment-robot-check {
        display: inline-flex !important;
        width: max-content;
        max-width: 100%;
        justify-self: start;
        align-items: center;
        gap: 0.45rem !important;
        min-height: 2.25rem;
        padding: 0.45rem 0.65rem;
        border: 1px solid var(--article-border-l2);
        border-radius: 0.65rem;
        background: var(--article-surface-l2);
        color: var(--article-fg-primary) !important;
        font-size: 0.78rem !important;
        cursor: pointer;
    }

    .article-comment-robot-check input {
        width: 1.15rem;
        min-height: 1.15rem;
        margin: 0;
        padding: 0;
        accent-color: var(--article-fg-primary);
        cursor: pointer;
    }

    .article-comment-submit {
        width: max-content;
        min-height: 2.65rem;
        padding-inline: 1.25rem;
        border: 0;
        border-radius: 999px;
        background: var(--article-fg-primary);
        color: #fff !important;
        font: inherit;
        font-size: 0.78rem;
        font-weight: 700;
        cursor: pointer;
    }

    .article-comment-honeypot {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .article-player.is-playing .wave i {
        animation: article-wave 1s ease-in-out infinite;
    }

    .article-player.is-playing .wave i:nth-child(2) { animation-delay: 100ms; }
    .article-player.is-playing .wave i:nth-child(3) { animation-delay: 200ms; }
    .article-player.is-playing .wave i:nth-child(4) { animation-delay: 300ms; }

    @keyframes article-wave {
        50% { transform: scaleY(1.8); }
    }
}

@layer article-responsive {
    @media (min-width: 80rem) {
        .page-main {
            justify-content: center;
            column-gap: 2rem;
            padding-inline: 2rem;
        }

        .content-area {
            flex: 0 1 56.25rem;
            padding-inline: 0;
        }

        .content-wrap {
            width: 100%;
            padding-inline: 0;
        }

        .premium-article-body,
        .article-head,
        .article-lead,
        .article-hero,
        .article-meta,
        .fact-check,
        .article-tags {
            max-width: 56.25rem;
            margin-inline: auto;
        }
    }

    @media (max-width: 79.9375rem) {
        .toc-sidebar {
            display: none;
        }

        .mobile-toc-btn:not([hidden]) {
            display: flex;
        }
    }

    @media (max-width: 47.9375rem) {
        :root {
            --article-header-height: 3.75rem;
        }

        .header-desktop {
            display: none;
        }

        .header-mobile {
            display: flex;
        }

        .content-area {
            padding: 1.75rem 1rem 6.25rem;
        }

        .article-head {
            flex-direction: column;
            gap: 0.5rem;
        }

        .article-controls {
            align-self: flex-start;
        }

        .article-title {
            font-size: clamp(1.9rem, 10vw, 2.25rem);
        }

        .fact-check {
            font-size: 0.75rem;
        }

        .article-lead {
            margin-block-end: 1.125rem;
            padding-inline-start: 2.125rem;
            font-size: 18px;
            line-height: 1.8;
        }

        [dir="ltr"] .article-lead {
            padding-inline-end: 0;
        }

        .article-lead::before {
            inset-block-start: -0.75rem;
            font-size: 3.625rem;
        }

        .article-hero-photo {
            aspect-ratio: 16 / 10;
            border-radius: 0.75rem;
        }

        .premium-article-body p {
            line-height: 1.85;
        }

        .premium-article-body h2 {
            font-size: 22px;
        }

        .premium-article-body h3 {
            font-size: 20px;
        }

        .premium-article-body h4 {
            font-size: 18px;
        }

        .premium-article-body h5 {
            font-size: 16px;
        }

        .report-fields {
            grid-template-columns: 1fr;
        }

        .article-comment-fields {
            grid-template-columns: 1fr;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .article-page *,
        .article-page *::before,
        .article-page *::after {
            scroll-behavior: auto !important;
            animation-duration: 1ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 1ms !important;
        }
    }

    @media (forced-colors: active) {
        .header-search,
        .mobile-toc-btn,
        .article-hero-photo,
        .report-card,
        .search-panel {
            border-color: CanvasText;
        }

        .toc-active-indicator {
            background: Highlight;
        }
    }

    @media print {
        .site-header,
        .article-read-progress,
        .toc-sidebar,
        .article-controls,
        .mobile-toc-btn,
        .article-player,
        .article-tags,
        .article-classifieds,
        .article-comments,
        .article-skip-link {
            display: none !important;
        }

        .page-main {
            display: block;
            padding: 0;
        }

        .content-area {
            padding: 0;
        }

        .content-wrap {
            width: 100%;
            max-width: none;
        }

        .article-page {
            background: #fff;
            color: #000;
        }
    }
}
