/* =============================================================================
   ZenSleepZone — Archive & CPT  (04-archive-cpt.css)
   Optimized & Deduplicated Version
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   1. ASTRA FULL-WIDTH OVERRIDES
   ───────────────────────────────────────────────────────────────────────── */
body.category .ast-row, body.category .ast-container-layout,
body.category .site-content .ast-container, body.category .ast-container,
body.tag .ast-row, body.tag .ast-container-layout,
body.tag .site-content .ast-container, body.tag .ast-container,
body.single-answer_hub .ast-row, body.single-answer_hub .ast-container-layout,
body.single-infographic .ast-row, body.single-infographic .ast-container-layout,
body.single-interactive_tool .ast-row, body.single-interactive_tool .ast-container-layout,
body.page-template-page-answer-hub .ast-row, body.page-template-page-answer-hub .ast-container-layout,
body.page-template-infographic-gallery .ast-row, body.page-template-infographic-gallery .ast-container-layout,
body.page-template-page-interactive-hub .ast-row, body.page-template-page-interactive-hub .ast-container-layout {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.category #primary, body.category .content-area, body.category .site-main,
body.tag #primary, body.tag .content-area, body.tag .site-main,
body.single-answer_hub #primary, body.single-answer_hub .content-area,
body.single-infographic #primary, body.single-infographic .content-area,
body.single-interactive_tool #primary, body.single-interactive_tool .content-area,
body.page-template-page-answer-hub #primary, body.page-template-page-answer-hub .content-area,
body.page-template-infographic-gallery #primary, body.page-template-infographic-gallery .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.category, body.tag { overflow-x: hidden; }

/* ─────────────────────────────────────────────────────────────────────────────
   2. SHARED ARCHIVE HERO (category, tag, answer-hub, infographic, tool)
   ───────────────────────────────────────────────────────────────────────── */
.zsz-arc-hero {
    width: 100%;
    background: var(--zsz-grad-full);
    color: #fff;
    padding: 4.5rem 1.5rem 3.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.zsz-arc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.3) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .12;
    pointer-events: none;
}

.zsz-arc-hero::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(240,147,251,.22) 0%, rgba(118,75,162,.08) 70%, transparent 100%);
    border-radius: 50%;
    top: -130px;
    right: -110px;
    pointer-events: none;
}

.zsz-arc-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 840px;
    margin: 0 auto;
}

.zsz-arc-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin: .6rem 0 1rem;
}

.zsz-arc-hero__desc {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: rgba(255,255,255,.92);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.zsz-arc-hero__meta {
    font-size: .85rem;
    color: rgba(255,255,255,.72);
    margin-bottom: 1.5rem;
}

.zsz-arc-hero--pillar {
    border-bottom: 4px solid var(--pillar-color, var(--zsz-primary));
}

/* Navigation Pills & Tabs */
.zsz-arc-nav, .zta-tabs, .zsz-arc-tabs {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.zsz-arc-nav__pill, .zta-tab, .zsz-arc-tab {
    padding: .5rem 1.2rem;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.28);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
    text-decoration: none;
    transition: all var(--zsz-ease);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.zsz-arc-nav__pill:hover, .zta-tab:hover, .zsz-arc-tab:hover,
.zsz-arc-nav__pill.is-active, .zta-tab.active, .zsz-arc-tab.is-active {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.68);
    transform: translateY(-2px);
    color: #fff;
}

.zta-tab-count {
    background: rgba(255,255,255,.2);
    padding: .1rem .4rem;
    border-radius: 20px;
    font-size: .7rem;
    margin-left: .2rem;
}

/* Shared Grid */
.zsz-arc-grid, .zta-grid, .zsz-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 960px) {
    .zsz-arc-grid, .zta-grid, .zsz-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .zsz-arc-grid, .zta-grid, .zsz-related__grid {
        grid-template-columns: 1fr;
    }
}

/* Shared Empty State */
.zsz-arc-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--zsz-white);
    border-radius: var(--zsz-r-lg);
    border: 1.5px dashed var(--zsz-border);
}
.zsz-arc-empty__icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.zsz-arc-empty__title { font-size: 1.25rem; color: var(--zsz-t1); margin-bottom: .5rem; }
.zsz-arc-empty__text { color: var(--zsz-t3); margin-bottom: 1.5rem; }

