/**
 * Editorial Frontend — CSS
 * ========================
 * Utilise exclusivement les design tokens var(--gas-*).
 * Note: le theme definit html { font-size: 62.5% } → 1rem = 10px.
 */

/* ══════════════════════════════════════════
   PAGE CONTAINER
   ══════════════════════════════════════════ */

.gas-editorial-page,
.gas-editorial-archive {
    width: 100%;
    padding: var(--gas-space-xl) 0;
}

/* ══════════════════════════════════════════
   SINGLE ARTICLE
   ══════════════════════════════════════════ */

.gas-editorial-single {
    color: var(--gas-text-color);
    font-family: var(--gas-font-family);
}

/* ── Header ── */
.gas-editorial-single__header {
    margin-bottom: var(--gas-space-xl);
    text-align: center;
}

.gas-editorial-single__header h1 {
    margin: 0 0 var(--gas-space-s);
    font-size: var(--gas-text-3xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
    color: var(--gas-neutral-900);
}

.gas-editorial-single__meta {
    color: var(--gas-accent);
    font-size: var(--gas-text-xs);
    font-weight: var(--gas-weight-semi);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gas-editorial-single__excerpt {
    max-width: 72ch;
    margin: var(--gas-space-m) auto 0;
    color: var(--gas-neutral-600);
    font-size: var(--gas-text-l);
    line-height: var(--gas-leading-normal);
}

/* ── Resume public (intro block before content) ── */
.gas-editorial-single__resume-public {
    max-width: 72ch;
    margin: var(--gas-space-l) auto;
    padding: var(--gas-space-m) var(--gas-space-l);
    background: var(--gas-bg-secondary, #f9f9f9);
    border-left: 4px solid var(--gas-accent, #5B6ABF);
    border-radius: var(--gas-radius-s);
    font-size: var(--gas-text-m);
    line-height: var(--gas-leading-relaxed);
    color: var(--gas-neutral-700);
}

.gas-editorial-single__resume-public p:last-child {
    margin-bottom: 0;
}

/* ── Hero image ── */
.gas-editorial-single__hero {
    margin-bottom: var(--gas-space-l);
    overflow: hidden;
    /* Full-bleed: break out of page container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-height: 300px;
    position: relative;
}

.gas-editorial-single__hero img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

/* ── Header style: hero_compact — smaller hero ── */
.gas-editorial-single__header--hero_compact .gas-editorial-single__hero {
    max-height: 200px;
}

.gas-editorial-single__header--hero_compact .gas-editorial-single__hero img {
    height: 200px;
}

/* ── Header style: title_only — no hero, just title ── */
.gas-editorial-single__header--title_only {
    padding-top: var(--gas-space-xl);
}

/* ── Header style: hero_overlay — title on image ── */
.gas-editorial-single__header--hero_overlay {
    text-align: left;
}

.gas-editorial-single__header--hero_overlay .gas-editorial-single__hero {
    max-height: 420px;
}

.gas-editorial-single__header--hero_overlay .gas-editorial-single__hero img {
    height: 420px;
}

.gas-editorial-single__hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
}

.gas-editorial-single__hero-overlay-content {
    padding: var(--gas-space-xl) var(--gas-space-2xl);
    max-width: 70%;
}

.gas-editorial-single__hero-overlay-content h1 {
    color: #fff;
    font-size: var(--gas-text-3xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
    margin: 0 0 var(--gas-space-xs);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gas-editorial-single__hero-overlay-content .gas-editorial-single__meta {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Overlay position variants ── */

/* bottom-left (default) */
.gas-editorial-single__header--overlay-bottom-left .gas-editorial-single__hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    align-items: flex-end;
    justify-content: flex-start;
}

/* bottom-center */
.gas-editorial-single__header--overlay-bottom-center .gas-editorial-single__hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    align-items: flex-end;
    justify-content: center;
}

.gas-editorial-single__header--overlay-bottom-center .gas-editorial-single__hero-overlay-content {
    text-align: center;
}

/* center */
.gas-editorial-single__header--overlay-center .gas-editorial-single__hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
}

.gas-editorial-single__header--overlay-center .gas-editorial-single__hero-overlay-content {
    text-align: center;
}

@media (max-width: 768px) {
    .gas-editorial-single__header--hero_overlay .gas-editorial-single__hero {
        max-height: 280px;
    }
    .gas-editorial-single__header--hero_overlay .gas-editorial-single__hero img {
        height: 280px;
    }
    .gas-editorial-single__hero-overlay-content {
        max-width: 100%;
        padding: var(--gas-space-m) var(--gas-space-l);
    }
    .gas-editorial-single__hero-overlay-content h1 {
        font-size: var(--gas-text-xl);
    }
}

/* ── Header style: split — image left, title right ── */

.gas-editorial-single__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gas-space-xl);
    align-items: center;
    margin-bottom: var(--gas-space-l);
}

.gas-editorial-single__split-image {
    overflow: hidden;
    border-radius: var(--gas-radius-l);
}

.gas-editorial-single__split-image img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--gas-radius-l);
}

