.public-market-snapshot-section {
    padding: 34px 0 18px;
    background:
        radial-gradient(circle at 15% 0, rgba(101, 215, 207, 0.08), transparent 30rem),
        var(--landing-bg);
}

.market-snapshot {
    --snapshot-panel: #111612;
    --snapshot-panel-soft: #171d18;
    --snapshot-border: rgba(230, 232, 218, 0.15);
    --snapshot-muted: #929a90;
    --snapshot-cyan: var(--landing-cyan);
    --snapshot-demand: #57cf96;
    --snapshot-supply: #ff7e6e;
    padding: 22px;
    border: 1px solid var(--snapshot-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0 0, rgba(101, 215, 207, 0.08), transparent 34rem),
        #0c100d;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.market-snapshot-heading,
.market-panel-heading,
.macro-tape-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.market-snapshot-heading {
    margin-bottom: 18px;
}

.market-snapshot-heading h2 {
    margin: 4px 0 0;
    color: var(--landing-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 400;
    letter-spacing: -0.035em;
}

.market-snapshot-kicker,
.market-panel-eyebrow {
    color: var(--snapshot-cyan);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.market-snapshot-subtitle,
.market-snapshot-freshness,
.market-panel-note,
.macro-tape-heading small,
.market-snapshot-disclosure {
    color: var(--snapshot-muted);
    font-size: 0.72rem;
}

.market-snapshot-subtitle {
    margin: 0;
}

.market-snapshot-freshness {
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: right;
}

.market-snapshot .badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid var(--snapshot-border);
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(146, 154, 144, 0.1);
    color: #c9cec7;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.market-snapshot .badge.text-bg-info {
    border-color: rgba(101, 215, 207, 0.35);
    background: rgba(101, 215, 207, 0.12);
    color: #9ce7e1;
}

.market-snapshot .badge.text-bg-warning {
    border-color: rgba(242, 184, 75, 0.35);
    background: rgba(242, 184, 75, 0.12);
    color: #f3ca79;
}

.market-snapshot-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 12px;
}

.market-context-panel {
    min-width: 0;
    min-height: 266px;
    padding: 16px;
    border: 1px solid var(--snapshot-border);
    border-radius: 15px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.025), transparent 55%), var(--snapshot-panel);
}

.market-panel-heading {
    align-items: flex-start;
}

.market-panel-heading h3 {
    margin: 3px 0 0;
    color: var(--landing-ink);
    font-size: 0.95rem;
}

