/* ==========================================================================
   West Bridge Markets — Public Site Design System
   Scope: public-facing pages only (layouts.base + home/*).
   This file is deliberately NOT referenced by layouts.dasht / layouts.app,
   so authenticated dashboard styling is unaffected.
   ========================================================================== */

:root {
    --wb-bg: #070b14;
    --wb-bg-2: #0b1120;
    --wb-bg-3: #0f172a;
    --wb-surface: #111a2e;
    --wb-surface-2: #16203a;
    --wb-line: #1e2b47;
    --wb-line-soft: #17223c;

    --wb-text: #e8edf7;
    --wb-text-muted: #9aa8c2;
    --wb-text-dim: #71809b;

    --wb-blue: #3b82f6;
    --wb-blue-soft: #60a5fa;
    --wb-emerald: #10b981;
    --wb-emerald-soft: #34d399;
    --wb-amber: #f59e0b;
    --wb-rose: #f43f5e;

    --wb-radius: 14px;
    --wb-radius-lg: 20px;
    --wb-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
    --wb-shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .95);
    --wb-max: 1200px;
    --wb-header-h: 68px;
}

/* --------------------------------------------------------------- base reset */

html {
    scroll-behavior: smooth;
}

body.wb-body {
    background: var(--wb-bg);
    color: var(--wb-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevents decorative bleed elements from creating a horizontal scrollbar
       on small screens. */
    overflow-x: hidden;
}

body.wb-body ::selection {
    background: rgba(59, 130, 246, .35);
    color: #fff;
}

.wb-body a {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

.wb-body :focus-visible {
    outline: 2px solid var(--wb-blue-soft);
    outline-offset: 2px;
    border-radius: 4px;
}

.wb-container {
    width: 100%;
    max-width: var(--wb-max);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 640px) {
    .wb-container { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
    .wb-container { padding-inline: 2rem; }
}

/* ------------------------------------------------------------ typography */

.wb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wb-blue-soft);
    padding: .375rem .75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, .10);
    border: 1px solid rgba(59, 130, 246, .22);
}

.wb-eyebrow.is-emerald {
    color: var(--wb-emerald-soft);
    background: rgba(16, 185, 129, .10);
    border-color: rgba(16, 185, 129, .24);
}

.wb-h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 800;
    color: #fff;
}

.wb-h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.18;
    letter-spacing: -.02em;
    font-weight: 750;
    color: #fff;
}

.wb-h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}

.wb-lead {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.7;
    color: var(--wb-text-muted);
}

.wb-body-copy {
    color: var(--wb-text-muted);
    line-height: 1.75;
    font-size: .9375rem;
}

.wb-body-copy p + p { margin-top: 1rem; }

.wb-body-copy strong,
.wb-body-copy b {
    color: var(--wb-text);
    font-weight: 650;
}

.wb-grad-text {
    background: linear-gradient(100deg, #7dd3fc 0%, var(--wb-blue-soft) 35%, var(--wb-emerald-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wb-rule {
    width: 3.5rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wb-blue), var(--wb-emerald));
    margin-top: 1.25rem;
}

/* ---------------------------------------------------------------- sections */