.gas-editorial-single__split-content h1 {
    font-size: var(--gas-text-2xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
    margin: 0 0 var(--gas-space-s);
}

@media (max-width: 768px) {
    .gas-editorial-single__split {
        grid-template-columns: 1fr;
        gap: var(--gas-space-m);
    }
    .gas-editorial-single__split-image img {
        height: 220px;
    }
}

/* ── Header style: band — thin background strip ── */

.gas-editorial-single__band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--gas-neutral-800);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--gas-space-l);
}

.gas-editorial-single__band-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--gas-space-m) var(--gas-space-xl);
}

.gas-editorial-single__band-overlay h1 {
    color: #fff;
    font-size: var(--gas-text-2xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
    margin: 0 0 var(--gas-space-xs);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.gas-editorial-single__band-overlay .gas-editorial-single__meta {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .gas-editorial-single__band {
        height: 120px;
    }
    .gas-editorial-single__band-overlay h1 {
        font-size: var(--gas-text-xl);
    }
}

/* ── Header style: card — rounded centered image ── */

.gas-editorial-single__header--card {
    text-align: center;
}

.gas-editorial-single__card-image {
    max-width: 720px;
    margin: 0 auto var(--gas-space-l);
    overflow: hidden;
    border-radius: var(--gas-radius-xl, 20px);
    box-shadow: var(--gas-shadow-sm);
}

.gas-editorial-single__card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.gas-editorial-single__header--card h1 {
    font-size: var(--gas-text-2xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
    margin: 0 0 var(--gas-space-s);
}

@media (max-width: 768px) {
    .gas-editorial-single__card-image {
        border-radius: var(--gas-radius-l);
    }
}

/* ── Header style: offset — asymmetric editorial ── */

.gas-editorial-single__offset {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--gas-space-xl);
    align-items: center;
    margin-bottom: var(--gas-space-l);
}

.gas-editorial-single__offset-content h1 {
    font-size: var(--gas-text-3xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
    margin: 0 0 var(--gas-space-s);
}

.gas-editorial-single__offset-image {
    overflow: hidden;
    border-radius: var(--gas-radius-l);
    /* Slight upward offset for asymmetric feel */
    transform: translateY(-12px);
    box-shadow: var(--gas-shadow-md, 0 8px 24px rgba(20, 24, 32, 0.12));
}

.gas-editorial-single__offset-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .gas-editorial-single__offset {
        grid-template-columns: 1fr;
        gap: var(--gas-space-m);
    }
    .gas-editorial-single__offset-content h1 {
        font-size: var(--gas-text-2xl);
    }
    .gas-editorial-single__offset-image {
        transform: none;
    }
}

/* ── Module images — always capped in height ── */
.gas-editorial-module--image img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--gas-radius-l);
}

/* ── Row-specific image overrides ── */
.gas-editorial-row--narrow .gas-editorial-module--image img {
    max-height: 300px;
}

.gas-editorial-row--full .gas-editorial-module--image {
    margin: 0;
}

.gas-editorial-row--full .gas-editorial-module--image img {
    max-height: 450px;
    border-radius: 0;
}

/* ── Hero in narrow row ── */
.gas-editorial-row--narrow .gas-editorial-module--image img {
    object-fit: cover;
    object-position: center;
    border-radius: var(--gas-radius-l);
}

/* ── Content grid (rows + zones) ── */
.gas-editorial-single__content {
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-l);
}

.gas-editorial-row {
    display: grid;
    gap: var(--gas-space-l);
}

