/* ============================================================
   single.css - WordPress single post / article styles
   Loaded only on is_single() pages via explode_function.php.
   Global utilities (btn, container, breadcrumb, etc.) stay in
   components.css / common.css.
   ============================================================ */

/* ── Animated house background canvas ──────────────────────── */
.ah-bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ah-shape {
    position: absolute;
    color: var(--client-color, #1e3a2f);
}

/* Shapes spread across the article column area (not the page edges) */
.ah-shape--1 { width:150px; top: 2%;  left:12%;  opacity:.14; }
.ah-shape--2 { width:110px; top: 6%;  left:58%;  opacity:.11; color: var(--color-accent, #c9a84c); }
.ah-shape--3 { width: 80px; top:22%;  left: 8%;  opacity:.13; }
.ah-shape--4 { width:120px; top:36%;  left:55%;  opacity:.10; color: var(--color-accent, #c9a84c); }
.ah-shape--5 { width:130px; top:53%;  left:18%;  opacity:.12; }
.ah-shape--6 { width:150px; top:70%;  left:48%;  opacity:.10; }
.ah-shape--7 { width: 55px; top:86%;  left:35%;  opacity:.09; }

/* 4 distinct float paths */
@keyframes ah-float-a {
    0%,100% { transform: translate(0,0)    rotate(-4deg); }
    35%      { transform: translate(8px,-18px) rotate(-1deg); }
    70%      { transform: translate(-5px,-10px) rotate(-6deg); }
}
@keyframes ah-float-b {
    0%,100% { transform: translate(0,0)    rotate(5deg); }
    40%      { transform: translate(-12px,-20px) rotate(8deg); }
    75%      { transform: translate(6px,-8px)  rotate(3deg); }
}
@keyframes ah-float-c {
    0%,100% { transform: translate(0,0)    rotate(0deg); }
    50%      { transform: translate(10px,-24px) rotate(4deg); }
}
@keyframes ah-float-d {
    0%,100% { transform: translate(0,0)    rotate(-2deg); }
    30%      { transform: translate(-8px,-14px) rotate(-5deg); }
    65%      { transform: translate(7px,-20px)  rotate(1deg); }
}

.ah-shape--1 { animation: ah-float-a 22s ease-in-out infinite; }
.ah-shape--2 { animation: ah-float-b 28s ease-in-out 3s infinite; }
.ah-shape--3 { animation: ah-float-c 19s ease-in-out 7s infinite; }
.ah-shape--4 { animation: ah-float-d 32s ease-in-out 1s infinite; }
.ah-shape--5 { animation: ah-float-a 24s ease-in-out 5s infinite; }
.ah-shape--6 { animation: ah-float-b 20s ease-in-out 9s infinite; }
.ah-shape--7 { animation: ah-float-c 26s ease-in-out 2s infinite; }

/* Canvas sits at z-index 0; content layers above it */
.post-terms-bar,
.post-related-articles,
.reading-progress-bar {
    position: relative;
    z-index: 1;
}

/* ── Post taxonomy terms bar ────────────────────────────────────── */
.post-terms-bar {
    padding: 12px 0 14px;
    border-bottom: 1px solid rgba(30,58,47,.08);
    background: linear-gradient(180deg, rgba(30,58,47,.025) 0%, transparent 100%);
}
.post-terms-bar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.post-terms-bar .container::before {
    content: 'Topics:';
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: rgba(30,58,47,.4);
    margin-right: 2px;
    flex-shrink: 0;
}
.post-term-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30,58,47,.05);
    color: var(--client-color, #1e3a2f);
    border: 1px solid rgba(30,58,47,.13);
    border-radius: 6px;
    padding: 4px 11px 4px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    letter-spacing: 0.01em;
}
.post-term-pill::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent, #c9a84c);
    flex-shrink: 0;
}
.post-term-pill:hover {
    background: rgba(30,58,47,.09);
    border-color: rgba(30,58,47,.22);
}

/* ── Share bar ───────────────────────────────────────────────────── */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: 16px 0 24px;
}
.share-bar-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-black);
    margin-right: var(--space-1);
}
.share-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.6;
}
.share-bar-btn:hover                { background: var(--slate-50, #f8fafc); border-color: var(--color-primary); }
.share-bar-btn--whatsapp:hover      { background: var(--color-success-bg); border-color: var(--color-success-text); color: var(--color-success-text); }
.share-bar-btn--x:hover             { background: var(--slate-100); border-color: var(--slate-800); }
.share-bar-btn--email:hover         { background: var(--color-info-bg); border-color: var(--color-primary); }
.share-bar-icon                     { font-size: 0.9rem; line-height: 1; }
.share-bar-icon--x                  { font-style: normal; font-weight: 700; font-size: 0.8rem; }
.share-bar-copied                   { font-size: 0.8rem; color: var(--color-success-text); font-weight: 600; margin-left: var(--space-1); }

/* ── Full-bleed Article Hero ──────────────────────────────────── */
.article-hero-wrap {
    background: var(--color-white);
    padding: 0;
    overflow: hidden;
}

/* ── Outer Wrapper — post background with canvas inside ──────── */
.article-outer {
    margin: 0 auto;
    padding: 16px 24px 20px;
    position: relative;
    background: linear-gradient(150deg,
        rgba(30,58,47,.10) 0%,
        rgba(241,246,243,1) 30%,
        rgba(246,244,237,1) 68%,
        rgba(201,168,76,.09) 100%);
    z-index: 1;
}

/* ── Two-Column Layout (main + sidebar) ─────────────────────── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-4);
    align-items: start;
}

/* ── Article Main Column ────────────────────────────────────── */
.article-main {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
    max-width: 100%;
}

.article-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border:unset;
}

/* Ordered List */
.article-body ol {
    margin: 1.25rem 0;
    padding-left: 0;
    counter-reset: item;
}

.article-body ol li {
    list-style: none;
    position: relative;
    padding-left: 2.75rem;
    margin-bottom: 1rem;
}

.article-body ol li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    text-align: center;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Definition List */
.article-body dl {
    margin: 0.75rem 0;
}

.article-body dt {
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.35rem;
}

.article-body dd {
    margin: 0 0 0.75rem 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--secondary-color);
    color: var(--color-black);
}

.article-right-col {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: clip;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
    min-width: 0;
}
.article-right-col::-webkit-scrollbar { display: none; }
.article-right-col::after {
    content: '';
    position: sticky;
    bottom: 0;
    height: 52px;
    margin-top: -52px;
    /* background: linear-gradient(to bottom, transparent, var(--bg, #f5f4f0));
    pointer-events: none;
    display: block;
    flex-shrink: 0; */
}

