/*
Theme Name: Astra Zest Child
Theme URI: https://zest-retraite.fr
Description: Child theme Astra pour Zest Retraite — palette vert forêt + terracotta
Author: Zest Retraite
Version: 1.0
Template: astra
Text Domain: astra-zest-child
*/

/* ==== Palette Vert Forêt + Terracotta ==== */
:root {
    --zst-green: #2D4A3E;
    --zst-green-dark: #1E3529;
    --zst-green-night: #14231D;
    --zst-terracotta: #D97757;
    --zst-terracotta-dark: #B85942;
    --zst-brick: #A84A3A;
    --zst-gold: #C4A574;
    --zst-gold-dark: #A88857;
    --zst-cream: #F7F3EB;
    --zst-cream-warm: #EFE7D6;
    --zst-cream-shadow: #E7DCC5;
    --zst-text-dark: #1F1D1A;
    --zst-text-medium: #3F3B35;
    --zst-text-muted: #6B665C;
    --zst-text-light: #A29C8F;
    --zst-gray-200: #D9CFBB;
    --zst-white: #FFFFFF;

    --zst-font-heading: 'Playfair Display', Georgia, serif;
    --zst-font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --zst-font-signature: 'Caveat', cursive;
    --zst-font-ui: 'Inter', -apple-system, sans-serif;

    --zst-radius: 6px;
    --zst-radius-lg: 12px;
    --zst-shadow: 0 4px 16px rgba(30, 53, 41, 0.08);
    --zst-shadow-lg: 0 12px 32px rgba(30, 53, 41, 0.14);
    --zst-container-max: 1180px;
}

/* ==== Base overrides ==== */
html, body {
    background: var(--zst-cream) !important;
    color: var(--zst-text-medium);
    font-family: var(--zst-font-body);
    font-size: 17px;
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
    font-family: var(--zst-font-heading);
    color: var(--zst-text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--zst-terracotta);
    font-weight: 500;
}
a { color: var(--zst-green); text-decoration: none; }
a:hover { color: var(--zst-terracotta); }

/* ==== Hide default Astra header/footer (we use custom) ==== */
.site-header.ast-primary-header-bar,
.ast-primary-header,
.ast-mobile-header-wrap,
#ast-desktop-header {
    display: none !important;
}
.site-footer, #colophon {
    display: none !important;
}

/* ==== Force clean layout on homepage (override Astra container) ==== */
body.home .site,
body.home #page,
body.home #content,
body.home #primary,
body.home .site-content,
body.home .ast-container,
body.home main#main,
body.home .site-main {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    flex-direction: column !important;
}
body.home .zst-hero,
body.home .zst-section {
    display: block;
    width: 100%;
    max-width: 100%;
}
body.home .ast-separate-container #primary,
body.home .ast-plain-container #primary {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.home main#main > article,
body.home main#main > .hentry,
body.home .site-main > article {
    display: none !important;
}