/* ── Row width presets ── */
.gas-editorial-row--narrow {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.gas-editorial-row--default {
    /* inherits page max-width */
}

.gas-editorial-row--full {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.gas-editorial-zone {
    min-width: 0; /* prevent grid blowout */
}

.gas-editorial-zone--empty {
    display: none;
}

/* Hide rows where ALL zones are empty */
.gas-editorial-row:has(> .gas-editorial-zone--empty:only-child),
.gas-editorial-row:not(:has(> .gas-editorial-zone:not(.gas-editorial-zone--empty))) {
    display: none;
}

/* ── TOC ── */
/* ── TOC — Base (shared by all styles) ── */

.gas-editorial-single__toc {
    padding: var(--gas-space-m) var(--gas-space-l);
    border: var(--gas-border-width) solid var(--gas-border-color);
    border-radius: var(--gas-radius-l);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: var(--gas-space-l);
}

.gas-editorial-single__toc-title {
    margin: 0 0 var(--gas-space-s);
    font-size: var(--gas-text-s);
    font-weight: var(--gas-weight-semi);
    color: var(--gas-neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gas-editorial-single__toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc-counter;
    columns: 3;
    column-gap: var(--gas-space-xl);
}

.gas-editorial-single__toc li {
    margin: 0;
    break-inside: avoid;
    counter-increment: toc-counter;
}

.gas-editorial-single__toc li + li {
    margin-top: var(--gas-space-xs);
}

.gas-editorial-single__toc a {
    color: var(--gas-neutral-700);
    text-decoration: none;
    font-size: var(--gas-text-s);
    transition: color 0.15s;
    display: flex;
    align-items: baseline;
    gap: var(--gas-space-xs);
}

.gas-editorial-single__toc a::before {
    content: counter(toc-counter) ".";
    color: var(--gas-neutral-400);
    font-size: var(--gas-text-xs);
    font-weight: var(--gas-weight-semi);
    min-width: 1.6em;
    flex-shrink: 0;
}

.gas-editorial-toc--h3 {
    padding-left: var(--gas-space-m);
}

.gas-editorial-toc--h3 a::before {
    content: "";
    min-width: 0;
}

.gas-editorial-single__toc a:hover {
    color: var(--gas-primary);
}

/* ── TOC — Inline: full-width block before content ── */

.gas-editorial-single__toc--inline {
    position: static;
}

/* ── TOC — Sticky: stays at top while scrolling ── */

.gas-editorial-single__toc--sticky {
    position: sticky;
    top: var(--gas-space-m);
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── TOC — Sidebar: compact side rail ── */

.gas-editorial-single__with-sidebar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: var(--gas-space-l);
    align-items: start;
}

.gas-editorial-single__toc--sidebar {
    position: sticky;
    top: var(--gas-space-l);
    order: 2;
    margin-bottom: 0;
    padding: var(--gas-space-s) var(--gas-space-m);
    border-left: 3px solid var(--gas-primary-100, var(--gas-border-color));
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.6);
    font-size: var(--gas-text-xs);
    max-height: calc(100vh - var(--gas-space-xl));
    overflow-y: auto;
}

.gas-editorial-single__toc--sidebar .gas-editorial-single__toc-title {
    font-size: var(--gas-text-xs);
    margin-bottom: var(--gas-space-xs);
}

.gas-editorial-single__toc--sidebar ol {
    columns: 1;
}

.gas-editorial-single__toc--sidebar a {
    font-size: var(--gas-text-xs);
    line-height: 1.4;
}

.gas-editorial-single__toc--sidebar li + li {
    margin-top: 2px;
}

.gas-editorial-single__with-sidebar .gas-editorial-single__content {
    order: 1;
    min-width: 0;
}

/* ══════════════════════════════════════════
   MODULES
   ══════════════════════════════════════════ */

.gas-editorial-module {
    margin-bottom: 0;
}

/* ── Text ── */
.gas-editorial-module--text {
    font-size: var(--gas-text-m);
    line-height: var(--gas-leading-loose);
    color: var(--gas-text-color);
}

.gas-editorial-module--text h2 {
    margin: var(--gas-space-xl) 0 var(--gas-space-m);
    font-size: var(--gas-text-2xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
    color: var(--gas-neutral-900);
}

.gas-editorial-module--text h2:first-child {
    margin-top: 0;
}

.gas-editorial-module--text h3 {
    margin: var(--gas-space-l) 0 var(--gas-space-s);
    font-size: var(--gas-text-xl);
    font-weight: var(--gas-weight-semi);
    line-height: var(--gas-leading-tight);
    color: var(--gas-neutral-800);
}

.gas-editorial-module--text p {
    margin: 0 0 var(--gas-space-m);
}

.gas-editorial-module--text ul,
.gas-editorial-module--text ol {
    padding-left: var(--gas-space-xl);
    margin: 0 0 var(--gas-space-m);
}

.gas-editorial-module--text li {
    margin-bottom: var(--gas-space-xs);
}

.gas-editorial-module--text a {
    color: var(--gas-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gas-editorial-module--text a:hover {
    color: var(--gas-primary-dark);
}

.gas-editorial-module--text strong {
    font-weight: var(--gas-weight-semi);
}

/* ── Image ── */
.gas-editorial-module--image {
    margin: 0;
}

.gas-editorial-module--image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--gas-radius-l);
}

.gas-editorial-module--image figcaption {
    margin-top: var(--gas-space-s);
    font-size: var(--gas-text-xs);
    color: var(--gas-neutral-500);
    text-align: center;
    font-style: italic;
}

/* ── Quote ── */
.gas-editorial-module--quote {
    padding: var(--gas-space-l);
    border-left: 4px solid var(--gas-accent);
    border-radius: 0 var(--gas-radius-m) var(--gas-radius-m) 0;
    background: var(--gas-accent-ultra-light);
}

.gas-editorial-module--quote p {
    margin: 0;
    font-size: var(--gas-text-l);
    line-height: var(--gas-leading-normal);
    font-style: italic;
    color: var(--gas-neutral-700);
}

.gas-editorial-quote__author {
    display: block;
    margin-top: var(--gas-space-m);
    font-size: var(--gas-text-s);
    font-weight: var(--gas-weight-semi);
    font-style: normal;
    color: var(--gas-neutral-600);
}

/* ── Info box ── */
.gas-editorial-module--info-box {
    padding: var(--gas-space-l);
    border: var(--gas-border-width) solid var(--gas-info-lighter);
    border-radius: var(--gas-radius-l);
    background: var(--gas-info-light);
}

.gas-editorial-info-box__title {
    margin: 0 0 var(--gas-space-s);
    font-size: var(--gas-text-l);
    font-weight: var(--gas-weight-semi);
    color: var(--gas-info-dark);
}

.gas-editorial-info-box__content {
    font-size: var(--gas-text-m);
    line-height: var(--gas-leading-normal);
    color: var(--gas-info-text);
}

.gas-editorial-info-box__content p {
    margin: 0 0 var(--gas-space-s);
}

.gas-editorial-info-box__content p:last-child {
    margin-bottom: 0;
}

/* ── CTA ── */
.gas-editorial-module--cta {
    padding: var(--gas-space-xl);
    border-radius: var(--gas-radius-l);
    background: linear-gradient(135deg, var(--gas-primary) 0%, var(--gas-primary-dark) 100%);
    color: var(--gas-text-color-inverse);
    text-align: center;
}

.gas-editorial-cta__title {
    margin: 0 0 var(--gas-space-s);
    font-size: var(--gas-text-xl);
    font-weight: var(--gas-weight-bold);
    color: inherit;
}

.gas-editorial-cta__content {
    margin-bottom: var(--gas-space-l);
    font-size: var(--gas-text-m);
    line-height: var(--gas-leading-normal);
    color: inherit;
    opacity: 0.9;
}

.gas-editorial-cta__content p {
    margin: 0;
}

.gas-editorial-module--cta .gas-button {
    display: inline-block;
}

/* ── Style presets (applied to text modules) ── */
.gas-editorial-module--card {
    padding: var(--gas-space-l);
    border: var(--gas-border-width) solid var(--gas-border-color);
    border-radius: var(--gas-radius-l);
    background: var(--gas-bg-surface);
    box-shadow: var(--gas-shadow-xs);
}

.gas-editorial-module--highlight {
    padding: var(--gas-space-l);
    border-radius: var(--gas-radius-l);
    background: var(--gas-accent-ultra-light);
    border-left: 4px solid var(--gas-accent);
}

/* ── Title block ── */
.gas-editorial-title-block {
    padding: var(--gas-space-xl) 0;
}

.gas-editorial-title-block__title {
    margin: 0 0 var(--gas-space-s);
    font-size: var(--gas-text-3xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
    color: var(--gas-neutral-900);
}

.gas-editorial-title-block__meta {
    color: var(--gas-accent);
    font-size: var(--gas-text-xs);
    font-weight: var(--gas-weight-semi);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 var(--gas-space-s);
}

.gas-editorial-title-block__excerpt {
    max-width: 72ch;
    color: var(--gas-neutral-600);
    font-size: var(--gas-text-l);
    line-height: var(--gas-leading-normal);
    margin: var(--gas-space-m) 0 0;
}

/* Horizontal alignment */
.gas-editorial-title-block--h-left { text-align: left; }
.gas-editorial-title-block--h-center { text-align: center; }
.gas-editorial-title-block--h-center .gas-editorial-title-block__excerpt { margin-left: auto; margin-right: auto; }
.gas-editorial-title-block--h-right { text-align: right; }
.gas-editorial-title-block--h-right .gas-editorial-title-block__excerpt { margin-left: auto; }

/* Vertical alignment (used when title_block is in same zone as image = overlay).
   Overlay mode activates ONLY when the zone contains exactly a title_block + image
   (no other modules like text). The --overlay class is added server-side. */
.gas-editorial-zone--title-overlay {
    position: relative;
}

.gas-editorial-zone--title-overlay > .gas-editorial-title-block {
    position: absolute;
    left: 0;
    right: 0;
    padding: var(--gas-space-xl) var(--gas-space-l);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: var(--gas-text-color-inverse);
    z-index: 1;
}

.gas-editorial-zone--title-overlay > .gas-editorial-title-block .gas-editorial-title-block__title {
    color: var(--gas-text-color-inverse);
}

.gas-editorial-zone--title-overlay > .gas-editorial-title-block .gas-editorial-title-block__meta {
    color: var(--gas-accent-light);
}

.gas-editorial-zone--title-overlay > .gas-editorial-title-block .gas-editorial-title-block__excerpt {
    color: rgba(255, 255, 255, 0.85);
}

/* Vertical positioning for overlay */
.gas-editorial-zone--title-overlay > .gas-editorial-title-block--v-top {
    top: 0;
    bottom: auto;
    background: linear-gradient(rgba(0, 0, 0, 0.65), transparent);
}

.gas-editorial-zone--title-overlay > .gas-editorial-title-block--v-center {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0, 0, 0, 0.45);
}

.gas-editorial-zone--title-overlay > .gas-editorial-title-block--v-bottom {
    bottom: 0;
    top: auto;
}

/* ── Activity link ── */
.gas-editorial-single__activity-link {
    margin-top: var(--gas-space-xl);
    padding-top: var(--gas-space-l);
    border-top: var(--gas-border-width) solid var(--gas-border-color);
    text-align: center;
}

/* ══════════════════════════════════════════
   ARCHIVE
   ══════════════════════════════════════════ */

.gas-editorial-archive__hero {
    margin-bottom: var(--gas-space-xl);
}

.gas-editorial-archive__hero h1 {
    margin: 0 0 var(--gas-space-s);
    font-size: var(--gas-text-3xl);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
}

.gas-editorial-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: var(--gas-space-l);
}

.gas-editorial-archive-card {
    overflow: hidden;
    border: var(--gas-border-width) solid var(--gas-border-color);
    border-radius: var(--gas-radius-l);
    background: var(--gas-bg-surface);
    box-shadow: var(--gas-shadow-s);
    transition: box-shadow 0.2s, transform 0.2s;
}

.gas-editorial-archive-card:hover {
    box-shadow: var(--gas-shadow-m);
    transform: translateY(-2px);
}

.gas-editorial-archive-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gas-editorial-archive-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gas-editorial-archive-card__body {
    padding: var(--gas-space-m) var(--gas-space-l);
}

.gas-editorial-archive-card__date {
    color: var(--gas-accent);
    font-size: var(--gas-text-xs);
    font-weight: var(--gas-weight-semi);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gas-editorial-archive-card__body h2 {
    margin: var(--gas-space-xs) 0 var(--gas-space-s);
    font-size: var(--gas-text-l);
    font-weight: var(--gas-weight-bold);
    line-height: var(--gas-leading-tight);
}

.gas-editorial-archive-card__body h2 a {
    color: inherit;
    text-decoration: none;
}

.gas-editorial-archive-card__body h2 a:hover {
    color: var(--gas-primary);
}

.gas-editorial-archive-card__excerpt {
    font-size: var(--gas-text-s);
    line-height: var(--gas-leading-normal);
    color: var(--gas-neutral-600);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .gas-editorial-single__toc ol {
        columns: 2;
    }

    .gas-editorial-single__toc--sidebar ol {
        columns: 1;
    }

    .gas-editorial-single__with-sidebar {
        grid-template-columns: 1fr 180px;
    }
}

@media (max-width: 768px) {
    .gas-editorial-page,
    .gas-editorial-archive {
        padding: var(--gas-space-l) 0;
    }

    .gas-editorial-row {
        grid-template-columns: 1fr;
    }

    .gas-editorial-single__toc {
        position: static;
    }

    .gas-editorial-single__toc ol {
        columns: 1;
    }

    /* Sidebar → stacks above content on mobile */
    .gas-editorial-single__with-sidebar {
        display: block;
    }

    .gas-editorial-single__toc--sidebar {
        position: static;
        border-left: none;
        border-bottom: var(--gas-border-width) solid var(--gas-border-color);
        border-radius: var(--gas-radius-l);
        margin-bottom: var(--gas-space-l);
        max-height: none;
        background: rgba(255, 255, 255, 0.82);
    }

    .gas-editorial-archive__grid {
        grid-template-columns: 1fr;
    }

    .gas-editorial-module--cta {
        padding: var(--gas-space-l);
    }
}

/* ── Access denied block ── */

.gas-editorial-single__access-denied {
    max-width: 60ch;
    margin: var(--gas-space-xl) auto;
    padding: var(--gas-space-xl);
    text-align: center;
    background: var(--gas-bg-secondary, #f9f9f9);
    border: 1px solid var(--gas-border-color, #e0e0e0);
    border-radius: var(--gas-radius-l);
}

.gas-editorial-single__access-denied-icon {
    font-size: 3em;
    margin-bottom: var(--gas-space-m);
}

.gas-editorial-single__access-denied-message {
    font-size: var(--gas-text-l);
    line-height: var(--gas-leading-normal);
    color: var(--gas-neutral-700);
    margin: 0 0 var(--gas-space-l);
}

.gas-editorial-single__access-denied .gas-button {
    display: inline-block;
}

/* ── Video embed module ── */

.gas-editorial-module--video-embed {
    margin: var(--gas-space-m) 0;
}

.gas-editorial-video-embed__caption {
    margin-top: var(--gas-space-xs);
    font-size: var(--gas-font-size-s);
    color: var(--gas-text-muted);
    text-align: center;
    font-style: italic;
}

.gas-editorial-video-embed__locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--gas-space-xl) var(--gas-space-m);
    background: var(--gas-bg-secondary, #f5f5f5);
    border: 1px dashed var(--gas-border-color, #ccc);
    border-radius: var(--gas-radius-m);
    text-align: center;
    color: var(--gas-text-muted);
}

.gas-editorial-video-embed__lock-icon {
    font-size: 2em;
    margin-bottom: var(--gas-space-xs);
}

/* ── Gallery module ── */

.gas-editorial-module--gallery {
    margin: var(--gas-space-m) 0;
}

.gas-editorial-gallery__grid {
    display: grid;
    gap: var(--gas-space-s);
}

.gas-editorial-gallery__grid--2col { grid-template-columns: repeat(2, 1fr); }
.gas-editorial-gallery__grid--3col { grid-template-columns: repeat(3, 1fr); }
.gas-editorial-gallery__grid--4col { grid-template-columns: repeat(4, 1fr); }

.gas-editorial-gallery__item {
    margin: 0;
    overflow: hidden;
}

.gas-editorial-gallery__link {
    display: block;
    cursor: zoom-in;
}

.gas-editorial-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--gas-radius-m);
    transition: transform 0.2s, opacity 0.2s;
}

.gas-editorial-gallery__item img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.gas-editorial-gallery__item figcaption {
    margin-top: var(--gas-space-2xs);
    font-size: var(--gas-text-xs);
    color: var(--gas-neutral-500);
    text-align: center;
    font-style: italic;
}

@media (max-width: 600px) {
    .gas-editorial-gallery__grid--3col,
    .gas-editorial-gallery__grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Gallery lightbox ── */

.gas-editorial-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.25s;
}

.gas-editorial-lightbox--visible {
    opacity: 1;
}

.gas-editorial-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--gas-radius-s, 4px);
    user-select: none;
}

.gas-editorial-lightbox__caption {
    position: absolute;
    bottom: var(--gas-space-l, 24px);
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: var(--gas-text-s, 14px);
    text-align: center;
    max-width: 60ch;
    opacity: 0.85;
}

.gas-editorial-lightbox__close,
.gas-editorial-lightbox__prev,
.gas-editorial-lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    padding: var(--gas-space-s, 12px);
    opacity: 0.7;
    transition: opacity 0.15s;
    z-index: 1;
}

