/*
Theme Name: AstroFla — Claude Design Edition
Theme URI: https://astrofla.com
Author: AstroFla
Author URI: https://astrofla.com
Description: Blog di astrologia di nuova generazione. Linguaggio visivo Anthropic/Claude, tipografia Instrument Serif + Inter, palette crema/terracotta/inchiostro, layout editoriale con hero, Editor's Choice, What's New e sidebar, modalità chiara/scura/seppia, architettura PHP modulare (inc/), SEO e OG centralizzati, JSON-LD singolo, accessibilità WCAG 2.1 AA (focus trap, contrasti AA, touch target 44px, aria-current), preload LCP, fonts caricati una sola volta, JS deferred, mobile-first con breakpoint 1024/768/480.
Version: 3.9.2.1
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astrofla
Tags: blog, one-column, two-columns, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, block-patterns, editor-style, threaded-comments

AstroFla v3.9.0 — rebuild su template v3.6.2 + architettura modulare v4.0.0.
Instrument Serif + Inter, terracotta #d97757 su crema #faf9f5, inchiostro #141413.
Patch mirate in fondo (blocco "v3.9.0 AUDIT FIXES") — mobile, a11y, contrasto, LCP.
*/

/* ============================================
   CSS CUSTOM PROPERTIES — Anthropic / Claude Design System
   ============================================ */
:root {
    /* Surfaces */
    --color-bg:             #faf9f5; /* cream */
    --color-bg-alt:         #f4f2ea;
    --color-bg-card:        #ffffff;
    --color-surface:        #efede4;

    /* Text */
    --color-text:                 #141413; /* ink */
    --color-text-secondary:       #3a3a36;
    --color-text-muted:           #6b6962; /* WCAG AA against cream (≥4.5:1) */
    --color-text-muted-on-dark:   #b0aea5; /* for use on dark surfaces */

    /* Brand accents */
    --color-accent:        #d97757; /* terracotta */
    --color-accent-hover:  #c4623f;
    --color-accent-dark:   #a84d2d;
    --color-accent-soft:   #f5ede8;

    /* Borders / tags */
    --color-border:        #e5e2d7;
    --color-border-light:  #efede4;
    --color-tag-bg:        #f0eadf;
    --color-tag-text:      #3a3a36;

    /* Status */
    --color-success:       #788c5d;

    /* Legacy aliases (still referenced across file) */
    --color-yellow:        #d97757;
    --color-yellow-hover:  #c4623f;
    --color-yellow-light:  #f5ede8;
    --color-orange:        #d97757;
    --color-blue:          #6a9bcc;
    --color-green:         #788c5d;

    /* Typography — v3.9.0: Instrument Serif + Inter (single Google Fonts URL) */
    --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing scale */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    --space-4xl: 6rem;
    --space-container: clamp(16px, 4vw, 32px);

    /* Layout + radii */
    --max-width:    1200px;
    --max-width-sm: 680px;
    --radius:       8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    20px;
    --radius-pill:  999px;

    /* Motion */
    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
}

/* Dark mode — Anthropic / Claude palette */
[data-theme="dark"] {
    --color-bg:             #141413;
    --color-bg-alt:         #1c1c1a;
    --color-bg-card:        #232320;
    --color-surface:        #2a2a27;
    --color-text:           #faf9f5;
    --color-text-secondary: #b0aea5;
    --color-text-muted:     #787670;
    --color-accent:         #d97757;
    --color-accent-hover:   #e8906e;
    --color-accent-soft:    #2e2520;
    --color-border:         #333330;
    --color-border-light:   #2a2a27;
    --color-tag-bg:         #2a2a27;
    --color-tag-text:       #b0aea5;
    --color-yellow:         #d97757;
    --color-yellow-hover:   #e8906e;
    --color-yellow-light:   #2e2520;
}

/* Sepia mode — Anthropic warm tint */
/* v3.9.1 — sepia muted darkened for AA contrast */
[data-theme="sepia"] {
    --color-bg:             #f5f0e4;
    --color-bg-alt:         #ede7d8;
    --color-bg-card:        #fbf7ee;
    --color-surface:        #e5dece;
    --color-text:           #2c261a;
    --color-text-secondary: #6b6050;
    --color-text-muted:     #7b7162;
    --color-accent:         #c4623f;
    --color-accent-hover:   #a85030;
    --color-accent-soft:    #ede0d6;
    --color-border:         #ddd5c4;
    --color-border-light:   #e5ddd0;
    --color-tag-bg:         #e5dece;
    --color-tag-text:       #6b6050;
    --color-yellow:         #c4623f;
    --color-yellow-hover:   #a85030;
    --color-yellow-light:   #f5ede4;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; }
h5 { font-size: 0.9375rem; }

p {
    font-size: 0.9375rem;
    line-height: 1.72;
    color: var(--color-text-secondary);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow { max-width: var(--max-width-sm); }
.container--wide   { max-width: 1320px; }

section { padding: var(--space-4xl) 0; }

/* Two-column layout with sidebar */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

.layout-sidebar__main { min-width: 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    font-family: var(--font-sans);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.nav.is-scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.nav__logo img,
.nav__logo svg { height: 26px; width: auto; }
.custom-logo-link img { height: 26px; width: auto; }

.nav__center {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav__link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
    transition: color var(--duration) var(--ease);
    position: relative;
}

.nav__link:hover,
.nav__link--active,
.current-menu-item > a { color: var(--color-text); }

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Icon buttons in nav */
.nav__icon-btn,
.nav__search-toggle,
.nav__theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--duration) var(--ease);
}

.nav__icon-btn:hover,
.nav__search-toggle:hover,
.nav__theme-toggle:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 1.625rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1.4;
}

.btn--sm { padding: 0.5rem 1.125rem; font-size: 0.75rem; }
.btn--lg { padding: 0.8125rem 1.875rem; font-size: 0.875rem; }

.btn--primary {
    background: var(--color-accent);
    color: #faf9f5;
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}
.btn--secondary:hover {
    border-color: var(--color-text);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    padding: 0.625rem 0;
}
.btn--ghost:hover { color: var(--color-text-secondary); }

.btn--white {
    background: #faf9f5;
    color: #141413;
}
.btn--white:hover { background: #e8e6dc; }

.btn--outline-white {
    background: transparent;
    color: #faf9f5;
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--outline-white:hover { border-color: rgba(255,255,255,0.5); }

.btn--yellow {
    background: var(--color-yellow);
    color: #faf9f5;
    font-weight: 500;
}
.btn--yellow:hover {
    background: var(--color-yellow-hover);
    transform: translateY(-1px);
}

.btn__arrow {
    width: 14px; height: 14px;
    transition: transform var(--duration) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 20px; height: 1.5px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--duration) var(--ease);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-bg);
    padding: 80px var(--space-xl) var(--space-xl);
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu a:hover { color: var(--color-text-secondary); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: calc(64px + var(--space-4xl)) 0 var(--space-3xl);
    text-align: center;
}

.hero--left { text-align: left; }
.hero--with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    text-align: left;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    /* v3.9.1 — 20px extra breathing room from the fixed nav bar */
    margin-top: 20px;
}

.hero__label-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-text-muted);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero__title {
    margin-bottom: var(--space-lg);
    max-width: 700px;
}

.hero--center .hero__title { margin-left: auto; margin-right: auto; }

.hero__title em { font-style: italic; font-weight: 400; }

.hero__subtitle {
    font-size: 1rem;
    max-width: 520px;
    margin-bottom: var(--space-xl);
    line-height: 1.75;
}

.hero--center .hero__subtitle { margin-left: auto; margin-right: auto; }

.hero__buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero--center .hero__buttons { justify-content: center; }

.hero__content { min-width: 0; }

.hero__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-surface);
    transition: box-shadow 0.3s ease, border-radius 0.3s ease;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Background image mode (center/left layouts with image) */
.hero--has-bg-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* v3.9.1 — strengthen overlay so hero text always meets WCAG AA contrast on photos */
.hero--has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(250,249,245,0.85) 0%, rgba(250,249,245,0.78) 60%, rgba(250,249,245,0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .hero--has-bg-image::before {
    background: linear-gradient(180deg, rgba(21,23,26,0.85) 0%, rgba(21,23,26,0.78) 60%, rgba(21,23,26,0.88) 100%);
}

[data-theme="sepia"] .hero--has-bg-image::before {
    background: linear-gradient(180deg, rgba(244,236,222,0.85) 0%, rgba(244,236,222,0.78) 60%, rgba(244,236,222,0.85) 100%);
}

.hero--has-bg-image > .container {
    position: relative;
    z-index: 2;
}

.hero--has-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: inherit;
    background-position: inherit;
    opacity: var(--hero-bg-opacity, 1);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   TRUST METRICS
   ============================================ */
.metrics {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.metrics__inner {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.metric { text-align: center; }

.metric__value {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.metric__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.section-head__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text);
    margin-bottom: 4px;
}

.section-head__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--duration) var(--ease);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-head__link:hover { color: var(--color-text-secondary); }

/* ============================================
   EDITOR'S CHOICE / FEATURED POSTS (Reiro-style)
   ============================================ */
.editors-choice {
    padding: var(--space-3xl) 0;
}

.editors-choice__container {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.editors-choice__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.editors-choice__badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.editors-choice__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
}

.editors-choice__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* Accent featured card — Claude Design signature */
.ec-card {
    background: var(--color-yellow);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.ec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(217, 119, 87, 0.25);
}

.ec-card__img-wrap {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.ec-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.ec-card__img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(160deg, #e8e6dc, #f0ede6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-card__body { padding: var(--space-xs) var(--space-sm) var(--space-sm); }

.ec-card__title {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: #faf9f5;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.ec-card__title a { color: inherit; }
.ec-card__title a:hover { opacity: 0.85; }

.ec-card__author {
    font-size: 0.8125rem;
    color: rgba(250,249,245,0.75);
}

.editors-choice__footer {
    text-align: center;
}

.editors-choice__footer a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--duration) var(--ease);
}

.editors-choice__footer a:hover { color: var(--color-text-secondary); }

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.categories__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.categories__list::-webkit-scrollbar { display: none; }

.cat-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-card);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.cat-chip:hover,
.cat-chip--active,
.cat-chip.current-cat {
    border-color: var(--color-accent);
    color: var(--color-text);
    background: var(--color-accent-soft);
}

/* ============================================
   POST CARDS — standard grid cards
   ============================================ */
.posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.posts__grid--two { grid-template-columns: repeat(2, 1fr); }

.pcard {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
}

.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

[data-theme="dark"] .pcard:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.25); }

.pcard__img-wrap { position: relative; overflow: hidden; }