/* Category archive layout override */
body.archive .site-content,
body.archive .ast-container,
body.archive #primary {
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ==== Header custom ==== */
.zst-header {
    background: var(--zst-cream);
    border-bottom: 1px solid var(--zst-cream-shadow);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.zst-header-inner {
    max-width: var(--zst-container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.zst-header .site-title {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--zst-text-dark);
    font-family: var(--zst-font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}
.zst-brand-icon {
    display: inline-flex;
    align-items: center;
}
.zst-header-nav ul.zst-nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.zst-header-nav .menu-item a,
.zst-header-nav .menu-link {
    font-family: var(--zst-font-ui);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--zst-text-medium);
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.zst-header-nav .menu-item a:hover,
.zst-header-nav .current-menu-item a {
    color: var(--zst-terracotta);
    border-bottom-color: var(--zst-terracotta);
}
/* Burger mobile hidden desktop, shown mobile */
.zst-mburger {
    display: none;
    background: transparent !important;
    border: 0 !important;
    padding: 6px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.zst-mburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--zst-text-dark);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.zst-mburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.zst-mburger.is-open span:nth-child(2) { opacity: 0; }
.zst-mburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==== Hero (homepage) ==== */
.zst-hero {
    max-width: 780px;
    margin: 80px auto 60px;
    padding: 0 24px;
    text-align: center;
}
.zst-hero-eyebrow {
    display: inline-block;
    font-family: var(--zst-font-signature);
    font-size: 24px;
    color: var(--zst-terracotta);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.zst-hero h1 {
    font-size: clamp(38px, 5.5vw, 56px);
    line-height: 1.1;
    margin: 0 0 24px 0;
    color: var(--zst-text-dark);
}
.zst-hero h1 em {
    font-style: italic;
    color: var(--zst-terracotta);
    font-weight: 500;
}
.zst-hero p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--zst-text-medium);
    margin: 0 0 32px 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.zst-btn {
    display: inline-block;
    background: var(--zst-terracotta);
    color: var(--zst-white) !important;
    font-family: var(--zst-font-ui);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: var(--zst-radius);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.2s;
    border: 0;
}
.zst-btn:hover {
    background: var(--zst-terracotta-dark);
    transform: translateY(-1px);
    color: var(--zst-white) !important;
}

/* ==== Sections generiques ==== */
.zst-section {
    padding: 80px 0;
}
.zst-section-cream {
    background: var(--zst-cream-warm);
}
.zst-section-inner {
    max-width: var(--zst-container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.zst-section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 56px;
}
.zst-section-header h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    margin: 0 0 16px 0;
    color: var(--zst-text-dark);
}
.zst-section-header h2 em {
    font-style: italic;
    color: var(--zst-terracotta);
    font-weight: 500;
}
.zst-section-header p {
    font-size: 17px;
    color: var(--zst-text-medium);
    margin: 0;
    line-height: 1.6;
}

/* ==== Grid catégories homepage ==== */
.zst-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.zst-cat-card {
    background: var(--zst-white);
    border-radius: var(--zst-radius-lg);
    padding: 40px 32px 36px;
    text-decoration: none;
    color: var(--zst-text-dark) !important;
    border: 1px solid var(--zst-cream-shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
}
.zst-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zst-shadow-lg);
    border-color: var(--zst-gold);
}
.zst-cat-num {
    font-family: var(--zst-font-heading);
    font-size: 22px;
    color: var(--zst-terracotta);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.02em;
}
.zst-cat-card h3 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
    color: var(--zst-text-dark);
}
.zst-cat-card p {
    font-size: 15px;
    color: var(--zst-text-muted);
    margin: 0;
    flex: 1;
    line-height: 1.55;
}
.zst-cat-card-count {
    display: inline-block;
    font-family: var(--zst-font-ui);
    font-size: 12px;
    color: var(--zst-text-light);
    padding-top: 12px;
    border-top: 1px solid var(--zst-cream-shadow);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ==== Grid articles homepage ==== */
.zst-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.zst-article-card {
    background: var(--zst-white);
    border-radius: var(--zst-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--zst-text-dark);
    border: 1px solid var(--zst-cream-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.zst-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--zst-shadow-lg);
}
.zst-article-card-img {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--zst-gray-200);
}
.zst-article-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.zst-card-cat {
    font-family: var(--zst-font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zst-terracotta);
}
.zst-article-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    color: var(--zst-text-dark);
    font-weight: 600;
}
.zst-article-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--zst-text-muted);
    margin: 4px 0 0 0;
    flex: 1;
}
.zst-card-meta {
    font-family: var(--zst-font-ui);
    font-size: 12px;
    color: var(--zst-text-light);
    margin-top: auto;
    padding-top: 8px;
}

/* ==== Author strip ==== */
.zst-author-strip {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--zst-white);
    border-radius: var(--zst-radius-lg);
    padding: 32px;
    max-width: 720px;
    margin: 40px auto 0;
    box-shadow: var(--zst-shadow);
}
.zst-author-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--zst-cream-warm);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 3px solid var(--zst-cream);
}
.zst-author-info {
    flex: 1;
}
.zst-author-name {
    font-family: var(--zst-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--zst-text-dark);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}
.zst-author-role {
    font-family: var(--zst-font-ui);
    font-size: 13px;
    color: var(--zst-text-muted);
    margin: 0;
    letter-spacing: 0.01em;
}

