@font-face {
    font-family: 'Prompt';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('../fonts/prompt-thai-400-normal.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Prompt';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('../fonts/prompt-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Prompt';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('../fonts/prompt-thai-500-normal.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Prompt';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('../fonts/prompt-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Prompt';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('../fonts/prompt-thai-600-normal.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Prompt';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('../fonts/prompt-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Prompt';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('../fonts/prompt-thai-700-normal.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Prompt';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('../fonts/prompt-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --color-bg: #08090b;
    --color-bg-secondary: #101115;
    --color-bg-card: #17191e;
    --color-bg-elevated: #202126;
    --color-heading: #f5f6f8;
    --color-text: #f5f6f8;
    --color-text-secondary: #c9ced6;
    --color-text-tertiary: #a2a9b3;
    --color-border: #303138;
    --color-border-light: #24252b;
    --color-accent: #22c997;
    --color-accent-hover: #9be6c7;
    --color-accent-text: #04140d;
    --section-heading: var(--color-heading);
    --font-sans: Prompt, var(--gh-font-body, system-ui), sans-serif;
    --font-serif: Prompt, var(--gh-font-heading, system-ui), sans-serif;
    --radius-md: 10px;
    --radius-lg: 16px;
    --container-max: 1320px;
}

[data-theme="light"] {
    --color-bg: #eef2f6;
    --color-bg-secondary: #fff;
    --color-bg-card: #fff;
    --color-bg-elevated: #f7f8fa;
    --color-heading: #0b1220;
    --color-text: #0b1220;
    --color-text-secondary: #3b4452;
    --color-text-tertiary: #5c6573;
    --color-border: #bdc6d1;
    --color-border-light: #d0d8e1;
    --color-accent: #00a06a;
    --color-accent-hover: #08754f;
    --color-accent-text: white;
    --section-heading: #0b8a5f;
}

.gh-head {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border-light)
}

.gh-head-inner {
    min-height: 64px;
    height: auto;
    justify-content: space-between
}

.gh-head-logo img {
    max-width: 150px;
    max-height: 24px;
    object-fit: contain
}

.gh-head-logo-text {
    color: var(--color-heading);
    font: 700 24px var(--font-sans)
}

.gh-head-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.lang-sheet-header { display: none }

#language-menu { margin: 0; padding: 0; list-style: none }

.edition-subscribe,
.edition-account,
.gh-head .gh-icon-btn,
.lang-switcher-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--color-bg-elevated);
    color: var(--color-heading);
}

.edition-subscribe,
.edition-subscribe:hover {
    background: var(--color-accent);
    color: var(--color-accent-text)
}

.edition-account {
    color: var(--color-accent)
}

.gh-foot,
.gh-foot-bottom,
.gh-foot-newsletter {
    background: var(--color-bg-secondary)
}

.gh-foot-bottom-inner {
    border-top: 1px solid var(--color-border-light)
}

.gh-btn-primary {
    background: var(--color-accent);
    color: var(--color-accent-text)
}

.gh-subscribe-input {
    background: var(--color-bg-secondary);
    color: var(--color-heading);
    min-width: 0
}

.form-success,
.form-error {
    display: none
}

.success .form-success,
.error .form-error {
    display: block
}

.gh-subscribe-form.success> :is(input, button) {
    display: none
}

.top-stories {
    display: grid;
    grid-template-columns: minmax(0, 800fr) minmax(0, 396fr);
    gap: 28px;
    padding-block: 20px 32px
}

.featured-hero {
    padding: 0;
    border: 0;
    background: transparent
}

.featured-hero .featured-hero-inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: auto;
    min-height: 340px;
    aspect-ratio: 1.6;
    border-radius: 16px;
    padding: 32px;
    background: #1b2323;
}

.featured-hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: -2;
    aspect-ratio: auto;
    border-radius: 0
}

.featured-hero-image-wrap a {
    display: block;
    height: 100%
}

.featured-hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, #08090bf2, transparent 85%);
    pointer-events: none
}

.featured-hero-content {
    width: 100%;
    padding: 0
}

.featured-hero-title {
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.22
}

.featured-hero-title-link,
.featured-hero-author,
.featured-hero-title-link:hover {
    color: white
}

.featured-hero-excerpt,
.featured-hero-meta,
.featured-hero-meta :is(span, time) {
    color: #e0e0e4
}

.featured-hero-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0
}

.featured-hero-author-image {
    width: 20px;
    height: 20px
}

.featured-hero-meta {
    flex-wrap: wrap;
    gap: 6px
}

.edition-trending h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-bottom: 8px;
    font: 600 22px/30px var(--font-sans);
}

.edition-trending h2 .edition-icon {
    width: 22px;
    height: 22px;
}

.trending-candidate {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
    align-items: flex-start
}

.sidebar-trending:not(:has(.trending-candidate:not([style*="display:none"]):not([style*="display: none"]))) .trending-candidate:nth-child(-n+5) {
    display: flex !important;
}

/* Ranked stories are appended last. Before ranking, only the first five are shown. */
.trending-candidate:last-child,
.sidebar-trending:not(:has(.trending-candidate:not([style*="display:none"]):not([style*="display: none"]))) .trending-candidate:nth-child(5) {
    border-bottom: 0;
}

.trending-candidate a {
    color: var(--color-heading);
    font: 500 14px/21px var(--font-sans);
}

.trending-candidate > div { min-width: 0; flex: 1; }

.trending-candidate time {
    margin-top: 4px;
    display: block;
    color: var(--color-text-tertiary);
    font: 400 12px/16px var(--font-sans);
}

.edition-trending .sidebar-post-number {
    flex: 0 0 24px;
    text-align: start;
    color: var(--color-accent);
    font: 600 28px/32px var(--font-sans);
}

.gh-league-sections {
    display: grid;
    gap: 32px;
    padding-block: 0
}

.edition-latest {
    padding-block: 32px
}

.edition-league {
    min-width: 0
}

.edition-league:not(:has(.post-card)) {
    display: none
}

.edition-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 6px 8px 6px 6px;
    border-radius: 10px;
    background: rgb(34 201 151 / 14%);
    gap: 8px
}

[data-theme="light"] .edition-heading {
    background: #fff;
}