.pcard__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.pcard:hover .pcard__img { transform: scale(1.03); }

/* Category tags as pills below image (Reiro style) */
.pcard__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.pcard__tag-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 3px 12px;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--duration) var(--ease);
}

.pcard__tag-pill:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

/* Legacy overlay tag (keep for compat) */
.pcard__tag {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--color-bg);
    color: var(--color-text);
    padding: 3px 10px;
    border-radius: 100px;
}

.pcard__tag a { color: inherit; }

.pcard__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pcard__title {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    margin-bottom: 8px;
    line-height: 1.3;
}
.pcard__title a { transition: color var(--duration) var(--ease); }
.pcard__title a:hover { color: var(--color-text-secondary); }

.pcard__excerpt {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.pcard__author { display: flex; align-items: center; gap: 8px; }

.pcard__avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-surface);
}

.pcard__author-name { font-size: 0.8125rem; font-weight: 600; color: var(--color-text); }
.pcard__read-time { font-size: 0.75rem; color: var(--color-text-muted); }

/* ============================================
   WHAT'S NEW — large post + sidebar layout
   ============================================ */
.whats-new {
    padding: var(--space-3xl) 0;
}

.whats-new__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

.whats-new__main { min-width: 0; }

/* Large featured post card (Reiro blog main card) */
.post-large {
    margin-bottom: var(--space-xl);
}

.post-large__img-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.post-large__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.post-large:hover .post-large__img { transform: scale(1.02); }

.post-large__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.post-large__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.post-large__title a { color: inherit; transition: color var(--duration) var(--ease); }
.post-large__title a:hover { color: var(--color-text-secondary); }

.post-large__excerpt {
    font-size: 0.9375rem;
    line-height: 1.72;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-large__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================
   SIDEBAR (Reiro-style)
   ============================================ */
.sidebar { position: sticky; top: 84px; }

/* Accent newsletter card — uses CSS custom properties for Customizer overrides */
.sidebar-newsletter {
    background: var(--sidebar-nl-bg, var(--color-yellow));
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.sidebar-newsletter__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sidebar-nl-label, rgba(250,249,245,0.6));
    margin-bottom: var(--space-sm);
}

.sidebar-newsletter__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sidebar-nl-text, #faf9f5);
    line-height: 1.3;
    margin-bottom: var(--space-xs);
}

.sidebar-newsletter__desc {
    font-size: 0.875rem;
    color: var(--sidebar-nl-text, rgba(250,249,245,0.8));
    line-height: 1.5;
    margin: 0 0 var(--space-lg) 0;
}

.sidebar-newsletter__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 100px;
    border: none;
    background: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: #141413;
    outline: none;
    margin-bottom: var(--space-sm);
}

.sidebar-newsletter__input::placeholder { color: #b0aea5; }
.sidebar-newsletter__input:focus { box-shadow: 0 0 0 2px rgba(20,20,19,0.15); }

.sidebar-newsletter__btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 100px;
    border: none;
    background: #141413;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: #faf9f5;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.sidebar-newsletter__btn:hover { background: #2a2a27; }

/* Sidebar small post cards */
.sidebar-post {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-xl);
}

.sidebar-post__img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.sidebar-post__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.sidebar-post:hover .sidebar-post__img { transform: scale(1.03); }

.sidebar-post__tags {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-xs);
}

.sidebar-post__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 4px;
}

.sidebar-post__title a { color: inherit; transition: color var(--duration) var(--ease); }
.sidebar-post__title a:hover { color: var(--color-text-secondary); }

.sidebar-post__author {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Generic widget styling */
.widget {
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.widget__title {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--color-border-light); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 0.875rem; color: var(--color-text-secondary); transition: color var(--duration) var(--ease); }
.widget ul li a:hover { color: var(--color-text); }

.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a {
    font-size: 0.75rem !important;
    padding: 4px 12px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text-secondary);
    transition: all var(--duration) var(--ease);
}
.tagcloud a:hover { border-color: var(--color-accent); color: var(--color-text); }

/* ============================================
   FEATURED POSTS (fcard — legacy compat)
   ============================================ */
.featured__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
}

.fcard {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.fcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

[data-theme="dark"] .fcard:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.fcard__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--color-surface);
}

.fcard__body { padding: var(--space-lg); }
.fcard--hero .fcard__body { padding: var(--space-xl); }

.fcard__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-tag-text);
    background: var(--color-tag-bg);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: var(--space-sm);
}

.fcard__tag a { color: inherit; }
.fcard__tag a:hover { color: var(--color-text); }

.fcard__title { margin-bottom: 8px; transition: color var(--duration) var(--ease); }
.fcard:hover .fcard__title { color: var(--color-text-secondary); }
.fcard--hero .fcard__title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.fcard__excerpt {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fcard__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.fcard__meta-item { display: flex; align-items: center; gap: 3px; }

.fcard__sidebar { display: flex; flex-direction: column; gap: var(--space-lg); }

.fcard--sm { display: grid; grid-template-columns: 130px 1fr; }
.fcard--sm .fcard__img { aspect-ratio: 1; height: 100%; }
.fcard--sm .fcard__body { padding: var(--space-md); display: flex; flex-direction: column; justify-content: center; }
.fcard--sm .fcard__title { font-size: 0.9375rem; }

/* ============================================
   SINGLE POST
   ============================================ */
.single-post__header {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
}

.single-post__tag { margin-bottom: var(--space-md); }

.single-post__title {
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.single-post__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.single-post__meta-item { display: flex; align-items: center; gap: 6px; }

.single-post__feature-img {
    max-width: 960px;
    margin: 0 auto var(--space-2xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.single-post__feature-img img { width: 100%; }

.single-post__content {
    max-width: var(--max-width-sm);
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.single-post__content p { margin-bottom: var(--space-lg); font-size: inherit; color: inherit; }
.single-post__content h2 { margin: var(--space-2xl) 0 var(--space-lg); }
.single-post__content h3 { margin: var(--space-xl) 0 var(--space-md); }
.single-post__content img { border-radius: var(--radius-md); margin: var(--space-xl) 0; }
.single-post__content blockquote {
    border-left: 3px solid var(--color-yellow);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-text-secondary);
}
.single-post__content ul, .single-post__content ol { margin: var(--space-lg) 0; padding-left: var(--space-xl); }
.single-post__content li { margin-bottom: var(--space-sm); }
.single-post__content a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.single-post__content a:hover { color: var(--color-text-secondary); }

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-2xl);
}

.post-nav__item { display: flex; flex-direction: column; gap: 4px; }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.post-nav__title { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; transition: color var(--duration) var(--ease); }
.post-nav__title:hover { color: var(--color-text-secondary); }

/* Author box */
.author-box {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}

.author-box__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--color-surface); flex-shrink: 0; }
.author-box__name { font-family: var(--font-sans); font-weight: 600; margin-bottom: 4px; }
.author-box__bio { font-size: 0.875rem; }

/* ============================================
   SUBSCRIBE COMPONENTS
   ============================================ */
.subscribe-section { background: var(--color-bg); padding: var(--space-4xl) 0; }