/* ==== Footer ==== */
.zst-footer {
    background: var(--zst-green-night);
    color: var(--zst-cream-shadow);
    padding: 64px 0 32px;
    margin-top: 80px;
}
.zst-footer-inner {
    max-width: var(--zst-container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
}
.zst-footer-brand {
    font-family: var(--zst-font-heading);
    font-size: 24px;
    color: var(--zst-cream);
    margin: 0 0 16px 0;
}
.zst-footer-brand em {
    font-style: italic;
    color: var(--zst-gold);
}
.zst-footer p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--zst-gray-200);
    margin: 0 0 12px 0;
}
.zst-footer-signature {
    font-family: var(--zst-font-signature);
    font-size: 22px;
    color: var(--zst-gold);
    margin-top: 12px !important;
}
.zst-footer h4 {
    font-family: var(--zst-font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zst-gold);
    margin: 0 0 16px 0;
}
.zst-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.zst-footer ul li {
    margin: 0 0 10px 0;
}
.zst-footer ul li a {
    color: var(--zst-gray-200);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.zst-footer ul li a:hover {
    color: var(--zst-terracotta);
}
.zst-footer-bottom {
    max-width: var(--zst-container-max);
    margin: 40px auto 0;
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-family: var(--zst-font-ui);
    font-size: 12.5px;
    color: var(--zst-text-light);
    text-align: center;
    line-height: 1.7;
}

/* ==== Single article (EFR-like template) ==== */
.zst-single {
    background: transparent;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.zst-single-hero {
    background: var(--zst-cream-warm);
    padding: 60px 24px 40px;
    text-align: center;
    margin-bottom: 0;
}
.zst-single-hero-inner {
    max-width: 780px;
    margin: 0 auto;
}
.zst-single-cat {
    display: inline-block;
    font-family: var(--zst-font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zst-terracotta);
    margin-bottom: 16px;
    text-decoration: none;
}
.zst-single-cat:hover { color: var(--zst-terracotta-dark); }
.zst-single-hero h1 {
    font-family: var(--zst-font-heading);
    font-size: clamp(30px, 4.5vw, 44px);
    line-height: 1.2;
    margin: 0 0 32px 0;
    color: var(--zst-text-dark);
    font-weight: 600;
}
.zst-author-strip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: var(--zst-white);
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(30, 53, 41, 0.06);
}
.zst-author-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--zst-cream-warm);
    color: var(--zst-green);
    font-family: var(--zst-font-heading);
    font-style: italic;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.zst-author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.zst-author-name {
    font-family: var(--zst-font-heading);
    font-style: italic;
    font-size: 16px;
    font-weight: 600;
    color: var(--zst-text-dark);
    line-height: 1.2;
}
.zst-author-role {
    font-family: var(--zst-font-ui);
    font-size: 12.5px;
    color: var(--zst-text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.zst-single-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 60px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: start;
}
.zst-single-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.zst-toc-inner {
    background: var(--zst-cream-warm);
    border-radius: var(--zst-radius-lg);
    padding: 24px 22px;
}
.zst-toc-title {
    font-family: var(--zst-font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zst-terracotta);
    margin: 0 0 14px 0;
}
.zst-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}
.zst-toc-list li {
    counter-increment: toc-counter;
    margin: 0 0 10px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}