.gas-editorial-lightbox__close:hover,
.gas-editorial-lightbox__prev:hover,
.gas-editorial-lightbox__next:hover {
    opacity: 1;
}

.gas-editorial-lightbox__close {
    top: var(--gas-space-m, 16px);
    right: var(--gas-space-m, 16px);
    font-size: 2.4rem;
}

.gas-editorial-lightbox__prev {
    left: var(--gas-space-m, 16px);
    top: 50%;
    transform: translateY(-50%);
}

.gas-editorial-lightbox__next {
    right: var(--gas-space-m, 16px);
    top: 50%;
    transform: translateY(-50%);
}

.gas-editorial-lightbox__counter {
    position: absolute;
    top: var(--gas-space-m, 16px);
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: var(--gas-text-xs, 12px);
    opacity: 0.6;
}

/* ── File download module ── */

.gas-editorial-module--file-download {
    margin: var(--gas-space-m) 0;
}

.gas-editorial-file-download__inner {
    display: flex;
    align-items: center;
    gap: var(--gas-space-m);
    padding: var(--gas-space-m);
    background: var(--gas-bg-secondary, #f9f9f9);
    border: 1px solid var(--gas-border-color, #e0e0e0);
    border-radius: var(--gas-radius-m);
}

.gas-editorial-file-download__icon {
    font-size: 2em;
    flex-shrink: 0;
}

.gas-editorial-file-download__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.gas-editorial-file-download__title {
    font-weight: 600;
    font-size: var(--gas-font-size-m);
}

.gas-editorial-file-download__description {
    font-size: var(--gas-font-size-s);
    color: var(--gas-text-secondary);
}

.gas-editorial-file-download__meta {
    font-size: var(--gas-font-size-xs);
    color: var(--gas-text-muted);
}

@media (max-width: 600px) {
    .gas-editorial-file-download__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Author footer ── */

.gas-editorial-single__author {
    margin-top: var(--gas-space-xl);
    padding-top: var(--gas-space-l);
    border-top: 1px solid var(--gas-neutral-200);
}

.gas-editorial-single__author-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--gas-space-m);
    max-width: 600px;
}

.gas-editorial-single__author-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--gas-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.gas-editorial-single__author-info {
    flex: 1;
    min-width: 0;
}

.gas-editorial-single__author-label {
    font-size: var(--gas-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gas-neutral-400);
    margin: 0 0 2px;
}

.gas-editorial-single__author-name {
    font-size: var(--gas-text-l);
    font-weight: var(--gas-weight-semi);
    margin: 0 0 4px;
    color: var(--gas-text-color);
}

.gas-editorial-single__author-desc {
    font-size: var(--gas-text-s);
    color: var(--gas-neutral-600);
    margin: 0 0 4px;
    line-height: 1.5;
}

.gas-editorial-single__author-url {
    font-size: var(--gas-text-xs);
    color: var(--gas-neutral-400);
    text-decoration: none;
    transition: color var(--gas-transition-fast);
}

.gas-editorial-single__author-url:hover {
    color: var(--gas-primary);
}

@media (max-width: 480px) {
    .gas-editorial-single__author-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ════════════════════════════════════════════════════
   FAQ Module — 4 display styles
   ════════════════════════════════════════════════════ */

.gas-editorial-module--faq {
    margin: var(--gas-space-l) 0;
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-s);
}

/* ── Shared answer styles ── */

.gas-editorial-faq__answer {
    font-size: var(--gas-text-m);
    color: var(--gas-text-color);
    line-height: var(--gas-line-height-relaxed);
}

.gas-editorial-faq__answer p { margin: 0.5em 0; }
.gas-editorial-faq__answer p:first-child { margin-top: 0; }
.gas-editorial-faq__answer p:last-child { margin-bottom: 0; }

.gas-editorial-faq__answer ul,
.gas-editorial-faq__answer ol {
    margin: var(--gas-space-xs) 0;
    padding-left: 1.5em;
}

.gas-editorial-faq__answer a {
    color: var(--gas-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gas-editorial-faq__answer a:hover { opacity: 0.8; }

/* ── 1. Accordion (default) ── */

.gas-editorial-faq--accordion .gas-editorial-faq__item {
    border: 1px solid var(--gas-neutral-200);
    border-radius: var(--gas-radius-m);
    overflow: hidden;
    transition: box-shadow var(--gas-transition-fast);
}

.gas-editorial-faq--accordion .gas-editorial-faq__item[open] {
    box-shadow: var(--gas-shadow-xs);
}

.gas-editorial-faq--accordion .gas-editorial-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--gas-space-m);
    background: var(--gas-neutral-50);
    font-weight: var(--gas-weight-semibold);
    font-size: var(--gas-text-m);
    color: var(--gas-text-color);
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color var(--gas-transition-fast);
}

.gas-editorial-faq--accordion .gas-editorial-faq__question::-webkit-details-marker { display: none; }

.gas-editorial-faq--accordion .gas-editorial-faq__question::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-left: var(--gas-space-s);
    border-right: 2px solid var(--gas-primary);
    border-bottom: 2px solid var(--gas-primary);
    transform: rotate(45deg);
    transition: transform var(--gas-transition-fast);
}