.edition-heading h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    line-height: 30px;
    margin: 0
}

.edition-heading img {
    width: 32px;
    height: 32px;
    flex: none;
    object-fit: contain;
    border-radius: 8px;
    background: white
}

.edition-heading a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding-inline: 12px;
    border-radius: 8px;
    font: 500 13px/18px var(--font-sans);
    white-space: nowrap
}

.edition-heading a .edition-icon {
    width: 16px;
    height: 16px;
    transform: rotate(180deg)
}

.edition-league-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px
}

.edition-league-grid .league-post--featured {
    grid-column: 1;
    grid-row: 1 / span 3
}

.edition-league:nth-child(even) .edition-league-grid {
    grid-template-columns: 1fr 1fr 2fr
}

.edition-league:nth-child(even) .league-post--featured {
    grid-column: 3
}

.post-card,
.post-card:hover {
    background: var(--color-bg-card);
    border: 0;
    box-shadow: none;
    transform: none
}

.post-card-image-link {
    border-radius: 12px;
    aspect-ratio: 2 / 1
}

.post-card-content {
    padding: 12px;
    gap: 6px
}

.post-card-title {
    font-size: 18px;
    line-height: 1.4
}

.post-card-tag,
.gh-article-tag,
.gh-archive-type-label {
    text-transform: none;
    letter-spacing: normal
}

.post-card-meta {
    border: 0;
    padding: 0;
    margin: 0
}

.league-post--small .post-card,
.latest-list .post-card {
    display: grid;
    grid-template-columns: minmax(68px, 36%) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    height: 100%;
}

.league-post--small .post-card-image-link,
.latest-list .post-card-image-link {
    aspect-ratio: 1.5;
    border-radius: 8px
}

.league-post--small .post-card-content,
.latest-list .post-card-content {
    padding: 8px
}

.league-post--small .post-card-title {
    font-size: 14px
}

.league-post--small .post-card-views {
    display: none
}

.post-card:not(.has-image) .post-card-content {
    grid-column: 1 / -1
}

.latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(34%, 336px);
    align-items: start;
    gap: 40px
}

.latest-feed > h2,
.gh-error-posts>h2,
.gh-related-posts>h3 {
    margin-bottom: 20px
}

.latest-list .post-card {
    padding: 10px;
    grid-template-columns: 30% minmax(0, 1fr)
}

.newsletter-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--color-bg-card)
}

.newsletter-card p,
.newsletter-popup p {
    margin: 8px 0 16px;
    color: var(--color-text-secondary)
}

.newsletter-card .gh-subscribe-form,
.newsletter-popup .gh-subscribe-form {
    flex-direction: column;
    align-items: stretch
}

.pagination.tag-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    font-family: Prompt, system-ui, sans-serif;
}
.tag-pagination .pagination-btn {
    gap: 12px;
    padding: 10px clamp(10px, 4vw, 20px);
    border: 0;
    background: var(--color-bg-card);
    color: var(--color-heading);
    font: 500 16px/24px Prompt, system-ui, sans-serif;
}
.tag-pagination .pagination-btn:disabled { opacity: .4; cursor: default; }
.tag-pagination .pagination-btn:is(a):hover { color: var(--color-accent); }
.tag-pagination .tag-newer { justify-self: start; }
.tag-pagination .tag-older { justify-self: end; }
.tag-newer::before, .tag-older::after {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
}
.tag-newer::before { transform: rotate(-135deg); }
.tag-older::after { transform: rotate(45deg); }

.latest-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.latest-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: var(--color-bg-card);
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 500;
}

.latest-more a:hover,
.latest-more a:focus-visible {
    border-color: var(--color-accent);
}

.pagination {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center
}

.gh-archive-header {
    background: transparent;
    border: 0;
    padding-block: 40px 24px
}

.gh-archive-layout {
    display: block
}

.gh-archive-page .post-grid>.post-card:first-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 35% 1fr;
    align-items: center;
    gap: 28px;
    padding-bottom: 28px
}

.gh-archive-page .post-grid>.post-card:first-child .post-card-image-link {
    aspect-ratio: 1.6
}

.gh-error-code {
    color: var(--color-accent);
    font-size: clamp(96px, 12vw, 160px)
}

.gh-section-title {
    font-size: 26px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-heading)
}

.gh-section-title::before {
    display: none
}

.gh-error-posts {
    border-top: 1px solid var(--color-border);
    padding-top: 32px
}

.gh-article {
    padding-top: 0
}

.article-lead {
    position: relative;
    padding-block: 40px
}

.article-lead.with-photo {
    margin-inline: calc(50% - 50vw);
    display: grid;
    isolation: isolate;
    align-items: end;
    min-height: clamp(360px, 36vw, 600px)
}

.article-lead .gh-article-header {
    width: 100%;
    max-width: var(--container-max);
    padding-inline: 32px;
    margin: 0 auto
}

.article-lead.with-photo .gh-article-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: 0
}

.article-lead .gh-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0
}

.article-lead.with-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, #08090bd9, transparent 80%)
}

.article-lead .gh-article-image {
    z-index: -2 !important
}

.article-lead .gh-article-title {
    max-width: 850px
}

.article-lead.with-photo .gh-article-header :is(h1, p, span, time) {
    color: #fff
}

.gh-article-image-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #111a;
    color: white
}

.article-reading {
    max-width: 1000px;
    margin: 40px auto;
    position: relative
}

.article-reading .gh-article-share {
    position: absolute;
    left: 0;
    top: 0;
    flex-direction: column;
    align-items: start
}

.gh-article-body {
    font-family: var(--font-sans);
    margin-inline: auto;
    width: min(100%, 720px)
}

.gh-article-footer {
    max-width: 1000px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-inline: auto
}

.gh-article-footer .gh-author-card {
    flex: 1 1 320px;
    background: var(--color-bg-card);
    margin: 0
}

.gh-related-posts {
    max-width: 1000px;
    margin-inline: auto
}

.gh-related-posts .post-card.has-image {
    position: relative;
    isolation: isolate;
    justify-content: end;
    min-height: 224px;
    border-radius: 12px;
    background: #16171a
}

.gh-related-posts .has-image .post-card-image-link {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: -1
}

