.site-brand-logo {
    --site-brand-logo-max-height: 55px;
    display: block;
    flex: 0 1 auto;
    align-self: center;
    vertical-align: middle;
    width: auto;
    min-width: 0;
    height: auto;
    max-width: min(100%, 300px, var(--site-brand-logo-width, 300px));
    max-height: var(--site-brand-logo-max-height);
    object-fit: contain;
    object-position: center;
}

.site-brand-logo-menu {
    min-height: 80px;
}

.site-brand-logo--compact {
    max-width: min(100%, 300px, var(--site-brand-logo-width, 300px));
}

.site-brand-logo--wide {
    --site-brand-logo-max-height: 55px;
    max-width: min(100%, 300px, var(--site-brand-logo-width, 300px));
}

.site-brand-logo--center {
    margin-inline: auto;
}

/* responsive adaptation to prevent header overflow on small screens (< 500px) */
@media (max-width: 500px) {
    .site-brand-logo,
    .site-brand-logo--compact,
    .site-brand-logo--wide {
        max-width: min(100%, 52vw, 220px) !important;
        --site-brand-logo-max-height: 48px !important;
    }
}

.cms-header-row {
    height: auto !important;
    min-height: var(--cms-header-row-min-height, 4.5rem);
    padding-block: var(--cms-header-row-padding, .5rem);
}

.cms-header-nav {
    min-width: 0;
    flex-wrap: wrap !important;
    row-gap: var(--cms-header-nav-row-gap, .45rem);
}

.cms-header-nav > a,
.site-nav > a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.cms-header-actions {
    flex: 0 0 auto;
}

.site-search-link {
    --site-search-accent: #2563eb;
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    flex: 0 0 auto;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 999px;
    opacity: .82;
    text-decoration: none;
    transition:
        color .2s ease,
        opacity .2s ease,
        transform .2s ease;
}

/* Ensure the search icon is visible in dark mode and light mode */
html.dark .site-search-link {
    color: #f1f5f9;
}
html.light .site-search-link {
    color: #1e293b;
}
/* Fallback for dark theme default layouts (like Cinema) when no class is set yet on HTML */
body.bg-cinema-950 .site-search-link {
    color: #f1f5f9;
}
html.light body.bg-cinema-950 .site-search-link {
    color: #1e293b;
}

.site-search-link:hover {
    color: var(--site-search-accent);
    opacity: 1;
    text-decoration: none;
    transform: translateY(-1px);
}

.site-search-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--site-search-accent) 26%, transparent);
    outline-offset: 3px;
}

.site-search-link__icon {
    display: block;
    width: 25px;
    height: 25px;
}