.gas-editorial-faq--accordion .gas-editorial-faq__item[open] > .gas-editorial-faq__question::after {
    transform: rotate(-135deg);
}

.gas-editorial-faq--accordion .gas-editorial-faq__question:hover {
    background: var(--gas-neutral-100);
}

.gas-editorial-faq--accordion .gas-editorial-faq__answer {
    padding: var(--gas-space-s) var(--gas-space-m) var(--gas-space-m);
}

/* ── 2. Flat — all expanded ── */

.gas-editorial-faq--flat .gas-editorial-faq__item {
    padding-bottom: var(--gas-space-m);
    border-bottom: 1px solid var(--gas-neutral-200);
}

.gas-editorial-faq--flat .gas-editorial-faq__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gas-editorial-faq--flat .gas-editorial-faq__question {
    font-weight: var(--gas-weight-semibold);
    font-size: var(--gas-text-m);
    color: var(--gas-text-color);
    margin: 0 0 var(--gas-space-xs);
}

/* ── 3. Cards ── */

.gas-editorial-faq--cards {
    gap: var(--gas-space-m);
}

.gas-editorial-faq--cards .gas-editorial-faq__item {
    padding: var(--gas-space-m);
    background: var(--gas-neutral-50);
    border: 1px solid var(--gas-neutral-200);
    border-radius: var(--gas-radius-m);
    box-shadow: var(--gas-shadow-xs);
    transition: box-shadow var(--gas-transition-fast), transform var(--gas-transition-fast);
}