.market-panel-price {
    color: var(--landing-ink);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.market-quality-label {
    color: var(--snapshot-muted);
    font-size: 0.66rem;
}

.market-quality-label.complete { color: #7ee2b8; }
.market-quality-label.partial { color: #f4c96b; }

.market-gauge {
    position: relative;
    width: min(100%, 270px);
    margin: 4px auto 0;
}

.market-gauge svg {
    display: block;
    width: 100%;
    overflow: visible;
}

.market-gauge-track,
.market-gauge-segment {
    fill: none;
    stroke-linecap: round;
}

.market-gauge-track { stroke: #29312b; stroke-width: 20; }
.market-gauge-segment { stroke-width: 14; }
.market-gauge-oversold { stroke: #65aef1; }
.market-gauge-balanced { stroke: #919a91; }
.market-gauge-extended { stroke: var(--landing-amber); }

.market-gauge-needle {
    stroke: #f5f4ed;
    stroke-width: 3;
    stroke-linecap: round;
    transform-box: view-box;
    transform-origin: 120px 110px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.market-gauge-hub {
    fill: #f5f4ed;
    stroke: #0c100d;
    stroke-width: 4;
}

.market-gauge-reading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -14px;
}

.market-gauge-reading span {
    color: var(--landing-ink);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.market-gauge-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 5px;
    color: var(--snapshot-muted);
    font-size: 0.59rem;
    text-align: center;
}

.market-gauge-panel .market-panel-note {
    margin-top: 9px;
    text-align: center;
}

.market-location-note {
    margin: 16px 0 12px;
    padding: 10px 11px;
    border-left: 3px solid var(--snapshot-cyan);
    border-radius: 7px;
    background: rgba(101, 215, 207, 0.07);
    color: #dce7dd;
    font-size: 0.76rem;
    font-weight: 700;
}

.market-level-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 11px;
}

.market-level-card {
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--snapshot-border);
    border-radius: 9px;
    background: var(--snapshot-panel-soft);
}

.market-level-card.support { border-top: 2px solid var(--snapshot-demand); }
.market-level-card.resistance { border-top: 2px solid var(--snapshot-supply); }
.market-level-card span,
.market-level-card strong,
.market-level-card small { display: block; }

.market-level-card span {
    min-height: 2em;
    color: #aeb7ad;
    font-size: 0.63rem;
    line-height: 1.2;
}

.market-level-card strong {
    margin: 5px 0 3px;
    overflow-wrap: anywhere;
    color: var(--landing-ink);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.market-level-card small {
    color: var(--snapshot-muted);
    font-size: 0.62rem;
}

.trend-breadth-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 16px 0 18px;
}

.trend-breadth-summary strong { color: var(--landing-ink); font-size: 0.87rem; }
.trend-breadth-summary span { color: #c4ccc3; font-size: 0.72rem; }
.trend-breadth-summary small { color: var(--snapshot-muted); font-size: 0.63rem; }

.zone-breadth-bar {
    display: flex;
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #28302a;
}

.zone-breadth-bar span.demand { background: var(--snapshot-demand); }
.zone-breadth-bar span.between { background: #475048; }
.zone-breadth-bar span.supply { background: var(--snapshot-supply); }

.zone-breadth-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 10px 0;
}

.zone-breadth-counts > span {
    color: var(--snapshot-muted);
    font-size: 0.62rem;
    white-space: nowrap;
}

.zone-breadth-counts strong { color: var(--landing-ink); font-variant-numeric: tabular-nums; }

.zone-breadth-counts i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
}

.zone-breadth-counts i.demand { background: var(--snapshot-demand); }
.zone-breadth-counts i.between { background: #586159; }
.zone-breadth-counts i.supply { background: var(--snapshot-supply); }

.zone-breadth-empty {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 82px;
    padding: 12px;
    border: 1px dashed rgba(230, 232, 218, 0.22);
    border-radius: 10px;
    color: var(--snapshot-muted);
}

.zone-breadth-empty i { color: var(--snapshot-cyan); font-size: 1.15rem; }
.zone-breadth-empty strong,
.zone-breadth-empty span { display: block; }
.zone-breadth-empty strong { color: #cbd2ca; font-size: 0.72rem; }
.zone-breadth-empty span { margin-top: 3px; font-size: 0.64rem; }

.macro-tape-heading {
    align-items: flex-end;
    margin: 17px 0 9px;
}

.macro-tape-heading strong {
    display: block;
    margin-top: 3px;
    color: var(--landing-ink);
    font-size: 0.82rem;
}

.macro-tape-heading strong[data-state="tightening"] { color: #ff9b90; }
.macro-tape-heading strong[data-state="easing"] { color: #78dcb2; }
.macro-tape-heading small { text-align: right; }

.macro-tape {
    display: grid;
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    gap: 7px;
}

.macro-tile {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 6px;
    min-height: 88px;
    padding: 9px 10px;
    border: 1px solid var(--snapshot-border);
    border-radius: 10px;
    background: var(--snapshot-panel);
}

.macro-tile:hover,
.macro-tile:focus-within {
    z-index: 20;
    border-color: rgba(101, 215, 207, 0.38);
}

.macro-tile-heading {
    display: flex;
    min-width: 0;
    grid-column: 1 / -1;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
}

.macro-tile-label { min-width: 0; }
.macro-tile-label span,
.macro-tile-label small { display: block; }
.macro-tile-label span { color: var(--landing-ink); font-size: 0.71rem; font-weight: 800; }

.macro-tile-label small {
    color: var(--snapshot-muted);
    font-size: 0.56rem;
    line-height: 1.25;
}

.macro-tile > strong {
    grid-column: 1;
    align-self: start;
    color: var(--landing-ink);
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
}

.macro-tile > strong.pressure { color: #ff8c82; }
.macro-tile > strong.support { color: #6bd5b0; }
.macro-tile > strong.context { color: #f4c96b; }
.macro-tile > strong.flat { color: var(--snapshot-muted); }

.macro-tile > em {
    grid-column: 2;
    align-self: center;
    font-size: 0.62rem;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.macro-tile > em.level { color: var(--snapshot-muted); }
.macro-tile > em.flat { color: var(--snapshot-muted); }
.macro-tile.unavailable { opacity: 0.58; }

.macro-help-trigger {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: -8px -9px 0 0;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--snapshot-muted);
    cursor: help;
}

.macro-help-trigger span {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 1px solid rgba(230, 232, 218, 0.28);
    border-radius: 50%;
    color: #cbd2ca;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.macro-help-trigger:hover span,
.macro-help-trigger:focus-visible span,
.macro-tile.help-open .macro-help-trigger span {
    border-color: rgba(101, 215, 207, 0.72);
    background: rgba(101, 215, 207, 0.12);
    color: #a9eee8;
}

.macro-help-popover {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: -1px;
    width: min(310px, calc(100vw - 32px));
    visibility: hidden;
    border: 1px solid rgba(230, 232, 218, 0.24);
    border-radius: 12px;
    padding: 13px 14px;
    background: #151b17;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.macro-tile:nth-child(n + 5) .macro-help-popover {
    right: -1px;
    left: auto;
}

.macro-tile:hover .macro-help-popover,
.macro-tile:focus-within .macro-help-popover,
.macro-tile.help-open .macro-help-popover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.macro-help-title {
    margin: 0 0 9px;
    color: var(--landing-ink);
    font-size: 0.72rem;
    font-weight: 800;
}

.macro-help-popover dl,
.macro-help-popover dd { margin: 0; }

.macro-help-popover dl { display: grid; gap: 9px; }

.macro-help-popover dt {
    margin-bottom: 2px;
    color: var(--snapshot-cyan);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.macro-help-popover dd {
    color: #c7cec6;
    font-size: 0.66rem;
    line-height: 1.45;
}

.macro-help-note {
    margin: 10px 0 0;
    border-top: 1px solid var(--snapshot-border);
    padding-top: 8px;
    color: var(--snapshot-muted);
    font-size: 0.59rem;
    line-height: 1.4;
}

.market-snapshot-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.market-snapshot-disclosure {
    margin: 0;
    line-height: 1.55;
}

.market-snapshot-footer-time {
    flex: 0 0 auto;
    color: var(--snapshot-muted);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .market-snapshot-primary-grid { grid-template-columns: 1fr 1fr; }
    .macro-tape { grid-template-columns: repeat(4, minmax(96px, 1fr)); }
    .macro-tile .macro-help-popover { right: auto; left: -1px; }
    .macro-tile:nth-child(4n + 3) .macro-help-popover,
    .macro-tile:nth-child(4n + 4) .macro-help-popover { right: -1px; left: auto; }
}

@media (max-width: 820px) {
    .public-market-snapshot-section { padding-top: 24px; }
    .market-snapshot-primary-grid { grid-template-columns: 1fr; }
    .market-context-panel { min-height: auto; }
    .macro-tape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .macro-tile .macro-help-popover { right: auto; left: -1px; }
    .macro-tile:nth-child(even) .macro-help-popover { right: -1px; left: auto; }
}

@media (max-width: 600px) {
    .macro-tile .macro-help-popover,
    .macro-tile:nth-child(even) .macro-help-popover,
    .macro-tile:nth-child(n + 5) .macro-help-popover {
        position: fixed;
        z-index: 220;
        top: 50%;
        right: 16px;
        bottom: auto;
        left: 16px;
        width: auto;
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
        transform: translateY(calc(-50% - 4px));
    }

    .macro-tile:hover .macro-help-popover,
    .macro-tile:focus-within .macro-help-popover,
    .macro-tile.help-open .macro-help-popover {
        transform: translateY(-50%);
    }

    .market-snapshot { padding: 15px; border-radius: 16px; }
    .market-snapshot-heading,
    .macro-tape-heading { align-items: flex-start; flex-direction: column; }
    .market-snapshot-freshness,
    .macro-tape-heading small { text-align: left; }
    .market-snapshot-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
    .market-snapshot-footer-time { white-space: normal; }
    .market-level-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .market-gauge-needle { transition: none; }
}