/* Shared Related Posts */
.zsz-related {
    background: var(--zsz-white);
    border-top: 3px solid var(--zsz-border);
    padding: 3.5rem 1.5rem;
}
.zsz-related__inner { max-width: 1200px; margin: 0 auto; }
.zsz-related__label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--zsz-primary);
    text-align: center;
    margin-bottom: .4rem;
}
.zsz-related__head {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    text-align: center;
    color: var(--zsz-t1);
    margin-bottom: .6rem;
}

/* Related Card */
.zsz-rcard {
    background: var(--zsz-bg);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    overflow: hidden;
    transition: transform var(--zsz-ease);
    text-decoration: none;
    display: block;
}
.zsz-rcard:hover { transform: translateY(-6px); }
.zsz-rcard__thumb {
    height: 130px;
    overflow: hidden;
    position: relative;
}
.zsz-rcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.zsz-rcard__type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: .2rem .65rem;
    border-radius: 100px;
    font-size: .6rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
}
.zsz-rcard__body { padding: 1.2rem; }
.zsz-rcard__title {
    font-size: .98rem;
    font-weight: 700;
    color: var(--zsz-t1);
    margin-bottom: .55rem;
    line-height: 1.35;
}
.zsz-rcard__title:hover { color: var(--zsz-primary); }
.zsz-rcard__excerpt {
    font-size: .82rem;
    color: var(--zsz-t2);
    line-height: 1.55;
    margin-bottom: .75rem;
}
.zsz-rcard__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--zsz-primary);
    text-decoration: none;
}

/* Body Layout (content + sidebar) */
.zsz-page-body, .zsz-arc-body {
    max-width: 1380px;
    margin: 0 auto;
    padding: 2.8rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr var(--zsz-sidebar-w);
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 1100px) {
    .zsz-page-body, .zsz-arc-body {
        grid-template-columns: 1fr;
    }
    .zsz-sidebar { display: none; }
}
@media (max-width: 768px) {
    .zsz-page-body, .zsz-arc-body {
        padding: 1.5rem 1rem 3rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. ANSWER HUB SINGLE PAGE
   ───────────────────────────────────────────────────────────────────────── */
.zsz-single-ah-wrapper { width: 100%; overflow-x: hidden; }

.zsz-ah-hero {
    width: 100%;
    background: var(--zsz-grad-full);
    color: #fff;
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.zsz-ah-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.3) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .12;
    pointer-events: none;
}
.zsz-ah-hero__inner { max-width: 780px; margin: 0 auto; }

.zsz-ah-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.35);
    padding: .42rem 1.2rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1.1rem;
}
.zsz-ah-title {
    font-size: clamp(1.7rem, 4.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.zsz-ah-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.zsz-ah-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.14);
    padding: .35rem .85rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.22);
    font-weight: 600;
    font-size: .82rem;
}
.zsz-ah-hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; }
.zsz-ah-hero-tag {
    padding: .28rem .8rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50px;
    font-size: .7rem;
    color: rgba(255,255,255,.82);
    text-decoration: none;
}

/* Hub Summary (3-col stats) */
.zsz-ah-summary {
    background: var(--zsz-card);
    border: 1.5px solid var(--zsz-border);
    border-left: 4px solid var(--zsz-primary);
    border-radius: var(--zsz-r);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.zsz-ah-summary__label {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--zsz-primary);
}
.zsz-ah-summary__val { font-size: .88rem; color: var(--zsz-t2); line-height: 1.55; }

/* Controls Bar */
.zsz-ah-controls {
    background: var(--zsz-card);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.zsz-ah-ctrl-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}
