/* =============================================================================
   WellTopo Design System — Marketing layer
   v0.1.0 — 2026-06-03
   ----------------------------------------------------------------------------
   Components for the public marketing site (home, FAQ, legal). Depends on
   welltopo.css tokens — link AFTER it:

     <link rel="stylesheet" href="https://cdn.welltopo.com/fonts/barlow/barlow.css">
     <link rel="stylesheet" href="https://cdn.welltopo.com/ds/v0.2.0/welltopo.css">
     <link rel="stylesheet" href="https://cdn.welltopo.com/ds/v0.2.0/marketing.css">

   The app/dashboard surfaces do NOT load this file (keeps their payload lean).
   Header styling mirrors the welltopo.com Softr chrome: translucent white nav,
   Barlow small-caps links, topo-vector backdrop.
   ============================================================================= */


/* ----- Page shell ----- */
.wt-site {
    min-height: 100vh;
    background: var(--wt-color-card);
    color: var(--wt-color-text);
}

.wt-shell {
    width: 100%;
    max-width: var(--wt-container-xl);
    margin-inline: auto;
    padding-inline: var(--wt-space-16);
}
.wt-shell-narrow {
    width: 80%;
    max-width: var(--wt-container-xl);
    margin-inline: auto;
    padding-inline: var(--wt-space-16);
}

@media (max-width: 768px) {
    .wt-shell { padding-inline: var(--wt-space-4); }
}


/* ----- Site header (matches the live welltopo.com / Softr topbar) -----
   Live reference values: 80px tall, translucent white, navy small-caps nav at
   1.4rem/600, 43px logo, 44px buttons (10x20, radius 8). Brand blue #0054a6 is
   the welltopo.com logo/CTA blue. */
.wt-site-header {
    --wt-header-h: 80px;
    --wt-ink: #152237;        /* welltopo.com nav/text navy */
    position: sticky;
    top: 0;
    z-index: var(--wt-z-sticky);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid #f2f2f2;   /* full-width, matches live welltopo.com */
}

.wt-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--wt-header-h);
    gap: var(--wt-space-6);
}

.wt-site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: -10px;
}

.wt-site-logo img {
    height: 43.5px;            /* matches live 36px logo at 1.2x scale */
    width: auto;
}

.wt-site-nav {
    display: flex;
    align-items: center;
    gap: var(--wt-space-2);
}

.wt-site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: var(--wt-header-h);   /* full header height so active underline sits at its base */
    padding: 0 var(--wt-space-4); /* 16px horizontal; vertical centering via flex */
    font-variant: all-small-caps;
    font-size: 1.4rem;            /* 22.4px — matches live */
    font-weight: var(--wt-weight-semibold);
    letter-spacing: 0.05rem;
    color: var(--wt-ink);
    text-decoration: none;
    border-radius: var(--wt-radius-sm); /* 6px */
    transition: var(--wt-transition-color);
    white-space: nowrap;
}

.wt-site-nav__link:hover {
    color: var(--wt-color-primary);
}

/* Active-page underline: 2px navy bar at the bottom of the header, inset to text */
.wt-site-nav__link[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: var(--wt-space-4);
    right: var(--wt-space-4);
    bottom: 0;
    height: 2px;
    background: var(--wt-ink);
}

.wt-site-nav__sep {
    width: 1px;
    height: 22px;
    background: var(--wt-color-border);
    margin-inline: var(--wt-space-2);
}

/* Header CTA buttons (Sign in / Sign Up) — match live 44px buttons */
.wt-site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    font-family: var(--wt-font-body);
    font-size: 16px;
    font-weight: var(--wt-weight-semibold);
    letter-spacing: 0.05rem;
    border-radius: var(--wt-radius-md); /* 8px */
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--wt-transition-default);
}

.wt-site-cta--signin {
    background: var(--wt-white);
    color: var(--wt-ink);
    border-color: #e5e5e5;
}
.wt-site-cta--signin:hover { background: #f2f2f2; }

.wt-site-cta--signup {
    background: var(--wt-color-primary);   /* brand blue #0054a6 */
    color: var(--wt-white);
}
.wt-site-cta--signup:hover {
    background: var(--wt-color-primary-hover);
    transform: translateY(-1px);
    color: var(--wt-color-text-on-cta);
}

/* Mobile nav toggle */
.wt-nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--wt-ink);
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.wt-site-nav--mobile {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--wt-space-1);
    padding: var(--wt-space-3) 0 var(--wt-space-4);
    border-top: 1px solid var(--wt-color-border);
}