.wb-section {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.wb-section-sm {
    padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.wb-bg-grid {
    background-color: var(--wb-bg-2);
    background-image:
        linear-gradient(rgba(148, 178, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 178, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}

.wb-bg-grid-dark {
    background-color: var(--wb-bg);
    background-image:
        linear-gradient(rgba(148, 178, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 178, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
}

.wb-section-head {
    max-width: 44rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.wb-section-head.is-centered {
    margin-inline: auto;
    text-align: center;
}

.wb-section-head.is-centered .wb-rule { margin-inline: auto; }

.wb-section-head .wb-lead { margin-top: .85rem; }

/* ------------------------------------------------------------------ cards */

.wb-card {
    position: relative;
    background: linear-gradient(180deg, var(--wb-surface) 0%, var(--wb-bg-3) 100%);
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-radius);
    padding: 1.5rem;
    box-shadow: var(--wb-shadow);
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.wb-card-lg {
    border-radius: var(--wb-radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.wb-card.is-interactive:hover,
.wb-card.is-interactive:focus-within {
    border-color: rgba(59, 130, 246, .55);
    transform: translateY(-3px);
    box-shadow: var(--wb-shadow-lg);
}

.wb-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}

.wb-card-text {
    color: var(--wb-text-muted);
    font-size: .9375rem;
    line-height: 1.7;
    margin-top: .5rem;
}

.wb-icon-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .25);
    color: var(--wb-blue-soft);
    font-size: 1.05rem;
    flex: none;
}

.wb-icon-badge.is-emerald {
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .25);
    color: var(--wb-emerald-soft);
}

.wb-icon-badge.is-amber {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .26);
    color: #fbbf24;
}

.wb-icon-badge.is-rose {
    background: rgba(244, 63, 94, .12);
    border-color: rgba(244, 63, 94, .26);
    color: #fb7185;
}

/* ----------------------------------------------------------------- buttons */

.wb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1;
    padding: .875rem 1.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.wb-btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6 55%, #0ea5e9);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(59, 130, 246, .85);
}

.wb-btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 14px 30px -12px rgba(59, 130, 246, .95);
}

.wb-btn-ghost {
    background: rgba(148, 178, 255, .05);
    border-color: var(--wb-line);
    color: var(--wb-text);
}

.wb-btn-ghost:hover {
    border-color: rgba(59, 130, 246, .6);
    background: rgba(59, 130, 246, .10);
    color: #fff;
}

.wb-btn-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--wb-blue-soft);
}

.wb-btn-link:hover { color: #bfdbfe; }

.wb-btn-sm {
    padding: .55rem 1rem;
    font-size: .8125rem;
}

/* ------------------------------------------------------------------- chips */

.wb-chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .625rem;
    border-radius: 999px;
    border: 1px solid var(--wb-line);
    background: rgba(148, 178, 255, .06);
    color: var(--wb-text-muted);
}

.wb-chip.is-blue {
    color: var(--wb-blue-soft);
    border-color: rgba(59, 130, 246, .3);
    background: rgba(59, 130, 246, .1);
}

.wb-chip.is-emerald {
    color: var(--wb-emerald-soft);
    border-color: rgba(16, 185, 129, .3);
    background: rgba(16, 185, 129, .1);
}

.wb-chip.is-amber {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, .3);
    background: rgba(245, 158, 11, .1);
}

.wb-dot {
    width: .4rem;
    height: .4rem;
    border-radius: 999px;
    background: currentColor;
    flex: none;
}

/* ------------------------------------------------------------------ header */

.wb-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(7, 11, 20, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--wb-line-soft);
}

.wb-header-bar {
    height: var(--wb-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wb-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    flex: none;
    max-width: 15rem;
}

/* `flex: none` stops the logo from being squeezed by the flexible brand text
   beside it. The `.wb-body` prefix raises specificity above the generic
   `.wb-body img` guard further down the file, which would otherwise expand a
   large logo image to its intrinsic size and collapse the text beside it. */
.wb-body .wb-brand img {
    height: 2.25rem;
    width: auto;
    max-width: 100%;
    flex: none;
    object-fit: contain;
}

.wb-brand .wb-brand-text {
    flex: 0 1 auto;
}

.wb-brand-text {
    font-weight: 750;
    font-size: 1rem;
    letter-spacing: -.015em;
    color: #fff;
    line-height: 1.15;
    /* Long, admin-configured site names must wrap rather than widen the page. */
    min-width: 0;
    overflow-wrap: anywhere;
}

.wb-brand-text small {
    display: block;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wb-text-dim);
}

.wb-nav {
    display: none;
    align-items: center;
    gap: .25rem;
}

@media (min-width: 1024px) {
    .wb-nav { display: flex; }
}

.wb-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .75rem;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--wb-text-muted);
}

.wb-nav-link:hover,
.wb-nav-link:focus-visible {
    color: #fff;
    background: rgba(148, 178, 255, .07);
}

.wb-nav-link.is-active {
    color: #fff;
}

.wb-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .125rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wb-blue), var(--wb-emerald));
}

.wb-nav-caret {
    font-size: .625rem;
    opacity: .7;
    transition: transform .18s ease;
}