.zsz-ah-ctrl-search-wrap { flex: 1; max-width: 300px; }
.zsz-ah-ctrl-search-wrap input {
    width: 100%;
    padding: .6rem 1rem;
    border: 1.5px solid var(--zsz-border);
    border-radius: 30px;
    font-size: .85rem;
}
.zsz-ah-expand-all {
    padding: .5rem 1rem;
    background: var(--zsz-grad);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--zsz-ease);
}
.zsz-ah-expand-all:hover { transform: translateY(-2px); box-shadow: var(--zsz-sh-sm); }
.zsz-ah-ctrl-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.zsz-ah-cpill {
    padding: .3rem .9rem;
    background: var(--zsz-bg);
    border: 1px solid var(--zsz-border);
    border-radius: 30px;
    font-size: .75rem;
    cursor: pointer;
}
.zsz-ah-cpill.active {
    background: var(--zsz-grad);
    color: #fff;
    border-color: transparent;
}

/* Q&A List */
.zsz-ah-qa-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-bottom: 2rem;
}
.zsz-ah-qa-list .rank-math-list-item,
.zsz-ah-qa-item {
    background: var(--zsz-card);
    border: 1.5px solid var(--zsz-border);
    border-left: 4px solid var(--zsz-primary);
    border-radius: var(--zsz-r);
    overflow: hidden;
    transition: all .3s ease;
}
.zsz-ah-qa-list .rank-math-list-item:hover,
.zsz-ah-qa-item:hover {
    border-color: rgba(79,70,229,.45);
    box-shadow: 0 4px 20px rgba(79,70,229,.1);
}
.zsz-ah-qa-list .faq-question,
.zsz-ah-q-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 1.1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .85rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--zsz-t1);
}
.zsz-ah-qa-list .faq-icon,
.zsz-ah-q-btn__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--zsz-bg);
    color: var(--zsz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform .28s ease, background .28s ease, color .28s ease;
}
.zsz-ah-qa-list .rank-math-list-item.open .faq-icon,
.zsz-ah-qa-item.is-open .zsz-ah-q-btn__icon {
    transform: rotate(45deg);
    background: var(--zsz-primary);
    color: #fff;
}
.zsz-ah-qa-list .rank-math-answer,
.zsz-ah-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .42s ease;
    background: #fafbff;
    border-top: 1.5px solid var(--zsz-border);
}
.zsz-ah-qa-list .rank-math-list-item.open .rank-math-answer,
.zsz-ah-qa-item.is-open .zsz-ah-answer {
    max-height: 900px;
}
.zsz-ah-qa-list .rank-math-answer > div,
.zsz-ah-answer__inner { padding: 1.25rem 1.4rem 1.4rem; }

/* Rank Math FAQ Override */
#rank-math-faq, #rank-math-faq * { box-sizing: border-box; }
#rank-math-faq { display: block !important; margin: 2.5rem 0 !important; padding: 0 !important; }
#rank-math-faq .rank-math-block,
#rank-math-faq .rank-math-list { padding: 0 !important; margin: 0 !important; list-style: none !important; }

#rank-math-faq .rank-math-list-item {
    display: block !important;
    border: 1px solid var(--zsz-border) !important;
    border-radius: var(--zsz-r) !important;
    margin-bottom: .6rem !important;
    overflow: hidden !important;
    background: var(--zsz-white) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.07) !important;
    transition: border-color var(--zsz-ease), box-shadow var(--zsz-ease) !important;
    padding: 0 !important;
}
#rank-math-faq .rank-math-list-item:hover,
#rank-math-faq .rank-math-list-item.open {
    border-color: var(--pillar-color, var(--zsz-primary)) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.11) !important;
}