/* Reset full-height nav links + buttons for the stacked mobile menu */
.wt-site-nav--mobile .wt-site-nav__link {
    height: auto;
    padding: var(--wt-space-3) var(--wt-space-4);
}
.wt-site-nav--mobile .wt-site-nav__link[aria-current="page"]::after { display: none; }
.wt-site-nav--mobile .wt-site-cta {
    width: 100%;
    margin-top: var(--wt-space-2);
}

.wt-site-header.is-open .wt-site-nav--mobile { display: flex; }

@media (max-width: 880px) {
    .wt-site-nav { display: none; }
    .wt-nav-toggle { display: inline-flex; }
}


/* ----- Marketing hero (full-bleed image) ----- */
.wt-hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50vh;
    padding-block: var(--wt-space-20);
    overflow: hidden;
    color: var(--wt-white);
    background-color: var(--wt-navy-900);
}

/* Hero photo as a real <img> behind the text (better LCP than a CSS background-image) */
.wt-hero-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.wt-hero-banner__content {
    position: relative;
    z-index: 1;
}

.wt-hero-banner__title {
    font-size: clamp(38px, 6vw, 68px); /* matches About hero H1 (.ah-h1) */
    font-weight: var(--wt-weight-extrabold);
    line-height: 1.08;
    letter-spacing: var(--wt-tracking-tight);
    margin-bottom: var(--wt-space-5);
}

.wt-hero-banner__subtitle {
    font-size: clamp(16px, 2vw, 24px);
    line-height: var(--wt-leading-relaxed);
    font-weight: var(--wt-weight-medium);
    opacity: 0.92;
    margin-bottom: var(--wt-space-8);
    width: clamp(317px, 45vw, 680px);
    text-shadow: #000000 3px 1px 3px
}

/* Hero title scales fluidly via clamp() above — matches the About hero at every width. */


/* ----- Section scaffold ----- */
.wt-section {
    padding-block: var(--wt-space-20);
}

.wt-section--tint   { background: var(--wt-color-surface); }
.wt-section--orange   { background: var(--wt-orange-50); }
.wt-section--blue   { background: var(--wt-blue-100); }
.wt-section--rose   { background: var(--wt-red-50); }
.wt-section--ltpurp   { background: var(--wt-magenta-50); }
.wt-section--brand  { background: var(--wt-gradient-brand); color: var(--wt-white); }

.wt-section__head, .wt-section__body {
    text-align: center;
    max-width: 820px;
    margin-inline: auto;
    margin-bottom: var(--wt-space-12);
}

.wt-section__title {
    font-size: var(--wt-text-4xl);
    font-weight: var(--wt-weight-extrabold);
    line-height: var(--wt-leading-tight);
    margin-bottom: var(--wt-space-4);
}

.wt-section__lead {
    font-size: var(--wt-text-xl);
    color: var(--wt-color-text-muted);
    line-height: var(--wt-leading-relaxed);
}

.wt-section--brand .wt-section__lead { color: rgba(255, 255, 255, 0.82); }


/* ----- Feature / problem card grid ----- */
.wt-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wt-space-6);
}

.wt-feature-card {
    background: var(--wt-color-card);
    border-radius: var(--wt-radius-2xl);
    border-left: 4px solid var(--wt-color-border);
    padding: var(--wt-space-6);
    box-shadow: var(--wt-shadow-sm);
    transition: var(--wt-transition-transform);
}

.wt-feature-card:hover {
    box-shadow: var(--wt-shadow-lg);
    transform: translateY(-3px);
}

.wt-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--wt-radius-full);
    font-size: 22px;
    margin-bottom: var(--wt-space-4);
    background: var(--wt-color-info-bg);
    color: var(--wt-color-info);
}

.wt-feature-card__title {
    font-size: var(--wt-text-xl);
    font-weight: var(--wt-weight-bold);
    margin-bottom: var(--wt-space-3);
}

.wt-feature-card__body {
    color: var(--wt-color-text-muted);
    line-height: var(--wt-leading-relaxed);
}