/* ── Article Header - 1fr / 1fr split ──────────────────────── */
.article-header-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 360px;
}

/* Left column - content + decorative circles behind + right-edge fade */
.article-header-left {
    position: relative;
    overflow: hidden;
    padding: 40px 40px 36px max(20px, calc((100vw - 1200px) / 2 + 20px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Right-edge gradient fade - blends left column into the image */
.article-header-left::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 72px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.55));
    pointer-events: none;
    z-index: 2;
}

/* Decorative radial circle blobs (behind the content) */
.ahero-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ahero-circle--a {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45,90,68,0.07) 0%, transparent 65%);
    top: -100px;
    right: -40px;
}
.ahero-circle--b {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(201,168,76,0.09) 0%, transparent 65%);
    bottom: -50px;
    left: -20px;
}
.ahero-circle--c {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(45,90,68,0.05) 0%, transparent 65%);
    top: 40%;
    left: 45%;
}

/* Content sits above circles */
.article-header-body {
    position: relative;
    z-index: 1;
}

.article-category-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary, #1d4ed8);
    background: rgba(29, 78, 216, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    margin-bottom: 14px;
}

.article-title {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    color: var(--color-heading, #111827);
    margin-bottom: var(--space-4);
}

.article-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text, #374151);
    margin-bottom: var(--space-5);
    max-width: 560px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--color-black, #6b7280);
    display: flex;
    align-items: center;
    gap: 5px;
}

.save-guide-btn {
    background: none;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-tag);
    padding: 6px 12px;
    font-size: 0.82rem;
    color: var(--color-text, #374151);
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
    font-family: inherit;
}

.save-guide-btn:hover {
    border-color: var(--color-primary, #1d4ed8);
    background: rgba(29, 78, 216, 0.05);
    color: var(--color-primary, #1d4ed8);
}

/* Right column - image fills the full 1fr, no border-radius, grows with viewport */
.article-header-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background: var(--color-tag-bg); /* placeholder while image loads */
}
.article-header-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Key Takeaways Box ──────────────────────────────────────── */
.key-takeaways-box {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ee 100%);
    border: 1px solid #c6e8d2;
    border-radius: var(--radius-lg, 16px);
    padding: 20px 18px;
    margin-bottom: var(--space-6);
}

.takeaways-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-5);
}

.takeaways-icon {
    font-size: 1.3rem;
}

.takeaways-header h2 {
    font-size: 1.15rem;
    color: var(--color-heading, #111827);
    margin: 0;
}

.takeaways-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.takeaway-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text, #374151);
}