.gas-editorial-faq--cards .gas-editorial-faq__item:hover {
    box-shadow: var(--gas-shadow-sm);
    transform: translateY(-1px);
}

.gas-editorial-faq--cards .gas-editorial-faq__question {
    font-weight: var(--gas-weight-semibold);
    font-size: var(--gas-text-m);
    color: var(--gas-primary);
    margin: 0 0 var(--gas-space-xs);
}

/* ── 4. Numbered ── */

.gas-editorial-faq--numbered .gas-editorial-faq__item {
    display: flex;
    gap: var(--gas-space-m);
    align-items: flex-start;
    padding-bottom: var(--gas-space-m);
    border-bottom: 1px solid var(--gas-neutral-200);
}

.gas-editorial-faq--numbered .gas-editorial-faq__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gas-editorial-faq--numbered .gas-editorial-faq__number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gas-primary);
    color: white;
    border-radius: 50%;
    font-size: var(--gas-text-m);
    font-weight: var(--gas-weight-bold);
}

.gas-editorial-faq--numbered .gas-editorial-faq__body {
    flex: 1;
    min-width: 0;
}

.gas-editorial-faq--numbered .gas-editorial-faq__question {
    font-weight: var(--gas-weight-semibold);
    font-size: var(--gas-text-m);
    color: var(--gas-text-color);
    margin: 0 0 var(--gas-space-xs);
}

/* ── FAQ Responsive ── */

@media (max-width: 640px) {
    .gas-editorial-module--faq {
        margin: var(--gas-space-m) 0;
    }

    .gas-editorial-faq--accordion .gas-editorial-faq__question,
    .gas-editorial-faq--accordion .gas-editorial-faq__answer {
        padding: var(--gas-space-s);
    }

    .gas-editorial-faq--numbered .gas-editorial-faq__number {
        width: 28px;
        height: 28px;
        font-size: var(--gas-text-s);
    }
}