.zst-toc-list li::before {
    content: counter(toc-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: var(--zst-font-heading);
    font-style: italic;
    font-size: 13px;
    color: var(--zst-terracotta);
    font-weight: 500;
}
.zst-toc-list li a {
    color: var(--zst-text-medium);
    font-size: 13.5px;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
.zst-toc-list li a:hover { color: var(--zst-terracotta); }

.zst-single-body {
    font-family: var(--zst-font-body);
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--zst-text-medium);
    min-width: 0;
    max-width: 100%;
}
.zst-single-featured-img {
    margin: 0 0 32px 0;
    border-radius: var(--zst-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 53, 41, 0.10);
}
.zst-single-featured-img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}
.zst-single-body h2 {
    font-family: var(--zst-font-heading);
    font-size: 28px;
    line-height: 1.25;
    margin: 40px 0 20px 0;
    color: var(--zst-text-dark);
    font-weight: 600;
    scroll-margin-top: 100px;
}
.zst-single-body h3 {
    font-family: var(--zst-font-heading);
    font-size: 22px;
    margin: 32px 0 14px 0;
    color: var(--zst-text-dark);
}
.zst-single-body p { margin: 0 0 20px 0; }
.zst-single-body strong { color: var(--zst-text-dark); font-weight: 600; }
.zst-single-body ul,
.zst-single-body ol { margin: 0 0 24px 0; padding-left: 24px; }
.zst-single-body li { margin: 0 0 10px 0; line-height: 1.7; }
.zst-single-body a {
    color: var(--zst-terracotta);
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 87, 0.3);
    text-underline-offset: 3px;
}
.zst-single-body a:hover {
    color: var(--zst-terracotta-dark);
    text-decoration-color: var(--zst-terracotta-dark);
}
.zst-single-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--zst-white);
    border-radius: var(--zst-radius);
    overflow: hidden;
}
.zst-single-body table th,
.zst-single-body table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--zst-cream-shadow);
    font-size: 15.5px;
}
.zst-single-body table th {
    background: var(--zst-cream-warm);
    font-family: var(--zst-font-ui);
    font-weight: 600;
    color: var(--zst-text-dark);
    font-size: 14px;
}

/* Hide Astra default entry-header on single (we have our custom hero) */
html body.single .entry-header,
html body.single .single-featured-image-header,
html body.single .ast-single-post-header { display: none !important; }

/* Force Astra containers to full width on single */
html body.single.ast-separate-container #page,
html body.single.ast-separate-container #content,
html body.single.ast-separate-container #primary,
html body.single #primary.content-area,
html body.single main#main.site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    display: block !important;
}
html body.single .ast-container,
html body.single .ast-primary-content-area {
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
}
html body.single article.hentry,
html body.single main#main article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    max-width: 100% !important;
}
html body.single .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}
/* La zst-single-wrap gere ses propres marges/max-width */

/* Archive/category page (EFR-like) */
.zst-archive-hero {
    background: var(--zst-cream-warm);
    padding: 72px 24px 48px;
    text-align: center;
}
.zst-archive-hero-inner {
    max-width: 780px;
    margin: 0 auto;
}
.zst-archive-hero .zst-hero-eyebrow {
    display: inline-block;
    font-family: var(--zst-font-signature);
    font-size: 22px;
    color: var(--zst-terracotta);
    margin-bottom: 8px;
}
.zst-archive-hero h1 {
    font-family: var(--zst-font-heading);
    font-size: clamp(32px, 4.5vw, 48px);
    color: var(--zst-text-dark);
    margin: 0 0 16px 0;
    line-height: 1.15;
    font-weight: 600;
}
.zst-archive-desc {
    font-family: var(--zst-font-body);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--zst-text-medium);
}

/* Archive grid : reuse .zst-articles-grid + .zst-article-card */
body.archive .zst-articles-grid,
body.category .zst-articles-grid {
    padding: 40px 0;
}

/* Original single ==== hide ==== */
.zst-single {
    background: transparent;
}
.zst-single-hero {
    background: var(--zst-cream-warm);
    padding: 60px 24px 40px;
    text-align: center;
}
.zst-single-hero-inner {
    max-width: 780px;
    margin: 0 auto;
}
.zst-single-cat {
    display: inline-block;
    font-family: var(--zst-font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zst-terracotta);
    margin-bottom: 16px;
    text-decoration: none;
}
.zst-single-hero h1 {
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.15;
    margin: 0 0 24px 0;
    color: var(--zst-text-dark);
}
.zst-single-hero h1 em {
    font-style: italic;
    color: var(--zst-terracotta);
    font-weight: 500;
}
.zst-single-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: flex-start;
}
.zst-single-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.zst-toc-inner {
    background: var(--zst-cream-warm);
    border-radius: var(--zst-radius-lg);
    padding: 24px 22px;
}
.zst-toc-title {
    font-family: var(--zst-font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zst-terracotta);
    margin: 0 0 14px 0;
}
.zst-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}
.zst-toc-list li {
    counter-increment: toc-counter;
    margin: 0 0 10px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}
