/* Tennis predictability — season script report (hub + profile section).
   Diverging pair validated with the dataviz palette checker on the dark
   surface: on-script #3987e5 (blue) / chaos #e66767 (red); in-line stays
   neutral. Text wears text tokens; color marks carry polarity only. */

.pd-hero { text-align: center; padding: 1.5rem 0 0.5rem; }
.pd-hero .pd-eyebrow {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft);
    border: 1px solid var(--accent-soft-strong);
    padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.pd-hero h1 { font-weight: 800; }
.pd-hero .lede { color: var(--text-secondary); max-width: 46rem; margin: 0.5rem auto 1rem; }

.pd-pills { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin: 0.75rem 0 1.25rem; }
.pd-pill {
    padding: 0.3rem 0.9rem; border-radius: 999px; font-weight: 600;
    font-size: 0.9rem; color: var(--text-secondary);
    border: 1px solid var(--border-default); text-decoration: none;
}
.pd-pill:hover { color: var(--text-primary); border-color: var(--border-strong); }
.pd-pill--active { color: var(--accent-on); background: var(--accent); border-color: var(--accent); }

.pd-poles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 575px) { .pd-poles { grid-template-columns: 1fr; } }
.pd-pole {
    background: var(--surface-1); border: 1px solid var(--border-subtle);
    border-radius: 14px; padding: 1.1rem 1.25rem; position: relative; overflow: hidden;
}
.pd-pole::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; }
.pd-pole--script::before { background: #3987e5; }
.pd-pole--chaos::before { background: #e66767; }
.pd-pole-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.pd-pole-name { font-size: 1.5rem; font-weight: 800; margin: 0.2rem 0; }
.pd-pole-name a { color: inherit; }
.pd-pole-stat { color: var(--text-secondary); font-size: 0.92rem; }
.pd-pole-stat strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }

.pd-card {
    background: var(--surface-1); border: 1px solid var(--border-subtle);
    border-radius: 14px; padding: 1.25rem; margin-bottom: 1.25rem;
}
.pd-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; }
.pd-chart-wrap { position: relative; height: 420px; }
@media (max-width: 575px) { .pd-chart-wrap { height: 360px; } }
.pd-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.pd-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.35rem; vertical-align: baseline; }

.pd-tier {
    display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.pd-tier--on_script { color: #9ec5f4; background: rgba(57, 135, 229, 0.14); border: 1px solid rgba(57, 135, 229, 0.4); }
.pd-tier--chaos { color: #f0a7a7; background: rgba(230, 103, 103, 0.13); border: 1px solid rgba(230, 103, 103, 0.4); }
.pd-tier--in_line { color: var(--text-secondary); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-default); }

.pd-table { width: 100%; font-size: 0.92rem; color: var(--text-primary); }
.pd-table th {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); border-bottom: 1px solid var(--border-default);
    padding: 0.45rem 0.6rem; text-align: right; white-space: nowrap;
}
.pd-table th:first-child, .pd-table th:nth-child(2) { text-align: left; }
.pd-table td {
    padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border-subtle);
    text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pd-table td:first-child, .pd-table td:nth-child(2) { text-align: left; }
.pd-table tbody tr:hover { background: var(--surface-2); }
.pd-ci { color: var(--text-muted); font-size: 0.82rem; }
.pd-surprise--neg { color: #9ec5f4; }
.pd-surprise--pos { color: #f0a7a7; }

.pd-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.6rem; }
.pd-method { color: var(--text-secondary); }
.pd-method h2, .pd-method h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.pd-method p { max-width: 60rem; }