.wb-nav-group.is-open .wb-nav-caret { transform: rotate(180deg); }

.wb-nav-menu {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 13rem;
    padding: .4rem;
    border-radius: 12px;
    background: #0d1526;
    border: 1px solid var(--wb-line);
    box-shadow: var(--wb-shadow-lg);
    z-index: 70;
}

.wb-nav-menu a {
    display: block;
    padding: .55rem .75rem;
    border-radius: 8px;
    font-size: .875rem;
    color: var(--wb-text-muted);
}

.wb-nav-menu a:hover {
    color: #fff;
    background: rgba(59, 130, 246, .12);
}

.wb-header-actions {
    display: none;
    align-items: center;
    gap: .75rem;
}

@media (min-width: 1024px) {
    .wb-header-actions { display: flex; }
}

.wb-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9px;
    border: 1px solid var(--wb-line);
    background: rgba(148, 178, 255, .05);
    color: var(--wb-text);
}

@media (min-width: 1024px) {
    .wb-burger { display: none; }
}

.wb-mobile-nav {
    border-top: 1px solid var(--wb-line-soft);
    background: #080d18;
    max-height: calc(100vh - var(--wb-header-h));
    overflow-y: auto;
}

.wb-mobile-link {
    display: block;
    padding: .75rem 0;
    font-size: .9375rem;
    color: var(--wb-text-muted);
    border-bottom: 1px solid var(--wb-line-soft);
}

.wb-mobile-link:last-child { border-bottom: 0; }

.wb-mobile-link:hover { color: #fff; }

.wb-mobile-sub {
    padding-left: .875rem;
    border-left: 1px solid var(--wb-line);
    margin-left: .125rem;
}

.wb-mobile-sub a {
    display: block;
    padding: .5rem 0;
    font-size: .875rem;
    color: var(--wb-text-dim);
}

.wb-mobile-sub a:hover { color: var(--wb-blue-soft); }

/* -------------------------------------------------------------------- hero */

.wb-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 480px at 78% -8%, rgba(59, 130, 246, .16), transparent 62%),
        radial-gradient(760px 420px at 8% 8%, rgba(16, 185, 129, .10), transparent 60%),
        linear-gradient(180deg, #070b14 0%, #0a1120 100%);
}

.wb-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 178, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 178, 255, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
    pointer-events: none;
}

.wb-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: clamp(2.5rem, 5vw, 3.5rem);
    padding-block: clamp(3rem, 7vw, 5rem);
    align-items: center;
}

@media (min-width: 1024px) {
    .wb-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 3rem;
    }
}

.wb-hero h1 { margin-top: 1.25rem; }

.wb-hero .wb-lead {
    margin-top: 1.25rem;
    max-width: 34rem;
}

.wb-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.wb-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.75rem;
}

.wb-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2rem;
    background: var(--wb-line-soft);
    border: 1px solid var(--wb-line-soft);
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .wb-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.wb-hero-stat {
    background: rgba(9, 14, 25, .85);
    padding: .9rem 1rem;
}

.wb-hero-stat dt {
    font-size: .625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wb-text-dim);
}

.wb-hero-stat dd {
    margin-top: .3rem;
    font-size: .9375rem;
    font-weight: 650;
    color: #fff;
}

/* ------------------------------------------------------------- chart shell */

.wb-panel {
    background: linear-gradient(180deg, rgba(17, 26, 46, .96), rgba(11, 17, 32, .96));
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-radius-lg);
    box-shadow: var(--wb-shadow-lg);
    overflow: hidden;
}

.wb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--wb-line-soft);
    background: rgba(8, 13, 24, .6);
}

.wb-panel-title {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .8125rem;
    font-weight: 650;
    color: #fff;
    letter-spacing: .01em;
}

.wb-panel-body { padding: 1.1rem; }

.wb-chart-frame {
    position: relative;
    width: 100%;
    background: #0b1120;
    border-radius: 12px;
    overflow: hidden;
}

.wb-chart-frame.is-sm { height: 220px; }
.wb-chart-frame.is-md { height: 300px; }
.wb-chart-frame.is-lg { height: 380px; }
.wb-chart-frame.is-xl { height: 460px; }