.gh-related-posts .has-image .post-card-content {
    flex: none;
    padding: 20px;
    background: linear-gradient(transparent, #08090bf2)
}

.gh-related-posts .has-image .post-card-title-link,
.gh-related-posts .has-image .post-card-meta * {
    color: white
}

.gh-related-posts .post-card-excerpt {
    display: none
}

@media(max-width:1000px) {
    .article-reading .gh-article-share {
        position: static;
        flex-direction: row;
        margin-bottom: 20px
    }
}

@media(max-width:767px) {
    .gh-head-inner {
        min-height: 56px;
        padding-inline: 16px 12px
    }

    .gh-head-logo img,
    .gh-head-logo .edition-wordmark {
        width: 130.9px;
        height: 21px;
    }

    .gh-head-logo-text {
        font-size: 18px
    }

    .gh-head-actions {
        gap: 6px
    }

    .edition-subscribe,
    .edition-account,
    .gh-head .gh-icon-btn,
    .lang-switcher-button {
        height: 36px;
        padding: 0 8px;
        font-size: 13px
    }

    #lang-current-label {
        display: none
    }

    .lang-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-inline-start: var(--space-4);
        color: var(--color-heading);
    }

    .lang-sheet-close {
        width: 44px;
        height: 44px;
        background: transparent;
        color: inherit;
        border: 0;
        font-size: 24px;
        cursor: pointer;
    }

    .nav-lang-switcher.open .lang-switcher-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 20px;
        border-radius: 20px 20px 0 0;
        background: var(--color-bg-card);
        box-shadow: 0 0 0 100vmax #08090ba8
    }

    .top-stories,
    .latest-layout {
        grid-template-columns: 1fr
    }

    .top-stories {
        padding-top: 0
    }

    .featured-hero {
        margin-inline: -16px
    }

    .featured-hero .featured-hero-inner {
        min-height: 380px;
        border-radius: 0;
        padding: 20px 16px;
        aspect-ratio: 4/5
    }

    .edition-league-grid,
    .edition-league:nth-child(even) .edition-league-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto
    }

    .edition-league-grid .league-post--featured,
    .edition-league:nth-child(even) .league-post--featured {
        grid-area: auto;
        min-height: 220px
    }

    .league-post--small .post-card,
    .latest-list .post-card {
        grid-template-columns: 30% minmax(0, 1fr)
    }

    .article-lead,
    .article-lead.with-photo {
        margin: 0;
        padding: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch
    }

    .article-lead .gh-article-header {
        padding: 20px 0
    }

    .article-lead.with-photo .gh-article-image {
        position: relative;
        z-index: auto !important;
        inset: auto;
        aspect-ratio: 1.6;
        margin-inline: -16px
    }

    .article-lead.with-photo::before {
        display: none
    }

    .article-lead.with-photo .gh-article-header :is(h1, p, span, time) {
        color: inherit
    }

    .article-reading {
        margin: 8px auto 32px
    }

    .gh-archive-page .post-grid,
    .gh-related-posts .post-grid {
        grid-template-columns: 1fr
    }

    .gh-archive-page .post-grid>.post-card:first-child {
        display: flex;
        align-items: stretch;
        gap: 4px
    }

    .gh-archive-page .post-card:not(:first-child),
    .gh-related-posts .post-card.has-image {
        display: grid;
        grid-template-columns: 30% 1fr;
        gap: 12px;
        align-items: center;
        min-height: 0;
        background: var(--color-bg-card)
    }

    .gh-related-posts .has-image .post-card-image-link {
        position: static;
        z-index: auto;
        aspect-ratio: 1.5;
        height: auto
    }

    .gh-related-posts .has-image .post-card-content,
    .gh-archive-page .post-card:not(:first-child) .post-card-content {
        background: transparent;
        padding: 0
    }

    .gh-related-posts .has-image .post-card-title-link,
    .gh-related-posts .has-image .post-card-meta * {
        color: inherit
    }

    .gh-archive-page .post-card:not(:first-child) .post-card-excerpt,
    .latest-list .post-card-excerpt {
        display: none
    }
}

.member-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(440px, calc(100% - 32px));
    max-height: 90dvh;
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    color: var(--color-text);
    background: var(--color-bg-card);
    box-shadow: 0 24px 72px #0005;
}

.member-dialog::backdrop {
    background: #08090bbc
}

.member-dialog h2 {
    font-size: 22px;
    padding-right: 30px;
    margin-bottom: 16px
}

.dialog-close,
.dialog-back {
    border-radius: 8px;
    background: var(--color-bg-elevated);
    width: 32px;
    height: 32px
}

.dialog-close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 22px;
    line-height: 1
}

.dialog-back {
    float: left;
    margin-right: 10px
}

.member-dialog form,
.member-dialog label {
    display: grid;
    gap: 8px
}

.member-dialog form {
    gap: 14px
}

.member-dialog label {
    font-size: 14px
}

.member-dialog input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--color-bg-secondary);
    color: var(--color-text)
}

.member-dialog p {
    margin: 12px 0;
    color: var(--color-text-secondary)
}

.member-dialog .gh-btn {
    width: 100%;
    border-radius: 9px;
    min-height: 42px
}

.member-dialog p button,
.dialog-link,
.account-row button {
    color: var(--color-accent)
}

.account-row,
.dialog-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--color-bg-elevated);
    border-radius: 8px
}

.account-row span {
    overflow-wrap: anywhere
}

.dialog-link {
    display: block;
    margin: 12px auto
}

.gh-foot-bottom nav ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center
}

.gh-foot-bottom nav a {
    color: var(--color-text-secondary)
}

@media (max-width:600px) {
    .member-dialog {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        border-radius: 20px 20px 0 0;
        padding-bottom: max(24px, env(safe-area-inset-bottom))
    }
}

.member-dialog input[role="switch"] {
    appearance: none;
    width: 44px;
    height: 25px;
    padding: 3px;
    cursor: pointer;
    border-radius: 20px;
    background: var(--color-border);
    display: flex;
    align-items: center
}

.member-dialog input[role="switch"]::before {
    content: "";
    display: block;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: white
}

.member-dialog input[role="switch"]:checked {
    background: var(--color-accent)
}