.subscribe-card {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-card__icon {
    width: 44px; height: 44px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius);
    background: var(--color-yellow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.subscribe-card__title { margin-bottom: 8px; }

.subscribe-card__desc {
    max-width: 420px;
    margin: 0 auto var(--space-xl);
    font-size: 0.9375rem;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

/* Stacked layout for subscribe page and when name field is shown */
.subscribe-form--stacked,
.subscribe-form--with-name {
    flex-direction: column;
    align-items: stretch;
}

.subscribe-form--stacked .subscribe-form__btn,
.subscribe-form--with-name .subscribe-form__btn {
    width: 100%;
}

.subscribe-form__input {
    flex: 1;
    padding: 0.6875rem 1.125rem;
    border-radius: 100px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.subscribe-form__input::placeholder { color: var(--color-text-muted); }
.subscribe-form__input:focus { border-color: var(--color-text); }

.subscribe-form__btn {
    padding: 0.6875rem 1.5rem;
    border-radius: 100px;
    border: none;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.subscribe-form__btn:hover { background: var(--color-accent-hover); }

.subscribe-form__note {
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Dark CTA section */
.cta-dark {
    background: #141413;
    color: #faf9f5;
    padding: var(--space-4xl) 0;
}

[data-theme="sepia"] .cta-dark { background: #2c261a; }

.cta-dark__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-dark h2 { color: #faf9f5; margin-bottom: var(--space-md); }
.cta-dark p { color: #b0aea5; margin-bottom: var(--space-xl); }

.cta-dark .subscribe-form__input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #faf9f5;
}
.cta-dark .subscribe-form__input::placeholder { color: #787670; }
.cta-dark .subscribe-form__input:focus { border-color: rgba(255,255,255,0.4); }
.cta-dark .subscribe-form__btn { background: var(--color-orange); color: #faf9f5; }
.cta-dark .subscribe-form__btn:hover { background: var(--color-yellow-hover); }
.cta-dark .subscribe-form__note { color: #787670; }

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-header {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

.page-header__title { max-width: 600px; margin: 0 auto var(--space-md); }
.page-header__desc { max-width: 480px; margin: 0 auto; }

.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

/* Default content inside pages stays narrow (readable width) */
.page-content > *:not(.alignwide):not(.alignfull):not(.wp-block-group.alignwide):not(.wp-block-group.alignfull) {
    max-width: var(--max-width-sm);
    margin-left: auto;
    margin-right: auto;
}

/* Wide blocks break out to 1200px container */
.page-content > .alignwide,
.page-content > .wp-block-group.alignwide {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Full-width blocks span edge to edge */
.page-content > .alignfull,
.page-content > .wp-block-group.alignfull {
    max-width: none;
    margin-left: calc(-1 * var(--space-xl));
    margin-right: calc(-1 * var(--space-xl));
    width: calc(100% + 2 * var(--space-xl));
}

.page-content p { margin-bottom: var(--space-lg); }
.page-content h2 { margin: var(--space-2xl) 0 var(--space-lg); }

/* About page */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.about__title { margin-bottom: var(--space-lg); }
.about__text { margin-bottom: var(--space-xl); }

.about__features { list-style: none; display: flex; flex-direction: column; gap: var(--space-lg); }

.about__feature { display: flex; align-items: flex-start; gap: var(--space-md); }

.about__feature-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--color-yellow-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text);
    margin-top: 2px;
}

.about__feature-text h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.875rem; margin-bottom: 2px; }
.about__feature-text p { font-size: 0.8125rem; }

.about__image {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

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

/* ============================================
   AUTHORS / ABOUT PAGE (Reiro-style)
   ============================================ */
.authors-page {
    padding: var(--space-3xl) 0;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.author-card {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    transition: all var(--duration) var(--ease);
}

.author-card:hover {
    border-color: var(--color-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

[data-theme="dark"] .author-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.author-card__avatar-wrap { flex-shrink: 0; }

.author-card__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-surface);
}

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

.author-card__name {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.author-card__name a { color: inherit; transition: color var(--duration) var(--ease); }
.author-card__name a:hover { color: var(--color-text-secondary); }

.author-card__bio {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.8125rem;
}

.author-card__post-count {
    color: var(--color-text-muted);
    font-weight: 500;
}

.author-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color var(--duration) var(--ease);
}

.author-card__link:hover { color: var(--color-text); }

/* ============================================
   CONTACT PAGE (Reiro-style)
   ============================================ */
.contact-page {
    padding: var(--space-3xl) 0;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-page__section-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

/* Contact form */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form__field {
    margin-bottom: var(--space-md);
}

.contact-form__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
    transition: border-color var(--duration) var(--ease);
    resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--color-text);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-form__submit {
    margin-top: var(--space-sm);
}

/* Contact info card */
.contact-info-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.contact-info-card__title {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.contact-info-card__item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-info-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--color-yellow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    flex-shrink: 0;
}

.contact-info-card__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact-info-card__value {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
}

a.contact-info-card__value { text-decoration: underline; text-underline-offset: 3px; }
a.contact-info-card__value:hover { color: var(--color-text-secondary); }

.contact-info-card__social {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.contact-info-card__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.contact-info-card__social-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--duration) var(--ease);
}

.contact-info-card__social-link:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-page {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-4xl);
}

.blog-page__header {
    margin-bottom: var(--space-2xl);
}

/* ============================================
   FEATURED PAGE (all featured posts)
   ============================================ */
.featured-page {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-4xl);
}

.featured-page__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.featured-page__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.featured-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__brand { max-width: 280px; }

.footer__logo {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: var(--space-md);
}

.footer__desc { font-size: 0.8125rem; line-height: 1.65; }

.footer__col-title {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__link { font-size: 0.8125rem; color: var(--color-text-secondary); transition: color var(--duration) var(--ease); }
.footer__link:hover { color: var(--color-text); }

.footer .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.footer .widget__title { border-bottom: none; padding-bottom: 0; }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__social { display: flex; gap: var(--space-sm); }

.footer__social-link {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--duration) var(--ease);
}

.footer__social-link:hover { color: var(--color-text); border-color: var(--color-text-muted); }

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay.is-open { display: flex; }

.search-overlay__inner {
    width: 100%;
    max-width: 560px;
    padding: var(--space-xl);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-overlay__input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--color-border);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
}

.search-overlay__input:focus { border-color: var(--color-text); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 10px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--duration) var(--ease);
}

.pagination a:hover { border-color: var(--color-text); color: var(--color-text); }
.pagination .current { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }

/* ============================================
   COMMENTS
   ============================================ */
.comments-area { margin-top: var(--space-2xl); padding-top: var(--space-2xl); border-top: 1px solid var(--color-border-light); }
.comments-area .comments-title { margin-bottom: var(--space-xl); }

.comment-list { list-style: none; }

.comment {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.comment-author { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.comment-author img { width: 32px; height: 32px; border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-size: 0.875rem; }
.comment-metadata { font-size: 0.75rem; color: var(--color-text-muted); }
.comment-content p { font-size: 0.9rem; }

.comment-respond { margin-top: var(--space-xl); }
.comment-respond .comment-reply-title { margin-bottom: var(--space-lg); }

.comment-form label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 4px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6875rem 1.125rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-bg);
    margin-bottom: var(--space-md);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-text); }

.comment-form .submit { margin-top: var(--space-sm); }

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    padding: calc(64px + var(--space-4xl)) 0 var(--space-4xl);
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-404__code {
    font-family: var(--font-sans);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-md);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.alignleft { float: left; margin-right: var(--space-lg); margin-bottom: var(--space-md); }
.alignright { float: right; margin-left: var(--space-lg); margin-bottom: var(--space-md); }
.aligncenter { display: block; margin: 0 auto var(--space-lg); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--color-text-muted); margin-top: var(--space-xs); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin: var(--space-xl) 0; }
.gallery-item img { border-radius: var(--radius); }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .layout-sidebar { grid-template-columns: 1fr; }
    .whats-new__layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .featured__grid { grid-template-columns: 1fr; }
    .fcard__sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    .editors-choice__grid { grid-template-columns: repeat(2, 1fr) !important; }
    .posts__grid { grid-template-columns: repeat(2, 1fr); }
    .featured-page__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .about__grid { grid-template-columns: 1fr; }
    .hero--with-image { grid-template-columns: 1fr; }
    .contact-page__grid { grid-template-columns: 1fr; }
    .authors-grid { grid-template-columns: 1fr; }
    /* v3.9.1 — collapse primary menu into mobile drawer on tablets (≤1024) */
    .nav__center { display: none; }
    .nav__burger { display: flex; }
    .nav__dropdown { display: none !important; }
}

@media (max-width: 768px) {
    .nav__center { display: none; }
    .nav__burger { display: flex; }
    .hero { padding: calc(64px + var(--space-3xl)) 0 var(--space-2xl); }
    .hero__buttons { flex-direction: column; align-items: stretch; }
    .hero--center .hero__buttons { align-items: center; }
    .btn { max-width: 280px; }
    .metrics__inner { gap: var(--space-xl); }
    .editors-choice__grid { grid-template-columns: 1fr !important; }
    .fcard--sm { grid-template-columns: 1fr; }
    .fcard__sidebar { grid-template-columns: 1fr; }
    .posts__grid { grid-template-columns: 1fr; }
    .featured-page__grid { grid-template-columns: 1fr; }
    .subscribe-form { flex-direction: column; }
    .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer__bottom { flex-direction: column; text-align: center; }
    .post-nav { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
    .editors-choice__container { padding: var(--space-2xl) var(--space-lg); }
    .contact-form__row { grid-template-columns: 1fr; }
    .author-card { flex-direction: column; align-items: center; text-align: center; }
    .author-card__avatar { width: 80px; height: 80px; }
    .author-card__meta { justify-content: center; }
}

@media (max-width: 480px) {
    section { padding: var(--space-3xl) 0; }
    .container { padding: 0 var(--space-lg); }
    .ec-card { padding: var(--space-sm); }
}

/* Accessibility */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .nav, .mobile-menu, .subscribe-section, .cta-dark, .footer__social, .search-overlay { display: none; }
    body { background: white; color: black; }
}

/* ============================================
   REIRO STYLE GUIDE COMPONENTS
   ============================================ */

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-serif);
    font-style: italic;
}

blockquote cite,
blockquote footer {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: normal;
    margin-top: 0.75rem;
}

blockquote cite::before { content: "\2014\0020"; }

/* Inline Code */
code {
    background: var(--color-bg-alt);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: monospace;
    color: var(--color-text);
}

/* Code Blocks */
pre {
    background: var(--color-bg-alt);
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    border: 1px solid var(--color-border-light);
    margin: 2rem 0;
}

pre code {
    font-size: 0.8125rem;
    line-height: 1.6;
    background: none;
    padding: 0;
    border-radius: 0;
    color: var(--color-text);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.875rem;
}

table th {
    background: var(--color-bg-alt);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    text-align: left;
}

/* Figures & Captions */
figure { margin: 2rem 0; }

figcaption {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

figure img { display: block; width: 100%; height: auto; }

/* Highlighted Text */
mark {
    background: var(--color-yellow-light);
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

/* Definition Lists */
dt { font-weight: 700; margin-top: 1rem; color: var(--color-text); }
dd { margin-left: 1.5rem; margin-bottom: 0.75rem; color: var(--color-text-secondary); }

/* Callout Cards */
.callout {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border-left: 4px solid var(--color-yellow);
    margin: 1.5rem 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.75rem; }

/* Bookmark Cards */
.bookmark-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    transition: box-shadow 0.3s ease;
}
.bookmark-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.bookmark-card__image { width: 200px; height: 140px; object-fit: cover; flex-shrink: 0; }
.bookmark-card__content { padding: 1rem; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.bookmark-card__title { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--color-text); margin: 0 0 0.5rem 0; }
.bookmark-card__description { font-size: 0.875rem; color: var(--color-text-secondary); margin: 0; line-height: 1.5; }
.bookmark-card__url { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.5rem; }

/* ============================================
   REMOVE SEPARATORS ON PAGES
   ============================================ */
.page .entry-content hr,
.page .single-post__content hr,
.page-template-default .wp-block-separator,
.page .wp-block-separator { display: none; }

/* ============================================
   COMMENTS SECTION SPACING
   ============================================ */
.comments-area { margin-bottom: 30px; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.astrofla-faq { margin: 2rem 0; }
.astrofla-faq__title { margin-bottom: var(--space-lg); }

.astrofla-faq__item { border-bottom: 1px solid var(--color-border-light); }
.astrofla-faq__item:last-child { border-bottom: none; }

.astrofla-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    gap: 1rem;
    transition: color 0.2s ease;
}
.astrofla-faq__question:hover { color: var(--color-text-secondary); }

.astrofla-faq__icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}
.astrofla-faq__item.is-open .astrofla-faq__icon { transform: rotate(45deg); }

.astrofla-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.astrofla-faq__item.is-open .astrofla-faq__answer { max-height: 500px; padding-bottom: 1.25rem; }
.astrofla-faq__answer p { font-size: 0.9375rem; line-height: 1.72; color: var(--color-text-secondary); margin: 0; }
.astrofla-faq__answer p + p { margin-top: 1rem; }

/* ============================================
   GDPR COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 1.25rem var(--space-xl);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-consent.is-visible { transform: translateY(0); opacity: 1; }

.cookie-consent__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
    width: 100%;
}

.cookie-consent__text {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}
.cookie-consent__text a { text-decoration: underline; color: var(--color-text); }

.cookie-consent__buttons { display: flex; gap: var(--space-sm); flex-shrink: 0; }

/* ============================================
   BLOCK EDITOR STYLES
   ============================================ */
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

.wp-block-columns { gap: var(--space-xl); margin-bottom: var(--space-xl); }
.wp-block-group { margin-bottom: var(--space-xl); }
.wp-block-group.has-background { padding: var(--space-xl); border-radius: var(--radius); }

.wp-block-image figcaption { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 0.75rem; text-align: center; font-style: italic; }

.wp-block-quote { border-left: 3px solid var(--color-accent); padding-left: 1.5rem; margin: 2rem 0; font-family: var(--font-serif); font-style: italic; }
.wp-block-quote cite { display: block; font-size: 0.875rem; color: var(--color-text-muted); font-style: normal; margin-top: 0.75rem; }

.wp-block-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.875rem; }
.wp-block-table th { background: var(--color-bg-alt); font-weight: 700; text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border-light); }
.wp-block-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border-light); }