/* Article Link Banner */
.zsz-ah-article-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border: 1.5px solid #fde68a;
    border-radius: var(--zsz-r);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: all var(--zsz-ease);
}
.zsz-ah-article-link:hover { transform: translateY(-3px); box-shadow: var(--zsz-sh-md); }
.zsz-ah-article-icon { font-size: 2rem; }
.zsz-ah-article-body { flex: 1; }
.zsz-ah-article-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #b45309;
}
.zsz-ah-article-title { font-size: 1rem; font-weight: 700; color: #92400e; }
.zsz-ah-article-arrow { font-size: 1.25rem; color: #b45309; }

/* ─────────────────────────────────────────────────────────────────────────────
   4. INFOGRAPHIC CPT
   ───────────────────────────────────────────────────────────────────────── */
.zsz-ig-wrapper,
.zsz-ig-gallery-wrapper { width: 100%; overflow-x: hidden; }

.zsz-ig-display {
    text-align: center;
    background: #eef2f8;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.zsz-ig-display img { max-width: 100%; height: auto; border-radius: 8px; transition: transform .3s ease; }

.zsz-ig-vstats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: .5rem;
    z-index: 5;
}
.zsz-ig-vstat {
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 600;
    color: #fff;
}

.zsz-zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    background: var(--zsz-bg);
    border: 1.5px solid var(--zsz-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: .85rem;
    transition: all var(--zsz-ease);
}
.zsz-zoom-btn:hover { border-color: var(--zsz-primary); color: var(--zsz-primary); }

.zsz-btn--download {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--zsz-grad);
    color: #fff;
    padding: .8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--zsz-ease);
}
.zsz-btn--download:hover { transform: translateY(-2px); box-shadow: var(--zsz-sh-md); }

/* Infographic Sidebar */
.zsz-ig-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.zsz-ig-sidebar-card {
    background: var(--zsz-white);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    overflow: hidden;
}
.zsz-ig-sidebar-title {
    background: var(--zsz-grad);
    color: #fff;
    padding: .8rem 1.2rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.zsz-ig-sidebar-body { padding: 1rem 1.2rem; }

.zsz-ig-main-card {
    background: var(--zsz-white);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    padding: 2rem;
    box-shadow: var(--zsz-sh-sm);
}
.zsz-infographic-controls {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Infographic Gallery Hero */
.zsz-ig-gallery-hero {
    background: var(--zsz-grad-full);
    color: #fff;
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
}
.zsz-ig-gallery-hero__inner { max-width: 840px; margin: 0 auto; }
.zsz-ig-gallery-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.zsz-ig-gallery-stats span {
    background: rgba(255,255,255,.12);
    padding: .3rem .9rem;
    border-radius: 50px;
    font-size: .8rem;
}
.zsz-ig-gallery-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.zsz-ig-gallery-results-count { font-size: .85rem; color: var(--zsz-t3); }
.zsz-ig-gallery-sort {
    padding: .5rem 1rem;
    border: 1.5px solid var(--zsz-border);
    border-radius: 30px;
    background: var(--zsz-white);
    font-size: .85rem;
    cursor: pointer;
}

/* Infographic Related Bottom */
.zsz-ig-related-bottom,
.zsz-ig-related {
    background: var(--zsz-white);
    border-top: 3px solid var(--zsz-border);
    padding: 3.5rem 1.5rem;
}
.zsz-ig-related-bottom-inner,
.zsz-ig-related-inner { max-width: 1200px; margin: 0 auto; }
.zsz-ig-related-label,
.zsz-ig-related-label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--zsz-primary);
    text-align: center;
    margin-bottom: .4rem;
}
.zsz-ig-related-head,
.zsz-ig-related-head {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: .6rem;
}
.zsz-ig-related-grid,
.zsz-ig-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.zsz-ig-rcard {
    background: var(--zsz-bg);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    overflow: hidden;
    transition: transform var(--zsz-ease);
    text-decoration: none;
    display: block;
}
.zsz-ig-rcard:hover { transform: translateY(-6px); }
.zsz-ig-rcard-thumb {
    height: 140px;
    overflow: hidden;
    position: relative;
}
.zsz-ig-rcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zsz-ig-rcard-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: .2rem .65rem;
    border-radius: 100px;
    font-size: .6rem;
    font-weight: 700;
    color: #fff;
}
.zsz-ig-rcard-body { padding: 1.2rem; }
.zsz-ig-rcard-title {
    font-size: .98rem;
    font-weight: 700;
    color: var(--zsz-t1);
    margin-bottom: .55rem;
}
.zsz-ig-rcard-excerpt {
    font-size: .82rem;
    color: var(--zsz-t2);
    line-height: 1.55;
    margin-bottom: .75rem;
}
.zsz-ig-rcard-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--zsz-primary);
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. INTERACTIVE TOOL CPT
   ───────────────────────────────────────────────────────────────────────── */