.member-dialog input[role="switch"]:checked::before {
    margin-left: auto
}

.featured-hero-tag {
    color: #8be9bd;
    text-transform: none
}

.league-post--featured .post-card-title {
    font-size: clamp(18px, 2vw, 28px)
}

.edition-wordmark {
    width: 150px;
    height: auto;
    display: block;
    color: var(--color-heading);
    --wordmark-accent: #fde60c
}

[data-theme="light"] .edition-wordmark {
    --wordmark-accent: var(--color-accent)
}


@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important
    }
}

.latest-sidebar {
    display: grid;
    gap: 28px;
}

.home-tags {
    --tag-fill: rgb(255 255 255 / 6%);
    --tag-stroke: rgb(255 255 255 / 12%);
    padding: 16px;
    border: 1px solid var(--tag-panel-stroke, var(--tag-stroke));
    border-radius: 16px;
    background: var(--tag-fill);
}

[data-theme="light"] .home-tags {
    --tag-fill: #fff;
    --tag-stroke: rgb(14 26 43 / 9%);
    --tag-panel-stroke: #fff;
}

.home-tags h3 {
    margin: 0;
    font: 600 16px/22px Prompt, sans-serif;
    letter-spacing: -.2px;
}

.home-tags .sidebar-tag-cloud {
    gap: 8px;
    margin-top: 12px;
}

.home-tags .sidebar-tag-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding-inline: 12px;
    border: 1px solid var(--tag-stroke);
    border-radius: 8px;
    background: var(--tag-fill);
    font: 500 13px/18px Prompt, sans-serif;
}

.home-tags .sidebar-tag-link:is(:hover, :focus-visible) {
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.latest-list .post-card:first-child {
    grid-template-columns: 48% 1fr
}

.latest-list .post-card:first-child .post-card-title {
    font-size: 22px
}

.edition-league-grid .league-post--featured {
    min-width: 0;
    align-self: stretch
}

.featured-hero-title,
.gh-article-title,
.post-card-title,
.edition-heading h2 {
    font-weight: 600
}

@media(max-width:767px) {
    .featured-hero .featured-hero-inner {
        min-height: 460px;
        aspect-ratio: auto
    }

    .featured-hero-title {
        font-size: 28px;
        line-height: 38px
    }

    .featured-hero-title-link {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

    .featured-hero-excerpt {
        font-size: 14px;
        line-height: 20px;
        -webkit-line-clamp: 3
    }

    .edition-league-grid,
    .edition-league:nth-child(even) .edition-league-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        padding-bottom: 6px;
    }

    .edition-league-grid>div {
        flex: 0 0 160px;
        scroll-snap-align: start
    }

    .edition-league-grid .league-post--featured {
        flex-basis: min(300px, 86%);
        height: 210px;
        min-height: 0
    }

    .edition-league-grid .league-post--featured .post-card {
        min-height: 0
    }

    .edition-league-grid .league-post--small .post-card {
        display: flex;
        align-items: stretch;
        gap: 8px
    }

    .gh-league-sections {
        gap: 24px
    }

    .latest-list .post-card {
        height: auto;
        padding: 12px;
        gap: 12px;
        grid-template-columns: min(120px, 38%) minmax(0, 1fr);
        border-radius: 12px;
    }

    .latest-list .post-card-content { min-width: 0; padding: 0; }
    .latest-list .post-card-title-link,
    .latest-list .post-card-excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .latest-list .post-card:not(:first-child) .post-card-title { font-size: 16px; }
    .latest-list .post-card:not(:first-child) :is(.post-card-author, .post-card-views, .post-card-excerpt) { display: none; }
    .latest-list .post-card:first-child {
        display: flex;
        align-items: stretch;
        gap: 12px;
    }
    .latest-list .post-card:first-child .post-card-image-link { aspect-ratio: 16 / 9; }

}

.edition-symbols {
    position: absolute;
    overflow: hidden
}

.edition-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: -.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

.edition-trending .edition-icon,
.member-dialog h2 .edition-icon {
    color: var(--color-accent)
}

.member-dialog h2 .edition-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 8px;
    background: var(--color-bg-elevated);
    vertical-align: middle
}

.featured-hero-meta .edition-icon {
    width: 14px;
    height: 14px
}

.featured-hero-meta {
    font-size: 12px
}

html[data-theme="light"] .gh-head-logo img[src$="/askmenews@2x.png"] {
    content: url("../images/askmenews-light.svg");
    filter: none;
}

.gh-foot {
    font-family: Prompt, system-ui, sans-serif;
    border-top: 1px solid var(--color-border-light);
}
.gh-foot-newsletter {
    border: 0;
    padding-block: 28px 24px;
}
.gh-foot-newsletter-inner {
    min-height: 90px;
    gap: 24px;
}
.gh-foot-newsletter-title {
    font: 600 16px/24px Prompt, system-ui, sans-serif;
    margin: 0 0 4px;
}
.gh-foot-newsletter-desc {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}
.gh-foot-newsletter-form { max-width: 450px; }
.foot-email-field {
    flex: 1;
    min-width: 0;
    position: relative;
}
.foot-email-field .edition-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    pointer-events: none;
    width: 18px;
    height: 18px;
}
.foot-email-field .gh-subscribe-input {
    padding-inline-start: 41px;
    height: 44px;
    font: inherit;
    font-size: 14px;
    background: var(--color-bg-card);
}
.gh-foot .gh-btn {
    border-radius: 8px;
    font: 500 14px/20px Prompt, system-ui, sans-serif;
}
.gh-foot .success > .foot-email-field { display: none; }
.gh-foot-bottom { border: 0; padding: 0 0 24px; }
.gh-foot-bottom-inner { padding-top: 8px; }
.gh-foot-bottom-inner p { margin: 0; font-size: 12px; line-height: 16px; }
@media (max-width: 767px) {
    .gh-foot-newsletter { padding-block: 20px 16px; }
    .gh-foot-newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        border: 1px solid var(--color-border-light);
        border-radius: 16px;
        background: var(--color-bg-card);
    }
    .gh-foot-newsletter-text,
    .gh-foot-newsletter-form { min-width: 0; max-width: none; flex: auto; }
    .gh-foot-newsletter-form .gh-subscribe-form { gap: 12px; }
    .gh-foot-newsletter-form .gh-btn { min-height: 40px; padding-block: 8px; }
    .gh-foot-bottom { padding-bottom: 16px; }
    .gh-foot-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-top: 12px;
    }
}