/* Accent variants (border + icon tint) */
.wt-feature-card--danger   { border-left-color: var(--wt-color-danger); }
.wt-feature-card--danger   .wt-feature-card__icon { background: var(--wt-color-danger-bg); color: var(--wt-color-danger); }
.wt-feature-card--warning  { border-left-color: var(--wt-color-warning); }
.wt-feature-card--warning  .wt-feature-card__icon { background: var(--wt-color-warning-bg); color: var(--wt-color-warning); }
.wt-feature-card--amber    { border-left-color: #eab308; }
.wt-feature-card--amber    .wt-feature-card__icon { background: #fef9c3; color: #a16207; }
.wt-feature-card--accent   { border-left-color: var(--wt-color-accent); }
.wt-feature-card--accent   .wt-feature-card__icon { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }
.wt-feature-card--info     { border-left-color: var(--wt-color-primary); }
.wt-feature-card--info     .wt-feature-card__icon { background: var(--wt-color-info-bg); color: var(--wt-color-primary); }
.wt-feature-card--success  { border-left-color: var(--wt-color-success); }
.wt-feature-card--success  .wt-feature-card__icon { background: var(--wt-color-success-bg); color: var(--wt-color-success); }

@media (max-width: 980px) { .wt-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wt-feature-grid { grid-template-columns: 1fr; } }


/* ----- Split (image + bullet list) ----- */
.wt-spacer-left img{
    width:clamp(5px, 5vw, 150px);
}
.wt-spacer-left {
    float:left;
}
.wt-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wt-space-16);
    align-items: center;
}

.wt-split__media {

}
.wt-split__media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 1px solid var(--wt-gray-200);
    border-radius: var(--wt-radius-xl);
    box-shadow: var(--wt-shadow-lg);
}

.wt-bullet {
    display: flex;
    gap: var(--wt-space-4);
    align-items: flex-start;
}

.wt-bullet + .wt-bullet { margin-top: var(--wt-space-7); }

.wt-bullet__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--wt-radius-lg);
    font-size: 20px;
    flex-shrink: 0;
    background: var(--wt-color-info-bg);
    color: var(--wt-color-primary);
}

.wt-bullet__icon--success { background: var(--wt-color-success-bg); color: var(--wt-color-success); }
.wt-bullet__icon--accent  { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }
.wt-bullet__icon--health  { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }
.wt-bullet__icon--costs  { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }
.wt-bullet__icon--environment  { background: var(--wt-color-accent-soft); color: var(--wt-color-accent-strong); }

.wt-bullet__title {
    font-size: var(--wt-text-xl);
    font-weight: var(--wt-weight-bold);
    margin-bottom: var(--wt-space-2);
}

.wt-bullet__body {
    color: var(--wt-color-text-muted);
    line-height: var(--wt-leading-relaxed);
}

@media (max-width: 880px) {
    .wt-split { grid-template-columns: 1fr; gap: var(--wt-space-8); }
    .wt-split__media { order: -1; }
}


/* ----- Dashboard preview ----- */
.wt-preview {
    max-width: 980px;
    margin: 0 auto var(--wt-space-10);
}

.wt-preview__bg {
    width: 100%;
    border-radius: var(--wt-radius-3xl);
}
.wt-preview__img {
    width: 100%;
}

/* Dashboard preview — animated screen layer */
.wt-preview__stage {
    position: relative;
    display: block;
    line-height: 0;
}

/* Clipping window — positioned and sized by wt-home-preview.js */
.wt-preview__screen {
    position: absolute;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    isolation: isolate;
}

/* Top vignette — bezel shadow depth */
.wt-preview__screen::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: linear-gradient(to bottom, rgba(8, 16, 36, 0.15), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Bottom vignette — suggests content continues beyond the frame */
.wt-preview__screen::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 20px;
    background: linear-gradient(to top, rgba(8, 16, 36, 0.25), transparent);
    z-index: 2;
    pointer-events: none;
}

.wt-preview__fg {
    width: 100%;
    display: block;
    border: none;
    border-radius: 0;
    will-change: transform;
    cursor: grab;
}

.wt-shadow {
    box-shadow: var(--wt-shadow-xl);    
}


/* ----- Stat band ----- */
.wt-stat-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wt-space-6);
    text-align: center;
}

