.article-preview-notice {
    display: flex;
    position: sticky;
    z-index: 20;
    top: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent, #fcbd01) 70%, #000);
    background: var(--accent, #fcbd01);
    color: #171717;
    text-align: center;
}

.article-preview-notice strong {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .article-preview-notice {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        font-size: 13px;
        text-align: left;
    }
}

.article-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: end;
    overflow: hidden;
    color: #ffffff;
}

.article-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.article-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero > .cover-placeholder {
    z-index: 0;
}

.article-hero .cover-placeholder__mark {
    min-width: 150px;
    padding: 22px 28px 18px;
}

.article-hero .cover-placeholder__mark strong {
    font-size: 38px;
}

.article-hero__inner {
    position: relative;
    z-index: 2;
    padding-bottom: 52px;
}

.article-hero h1 {
    font-family: var(--font-editorial);
    font-weight: 700;
    max-width: 920px;
    margin: 14px 0;
    font-size: 52px;
    line-height: 1.04;
}

.article-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.article-hero .news-card__meta {
    color: rgba(255, 255, 255, 0.76);
}

.article-hero .article-author-link:hover {
    color: #ffffff;
}

.article-hero .news-card__tags a {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
}

.article-layout {
    display: block;
    padding-top: 52px;
    padding-bottom: 56px;
}

.article-body {
    font-family: var(--font-reading);
    max-width: 760px;
    margin: 0 auto;
    color: var(--text);
    font-size: 19px;
}

.article-body p {
    font-size: 19px;
    line-height: 1.78;
    margin: 0 0 24px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: 0;
}

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

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

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

.article-body figcaption,
.article-body .article-inline-meta {
    font-family: var(--font-ui);
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.article-body li {
    margin: 8px 0;
}

.article-body blockquote {
    margin: 30px 0;
    border-left: 4px solid var(--yellow);
    padding: 6px 0 6px 22px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.58;
    font-style: italic;
}

.article-body pre {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid #3a3833;
    border-radius: var(--radius);
    background: #1d1c19;
    color: #e8e6df;
    box-shadow: 0 14px 34px rgb(0 0 0 / 14%);
    padding: 38px 20px 16px;
    font: 14px/1.65 Consolas, "Courier New", monospace;
    tab-size: 4;
    text-align: left;
}

.article-body pre::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    min-height: 30px;
    box-sizing: border-box;
    border-bottom: 1px solid #34322e;
    color: #a9a59c;
    content: attr(data-code-language);
    padding: 6px 12px;
    font: 800 10px/1.8 inherit;
    letter-spacing: 0;
    text-transform: uppercase;
}

.article-body code {
    border-radius: 4px;
    background: var(--surface-2);
    padding: 2px 5px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
}

.article-body pre code {
    display: block;
    background: transparent;
    padding: 0;
    color: inherit;
    white-space: pre;
}

.article-body .hljs-comment,
.article-body .hljs-quote {
    color: #8b918a;
    font-style: italic;
}

.article-body .hljs-keyword,
.article-body .hljs-selector-tag,
.article-body .hljs-literal,
.article-body .hljs-section,
.article-body .hljs-link {
    color: #f07886;
}

.article-body .hljs-string,
.article-body .hljs-title,
.article-body .hljs-name,
.article-body .hljs-type,
.article-body .hljs-attribute,
.article-body .hljs-symbol,
.article-body .hljs-bullet,
.article-body .hljs-addition {
    color: #a8d878;
}

.article-body .hljs-number,
.article-body .hljs-meta,
.article-body .hljs-built_in,
.article-body .hljs-builtin-name,
.article-body .hljs-doctag {
    color: #e5b75d;
}

.article-body .hljs-variable,
.article-body .hljs-template-variable,
.article-body .hljs-selector-id,
.article-body .hljs-selector-class,
.article-body .hljs-function .hljs-title {
    color: #79b8e8;
}

.article-body .hljs-regexp,
.article-body .hljs-selector-attr,
.article-body .hljs-selector-pseudo,
.article-body .hljs-template-tag {
    color: #d4a6ff;
}

.article-body .hljs-deletion {
    color: #ff9a9a;
    background: rgb(185 45 45 / 20%);
}

.article-body .hljs-emphasis {
    font-style: italic;
}

.article-body .hljs-strong {
    font-weight: 700;
}

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: var(--radius);
}

.article-body iframe {
    display: block;
    width: min(100%, 780px);
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 30px auto;
    border: 0;
    border-radius: var(--radius);
    background: #111111;
}

.article-media {
    position: relative;
    width: min(100%, 780px);
    margin: 30px auto;
}

.article-media > img,
.article-media > iframe,
.article-media > video {
    display: block;
    width: 100%;
    margin: 0;
}