.article-author-initial {
    display: inline-grid;
    place-items: center;
    flex: none;
    inline-size: 32px;
    block-size: 32px;
    border-radius: 50%;
    background: var(--color-bg-elevated);
    background: color-mix(in srgb, var(--color-accent) 14%, var(--color-bg-card));
    font: 600 14px/1 Prompt, sans-serif;
}
.article-lead .gh-article-header .gh-article-author .article-author-initial,
.gh-author-card .article-author-initial { color: var(--color-accent); }
.article-meta-item, .article-reading .gh-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-meta-item .edition-icon { width: 14px; height: 14px; }
.article-reading .gh-share-btn {
    justify-content: center;
    border-radius: 8px;
    background: var(--color-bg-card);
    color: var(--color-heading);
}
@media (min-width: 1001px) {
    .article-reading .gh-share-btn { width: 40px; height: 40px; padding: 0; }
    .article-reading .gh-share-btn span { display: none; }
}
@media (max-width: 767px) {

    .article-lead .gh-article-meta { border: 0; padding-block: 8px; gap: 8px; }
    .article-lead .gh-article-meta-right { gap: 12px; }
}

/* Article end matter */
.gh-article:has(.gh-article-footer) { padding-bottom: 0; }
.gh-article-footer {
    gap: 16px;
    padding-top: 0;
    border: 0;
    font-family: Prompt, system-ui, sans-serif;
}
.gh-article-footer .gh-author-card {
    align-items: center;
    padding: 20px;
    gap: 16px;
    border-radius: 16px;
}
.gh-author-card :is(.article-author-initial, .gh-author-card-image) {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.gh-author-card-label { text-transform: none; letter-spacing: normal; margin: 0; }
.gh-author-card-name { font: 600 18px/26px Prompt, sans-serif; margin: 0; }
.gh-article-footer .newsletter-card {
    width: min(100%, 400px);
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--color-border);
}
.gh-article-footer .newsletter-card h3 { font: 600 18px/24px Prompt, sans-serif; margin: 0; }
.gh-article-footer .newsletter-card p { margin: 0; font: 400 14px/20px Prompt, sans-serif; }
.gh-article-footer .foot-email-field input { width: 100%; background: var(--color-bg); }
.gh-article-footer .gh-btn { border-radius: 8px; font-family: inherit; }
.gh-article-footer .success > .foot-email-field { display: none; }
.gh-related-posts {
    margin-block: 0;
    padding-block: 40px 52px;
    border: 0;
    font-family: Prompt, system-ui, sans-serif;
}
.gh-related-posts > .gh-section-title { margin: 0 0 16px; font: 600 24px/38px Prompt, sans-serif; }
.gh-related-posts .post-grid { gap: 20px; }
.gh-related-posts .post-card-title-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-family: Prompt, system-ui, sans-serif;
}
.post-card-meta-inner { gap: 12px; }
.post-card-meta .edition-icon { width: 14px; height: 14px; flex: none; }
.post-card-author, .post-card-views { align-items: center; gap: 4px; }
.post-card-views { display: inline-flex; color: var(--color-text-secondary); }
.post-card-author-name { font-weight: 400; }

@media (min-width: 768px) {
    .article-lead .gh-article-meta {
        border-block: 0;
        justify-content: flex-start;
        align-items: center;
    }
    .gh-related-posts .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gh-related-posts .post-card { min-height: 240px; }
    .gh-related-posts .post-card.has-image { min-height: 240px; }
    .gh-related-posts .has-image .post-card-tag { color: #71d4ab; }
    .gh-related-posts .post-card-title-link { font-size: 20px; line-height: 1.4; }
}
@media (max-width: 767px) {
    .gh-article-footer { flex-direction: column; align-items: stretch; gap: 12px; }
    .gh-article-footer .gh-author-card { flex: none; flex-direction: row; text-align: start; }
    .gh-article-footer .newsletter-card { width: 100%; }
    .gh-related-posts { padding-block: 32px; }
    .gh-related-posts .post-card-meta :is(.post-card-author, .post-card-views) { display: none; }
}

#subscribe-banner {
    position: fixed;
    inset: auto 0 0;
    z-index: 190;
    background: var(--color-bg-card);
    background: color-mix(in srgb, var(--color-bg-card) 95%, transparent);
    border-top: 1px solid var(--color-border);
    font: 400 14px/1.4 Prompt, system-ui, sans-serif;
    transform: translateY(100%);
    transition: transform .3s ease;
}
#subscribe-banner.at-footer { display: none; }
.subscribe-banner-inner {
    max-width: 1320px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
}
.subscribe-banner-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 40px;
    border-radius: 10px;
    color: var(--color-accent);
    background: color-mix(in srgb, currentColor 14%, transparent);
}
.subscribe-banner-copy { display: grid; flex: 1; }
.subscribe-banner-copy strong { color: var(--color-heading); font-weight: 500; }
.subscribe-banner-copy span { color: var(--color-text-secondary); font-size: 12px; }
.subscribe-banner-action {
    background: var(--color-accent);
    color: var(--color-accent-text);
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 500;
}
[data-theme="light"] #banner-dismiss { color: #6e7581; }
#banner-dismiss {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #a2a9b3;
    cursor: pointer;
}
@media (max-width: 767px) {
    .subscribe-banner-inner { padding: 10px 16px; gap: 8px; }
    .subscribe-banner-icon { display: none; }
}
.post-template .newsletter-popup {
    translate: 0 calc(0px - var(--subscribe-banner-height, 0px));
}