.wp-block-code { background: var(--color-bg-alt); padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--color-border-light); margin: 2rem 0; font-size: 0.8125rem; line-height: 1.6; }

.wp-block-cover { border-radius: var(--radius-md); overflow: hidden; min-height: 300px; margin-bottom: var(--space-xl); }
.wp-block-gallery { gap: var(--space-md); margin: var(--space-xl) 0; }
.wp-block-gallery .wp-block-image { border-radius: var(--radius); overflow: hidden; }
.wp-block-buttons { gap: var(--space-sm); margin: var(--space-xl) 0; }
.wp-block-button__link { border-radius: var(--radius); transition: all 0.2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* ============================================
   POST LAYOUT VARIANTS
   ============================================ */
.posts__grid--list { grid-template-columns: 1fr; }
.posts__grid--list .pcard { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-xl); }
.posts__grid--list .pcard__image { width: 100%; height: 200px; object-fit: cover; }
.posts__grid--list .pcard__content { display: flex; flex-direction: column; justify-content: center; }
.posts__grid--featured-first .pcard:first-child { grid-column: span 2; }

/* ============================================
   POST HEADER VARIANTS
   ============================================ */
.single-post__header--left { text-align: left; }
.single-post__header--left .single-post__tag { justify-content: flex-start; }
.single-post__header--full-width { max-width: 100%; padding-left: var(--space-2xl); padding-right: var(--space-2xl); }

.single-post__header--overlay {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    color: white;
}
.single-post__header--overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
    z-index: 1;
}
.single-post__header--overlay > * { position: relative; z-index: 2; }

/* ============================================
   RESPONSIVE — NEW COMPONENTS
   ============================================ */
@media (max-width: 1024px) {
    .posts__grid--featured-first .pcard:first-child { grid-column: span 1; }
}

@media (max-width: 768px) {
    .astrofla-faq__question { font-size: 1rem; padding: 1rem 0; }
    .astrofla-faq__item.is-open .astrofla-faq__answer { max-height: 600px; }

    .cookie-consent { padding: 1rem var(--space-lg); }
    .cookie-consent__inner { flex-direction: column; gap: var(--space-md); }
    .cookie-consent__text { min-width: 100%; }
    .cookie-consent__buttons { width: 100%; }
    .cookie-consent__buttons .btn { flex: 1; }

    .posts__grid--list .pcard { grid-template-columns: 1fr; }
    .posts__grid--featured-first .pcard:first-child { grid-column: span 1; }

    .single-post__header--full-width { padding-left: var(--space-lg); padding-right: var(--space-lg); }
    .single-post__header--overlay { min-height: 35vh; }

    .wp-block-columns { gap: var(--space-lg); }
    .wp-block-group.has-background { padding: var(--space-lg); }
    .wp-block-cover { min-height: 250px; }
    .wp-block-gallery { gap: var(--space-sm); }
    .bookmark-card { flex-direction: column; }
    .bookmark-card__image { width: 100%; height: auto; min-height: 200px; }
}

@media (max-width: 640px) {
    blockquote { border-left-width: 2px; padding-left: 1rem; margin: 1.5rem 0; }
    pre { padding: 1rem; margin: 1.5rem 0; }
    pre code { font-size: 0.75rem; }
}


/* ========================================
   SEO-RELATED COMPONENTS (v3.2.0)
   ======================================== */

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-lg);
}

.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.breadcrumbs__list a {
    color: var(--color-text-secondary);
    transition: color var(--duration) var(--ease);
    text-decoration: none;
}

.breadcrumbs__list a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.breadcrumbs__separator {
    color: var(--color-border-light);
    user-select: none;
    margin: 0 0.25em;
}

.breadcrumbs__current {
    color: var(--color-text);
    font-weight: 500;
}

/* --- Related Categories (internal linking) --- */
.related-categories {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-light);
}

.related-categories__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-family: var(--font-sans);
}

.related-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.related-categories__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    background: var(--color-bg-alt);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--duration) var(--ease);
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    font-family: var(--font-sans);
}

.related-categories__link:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
    background: var(--color-bg);
}

.related-categories__link:focus {
    outline: 2px solid var(--color-text-secondary);
    outline-offset: 2px;
}

.related-categories__count {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* --- Skip to Content (accessibility + SEO) --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 10000;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: top 0.2s ease;
    text-decoration: none;
    font-family: var(--font-sans);
}

.skip-to-content:focus {
    top: var(--space-md);
    outline: none;
}

/* --- Image Placeholder (prevent CLS) --- */
.wp-post-image,
.single-post__feature-img img,
.pcard__image img {
    display: block;
    background: var(--color-bg-alt);
}

.single-post__feature-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.single-post__feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcard__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg-alt);
}

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

.wp-post-image {
    width: 100%;
    height: auto;
}