.wt-stat-card {
    padding: var(--wt-space-8);
    border-radius: var(--wt-radius-2xl);
    background: var(--wt-color-surface);
}

.wt-stat-card--blue  { background: var(--wt-blue-100); }
.wt-stat-card--green { background: var(--wt-green-100); }
.wt-stat-card--red   { background: var(--wt-red-100); }

.wt-stat-card__num {
    font-size: var(--wt-text-5xl);
    font-weight: var(--wt-weight-extrabold);
    line-height: 1;
    margin-bottom: var(--wt-space-2);
}

.wt-stat-card--blue  .wt-stat-card__num { color: var(--wt-color-primary); }
.wt-stat-card--green .wt-stat-card__num { color: var(--wt-color-success); }
.wt-stat-card--red   .wt-stat-card__num { color: var(--wt-color-danger); }

.wt-stat-card__label {
    font-size: var(--wt-text-lg);
    font-weight: var(--wt-weight-semibold);
    color: var(--wt-color-text-mid);
}

@media (max-width: 720px) { .wt-stat-band { grid-template-columns: 1fr; } }


/* ----- CTA band ----- */
.wt-cta-band {
    text-align: center;
    padding-block: var(--wt-space-20);
    background: var(--wt-color-primary);
    color: var(--wt-white);
}

.wt-cta-band__title {
    font-size: var(--wt-text-4xl);
    font-weight: var(--wt-weight-extrabold);
    margin-bottom: var(--wt-space-4);
}

.wt-cta-band__lead {
    font-size: var(--wt-text-xl);
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto var(--wt-space-8);
    line-height: var(--wt-leading-relaxed);
}

.wt-cta-band__actions {
    display: flex;
    gap: var(--wt-space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.wt-cta-band .wt-btn--on-primary {
    background: var(--wt-white);
    color: var(--wt-color-primary);
}
.wt-cta-band .wt-btn--on-primary:hover { background: var(--wt-color-surface); }

.wt-cta-band .wt-btn--outline-light {
    background: transparent;
    color: var(--wt-white);
    border-color: rgba(255, 255, 255, 0.7);
}
.wt-cta-band .wt-btn--outline-light:hover {
    background: var(--wt-white);
    color: var(--wt-color-primary);
}

.wt-cta-band__note {
    font-size: var(--wt-text-base);
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--wt-space-4);
}


/* ----- Footer ----- */
.wt-site-footer {
    background: var(--wt-navy-900);
    color: var(--wt-white);
    padding-block: var(--wt-space-16) var(--wt-space-8);
}

.wt-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 300px 1fr;
    gap: var(--wt-space-8);
}

.wt-site-footer__logo {
    height: 30px;
    width: auto;
    margin-bottom: var(--wt-space-4);
    /* white-out the multicolor logo on the dark footer 
    filter: brightness(0) invert(1);*/
}

.wt-site-footer__about {
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--wt-leading-relaxed);
    max-width: 380px;
    margin-bottom: var(--wt-space-6);
}

.wt-social {
    display: flex;
    gap: var(--wt-space-3);
}

.wt-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--wt-radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--wt-white);
    font-size: 18px;
    transition: var(--wt-transition-color);
}

.wt-social a:hover { background: var(--wt-color-primary); color: var(--wt-white); }

.wt-footer-col h4 {
    font-size: var(--wt-text-lg);
    font-weight: var(--wt-weight-semibold);
    margin-bottom: var(--wt-space-4);
}

.wt-footer-col ul { list-style: none; }

.wt-footer-col li + li { margin-top: var(--wt-space-3); }

.wt-footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--wt-transition-color);
}

.wt-footer-col a:hover { color: var(--wt-color-accent-soft); }

.wt-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--wt-space-4);
    margin-top: var(--wt-space-12);
    padding-top: var(--wt-space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wt-footer-bottom__legal {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--wt-text-base);
}

.wt-footer-bottom__links {
    display: flex;
    gap: var(--wt-space-6);
}

.wt-footer-bottom__links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--wt-text-base);
    text-decoration: none;
}

.wt-footer-bottom__links a:hover { color: var(--wt-color-accent-soft); }