.zsz-ih-wrapper,
.zsz-it-wrapper { width: 100%; overflow-x: hidden; }

.zsz-it-content {
    background: var(--zsz-card);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    overflow: hidden;
}
.zsz-it-intro {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--zsz-border);
}
.zsz-it-intro-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .5rem;
    font-size: .8rem;
    color: var(--zsz-t3);
}
.zsz-it-tool-frame { padding: 2.5rem; }

.zsz-it-meta-row {
    padding: 1.2rem 2.5rem;
    border-bottom: 1px solid var(--zsz-border);
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.zsz-it-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.14);
    color: #fff;
}

.zsz-diff-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .85rem;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.zsz-diff-badge[data-diff="easy"] { background: #dcfce7; color: #15803d; }
.zsz-diff-badge[data-diff="medium"] { background: #fef3c7; color: #92400e; }
.zsz-diff-badge[data-diff="advanced"] { background: #fee2e2; color: #991b1b; }

.zsz-it-post-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--zsz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.zsz-it-share { display: flex; align-items: center; gap: .55rem; }
.zsz-it-share__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--zsz-t3);
}
.zsz-it-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: transform var(--zsz-ease), box-shadow var(--zsz-ease);
    background: var(--zsz-bg);
    border: 1.5px solid var(--zsz-border);
}
.zsz-it-share-btn:hover { transform: translateY(-2px); box-shadow: var(--zsz-sh); }

.zsz-it-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2.2rem;
    background: #fff;
    color: var(--zsz-secondary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: all var(--zsz-ease);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.zsz-it-hero-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.zsz-it-hero-cta.is-disabled {
    background: rgba(255,255,255,.4);
    color: rgba(118,75,162,.7);
    cursor: not-allowed;
    pointer-events: none;
}

.zsz-it-body {
    max-width: 1380px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 970px var(--zsz-sidebar-w);
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 1300px) {
    .zsz-it-body { grid-template-columns: 1fr var(--zsz-sidebar-w); }
}
@media (max-width: 1100px) {
    .zsz-it-body { grid-template-columns: 1fr; }
    .zsz-it-sidebar { display: none !important; }
}
@media (max-width: 768px) {
    .zsz-it-body { padding: 1.5rem 1rem 3rem; }
    .zsz-it-tool-frame, .zsz-it-intro,
    .zsz-it-meta-row, .zsz-it-post-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.zsz-it-coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(79,70,229,.06), rgba(124,58,237,.06));
    border: 2px dashed rgba(79,70,229,.3);
    border-radius: 16px;
    margin: 2rem 0;
}
.zsz-it-coming-soon__icon { font-size: 4rem; display: block; margin-bottom: 1rem; }