/* --- Print Styles for SEO content visibility --- */
@media print {
    .breadcrumbs { page-break-inside: avoid; }
    .breadcrumbs__list a::after { content: " (" attr(href) ")"; font-size: 0.7em; color: #666; }
    .single-post__content a::after { content: " (" attr(href) ")"; font-size: 0.7em; color: #666; }
    .skip-to-content { display: none; }
    .related-categories { page-break-inside: avoid; }
}

/* --- SEO Mobile Responsive --- */
@media (max-width: 768px) {
    .breadcrumbs { padding: var(--space-xs) 0; }
    .breadcrumbs__list { font-size: 0.75rem; gap: var(--space-xs); }
    .breadcrumbs__separator { margin: 0 0.2em; }
    .related-categories { margin-top: var(--space-lg); padding-top: var(--space-lg); }
    .related-categories__title { font-size: 0.7rem; margin-bottom: var(--space-sm); }
    .related-categories__list { gap: var(--space-xs); }
    .related-categories__link { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
    .related-categories__count { font-size: 0.625rem; }
    .skip-to-content { left: var(--space-sm); padding: var(--space-xs) var(--space-md); font-size: 0.8125rem; }
}

@media (max-width: 480px) {
    .breadcrumbs__list { font-size: 0.7rem; gap: 0.25em; }
    .breadcrumbs__separator { margin: 0 0.15em; }
    .related-categories__link { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
    .skip-to-content { left: var(--space-xs); padding: var(--space-xs) var(--space-sm); font-size: 0.75rem; }
}

/* =========================================================================
   v3.3.0 — NEW FEATURES (FAQ, Hero Effects, Full-Width, Layouts)
   ========================================================================= */

/* --- FAQ Accordion --- */
.astrofla-faq { margin: var(--space-xl) 0; }
.astrofla-faq__title {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1.5rem;
    margin: 0 0 var(--space-md);
    color: var(--color-text);
}
.astrofla-faq__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.astrofla-faq__item {
    border-bottom: 1px solid var(--color-border);
    background: transparent;
}
.astrofla-faq__question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: var(--space-md) 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    font-family: inherit;
    line-height: 1.4;
    transition: color .2s ease;
}
.astrofla-faq__question:hover,
.astrofla-faq__question:focus-visible { color: var(--color-accent, #c8a878); outline: none; }
.astrofla-faq__icon {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: transform .3s ease;
}
.astrofla-faq__item.is-open .astrofla-faq__icon { transform: rotate(180deg); color: var(--color-accent, #c8a878); }
.astrofla-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
}
/* When open the JS sets inline max-height; keep padding consistent */
.astrofla-faq__item.is-open .astrofla-faq__answer { padding-bottom: 0; }
.astrofla-faq__answer-inner {
    padding: 0 0 var(--space-md);
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}
.astrofla-faq__answer-inner p:first-child { margin-top: 0; }
.astrofla-faq__answer-inner p:last-child  { margin-bottom: 0; }

/* FAQ variants */
.astrofla-faq--boxed .astrofla-faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 12px);
    padding: 0 var(--space-md);
    margin-bottom: var(--space-xs);
}
.astrofla-faq--boxed .astrofla-faq__item { border-bottom: 1px solid var(--color-border); }
.astrofla-faq--minimal .astrofla-faq__item { border-bottom: 1px dashed var(--color-border); }

/* --- Hero: Mesh gradient --- */
.hero-mesh {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(at 20% 20%, var(--mesh-c1, #E8E2F0) 0%, transparent 50%),
        radial-gradient(at 80% 10%, var(--mesh-c2, #F0E8DF) 0%, transparent 50%),
        radial-gradient(at 70% 80%, var(--mesh-c3, #D8E4EE) 0%, transparent 50%),
        radial-gradient(at 20% 80%, var(--mesh-c4, #FAF5E8) 0%, transparent 50%);
    background-size: 200% 200%;
}
.hero-mesh--animate { animation: astrofla-mesh-shift 18s ease-in-out infinite alternate; }
@keyframes astrofla-mesh-shift {
    0%   { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
    50%  { background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%; }
    100% { background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-mesh--animate { animation: none; }
}

/* --- Hero: Video --- */
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* --- Hero: Particles canvas --- */
.hero-particles {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Hero: Overlay --- */
.hero-overlay {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Make hero a positioning context and keep content above bg layers */
.hero { position: relative; overflow: hidden; }
.hero > .container,
.hero__container { position: relative; z-index: 2; }

/* --- Hero: Marquee --- */
.hero-marquee {
    position: relative;
    overflow: hidden;
    background: var(--color-accent-soft, rgba(200,168,120,.1));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .02em;
}
.hero-marquee--bottom { margin-top: var(--space-xl); }
.hero-marquee__track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    width: max-content;
    animation: astrofla-marquee linear infinite;
}
.hero-marquee__track > span { padding-right: 3rem; }
@keyframes astrofla-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-marquee__track { animation: none; }
}

/* --- Hero: Countdown --- */
.hero-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}
.hero--left .hero-countdown { align-items: flex-start; }
.hero-countdown__label {
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-text-secondary);
}
.hero-countdown__units {
    display: flex;
    gap: var(--space-md);
}
.hero-countdown__unit {
    display: flex; flex-direction: column; align-items: center;
    min-width: 64px;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--color-border);
}
.hero-countdown__num {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1.75rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}
.hero-countdown__label-sm {
    font-size: .6875rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: .1em;
    margin-top: .25rem;
}
.hero-countdown__expired {
    padding: var(--space-md);
    color: var(--color-accent, #c8a878);
    font-weight: 600;
}

/* --- Hero: Custom HTML slot --- */
.hero-custom { margin: var(--space-md) 0; }
.hero-custom iframe,
.hero-custom video,
.hero-custom lottie-player,
.hero-custom dotlottie-player { max-width: 100%; }

/* --- Page header (hide title/header support) --- */
.page-header--no-title { padding-bottom: var(--space-md); }

/* --- Full-width content (width fix for shortcodes / blocks) --- */
.page-content--full {
    max-width: none !important;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.page-content--full > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}
/* But let alignfull / full-bleed shortcodes escape the container entirely */
.page-content--full > .alignfull,
.page-content--full > .astrofla-fullwidth,
.page-content--full > [class*="astrofla-birth-chart"],
.page-content--full > .wp-block-group.alignfull {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
/* Generic: ensure birth chart shortcode/plugin output can span full width inside page-content */
.page-content .astrofla-birth-chart,
.page-content [class^="astrofla-bc-"] {
    width: 100%;
    max-width: 100%;
}

/* --- What's New layout variants --- */
.whats-new__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}
.whats-new__list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.whats-new__list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-md);
    align-items: center;
}
.whats-new__list-img img {
    width: 100%; height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-md, 12px);
}
.whats-new__list-title {
    font-size: 1.125rem;
    margin: 0 0 var(--space-xs);
}
.whats-new__list-title a { color: var(--color-text); text-decoration: none; }
.whats-new__list-title a:hover { color: var(--color-accent, #c8a878); }
.whats-new__list-meta {
    display: flex; gap: var(--space-xs);
    font-size: .8125rem;
    color: var(--color-text-muted);
}
.whats-new__custom { margin-top: var(--space-xl); }
.whats-new--html .whats-new__custom { margin-top: var(--space-md); }

@media (max-width: 640px) {
    .whats-new__list-item { grid-template-columns: 96px 1fr; gap: var(--space-sm); }
    .hero-countdown__units { gap: var(--space-sm); }
    .hero-countdown__unit { min-width: 52px; padding: var(--space-xs) var(--space-sm); }
    .hero-countdown__num { font-size: 1.35rem; }
}

/* --- Archive page (category/tag) --- */
.archive-page .page-header__title {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: var(--space-sm) 0 var(--space-md);
}
.archive-page .cat-chip--active {
    background: var(--color-accent, #c8a878);
    color: #fff;
    border-color: var(--color-accent, #c8a878);
}

/* ============================================================
   AstroFla v3.4.0 — What's New enhancements, Reading tools,
   Exit-intent popup, Footer layout tweaks, Share bar.
   ============================================================ */

/* ---- What's New : sidebar width as CSS var ---- */
.whats-new__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--wn-sidebar-width, 340px);
    gap: var(--space-2xl);
    align-items: start;
}
@media (max-width: 960px) {
    .whats-new__layout { grid-template-columns: 1fr; gap: var(--space-xl); }
}
.whats-new__sidebar { min-width: 0; }

/* ---- What's New : rounded hero image matching sidebar ---- */
.post-large--rounded .post-large__img-wrap,
.post-large--rounded .post-large__img {
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
}
.post-large--rounded .post-large__img-wrap {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--color-bg-alt);
}
.post-large--rounded .post-large__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.post-large--rounded:hover .post-large__img { transform: scale(1.02); }

/* ---- Secondary posts grid under main ---- */
.whats-new__secondary {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border, rgba(0,0,0,.08));
}
.whats-new__secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
}
@media (max-width: 640px) {
    .whats-new__secondary-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}
.post-sec { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.post-sec__img-wrap {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-lg, 18px);
    background: var(--color-bg-alt);
}
.post-sec__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-sec:hover .post-sec__img { transform: scale(1.03); }
.post-sec__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-sec__title {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0;
}
.post-sec__title a { color: inherit; text-decoration: none; }
.post-sec__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-sec__meta { font-size: .85rem; color: var(--color-text-muted); display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Sidebar: featured badge + categories cloud + custom block ---- */
.sidebar-post { position: relative; }
.sidebar-post__badge {
    display: inline-block;
    background: var(--color-accent-yellow, #d97757);
    color: #222;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: var(--space-xs);
}

.sidebar-cats {
    background: var(--color-bg-alt, #faf7f2);
    border-radius: var(--radius-lg, 18px);
    padding: var(--space-lg);
}
.sidebar-cats__title {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1rem;
    margin: 0 0 var(--space-md);
    color: var(--color-text-primary);
}
.sidebar-cats__list { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-cats__list .cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--color-border, rgba(0,0,0,.08));
    border-radius: 999px;
    font-size: .85rem;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}
.sidebar-cats__list .cat-chip:hover {
    background: var(--color-accent, #c8a878);
    color: #fff;
    border-color: var(--color-accent, #c8a878);
    transform: translateY(-1px);
}
.cat-chip__count { opacity: .55; font-size: .75rem; }

.sidebar-custom {
    background: #fff;
    border: 1px solid var(--color-border, rgba(0,0,0,.08));
    border-radius: var(--radius-lg, 18px);
    padding: var(--space-lg);
}
.sidebar-custom__title {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1rem;
    margin: 0 0 var(--space-sm);
}
.sidebar-custom__body > :last-child { margin-bottom: 0; }

.sidebar-widgets { margin-top: var(--space-md); }

/* ---- Footer: brand column vertical rhythm + social under desc ---- */
.footer__brand { display: flex; flex-direction: column; gap: var(--space-md); }
.footer__social--brand {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
}
.footer__copyright {
    margin: 0;
    color: var(--color-text-muted, rgba(0,0,0,.55));
    font-size: .85rem;
    line-height: 1.55;
}
/* Remove old bottom bar styles (if any cascade) */
.footer__bottom { display: none !important; }

/* ---- Reading progress bar ---- */
.astrofla-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    z-index: 10000;
    pointer-events: none;
}
.astrofla-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent-yellow, #d97757), var(--color-accent, #6a9bcc));
    transition: width .15s linear;
    border-radius: 0 3px 3px 0;
}

/* ---- Auto TOC ---- */
.astrofla-toc {
    background: var(--color-bg-alt, #faf7f2);
    border: 1px solid var(--color-border, rgba(0,0,0,.06));
    border-radius: var(--radius-lg, 18px);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}
.astrofla-toc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}
.astrofla-toc__title {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
}
.astrofla-toc__toggle {
    background: transparent;
    border: 1px solid var(--color-border, rgba(0,0,0,.12));
    width: 24px; height: 24px;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-primary);
}
.astrofla-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
.astrofla-toc--collapsed .astrofla-toc__list { display: none; }
.astrofla-toc__item { padding: 4px 0; counter-increment: toc; }
.astrofla-toc__item--h3 { padding-left: var(--space-md); }
.astrofla-toc__link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: .92rem;
    line-height: 1.45;
    display: inline-block;
}
.astrofla-toc__link:hover,
.astrofla-toc__link:focus-visible {
    color: var(--color-accent, #c8a878);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Share buttons ---- */
.astrofla-share {
    display: flex;
    gap: 8px;
    align-items: center;
}
.astrofla-share__label {
    font-size: .8rem;
    color: var(--color-text-muted, rgba(0,0,0,.55));
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
}
.astrofla-share__btn {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border, rgba(0,0,0,.1));
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.astrofla-share__btn:hover,
.astrofla-share__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    background: var(--color-accent, #c8a878);
    color: #fff;
    border-color: var(--color-accent, #c8a878);
}
.astrofla-share__btn.is-copied { background: #2ecc71; color: #fff; border-color: #2ecc71; }
.astrofla-share__btn.is-error  { background: #e74c3c; color: #fff; border-color: #e74c3c; }

.astrofla-share--sticky {
    position: fixed;
    left: 18px;
    top: 40%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border, rgba(0,0,0,.08));
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    z-index: 200;
}
.astrofla-share--sticky .astrofla-share__label { display: none; }
@media (max-width: 1100px) {
    .astrofla-share--sticky { display: none; }
}
.astrofla-share--inline {
    margin: var(--space-2xl) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border, rgba(0,0,0,.08));
    border-bottom: 1px solid var(--color-border, rgba(0,0,0,.08));
    flex-wrap: wrap;
}
@media (min-width: 1101px) {
    .astrofla-share--inline { display: none; }
}

/* ---- Exit intent popup ---- */
.astrofla-exit {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 30, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity .3s ease;
}
.astrofla-exit.is-visible { opacity: 1; }
.astrofla-exit__box {
    background: #fff;
    border-radius: var(--radius-lg, 18px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    transform: translateY(20px);
    transition: transform .3s ease;
}
.astrofla-exit.is-visible .astrofla-exit__box { transform: translateY(0); }
.astrofla-exit__close {
    position: absolute;
    top: 12px; right: 14px;
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
}
.astrofla-exit__close:hover { background: var(--color-bg-alt); color: var(--color-text-primary); }
.astrofla-exit__title {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin: 0 0 var(--space-sm);
    line-height: 1.2;
}
.astrofla-exit__sub {
    color: var(--color-text-secondary, rgba(0,0,0,.7));
    margin: 0 0 var(--space-lg);
    line-height: 1.5;
}
.astrofla-exit__form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) {
    .astrofla-exit__form { flex-direction: row; }
}
.astrofla-exit__input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--color-border, rgba(0,0,0,.15));
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--color-text-primary);
}
.astrofla-exit__input:focus-visible {
    outline: 2px solid var(--color-accent, #c8a878);
    outline-offset: 2px;
    border-color: var(--color-accent, #c8a878);
}
.astrofla-exit__btn {
    background: var(--color-accent-yellow, #d97757);
    color: #1b1b1b;
    border: 0;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: transform .2s, filter .2s;
}
.astrofla-exit__btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---- Dark-mode adjustments ---- */
[data-theme="dark"] .sidebar-cats,
[data-theme="dark"] .astrofla-toc,
[data-theme="dark"] .astrofla-exit__box {
    background: var(--color-bg-alt, #1a1a1f);
    color: var(--color-text-primary);
}
[data-theme="dark"] .astrofla-share__btn,
[data-theme="dark"] .sidebar-cats__list .cat-chip {
    background: var(--color-bg, #121216);
    color: var(--color-text-primary);
    border-color: rgba(255,255,255,.1);
}
[data-theme="dark"] .astrofla-share--sticky {
    background: rgba(20,20,26,.85);
    border-color: rgba(255,255,255,.08);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .post-large--rounded .post-large__img,
    .post-sec__img,
    .astrofla-exit,
    .astrofla-exit__box,
    .astrofla-share__btn,
    .sidebar-cats__list .cat-chip { transition: none !important; }
}

/* ---- Print: hide interactive/overlay chrome ---- */
@media print {
    .astrofla-progress,
    .astrofla-share,
    .astrofla-exit,
    .nav__theme-toggle,
    .nav__search-toggle { display: none !important; }
}


/* ============================================
   v3.5.0 ADDITIONS
   ============================================ */

/* ---- Privacy Checkbox (all forms) ---- */
.subscribe-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    cursor: pointer;
    width: 100%;
}
.subscribe-privacy input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--color-accent);
    cursor: pointer;
}
.subscribe-privacy__text { flex: 1; }
.subscribe-privacy__text a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.subscribe-privacy__text a:hover { color: var(--color-accent-hover); }
.subscribe-privacy--error {
    animation: shake 0.4s ease-in-out;
}
.subscribe-privacy--error .subscribe-privacy__text { color: #dc2626; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
}

/* Dark variant (cta-dark, exit-intent) */
.subscribe-privacy--dark { color: #9CA3AF; }
.subscribe-privacy--dark .subscribe-privacy__text a { color: var(--color-yellow); }

/* ---- Subscribe Success State ---- */
.subscribe-success {
    text-align: center;
    padding: var(--space-lg) 0;
    animation: fadeInUp 0.4s ease;
}
.subscribe-success__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.subscribe-success__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}
.subscribe-success__desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sidebar newsletter success: dark text */
.sidebar-newsletter .subscribe-success__title { color: #141413; }
.sidebar-newsletter .subscribe-success__desc { color: rgba(20,20,19,0.7); }
.sidebar-newsletter .subscribe-success__icon { background: #141413; }

/* ---- Exit-Intent v3.5.0 Enhancements ---- */
.astrofla-exit__emoji {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--space-sm);
    line-height: 1;
}
.astrofla-exit__note {
    font-size: 0.75rem;
    color: #787670;
    text-align: center;
    margin-top: var(--space-sm);
}
.astrofla-exit__success {
    text-align: center;
    padding: var(--space-md) 0;
    animation: fadeInUp 0.4s ease;
}
.astrofla-exit__success-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-sm);
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.astrofla-exit__success-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
.astrofla-exit__form--enhanced {
    flex-direction: column;
    gap: 10px;
}
.astrofla-exit .subscribe-privacy { margin: 4px 0 0; }

/* ---- Nav CTA: mobile-specific sizing ---- */
@media (max-width: 768px) {
    .nav__cta {
        white-space: nowrap;
        font-size: 0.8125rem;
        padding: 6px 14px;
    }
}

/* ---- Hero badge as link ---- */
a.hero__label--link {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--duration) var(--ease);
    cursor: pointer;
}
a.hero__label--link:hover {
    opacity: 0.75;
}

/* ---- Mobile menu CTA button ---- */
.mobile-menu__cta {
    margin-top: auto;
    padding-top: var(--space-lg);
}
.mobile-menu__cta-btn {
    display: block;
    text-align: center;
    width: 100%;
    font-family: var(--font-sans);
    border-bottom: none;
}
.mobile-menu__cta-btn:hover {
    color: #fff;
}

/* ---- Mobile sticky bottom share bar ---- */
.astrofla-share--mobile-bottom {
    display: none;
}
@media (max-width: 768px) {
    .astrofla-share--mobile-bottom {
        display: none; /* hidden by default, shown via .is-visible */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        justify-content: center;
        gap: 12px;
        padding: 10px 16px;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border, rgba(0,0,0,.08));
        box-shadow: 0 -4px 16px rgba(0,0,0,.06);
        z-index: 200;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .astrofla-share--mobile-bottom.is-visible {
        display: flex;
        transform: translateY(0);
    }
    .astrofla-share--mobile-bottom .astrofla-share__label {
        display: none;
    }
    .astrofla-share--mobile-bottom .astrofla-share__btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   v3.9.0 AUDIT FIXES — appended, surgical overrides
   Consolidates mobile breakpoints (1024/768/480), lifts touch targets to 44px,
   replaces max-width:280px CTA cap on mobile, enforces WCAG contrast, improves
   dialog a11y, hides sticky share on narrow screens. Overrides are intentional
   — keep them below everything else so cascade wins without !important abuse.
   ============================================ */

/* -- Contact-page extra content spacing (replaces inline style removed in v3.9.0) -- */
.contact-page__extra { margin-top: var(--space-xl); }

/* -- Typography polish for Instrument Serif headings -- */
h1, h2, h3,
.hero__title,
.section__title,
.pcard__title,
.fcard__title,
.ec-card__title {
    font-family: var(--font-serif);
    font-weight: 400; /* Instrument Serif ships only regular weight */
    letter-spacing: -0.01em;
}
h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; }

/* Skip link baseline (in case legacy rule missed it on new palette). */
.skip-to-content {
    background: var(--color-text);
    color: var(--color-bg);
}

/* -- Container responsive padding -- */
.container,
.site-footer .container,
.nav .container {
    padding-left: var(--space-container);
    padding-right: var(--space-container);
}

/* -- Minimum touch target 44x44 everywhere interactive -- */
.nav__icon-btn,
.mobile-menu__toggle,
.nav__toggle,
.search-overlay__close,
.astrofla-share__btn,
.comment-reply-link {
    min-width: 44px;
    min-height: 44px;
}

/* -- Editor's Choice / What's New tag pills: single-line ellipsis -- */
.pcard__tag-pill,
.fcard__tag-pill,
.ec-card__tag,
.tag-pill {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: var(--radius-pill);
}

/* -- Breadcrumbs: underline links for affordance, keep current plain -- */
.breadcrumbs__list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.breadcrumbs__list a:hover { text-decoration-thickness: 2px; }
.breadcrumbs__current { text-decoration: none; }

/* -- Dialog / exit-intent / cookie banner: a11y-first -- */
[role="dialog"][aria-modal="true"] {
    outline: none;
}
[role="dialog"][aria-modal="true"]:focus { outline: none; }
.astrofla-exit,
.astrofla-cookie {
    max-width: min(560px, calc(100vw - 32px));
}
.astrofla-cookie {
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

/* -- CTA-dark: fix placeholder contrast (audit §4) -- */
.cta-dark ::placeholder,
.subscribe-cta--dark ::placeholder { color: #d8d5c8; opacity: 1; }

/* -- Hero title contrast helper: available when hero uses an image -- */
.hero--has-image .hero__title,
.hero--has-image .hero__subtitle {
    text-shadow: 0 1px 24px rgba(0,0,0,0.35);
}

/* ============================================
   Breakpoint 1024px — tablet / small laptop
   ============================================ */
@media (max-width: 1024px) {
    /* Hide sticky share column below this width (audit §6). */
    .astrofla-share--sticky { display: none !important; }

    /* Single-column article layout. */
    .single-post__grid,
    .blog-grid--with-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Breakpoint 768px — phones (large)
   ============================================ */
@media (max-width: 768px) {
    /* Remove legacy 280px CTA cap — buttons should flex to container. */
    .btn,
    .hero__cta,
    .subscribe-form__submit,
    .contact-form__submit {
        max-width: none;
        width: auto;
    }

    /* Gallery defaults on mobile. */
    .wp-block-gallery,
    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .gallery-columns-1 { grid-template-columns: 1fr !important; }

    /* Larger tap area on nav items. */
    .nav__link,
    .mobile-menu__parent-link,
    .mobile-menu__sub-link {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Search overlay input sits above keyboard-safe zone. */
    .search-overlay__form { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============================================
   Breakpoint 480px — phones (small)
   ============================================ */
@media (max-width: 480px) {
    .wp-block-gallery,
    .gallery {
        grid-template-columns: 1fr !important;
    }

    .hero__title   { font-size: clamp(1.75rem, 8vw, 2.25rem); }
    .section__title { font-size: clamp(1.5rem, 6.5vw, 2rem); }

    /* Stack hero CTAs. */
    .hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero__ctas .btn { width: 100%; }
}

/* ============================================
   Reduced motion — respect user setting
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Print — clean output, hide chrome
   ============================================ */
@media print {
    .site-header, .site-footer,
    .nav, .mobile-menu, .search-overlay,
    .astrofla-share, .astrofla-exit, .astrofla-cookie,
    .subscribe-cta, .cta-dark, .related-posts {
        display: none !important;
    }
    body { background: #fff; color: #000; }
    a { color: inherit; text-decoration: underline; }
}

/* ================================================================
   v3.9.1 — Nav style presets, dropdown presets, mobile slot picker,
   dropdown-menu bug fixes, contact-form redesign
   ================================================================ */

/* --- 1. Nav style presets -------------------------------------- */
.nav-style-default .nav__link { transition: color var(--duration) var(--ease); }

.nav-style-pill .nav__link {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav-style-pill .nav__link:hover,
.nav-style-pill .nav__link--active,
.nav-style-pill .current-menu-item > a {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.nav-style-boxed .nav__link {
    padding: 0.45rem 0.85rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav-style-boxed .nav__link:hover,
.nav-style-boxed .nav__link--active,
.nav-style-boxed .current-menu-item > a {
    border-color: var(--color-border);
    color: var(--color-text);
}

.nav-style-underline .nav__link { position: relative; padding-bottom: 4px; }
.nav-style-underline .nav__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width var(--duration) var(--ease);
}
.nav-style-underline .nav__link:hover::after,
.nav-style-underline .nav__link--active::after,
.nav-style-underline .current-menu-item > a::after {
    width: 22px;
}

/* --- 2. Dropdown presets ---------------------------------------- */
.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    padding: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    z-index: 1001;
}

.menu-item-has-children { position: relative; }

.menu-item-has-children:hover > .nav__dropdown,
.menu-item-has-children:focus-within > .nav__dropdown,
.menu-item-has-children[aria-expanded="true"] > .nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav__dropdown-link {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: calc(var(--radius) - 2px);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav__dropdown-link:hover,
.nav__dropdown-link:focus-visible {
    background: var(--color-bg-alt);
    color: var(--color-text);
}
.nav__link-arrow {
    transition: transform 180ms ease;
    vertical-align: middle;
    margin-left: 4px;
}
.menu-item-has-children:hover > .nav__link .nav__link-arrow,
.menu-item-has-children[aria-expanded="true"] > .nav__link .nav__link-arrow {
    transform: rotate(180deg);
}

/* fullwidth dropdown variant */
.nav-dd-fullwidth .nav__dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    transform: translateY(-8px);
    min-width: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 24px 6%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.nav-dd-fullwidth .menu-item-has-children:hover > .nav__dropdown,
.nav-dd-fullwidth .menu-item-has-children[aria-expanded="true"] > .nav__dropdown {
    transform: translateY(0);
}
.nav-dd-fullwidth .nav__dropdown-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 16px;
}

/* slide variant — slides down with a subtle drop */
.nav-dd-slide .nav__dropdown {
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
}
.nav-dd-slide .menu-item-has-children:hover > .nav__dropdown,
.nav-dd-slide .menu-item-has-children[aria-expanded="true"] > .nav__dropdown {
    transform: translateX(-50%) translateY(8px);
}

/* minimal variant — no card, just links */
.nav-dd-minimal .nav__dropdown {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 6px 0 0;
}
.nav-dd-minimal .nav__dropdown-link {
    padding: 6px 0;
    font-weight: 500;
}

/* --- 3. Mobile slot visibility --------------------------------- */
@media (max-width: 1024px) {
    body.mslot-logo-off   .nav__logo              { display: none; }
    body.mslot-burger-off .nav__burger            { display: none; }
    body.mslot-search-off .nav__search-toggle     { display: none; }
    body.mslot-theme-off  .nav__theme-toggle      { display: none; }
    body.mslot-cta-off    .nav__cta               { display: none; }

    /* when a slot is 'on' at mobile, force-show (override default hides) */
    body.mslot-search-on .nav__search-toggle { display: inline-flex; }
    body.mslot-theme-on  .nav__theme-toggle  { display: inline-flex; }
    body.mslot-cta-on    .nav__cta           { display: inline-flex; }
}

/* --- 4. Dropdown menu bug fixes -------------------------------- */
/* stop hover jitter when cursor leaves parent link into dropdown */
.menu-item-has-children > .nav__link { padding-bottom: 12px; }
.menu-item-has-children > .nav__dropdown { margin-top: -8px; }

/* keyboard: open on focus-within also for users tabbing into the children */
.menu-item-has-children .nav__dropdown-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* v3.9.1 — prevent dropdowns from escaping the viewport on the right edge */
.nav__center > li:last-child .nav__dropdown { left: auto; right: 0; transform: translateY(8px); }
.nav__center > li:last-child:hover .nav__dropdown,
.nav__center > li:last-child[aria-expanded="true"] .nav__dropdown { transform: translateY(0); }

/* --- 5. Contact form redesign (v3.9.1) ------------------------- */
.contact-page {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg-alt) 100%);
}

.contact-page__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: var(--space-4xl);
}

.contact-page__form-wrap {
    background: var(--color-bg);
    padding: var(--space-2xl);
    border-radius: calc(var(--radius-xl) * 1.25);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 20px 40px -20px rgba(0,0,0,0.08),
        0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid var(--color-border-light);
}

.contact-page__form-wrap .contact-page__section-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.contact-page__form-wrap .contact-page__form-intro {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.contact-form .contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form .field {
    position: relative;
    margin-bottom: var(--space-md);
}

.contact-form .field__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}
.contact-form .field__label .required { color: var(--color-accent); margin-left: 2px; }

.contact-form .input,
.contact-form .textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.contact-form .textarea { resize: vertical; min-height: 150px; line-height: 1.6; }

.contact-form .input:hover,
.contact-form .textarea:hover {
    border-color: var(--color-text-muted);
}
.contact-form .input:focus,
.contact-form .textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
    background: var(--color-bg);
}
.contact-form .input::placeholder,
.contact-form .textarea::placeholder { color: var(--color-text-muted); opacity: 0.7; }

.contact-form .field__error {
    display: block;
    font-size: 0.8125rem;
    color: #c94a2d;
    margin-top: 4px;
    min-height: 1em;
}

.contact-form .checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: var(--space-md) 0 var(--space-lg);
    padding: 0.75rem 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
}
.contact-form .checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.contact-form .checkbox a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form .contact-form__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.contact-form .btn--brand {
    background: var(--color-accent);
    color: #faf9f5;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--color-accent) 40%, transparent);
}
.contact-form .btn--brand:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--color-accent) 45%, transparent);
}
.contact-form .btn--brand:disabled,
.contact-form .btn--brand.is-loading {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.contact-form .contact-form__feedback {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin: var(--space-md) 0 0;
    min-height: 1em;
}
.contact-form .contact-form__feedback.is-success {
    background: color-mix(in srgb, #2d8659 14%, transparent);
    color: #2d8659;
}
.contact-form .contact-form__feedback.is-error {
    background: color-mix(in srgb, #c94a2d 12%, transparent);
    color: #c94a2d;
}

/* Enhanced info card on the side */
.contact-page__info .contact-info-card {
    position: sticky;
    top: 96px;
    padding: var(--space-2xl);
    border-radius: calc(var(--radius-xl) * 1.25);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
}
.contact-page__info .contact-info-card__title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
}
.contact-page__info .contact-info-card__item {
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
    margin: 0;
}
.contact-page__info .contact-info-card__item:last-of-type { border-bottom: none; }
.contact-page__info .contact-info-card__icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg-alt));
    color: var(--color-accent);
}

/* Mobile */
@media (max-width: 900px) {
    .contact-page__grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .contact-page__info .contact-info-card { position: static; }
    .contact-page__form-wrap { padding: var(--space-xl) var(--space-lg); }
}
@media (max-width: 600px) {
    .contact-form .contact-form__grid { grid-template-columns: 1fr; gap: 0; }
}

/* v3.9.1 — keep hero overlay text legible on sepia */
[data-theme="sepia"] .hero--has-bg-image .hero__title,
[data-theme="sepia"] .hero--has-bg-image .hero__subtitle { color: var(--color-text); }


/* ========================================================================== */
/*  v3.9.2 — FOOTER PRESETS, LATEST-GRID PRESETS, SINGLE POST PRESETS,        */
/*  SOCIAL SHARE, READING PROGRESS, AUTO TOC                                  */
/* ========================================================================== */

/* ---------- Footer preset: classic (current — no override, reset vars) ---------- */

body.footer-preset-classic .site-footer {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

/* ---------- Footer preset: minimal ---------- */

body.footer-preset-minimal .site-footer {
    padding: var(--space-xl) 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}
body.footer-preset-minimal .site-footer .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
    align-items: center;
    justify-items: center;
}
body.footer-preset-minimal .site-footer .footer__brand {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
body.footer-preset-minimal .site-footer .footer__desc { max-width: 54ch; }
body.footer-preset-minimal .site-footer .footer__social--brand { justify-content: center; }
body.footer-preset-minimal .site-footer > .container > .footer__grid > div:not(.footer__brand) {
    display: none;  /* hide widget columns */
}
body.footer-preset-minimal .site-footer .footer__copyright { margin-top: 4px; opacity: .75; font-size: .875rem; }

/* ---------- Footer preset: dark ---------- */

body.footer-preset-dark .site-footer {
    background: #141413;
    color: #f5f4ef;
}
body.footer-preset-dark .site-footer p,
body.footer-preset-dark .site-footer .footer__desc,
body.footer-preset-dark .site-footer .footer__copyright,
body.footer-preset-dark .site-footer .footer__col-title { color: #f5f4ef; }
body.footer-preset-dark .site-footer .footer__link,
body.footer-preset-dark .site-footer a:not(.btn):not(.footer__social-link) {
    color: rgba(245, 244, 239, 0.82);
}
body.footer-preset-dark .site-footer .footer__link:hover,
body.footer-preset-dark .site-footer a:not(.btn):not(.footer__social-link):hover {
    color: var(--color-accent);
}
body.footer-preset-dark .site-footer .footer__col-title {
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: .85;
}
body.footer-preset-dark .site-footer .footer__social-link {
    color: rgba(245, 244, 239, 0.75);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
body.footer-preset-dark .site-footer .footer__social-link:hover {
    color: #fff; border-color: var(--color-accent); background: rgba(217,119,87,0.12);
    transform: translateY(-1px);
}

/* ---------- Footer preset: newsletter first ---------- */

body.footer-preset-newsletter .site-footer {
    background: var(--color-bg-alt);
}
body.footer-preset-newsletter .site-footer .footer__grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
}
body.footer-preset-newsletter .site-footer .footer__brand {
    padding-right: var(--space-lg);
    border-right: 1px solid var(--color-border);
}
body.footer-preset-newsletter .footer__newsletter {
    margin-top: var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-md);
    box-shadow: 0 6px 20px rgba(20, 20, 19, 0.06);
}
body.footer-preset-newsletter .footer__newsletter-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0 0 6px;
}
body.footer-preset-newsletter .footer__newsletter-desc {
    margin: 0 0 var(--space-sm);
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}
body.footer-preset-newsletter .footer__newsletter form {
    display: flex; gap: 8px; flex-wrap: wrap;
}
body.footer-preset-newsletter .footer__newsletter input[type="email"] {
    flex: 1 1 180px; min-width: 0;
    padding: 10px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px; font: inherit;
    background: var(--color-bg);
}
body.footer-preset-newsletter .footer__newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}
body.footer-preset-newsletter .footer__newsletter button {
    flex: 0 0 auto;
    padding: 10px 18px;
    background: var(--color-accent);
    color: #fff;
    border: none; border-radius: 8px;
    font: inherit; font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
body.footer-preset-newsletter .footer__newsletter button:hover { background: color-mix(in srgb, var(--color-accent) 88%, black); }
body.footer-preset-newsletter .footer__newsletter button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Responsive footers */
@media (max-width: 900px) {
    body.footer-preset-newsletter .site-footer .footer__grid { grid-template-columns: 1fr 1fr; }
    body.footer-preset-newsletter .site-footer .footer__brand { grid-column: 1 / -1; border-right: none; padding-right: 0; padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-border); }
}
@media (max-width: 600px) {
    body.footer-preset-newsletter .site-footer .footer__grid,
    body.footer-preset-dark .site-footer .footer__grid,
    body.footer-preset-classic .site-footer .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ========================================================================== */
/*  Latest-grid presets                                                       */
/* ========================================================================== */

/* base: we tag the section so inline overrides can target it precisely */
.posts.latestgrid-section { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }

/* -----------------------------------------------------------------------------
   v3.9.2.1 fix — make "cards" preset visually distinct from the default grid.
   Previously the cards preset emitted the same grid-template-columns as the
   base .posts__grid, so switching to cards from any other preset looked like
   a no-op. Now cards adds a clear card treatment: elevated surface, crisp
   border, larger media radius, lift-on-hover. grid-template-columns values
   use !important to override any legacy media queries on .posts__grid at
   1024/768 that otherwise cascade into the preset.
   ----------------------------------------------------------------------------- */

body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: var(--space-xl);
    align-items: stretch;
}
@media (max-width: 1024px) {
    body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 640px) {
    body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid {
        grid-template-columns: 1fr !important;
    }
}

/* Distinct card treatment — only inside the cards preset, nothing else on the site is touched */
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(20, 17, 13, 0.04);
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > *:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(20, 17, 13, 0.10);
    border-color: color-mix(in srgb, var(--color-text) 20%, var(--color-border));
}
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__img-wrap,
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__media {
    border-radius: 0;                                   /* image flush to card edge */
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__img,
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__img-wrap img,
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__body,
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__content {
    padding: var(--space-lg);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs, 0.5rem);
}
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: var(--space-sm) 0;
}
body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > * .pcard__excerpt {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.55;
}
[data-theme="dark"] body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > *,
body.latestgrid-preset-cards[data-theme="dark"] .posts.latestgrid-section .posts__grid > * {
    background: var(--color-bg-card);
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] body.latestgrid-preset-cards .posts.latestgrid-section .posts__grid > *:hover,
body.latestgrid-preset-cards[data-theme="dark"] .posts.latestgrid-section .posts__grid > *:hover {
    box-shadow: 0 14px 38px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.16);
}

/* editorial: first card huge, rest half size next to it */
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:first-child {
    grid-row: span 3;
}
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:first-child .pcard__title {
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    line-height: 1.15;
}
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:first-child .pcard__img-wrap img,
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:first-child .pcard__media img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:not(:first-child) {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: start;
}
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:not(:first-child) .pcard__img-wrap,
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:not(:first-child) .pcard__media {
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:not(:first-child) .pcard__img-wrap img,
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:not(:first-child) .pcard__media img {
    width: 100%; height: 100%; object-fit: cover;
}
body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:not(:first-child) .pcard__title {
    font-size: 1rem; line-height: 1.35;
}
@media (max-width: 960px) {
    body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid { grid-template-columns: 1fr; }
    body.latestgrid-preset-editorial .posts.latestgrid-section .posts__grid > *:first-child { grid-row: auto; }
}

/* masonry: CSS columns with break-inside */
body.latestgrid-preset-masonry .posts.latestgrid-section .posts__grid {
    column-count: 3; column-gap: var(--space-lg);
    display: block;
}
body.latestgrid-preset-masonry .posts.latestgrid-section .posts__grid > * {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
    display: block;
}
@media (max-width: 960px) { body.latestgrid-preset-masonry .posts.latestgrid-section .posts__grid { column-count: 2; } }
@media (max-width: 640px) { body.latestgrid-preset-masonry .posts.latestgrid-section .posts__grid { column-count: 1; } }

/* list: text-only rows */
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid {
    display: flex; flex-direction: column; gap: 0;
    border-top: 1px solid var(--color-border);
}
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: var(--space-lg);
}
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__img-wrap,
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__media {
    width: 140px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
}
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__img-wrap img,
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__media img {
    width: 100%; height: 100%; object-fit: cover;
}
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__title {
    font-size: 1.125rem; margin: 4px 0;
}
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__excerpt {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__meta {
    white-space: nowrap;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}
@media (max-width: 640px) {
    body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * {
        grid-template-columns: 96px 1fr;
    }
    body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__meta { display: none; }
    body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__img-wrap,
    body.latestgrid-preset-list .posts.latestgrid-section .posts__grid > * .pcard__media { width: 96px; }
}

/* ========================================================================== */
/*  Single post presets                                                       */
/* ========================================================================== */

/* reading progress bar (used when single-has-progress) */
.reading-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; background: transparent; z-index: 90;
    pointer-events: none;
}
.reading-progress__bar {
    display: block; height: 100%;
    width: 0%;
    background: var(--color-accent);
    transition: width 0.1s linear;
}
body:not(.single-has-progress) .reading-progress { display: none; }

/* auto TOC host */
.toc {
    margin: 0 0 var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-accent);
    border-radius: 6px;
}
.toc__title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 8px;
    font-weight: 600;
}
.toc__list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc__item { margin: 4px 0; counter-increment: toc; }
.toc__item--h2 a::before { content: counter(toc) ". "; color: var(--color-text-muted); }
.toc__item--h3 { padding-left: 18px; font-size: 0.9375rem; }
.toc__list a { color: var(--color-text); text-decoration: none; }
.toc__list a:hover { color: var(--color-accent); text-decoration: underline; }

/* classic (no override besides brand tokens) */

/* ---- sidebar preset ---- */
body.single-preset-sidebar .single-post__content {
    max-width: none;
    padding: 0;
}
body.single-preset-sidebar article.post > .container--narrow:first-of-type,
body.single-preset-sidebar article.post > .container--narrow {
    /* keep breadcrumb full width */
}
.single-sidebar-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}
body:not(.single-preset-sidebar) .single-sidebar-wrap {
    display: block;
}
body:not(.single-preset-sidebar) .single-sidebar {
    display: none;
}
.single-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.single-sidebar__box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md);
}
.single-sidebar__title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
    margin: 0 0 10px;
}
.single-sidebar__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.single-sidebar__list a { color: var(--color-text); text-decoration: none; font-size: 0.9375rem; line-height: 1.4; display: block; }
.single-sidebar__list a:hover { color: var(--color-accent); }
.single-sidebar__author { display: flex; align-items: center; gap: 12px; }
.single-sidebar__author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.single-sidebar__author-name { font-weight: 600; font-size: 0.9375rem; margin: 0; }
.single-sidebar__author-bio  { font-size: 0.8125rem; color: var(--color-text-muted); margin: 2px 0 0; line-height: 1.4; }