.block {
    --cms-block-surface: var(--c-surface, var(--m-surface, var(--a-surface, var(--j-surface, var(--r-surface, var(--n-panel, var(--surface, #ffffff)))))));
    --cms-block-soft: var(--c-soft, var(--m-soft, var(--a-soft, var(--j-soft, var(--r-soft, var(--n-soft, var(--soft, #f8fafc)))))));
    --cms-block-text: var(--c-text, var(--m-text, var(--a-text, var(--j-text, var(--r-text, var(--n-text, var(--text, #111827)))))));
    --cms-block-muted: var(--c-muted, var(--m-muted, var(--a-muted, var(--j-muted, var(--r-text-muted, var(--n-muted, var(--muted, #64748b)))))));
    --cms-block-border: var(--c-border, var(--m-line, var(--a-line, var(--j-line, var(--r-line, var(--n-border, var(--border, #e2e8f0)))))));
    --cms-block-accent: var(--c-brand, var(--m-accent, var(--a-accent, var(--j-accent, var(--r-accent, var(--n-accent, var(--brand, #2563eb)))))));
    max-width: var(--cms-block-max-width, 760px);
    margin-block: var(--cms-block-margin, clamp(20px, 3.5vw, 32px));
    color: var(--cms-block-text);
}

.block > :first-child {
    margin-top: 0;
}

.block > :last-child {
    margin-bottom: 0;
}

.block-heading {
    margin-top: clamp(34px, 5vw, 52px);
    margin-bottom: clamp(10px, 2vw, 16px);
    color: var(--cms-block-text);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
}

h2.block-heading {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3.block-heading {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

h4.block-heading {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.block-heading::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 12px;
    background: var(--cms-block-accent);
    border-radius: 999px;
}

.block-paragraph {
    font-size: 1.02rem;
    line-height: 1.78;
}

.block-paragraph p {
    margin-block: 0 1em;
}

.block-paragraph a {
    color: var(--cms-block-accent);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.block-image {
    margin-inline: 0;
}

.block-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: var(--cms-block-soft);
    border: 1px solid var(--cms-block-border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .09);
}

.block-image figcaption {
    margin-top: 10px;
    color: var(--cms-block-muted);
    font-size: .92rem;
    line-height: 1.45;
    text-align: center;
}

.block-quote {
    position: relative;
    padding: clamp(20px, 3vw, 28px);
    color: var(--cms-block-text);
    background: var(--cms-block-surface);
    border: 1px solid var(--cms-block-border);
    border-left: 5px solid var(--cms-block-accent);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}

.block-quote p {
    margin: 0;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.6;
}

.block-quote cite {
    display: block;
    margin-top: 12px;
    color: var(--cms-block-muted);
    font-size: .95rem;
    font-style: normal;
    font-weight: 750;
}

.block-list {
    display: grid;
    gap: 10px;
    padding: clamp(18px, 3vw, 24px) clamp(20px, 3vw, 28px);
    color: var(--cms-block-text);
    background: var(--cms-block-soft);
    border: 1px solid var(--cms-block-border);
    border-radius: 8px;
    list-style-position: outside;
}

ul.block-list {
    padding-left: clamp(38px, 5vw, 48px);
    list-style-type: disc;
}

ol.block-list {
    padding-left: clamp(38px, 5vw, 48px);
    list-style-type: decimal;
}

.block-list li {
    padding-left: 4px;
    line-height: 1.65;
}

.block-raw-html {
    padding: clamp(18px, 3vw, 24px);
    background: var(--cms-block-surface);
    border: 1px solid var(--cms-block-border);
    background: color-mix(in srgb, var(--cms-block-accent) 8%, var(--cms-block-surface));
    border: 1px solid color-mix(in srgb, var(--cms-block-accent) 24%, var(--cms-block-border));
    border-radius: 8px;
}

.block-raw-html--prose {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.block-raw-html--prose p {
    margin-block: 0 1em;
    line-height: 1.78;
}

.block-raw-html--prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: clamp(18px, 3vw, 28px) auto;
    border-radius: 8px;
}

.block-raw-html--prose a {
    color: var(--cms-block-accent);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.component-fallback {
    max-width: var(--cms-block-max-width, 760px);
    margin-block: clamp(20px, 3.5vw, 32px);
    padding: 16px 18px;
    color: var(--cms-block-muted, #64748b);
    background: var(--cms-block-soft, #f8fafc);
    border: 1px dashed var(--cms-block-border, #e2e8f0);
    border-radius: 8px;
}

.article-tools {
    --article-tools-surface: var(--c-surface, var(--m-surface, var(--a-surface, var(--j-surface, var(--r-surface, var(--n-panel, var(--surface, #ffffff)))))));
    --article-tools-text: var(--c-text, var(--m-text, var(--a-text, var(--j-text, var(--r-text, var(--n-text, var(--text, #111827)))))));
    --article-tools-muted: var(--c-muted, var(--m-muted, var(--a-muted, var(--j-muted, var(--r-muted, var(--n-muted, var(--muted, #64748b)))))));
    --article-tools-border: var(--c-border, var(--m-line, var(--a-line, var(--j-line, var(--r-line, var(--n-border, var(--border, #e2e8f0)))))));
    --article-tools-accent: var(--c-brand, var(--m-accent, var(--a-accent, var(--j-accent, var(--r-accent, var(--n-accent, var(--brand, #2563eb)))))));
    color: var(--article-tools-text);
    background: var(--article-tools-surface);
    border: 1px solid var(--article-tools-border);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 26px);
}

.article-tools__title {
    margin: 0 0 14px;
    color: var(--article-tools-muted);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.article-share__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-share__links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    color: #ffffff;
    background: var(--article-tools-accent);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1;
}

.article-share__links a:hover {
    color: #ffffff;
    filter: brightness(.95);
    text-decoration: none;
}

.article-toc {
    border-left: 4px solid var(--article-tools-accent);
}

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

.article-toc__item {
    margin: 0;
    line-height: 1.35;
}

.article-toc__item--level-3 {
    padding-left: 18px;
}

.article-toc__item--level-4 {
    padding-left: 36px;
}

.article-toc__item a {
    color: var(--article-tools-text);
    font-weight: 700;
}

.article-toc__item a:hover {
    color: var(--article-tools-accent);
}

.article-author {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.article-author__avatar {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    background: var(--article-tools-border);
    border: 1px solid var(--article-tools-border);
    border-radius: 50%;
}

.article-author__name {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.15;
}

.article-author__role,
.article-author__bio {
    margin: 8px 0 0;
    color: var(--article-tools-muted);
}

.article-author__bio {
    max-width: 62ch;
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.article-related__grid > * {
    min-width: 0;
}

.author-list-component {
    --author-list-surface: var(--home-surface, var(--c-surface, var(--m-surface, var(--a-surface, var(--j-surface, var(--r-surface, var(--n-panel, var(--surface, #ffffff))))))));
    --author-list-soft: var(--home-soft, var(--c-soft, var(--m-soft, var(--a-soft, var(--j-soft, var(--r-soft, var(--n-soft, var(--soft, #f8fafc))))))));
    --author-list-text: var(--home-text, var(--c-text, var(--m-text, var(--a-text, var(--j-text, var(--r-text, var(--n-text, var(--text, #111827))))))));
    --author-list-muted: var(--home-muted, var(--c-muted, var(--m-muted, var(--a-muted, var(--j-muted, var(--r-text-muted, var(--n-muted, var(--muted, #64748b))))))));
    --author-list-border: var(--home-border, var(--c-border, var(--m-line, var(--a-line, var(--j-line, var(--r-line, var(--n-border, var(--border, #e2e8f0))))))));
    --author-list-accent: var(--home-accent, var(--c-brand, var(--m-accent, var(--a-accent, var(--j-accent, var(--r-accent, var(--n-accent, var(--brand, #2563eb))))))));
    --author-list-shadow: var(--home-shadow, 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02));
    --author-list-shadow-hover: var(--home-shadow, 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03));
    margin-block: clamp(32px, 6vw, 64px);
    color: var(--author-list-text);
}

/* Day/Night Mode (Dark Mode Overrides) */
html.dark .author-list-component,
.dark .author-list-component {
    --author-list-surface: var(--home-surface, #1e293b);
    --author-list-soft: var(--home-soft, #0f172a);
    --author-list-text: var(--home-text, #f8fafc);
    --author-list-muted: var(--home-muted, #94a3b8);
    --author-list-border: var(--home-border, #334155);
    --author-list-accent: var(--home-accent, #3b82f6);
    --author-list-shadow: var(--home-shadow, 0 10px 30px -10px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2));
    --author-list-shadow-hover: var(--home-shadow, 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3));
}

/* Header & Intro */
.author-list-component__header {
    max-width: 760px;
    margin-bottom: clamp(24px, 4vw, 36px);
}

.author-list-component__title {
    margin: 0;
    color: var(--author-list-text);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.author-list-component__intro {
    margin: 12px 0 0;
    color: var(--author-list-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.author-list-component__empty {
    margin: 0;
    padding: 24px;
    color: var(--author-list-muted);
    background: var(--author-list-soft);
    border: 1px dashed var(--author-list-border);
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
}

/* Grid & Grouping */
.author-list-component__grid {
    display: grid;
    grid-template-columns: repeat(var(--author-list-columns, 3), minmax(0, 1fr));
    gap: clamp(20px, 3vw, 30px);
}

.author-list-group + .author-list-group {
    margin-top: clamp(36px, 6vw, 60px);
}

.author-list-group__title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    color: var(--author-list-text);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.author-list-group__title::after {
    content: "";
    flex: 1;
    min-width: 48px;
    height: 1px;
    background: var(--author-list-border);
}

/* Card Base Structure */
.author-list-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(20px, 3vw, 28px);
    color: var(--author-list-text);
    background: var(--author-list-surface);
    border: 1px solid var(--author-list-border);
    border-radius: 12px;
    box-shadow: var(--author-list-shadow);
    transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.author-list-card--linked {
    cursor: pointer;
}

.author-list-card:hover {
    border-color: color-mix(in srgb, var(--author-list-accent) 40%, var(--author-list-border));
    box-shadow: var(--author-list-shadow-hover);
    transform: translateY(-4px);
}

.author-list-card--linked:focus-within {
    border-color: color-mix(in srgb, var(--author-list-accent) 55%, var(--author-list-border));
    box-shadow: var(--author-list-shadow-hover);
}

/* Typographic Details */
.author-list-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.author-list-card__name {
    margin: 0;
    color: var(--author-list-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.author-list-card__name a {
    position: static;
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.author-list-card--linked .author-list-card__name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.author-list-card--linked:hover .author-list-card__name a,
.author-list-card__name a:hover {
    color: var(--author-list-accent);
}

.author-list-card__name a:focus-visible {
    outline: 2px solid var(--author-list-accent);
    outline-offset: 4px;
}

.author-list-card__role {
    margin: 6px 0 0;
    color: var(--author-list-accent);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.author-list-card__bio {
    margin: 14px 0 0;
    color: var(--author-list-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   VARIANT 1: CARDS Layout (Avatar left-aligned, standard vertical sequence)
   ========================================================================== */
.author-list-component--cards .author-list-card {
    align-items: flex-start;
    gap: 20px;
}

.author-list-component--cards .author-list-card__avatar-wrap {
    width: 80px;
    height: 80px;
    position: relative;
}

.author-list-component--cards .author-list-card__avatar,
.author-list-component--cards .author-list-card__initial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--author-list-border);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.author-list-component--cards .author-list-card__initial {
    display: grid;
    place-items: center;
    color: var(--author-list-accent);
    background: color-mix(in srgb, var(--author-list-accent) 8%, var(--author-list-surface));
    font-size: 1.85rem;
    font-weight: 800;
}

/* ==========================================================================
   VARIANT 2: PORTRAIT Layout (Full bleed top image, crop aspect ratio)
   ========================================================================== */
.author-list-component--portrait .author-list-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.author-list-component--portrait .author-list-card__avatar-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    background: var(--author-list-soft);
}

.author-list-component--portrait .author-list-card__avatar,
.author-list-component--portrait .author-list-card__initial {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.author-list-component--portrait .author-list-card:hover .author-list-card__avatar {
    transform: scale(1.05);
}

.author-list-component--portrait .author-list-card__initial {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    display: grid;
    place-items: center;
    color: var(--author-list-accent);
    background: color-mix(in srgb, var(--author-list-accent) 8%, var(--author-list-surface));
}

.author-list-component--portrait .author-list-card__body {
    padding: clamp(20px, 3vw, 24px);
}

/* ==========================================================================
   VARIANT 3: EDITORIAL Layout (Horizontal split grid on larger viewports)
   ========================================================================== */
.author-list-component--editorial .author-list-component__grid {
    grid-template-columns: 1fr;
    gap: 28px;
}

.author-list-component--editorial .author-list-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 36px);
    align-items: stretch;
    padding: 24px;
    border-radius: 14px;
}

.author-list-component--editorial .author-list-card__avatar-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
    background: var(--author-list-soft);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.author-list-component--editorial .author-list-card__avatar,
.author-list-component--editorial .author-list-card__initial {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.author-list-component--editorial .author-list-card:hover .author-list-card__avatar {
    transform: scale(1.04);
}

.author-list-component--editorial .author-list-card__initial {
    font-size: clamp(2.5rem, 6vw, 4rem);
    display: grid;
    place-items: center;
    color: var(--author-list-accent);
    background: color-mix(in srgb, var(--author-list-accent) 8%, var(--author-list-surface));
}

.author-list-component--editorial .author-list-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-list-component--editorial .author-list-card__name {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

.author-list-component--editorial .author-list-card__bio {
    max-width: 68ch;
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ==========================================================================
   VARIANT 4: LIST Layout (Elegant horizontal listing rows with divider shadows)
   ========================================================================== */
.author-list-component--list .author-list-component__grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.author-list-component--list .author-list-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.author-list-component--list .author-list-card__avatar-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.author-list-component--list .author-list-card__avatar,
.author-list-component--list .author-list-card__initial {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--author-list-border);
}

.author-list-component--list .author-list-card__initial {
    font-size: 1.75rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    color: var(--author-list-accent);
    background: color-mix(in srgb, var(--author-list-accent) 8%, var(--author-list-surface));
}

.author-list-component--list .author-list-card__body {
    flex: 1;
    min-width: 0;
}

.author-list-component--list .author-list-card__bio {
    margin-top: 8px;
}

/* ==========================================================================
   VARIANT 5: COMPACT Layout (Very space-efficient rows, ideal for widgets/aside)
   ========================================================================== */
.author-list-component--compact .author-list-component__grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.author-list-component--compact .author-list-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: none;
    background: var(--author-list-soft);
    border: 1px solid var(--author-list-border);
}

.author-list-component--compact .author-list-card:hover {
    background: var(--author-list-surface);
    border-color: color-mix(in srgb, var(--author-list-accent) 30%, var(--author-list-border));
    transform: translateY(-1px);
}

.author-list-component--compact .author-list-card__avatar-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.author-list-component--compact .author-list-card__avatar,
.author-list-component--compact .author-list-card__initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--author-list-border);
}

.author-list-component--compact .author-list-card__initial {
    font-size: 1.15rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    color: var(--author-list-accent);
    background: color-mix(in srgb, var(--author-list-accent) 8%, var(--author-list-surface));
}

.author-list-component--compact .author-list-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-list-component--compact .author-list-card__name {
    font-size: 1rem;
}

.author-list-component--compact .author-list-card__role {
    margin-top: 0;
    font-size: 0.7rem;
}

.author-list-component--compact .author-list-card__bio {
    display: none; /* Hide bio in compact layout */
}

.author-archive-page {
    --author-archive-surface: var(--home-surface, #ffffff);
    --author-archive-soft: var(--home-soft, #f8fafc);
    --author-archive-text: var(--home-text, #111827);
    --author-archive-muted: var(--home-muted, #64748b);
    --author-archive-border: var(--home-border, #e2e8f0);
    --author-archive-accent: var(--home-accent, #2563eb);
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
    padding-block: clamp(42px, 7vw, 88px);
    color: var(--author-archive-text);
}

html.dark .author-archive-page,
.dark .author-archive-page {
    --author-archive-surface: var(--home-surface, #1e293b);
    --author-archive-soft: var(--home-soft, #0f172a);
    --author-archive-text: var(--home-text, #f8fafc);
    --author-archive-muted: var(--home-muted, #94a3b8);
    --author-archive-border: var(--home-border, #334155);
    --author-archive-accent: var(--home-accent, #3b82f6);
}

.author-archive-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: center;
    padding: clamp(22px, 4vw, 40px);
    background: var(--author-archive-surface);
    border: 1px solid var(--author-archive-border);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.author-archive-hero__avatar {
    display: grid;
    place-items: center;
    width: clamp(96px, 14vw, 156px);
    aspect-ratio: 1;
    overflow: hidden;
    color: var(--author-archive-accent);
    background: var(--author-archive-soft);
    border: 1px solid var(--author-archive-border);
    border-radius: 18px;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1;
}

.author-archive-hero__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-archive-hero__eyebrow {
    margin: 0 0 10px;
    color: var(--author-archive-accent);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.author-archive-hero h1 {
    margin: 0;
    color: var(--author-archive-text);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: .98;
}

.author-archive-hero__role {
    margin: 12px 0 0;
    color: var(--author-archive-muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 750;
}

.author-archive-hero__bio {
    max-width: 72ch;
    margin: 16px 0 0;
    color: var(--author-archive-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.author-archive-posts {
    margin-top: clamp(42px, 7vw, 76px);
}

.author-archive-posts__header {
    max-width: 760px;
    margin-bottom: clamp(22px, 4vw, 34px);
}

.author-archive-posts__header h2 {
    margin: 0;
    color: var(--author-archive-text);
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
}

.author-archive-posts__header p:not(.author-archive-hero__eyebrow),
.author-archive-posts__empty {
    margin: 10px 0 0;
    color: var(--author-archive-muted);
    line-height: 1.65;
}

.author-archive-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 34px);
}

.author-archive-post-card {
    min-width: 0;
    padding: clamp(20px, 3vw, 26px);
    background: var(--author-archive-surface);
    border: 1px solid var(--author-archive-border);
    border-radius: 14px;
}

.author-archive-post-card h3 {
    margin: 0;
    color: var(--author-archive-text);
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.2;
}

.author-archive-post-card a {
    color: inherit;
    text-decoration: none;
}

.author-archive-post-card p:not(.author-archive-hero__eyebrow) {
    margin: 12px 0 0;
    color: var(--author-archive-muted);
    line-height: 1.65;
}

/* ==========================================================================
   RESPONSIVENESS (Grid & variant-specific adaptations)
   ========================================================================== */
@media (max-width: 900px) {
    .author-list-component--columns-3 .author-list-component__grid,
    .author-list-component--columns-4 .author-list-component__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .author-list-component__grid,
    .author-list-component--columns-2 .author-list-component__grid,
    .author-list-component--columns-3 .author-list-component__grid,
    .author-list-component--columns-4 .author-list-component__grid,
    .author-list-component--list .author-list-component__grid,
    .author-list-component--compact .author-list-component__grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .author-list-card {
        padding: 20px;
    }

    .author-list-component--editorial .author-list-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .author-list-component--editorial .author-list-card__avatar-wrap {
        aspect-ratio: 4 / 3;
    }
    
    .author-list-component--list .author-list-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .author-list-component--compact .author-list-card {
        flex-direction: row; /* Keep row for compact even on mobile */
        align-items: center;
    }

    .author-archive-hero,
    .author-archive-posts__grid {
        grid-template-columns: 1fr;
    }

    .author-archive-hero__avatar {
        width: 112px;
    }
}

.navigation-menu {
    --navigation-menu-surface: var(--c-surface, var(--m-surface, var(--a-surface, var(--j-surface, var(--r-surface, var(--n-panel, var(--surface, #ffffff)))))));
    --navigation-menu-text: var(--c-text, var(--m-text, var(--a-text, var(--j-text, var(--r-text, var(--n-text, var(--text, #111827)))))));
    --navigation-menu-muted: var(--c-muted, var(--m-muted, var(--a-muted, var(--j-muted, var(--r-muted, var(--n-muted, var(--muted, #64748b)))))));
    --navigation-menu-border: var(--c-border, var(--m-line, var(--a-line, var(--j-line, var(--r-line, var(--n-border, var(--border, #e2e8f0)))))));
    --navigation-menu-accent: var(--c-brand, var(--m-accent, var(--a-accent, var(--j-accent, var(--r-accent, var(--n-accent, var(--brand, #2563eb)))))));
    color: var(--navigation-menu-text);
    background: var(--navigation-menu-surface);
    border: 1px solid var(--navigation-menu-border);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 26px);
}

.navigation-menu__title {
    margin: 0 0 14px;
    color: var(--navigation-menu-muted);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.navigation-menu__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-menu__list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    color: var(--navigation-menu-text);
    background: color-mix(in srgb, var(--navigation-menu-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--navigation-menu-accent) 24%, var(--navigation-menu-border));
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1;
}

.navigation-menu__list a:hover {
    color: #ffffff;
    background: var(--navigation-menu-accent);
    border-color: var(--navigation-menu-accent);
    text-decoration: none;
}

.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
    font-size: .86rem;
    font-weight: 750;
}

.footer-navigation a {
    color: inherit;
    opacity: .78;
}

.footer-navigation a:hover {
    opacity: 1;
    text-decoration: underline;
}

.archive-pagination {
    --archive-pagination-surface: var(--c-surface, var(--m-surface, var(--a-surface, var(--j-surface, var(--r-surface, var(--n-panel, var(--surface, #ffffff)))))));
    --archive-pagination-text: var(--c-text, var(--m-text, var(--a-text, var(--j-text, var(--r-text, var(--n-text, var(--text, #111827)))))));
    --archive-pagination-muted: var(--c-muted, var(--m-muted, var(--a-muted, var(--j-muted, var(--r-muted, var(--n-muted, var(--muted, #64748b)))))));
    --archive-pagination-border: var(--c-border, var(--m-line, var(--a-line, var(--j-line, var(--r-line, var(--n-border, var(--border, #e2e8f0)))))));
    --archive-pagination-accent: var(--c-brand, var(--m-accent, var(--a-accent, var(--j-accent, var(--r-accent, var(--n-accent, var(--brand, #2563eb)))))));
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    max-width: 760px;
    margin: 34px auto 0;
    color: var(--archive-pagination-text);
}

.archive-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-pagination__control,
.archive-pagination__page,
.archive-pagination__ellipsis {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--archive-pagination-text);
    background: var(--archive-pagination-surface);
    border: 1px solid var(--archive-pagination-border);
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
}

.archive-pagination__ellipsis {
    color: var(--archive-pagination-muted);
    background: transparent;
    border-color: transparent;
}

.archive-pagination__control {
    min-width: 108px;
}

.archive-pagination__control:hover,
.archive-pagination__page:hover,
.archive-pagination__page--current {
    color: #ffffff;
    background: var(--archive-pagination-accent);
    border-color: var(--archive-pagination-accent);
    text-decoration: none;
}

.archive-pagination__control--disabled {
    color: var(--archive-pagination-muted);
    opacity: .55;
}

.theme-toggle[data-theme-toggle] {
    --theme-toggle-accent: #2563eb;
    --theme-toggle-track-light: #dbeafe;
    --theme-toggle-track-dark: #0f172a;
    --theme-toggle-border-light: #93c5fd;
    --theme-toggle-border-dark: #334155;
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    flex: 0 0 auto;
    width: 78px;
    min-width: 78px;
    height: 42px;
    min-height: 42px;
    align-items: center;
    gap: 0;
    padding: 5px;
    overflow: hidden;
    color: #0f172a;
    appearance: none;
    background: var(--theme-toggle-track-light);
    border: 1px solid var(--theme-toggle-border-light);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        0 10px 24px rgba(15, 23, 42, .14);
    cursor: pointer;
    isolation: isolate;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 20;
    transition:
        background-color .24s ease,
        border-color .24s ease,
        box-shadow .24s ease,
        transform .24s ease;
}

.theme-toggle[data-theme-toggle]::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 5px;
    left: 5px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow:
        0 5px 12px rgba(15, 23, 42, .16),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transition:
        transform .28s cubic-bezier(.22, 1, .36, 1),
        background-color .24s ease,
        box-shadow .24s ease;
}

.theme-toggle[data-theme-toggle]:hover {
    transform: translateY(-1px);
    border-color: #60a5fa;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 14px 30px rgba(15, 23, 42, .18);
}

.theme-toggle[data-theme-toggle]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 3px;
}

.theme-toggle__option {
    position: relative;
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    color: #64748b;
    transition:
        color .24s ease,
        opacity .24s ease,
        transform .24s ease;
}

.theme-toggle__icon {
    display: block;
    width: 16px;
    height: 16px;
}

.theme-toggle__icon--moon {
    width: 14px;
    height: 14px;
}

.theme-toggle__option--sun .theme-toggle__icon {
    transform: translateX(-1px);
}

.theme-toggle__option--moon .theme-toggle__icon {
    transform: translateX(2px);
}

.theme-toggle__option--sun {
    color: #f59e0b;
}

.theme-toggle__option--moon {
    color: #64748b;
    opacity: .72;
}

.theme-toggle[data-theme-toggle]:hover .theme-toggle__option--sun,
.theme-toggle[data-theme-toggle]:hover .theme-toggle__option--moon {
    opacity: 1;
}

html.dark .theme-toggle[data-theme-toggle],
.theme-toggle[data-theme-toggle][data-mode="dark"] {
    color: #f8fafc;
    background: var(--theme-toggle-track-dark);
    border-color: var(--theme-toggle-border-dark);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 12px 26px rgba(0, 0, 0, .26);
}

html.dark .theme-toggle[data-theme-toggle]::before,
.theme-toggle[data-theme-toggle][data-mode="dark"]::before {
    transform: translateX(36px);
    background: #1e3a8a;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .08),
        0 6px 16px rgba(0, 0, 0, .32),
        0 0 18px rgba(96, 165, 250, .34);
}

html.dark .theme-toggle__option--sun,
.theme-toggle[data-mode="dark"] .theme-toggle__option--sun {
    color: #fbbf24;
    opacity: .72;
}

html.dark .theme-toggle__option--moon,
.theme-toggle[data-mode="dark"] .theme-toggle__option--moon {
    color: #ffffff;
    opacity: 1;
}

html.light .theme-toggle[data-theme-toggle]::before,
.theme-toggle[data-theme-toggle][data-mode="light"]::before {
    transform: translateX(0);
}

html.light .theme-toggle__option--sun,
.theme-toggle[data-mode="light"] .theme-toggle__option--sun {
    color: #f59e0b;
    opacity: 1;
}

html.light .theme-toggle__option--moon,
.theme-toggle[data-mode="light"] .theme-toggle__option--moon {
    color: #64748b;
    opacity: .72;
}

.theme-toggle--icon[data-theme-toggle] {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    display: inline-grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    color: #0f172a;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

html.dark .theme-toggle--icon[data-theme-toggle],
html.light .theme-toggle--icon[data-theme-toggle],
.theme-toggle--icon[data-theme-toggle][data-mode="dark"],
.theme-toggle--icon[data-theme-toggle][data-mode="light"] {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

html.dark .theme-toggle--icon[data-theme-toggle],
.theme-toggle--icon[data-theme-toggle][data-mode="dark"] {
    color: #f8fafc;
}

.theme-toggle--icon[data-theme-toggle]::before {
    display: none;
}

html.dark .theme-toggle--icon[data-theme-toggle]::before,
html.light .theme-toggle--icon[data-theme-toggle]::before,
.theme-toggle--icon[data-theme-toggle][data-mode="dark"]::before,
.theme-toggle--icon[data-theme-toggle][data-mode="light"]::before {
    display: none;
}

.theme-toggle--icon[data-theme-toggle] .theme-toggle__option {
    grid-area: 1 / 1;
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: scale(.7) rotate(-22deg);
}

.theme-toggle--icon .theme-toggle__icon {
    width: 24px;
    height: 24px;
}

.theme-toggle--icon .theme-toggle__icon--moon {
    width: 23px;
    height: 23px;
}

html.light .theme-toggle--icon .theme-toggle__option--sun,
.theme-toggle--icon[data-mode="light"] .theme-toggle__option--sun {
    opacity: 1;
    transform: scale(1) rotate(0);
}

html.dark .theme-toggle--icon .theme-toggle__option--moon,
.theme-toggle--icon[data-mode="dark"] .theme-toggle__option--moon {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.theme-toggle--icon[data-theme-toggle]:hover {
    color: var(--theme-toggle-accent);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle[data-theme-toggle],
    .theme-toggle[data-theme-toggle]::before,
    .theme-toggle__option,
    .site-search-link {
        transition: none;
    }
}

@media (max-width: 560px) {
    .article-author {
        grid-template-columns: 1fr;
    }

    .article-author__avatar {
        width: 64px;
        height: 64px;
    }

}