.zsz-ih-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.zsz-ih-results-count { font-size: .85rem; color: var(--zsz-t3); margin: 0; }
.zsz-ih-sort {
    padding: .5rem 1rem;
    border: 1.5px solid var(--zsz-border);
    border-radius: 30px;
    background: var(--zsz-white);
    font-size: .85rem;
    cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. TAG GALLERY (page-tags.php)
   ───────────────────────────────────────────────────────────────────────── */
.ztg-wrap { width: 100%; background: var(--zsz-bg); min-height: 100vh; }

.ztg-hero {
    background: var(--zsz-grad-full);
    color: #fff;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}
.ztg-hero-inner { max-width: 840px; margin: 0 auto; }
.ztg-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: .5rem 0; }
.ztg-hero p { font-size: 1rem; opacity: .9; max-width: 600px; margin: 0 auto 1rem; }
.ztg-hero-stats { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.ztg-stat-pill {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;
    padding: .35rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
}

.ztg-alphabet-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .3rem;
    padding: .8rem 1rem;
    background: var(--zsz-white);
    border-bottom: 1px solid var(--zsz-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.ztg-letter-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}
.ztg-letter-jump.has-tags { background: var(--zsz-grad); color: #fff; }
.ztg-letter-jump.has-tags:hover { transform: translateY(-2px); box-shadow: var(--zsz-sh-sm); }
.ztg-letter-jump.no-tags { background: var(--zsz-bg); color: var(--zsz-t4); cursor: default; opacity: .5; }

.ztg-filter-bar {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.5rem 0;
}
.ztg-search {
    flex: 1;
    min-width: 250px;
    padding: .7rem 1rem;
    border: 1.5px solid var(--zsz-border);
    border-radius: 30px;
    background: var(--zsz-white);
}
.ztg-filter-label { font-size: .8rem; font-weight: 600; color: var(--zsz-t3); }
.ztg-sort-select {
    padding: .6rem 1rem;
    border: 1.5px solid var(--zsz-border);
    border-radius: 30px;
    background: var(--zsz-white);
    font-size: .85rem;
    cursor: pointer;
}
.ztg-count-display {
    font-size: .8rem;
    color: var(--zsz-t3);
    background: var(--zsz-bg);
    padding: .4rem .8rem;
    border-radius: 30px;
}

.ztg-container { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.ztg-section {
    margin-bottom: 2rem;
    background: var(--zsz-white);
    border-radius: var(--zsz-r-lg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--zsz-border);
}
.ztg-letter-head {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--zsz-border);
}
.ztg-letter-char { font-size: 1.6rem; font-weight: 800; color: var(--zsz-primary); }
.ztg-letter-sub {
    font-size: .75rem;
    color: var(--zsz-t3);
    background: var(--zsz-bg);
    padding: .2rem .6rem;
    border-radius: 20px;
}
.ztg-tags-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.ztg-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem 1rem;
    border-radius: 40px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}
.ztg-chip:hover { transform: translateY(-2px); box-shadow: var(--zsz-sh-sm); }
.ztg-chip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ztg-chip-name { font-weight: 600; }
.ztg-chip-count {
    font-size: .7rem;
    opacity: .7;
    margin-left: .2rem;
    background: rgba(0,0,0,.08);
    padding: .1rem .4rem;
    border-radius: 20px;
}
.ztg-chip.ztg-hidden { display: none !important; }
.ztg-section.ztg-section-empty { display: none !important; }
.ztg-empty {
    text-align: center;
    padding: 3rem;
    background: var(--zsz-white);
    border-radius: var(--zsz-r-lg);
    border: 1px dashed var(--zsz-border);
    display: none;
}
.ztg-empty.visible { display: block; }

/* ─────────────────────────────────────────────────────────────────────────────
   7. TAG ARCHIVE (tag.php)
   ───────────────────────────────────────────────────────────────────────── */
.zta-wrap { width: 100%; background: var(--zsz-bg); min-height: 100vh; }

.zta-hero {
    background: var(--zsz-grad-full);
    color: #fff;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}
.zta-hero-inner { max-width: 840px; margin: 0 auto; }
.zta-tag-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.35);
    padding: .4rem 1.2rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.zta-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: .5rem 0; }
.zta-hero-meta { margin: 1rem 0; }
.zta-hero-count {
    background: rgba(255,255,255,.12);
    padding: .3rem .9rem;
    border-radius: 50px;
    font-size: .8rem;
}
.zta-desc { font-size: 1rem; color: rgba(255,255,255,.9); max-width: 700px; margin: 1rem auto 0; }

.zta-tabs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.zta-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid var(--zsz-border);
}
.zta-results-info { font-size: .85rem; color: var(--zsz-t3); }
.zta-sort-controls { display: flex; align-items: center; gap: .5rem; }
.zta-sort-label { font-size: .8rem; color: var(--zsz-t3); }
.zta-sort-btn {
    padding: .3rem .9rem;
    background: var(--zsz-bg);
    border: 1.5px solid var(--zsz-border);
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--zsz-t2);
    text-decoration: none;
}
.zta-sort-btn[aria-current="true"],
.zta-sort-btn:hover {
    background: var(--zsz-grad);
    color: #fff;
    border-color: transparent;
}

.zta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 2rem;
}
@media (max-width: 960px) { .zta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .zta-grid { grid-template-columns: 1fr; } }

.zta-card {
    background: var(--zsz-white);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}