@media (max-width: 900px) {
    .single-sidebar-wrap { grid-template-columns: 1fr; }
    .single-sidebar { position: static; }
}

/* ---- magazine preset ---- */
body.single-preset-magazine .single-post__header {
    position: relative;
    padding: 0;
    min-height: 60vh;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
body.single-preset-magazine .single-post__header::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,20,19,0) 30%, rgba(20,20,19,0.85) 100%);
    z-index: 1;
}
body.single-preset-magazine .single-post__header > .container {
    position: relative; z-index: 2;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    color: #fff;
}
body.single-preset-magazine .single-post__header .single-post__title,
body.single-preset-magazine .single-post__header .single-post__meta,
body.single-preset-magazine .single-post__header .pcard__tag-pill {
    color: #fff;
}
body.single-preset-magazine .single-post__header .pcard__tag-pill { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); }
body.single-preset-magazine article > .single-post__feature-img { display: none; }
body.single-preset-magazine .single-post__content { max-width: 720px; margin-top: var(--space-2xl); }

/* ---- minimal preset ---- */
body.single-preset-minimal .single-post__header { padding: var(--space-2xl) 0 var(--space-lg); }
body.single-preset-minimal article > .single-post__feature-img { display: none; }
body.single-preset-minimal .single-post__title { font-size: clamp(1.875rem, 4vw, 2.5rem); }
body.single-preset-minimal .single-post__content { max-width: 640px; font-size: 1.0625rem; line-height: 1.75; }
body.single-preset-minimal .single-post__meta .single-post__meta-item:not(:first-child) { display: none; }
body.single-preset-minimal .author-box { display: none; }