@media (max-width: 640px) {
    .wb-chart-frame.is-lg { height: 300px; }
    .wb-chart-frame.is-xl { height: 340px; }
    .wb-chart-frame.is-md { height: 260px; }
}

.wb-chart-frame iframe,
.wb-chart-frame > div {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.wb-attribution {
    font-size: .6875rem;
    color: var(--wb-text-dim);
    text-align: right;
    padding: .4rem .25rem 0;
}

.wb-attribution a {
    color: var(--wb-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wb-attribution a:hover { color: var(--wb-blue-soft); }

/* -------------------------------------------------------------- stat tiles */

.wb-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--wb-line-soft);
    border-top: 1px solid var(--wb-line-soft);
}

@media (min-width: 640px) {
    .wb-stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.wb-stat-tile {
    background: rgba(9, 14, 25, .9);
    padding: .8rem .9rem;
}

.wb-stat-tile dt {
    font-size: .625rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--wb-text-dim);
}

.wb-stat-tile dd {
    margin-top: .25rem;
    font-size: .875rem;
    font-weight: 650;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.wb-price {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #fff;
}

.wb-delta {
    font-size: .75rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.wb-delta.is-up { color: var(--wb-emerald-soft); }
.wb-delta.is-down { color: #fb7185; }
.wb-delta.is-flat { color: var(--wb-text-dim); }

/* ------------------------------------------------------------------ ticker */

.wb-ticker {
    border-block: 1px solid var(--wb-line-soft);
    background: #080d18;
    overflow: hidden;
}

.wb-ticker .tradingview-widget-container {
    margin: 0;
}

.wb-ticker-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    padding: .75rem 0;
    font-size: .8125rem;
    color: var(--wb-text-muted);
}

/* -------------------------------------------------------------- category grid */

.wb-cat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) { .wb-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wb-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.wb-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.4rem;
    border-radius: var(--wb-radius);
    border: 1px solid var(--wb-line);
    background: linear-gradient(180deg, var(--wb-surface), var(--wb-bg-3));
    overflow: hidden;
    transition: border-color .22s ease, transform .22s ease;
}

.wb-cat::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--wb-blue), var(--wb-emerald));
    opacity: .55;
    transition: opacity .22s ease;
}

.wb-cat:hover,
.wb-cat:focus-within {
    border-color: rgba(59, 130, 246, .5);
    transform: translateY(-3px);
}

.wb-cat:hover::before { opacity: 1; }

.wb-cat h3 { font-size: 1.0625rem; font-weight: 700; color: #fff; }

.wb-cat p {
    color: var(--wb-text-muted);
    font-size: .875rem;
    line-height: 1.65;
    flex: 1;
}

.wb-cat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

/* ----------------------------------------------------------------- insights */

.wb-insight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) { .wb-insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.wb-insight {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.4rem;
    border-radius: var(--wb-radius);
    border: 1px solid var(--wb-line);
    background: linear-gradient(180deg, var(--wb-surface), var(--wb-bg-3));
}

.wb-insight-kicker {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wb-blue-soft);
}

.wb-insight h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.wb-insight p {
    color: var(--wb-text-muted);
    font-size: .875rem;
    line-height: 1.7;
    flex: 1;
}

/* ---------------------------------------------------------------- learning */

