@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=swap');

/* Palette adapted from katsumoku.com (WordPress "JIN" theme):
   navy #3b4675 (primary), gold #ffcd44 (highlight), teal #008db7 (links).
   Same source as /portfolio/ — kept verbatim so the two tools feel identical. */
:root {
    --bg: #f5f6f9;
    --panel: #ffffff;
    --text: #313131;
    --muted: #6b7280;
    --line: #e7e9f0;
    --accent: #3b4675;
    --accent-strong: #2e3860;
    --soft-accent: #eef0f7;
    --gold: #ffcd44;
    --link: #008db7;
    --positive: #0f9d8b;
    --negative: #d9333f;
    --neutral: #374151;
    --warning-bg: #fffdef;
    --warning-line: #ffe39a;
    --heading-font: "Quicksand", "ヒラギノ角ゴ ProN W3", Hiragino Sans, "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, "メイリオ", Meiryo, sans-serif;
    --body-font: "Quicksand", "ヒラギノ角ゴ ProN W3", Hiragino Sans, "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, "メイリオ", Meiryo, sans-serif;

    /* Phase color mapping — translated into the portfolio palette */
    --phase-up:    var(--positive);
    --phase-pull:  var(--link);
    --phase-neutr: var(--muted);
    --phase-over:  #d97706;        /* amber, harmonises with gold */
    --phase-down:  var(--negative);
    --phase-unk:   #94a3b8;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.55;
}

.page {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 320px);
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 6px;
    font-weight: 700;
}

h1, h2, h3 { line-height: 1.25; margin: 0; font-family: var(--heading-font); }
h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: .01em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }

.lead {
    margin: 14px 0 0;
    color: var(--muted);
    max-width: 760px;
}

.status-card,
.kpi,
.exposure-card,
.watch-card,
.update-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.status-card {
    padding: 12px 16px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.status-card .value { font-size: 16px; }
.label { color: var(--muted); font-size: 13px; }
.value { font-size: 24px; font-weight: 700; margin-top: 4px; font-family: var(--heading-font); }
.sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.section { margin-top: 28px; }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.section-heading h2 {
    padding-left: 13px;
    border-left: 5px solid var(--accent);
}
.section-heading h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 6px;
    margin-left: -13px;
    background: var(--gold);
    border-radius: 999px;
}
.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.disclaimer {
    color: var(--muted);
    font-size: 12px;
    border-top: 1px solid var(--line);
    margin-top: 36px;
    padding-top: 18px;
}

.is-positive { color: var(--positive); }
.is-negative { color: var(--negative); }
.is-neutral { color: var(--neutral); }
.is-muted { color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════
   Global header / menu bar — VERBATIM from /portfolio/ so the two tools
   share an identical chrome (palette + breakpoints + interactions).
   Do not edit these rules in isolation; sync with portfolio if changed.
   ════════════════════════════════════════════════════════════════════ */
#header-box { background: var(--accent); }
#header {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}
#site-info { padding: 12px 0; }
#site-info a {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .04em;
    color: #f4f4f4;
    text-decoration: none;
}
#site-info a:hover { color: var(--gold); }

.global-nav .menu-box {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}
.global-nav .menu-item { position: relative; }
.global-nav .menu-item > a {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 16px;
    color: #f4f4f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    transition: color .15s ease;
}
.global-nav .menu-item > a:hover { color: var(--gold); }
.global-nav .menu-item-has-children > a::after {
    content: "\25BE";
    margin-left: 6px;
    font-size: 11px;
    opacity: .85;
}

.global-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 30;
}
.global-nav .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.global-nav .sub-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.global-nav .sub-menu a:hover { color: var(--accent); background: var(--soft-accent); }

#navtoggle { display: none; }
.sp-menu-open { display: none; }

@media (max-width: 767px) {
    #header { min-height: 56px; }
    .sp-menu-open {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 10px;
        cursor: pointer;
    }
    .cps-icon-bar {
        display: block;
        height: 2px;
        background: #f4f4f4;
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }
    .global-nav {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
        box-shadow: 0 16px 28px rgba(15, 23, 42, .12);
        z-index: 25;
    }
    #navtoggle:checked ~ .global-nav { max-height: 80vh; overflow: auto; }
    .global-nav .menu-box { display: block; }
    .global-nav .menu-item > a {
        height: auto;
        padding: 13px 18px;
        color: var(--text);
        border-bottom: 1px solid var(--line);
    }
    .global-nav .menu-item > a:hover { color: var(--accent); }
    .global-nav .menu-item-has-children > a::after { margin-left: auto; }
    .global-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        background: #f7f8fa;
    }
    .global-nav .sub-menu a {
        padding: 11px 18px 11px 34px;
        border-bottom: 1px solid var(--line);
    }
    #navtoggle:checked ~ .sp-menu-open .cps-icon-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #navtoggle:checked ~ .sp-menu-open .cps-icon-bar:nth-child(2) { opacity: 0; }
    #navtoggle:checked ~ .sp-menu-open .cps-icon-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ════════════════════════════════════════════════════════════════════
   club_crypto_01 specific components
   ════════════════════════════════════════════════════════════════════ */