.zst-toc-list li::before {
    content: counter(toc-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: var(--zst-font-heading);
    font-style: italic;
    font-size: 13px;
    color: var(--zst-terracotta);
    font-weight: 500;
}
.zst-toc-list li a {
    color: var(--zst-text-medium);
    font-size: 14px;
    text-decoration: none;
    line-height: 1.45;
    display: block;
}
.zst-toc-list li a:hover {
    color: var(--zst-terracotta);
}
.zst-single-body {
    font-family: var(--zst-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--zst-text-medium);
}
.zst-single-featured-img {
    margin: 0 0 32px 0;
    border-radius: var(--zst-radius-lg);
    overflow: hidden;
}
.zst-single-featured-img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}
.zst-single-body h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 40px 0 20px 0;
    color: var(--zst-text-dark);
    font-weight: 600;
    scroll-margin-top: 100px;
}
.zst-single-body h3 {
    font-size: 22px;
    margin: 32px 0 14px 0;
    color: var(--zst-text-dark);
}
.zst-single-body p {
    margin: 0 0 20px 0;
}
.zst-single-body strong {
    color: var(--zst-text-dark);
    font-weight: 600;
}
.zst-single-body ul, .zst-single-body ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}
.zst-single-body li {
    margin: 0 0 10px 0;
    line-height: 1.7;
}
.zst-single-body a {
    color: var(--zst-terracotta);
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 87, 0.3);
    text-underline-offset: 3px;
}
.zst-single-body a:hover {
    color: var(--zst-terracotta-dark);
    text-decoration-color: var(--zst-terracotta-dark);
}
.zst-single-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--zst-white);
    border-radius: var(--zst-radius);
    overflow: hidden;
}
.zst-single-body table th,
.zst-single-body table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--zst-cream-shadow);
    font-size: 15.5px;
}
.zst-single-body table th {
    background: var(--zst-cream-warm);
    font-family: var(--zst-font-ui);
    font-weight: 600;
    color: var(--zst-text-dark);
    font-size: 14px;
    letter-spacing: 0.01em;
}
.zst-single-body blockquote {
    margin: 30px 0;
    padding: 20px 28px;
    border-left: 3px solid var(--zst-terracotta);
    background: var(--zst-cream-warm);
    font-style: italic;
    color: var(--zst-text-medium);
}

/* ==== Category archive ==== */
.zst-archive-hero {
    background: var(--zst-cream-warm);
    padding: 60px 24px 40px;
    text-align: center;
}
.zst-archive-hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 12px 0;
    color: var(--zst-text-dark);
}
.zst-archive-hero p {
    font-size: 17px;
    color: var(--zst-text-medium);
    max-width: 640px;
    margin: 0 auto;
}
.zst-archive-grid {
    max-width: var(--zst-container-max);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

/* ==== Mobile menu panel ==== */
#zst-mnav {
    display: none;
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--zst-cream);
    z-index: 99;
    overflow-y: auto;
    padding: 24px 20px 40px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}
#zst-mnav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#zst-mnav .zst-mnav-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 480px;
    margin: 0 auto;
}
#zst-mnav a {
    display: block;
    padding: 18px 12px;
    color: var(--zst-text-dark) !important;
    font-family: var(--zst-font-heading);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--zst-cream-shadow);
}
#zst-mnav a:hover {
    color: var(--zst-terracotta) !important;
}

/* ==== Responsive ==== */
@media (max-width: 900px) {
    .zst-header-nav { display: none; }
    .zst-mburger { display: flex; }
    #zst-mnav { display: block; }
    .zst-hero { margin: 48px auto 32px; }
    .zst-section { padding: 56px 0; }
    .zst-single-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 20px 40px;
    }
    .zst-single-toc {
        position: static;
        max-height: none;
    }
    .zst-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
@media (max-width: 600px) {
    .zst-section { padding: 48px 0; }
    .zst-cats-grid { grid-template-columns: 1fr; }
    .zst-articles-grid { grid-template-columns: 1fr; }
    .zst-cat-card { padding: 28px 22px 24px; min-height: auto; }
}