/* ========================================================================== */
/*  Social share                                                              */
/* ========================================================================== */

.share {
    display: flex; flex-direction: column; gap: 10px;
    margin: var(--space-2xl) 0;
}
.share__label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
}
.share__list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.share__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 40px;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.share__link:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-secondary);
    transform: translateY(-1px);
}
.share__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.share__icon { display: inline-flex; }
.share__icon svg { display: block; }
/* Brand hover colors — each verified WCAG 2.1 AA with white text (≥4.5:1) */
.share__link--twitter:hover   { background: #000000; color: #fff; border-color: #000000; }   /* 21.00:1 */
.share__link--facebook:hover  { background: #0E63D0; color: #fff; border-color: #0E63D0; }   /* 5.65:1 */
.share__link--linkedin:hover  { background: #0A66C2; color: #fff; border-color: #0A66C2; }   /* 5.69:1 */
.share__link--pinterest:hover { background: #E60023; color: #fff; border-color: #E60023; }   /* 4.78:1 */
.share__link--whatsapp:hover  { background: #0F7A3B; color: #fff; border-color: #0F7A3B; }   /* 5.43:1 */
.share__link--telegram:hover  { background: #176F99; color: #fff; border-color: #176F99; }   /* 5.57:1 */
.share__link--email:hover,
.share__link--copy:hover      { background: #A8512F; color: #fff; border-color: #A8512F; }   /* 5.41:1 — deeper terracotta */
.share__status {
    font-size: 0.8125rem;
    color: var(--color-accent);
}

/* Floating (desktop left rail) */
.share--floating {
    position: fixed;
    left: max(16px, calc((100vw - 1200px) / 2 - 56px));
    top: 30vh;
    z-index: 40;
    margin: 0;
    padding: 0;
}
.share--floating .share__label { display: none; }
.share--floating .share__list { flex-direction: column; gap: 6px; }
.share--floating .share__link {
    width: 40px; height: 40px; padding: 0;
    justify-content: center;
    border-radius: 50%;
}
.share--floating .share__text { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Hide floating on narrow viewports — always show inline on mobile */
@media (max-width: 1180px) { .share--floating { display: none; } }

/* Inline share: restrict to the article width when inside single */
.single-post__content + .share,
.single-sidebar-wrap .share--inline {
    max-width: 720px;
    margin-left: auto; margin-right: auto;
}

/* ========================================================================== */
/*  Dark/sepia considerations                                                 */
/* ========================================================================== */
[data-theme="black"] body.footer-preset-classic .site-footer,
[data-theme="black"] body.footer-preset-newsletter .site-footer {
    background: #0f0f0e;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}
[data-theme="black"] body.footer-preset-minimal .site-footer { background: var(--color-bg); }
[data-theme="black"] .single-sidebar__box { background: rgba(255,255,255,0.03); }
[data-theme="black"] .share__link { background: rgba(255,255,255,0.02); }
[data-theme="sepia"] body.footer-preset-dark .site-footer { background: #1f1a14; }

/* ========================================================================== */
/*  Screen reader utility (shared)                                            */
/* ========================================================================== */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    width: 1px; height: 1px; overflow: hidden;
}

/* 200% zoom safety: lists and flex should wrap */
@media (min-resolution: 1dppx) {
    .share__list,
    .nav__menu,
    .footer__links,
    .footer__legal-list { flex-wrap: wrap; }
    body, p, h1, h2, h3, h4 { overflow-wrap: break-word; word-break: break-word; }
    .btn, .share__link { white-space: normal; }
}

/* v3.9.2 — prefers-reduced-motion (global) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, [data-reveal], [data-animate] { opacity: 1 !important; transform: none !important; }
    .reading-progress__bar { transition: none !important; }
}