.wb-learn-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) { .wb-learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wb-learn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.wb-learn {
    display: flex;
    gap: .9rem;
    padding: 1.25rem;
    border-radius: var(--wb-radius);
    border: 1px solid var(--wb-line);
    background: rgba(17, 26, 46, .55);
    transition: border-color .2s ease, background-color .2s ease;
}

.wb-learn:hover { border-color: rgba(16, 185, 129, .45); background: rgba(17, 26, 46, .8); }

.wb-learn h3 { font-size: .9375rem; font-weight: 700; color: #fff; }

.wb-learn p {
    margin-top: .35rem;
    color: var(--wb-text-muted);
    font-size: .8125rem;
    line-height: 1.65;
}

/* -------------------------------------------------------------- prose page */

.wb-prose {
    color: var(--wb-text-muted);
    line-height: 1.8;
    font-size: .9375rem;
}

.wb-prose h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 720;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: .75rem;
    letter-spacing: -.01em;
}

.wb-prose h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

.wb-prose p + p { margin-top: 1rem; }

.wb-prose ul,
.wb-prose ol {
    margin-top: .75rem;
    padding-left: 1.15rem;
}

.wb-prose li { margin-top: .4rem; }

.wb-prose ul { list-style: disc; }
.wb-prose ol { list-style: decimal; }

.wb-prose a {
    color: var(--wb-blue-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wb-prose a:hover { color: #bfdbfe; }

.wb-prose strong { color: var(--wb-text); font-weight: 650; }

.wb-prose blockquote {
    border-left: 3px solid var(--wb-blue);
    padding: .25rem 0 .25rem 1rem;
    color: var(--wb-text);
    font-style: italic;
}

/* ------------------------------------------------------------------- lists */

.wb-checklist { display: grid; gap: .85rem; }

.wb-checklist li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .9375rem;
    color: var(--wb-text-muted);
    line-height: 1.65;
}

.wb-checklist .wb-tick {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .15rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, .14);
    border: 1px solid rgba(16, 185, 129, .35);
    color: var(--wb-emerald-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .625rem;
}

/* ------------------------------------------------------------------ tables */

.wb-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-radius);
    -webkit-overflow-scrolling: touch;
}

.wb-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: .875rem;
}

.wb-table thead th {
    text-align: left;
    font-size: .6875rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--wb-text-dim);
    font-weight: 700;
    padding: .8rem 1rem;
    background: rgba(8, 13, 24, .7);
    border-bottom: 1px solid var(--wb-line);
    white-space: nowrap;
}

.wb-table tbody td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--wb-line-soft);
    color: var(--wb-text-muted);
    vertical-align: top;
}

.wb-table tbody tr:last-child td { border-bottom: 0; }

.wb-table tbody tr:hover td { background: rgba(59, 130, 246, .05); }

.wb-table td strong { color: #fff; font-weight: 650; }

/* ------------------------------------------------------------------ footer */

.wb-footer {
    background: #05080f;
    border-top: 1px solid var(--wb-line-soft);
    margin-top: auto;
}

.wb-footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    padding-block: 3rem;
}

@media (min-width: 640px) { .wb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wb-footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }

.wb-footer h4 {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.wb-footer-links { display: grid; gap: .6rem; }

.wb-footer-links a {
    font-size: .875rem;
    color: var(--wb-text-muted);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.wb-footer-links a:hover { color: #fff; }

.wb-footer-bottom {
    border-top: 1px solid var(--wb-line-soft);
    padding-block: 1.5rem;
    font-size: .75rem;
    color: var(--wb-text-dim);
    line-height: 1.7;
}

.wb-risk {
    font-size: .75rem;
    line-height: 1.75;
    color: var(--wb-text-dim);
}

/* -------------------------------------------------------------- utilities */

/* Decorative background SVGs must never widen the page on small screens.
   `preserveAspectRatio` keeps them proportional when clipped. */
.wb-body svg {
    max-width: 100%;
}

/* Generic image guard. Component rules below are scoped with `.wb-body`
   so they win over this one by specificity. */
.wb-body img {
    max-width: 100%;
    height: auto;
}

/* Footer logo: fixed box, image scaled inside it. */
.wb-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    width: 2.25rem;
    flex: none;
    overflow: hidden;
}

.wb-body .wb-footer-logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Decorative blur blobs that hang off the edge of a card are positioned
   outside their container; clip them so they cannot extend the document.
   `!important` is required because the Tailwind CDN injects its utility
   classes after this stylesheet. */
.wb-body .absolute.-bottom-8.-right-8,
.wb-body .absolute.-bottom-6.-right-6,
.wb-body .absolute.-top-8.-left-8,
.wb-body .absolute.-top-6.-left-6 {
    max-width: 45vw !important;
    max-height: 45vw !important;
}

.wb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wb-divider { height: 1px; background: var(--wb-line-soft); }

.wb-badge-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------------------------------------------------------- motion / print */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* The hidden state only applies once JS has booted, so content is always
   visible if the script fails to load. */
.wb-js .wb-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}

.wb-js .wb-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .wb-js .wb-reveal {
        opacity: 1;
        transform: none;
    }
}
