.article-page {
    background:
        radial-gradient(circle at 88% 7%, rgba(243, 170, 51, 0.08), transparent 32rem),
        var(--background);
}

.article-page .section-nav-shell {
    justify-content: space-between;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-light) !important;
}

.article-hero,
.article-tools-shell,
.reading-layout,
.article-share,
.related-section,
.conversation-section {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.article-hero {
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.article-heading h1 {
    margin: 0 0 1.35rem;
    font-size: clamp(3rem, 6.5vw, 6.2rem);
    line-height: 0.97;
    letter-spacing: -0.058em;
}

.article-deck {
    max-width: 42rem;
    margin-bottom: 1.8rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.article-byline {
    padding-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid var(--border);
}

.byline-mark {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #17100a;
    background: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.76rem;
    font-weight: 850;
}

.article-byline p {
    margin: 0;
    display: grid;
}

.article-byline strong {
    font-size: 0.86rem;
}

.article-byline p span {
    color: var(--muted);
    font-size: 0.72rem;
}

.article-cover {
    position: relative;
    min-height: 35rem;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.9rem 3.5rem 0.9rem 0.9rem;
    background: var(--surface);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

.article-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(5, 7, 9, 0.38), transparent 40%);
}

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

.article-cover figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(7, 9, 11, 0.75);
    backdrop-filter: blur(10px);
    font-size: 0.65rem;
}

.article-tools-shell {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.article-tools {
    min-height: 4.6rem;
    padding: 0.7rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.language-switcher > span {
    margin-right: 0.35rem;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.language-switcher a {
    padding: 0.42rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.73rem;
    font-weight: 720;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
    border-color: rgba(243, 170, 51, 0.32);
    color: var(--accent-light);
    background: var(--accent-soft);
}

.article-actions {
    display: flex;
    gap: 0.55rem;
}

.appreciate-button,
.copy-link {
    min-height: 2.75rem;
    padding: 0.55rem 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 740;
}

.appreciate-button svg {
    width: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.appreciate-button strong {
    min-width: 1.45rem;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.65rem;
}

.appreciate-button:hover,
.copy-link:hover,
.appreciate-button[aria-pressed="true"] {
    border-color: rgba(243, 170, 51, 0.42);
    color: var(--accent-light);
    background: var(--accent-soft);
}

.appreciate-button[aria-pressed="true"] svg {
    fill: var(--accent);
}

.appreciate-button.request-failed {
    border-color: rgba(255, 154, 145, 0.5);
    color: #ffb0aa;
}

.reading-layout {
    max-width: 1080px;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(5rem, 10vw, 9rem);
    display: grid;
    grid-template-columns: minmax(11rem, 0.28fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.reading-layout.without-toc {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

.article-toc {
    position: sticky;
    top: 9rem;
}

.article-toc nav {
    display: grid;
    border-top: 1px solid var(--border);
}

.article-toc nav a {
    padding: 0.6rem 0.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.35;
}

.article-toc nav a:hover {
    padding-left: 0.55rem;
    color: var(--accent-light);
    background: linear-gradient(90deg, var(--accent-soft), transparent);
}

.article-toc nav a.subheading-link {
    padding-left: 0.9rem;
    font-size: 0.69rem;
}

.reading-progress {
    height: 0.18rem;
    margin: 1rem 0 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.reading-progress span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--accent);
    transition: width 100ms linear;
}

.article-content {
    min-width: 0;
    color: #d7dce0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.04rem, 1.55vw, 1.16rem);
    line-height: 1.9;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content figure {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    scroll-margin-top: 9rem;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.035em;
}

.article-content h2 {
    margin: 3.2rem 0 1rem;
    font-size: clamp(1.8rem, 3.7vw, 2.8rem);
    line-height: 1.12;
}

.article-content h3 {
    margin: 2.3rem 0 0.85rem;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.2;
}

.article-content h4 {
    margin: 2rem 0 0.7rem;
    font-size: 1.15rem;
}

.article-content a {
    color: var(--accent-light);
    overflow-wrap: anywhere;
}

.article-content strong {
    color: var(--text);
}

.article-content ul,
.article-content ol {
    padding-left: 1.4rem;
}

.article-content li + li {
    margin-top: 0.45rem;
}

.article-content blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.6rem 1.7rem 1.6rem 2rem;
    border-left: 3px solid var(--accent);
    color: var(--text);
    background: linear-gradient(90deg, var(--accent-soft), transparent);
    font-size: 1.2em;
    font-style: italic;
    line-height: 1.65;
}

.article-content img {
    width: 100%;
    height: auto;
    margin: 2.25rem 0;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.article-content figure img {
    margin-bottom: 0.6rem;
}

.article-content figcaption {
    color: var(--muted);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.72rem;
    text-align: center;
}

.article-content hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.article-share {
    padding: clamp(3rem, 7vw, 5.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.article-share h2,
.related-heading h2,
.conversation-heading h2 {
    font-size: clamp(2rem, 4.4vw, 4rem);
}

.article-share > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.article-share > div:last-child a {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 720;
}

.article-share > div:last-child a:hover {
    border-color: rgba(243, 170, 51, 0.4);
    color: var(--accent-light);
    background: var(--accent-soft);
}

.related-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.related-heading {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.related-heading > a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 750;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.related-grid article {
    min-width: 0;
}

.related-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: var(--surface);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.related-image:hover img {
    transform: scale(1.035);
}

.related-grid .story-meta {
    margin: 1rem 0 0.45rem;
}

.related-grid h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.22;
}

.related-grid h3 a {
    color: var(--text);
    text-decoration: none;
}

.related-grid h3 a:hover {
    color: var(--accent-light);
}

.conversation-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    border-top: 1px solid var(--border);
}

.conversation-heading {
    margin-bottom: 2.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
    align-items: end;
    gap: 3rem;
}

.conversation-heading > p {
    margin-bottom: 0.35rem;
    color: var(--muted);
}

.comment-feedback {
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    font-size: 0.83rem;
}

.comment-feedback.success {
    border-color: rgba(127, 202, 162, 0.42);
    color: #a9dfc3;
    background: rgba(127, 202, 162, 0.08);
}

.comment-feedback.error {
    border-color: rgba(255, 154, 145, 0.45);
    color: #ffb7b0;
    background: rgba(255, 154, 145, 0.08);
}

.conversation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.44fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 5rem);
}

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

.comment {
    margin-left: calc(min(var(--comment-depth), 4) * 1.35rem);
    padding: 1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: var(--surface);
}

.comment-avatar {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #17100a;
    background: var(--accent);
    font-size: 0.76rem;
    font-weight: 820;
}

.comment-body {
    min-width: 0;
}

.comment-body header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.comment-body header strong {
    font-size: 0.8rem;
}

.comment-body time {
    color: var(--muted);
    font-size: 0.63rem;
}

.comment-body p {
    margin: 0.55rem 0 0.6rem;
    color: #d7dce0;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
}

.comment-reply {
    padding: 0;
    border: 0;
    color: var(--accent-light);
    background: transparent;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 750;
}

.no-comments {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: var(--surface);
}

.no-comments p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.comment-form-panel {
    position: sticky;
    top: 9rem;
    padding: 1.35rem;
    border: 1px solid rgba(243, 170, 51, 0.25);
    border-radius: 0.8rem;
    background:
        linear-gradient(145deg, rgba(243, 170, 51, 0.07), transparent 48%),
        var(--surface);
}

.comment-form-panel h3 {
    margin: 0;
    font-size: 1.45rem;
}

.comment-form-panel > div > p:last-child {
    margin: 0.45rem 0 1.2rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.comment-form-panel > div > p strong {
    color: var(--text);
}

.comment-form-panel form {
    display: grid;
    gap: 0.55rem;
}

.comment-form-panel label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 790;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comment-form-panel textarea {
    width: 100%;
    padding: 0.8rem;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.55;
}

.comment-form-panel textarea:focus {
    border-color: rgba(243, 170, 51, 0.55);
    outline: 3px solid rgba(243, 170, 51, 0.14);
}

.reply-context {
    padding: 0.5rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0.45rem;
    color: var(--muted);
    background: var(--accent-soft);
    font-size: 0.7rem;
}

.reply-context button {
    padding: 0;
    border: 0;
    color: var(--accent-light);
    background: transparent;
    cursor: pointer;
    font-size: inherit;
}

.comment-form-footer {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.comment-form-footer > span {
    color: var(--muted);
    font-size: 0.66rem;
}

.comment-form-footer button {
    min-height: 2.75rem;
    padding: 0.6rem 0.8rem;
    border: 0;
    border-radius: 0.55rem;
    color: #17100a;
    background: var(--accent);
    cursor: pointer;
    font-weight: 780;
}

.comment-form-footer button:hover {
    background: var(--accent-light);
}

@media (max-width: 1000px) {
    .article-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 1.1fr);
        gap: 3rem;
    }

    .article-cover {
        min-height: 29rem;
    }

    .reading-layout {
        grid-template-columns: minmax(10rem, 0.25fr) minmax(0, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 800px) {
    .article-hero,
    .article-share,
    .conversation-heading,
    .conversation-layout {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2rem;
    }

    .article-heading {
        max-width: 44rem;
    }

    .article-cover {
        min-height: min(34rem, 76vw);
    }

    .reading-layout {
        grid-template-columns: 1fr;
        max-width: 780px;
    }

    .article-toc,
    .comment-form-panel {
        position: static;
    }

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

    .article-share > div:last-child {
        justify-content: flex-start;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .article-page .section-nav-shell > div {
        width: auto;
    }

    .article-back {
        font-size: 0.72rem !important;
    }

    .article-heading h1 {
        font-size: clamp(2.7rem, 14vw, 4.3rem);
    }

    .article-cover {
        min-height: 19rem;
        border-radius: 0.7rem 2rem 0.7rem 0.7rem;
    }

    .article-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .article-actions {
        width: 100%;
    }

    .article-actions button {
        flex: 1;
    }

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

    .article-share {
        padding-right: 0;
        padding-left: 0;
    }

    .related-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .comment {
        margin-left: calc(min(var(--comment-depth), 2) * 0.65rem);
        grid-template-columns: 1fr;
    }

    .comment-body header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
    }
}