.newsletter-popup {
    background: var(--color-bg-card);
    font-family: Prompt, system-ui, sans-serif;
}
.newsletter-popup-inner { padding: 20px; }
.newsletter-popup-close { width: 44px; height: 44px; top: 8px; inset-inline-end: 8px; padding: 0; color: #a2a9b3; }
[data-theme="light"] .newsletter-popup-close { color: #6e7581; }
.newsletter-popup .newsletter-popup-title { margin: 0; font: 600 16px/24px Prompt, sans-serif; }
.newsletter-popup p { margin: 4px 0 14px; font-size: 14px; line-height: 1.5; }
.newsletter-popup .gh-subscribe-form { gap: 14px; }
.newsletter-popup .foot-email-field input { background: var(--color-bg-elevated); }
.newsletter-popup .gh-btn { border-radius: 10px; font-family: inherit; }
.newsletter-popup .success > .foot-email-field { display: none; }
.gh-portal-triggerbtn-iframe { display: none !important; }

/* Homepage subscription card */
body:has(.top-stories) .newsletter-popup {
    --popup-ink: #f5f6f8;
    --popup-muted: #a2a9b3;
    --popup-outline: rgb(255 255 255 / 12%);
    --popup-field: rgb(255 255 255 / 6%);
    --popup-action: #22c997;
    --popup-action-ink: #08090b;
    bottom: 28px;
    background: rgb(23 25 30 / 97%);
    border-color: var(--popup-outline);
    box-shadow: 0 12px 32px rgb(0 0 0 / 40%);
}
[data-theme="light"] body:has(.top-stories) .newsletter-popup {
    --popup-ink: var(--color-text);
    --popup-muted: var(--color-text-tertiary);
    --popup-outline: rgb(19 22 27 / 5%);
    --popup-field: rgb(255 255 255 / 88%);
    --popup-action: var(--color-accent);
    --popup-action-ink: white;
    background: rgb(255 255 255 / 94%);
}
body:has(.top-stories) .newsletter-popup .newsletter-popup-title {
    line-height: 22px;
    letter-spacing: -.2px;
    color: var(--popup-ink);
    padding-inline-end: 28px;
}
body:has(.top-stories) .newsletter-popup p {
    margin-inline-end: 28px;
    line-height: 20px;
    color: var(--popup-muted);
}
body:has(.top-stories) .newsletter-popup .gh-subscribe-input {
    background: var(--popup-field);
    border-color: var(--popup-outline);
    font: 400 14px/20px Prompt, sans-serif;
    padding-inline-start: 42px;
    color: var(--popup-ink);
}
body:has(.top-stories) .newsletter-popup .edition-icon { color: var(--popup-muted); }
body:has(.top-stories) .newsletter-popup .gh-subscribe-input::placeholder { color: var(--popup-muted); }
body:has(.top-stories) .newsletter-popup .gh-btn-primary {
    min-height: 40px;
    height: 40px;
    padding-block: 0;
    font: 500 14px/20px Prompt, sans-serif;
    background: var(--popup-action);
    color: var(--popup-action-ink);
}
@media (max-width: 767px) {
    body:has(.top-stories) .newsletter-popup {
        inset-inline: 16px;
        bottom: 20px;
        width: auto;
        max-width: none;
    }
}

.member-dialog.guest-dialog {
    --guest-action: #22c997;
    --guest-action-text: #08090b;
    --guest-muted: #a2a9b3;
    --guest-fill: rgb(255 255 255 / 6%);
    --guest-border: rgb(255 255 255 / 12%);
    box-sizing: border-box;
    padding: 20px 24px 24px;
    background: rgb(23 25 30 / 97%);
    border-color: var(--guest-border);
    color: #f5f6f8;
    box-shadow: 0 16px 48px rgb(0 0 0 / 45%);
    font-family: Prompt, system-ui, sans-serif;
}
[data-theme="light"] .guest-dialog {
    --guest-action: var(--color-accent);
    --guest-action-text: white;
    --guest-muted: var(--color-text-tertiary);
    --guest-fill: #fff;
    --guest-border: rgb(19 22 27 / 12%);
    color: var(--color-text);
    background: var(--color-bg-card);
}
.guest-dialog h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding-right: 36px;
    font: 600 20px/28px Prompt, system-ui, sans-serif;
}
.guest-dialog h2 .edition-icon {
    width: 36px;
    height: 36px;
    flex: none;
    padding: 8px;
    color: var(--guest-action);
    background: color-mix(in srgb, var(--guest-action) 12%, transparent);
    border-radius: 10px;
}
.guest-dialog .dialog-close {
    top: 22px;
    right: 24px;
    background: var(--guest-fill);
    color: var(--guest-muted);
    font: 22px/1 system-ui, sans-serif;
}
.guest-dialog form { gap: 16px; }
.guest-dialog label { gap: 6px; font-size: 13px; line-height: 18px; }
.guest-dialog input {
    height: 44px;
    border-radius: 10px;
    border-color: var(--guest-border);
    background: var(--guest-fill);
    color: inherit;
    font: inherit;
    font-size: 14px;
}
.guest-dialog input::placeholder { color: var(--guest-muted); }
.guest-email { position: relative; }
.guest-email .edition-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--guest-muted);
    pointer-events: none;
}
.guest-email input { padding-left: 40px; }
.guest-dialog .gh-btn {
    min-height: 44px;
    border-radius: 10px;
    background: var(--guest-action);
    color: var(--guest-action-text);
    font: 600 14px/20px Prompt, system-ui, sans-serif;
}
.guest-dialog p {
    margin: 16px 0 0;
    color: var(--guest-muted);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}
.guest-dialog p button { color: var(--guest-action); font: inherit; font-weight: 600; }
.guest-dialog [data-panel="sent"] p { margin: 0 0 16px; text-align: left; }
.guest-dialog .form-error:empty { display: none; }
@media (max-width: 600px) {
    .member-dialog.guest-dialog {
        padding: 12px 20px max(24px, env(safe-area-inset-bottom));
    }
    .guest-dialog::before {
        content: "";
        display: block;
        width: 36px;
        height: 4px;
        margin: 0 auto 12px;
        border-radius: 4px;
        background: var(--guest-border);
    }
    .guest-dialog .dialog-close { top: 30px; right: 20px; }
}
@media (max-width: 600px) {
    .guest-dialog [data-panel="signin"] form { gap: 14px; }
    .guest-dialog [data-panel="sent"] h2,
    .guest-dialog [data-panel="sent"] p { margin-bottom: 12px; }
}