.loading { color: var(--muted); text-align: center; padding: 40px; }

.error-banner {
    background: var(--warning-bg);
    border: 1px solid var(--warning-line);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: var(--text);
}

/* ---- Market overview card ---- */
.market-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    padding: 22px 24px;
}
.market-headline {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.market-phase-label {
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-strong);
}
.market-total {
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.market-meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}
.market-meta strong { color: var(--text); font-weight: 700; }
.market-comment {
    margin: 8px 0 0;
    line-height: 1.75;
    color: var(--text);
}

/* ---- Asset card grid ---- */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.asset-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.asset-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(59, 70, 117, 0.08);
}
.asset-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.asset-symbol {
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-strong);
}
.asset-price {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.asset-changes {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}
.asset-changes .delta { font-variant-numeric: tabular-nums; font-weight: 700; }
.asset-card-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.asset-total {
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}
.action-line { color: var(--muted); font-size: 13px; margin-top: 6px; }
.confidence  { color: var(--muted); font-size: 11px; margin-top: 4px; }

/* ---- Phase pill ---- */
.phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.phase-UPWARD     { background: var(--phase-up); }
.phase-PULLBACK   { background: var(--phase-pull); }
.phase-NEUTRAL    { background: var(--phase-neutr); }
.phase-OVERHEATED { background: var(--phase-over); }
.phase-DOWNTREND  { background: var(--phase-down); }
.phase-UNKNOWN    { background: var(--phase-unk); }

.delta.pos { color: var(--positive); }
.delta.neg { color: var(--negative); }

.provisional-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--accent-strong);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
}

/* ---- Detail view ---- */
.detail-back {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--link);
    font-size: 13px;
    text-decoration: none;
}
.detail-back:hover { text-decoration: underline; }

.detail-summary {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    padding: 22px 24px;
}
.detail-summary-line {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 8px;
}
.detail-symbol {
    font-family: var(--heading-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-strong);
}
.detail-price  {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.detail-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}
.detail-meta strong { color: var(--text); font-weight: 700; }

/* ---- Generic content card inside detail ---- */
.content-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    padding: 20px 22px;
}

/* ---- Gauges ---- */
.gauges { display: flex; flex-direction: column; gap: 12px; }
.gauge-row {
    display: grid;
    grid-template-columns: 120px 1fr 56px;
    align-items: center;
    gap: 14px;
}
.gauge-label { font-size: 13px; color: var(--muted); }
.gauge-track {
    background: var(--soft-accent);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}
.gauge-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 200ms ease-out;
}
.gauge-value {
    font-family: var(--heading-font);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    color: var(--accent-strong);
}
.gauge-fill.trend    { background: var(--phase-pull); }
.gauge-fill.capital  { background: var(--phase-up); }
.gauge-fill.overheat { background: var(--phase-over); }
.gauge-fill.macro    { background: var(--accent); }

/* ---- Reasons list ---- */
.reasons-list { margin: 0; padding-left: 20px; line-height: 1.85; }
.reasons-list li { color: var(--text); }

/* ---- ETF flow grid ---- */
.etf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.etf-cell {
    background: var(--soft-accent);
    border-radius: 12px;
    padding: 12px 14px;
}
.etf-cell .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.etf-cell .value {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}