@media (max-width: 880px) {
    .wt-footer-grid { grid-template-columns: 1fr 1fr; }
    .wt-site-footer__about-col { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .wt-footer-grid { grid-template-columns: 1fr; }
}


/* ----- Generic content (FAQ / legal) ----- */
.wt-content {
    max-width: var(--wt-container-md);
    margin-inline: auto;
    padding-block: var(--wt-space-12);
}

/* Anchor jumps must clear the sticky site header */
.wt-content [id] { scroll-margin-top: var(--wt-space-24); }

.wt-content h1 {
    font-size: var(--wt-text-4xl);
    margin-bottom: var(--wt-space-4);
}

.wt-content > p.wt-content__lead {
    font-size: var(--wt-text-lg);
    color: var(--wt-color-text-muted);
    margin-bottom: var(--wt-space-10);
}

.wt-faq-item {
    border-bottom: 1px solid var(--wt-color-border);
    padding-block: var(--wt-space-5);
}

.wt-faq-item h3 {
    font-size: var(--wt-text-xl);
    margin-bottom: var(--wt-space-2);
}

.wt-faq-item p {
    color: var(--wt-color-text-mid);
    line-height: var(--wt-leading-relaxed);
}

.wt-legal h2 {
    font-size: var(--wt-text-2xl);
    margin-top: var(--wt-space-8);
    margin-bottom: var(--wt-space-3);
}

.wt-legal h3 {
    font-size: var(--wt-text-lg);
    margin-top: var(--wt-space-5);
    margin-bottom: var(--wt-space-2);
}

.wt-legal p,
.wt-legal li {
    color: var(--wt-color-text-mid);
    line-height: var(--wt-leading-relaxed);
    margin-bottom: var(--wt-space-3);
}

.wt-legal ul { padding-left: var(--wt-space-6); }

.wt-legal ol { padding-left: var(--wt-space-6); }

.wt-legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--wt-text-base);
    margin-block: var(--wt-space-5);
}

.wt-legal th,
.wt-legal td {
    border: 1px solid var(--wt-color-border);
    padding: var(--wt-space-2) var(--wt-space-3);
    text-align: left;
    vertical-align: top;
    color: var(--wt-color-text-mid);
    line-height: var(--wt-leading-relaxed);
}

.wt-legal th { background: var(--wt-color-surface); }

@media (max-width: 560px) {
    .wt-legal table {
        display: block;
        overflow-x: auto;
    }
}

.wt-faq-section { margin-top: var(--wt-space-10); }

.wt-faq-section .wt-section__title {
    font-size: var(--wt-text-2xl);
    margin-bottom: var(--wt-space-2);
}

.wt-content__cta {
    margin-top: var(--wt-space-12);
    text-align: center;
}


/* ----- Long-form guides / articles (template: article) ----- */
.wt-article {
    max-width: var(--wt-container-lg, 60rem);
}

.wt-article > h1 {
    font-size: var(--wt-text-4xl);
    line-height: var(--wt-leading-tight);
    margin-bottom: var(--wt-space-3);
}

.wt-article__meta {
    color: var(--wt-color-text-muted);
    font-size: var(--wt-text-sm);
    margin-bottom: var(--wt-space-6);
}

.wt-article__hero {
    margin: 0 0 var(--wt-space-10);
}

.wt-article__hero img {
    width: 100%;
    height: auto;
    border-radius: var(--wt-radius-xl);
    box-shadow: var(--wt-shadow-sm);
}

/* Section rhythm */
.wt-article section { margin-top: var(--wt-space-10); }

.wt-article h2 {
    font-size: var(--wt-text-2xl);
    line-height: var(--wt-leading-tight);
    margin-top: var(--wt-space-8);
    margin-bottom: var(--wt-space-3);
    padding-bottom: var(--wt-space-2);
    border-bottom: 1px solid var(--wt-color-border);
}

.wt-article h3 {
    font-size: var(--wt-text-lg);
    margin-top: var(--wt-space-6);
    margin-bottom: var(--wt-space-2);
}

.wt-article p,
.wt-article li {
    color: var(--wt-color-text-mid);
    line-height: var(--wt-leading-relaxed);
    margin-bottom: var(--wt-space-3);
}

.wt-article ul,
.wt-article ol { padding-left: var(--wt-space-6); margin-bottom: var(--wt-space-4); }

.wt-article a { color: var(--wt-color-primary); }