.zta-card:hover { transform: translateY(-6px); box-shadow: var(--zsz-sh-lg); }
.zta-card-thumb {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: var(--zsz-grad);
}
.zta-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.zta-card:hover .zta-card-thumb img { transform: scale(1.05); }
.zta-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.zta-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: .25rem .7rem;
    border-radius: 100px;
    font-size: .6rem;
    font-weight: 700;
    background: rgba(0,0,0,.65);
    color: #fff;
    backdrop-filter: blur(4px);
}
.zta-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.zta-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}
.zta-card-title a { color: var(--zsz-t1); text-decoration: none; }
.zta-card-title a:hover { color: var(--zsz-primary); }
.zta-card-excerpt {
    font-size: .85rem;
    color: var(--zsz-t2);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zta-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--zsz-border);
}
.zta-card-date { font-size: .7rem; color: var(--zsz-t3); }
.zta-read-more {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--zsz-grad);
    color: #fff;
    padding: .35rem .9rem;
    border-radius: 30px;
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
}
.zta-read-more:hover { transform: translateY(-2px); color: #fff; }

.zta-no-results {
    text-align: center;
    padding: 3rem;
    background: var(--zsz-white);
    border-radius: var(--zsz-r-lg);
    border: 1px dashed var(--zsz-border);
    grid-column: 1/-1;
}

.zta-related-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1.5px solid var(--zsz-border);
}
.zta-related-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--zsz-primary);
    margin-bottom: 1rem;
}
.zta-related-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.zta-related-chip {
    padding: .35rem 1rem;
    background: var(--zsz-bg);
    border: 1.5px solid var(--zsz-border);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--zsz-t2);
    text-decoration: none;
}
.zta-related-chip:hover {
    background: var(--zsz-primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. GLOBAL UI CHROME
   ───────────────────────────────────────────────────────────────────────── */
.zsz-main { width: 100%; }
.zsz-cat-wrapper { width: 100%; overflow-x: hidden; }

#zsz-read-prog-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--zsz-grad-full);
    z-index: 9999;
    transition: width .3s ease;
}

#zsz-back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--zsz-grad);
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--zsz-ease);
    z-index: 999;
}
#zsz-back-top.is-visible { opacity: 1; transform: translateY(0); }
#zsz-back-top:hover { transform: translateY(-3px); box-shadow: var(--zsz-sh-md); }

.zsz-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.zsz-skip-link:focus {
    left: 1rem !important;
    top: 1rem !important;
    width: auto !important;
    height: auto !important;
    background: var(--zsz-primary);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    z-index: 99999;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. ACCESSIBILITY & PRINT
   ───────────────────────────────────────────────────────────────────────── */
.zsz-arc-grid .zsz-card a:focus-visible,
#rank-math-faq .faq-question:focus-visible,
.zsz-ah-q-btn:focus-visible,
.zsz-arc-nav__pill:focus-visible,
.zsz-arc-tab:focus-visible,
.zta-tab:focus-visible {
    outline: 2px solid var(--zsz-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

@media print {
    .zsz-arc-hero::before, .zsz-arc-hero::after { display: none; }
    .zsz-arc-hero { background: #f5f5f5 !important; color: #000 !important; }
    #zsz-read-prog-bar, #zsz-back-top, .zsz-sidebar { display: none !important; }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .zsz-arc-hero { padding: 3rem 1rem 2.5rem; }
    .zsz-ah-summary { grid-template-columns: 1fr; padding: 1rem; }
    .zsz-ah-ctrl-top { flex-direction: column; align-items: stretch; }
    .zsz-ah-ctrl-search-wrap { max-width: 100%; }
    .ztg-filter-bar { flex-direction: column; align-items: stretch; }
    .ztg-section { padding: 1rem; }
    .ztg-letter-char { font-size: 1.3rem; }
}
@media (max-width: 640px) {
    .zsz-ah-article-link { flex-wrap: wrap; }
    .ztg-alphabet-bar { gap: .2rem; }
    .ztg-letter-jump { width: 30px; height: 30px; font-size: .75rem; }
    .zta-tab span:first-child { display: none; }
    .zta-tab { padding: .4rem .8rem; font-size: .7rem; }
}