/* ---- 7d range rows ---- */
.range-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 14px;
    padding: 8px 0;
    align-items: baseline;
    border-bottom: 1px dashed var(--line);
}
.range-row:last-of-type { border-bottom: 0; }
.range-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.range-low, .range-high {
    font-family: var(--heading-font);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.range-low  { color: var(--negative); }
.range-high { color: var(--positive); }
.range-note { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ---- Support / resistance grid ---- */
.sr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sr-cell {
    background: var(--soft-accent);
    border-radius: 12px;
    padding: 12px 14px;
}
.sr-cell .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sr-cell .value {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}
.sr-cell.support .label    { color: var(--positive); }
.sr-cell.resistance .label { color: var(--negative); }

/* ---- Detail card stack ---- */
.detail-stack { display: grid; gap: 16px; }

/* ---- History chart ---- */
.chart-wrap {
    position: relative;
}
.chart-wrap canvas {
    width: 100% !important;
    height: 320px !important;
}
.chart-note {
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}

/* ════════════════════════════════════════════════════════════════════
   Parallel dashboard (v2): notable + comparison table + theme panels
   ════════════════════════════════════════════════════════════════════ */

/* ---- Multi-asset overlay chart (top of page) ---- */
.prices-card { padding: 18px 20px 22px; }
.range-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.range-tab {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.range-tab:hover { border-color: var(--accent); color: var(--accent); }
.range-tab.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---- Asset navigation cards (top of page) ---- */
.asset-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.asset-nav-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    padding: 20px 22px;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    position: relative;
}
.asset-nav-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(59, 70, 117, 0.10);
}
.asset-nav-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.asset-nav-symbol {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 30px;
    color: var(--accent-strong);
    letter-spacing: 0.02em;
    line-height: 1;
}
.asset-nav-arrow {
    font-size: 22px;
    color: var(--accent);
    transition: transform .15s ease, color .15s ease;
    line-height: 1;
}
.asset-nav-card:hover .asset-nav-arrow {
    transform: translateX(5px);
    color: var(--gold);
}
.asset-nav-price {
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}
.asset-nav-changes {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}
.asset-nav-changes .delta {
    font-family: var(--heading-font);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.asset-nav-link {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--link);
    text-align: right;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ---- 今日の注目 ---- */
.notable-card { padding: 16px 20px; }
.notable-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notable-item {
    display: grid;
    grid-template-columns: 70px 1fr auto auto;
    gap: 12px;
    align-items: baseline;
    padding: 8px 12px;
    background: var(--soft-accent);
    border-radius: 10px;
}
.notable-scope {
    font-weight: 700;
    color: var(--accent-strong);
    font-family: var(--heading-font);
    font-size: 13px;
}
.notable-label { color: var(--text); font-size: 13px; }
.notable-value {
    font-family: var(--heading-font);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ---- Comparison table ---- */
.signal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.signal-table th {
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}
.signal-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.signal-table tr:last-child td { border-bottom: 0; }
.signal-row { cursor: pointer; transition: background .12s; }
.signal-row:hover { background: var(--soft-accent); }
.sym-cell {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-strong);
}
.signal-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-family: var(--heading-font);
    font-weight: 700;
}

/* ---- Cell color coding by percentile ---- */
.cell-bull         { background: rgba(15, 157, 139, 0.10); }
.cell-bull-strong  { background: rgba(15, 157, 139, 0.22); color: #074d44; }
.cell-bear         { background: rgba(217, 51, 63, 0.10); }
.cell-bear-strong  { background: rgba(217, 51, 63, 0.22); color: #7a1d24; }
.cell-outlier        { background: rgba(255, 205, 68, 0.18); }
.cell-outlier-strong { background: rgba(255, 205, 68, 0.34); color: #5f4400; }
/* val-pos / val-neg are used for plain signed numbers without percentile */
.val-pos { color: var(--positive); }
.val-neg { color: var(--negative); }

/* ---- Percentile badge ---- */
.pct-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--heading-font);
    background: var(--soft-accent);
    color: var(--accent-strong);
    white-space: nowrap;
}
.pct-empty { background: transparent; color: var(--muted); font-weight: 500; }

/* ---- Market / macro strip (horizontal cells) ---- */
.market-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}
.strip-cell {
    background: var(--soft-accent);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.strip-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.strip-value {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    padding: 2px 6px;
    border-radius: 6px;
    align-self: flex-start;
}
.strip-sub { font-size: 11px; color: var(--muted); }
.strip-cell .pct-badge { align-self: flex-start; margin-top: 2px; }

/* ---- Detail theme panels ---- */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}
.panel { padding: 18px 20px; }
.panel-title {
    margin: 0 0 12px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-strong);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 6px;
    display: inline-block;
}
.panel-rows {
    display: flex;
    flex-direction: column;
}
.panel-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}
.panel-row:last-child { border-bottom: 0; }
.panel-label { color: var(--muted); font-size: 13px; }
.panel-value {
    font-family: var(--heading-font);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 2px 6px;
    border-radius: 6px;
    text-align: right;
}

/* ---- Membership notice ---- */
.membership-notice {
    padding: 48px 32px;
    text-align: center;
    max-width: 560px;
    margin: 32px auto 0;
}
.membership-notice h2 {
    margin-bottom: 16px;
    color: var(--accent-strong);
    font-family: var(--heading-font);
    font-size: 22px;
}
.notice-message {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
}
.membership-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    text-decoration: none;
}
.btn-secondary {
    background: var(--soft-accent);
    color: var(--accent-strong);
    border: 1px solid var(--accent);
}
.btn-secondary:hover {
    background: var(--gold);
    color: var(--accent-strong);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Smaller layout tweaks on narrow viewports */
@media (max-width: 600px) {
    .notable-item { grid-template-columns: auto 1fr auto; }
    .notable-item .pct-badge { grid-column: 1 / -1; justify-self: end; }
    .panel-row { grid-template-columns: 1fr auto; }
    .panel-row .pct-badge { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
}