/* Inline citation markers: WellTopo-blue, lifted, non-selectable number */
.wt-article sup { color: var(--wt-color-primary); font-weight: 600; }
.wt-article sup a { text-decoration: none; }

/* Highlight + pull-quote helpers carried over from the source content */
.wt-article .highlight {
    background: var(--wt-color-accent-soft, var(--wt-orange-50));
    padding: 0 .15em;
    border-radius: var(--wt-radius-sm);
}

.wt-article .pull-quote {
    border-left: 4px solid var(--wt-color-primary);
    margin: var(--wt-space-6) 0;
    padding: var(--wt-space-2) 0 var(--wt-space-2) var(--wt-space-5);
    font-size: var(--wt-text-lg);
    color: var(--wt-color-text);
    font-style: italic;
}

.wt-article .section-description {
    color: var(--wt-color-text-muted);
    font-size: var(--wt-text-lg);
}

/* Figures: charts + diagrams. Asides float beside the prose on wide screens. */
.wt-article figure { margin: var(--wt-space-6) 0; }

.wt-article figure img,
.wt-article figure canvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--wt-radius-lg);
}

.wt-article figcaption {
    margin-top: var(--wt-space-2);
    font-size: var(--wt-text-sm);
    color: var(--wt-color-text-muted);
    text-align: center;
}

.wt-article aside {
    margin: var(--wt-space-2) 0 var(--wt-space-4);
}

@media (min-width: 880px) {
    .wt-article aside.right,
    .wt-article aside.left {
        width: min(380px, 42%);
        margin-block: var(--wt-space-2);
    }
    .wt-article aside.right { float: right; margin-left: var(--wt-space-7); }
    .wt-article aside.left  { float: left;  margin-right: var(--wt-space-7); }
}

.wt-article section::after { content: ""; display: block; clear: both; }

/* Chart canvases need a sized box for Chart.js responsive sizing */
.wt-article figure canvas { width: 100% !important; }

/* Tables */
.wt-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--wt-text-base);
    margin-block: var(--wt-space-5);
}

.wt-article th,
.wt-article td {
    border: 1px solid var(--wt-color-border);
    padding: var(--wt-space-2) var(--wt-space-3);
    text-align: left;
    vertical-align: top;
    color: var(--wt-color-text-mid);
    line-height: var(--wt-leading-relaxed);
}

.wt-article th { background: var(--wt-color-surface); }

@media (max-width: 560px) {
    .wt-article table { display: block; overflow-x: auto; }
}

/* Sources / references appended from window.vars.sources */
.wt-article__sources {
    margin-top: var(--wt-space-12);
    padding-top: var(--wt-space-6);
    border-top: 2px solid var(--wt-color-border);
}

.wt-article__sources ol { padding-left: var(--wt-space-5); }

.wt-article__sources li {
    font-size: var(--wt-text-sm);
    color: var(--wt-color-text-muted);
    margin-bottom: var(--wt-space-2);
    word-break: break-word;
}

.wt-article__sources li[id] { scroll-margin-top: var(--wt-space-24); }


/* ----- Guides hub (guides/index.html) ----- */
.wt-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--wt-space-6);
    margin-top: var(--wt-space-8);
}

.wt-guide-card {
    display: flex;
    flex-direction: column;
    background: var(--wt-color-card, #fff);
    border: 1px solid var(--wt-color-border);
    border-radius: var(--wt-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--wt-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}

.wt-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wt-shadow-lg);
}

.wt-guide-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--wt-color-surface);
}

.wt-guide-card__title {
    font-family: var(--wt-font-heading, inherit);
    font-weight: 700;
    font-size: var(--wt-text-lg);
    color: var(--wt-color-text);
    margin: var(--wt-space-4) var(--wt-space-4) 0;
}

.wt-guide-card__desc {
    color: var(--wt-color-text-mid);
    font-size: var(--wt-text-sm);
    line-height: var(--wt-leading-relaxed);
    margin: var(--wt-space-2) var(--wt-space-4) 0;
    flex: 1 1 auto;
}

.wt-guide-card__cta {
    color: var(--wt-color-primary);
    font-weight: 600;
    font-size: var(--wt-text-sm);
    margin: var(--wt-space-3) var(--wt-space-4) var(--wt-space-4);
}