.member-dialog:has(:is([data-panel="account"], [data-panel="help"]):not([hidden])) {
    --account-muted: #a2a9b3;
    --account-fill: rgb(255 255 255 / 6%);
    --account-stroke: rgb(255 255 255 / 12%);
    --account-accent: #70d5ad;
    padding: 20px 24px 24px;
    background: rgb(23 25 30 / 97%);
    border-color: var(--account-stroke);
    box-shadow: 0 20px 48px rgb(0 0 0 / 45%);
    font-family: Prompt, system-ui, sans-serif;
}
[data-theme="light"] .member-dialog:has(:is([data-panel="account"], [data-panel="help"]):not([hidden])) {
    --account-muted: var(--color-text-tertiary);
    --account-fill: rgb(19 22 27 / 4%);
    --account-stroke: rgb(19 22 27 / 12%);
    --account-accent: var(--section-heading);
    background: rgb(255 255 255 / 97%);
}
[data-panel="account"]:not([hidden]) { display: grid; gap: 16px; }
[data-panel="account"] h2 {
    display: flex; align-items: center; gap: 12px; margin: 0;
    font: 600 20px/28px Prompt, system-ui, sans-serif;
}
[data-panel="account"] h2 .edition-icon {
    width: 36px; height: 36px; padding: 8px;
    color: var(--account-accent); background: color-mix(in srgb, var(--account-accent) 12%, transparent);
}
.member-dialog:has(:is([data-panel="account"], [data-panel="help"]):not([hidden])) .dialog-close {
    top: 22px; right: 24px; color: var(--account-muted); font: 22px/1 system-ui;
}
.account-details { border: 1px solid var(--account-stroke); border-radius: 12px; background: var(--account-fill); }
.account-details .account-row {
    min-height: 66px; justify-content: flex-start; padding: 12px 16px;
    border-radius: 0; background: transparent; font-size: 14px;
}
.account-row + .account-row { border-top: 1px solid var(--account-stroke); }
.account-row > .edition-icon { color: var(--account-muted); width: 20px; height: 20px; flex: none; }
.account-detail { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.account-detail small { display: block; font-size: 12px; color: var(--account-muted); font-weight: 400; }
.account-detail .account-on, .account-detail .account-off { display: none; }
.account-row:has([data-loaded]:checked) .account-on,
.account-row:has([data-loaded]:not(:checked)) .account-off { display: block; }
.account-row input[role="switch"]:checked { background: var(--account-accent); }
[data-panel="account"] .dialog-link { margin: 0 auto; font-size: 13px; line-height: 15px; }
[data-panel="account"] .dialog-link, .account-row button, .account-row a { color: var(--account-accent); }
[data-panel="account"] .dialog-actions { padding: 0; background: none; }
.dialog-actions > * {
    flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 4px; border: 1px solid var(--account-stroke); border-radius: 10px;
    background: var(--account-fill); color: inherit; font: 500 14px/20px Prompt, system-ui, sans-serif;
}
.dialog-actions .edition-icon { width: 16px; height: 16px; }
@media (max-width:600px) {
    .member-dialog:has(:is([data-panel="account"], [data-panel="help"]):not([hidden])) {
        border-width: 1px 0 0; padding: 10px 20px max(24px, env(safe-area-inset-bottom));
    }
    :is([data-panel="account"], [data-panel="help"])::before {
        content: ""; display: block; width: 36px; height: 4px; margin: 0 auto;
        background: var(--account-stroke); border-radius: 4px;
    }
    .member-dialog:has(:is([data-panel="account"], [data-panel="help"]):not([hidden])) .dialog-close { top: 32px; right: 20px; }
}
.account-detail { line-height: 20px; }
.account-detail small { line-height: 18px; }

.member-dialog:has([data-panel="help"]:not([hidden])) { width: min(520px, calc(100% - 32px)); }
[data-panel="help"]:not([hidden]) { display: grid; gap: 12px; }
.help-header { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.help-header .dialog-back { flex: none; margin: 0; display: grid; place-items: center; }
.help-header .dialog-back svg { width: 16px; height: 16px; }
.help-header > .edition-icon {
    flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px;
    background: color-mix(in srgb, var(--account-accent) 12%, transparent); color: var(--account-accent);
}
.member-dialog .help-header h2 { padding: 0; margin: 0; font: 600 20px/28px Prompt, system-ui, sans-serif; }
.member-dialog [data-panel="help"] p { margin: 0; color: var(--account-muted); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.email-help { list-style: none; counter-reset: help-step; padding: 0; margin: 0; }
.email-help li {
    counter-increment: help-step; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
    padding: 14px 0; border-top: 1px solid var(--account-stroke); font-size: 14px; line-height: 20px;
}
.email-help li::before { content: counter(help-step, decimal-leading-zero); color: var(--account-accent); font-weight: 500; }
.email-help strong { font-weight: 500; }
.email-help p { grid-column: 2; }
.email-help a { color: inherit; }
.email-help a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    [data-panel="help"]:not([hidden]) { gap: 16px; }
    [data-panel="help"] .help-header { margin-bottom: -4px; }
    .member-dialog:has([data-panel="help"]:not([hidden])) { width: 100%; }
    .member-dialog:has([data-panel="help"]:not([hidden])) .dialog-close { top: 44px; }
}

.member-dialog:has([data-panel="help"]:not([hidden])) {
    --help-control-fill: rgb(255 255 255 / 6%);
    --help-control-ink: #c9ced6;
}
[data-theme="light"] .member-dialog:has([data-panel="help"]:not([hidden])) {
    --help-control-fill: rgb(255 255 255 / 88%);
    --help-control-ink: #49505b;
    background: rgb(255 255 255 / 94%);
    border-color: rgb(19 22 27 / 5%);
}
.member-dialog:has([data-panel="help"]:not([hidden])) :is(.dialog-back, .dialog-close) {
    background: var(--help-control-fill);
    color: var(--help-control-ink);
}

.guest-dialog[open] ~ .newsletter-popup,
[data-archive-edition][hidden] { display: none; }

.gh-author-header .gh-author-header-inner { align-items: center; gap: 12px; }
.gh-author-header .gh-author-name { margin: 0; }
.gh-author-header :is(.article-author-initial, .gh-author-avatar img) {
    width: 60px;
    height: 60px;
    font-size: 24px;
    color: var(--color-accent);
}
.gh-error-page { padding-block: 64px 48px; }
.gh-error-actions { margin-bottom: 48px; }
.gh-error-actions .gh-btn { min-height: 40px; padding: 8px 16px; border-radius: 8px; }

.latest-feed { min-width: 0; }

.edition-trending {
    min-width: 0;
    padding: clamp(12px, 2vw, 24px);
    border-radius: 12px;
    background: var(--color-bg-card);
}

.latest-list {
    display: grid;
    gap: 12px;
}

.edition-heading h2,
.edition-trending h2,
.latest-feed > h2,
.home-tags h3,
.gh-section-title,
.member-dialog h2,
.newsletter-card h3 {
    color: var(--section-heading);
}

.latest-feed > h2,
.gh-error-posts > h2 {
    font-size: 22px;
    line-height: 1.4;
}

[data-theme="light"] .lang-switcher-dropdown a[aria-current="true"],
[data-theme="light"] .gh-tag-nav-link.is-active {
    background: var(--section-heading);
    color: white;
}

[data-theme="light"] .lang-switcher-dropdown a[aria-current="true"]::after {
    border-color: currentColor;
}

.back-to-top {
    display: grid;
    place-items: center;
    position: fixed;
    inset-inline-start: 24px;
    bottom: 24px;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-card);
    color: var(--section-heading);
    font-size: 22px;
}

@media (max-width: 767px) {
    .back-to-top { display: none; }
}

.edition-trending { padding: 16px 20px 8px; border-radius: 16px; }
[data-theme="dark"] .edition-trending {
    border: 1px solid rgb(255 255 255 / 12%);
    background: rgb(255 255 255 / 6%);
}
[data-theme="dark"] .trending-candidate { border-bottom-color: rgb(255 255 255 / 9%); }
.trending-candidate a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.league-post--small .post-card { padding: 8px; border-radius: 12px; }
.league-post--small .post-card-content { min-width: 0; padding: 0; gap: 6px; }
.league-post--small .post-card-title { font-weight: 500; line-height: 21px; }
.league-post--small .post-card-tag {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
@media (min-width: 768px) {
    .edition-league-grid {
        grid-template-columns: calc(50% - 8px) repeat(2, minmax(0, 1fr));
        height: clamp(324px, 25vw, 338px);
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }
    .edition-league:nth-child(even) .edition-league-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) calc(50% - 8px);
    }
    .edition-league:nth-child(odd) .league-post--featured { margin-inline-end: 4px; }
    .edition-league:nth-child(even) .league-post--featured { margin-inline-start: 4px; }
    .league-post--small .post-card {
        grid-template-columns: min(104px, 40%) minmax(0, 1fr);
    }
    .league-post--small .post-card-image-link { align-self: stretch; min-height: 0; aspect-ratio: auto; }
}
@media (max-width: 767px) {
    .featured-hero .featured-hero-inner { padding-bottom: 24px; }
    .edition-heading { margin-bottom: 10px; }
    .edition-trending { padding: 14px 16px 10px; }
    .latest-sidebar .newsletter-card { padding: 16px; }
    .home-tags {
        margin-inline: -16px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .home-tags h3 {
        font-size: 20px;
        line-height: 26px;
        letter-spacing: -.3px;
    }
    .league-post--small .post-card-image-link { height: 110px; aspect-ratio: auto; flex: none; }
    .league-post--small .post-card-tag { display: none; }
}

.gh-head .gh-theme-toggle { padding: 0; width: 40px; }
@media (max-width: 767px) {
    .gh-head .gh-theme-toggle { width: 36px; }
    .lang-switcher-button { padding: 0 6px 0 8px; gap: 8px; }
    .edition-subscribe, .edition-account { padding: 0 12px; gap: 8px; }
}

/* Flow 3 — tag archive */
.tag-archive .gh-archive-layout { padding-block: 0; }
.tag-archive .gh-archive-header { padding-block: 40px 28px; }
.tag-archive .gh-archive-title { margin: 0; }
.tag-archive .post-grid { gap: 28px; }
.tag-archive .post-card {
    padding: 12px;
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
}
.tag-archive .post-card-content { min-width: 0; padding: 0; }
.tag-archive .post-grid > .post-card:first-child {
    padding: 12px;
    grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
}
.tag-archive .post-card-excerpt,
.tag-archive .post-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tag-archive .post-card:not(:first-child) { gap: 12px; }
.tag-archive .post-card-excerpt { flex: none; }
.tag-archive .tag-pagination { margin: 24px 0 0; padding: 0; border: 0; }
.tag-archive { padding-bottom: 52px; }
@media (min-width: 768px) {
    .tag-archive .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tag-archive .post-grid > .post-card:first-child { margin-bottom: 12px; }
    .tag-archive .post-card:first-child .post-card-title { font-size: 24px; }
    [data-theme="dark"] .tag-archive .post-card:not(:first-child) {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
}
@media (max-width: 767px) {
    .tag-archive { padding-bottom: 24px; }
    .tag-archive .gh-archive-header { padding-block: 16px; }
    .tag-archive .gh-archive-type-label { margin-bottom: 4px; }
    .tag-archive .gh-archive-title { font: 600 28px/38px Prompt, sans-serif; }
    .tag-archive .post-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .tag-archive .post-grid > .post-card:first-child { gap: 12px; }
    .tag-archive .post-grid > .post-card:first-child .post-card-image-link { aspect-ratio: 16 / 9; }
    .tag-archive .post-card:not(:first-child) {
        grid-template-columns: min(36%, 120px) minmax(0, 1fr);
        border-radius: 12px;
    }
    .tag-archive .post-card:not(:first-child) .post-card-image-link { aspect-ratio: 1.5; border-radius: 8px; }
    .tag-archive .post-card:not(:first-child) .post-card-title { font-size: 16px; }
    .tag-archive .post-card:not(:first-child) :is(.post-card-author, .post-card-views, .post-card-excerpt) { display: none; }
}

.tag-mobile-feed { display: none; }
@media (max-width: 767px) {
    .tag-desktop-feed:has(+ .tag-mobile-feed) { display: none; }
    .tag-mobile-feed { display: block; }
}
