/* ============================================================
   pages.css — calculators, weight timeline, knowledge, newsletter
   Part 4 of 4 — load after theme.css
   ============================================================ */
/* ============================================
   Calculators page
   ============================================ */
.calc-page { padding: 0 0 6rem; }
.calc-page .section-header { margin-bottom: 2.5rem; }
.calc-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.calc-card {
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    box-shadow: 0 1px 2px rgba(17,17,17,0.04);
    border-radius: 0.875rem;
    padding: 2rem 1.75rem;
    display: flex; flex-direction: column; gap: 0.9rem;
}
.calc-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink-text); }
.calc-desc { color: var(--soft-muted); font-size: 0.9rem; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.calc-fields label {
    display: flex; flex-direction: column; gap: 0.45rem;
    font-size: 0.78rem; font-weight: 600; color: var(--soft-muted);
    text-align: left;
}
.calc-wide { grid-column: 1 / -1; }
.calc-fields input, .calc-fields select {
    font: inherit; font-size: 0.95rem; color: #111111; background: #fff;
    height: 46px; padding: 0 0.9rem; box-sizing: border-box;
    border: 1px solid #E0E0E0; border-radius: 0.85rem;
    transition: border-color 0.15s;
}
.calc-fields input:focus, .calc-fields select:focus { outline: 2px solid #111111; outline-offset: 0; border-color: #111111; }
.calc-btn {
    align-self: flex-start;
    font: inherit; font-weight: 600; font-size: 0.9rem;
    background: #111111; color: #FFFFFF;
    border: none; border-radius: 999px;
    padding: 0.7rem 1.6rem; cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.calc-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.calc-result {
    background: #F5F5F4; border-radius: 1rem; padding: 1rem 1.25rem;
    display: flex; flex-direction: column; gap: 0.35rem;
    font-size: 0.92rem; color: var(--soft-muted);
    animation: calc-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.calc-result b { color: var(--ink-text); font-size: 1.05rem; }
@keyframes calc-pop {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.calc-foot {
    text-align: center; margin-top: 3rem; color: var(--soft-muted); font-size: 1rem;
}
.calc-foot a { color: var(--ink-text); font-weight: 600; }

@media (max-width: 700px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-card { padding: 1.5rem 1.25rem; }
}

/* Calculators hub + unit toggle */
.calc-hub { max-width: 1100px; margin: 0 auto; padding: 8rem 1.5rem 0; }
.calc-hub .container { max-width: 1000px; }
.calc-title { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink-text); }
.calc-title em {
    font-style: normal;
    background: linear-gradient(transparent 62%, #D6F5C9 62%);
    padding: 0 0.06em;
}
.calc-cards { margin-top: 0.5rem; }

.unit-toggle {
    display: inline-flex; gap: 0.3rem;
    background: #F5F5F4; border-radius: 999px; padding: 0.3rem;
    margin: 0.25rem 0 2.25rem;
}
.unit-btn {
    font: inherit; font-size: 0.82rem; font-weight: 600;
    border: none; background: transparent; color: var(--soft-muted);
    padding: 0.45rem 1.2rem; border-radius: 999px; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.unit-btn.is-on { background: #111111; color: #FFFFFF; }

.calc-section { max-width: 1100px; margin: 0 auto; padding: 2.25rem 1.5rem 0; }
.calc-section .calc-card { max-width: 760px; margin: 0 auto; }
.calc-section { scroll-margin-top: 5rem; }

@media (max-width: 700px) {
    .calc-hub { padding: 6rem 1.25rem 0; }
    .calc-section { padding: 1.5rem 1.25rem 0; }
}

/* Standalone calculator tool pages */
.calc-tool { padding: 8rem 1.5rem 6rem; }
.calc-tool-inner { max-width: 780px; }
.calc-back {
    display: inline-block; margin: 1.5rem 0 0.5rem;
    font-size: 0.85rem; font-weight: 600; color: var(--soft-muted);
    text-decoration: none;
}
.calc-back:hover { color: var(--ink-text); }
.calc-tool-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.calc-tool .calc-card { margin-top: 0.5rem; }
.calc-tool .calc-card > * { text-align: left; }
.calc-card .unit-toggle { margin: 0 0 1rem; align-self: flex-start; }
.calc-tool .calc-foot { margin-top: 2.5rem; }

@media (max-width: 700px) {
    .calc-tool { padding: 6rem 1.25rem 4.5rem; }
}

/* Breadcrumb on calculator pages */
.breadcrumb {
    display: flex; align-items: center; gap: 0.6rem;
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
}
.breadcrumb a {
    color: var(--ink-text); font-weight: 600; text-decoration: none;
    padding-bottom: 0.18em;
    background:
        linear-gradient(#111111, #111111) 50% 100% / 0% 2px no-repeat,
        linear-gradient(rgba(17, 17, 17, 0.22), rgba(17, 17, 17, 0.22)) 0 100% / 100% 1px no-repeat;
    transition: background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.breadcrumb a:hover { background-size: 100% 2px, 100% 1px; }
.breadcrumb-sep { color: #C7C7CC; }
.breadcrumb-current { color: var(--soft-muted); font-weight: 500; }


/* Height field: cm (metric) vs ft+in (imperial) */
.calc-card[data-unit="metric"] .u-imperial { display: none; }
.calc-card[data-unit="imperial"] .u-metric { display: none; }


/* Timeline chart */
.calc-chart { margin-top: 0.25rem; }
.calc-chart svg { width: 100%; height: auto; display: block; }
.chart-line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: chart-draw 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .chart-line { animation: none; stroke-dasharray: none; } }


/* Timeline tier selector (deficit/surplus presets) */
.tier-group { margin-top: 0.35rem; }
.tier-caption { font-size: 0.78rem; font-weight: 600; color: var(--soft-muted); margin-bottom: 0.45rem; }
.tier-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.tier-btn {
    font: inherit; font-weight: 600; font-size: 0.88rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    border: 1px solid #E0E0E0; background: #FFFFFF; color: var(--soft-muted);
    border-radius: 0.85rem; padding: 0.7rem 0.4rem; cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tier-btn span { font-weight: 500; font-size: 0.72rem; color: #9CA3AF; }
.tier-btn:hover { border-color: #111111; }
.tier-btn.is-on { background: #111111; border-color: #111111; color: #FFFFFF; }
.tier-btn.is-on span { color: rgba(255, 255, 255, 0.72); }

/* Mobile calculator compatibility */
.calc-fields select { width: 100%; max-width: 100%; }
.tier-btn { min-width: 0; }
.tier-btn span { white-space: normal; }
@media (max-width: 640px) {
    /* Keep the timeline chart readable: full-size, horizontally scrollable */
    .calc-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .calc-chart svg { min-width: 560px; }
}

@media (max-width: 640px) {
    .unit-btn { padding: 0.55rem 1.25rem; }
    .tier-btn { padding: 0.75rem 0.35rem; font-size: 0.78rem; }
    .tier-btn span { font-size: 0.66rem; }
    .tier-caption { font-size: 0.72rem; }
    .calc-desc { font-size: 0.85rem; }
}


/* Knowledge page */
.knowledge-hub { max-width: 1100px; margin: 0 auto; padding: 8rem 1.5rem 0; }
.knowledge-hub .container { max-width: 1000px; }
.knowledge-title { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink-text); }
.knowledge-title em { font-style: normal; background: linear-gradient(transparent 62%, #D6F5C9 62%); padding: 0 0.06em; }
.knowledge-cards { margin-top: 0.5rem; }
.knowledge-section { max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem 0; scroll-margin-top: 5rem; }
.knowledge-section-head { margin-bottom: 1.5rem; }
.knowledge-section-head .eyebrow { color: var(--soft-muted); }
.knowledge-section-head .display { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 0.5rem; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.guide-card {
    background: #FFFFFF; border: 1px solid #ECECEC; border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgba(17,17,17,0.04);
    padding: 1.75rem 1.5rem;
}
.guide-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink-text); margin: 0.75rem 0 0.5rem; }
.guide-card p { font-size: 0.9rem; color: var(--soft-muted); }
.guide-soon {
    display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    background: #F5F5F4; color: var(--soft-muted); padding: 0.28rem 0.7rem; border-radius: 999px;
}
.mobile-menu.active .nav-link:nth-child(5) { transition-delay: 0.35s; }
@media (max-width: 700px) {
    .knowledge-hub { padding: 6rem 1.25rem 0; }
    .knowledge-section { padding: 2.75rem 1.25rem 0; }
    .guide-grid { grid-template-columns: 1fr; }
}

.resources-title em { font-style: normal; background: linear-gradient(transparent 62%, #D6F5C9 62%); padding: 0 0.06em; }

/* Uniform vertical alignment for top-bar links (plain + dropdown) */
.nav-left .nav-link {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}
.nav-left .nav-caret { line-height: 1; }
.nav-left .nav-dropdown { display: inline-flex; align-items: center; }

/* ============================================
   Newsletter popup (builder + knowledge pages)
   ============================================ */
.nl-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(17, 17, 17, 0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.nl-backdrop.nl-open { opacity: 1; pointer-events: auto; }
.nl-pop {
    position: fixed; z-index: 91;
    top: 50%; left: 50%;
    width: min(430px, calc(100vw - 2.5rem));
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.18);
    padding: 1.5rem 1.6rem 1.6rem;
    opacity: 0; transform: translate(-50%, -46%) scale(0.96); pointer-events: none;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-pop.nl-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.nl-close {
    position: absolute; top: 0.6rem; right: 0.8rem;
    background: none; border: none; font-size: 1.5rem; line-height: 1;
    cursor: pointer; color: var(--soft-muted); padding: 0.3rem;
}
.nl-close:hover { color: var(--ink-text); }
.nl-title { font-size: 1.08rem; font-weight: 700; color: var(--ink-text); margin: 0 0 0.35rem; padding-right: 1.5rem; }
.nl-sub { font-size: 0.88rem; color: var(--soft-muted); margin: 0 0 1rem; line-height: 1.5; }
.nl-form { display: flex; gap: 0.5rem; }
.nl-email {
    flex: 1; min-width: 0;
    font: inherit; font-size: 0.9rem; color: #111111; background: #fff;
    height: 44px; padding: 0 0.9rem; box-sizing: border-box;
    border: 1px solid #E0E0E0; border-radius: 0.85rem;
}
.nl-email:focus { outline: 2px solid #111111; outline-offset: 0; border-color: #111111; }
.nl-btn {
    font: inherit; font-weight: 600; font-size: 0.88rem;
    height: 44px; padding: 0 1.25rem; border: none; border-radius: 0.85rem;
    background: #111111; color: #FFFFFF; cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.nl-btn:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.92; }
.nl-btn:disabled { opacity: 0.6; cursor: default; }
.nl-note { font-size: 0.8rem; margin: 0.6rem 0 0; color: var(--soft-muted); }
.nl-note.nl-err { color: #B42318; }

@media (max-width: 640px) {
    .nl-form { flex-direction: column; }
    .nl-btn { width: 100%; }
}
/* ── Knowledge articles ───────────────────────────────────────────────── */
.article {
    max-width: 780px;
    margin: 0 auto;
    padding: 7.5rem 1.5rem 3rem;
    --body-ink: #3E4A3B;
    --hairline: rgba(62, 74, 59, 0.12);
}
.article-crumb {
    font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--soft-muted); margin-bottom: 1.1rem;
}
.article-crumb a { color: var(--accent-dark); text-decoration: none; }
.article-crumb a:hover { text-decoration: underline; }
.article-crumb span { opacity: 0.5; margin: 0 0.5rem; }
.article-title { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.1; margin: 0 0 1rem; color: var(--ink-text); }
.article-standfirst { font-size: 1.12rem; line-height: 1.65; color: var(--soft-muted); margin: 0 0 1.9rem; max-width: 40em; }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem;
    font-size: 0.78rem; color: var(--soft-muted);
    border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
    padding: 0.85rem 0; margin-bottom: 2.4rem;
}
.article-meta b { color: var(--ink-text); font-weight: 600; }

.answer-box {
    background: #FFFFFF; border: 1px solid var(--hairline);
    border-left: 3px solid var(--accent); border-radius: 14px;
    padding: 1.35rem 1.5rem; margin: 0 0 2.6rem;
    box-shadow: 0 1px 2px rgba(30, 30, 30, 0.04);
}
.answer-box h2 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 0.85rem; }
.answer-box ul { margin: 0; padding-left: 1.1rem; }
.answer-box li { color: var(--body-ink); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.5rem; }
.answer-box li:last-child { margin-bottom: 0; }

.article-body { color: var(--body-ink); font-size: 1.02rem; line-height: 1.75; }
.article-body > * + * { margin-top: 1.15rem; }
.article-body h2 {
    font-size: clamp(1.35rem, 2.6vw, 1.6rem); line-height: 1.25;
    color: var(--ink-text); margin: 2.9rem 0 0.4rem; letter-spacing: -0.01em;
}
.article-body h3 { font-size: 1.1rem; color: var(--ink-text); margin: 1.9rem 0 0.2rem; }
.article-body p { margin: 0; }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body li::marker { color: var(--accent-dark); }
.article-body strong { color: var(--ink-text); font-weight: 600; }
.article-body a { color: var(--accent-dark); }
.article-body sup a { color: var(--accent-dark); text-decoration: none; font-weight: 600; font-size: 0.7em; padding-left: 1px; }
.article-body sup a:hover { text-decoration: underline; }

.article-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 1.35rem; }
.article-table caption { caption-side: top; text-align: left; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft-muted); padding-bottom: 0.6rem; }
.article-table th, .article-table td { text-align: left; padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.article-table th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft-muted); font-weight: 600; }
.article-table td:first-child { color: var(--ink-text); font-weight: 600; white-space: nowrap; }

.callout {
    background: rgba(111, 155, 94, 0.09); border-radius: 14px;
    padding: 1.15rem 1.35rem; font-size: 0.94rem; line-height: 1.65;
}
.callout b { color: var(--ink-text); }

.refs { list-style: none; padding: 0; margin: 1.2rem 0 0; counter-reset: ref; }
.refs li {
    counter-increment: ref; font-size: 0.85rem; line-height: 1.6;
    color: var(--soft-muted); padding: 0.75rem 0; border-bottom: 1px solid var(--hairline);
}
.refs li::before { content: "[" counter(ref) "]"; color: var(--accent-dark); font-weight: 700; margin-right: 0.6rem; }
.refs a { color: var(--accent-dark); }

.article-foot {
    margin-top: 2.6rem; padding: 1.3rem 1.45rem;
    border: 1px solid var(--hairline); border-radius: 16px; background: #FFFFFF;
}
.article-foot p { margin: 0 0 0.7rem; font-size: 0.92rem; color: var(--soft-muted); }
.article-foot a.btn-inline {
    display: inline-block; background: var(--accent); color: #FFFFFF;
    font-size: 0.85rem; font-weight: 600; padding: 0.6rem 1.1rem; border-radius: 999px; text-decoration: none;
}
.article-disclaimer { font-size: 0.78rem; color: var(--soft-muted); margin-top: 2rem; }

@media (max-width: 640px) {
    .article { padding: 6rem 1.25rem 2.5rem; }
    .article-table { font-size: 0.82rem; }
    .article-table th, .article-table td { padding: 0.55rem 0.45rem; }
    .article-table td:first-child { white-space: normal; }
}

/* clickable guide cards + article badges */
a.guide-card { display: block; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
a.guide-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17, 17, 17, 0.07); border-color: #DCDCD6; }
a.guide-card:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.guide-live { background: rgba(111, 155, 94, 0.16); color: var(--accent-dark); }
.guide-card .guide-cta { display: inline-block; margin-top: 1rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent-dark); }
.guide-card .guide-meta { display: block; margin-top: 0.6rem; font-size: 0.74rem; color: var(--soft-muted); }

/* article read counter */
#article-reads { color: var(--accent-dark); font-weight: 600; }
#article-reads[hidden] { display: none; }

/* ---- "On this page" table of contents (articles) ----
   Phone/tablet: a thin vertical rail on the right edge. One mark per
   section, the current one wider; tapping marks jumps to the section, and
   the current section's name slides out while you scroll.
   >=1300px: the same list becomes a labelled rail in the left gutter. */
.article-toc {
    position: fixed;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    max-height: 78vh;
    margin: 0;
    padding: 0.3rem 0.2rem;
    overflow-y: auto;
    scrollbar-width: none;
    transition: opacity 0.25s ease;
}
.article-toc::-webkit-scrollbar { display: none; }
.article-toc[hidden] { display: none; }
.article-toc.is-parked { opacity: 0; pointer-events: none; }

.toc-label { display: none; }

.toc-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.toc-list li { margin: 0; }
.toc-list a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-height: 30px;
    padding: 0 0.15rem;
    color: var(--soft-muted);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.toc-list a::after {
    content: "";
    flex: 0 0 auto;
    width: 13px;
    height: 3px;
    border-radius: 2px;
    background: rgba(62, 74, 59, 0.22);
    transition: width 0.18s ease, background 0.18s ease;
}
.toc-list a.is-active::after { width: 21px; background: var(--accent-dark); }

.toc-text {
    display: none;
    max-width: 56vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.2;
    color: var(--ink-text);
    background: rgba(246, 243, 236, 0.97);
    border: 1px solid var(--hairline);
    border-radius: 0.45rem;
    box-shadow: 0 4px 14px rgba(30, 30, 30, 0.08);
}
.article-toc.is-peeking .toc-list a.is-active .toc-text { display: block; }

.article-body h2 { scroll-margin-top: 6.5rem; }

@media (min-width: 1300px) {
    .article-toc {
        left: calc(50% - 604px);
        right: auto;
        top: 8.5rem;
        transform: none;
        width: 190px;
        max-height: calc(100vh - 12rem);
        padding: 0.85rem 0.5rem;
        border-radius: 0.9rem;
        background: transparent;
    }
    .toc-label {
        display: block;
        margin: 0;
        padding: 0 0 0.6rem 0.55rem;
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        font-weight: 600;
        color: var(--soft-muted);
    }
    .toc-list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
    .toc-list a {
        display: block;
        min-height: 0;
        padding: 0.38rem 0.55rem;
        border-left: 2px solid transparent;
        border-radius: 0.45rem;
        font-size: 0.82rem;
        line-height: 1.35;
    }
    .toc-list a::after { display: none; }
    .toc-text {
        display: block;
        max-width: none;
        padding: 0;
        font-size: inherit;
        line-height: inherit;
        white-space: normal;
        overflow: visible;
        color: inherit;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .toc-list a:hover { color: var(--ink-text); background: rgba(62, 74, 59, 0.05); }
    .toc-list a.is-active {
        color: var(--accent-dark);
        background: rgba(88, 126, 74, 0.12);
        border-left-color: var(--accent-dark);
    }
}

/* ---- related reading ---- */
.article-next {
    margin-top: 2.8rem;
    padding-top: 1.7rem;
    border-top: 1px solid var(--hairline);
}
.next-label {
    margin: 0;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--soft-muted);
}
.next-grid { display: grid; gap: 0.7rem; margin-top: 0.95rem; }
@media (min-width: 620px) { .next-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.next-card {
    display: block;
    padding: 1rem 1.05rem;
    border: 1px solid var(--hairline);
    border-radius: 0.9rem;
    background: var(--card);
    color: var(--ink-text);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.next-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 26px rgba(30, 30, 30, 0.08);
}
.next-kicker {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-dark);
}
.next-card h3 { font-size: 0.95rem; line-height: 1.35; margin: 0.35rem 0 0.3rem; color: var(--ink-text); }
.next-card p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--soft-muted); }

/* ---- "in the pipeline" list (knowledge hub) ---- */
.pipeline {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(62, 74, 59, 0.18);
}
.pipeline-label {
    margin: 0 0 0.55rem;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--soft-muted);
}
.pipeline ul { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.pipeline li {
    margin: 0;
    padding: 0.38rem 0.7rem;
    border: 1px solid rgba(62, 74, 59, 0.14);
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--soft-muted);
}

@media print {
    .article-toc, .article-next { display: none !important; }
}

.knowledge-section-note {
    max-width: 58em;
    margin: 0.2rem 0 0;
    color: var(--soft-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}