.takeaway-check {
    width: 20px;
    height: 20px;
    background: var(--color-primary, #1d4ed8);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Article Body ───────────────────────────────────────────── */
.article-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-text, #374151);
    padding: 12px;
    margin: 0 0 10px;
    border: 2px solid var(--client-color, #1e3a2f);
    border-radius: 4px;
    background: rgba(255,255,255,0.84);
    box-shadow: 0 4px 24px rgba(30,58,47,.09);
}
.article-body section { padding: 0; }
.article-body section > br:last-child { display: none; }

/* ── Scroll-reveal keyframes ───────────────────────────────── */
@keyframes adn-fade-up    { from { opacity:0; transform:translateY(26px);  } to { opacity:1; transform:translateY(0);  } }
@keyframes adn-fade-left  { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:translateX(0); } }
@keyframes adn-fade-right { from { opacity:0; transform:translateX(28px);  } to { opacity:1; transform:translateX(0); } }
@keyframes adn-scale-in   { from { opacity:0; transform:scale(0.94);       } to { opacity:1; transform:scale(1);      } }

/* Blockquote entrance — smooth lift */
@keyframes adn-quote-in {
    0%   { opacity:0; transform: translateY(28px); }
    100% { opacity:1; transform: translateY(0); }
}
/* Blockquote always-on: left border gently breathes gold ↔ green */
@keyframes adn-quote-border {
    0%, 100% { border-left-color: var(--color-accent, #c9a84c); }
    50%       { border-left-color: var(--client-color, #1e3a2f); }
}

/* JS adds .adn-reveal-ready to .article-body — only then hide children */
.adn-reveal-ready > p,
.adn-reveal-ready > ul,
.adn-reveal-ready > ol,
.adn-reveal-ready > h2,
.adn-reveal-ready > h3,
.adn-reveal-ready > h4,
.adn-reveal-ready > table,
.adn-reveal-ready > figure,
.adn-reveal-ready > img,
.adn-reveal-ready > blockquote,
.adn-reveal-ready > details,
.adn-reveal-ready > .article-tip-box,
.adn-reveal-ready > .article-note-box,
.adn-reveal-ready section > p,
.adn-reveal-ready section > ul,
.adn-reveal-ready section > ol,
.adn-reveal-ready section > h2,
.adn-reveal-ready section > h3,
.adn-reveal-ready section > h4,
.adn-reveal-ready section > table,
.adn-reveal-ready section > figure,
.adn-reveal-ready section > img,
.adn-reveal-ready section > blockquote,
.adn-reveal-ready section > details,
.adn-reveal-ready section > .article-tip-box,
.adn-reveal-ready section > .article-note-box,
.adn-reveal-ready section > .article-stat-row,
.adn-reveal-ready section > .article-steps,
.adn-reveal-ready section > .article-checklist,
.adn-reveal-ready section > .article-key-point,
.adn-reveal-ready section > .article-quick-facts,
.adn-reveal-ready section > .article-warning,
.adn-reveal-ready section > .article-example-box,
.adn-reveal-ready section > .article-promo,
.adn-reveal-ready section > .article-card-grid,
.adn-reveal-ready section > .compare-table-wrap,
.adn-reveal-ready section > .acard-grid,
.adn-reveal-ready section > .acard-bento,
.adn-reveal-ready section > .acard-row,
.adn-reveal-ready section > .acard-procon,
.adn-reveal-ready section > .acard-timeline,
.adn-reveal-ready section > .acard-insight,
.adn-reveal-ready section > .acard-stat {
    opacity: 0;
}

/* Fade UP — headings, paragraphs, images */
.article-body h2.adn-visible,
.article-body p.adn-visible,
.article-body figure.adn-visible,
.article-body img.adn-visible,
.article-body details.adn-visible,
.article-body .article-example-box.adn-visible,
.article-body .compare-table-wrap.adn-visible {
    animation: adn-fade-up 0.7s cubic-bezier(.16,1,.3,1) both;
}

/* Fade LEFT — h3/h4, lists, checklists, steps, timeline */
.article-body h3.adn-visible,
.article-body h4.adn-visible,
.article-body ul.adn-visible,
.article-body ol.adn-visible,
.article-body .article-steps.adn-visible,
.article-body .article-checklist.adn-visible,
.article-body .acard-timeline.adn-visible {
    animation: adn-fade-left 0.65s cubic-bezier(.16,1,.3,1) both;
}

/* Fade RIGHT — callout boxes, key-point, warning */
.article-body .article-tip-box.adn-visible,
.article-body .article-note-box.adn-visible,
.article-body .article-key-point.adn-visible,
.article-body .article-warning.adn-visible,
.article-body .article-promo.adn-visible,
.article-body .acard-procon.adn-visible {
    animation: adn-fade-right 0.65s cubic-bezier(.16,1,.3,1) both;
}

/* Scale in — grids, stat rows, card layouts, tables */
.article-body table.adn-visible,
.article-body .article-stat-row.adn-visible,
.article-body .article-card-grid.adn-visible,
.article-body .acard-grid.adn-visible,
.article-body .acard-bento.adn-visible,
.article-body .acard-row.adn-visible,
.article-body .acard-stat.adn-visible {
    animation: adn-scale-in 0.65s cubic-bezier(.16,1,.3,1) both;
}

/* Blockquote — entrance + gentle living border */
.article-body blockquote.adn-visible {
    animation:
        adn-quote-in     0.7s cubic-bezier(.16,1,.3,1) both,
        adn-quote-border 4s ease-in-out 0.7s infinite;
    font-weight: bold;
    background: var(--gold-50);
    color: var(--secondary-color-dark);
    border: unset;
}

/* Quick facts — scale in with slight upward lift */
.article-body .article-quick-facts.adn-visible,
.article-body .acard-insight.adn-visible {
    animation: adn-scale-in 0.75s cubic-bezier(.16,1,.3,1) both;
}

/* Drop cap on first paragraph */
.article-body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-display, serif);
    font-size: 3.6rem;
    line-height: 0.82;
    font-weight: 700;
    color: var(--client-color, #1e3a2f);
    margin: 4px 10px 0 0;
    padding: 2px 0;
}

/* H2 — strong section break with accent underline */
.article-body h2 {
    font-family: var(--font-display, serif);
    font-size: 1.45rem;
    color: var(--color-heading, #111827);
    margin: 48px 0 16px;
    padding-bottom: 10px;
    line-height: 1.3;
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(var(--color-white,#fff), var(--color-white,#fff)),
                      linear-gradient(90deg, var(--client-color,#1e3a2f) 0%, var(--color-accent,#c9a84c) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}
/* Gold + green gradient underline via pseudo-element */
.article-body h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--client-color,#1e3a2f) 0%, var(--color-accent,#c9a84c) 100%);
    border-radius: 2px;
}

/* H3 — left accent bar */
.article-body h3 {
    font-size: 1.1rem;
    color: var(--color-heading, #111827);
    margin: 32px 0 10px;
    padding-left: 14px;
    border-left: 3px solid var(--color-accent, #c9a84c);
    font-weight: 700;
}

.article-body a {
    color: var(--client-color, #1e3a2f);
    text-decoration: underline;
    text-decoration-color: rgba(30,58,47,0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s;
    color: var(--color-accent);
    font-weight: bold;
    border: 0px;
}
.article-body a:hover {
    text-decoration-color: var(--color-accent, #c9a84c);
}

/* Blockquote — pull-quote style */
.article-body blockquote {
    margin: 12px 0;
    padding: 4px 8px 4px 8px;
    background: rgba(30,58,47,.03);
    border-left: 4px solid var(--color-accent, #c9a84c);
    border-radius: 0 10px 10px 0;
    font-family: 'Fondamento', var(--font-display, serif);
    font-size: 1.0rem;
    font-style: italic;
    color: var(--color-heading, #111827);
    line-height: 1.75;
    position: relative;
}
.article-body blockquote::before {
    content: '🏡';
    position: absolute;
    /* top: 4px;
    left: 12px; */
    font-size: 3rem;
    color: var(--color-accent, #c9a84c);
    opacity: 0.25;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* ── Reading Progress Bar ───────────────────────────────────── */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--client-color, #1e3a2f) 0%, var(--color-accent, #c9a84c) 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}


/* ── Details / Summary (FAQ accordion in article body) ──────── */
.article-body details {
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    margin: 16px 0;
    overflow: hidden;
    transition: border-color 0.2s;
}
.article-body details[open] {
    border-color: var(--client-color, #1e3a2f);
}
.article-body summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--color-heading, #111827);
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: var(--color-surface, #f9fafb);
    border-radius: 10px;
    transition: background 0.18s, color 0.18s;
    line-height: 18px;
}
.article-body section > details:nth-of-type(3n) summary{
    background-color: var(--client-color-light);
}
.article-body section > details:nth-of-type(2n) summary{
    background-color: var(--gold-50);
}

.article-body ul,
.article-body ol {
    padding: 10px;
    margin: 0;
    border-radius: 4px;
}

.article-body ul:nth-child(2n),
.article-body ol:nth-child(2n) {
    background: var(--secondary-color-light);
}

.article-body ul:nth-child(1n+3),
.article-body ul:nth-child(2n) {
    background: var(--client-color-light);
}


.article-body summary::-webkit-details-marker { display: none; }
.article-body details[open] > summary {
    background: rgba(30,58,47,.06);
    color: var(--client-color, #1e3a2f);
    border-radius: 10px 10px 0 0;
}
/* chevron icon */
.article-body summary::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.22s ease;
}
.article-body details[open] > summary::after {
    transform: rotate(180deg);
}
/* answer body */
.article-body details > *:not(summary) {
    padding: 10px 14px 12px;
    border-top: 1.5px solid var(--color-border, #e5e7eb);
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text, #374151);
}
.article-body details > p:not(summary) { margin: 0; }

/* Callout: Tip */
.article-tip-box {
    background: var(--color-info-bg, #eff6ff);
    border-left: 4px solid var(--color-primary, #1d4ed8);
    border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
    padding: 9px 14px;
    margin: 8px 0;
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.tip-label {
    font-weight: 700;
    color: var(--color-primary, #1d4ed8);
    margin-right: 6px;
}

.article-tip-box p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-info-dark, #1e40af);
}

/* Callout: Note / Warning */
.article-note-box {
    background: var(--color-warning-bg, #fffbeb);
    border-left: 4px solid var(--color-warning, #f59e0b);
    border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
    padding: 9px 14px;
    margin: 8px 0;
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.note-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.note-label {
    font-weight: 700;
    color: var(--color-warning-text, #92400e);
    margin-right: 6px;
}

.article-note-box p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-warning-text);
}

/* Callout: Example */
.article-example-box {
    background: var(--color-surface, #f3f4f6);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    padding: 18px 20px;
    margin: 14px 0;
}

.example-icon {
    font-size: 1.2rem;
    margin-right: 6px;
}

.article-example-box p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text, #374151);
}

/* Styled list */
.article-list {
    padding-left: 0;
    list-style: none;
    margin: 0 0 18px;
}

.article-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.65;
}

.article-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary, #1d4ed8);
    font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   ARTICLE CONTENT COMPONENTS
   All scoped to .article-body — no bleed to other pages
   ════════════════════════════════════════════════════════════ */

/* ── Section Card — wrap each <section> in a lifted card ─── */
.article-body .article-section {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(30,58,47,.09);
    /* border-radius: 14px; */
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(30,58,47,.05);
    position: relative;
}
.article-body .article-section > h2:first-child,
.article-body .article-section > h3:first-child {
    margin-top: 0;
}

/* ── Stat Row — key numbers in a grid ───────────────────── */
.article-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.article-stat {
    background: linear-gradient(145deg, rgba(30,58,47,.04) 0%, rgba(201,168,76,.05) 100%);
    border: 1.5px solid rgba(30,58,47,.1);
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    transition: border-color 0.18s, transform 0.18s;
}
.article-stat:hover { border-color: var(--client-color, #1e3a2f); transform: translateY(-2px); }
.article-stat-number {
    font-family: var(--font-display, serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--client-color, #1e3a2f);
    line-height: 1.1;
    display: block;
}
.article-stat-label {
    font-size: 0.75rem;
    color: var(--color-text, #6b7280);
    margin-top: 6px;
    line-height: 1.4;
    display: block;
}

/* ── Steps List — numbered card steps ───────────────────── */
.article-steps {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-body .article-steps > li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 16px;      /* overrides .article-body ol li padding-left: 2.75rem */
    margin-bottom: 0;        /* overrides .article-body ol li margin-bottom: 1rem */
    background: #fff;
    border: 1.5px solid rgba(30,58,47,.09);
    border-radius: 12px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--color-text, #374151);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.article-body .article-steps > li:hover {
    border-color: var(--client-color, #1e3a2f);
    box-shadow: 0 3px 12px rgba(30,58,47,.07);
}
.article-body .article-steps > li::before {
    content: counter(step);
    position: static;        /* overrides .article-body ol li::before position: absolute */
    min-width: 28px;
    width: 28px;
    height: 28px;
    line-height: normal;
    text-align: center;
    background: var(--client-color, #1e3a2f);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Checklist ───────────────────────────────────────────── */
.article-checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    background: #fff;
    border: 1.5px solid rgba(30,58,47,.1);
    border-radius: 12px;
    overflow: hidden;
}
/* Override article.css ul li { list-style: disc } — needs higher specificity */
.article-body .article-checklist > li { list-style: none; }
.article-checklist > li {
    padding: 10px 14px 10px 40px;
    position: relative;
    border-bottom: 1px solid rgba(30,58,47,.06);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-text, #374151);
}
.article-checklist > li:last-child { border-bottom: none; }
.article-checklist > li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 10px;
    width: 18px;
    height: 18px;
    background: rgba(30,58,47,.08);
    color: var(--client-color, #1e3a2f);
    font-weight: 700;
    font-size: 0.72rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 18px;
}

/* ── Key Point — highlighted takeaway ───────────────────── */
.article-key-point {
    background: linear-gradient(135deg, rgba(30,58,47,.05) 0%, rgba(201,168,76,.07) 100%);
    border-left: 4px solid var(--client-color, #1e3a2f);
    border-radius: 0 14px 14px 0;
    padding: 18px 20px 18px 22px;
    margin: 14px 0;
    font-size: 1.02rem;
    color: var(--color-heading, #111827);
    line-height: 1.65;
    position: relative;
}
.article-key-point::before {
    content: '💡';
    font-size: 1.2rem;
    display: inline;
    margin-bottom: 6px;
}

/* ── Quick Facts — dark green info panel ────────────────── */
.article-quick-facts {
    background: var(--client-color, #1e3a2f);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 14px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.article-quick-facts::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(201,168,76,.12);
    pointer-events: none;
}
.article-quick-facts-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent, #c9a84c);
    margin-bottom: 16px;
    display: block;
}
.article-body .article-quick-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-body .article-quick-facts ul li {
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 0.92rem;
    line-height: 1.55;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    list-style: none;              /* overrides article.css list-style: disc */
    padding: 10px 0;               /* breathing room between items */
    margin-bottom: 0;              /* overrides article.css margin-bottom: 6px */
}
.article-body .article-quick-facts ul li:last-child { border-bottom: none; padding-bottom: 0; }
.article-body .article-quick-facts ul li::before {
    content: '→';
    color: var(--color-accent, #c9a84c);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Warning Box ─────────────────────────────────────────── */
.article-warning {
    background: rgba(239,68,68,.04);
    border: 1.5px solid rgba(239,68,68,.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 12px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.article-warning::before {
    content: '⚠️';
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.article-warning p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: #7f1d1d; }
.article-warning strong { color: #b91c1c; }

/* ── Card Grid — comparison/feature cards ───────────────── */
.article-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.article-card-item {
    background: #fff;
    border: 1.5px solid rgba(30,58,47,.09);
    border-radius: 14px;
    padding: 20px 16px;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-card-item:nth-child(1n) {
  background: var(--bg-color-1);
}
.article-stat:nth-child(2n-1) {
  background: var(--bg-color-1);
}
.article-card-item:nth-child(3n-1) {
  background: var(--client-color-light);
}
.article-card-item:nth-child(4n-1) {
  background: var(--secondary-color);
}
.article-card-item:hover {
    border-color: var(--client-color, #1e3a2f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,58,47,.1);
}
.article-card-icon { font-size: 1.7rem; line-height: 1; }
.article-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    line-height: 1.3;
}
.article-card-text {
    font-size: 0.8rem;
    color: var(--color-text, #6b7280);
    line-height: 1.55;
    margin: 0;
}

/* ── Promo / Editorial Spotlight ─────────────────────────── */
/*   Cream parchment panel — use for key insights, standout
     facts, or editorial highlights within article body.     */
.article-promo {
    position: relative;
    background: linear-gradient(135deg, #faf6f1 0%, #f3ede5 100%);
    border: 1px solid rgba(184,152,64,.2);
    border-radius: 14px;
    padding: 22px 22px 22px 24px;
    margin: 14px 0;
    overflow: hidden;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
/* Gold → green hairline across the top */
.article-promo::before {
    content: '';
    position: absolute;
    top: 0; left: 18px; right: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent, #c9a84c), var(--client-color, #1e3a2f));
    border-radius: 0 0 2px 2px;
}
/* Faint watermark star bottom-right */
.article-promo::after {
    content: '✦';
    position: absolute;
    right: 14px;
    bottom: 0;
    font-size: 5rem;
    line-height: 1;
    color: rgba(184,152,64,.09);
    pointer-events: none;
    font-family: Georgia, serif;
    user-select: none;
}
.article-promo-badge {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--client-color, #1e3a2f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 3px 10px rgba(30,58,47,.2);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.article-promo-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.article-promo-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--color-accent, #c9a84c);
    display: block;
    margin-bottom: 4px;
}
.article-promo-title {
    font-family: Georgia, serif;
    font-size: 1.02rem;
    font-weight: 700;
    font-style: italic;
    color: var(--client-color, #1e3a2f);
    line-height: 1.42;
    margin: 0 0 7px;
    display: block;
}
.article-promo-text {
    font-size: 0.87rem;
    line-height: 1.65;
    color: var(--color-text, #374151);
    margin: 0;
}

/* ── Mobile responsive ───────────────────────────────────── */
@media (max-width: 640px) {
    .article-body .article-section { padding: 14px 12px; }

    /* Grids: 2-column */
    .article-stat-row { grid-template-columns: repeat(2, 1fr); }
    .article-stat { padding: 14px 10px; }
    .article-stat-number { font-size: 1.6rem; }
    .article-card-grid { grid-template-columns: repeat(2, 1fr); }
    .article-card-item { padding: 14px 12px; }

    /* Steps */
    .article-body .article-steps > li { padding: 11px 13px; gap: 11px; }

    /* Callout boxes */
    .article-tip-box,
    .article-note-box,
    .article-example-box { padding: 13px 13px; gap: 10px; }
    .article-quick-facts { padding: 14px 14px; }
    .article-key-point { padding: 14px 16px 14px 18px; }
    .article-warning { padding: 12px 13px; }
    .article-checklist > li { padding: 10px 12px 10px 36px; }
    .article-checklist > li::before { left: 12px; }
}

@media (max-width: 480px) {
    .article-card-grid { grid-template-columns: 1fr; }
    .article-promo { padding: 18px 16px 18px 18px; gap: 13px; }
    .article-promo-badge { width: 36px; height: 36px; min-width: 36px; font-size: 1.05rem; }
    .article-promo-title { font-size: 0.95rem; }
}

@media (max-width: 380px) {
    .article-stat-row { grid-template-columns: 1fr; }
}


.article-body .compare-table {
    /* width: 100%; */
    border-collapse: collapse;
    border-spacing: 0;
    white-space: normal;
    font-size: 0.9rem;
}

/* Header */
.article-body .compare-table thead th {
    background: var(--client-color, #1e3a2f);
    color: #fff;
    padding: 15px 20px;
    text-align: left;
    font-size: 0.73rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}
.article-body .compare-table thead th:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.1);
}

/* Gold accent stripe on first-column header */
.article-body .compare-table thead th:first-child {
    border-left: 3px solid var(--color-accent, #c9a84c);
}

/* Body cells */
.article-body .compare-table tbody td {
    /* padding: 14px 20px; */
    border-bottom: 1px solid rgba(30,58,47,.08);
    color: var(--color-text, #374151);
    vertical-align: top;
    line-height: 1.5;
}
.article-body .compare-table tbody tr:last-child td { border-bottom: none; }

/* First column — label column: bold + right divider */
.article-body .compare-table tbody td:first-child {
    font-weight: 600;
    color: var(--color-heading, #111827);
    border-right: 1.5px solid rgba(30,58,47,.08);
    border-left: 3px solid transparent;
    background: rgba(30,58,47,.02);
}

/* Even rows */
.article-body .compare-table tbody tr:nth-child(even) td { background: rgba(30,58,47,.025); }
.article-body .compare-table tbody tr:nth-child(even) td:first-child { background: rgba(30,58,47,.04); }

/* Hover row — subtle gold highlight */
.article-body .compare-table tbody tr:hover td { background: rgba(201,168,76,.06); }
.article-body .compare-table tbody tr:hover td:first-child {
    border-left-color: var(--color-accent, #c9a84c);
    background: rgba(201,168,76,.09);
}

@media (max-width: 640px) {
    .article-body .compare-table thead th,
    .article-body .compare-table tbody td { padding: 11px 14px; }
    .article-body .compare-table { font-size: 0.83rem; }
}

/* ── Feedback Row ───────────────────────────────────────── */
/* ── Post Feedback Bar (helpful + share) ────────────────────── */
.post-feedback-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    background: var(--color-bg-section, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 12px);
    padding: 14px 20px;
}

/* Helpful button */
.pf-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--color-white);
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-2xl);
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text, #374151);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    font-family: inherit;
}
.pf-helpful-btn:hover { border-color: var(--color-love); color: var(--color-love); }
.pf-helpful-btn--active { border-color: var(--color-love); background: #fff1f2; color: var(--color-love); }
.pf-helpful-btn--active .pf-heart { fill: var(--color-love); stroke: var(--color-love); }
.pf-heart { transition: fill .15s, stroke .15s; }
.pf-helpful-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--color-bg-section, #f3f4f6);
    border-radius: var(--radius-xl);
    font-size: 0.75rem; font-weight: 600;
}
.pf-helpful-btn--active .pf-helpful-count { background: var(--color-error-border); }

/* Share row */
.pf-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--color-black, #6b7280);
}
.pf-share-label { white-space: nowrap; }
.pf-share-btns { display: flex; gap: 6px; }
.pf-share-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-white, #fff);
    transition: opacity .12s, transform .12s;
}
.pf-share-btn:hover { opacity: .82; transform: translateY(-1px); }
.pf-share-tw { background: var(--color-black, #000); }
.pf-share-li { background: var(--color-linkedin, #0a66c2); }
.pf-share-wa { background: var(--color-whatsapp, #25d366); }
.pf-share-em { background: var(--color-black, #6b7280); }
.pf-share-native { background: var(--color-primary, #1d5c8e); border: none; cursor: pointer; padding: 0; }

/* ── Author Box ─────────────────────────────────────────────── */
.author-box {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    background: var(--color-surface, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 12px);
    padding: 20px 24px;
    margin-bottom: var(--space-6);
}

.author-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e8f0ec, #d4e6d8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-label {
    font-size: 0.72rem;
    color: var(--color-black, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.author-name {
    font-size: 0.95rem;
    color: var(--color-heading, #111827);
    display: block;
}

.author-role {
    font-size: 0.8rem;
    color: var(--color-black, #6b7280);
    display: block;
}

.author-updated {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-black, #9ca3af);
    flex-shrink: 0;
}

.author-updated > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-updated strong {
    font-size: 0.85rem;
    color: var(--color-heading, #111827);
    display: block;
}

/* ── Disclaimer ─────────────────────────────────────────────── */
.article-disclaimer {
    background: var(--color-surface, #f3f4f6);
    border-radius: var(--radius-sm, 8px);
    padding: 16px 20px;
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    margin-bottom: var(--space-12);
}

.disclaimer-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.article-disclaimer p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--color-black, #6b7280);
    margin: 0;
}

.article-disclaimer strong {
    color: var(--color-text, #374151);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width:100%;
}

/* highlight buttons (post_sidebar_highlights) */
.highlight-buttons { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: var(--space-2); }
.highlight-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--color-bg-section);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
}
.highlight-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}
.highlight-btn:hover .highlight-arrow { transform: translateX(2px); }
.highlight-arrow { transition: transform 0.15s; font-size: 0.9rem; }

.sidebar-box h3 {
    font-size: 0.92rem;
    color: var(--color-heading, #111827);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

/* TOC */

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 12px;
    max-height: 55vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
.toc-nav::-webkit-scrollbar { width: 3px; }
.toc-nav::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-2); }

.toc-link {
    display: block;
    padding: 7px 10px;
    font-size: 0.83rem;
    line-height: 1.4;
    color: var(--color-black, #6b7280);
    text-decoration: none;
    border-radius: var(--radius-tag);
    border-left: 2px solid transparent;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.toc-link:hover {
    background: rgba(29, 78, 216, 0.06);
    color: var(--color-primary, #1d4ed8);
}

.toc-link.toc-active {
    background: rgba(29, 78, 216, 0.08);
    color: var(--color-primary, #1d4ed8);
    border-left-color: var(--color-primary, #1d4ed8);
    font-weight: 600;
}

.toc-link--h3 {
    padding-left: 22px;
    font-size: 0.78rem;
    color: var(--color-black, #9ca3af);
}

/* Calculators list */
.sidebar-calc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-calc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-tag);
    text-decoration: none;
    transition: background 0.12s;
}

.sidebar-calc-item:hover {
    background: var(--color-surface, #f3f4f6);
}

.sidebar-calc-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.sidebar-calc-label {
    font-size: 0.83rem;
    color: var(--color-text, #374151);
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.sidebar-arrow {
    color: var(--color-black, #9ca3af);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-view-all {
    display: block;
    font-size: 0.82rem;
    color: var(--color-primary, #1d4ed8);
    text-decoration: none;
    padding: 6px 10px;
    font-weight: 500;
}

.sidebar-view-all:hover {
    text-decoration: underline;
}

/* Related guides */
.sidebar-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.sidebar-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border-radius: var(--radius-tag);
    text-decoration: none;
    transition: background 0.12s;
}

.sidebar-related-item:hover {
    background: var(--color-surface, #f3f4f6);
}

.sidebar-related-img {
    width: 36px;
    height: 36px;
    background: var(--color-surface, #f3f4f6);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-related-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sidebar-related-title {
    font-size: 0.83rem;
    color: var(--color-text, #374151);
    line-height: 1.35;
    font-weight: 500;
    display: block;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-related-meta {
    font-size: 0.75rem;
    color: var(--color-black, #9ca3af);
    display: block;
}

/* Latest news */
.sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.sidebar-news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border-radius: var(--radius-tag);
    text-decoration: none;
    transition: background 0.12s;
}

.sidebar-news-item:hover {
    background: var(--color-surface, #f3f4f6);
}

.sidebar-news-img {
    width: 36px;
    height: 36px;
    background: var(--color-surface, #f3f4f6);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
}

.sidebar-news-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sidebar-news-title {
    font-size: 0.83rem;
    color: var(--color-text, #374151);
    line-height: 1.35;
    font-weight: 500;
    display: block;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Newsletter sidebar */
.sidebar-newsletter {
    background: linear-gradient(145deg, var(--color-primary, #1d5c8e) 0%, #0c3251 100%);
    border: none;
    color: var(--color-white);
    text-align: left;
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
}
.sidebar-newsletter::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.sidebar-newsletter-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

.sidebar-newsletter h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 6px;
    color: var(--color-white);
    font-size: 0.92rem;
}

.sidebar-newsletter p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.72);
    margin-bottom: 14px;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.sidebar-newsletter-form input[type="email"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    background: rgba(255,255,255,0.12);
    color: var(--color-white);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}
.sidebar-newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.45);
}
.sidebar-newsletter-form input[type="email"]:focus {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.sidebar-nl-btn {
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.4) !important;
    color: var(--color-white) !important;
    transition: background 0.15s !important;
}
.sidebar-nl-btn:hover {
    background: rgba(255,255,255,0.25) !important;
}

.sidebar-nl-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    margin: 4px 0 0;
    text-align: center;
}
.article-toc-wrapper{
    width: 100%;
}
/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {

    .article-layout {
        grid-template-columns: 1fr 260px;
        grid-template-rows: auto 1fr;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .article-layout {
        display: flex;
        flex-direction: column;
        gap: var(--space-8);
    }

    .article-right-col {
        display: contents;
    }

    .article-toc-wrapper {
        order: 1;
    }

    .article-main {
        order: 2;
    }

    .article-sidebar {
        order: 3;
    }

    .takeaways-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-header-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .article-header-left {
        padding: 26px 20px 22px;
    }

    .article-header-left::after { display: none; }

    .ahero-circle--c { display: none; }

    .article-header-img {
        min-height: 240px;
        position: relative;
    }
}

@media (max-width: 600px) {
    .article-outer {
        padding: 10px 10px 20px;
    }

    .article-body {
        padding: 14px 12px 12px;
    }

    .article-header-left {
        padding: 20px 14px 16px;
    }

    .article-header-img {
        min-height: 180px;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-feedback-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .author-box {
        flex-wrap: wrap;
    }

    .author-updated {
        width: 100%;
    }

    .key-takeaways-box {
        padding: var(--space-5);
    }
}

/* ============================================================
   COMMENTS SECTION
   ============================================================ */

.adn-comments-section {
    margin-top: 10px;
    padding-top: var(--space-2);
}

/* ── Comments header row (count + filter tabs) ── */
.adn-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-3);
}
.adn-comments-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark, #111827);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Filter tabs */
.adn-filter-tabs {
    display: flex;
    gap: 3px;
    background: var(--color-bg-section, #f3f4f6);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border, #e5e7eb);
}
.adn-filter-btn {
    padding: 4px 12px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-black, #6b7280);
    cursor: pointer;
    background: none;
    transition: background .12s, color .12s, box-shadow .12s;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.6;
}
.adn-filter-btn:hover { color: var(--color-text, #374151); }
.adn-filter-btn.is-active {
    background: var(--color-white);
    color: var(--color-primary, #1d5c8e);
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.adn-comments-count {
    background: var(--color-primary, #1d5c8e);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    line-height: 1.6;
}
.adn-form-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark, #111827);
    margin: 0 0 16px;
    padding-left: 10px;
    border-left: 3px solid var(--color-primary, #1d5c8e);
}

/* ── Comment list ── */
.adn-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.adn-comment {
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.adn-comment:last-child { border-bottom: none; }

/* Nested replies */
.adn-comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.adn-comment--reply {
    border-top: 1px solid var(--color-border, #e5e7eb);
    border-bottom: none;
}
.adn-comment--reply:last-child { border-bottom: none; }
.adn-comment--reply .adn-comment-body {
    margin-left: 44px;
    background: var(--color-bg-section, #f9fafb);
    border-left: 3px solid var(--color-primary, #1d5c8e);
}

/* Comment row */
.adn-comment-body {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-white);
    transition: background .12s;
}
.adn-comment-body:hover { background: var(--slate-50); }

/* Pending */
.adn-comment--pending > .adn-comment-body { background: var(--color-warning-bg); }
.adn-comment--pending .adn-comment-body:hover { background: #fef9e7; }

/* Avatar */
.adn-comment-avatar { flex-shrink: 0; padding-top: 2px; }
.adn-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Content */
.adn-comment-content { flex: 1; min-width: 0; }

.adn-comment-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}
.adn-comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-dark, #111827);
}
.adn-comment-date {
    font-size: 0.75rem;
    color: var(--color-black, #9ca3af);
}
.adn-comment-pending {
    font-size: 0.68rem;
    color: var(--color-warning-text, #92400e);
    background: var(--gold-100);
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.adn-comment-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text, #374151);
}
.adn-comment-text p { margin: 0 0 4px; }
.adn-comment-text p:last-child { margin-bottom: 0; }

.adn-comment-actions {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 0;
}
.adn-reply-link a,
.adn-edit-link a {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-black, #9ca3af);
    text-decoration: none;
    padding: 2px 8px 2px 0;
}
.adn-reply-link a:hover { color: var(--color-primary, #1d5c8e); }
.adn-edit-link a:hover  { color: var(--color-text, #374151); }
.adn-edit-link { border-left: 1px solid var(--color-border, #e5e7eb); padding-left: var(--space-2); margin-left: 4px; }

/* Pingback */
.adn-comment-ping {
    font-size: 0.8rem;
    color: var(--color-black, #6b7280);
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.adn-comment-ping a { color: var(--color-primary, #1d5c8e); }

/* Pagination */
.adn-comment-pagination {
    margin-top: 24px;
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.adn-comment-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border-radius: var(--radius-tag); border: 1px solid var(--color-border, #e5e7eb);
    font-size: 0.82rem; font-weight: 500;
    color: var(--color-dark); text-decoration: none;
    transition: background .15s, color .15s;
}
.adn-comment-pagination .page-numbers:hover,
.adn-comment-pagination .page-numbers.current { background: var(--color-primary, #1d5c8e); color: var(--color-white); border-color: var(--color-primary, #1d5c8e); }

/* ── Comment form card ── */
.adn-comment-form-wrap {
    padding: 20px 20px 24px;
    background: var(--color-white);
    border: 1px solid var(--client-color);
    border-radius: var(--radius-md);
}
.adn-comment-note {
    font-size: 0.8rem;
    color: var(--color-black, #9ca3af);
    /* margin: 0 0 20px;
    padding-bottom: var(--space-5); */
    border-bottom: 1px solid var(--color-border, #f3f4f6);
}
.adn-required { color: var(--color-danger, #e53e3e); margin-left: 2px; }
.adn-must-login,
.adn-logged-in {
    font-size: 0.85rem;
    color: var(--color-black, #6b7280);
    margin-bottom: var(--space-4);
    padding: 10px 14px;
    background: var(--color-bg-section, #f9fafb);
    border-radius: var(--radius-sm);
}
.adn-logged-in a,
.adn-must-login a { color: var(--color-primary, #1d5c8e); font-weight: 600; }
.adn-cancel-reply a {
    font-size: 0.8rem;
    color: var(--color-black, #6b7280);
    margin-left: 10px;
}

.adn-comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.adn-form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.adn-form-row--full { grid-column: 1 / -1; }
.adn-form-submit    { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-1); }

.adn-form-row label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-black, #6b7280);
}
.adn-form-row input,
.adn-form-row textarea {
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--color-dark, #111827);
    background: var(--color-bg-section, #f9fafb);
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.adn-form-row input:focus,
.adn-form-row textarea:focus {
    outline: none;
    border-color: var(--color-primary, #1d5c8e);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(29, 92, 142, .1);
}
.adn-form-row textarea { resize: vertical; min-height: 100px; }

/* WordPress cookies consent row */
.comment-form-cookies-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}
.comment-form-cookies-consent input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary, #1d5c8e);
    cursor: pointer;
    border-radius: var(--radius-2);
}
.comment-form-cookies-consent label {
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-black, #9ca3af);
    cursor: pointer;
    line-height: 1.45;
}

/* Closed / protected */
.adn-comments-closed,
.adn-comments-protected {
    font-size: 0.88rem;
    color: var(--color-black, #6b7280);
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--color-bg-section, #f9fafb);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border, #e5e7eb);
}

/* ── Admin moderation buttons ── */
.adn-mod-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    border-left: 1px solid var(--color-border, #e5e7eb);
    padding-left: var(--space-2);
    margin-left: 4px;
}
.adn-mod-btn {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    border: 1px solid;
    font-size: 0.67rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    line-height: 1.6;
    font-family: inherit;
    white-space: nowrap;
    background: none;
}
.adn-mod-btn:hover    { opacity: .75; }
.adn-mod-btn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.adn-mod-approve   { color: var(--color-success-text, #15803d); border-color: var(--color-success-border, #86efac); }
.adn-mod-unapprove { color: var(--color-info, #0369a1); border-color: #7dd3fc; }
.adn-mod-spam      { color: var(--color-warning-text, #92400e); border-color: var(--color-warning-border, #fcd34d); }
.adn-mod-trash     { color: var(--color-error-text, #991b1b); border-color: var(--color-error-border, #fca5a5); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .adn-comment-form { grid-template-columns: 1fr; }
    .adn-form-row--full { grid-column: 1; }
    .adn-form-submit { grid-column: 1; flex-direction: column; align-items: flex-start; }
    .adn-comment-list .children { padding-left: var(--space-5); }
    .adn-comment-form-wrap { padding: 20px 18px 24px; }
    .adn-mod-actions { flex-wrap: wrap; }
}

/* ── AJAX status message ── */
.adn-comment-status { padding: 12px 16px; border-radius: var(--radius-sm, 8px); font-size: 0.9rem; margin: 16px 0; }
.adn-comment-status--success { background: var(--color-success-bg); border: 1px solid var(--color-success-border); color: var(--color-success-text); }
.adn-comment-status--pending { background: var(--color-warning-bg); border: 1px solid var(--color-warning-border); color: var(--color-warning-text); }
.adn-comment-status--error   { background: var(--color-error-bg); border: 1px solid var(--color-error-border); color: var(--color-error-text); }

/* ── Comments wrap + loading spinner ── */
.adn-comments-wrap { position: relative; }
.adn-comments-spinner {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    z-index: 2;
}
.adn-comments-spinner[hidden] { display: none !important; }
.adn-spinner-icon {
    font-size: 1.5rem;
    color: var(--color-primary, #1d5c8e);
    display: inline-block;
    animation: adn-spin .9s linear infinite;
}
@keyframes adn-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Replace-mode pagination ── */
.adn-comments-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 14px 0 4px;
}
.adn-page-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--color-white);
    color: var(--color-text, #374151);
    transition: background .12s, border-color .12s, color .12s;
    font-family: inherit;
    line-height: 1.5;
}
.adn-page-btn:hover:not(:disabled) {
    background: var(--color-primary, #1d5c8e);
    border-color: var(--color-primary, #1d5c8e);
    color: var(--color-white);
}
.adn-page-btn:disabled { opacity: .35; cursor: default; }
.adn-page-info {
    font-size: 0.82rem;
    color: var(--color-black, #6b7280);
    white-space: nowrap;
}

/* ── Post Expert + Contact section (below comments) ──────────── */
.pec-wrap {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(30,58,47,.12);
    box-shadow: 0 4px 24px rgba(30,58,47,.07);
}
.pec-experts {
    background: var(--color-white, #fff);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pec-eyebrow {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--color-accent, #c9a84c);
}
.pec-heading {
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--client-color, #1e3a2f);
    margin: 0;
    line-height: 1.2;
}
.pec-sub {
    font-size: 0.82rem;
    color: var(--color-text, #6b7280);
    margin: 0;
    line-height: 1.55;
}
.pec-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.pec-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: #f5f1ea;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(30,58,47,.08);
    transition: background 0.15s, transform 0.15s;
}
.pec-type-item:hover {
    background: rgba(30,58,47,.08);
    transform: translateY(-2px);
}
.pec-type-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.pec-type-label {
    font-size: 0.63rem;
    font-weight: 600;
    color: var(--client-color, #1e3a2f);
    text-align: center;
    line-height: 1.3;
}
.pec-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--color-accent, #c9a84c);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.15s;
}
.pec-cta-btn:hover {
    background: var(--client-color, #1e3a2f);
    transform: translateY(-1px);
}
.pec-contact {
    background: var(--client-color, #1e3a2f);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}
.pec-contact-eyebrow {
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--color-accent, #c9a84c);
    margin-bottom: 2px;
}
.pec-contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}
.pec-contact-item:hover { background: rgba(255,255,255,.10); }
.pec-contact-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.pec-contact-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pec-contact-heading {
    font-size: 0.87rem;
    font-weight: 700;
    color: #fff;
    display: block;
}
.pec-contact-meta {
    font-size: 0.74rem;
    color: rgba(255,255,255,.5);
    display: block;
}
.pec-contact-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-accent, #c9a84c);
    display: block;
    margin-top: 3px;
}
@media (max-width: 640px) {
    .pec-wrap { grid-template-columns: 1fr; }
    .pec-types { grid-template-columns: repeat(2, 1fr); }
    .pec-experts, .pec-contact { padding: 22px 18px; }
}

/* ── Related Articles carousel (below article layout) ──────────────── */
.post-related-articles {
    background: var(--section-color, #f8f9fa);
    border-top: 1px solid var(--slate-200, #e5e7eb);
}

.pra-heading {
    font-family: var(--font-display, serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    margin: 0 0 22px;
    letter-spacing: -0.2px;
}

/* Horizontal scroll carousel */
.pra-row {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.pra-row::-webkit-scrollbar { display: none; }
.pra-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* Card */
.pra-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--slate-200, #e5e7eb);
    border-radius: var(--card-radius, 12px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg, #fff);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    min-width: 0;
}

.pra-card:hover {
    border-color: var(--client-color, #1e3a2f);
    box-shadow: 0 6px 24px rgba(30, 58, 47, 0.10);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Thumbnail */
.pra-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-100, #f3f4f6);
    flex-shrink: 0;
}

.pra-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pra-card:hover .pra-thumb img { transform: scale(1.04); }

.pra-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100, #f3f4f6);
}

/* Body */
.pra-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
    flex: 1;
}

.pra-title {
    font-family: var(--font-display, serif);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    line-height: 1.35;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pra-excerpt {
    font-size: 0.76rem;
    color: var(--slate-500, #6b7280);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pra-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--client-color, #1e3a2f);
    margin-top: auto;
    padding-top: 8px;
}

.pra-card:hover .pra-read { text-decoration: underline; }

/* Tablet: slightly narrower cards */
@media (max-width: 900px) {
    .pra-card { flex: 0 0 220px; }
}

/* Mobile: full-width-ish cards */
@media (max-width: 560px) {
    .pra-row { gap: 12px; }
    .pra-card { flex: 0 0 75vw; }
}