.article-media > video {
    aspect-ratio: 16 / 9;
    background: #090909;
}

.article-media__expand {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 6px;
    background: rgb(15 15 15 / 82%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgb(0 0 0 / 24%);
    font-size: 20px;
    backdrop-filter: blur(8px);
}

.article-media__expand svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.article-media__expand:hover,
.article-media__expand:focus-visible {
    border-color: var(--yellow);
    background: rgb(15 15 15 / 96%);
    color: var(--yellow);
    box-shadow: 0 8px 24px rgb(0 0 0 / 36%), 0 0 0 2px rgb(252 189 1 / 14%);
    transform: translateY(-1px);
}

.article-media--image > img {
    cursor: zoom-in;
}

.article-audio-player {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) minmax(112px, 154px) 46px;
    align-items: center;
    gap: 13px;
    min-height: 84px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand, #fcbd01) 24%, #34312b);
    border-radius: 14px;
    background: linear-gradient(135deg, #24211b 0%, #181818 55%, #141414 100%);
    box-shadow: 0 16px 38px rgb(0 0 0 / 28%);
    color: #ffffff;
    font-family: var(--font-ui, Arial, sans-serif);
    font-style: normal;
    line-height: normal;
    padding: 14px 16px;
}

/* The published article deliberately reuses the editor audio component.
   Only its positioning changes because it lives in the document flow. */
:is(.article-body, .article-media-viewer) .article-public-audio-player {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(720px, 100%);
    max-width: 720px;
    margin: 1.5rem auto;
    color: #ffffff;
    font-family: var(--font-ui, "Source Sans 3", Arial, sans-serif);
    font-style: normal;
    line-height: normal;
    text-align: left;
}

:is(.article-body, .article-media-viewer) .article-public-audio-player strong,
:is(.article-body, .article-media-viewer) .article-public-audio-player span {
    font-family: inherit;
    font-style: normal;
}

:is(.article-body, .article-media-viewer) .article-public-audio-player button {
    display: grid;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-family: inherit;
    font-weight: 900;
}

:is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__play {
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 50%;
}

:is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__progress {
    box-sizing: border-box;
    height: 22px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    outline: 0;
}

:is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__progress::-webkit-slider-thumb {
    width: 0 !important;
    height: 0 !important;
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

:is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__progress::-moz-range-thumb {
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

:is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__mute,
:is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__speed {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 9px;
}

:is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__play:hover,
:is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__play:focus-visible {
    background: color-mix(in srgb, var(--accent, #fcbd01) 88%, #ffffff) !important;
    color: #111111 !important;
}

.article-audio-player::after {
    position: absolute;
    top: -70px;
    right: -45px;
    width: 150px;
    height: 150px;
    border: 24px solid rgb(252 189 1 / 9%);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.article-audio-player button {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid rgb(255 255 255 / 12%);
    background: rgb(255 255 255 / 6%);
    color: #ffffff;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
}

.article-audio-player__play {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: var(--brand, #fcbd01) !important;
    color: #111111 !important;
    box-shadow: 0 10px 24px rgb(252 189 1 / 22%);
}

.article-audio-player button svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.article-audio-player__details {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.article-audio-player__details strong {
    display: block;
    margin-bottom: 10px;
    overflow: hidden;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-audio-player__timeline {
    display: grid;
    grid-template-columns: 36px minmax(70px, 1fr) 36px;
    align-items: center;
    gap: 9px;
    color: rgb(255 255 255 / 60%);
    font-family: inherit;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.article-audio-player input[type="range"] {
    width: 100%;
    height: 4px;
    margin: 0;
    accent-color: var(--brand, #fcbd01);
    cursor: pointer;
}

.article-audio-player__progress {
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand, #fcbd01) var(--audio-progress, 0%), rgb(255 255 255 / 18%) var(--audio-progress, 0%));
}

.article-audio-player__progress::-webkit-slider-thumb {
    width: 0;
    height: 0;
    appearance: none;
    border: 0;
}

.article-audio-player__progress::-moz-range-thumb {
    width: 0;
    height: 0;
    border: 0;
}

.article-audio-player__volume {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 40px minmax(58px, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
}

.article-audio-player__volume-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 9px 0;
}

.article-audio-player__volume-track {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(255 255 255 / 20%);
    pointer-events: none;
    transform: translateY(-50%);
}

.article-audio-player__volume-track::before {
    display: block;
    width: var(--audio-volume, 100%);
    height: 100%;
    border-radius: inherit;
    background: var(--brand, #fcbd01);
    content: '';
}

.article-audio-player__volume-panel input {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    opacity: 0;
}

.article-audio-player__volume-panel input::-webkit-slider-thumb {
    width: 0;
    height: 0;
    appearance: none;
    border: 0;
    background: transparent;
}

.article-audio-player__volume-panel input::-moz-range-thumb {
    width: 0;
    height: 0;
    border: 0;
    background: transparent;
}

.article-audio-player__mute,
.article-audio-player__speed {
    width: 40px;
    height: 38px;
    min-width: 40px;
    min-height: 38px;
    padding: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.article-audio-player__mute.is-muted {
    color: var(--brand, #fcbd01);
    opacity: .55;
}

.article-audio-player--expanded {
    width: min(720px, calc(100vw - 120px));
    border-color: rgb(255 255 255 / 18%);
    background: #1d1d1d;
    color: #ffffff;
}

.article-body .article-audio-player__play:hover,
.article-body .article-audio-player__play:focus-visible {
    background: color-mix(in srgb, var(--brand, #fcbd01) 88%, #ffffff) !important;
    color: #111111 !important;
}

html.article-media-viewer-open,
body.article-media-viewer-open {
    overflow: hidden !important;
}

.article-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr) auto;
    color: #ffffff;
}

.article-media-viewer[hidden] {
    display: none;
}

.article-media-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(7 7 7 / 96%);
    backdrop-filter: blur(12px);
}

.article-media-viewer__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    padding: 10px 18px;
}

.article-media-viewer__count {
    margin-right: auto;
    color: rgb(255 255 255 / 68%);
    font-size: 13px;
    font-weight: 700;
}

.article-media-viewer__header button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 6px;
    background: #1c1c1c;
    color: #ffffff;
    font-size: 22px;
}

.article-media-viewer__header button:hover,
.article-media-viewer__header button:focus-visible {
    border-color: var(--yellow);
    color: var(--yellow);
}

.article-media-viewer__stage {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 0;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
}

.article-media-viewer--audio .article-media-viewer__stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 80px;
}

.article-media-viewer--audio .article-media-viewer__content {
    grid-column: 1;
    width: 100%;
}

.article-media-viewer--audio .article-media-viewer__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.article-media-viewer--audio .article-media-viewer__nav--previous {
    left: 14px;
}

.article-media-viewer--audio .article-media-viewer__nav--next {
    right: 14px;
}

.article-media-viewer__content {
    display: grid;
    min-width: 0;
    min-height: 0;
    place-items: center;
}

.article-media-viewer__content img,
.article-media-viewer__content iframe,
.article-media-viewer__content video {
    display: block;
    max-width: min(1280px, calc(100vw - 160px));
    max-height: calc(100vh - 150px);
    border: 0;
    border-radius: 6px;
    background: #111111;
    object-fit: contain;
}

.article-media-viewer__content iframe,
.article-media-viewer__content video {
    width: min(1280px, calc(100vw - 160px));
    aspect-ratio: 16 / 9;
}

.article-media-viewer__nav {
    position: relative;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    justify-self: center;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    background: rgb(28 28 28 / 92%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 34%);
}

.article-media-viewer__nav svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.article-media-viewer__nav:hover,
.article-media-viewer__nav:focus-visible {
    border-color: var(--yellow);
    color: var(--yellow);
}

.article-media-viewer__caption {
    position: relative;
    z-index: 2;
    min-height: 42px;
    margin: 0;
    padding: 10px 24px 14px;
    color: rgb(255 255 255 / 72%);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 640px) {
    .article-audio-player {
        grid-template-columns: 44px minmax(0, 1fr) minmax(94px, 118px);
        gap: 9px;
        padding: 12px;
    }

    .article-audio-player__play {
        width: 44px;
        height: 44px;
    }

    .article-audio-player__speed {
        display: none;
    }

    .article-audio-player__volume {
        grid-template-columns: 38px minmax(48px, 1fr);
        gap: 6px;
    }


    .article-audio-player__timeline {
        grid-template-columns: 34px minmax(60px, 1fr) 34px;
        gap: 6px;
    }

    .article-media-viewer__stage {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .article-media-viewer__content img,
    .article-media-viewer__content iframe,
    .article-media-viewer__content video {
        max-width: calc(100vw - 92px);
        max-height: calc(100vh - 150px);
    }

    .article-media-viewer__content iframe,
    .article-media-viewer__content video {
        width: calc(100vw - 92px);
    }

    .article-media-viewer__nav {
        width: 40px;
        height: 40px;
    }

    .article-audio-player--expanded {
        width: calc(100vw - 100px);
    }
}

.article-body figure {
    margin: 30px 0;
}

.article-body figure img {
    margin-bottom: 10px;
}

.article-body figcaption {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.article-body hr {
    margin: 38px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.article-body a {
    border-radius: 3px;
    color: color-mix(in srgb, var(--teal) 82%, var(--text));
    font-weight: 750;
    text-decoration-line: underline;
    text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
    transition: color 160ms ease, background-color 160ms ease, text-decoration-color 160ms ease;
}

.article-body a:hover,
.article-body a:focus-visible {
    background: color-mix(in srgb, var(--yellow) 13%, transparent);
    color: color-mix(in srgb, var(--yellow) 62%, var(--text));
    text-decoration-color: currentColor;
}

[data-theme="dark"] .article-body a {
    color: #f1c857;
}

[data-theme="dark"] .article-body a:hover,
[data-theme="dark"] .article-body a:focus-visible {
    background: rgb(252 189 1 / 12%);
    color: #ffdc76;
}

.article-comments {
    max-width: 780px;
    margin: 52px auto 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.article-comments h2 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 0 0 18px;
    font-size: 22px;
}

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

.article-comment__author:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-comments__flash {
    margin: 0 0 14px;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
}

.article-comments__flash--success {
    background: color-mix(in srgb, var(--teal) 14%, var(--surface));
    color: var(--teal);
}

.article-comments__flash--error {
    background: color-mix(in srgb, var(--red) 14%, var(--surface));
    color: var(--red);
}

.article-comments__form {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 16px;
    margin-bottom: 20px;
}

.article-comments__form--reply {
    margin: 10px 0 0;
    border-radius: 12px;
    background: var(--surface-2);
    padding: 12px;
}

.article-comments__form textarea {
    width: 100%;
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text);
    padding: 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
}

.article-comments__form textarea:focus {
    border-color: var(--brand);
    outline: 0;
}

.article-comments__form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.article-comments__form-actions small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.article-comments__login {
    margin: 0 0 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 14px;
    color: var(--muted);
    font-size: 14px;
}

.article-comments__login a {
    color: var(--brand);
    font-weight: 700;
}

.article-comments__empty {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.article-comments__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-comment {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 14px;
}

.article-comment__avatar {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--brand);
    color: #111111;
    font-size: 16px;
    font-weight: 700;
}

.article-comment__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-comment__avatar--image .avatar-fallback {
    display: none;
}

.article-comment__avatar.is-avatar-missing .avatar-fallback {
    display: inline-flex;
}

.article-comment__avatar.is-avatar-missing img {
    display: none;
}

.article-comment__body header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 6px;
}

.article-comment__body strong {
    font-size: 14px;
}

.article-comment__body time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.article-comment__body p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.article-comment__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.article-comment__actions a,
.article-comment__reply-box summary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.article-comment__reply-box summary::-webkit-details-marker {
    display: none;
}

.article-comment__reply-box[open] summary {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 14%, var(--surface));
}

.article-comment__replies {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.article-comment--reply {
    border-radius: 12px;
    background: var(--surface-2);
    box-shadow: none;
}

.article-comment--reply .article-comment__avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.article-related {
    max-width: 1040px;
    margin: 54px auto 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.article-related h2 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 0 0 18px;
    font-size: 26px;
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) {
    .article-hero {
        min-height: 480px;
    }

    .article-hero h1 {
        font-size: 36px;
    }

    .article-layout {
        padding-top: 34px;
    }

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

@media (max-width: 640px) {
    :is(.article-body, .article-media-viewer) .article-public-audio-player {
        width: 100%;
        margin: 1rem auto;
    }

    :is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__play {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .article-hero {
        min-height: 420px;
    }

    .article-hero h1 {
        font-size: 30px;
    }

    .article-hero__inner,
    .article-body,
    .article-comments,
    .article-related {
        text-align: center;
    }

    .article-comments__form-actions {
        justify-content: center;
    }

    .article-comment {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .article-comment__body header,
    .article-comment__actions {
        justify-content: center;
    }

    .article-comments__form textarea {
        text-align: left;
    }

    .article-media-viewer--audio .article-media-viewer__stage {
        padding: 16px 12px;
    }

    .article-media-viewer--audio .article-media-viewer__nav {
        display: none;
    }

    .article-media-viewer--audio .article-public-audio-player {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    :is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__play {
        width: 42px;
        height: 42px;
        min-height: 42px;
    }

    :is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__progress {
        height: 18px;
    }

    :is(.article-body, .article-media-viewer) .article-public-audio-player .rich-text-audio-player__mute {
        width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .article-hero {
        min-height: 380px;
    }

    .article-hero h1 {
        font-size: 26px;
    }

    .article-hero p {
        font-size: 15px;
    }

    .article-body,
    .article-comments {
        font-size: 15px;
    }

    .article-comments__form,
    .article-comment {
        padding: 14px;
    }
}
