/**
 * Comtechzone — Premium Single Article
 * Compact spacing update
 * TOC, Previous / Next, Related Articles
 */

/* 01. DESIGN FOUNDATION */
.ctz-single {
    --ctz-article-accent: var(--ctz-single-accent, #2563eb);
    --ctz-article-heading: var(--ctz-single-heading, #0f172a);
    --ctz-article-text: var(--ctz-single-text, #334155);
    --ctz-article-muted: #64748b;
    --ctz-article-border: var(--ctz-single-border, #e2e8f0);
    --ctz-article-surface: var(--ctz-single-surface, #ffffff);
    --ctz-toc-primary: var(--ctz-single-accent, #2563eb);
    --ctz-toc-secondary: #7c3aed;
    --ctz-toc-tertiary: #06b6d4;
    min-width: 0;
    padding: 20px 0 70px;
    background: var(--ctz-single-bg, #f8fafc);
    color: var(--ctz-article-text);
    font-family: inherit;
}

.ctz-single *,
.ctz-single *::before,
.ctz-single *::after {
    box-sizing: border-box;
}

.ctz-single .ctz-single-container {
    width: min(var(--ctz-single-container-width, 1220px), calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
}

.ctz-single a {
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease,
        border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}

.ctz-single img { max-width: 100%; }

.ctz-single :is(a, button, summary, input, textarea):focus-visible {
    outline: 3px solid var(--ctz-article-accent);
    outline-offset: 3px;
}

.ctz-single-breadcrumbs,
.ctz-single-tags,
.ctz-single-sidebar-card {
    display: none !important;
}

/* 02. READING PROGRESS */
.ctz-reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 9999;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
}

.ctz-reading-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #06b6d4 45%, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

body.admin-bar .ctz-reading-progress { top: 32px; }

/* 03. ARTICLE HEADER */
.ctz-single-hero {
    position: relative;
    max-width: 1000px;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid #dce5f1;
    border-radius: 0;
    background: transparent;
    color: var(--ctz-article-heading);
    box-shadow: none;
    overflow: visible;
}

.ctz-single-hero::before,
.ctz-single-hero::after {
    content: none;
    display: none;
}

.ctz-single-category {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 10px;
    padding: 7px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ctz-single-category:hover {
    border-color: #a5b4fc;
    background: #e0e7ff;
    color: #4338ca;
}

.ctz-single-title {
    max-width: 980px;
    margin: 0;
    color: var(--ctz-article-heading);
    font-size: clamp(28px, 3.1vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.ctz-single-intro {
    max-width: 850px;
    margin: 10px 0 0;
    color: #52647c;
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.8;
}

.ctz-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 13px;
    padding: 0;
    border: 0;
    color: var(--ctz-article-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.ctz-single-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ctz-single-meta-author img {
    display: block;
    width: 36px;
    height: 36px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #dbe5f0;
    object-fit: cover;
}

.ctz-single-meta a {
    color: var(--ctz-article-heading);
    font-weight: 750;
}

.ctz-single-meta a:hover { color: var(--ctz-article-accent); }
.ctz-single-meta-separator { color: #94a3b8; }
.ctz-single-updated { color: #475569; }

/* 04. FEATURED IMAGE */
.ctz-single-featured { margin: 16px 0 0; }

.ctz-single-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 580px;
    aspect-ratio: var(--ctz-single-image-ratio, 16 / 9);
    object-fit: var(--ctz-single-image-fit, contain);
    border: 1px solid var(--ctz-article-border);
    border-radius: 16px;
    background: #edf2f9;
    box-shadow: 0 12px 32px rgb(15 23 42 / 5%);
}

.ctz-single-featured figcaption {
    margin: 0;
    padding: 11px 8px 0;
    color: var(--ctz-article-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* 05. ARTICLE LAYOUT */
.ctz-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--ctz-single-sidebar-width, 300px);
    align-items: start;
    gap: 30px;
    margin-top: 16px;
}

.ctz-single-main-column {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: clamp(18px, 2.3vw, 30px);
    border: 1px solid var(--ctz-article-border);
    border-radius: 17px;
    background: var(--ctz-article-surface);
    box-shadow: 0 10px 35px rgb(15 23 42 / 4%);
}

.ctz-single-sidebar {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

body.admin-bar .ctz-single-sidebar { top: 142px; }

/* 06. TABLE OF CONTENTS */
.ctz-single-toc[hidden] { display: none !important; }

.ctz-single-toc {
    --ctz-toc-section-progress: 0%;
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d6e0f1;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgb(15 23 42 / 10%),
                0 3px 10px rgb(15 23 42 / 3%);
    transition: box-shadow .3s ease, border-color .3s ease;
}

.ctz-single-toc:hover {
    border-color: #b9c9ef;
    box-shadow: 0 22px 50px rgb(37 99 235 / 13%),
                0 4px 12px rgb(15 23 42 / 4%);
}

.ctz-single-toc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 4px;
    background: rgb(255 255 255 / 18%);
}

.ctz-single-toc::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: var(--ctz-toc-section-progress, 0%);
    height: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
    transition: width .35s ease;
}

.ctz-single-toc summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 85px;
    padding: 20px 47px 20px 18px;
    border: 0;
    background:
        radial-gradient(circle at 95% 5%, rgb(99 102 241 / 40%), transparent 48%),
        linear-gradient(125deg, #0b1733 0%, #162b58 58%, #263b83 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .01em;
    cursor: pointer;
    list-style: none;
}

.ctz-single-toc summary::-webkit-details-marker { display: none; }

.ctz-single-toc summary::before {
    content: "☷";
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 13px;
    background: linear-gradient(135deg, #38bdf8, #6366f1 55%, #a855f7);
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 16px rgb(0 0 0 / 20%),
                inset 0 1px 0 rgb(255 255 255 / 20%);
}

.ctz-single-toc summary::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 18px;
    color: #dbeafe;
    font-size: 25px;
    font-weight: 700;
    transform: translateY(-60%);
    transition: transform .25s ease;
}

.ctz-single-toc-details[open] summary::after {
    transform: translateY(-35%) rotate(180deg);
}

.ctz-single-toc-list {
    position: relative;
    counter-reset: ctz-toc-counter;
    max-height: min(70vh, 410px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 15px 12px 18px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #a5b4fc transparent;
}

.ctz-single-toc-list::-webkit-scrollbar { width: 5px; }
.ctz-single-toc-list::-webkit-scrollbar-track { background: transparent; }

.ctz-single-toc-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #a5b4fc;
}

.ctz-single-toc-list li {
    counter-increment: ctz-toc-counter;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ctz-single-toc-list li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin: 4px 0;
    padding: 11px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
    transition: color .2s ease, background .2s ease,
        border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ctz-single-toc-list li a::before {
    content: counter(ctz-toc-counter, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    min-width: 32px;
    height: 32px;
    border: 1px solid #dce5f3;
    border-radius: 10px;
    background: #f1f5fb;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 5px rgb(15 23 42 / 3%);
    transition: background .2s ease, color .2s ease,
        border-color .2s ease, box-shadow .2s ease;
}

.ctz-single-toc-list li a:hover {
    border-color: #dbeafe;
    border-left-color: #6366f1;
    background: linear-gradient(100deg, #eff6ff, #f3f0ff);
    color: #4338ca;
    transform: translateX(2px);
}

.ctz-single-toc-list li a:hover::before {
    border-color: #c7d2fe;
    background: #e0e7ff;
    color: #4338ca;
}

.ctz-single-toc-list li a.is-active {
    border-color: #c7d2fe;
    border-left: 4px solid #4f46e5;
    background: linear-gradient(110deg, #e0edff 0%, #ede9fe 70%, #f5f3ff 100%);
    color: #312e81;
    font-weight: 850;
    box-shadow: 0 5px 15px rgb(79 70 229 / 12%);
}

.ctz-single-toc-list li a.is-active::before {
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    box-shadow: 0 4px 12px rgb(79 70 229 / 25%);
}

.ctz-single-toc-list li a.is-complete { color: #64748b; }

.ctz-single-toc-list li a.is-complete::before {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.ctz-single-toc-list .ctz-toc-level-3 a {
    min-height: 48px;
    padding-left: 23px;
    color: #64748b;
    font-size: 12px;
}

.ctz-single-toc-list .ctz-toc-level-3 a.is-active { color: #312e81; }

/* 07. AD CONTAINERS */
.ctz-single-sidebar-ad:empty,
.ctz-single-ad-slot:empty {
    display: none !important;
}

.ctz-single-sidebar-ad,
.ctz-single-ad-slot {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-align: center;
}

.ctz-single-sidebar-ad img,
.ctz-single-ad-slot img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.ctz-single-sidebar-ad iframe,
.ctz-single-ad-slot iframe { max-width: 100%; }

.ctz-single-sidebar-ad ins.adsbygoogle,
.ctz-single-ad-slot ins.adsbygoogle {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* 08. ARTICLE CONTENT */
.ctz-single-content {
    min-width: 0;
    color: var(--ctz-article-text);
    font-size: clamp(16px, 1.25vw, 18px);
    font-weight: 400;
    line-height: 1.95;
    letter-spacing: .005em;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}

.ctz-single-content > :first-child { margin-top: 0; }

.ctz-single-content > p,
.ctz-single-content > ul,
.ctz-single-content > ol,
.ctz-single-content > blockquote {
    max-width: 76ch;
}

.ctz-single-content p { margin: 0 0 1.55em; }

.ctz-single-content > p:first-child {
    color: #263449;
    font-size: 1.055em;
    line-height: 1.9;
}

.ctz-single-content strong,
.ctz-single-content b {
    color: #17263d;
    font-weight: 750;
}

.ctz-single-content :is(h2, h3, h4, h5, h6) {
    color: var(--ctz-article-heading);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.015em;
    scroll-margin-top: 125px;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.ctz-single-content h2 {
    position: relative;
    margin: 2em 0 .9em;
    padding: 0 0 17px;
    border-bottom: 1px solid #e2e8f0;
    font-size: clamp(23px, 2.3vw, 30px);
    letter-spacing: -.025em;
}

.ctz-single-content h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 54px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ctz-article-accent), #8b5cf6);
}

.ctz-single-content h3 {
    margin: 1.75em 0 .8em;
    font-size: clamp(20px, 1.9vw, 25px);
}

.ctz-single-content h4 {
    margin: 1.5em 0 .7em;
    font-size: clamp(18px, 1.6vw, 21px);
}

.ctz-single-content h5 {
    margin: 1.4em 0 .65em;
    font-size: clamp(17px, 1.4vw, 19px);
}

.ctz-single-content h6 {
    margin: 1.4em 0 .65em;
    font-size: clamp(16px, 1.25vw, 18px);
}

.ctz-single-content ul,
.ctz-single-content ol {
    margin: 0 0 1.6em;
    padding-left: 1.8em;
}

.ctz-single-content li {
    margin-bottom: .65em;
    padding-left: .2em;
    line-height: 1.85;
}

.ctz-single-content li::marker {
    color: var(--ctz-article-accent);
    font-weight: 800;
}

.ctz-single-content li > ul,
.ctz-single-content li > ol {
    margin-top: .65em;
    margin-bottom: .8em;
}

.ctz-single-content a {
    color: var(--ctz-article-accent);
    font-weight: 550;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.ctz-single-content a:hover {
    color: #1d4ed8;
    text-decoration-thickness: 2px;
}

.ctz-single-content hr {
    height: 1px;
    margin: 2.5em 0;
    border: 0;
    background: #e2e8f0;
}

/* 09. CONTENT MEDIA */
.ctz-single-content img,
.ctz-single-content video,
.ctz-single-content iframe { max-width: 100%; }

.ctz-single-content img {
    height: auto;
    border-radius: 12px;
}

.ctz-single-content figure {
    max-width: 100%;
    margin: 2em 0;
}

.ctz-single-content figcaption {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.ctz-single-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.ctz-single-content .wp-block-gallery { gap: 14px; }

.ctz-single-content .wp-block-embed,
.ctz-single-content .wp-block-video,
.ctz-single-content .wp-block-embed__wrapper { max-width: 100%; }

.ctz-single-content iframe {
    border: 0;
    border-radius: 10px;
}

.ctz-single-content .aligncenter {
    margin-inline: auto;
    text-align: center;
}

.ctz-single-content .alignleft {
    float: left;
    margin: 8px 24px 18px 0;
}

.ctz-single-content .alignright {
    float: right;
    margin: 8px 0 18px 24px;
}

.ctz-single-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 10. QUOTES AND CODE */
.ctz-single-content blockquote {
    position: relative;
    margin: 2em 0;
    padding: 27px 30px;
    border-left: 4px solid var(--ctz-article-accent);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    color: #334155;
    font-size: 1em;
    line-height: 1.85;
}

.ctz-single-content blockquote p:last-child { margin-bottom: 0; }

.ctz-single-content blockquote cite {
    display: block;
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.ctz-single-content .wp-block-pullquote {
    padding: 28px;
    border-top: 3px solid #dbeafe;
    border-bottom: 3px solid #dbeafe;
    text-align: center;
}

.ctz-single-content .wp-block-pullquote blockquote {
    margin: 0;
    border: 0;
    background: transparent;
}

.ctz-single-content pre,
.ctz-single-content .wp-block-code {
    max-width: 100%;
    overflow-x: auto;
    margin: 1.8em 0;
    padding: 24px;
    border: 1px solid #24364f;
    border-radius: 13px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.8;
    tab-size: 4;
}

.ctz-single-content pre code,
.ctz-single-content .wp-block-code code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.ctz-single-content :not(pre) > code {
    padding: 3px 7px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #f1f5f9;
    color: #be185d;
    font-family: Consolas, "Courier New", monospace;
    font-size: .88em;
    overflow-wrap: anywhere;
}

/* 11. TABLES AND BLOCKS */
.ctz-single-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    margin: 1.8em 0;
}

.ctz-single-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 1.8em 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.75;
}

.ctz-single-content th,
.ctz-single-content td {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.ctz-single-content th {
    background: #eff6ff;
    color: #0f172a;
    font-weight: 800;
}

.ctz-single-content tbody tr:nth-child(even) { background: #f8fafc; }
.ctz-single-content .wp-block-separator { margin: 2em 0; }
.ctz-single-content .wp-block-buttons { margin: 1.5em 0; }

.ctz-single-content .wp-block-button__link {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 9px;
    background: var(--ctz-article-accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.ctz-single-content .wp-block-button__link:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.ctz-single-content .wp-block-columns { gap: 24px; }

.ctz-single-content .wp-block-details {
    margin: 1.5em 0;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.ctz-single-content .wp-block-details summary {
    cursor: pointer;
    color: #0f172a;
    font-weight: 750;
}

.ctz-single-page-links {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
}

/* 12. SOCIAL SHARE */
.ctz-single-share {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid #e2e8f0;
}

.ctz-single-share > strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.ctz-single-share-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ctz-single-share-links a,
.ctz-single-share-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease,
        border-color .2s ease, color .2s ease;
}

.ctz-single-share-links a:hover,
.ctz-single-share-links button:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.ctz-single-share-links svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.ctz-single-share-links .ctz-share-whatsapp {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.ctz-single-share-links .ctz-share-linkedin {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #0a66c2;
}

.ctz-single-share-links .ctz-share-x {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

.ctz-single-share-links .ctz-share-copy {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.ctz-single-copy-status {
    display: block;
    min-height: 20px;
    margin-top: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 650;
}

/* 13. AUTHOR PROFILE */
.ctz-single-author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 35px;
    padding: 32px;
    border: 1px solid #dce5f4;
    border-radius: 17px;
    background: linear-gradient(130deg, #f8fbff, #ffffff 55%, #faf7ff);
    box-shadow: 0 8px 28px rgb(15 23 42 / 4%);
}

.ctz-single-author-avatar { flex: 0 0 auto; }

.ctz-single-author-avatar a {
    display: block;
    border-radius: 50%;
}

.ctz-single-author-avatar img {
    display: block;
    width: 80px;
    height: 80px;
    border: 3px solid #dbeafe;
    border-radius: 50%;
    object-fit: cover;
}

.ctz-single-author-box h2 {
    margin: 8px 0 11px;
    color: #0f172a;
    font-size: clamp(19px, 1.8vw, 23px);
    font-weight: 800;
    line-height: 1.4;
}

.ctz-single-author-box h2 a { color: #0f172a; }
.ctz-single-author-box h2 a:hover { color: #2563eb; }

.ctz-single-author-box p {
    margin: 0;
    color: #475569;
    font-size: clamp(13px, 1.1vw, 14px);
    line-height: 1.85;
}

.ctz-single-author-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 11px 17px;
    border-radius: 9px;
    background: linear-gradient(125deg, #2563eb, #7c3aed);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
}

.ctz-single-author-profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(79 70 229 / 20%);
}

/* 14. PREVIOUS / NEXT */
.ctz-single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.ctz-single-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    min-height: 165px;
    padding: 27px 65px 27px 24px;
    overflow: hidden;
    border: 1px solid #dce5f5;
    border-radius: 17px;
    background: radial-gradient(circle at 100% 100%, rgb(219 234 254 / 55%), transparent 55%), #ffffff;
    box-shadow: 0 8px 25px rgb(15 23 42 / 5%);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.ctz-single-nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.ctz-single-nav-item::after {
    content: "←";
    position: absolute;
    right: 19px;
    bottom: 23px;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    transition: background .25s ease, color .25s ease,
        transform .25s ease, box-shadow .25s ease;
}

.ctz-single-nav-item span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.ctz-single-nav-item strong {
    display: block;
    color: #0f172a;
    font-size: clamp(14px, 1.35vw, 16px);
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.ctz-single-nav-next {
    grid-column: 2;
    align-items: flex-end;
    padding: 27px 24px 27px 65px;
    text-align: right;
    background: radial-gradient(circle at 0% 100%, rgb(237 233 254 / 75%), transparent 55%), #ffffff;
}

.ctz-single-nav-next::before {
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

.ctz-single-nav-next::after {
    content: "→";
    right: auto;
    left: 19px;
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #7c3aed;
}

.ctz-single-nav-next span {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.ctz-single-nav-item:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: 0 18px 38px rgb(37 99 235 / 12%);
}

.ctz-single-nav-item:hover strong { color: #1d4ed8; }

.ctz-single-nav-item:hover::after {
    border-color: transparent;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 16px rgb(37 99 235 / 22%);
    transform: translateX(-3px);
}

.ctz-single-nav-next:hover {
    border-color: #c4b5fd;
    box-shadow: 0 18px 38px rgb(124 58 237 / 12%);
}

.ctz-single-nav-next:hover strong { color: #6d28d9; }

.ctz-single-nav-next:hover::after {
    background: #7c3aed;
    transform: translateX(3px);
}

/* 15. RELATED ARTICLES */
.ctz-single-related { margin-top: 60px; }
.ctz-single-section-heading { margin-bottom: 26px; }

.ctz-single-section-heading h2 {
    margin: 9px 0 0;
    color: #0f172a;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.ctz-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.ctz-single-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgb(15 23 42 / 4%);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.ctz-single-related-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: 0 18px 38px rgb(15 23 42 / 10%);
}

.ctz-single-related-image {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #edf2f9;
}

.ctz-single-related-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    transition: transform .35s ease;
}

.ctz-single-related-card:hover .ctz-single-related-image img {
    transform: scale(1.035);
}

.ctz-single-related-image > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b1730, #2563eb);
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
}

.ctz-single-related-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
}

.ctz-single-related-body time {
    color: #64748b;
    font-size: 12px;
}

.ctz-single-related-body h3 {
    margin: 12px 0 20px;
    color: #0f172a;
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ctz-single-related-body h3 a { color: #0f172a; }
.ctz-single-related-body h3 a:hover { color: #2563eb; }

.ctz-single-related-more {
    margin-top: auto;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.ctz-single-related-more:hover { color: #1d4ed8; }

/* 16. COMMENTS */
.ctz-single-discussion { margin-top: 40px; }
.ctz-single-discussion-heading { margin-bottom: 22px; }

.ctz-single-discussion-heading h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(22px, 2.2vw, 27px);
    font-weight: 800;
}

.ctz-single-discussion-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.ctz-single-comments,
.ctz-single .comments-area {
    margin-top: 55px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgb(15 23 42 / 3%);
}

.ctz-single-discussion .ctz-single-comments,
.ctz-single-discussion .comments-area { margin-top: 0; }

.ctz-single-comments-title,
.ctz-single-comments .comment-reply-title,
.ctz-single .comments-area .comment-reply-title {
    margin: 0 0 25px;
    color: #0f172a;
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.4;
}

.ctz-single-comment-list,
.ctz-single-comment-list .children,
.ctz-single .comments-area .comment-list,
.ctz-single .comments-area .comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ctz-single-comment-list .children,
.ctz-single .comments-area .comment-list .children {
    margin: 18px 0 0 30px;
}

.ctz-single-comment-list li,
.ctz-single .comments-area .comment-list li { margin: 0 0 20px; }

.ctz-single-comment-list .comment-body,
.ctz-single .comments-area .comment-body {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow-wrap: anywhere;
}

.ctz-single-comment-list .comment-author,
.ctz-single .comments-area .comment-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
}

.ctz-single-comment-list .comment-author img,
.ctz-single .comments-area .comment-author img { border-radius: 50%; }

.ctz-single-comment-list .comment-meta,
.ctz-single-comment-list .reply,
.ctz-single .comments-area .comment-meta,
.ctz-single .comments-area .reply {
    margin-top: 9px;
    font-size: 12px;
}

.ctz-single-comment-list a,
.ctz-single-comments .logged-in-as a,
.ctz-single .comments-area a { color: #2563eb; }

.ctz-single-comment-list .comment-content,
.ctz-single .comments-area .comment-content {
    margin-top: 15px;
    color: #475569;
    font-size: clamp(13px, 1.1vw, 14px);
    line-height: 1.85;
}

.ctz-single-comments .comment-respond,
.ctz-single .comments-area .comment-respond { margin-top: 32px; }

.ctz-single-comment-note,
.ctz-single-comments .comment-notes,
.ctz-single-comments .logged-in-as,
.ctz-single .comments-area .comment-notes,
.ctz-single .comments-area .logged-in-as {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.ctz-single-comments label,
.ctz-single .comments-area label {
    display: block;
    margin-bottom: 9px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 750;
}

.ctz-single-comments input[type="text"],
.ctz-single-comments input[type="email"],
.ctz-single-comments input[type="url"],
.ctz-single-comments textarea,
.ctz-single .comments-area input[type="text"],
.ctz-single .comments-area input[type="email"],
.ctz-single .comments-area input[type="url"],
.ctz-single .comments-area textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ctz-single-comments input:focus,
.ctz-single-comments textarea:focus,
.ctz-single .comments-area input:focus,
.ctz-single .comments-area textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.ctz-single-comments textarea,
.ctz-single .comments-area textarea {
    min-height: 160px;
    resize: vertical;
}

.ctz-single-comments .form-submit input[type="submit"],
.ctz-single .comments-area .form-submit input[type="submit"] {
    padding: 13px 25px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(125deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ctz-single-comments .form-submit input[type="submit"]:hover,
.ctz-single .comments-area .form-submit input[type="submit"]:hover {
    background: linear-gradient(125deg, #1d4ed8, #6d28d9);
}

/* 17. TABLET */
@media (max-width: 1100px) {
    .ctz-single-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 23px;
    }

    .ctz-single-main-column { padding: 32px; }
    .ctz-single-related-grid { gap: 18px; }
    .ctz-single-related-body { padding: 19px; }
    .ctz-single-nav-item { padding: 23px 58px 23px 20px; }
    .ctz-single-nav-next { padding: 23px 20px 23px 58px; }
}

/* 18. SMALL TABLET */
@media (max-width: 900px) {
    .ctz-single-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ctz-single-sidebar {
        position: static;
        grid-column: 1;
        grid-row: 1;
    }

    .ctz-single-main-column {
        grid-column: 1;
        grid-row: 2;
    }

    .ctz-single-toc-list { max-height: 330px; }

    .ctz-single-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    body.admin-bar .ctz-reading-progress { top: 46px; }
}

/* 19. PHONE */
@media (max-width: 600px) {
    .ctz-single { padding: 22px 0 55px; }

    .ctz-single .ctz-single-container {
        width: calc(100% - 28px);
    }

    .ctz-single-hero { padding-bottom: 13px; }

    .ctz-single-category {
        margin-bottom: 9px;
        font-size: 10px;
    }

    .ctz-single-title {
        font-size: clamp(24px, 6.1vw, 29px);
        line-height: 1.25;
    }

    .ctz-single-intro {
        margin-top: 9px;
        font-size: 15px;
        line-height: 1.8;
    }

    .ctz-single-meta {
        gap: 9px;
        margin-top: 12px;
        font-size: 12px;
    }

    .ctz-single-meta-author img {
        width: 32px;
        height: 32px;
    }

    .ctz-single-featured { margin-top: 12px; }

    .ctz-single-featured-image {
        max-height: 350px;
        aspect-ratio: 16 / 10;
        border-radius: 12px;
    }

    .ctz-single-layout { margin-top: 12px; }
    .ctz-single-sidebar { gap: 15px; }
    .ctz-single-toc { border-radius: 16px; }

    .ctz-single-toc summary {
        min-height: 70px;
        padding: 15px 43px 15px 15px;
        font-size: 14px;
    }

    .ctz-single-toc summary::before {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 22px;
    }

    .ctz-single-toc-list { max-height: 280px; }

    .ctz-single-toc-list li a {
        min-height: 49px;
        padding: 10px;
        font-size: 12px;
    }

    .ctz-single-toc-list li a::before {
        flex-basis: 29px;
        min-width: 29px;
        height: 29px;
    }

    .ctz-single-main-column {
        padding: 18px;
        border-radius: 14px;
    }

    .ctz-single-content {
        font-size: 16px;
        line-height: 1.9;
    }

    .ctz-single-content h2 {
        font-size: clamp(22px, 5.5vw, 24px);
    }

    .ctz-single-content h3 {
        font-size: clamp(19px, 5vw, 21px);
    }

    .ctz-single-content h4 { font-size: 18px; }
    .ctz-single-content h5 { font-size: 17px; }
    .ctz-single-content h6 { font-size: 16px; }

    .ctz-single-content blockquote {
        padding: 19px 20px;
        font-size: 15px;
    }

    .ctz-single-content pre,
    .ctz-single-content .wp-block-code {
        padding: 17px;
        font-size: 12px;
    }

    .ctz-single-content .alignleft,
    .ctz-single-content .alignright {
        float: none;
        display: block;
        margin: 1.5em auto;
    }

    .ctz-single-share-links { gap: 8px; }

    .ctz-single-share-links a,
    .ctz-single-share-links button {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .ctz-single-author-box {
        gap: 16px;
        margin-top: 25px;
        padding: 23px 20px;
        border-radius: 14px;
    }

    .ctz-single-author-avatar img {
        width: 58px;
        height: 58px;
    }

    .ctz-single-author-box h2 { font-size: 19px; }

    .ctz-single-post-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ctz-single-nav-item {
        min-height: 135px;
        padding: 23px 65px 23px 21px;
    }

    .ctz-single-nav-next {
        grid-column: auto;
        padding: 23px 21px 23px 65px;
    }

    .ctz-single-nav-item strong { font-size: 15px; }

    .ctz-single-related-grid { grid-template-columns: 1fr; }
    .ctz-single-related { margin-top: 43px; }
    .ctz-single-related-image { aspect-ratio: 16 / 9; }

    .ctz-single-comments,
    .ctz-single .comments-area {
        margin-top: 43px;
        padding: 23px 19px;
    }

    .ctz-single-comment-list .children,
    .ctz-single .comments-area .comment-list .children {
        margin-left: 13px;
    }
}

@media (max-width: 380px) {
    .ctz-single-title {
        font-size: clamp(23px, 6.1vw, 26px);
    }

    .ctz-single-main-column { padding: 22px 17px; }
    .ctz-single-content { font-size: 16px; }

    .ctz-single-author-box {
        flex-direction: column;
    }

    .ctz-single-share-links a,
    .ctz-single-share-links button {
        flex: 1 1 auto;
    }
}

/* 20. ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .ctz-single *,
    .ctz-single *::before,
    .ctz-single *::after {
        scroll-behavior: auto;
        transition-duration: .01ms;
        animation-duration: .01ms;
    }

    .ctz-single-related-card:hover,
    .ctz-single-nav-item:hover,
    .ctz-single-share-links a:hover,
    .ctz-single-share-links button:hover,
    .ctz-single-toc-list li a:hover {
        transform: none;
    }
}