/*
 * social.css — TADS design system for social-chart primitives.
 *
 * Phase 2 of the social-primitives lift-out (Phase 1: backend/app/templates/components/social/*.html).
 *
 * This stylesheet maps the .social-* class vocabulary from the Phase 1
 * Jinja partials onto the visual design language captured by the X social
 * charts (FP1 LAP DISTRIBUTION, CIRCUIT PROFILE, WEEKEND SCHEDULE,
 * CHAMPIONSHIP STANDING).
 *
 * Lifted from:
 *   - backend/scripts/f1/social_chart_shared.py:404 (TADS_CSS_ROOT)
 *   - backend/scripts/f1/social/social_fp_boxplot.py:_BOXPLOT_CSS
 *   - backend/scripts/f1/social/social_scorecard.py:_SCORECARD_CSS
 *
 * Fonts: Sora (display) + Outfit (UI) + JetBrains Mono (data).
 * Load via base.html or via a <link> to Google Fonts before this stylesheet.
 */

/* ===========================================================================
 * 1. Design tokens (lifted from TADS_CSS_ROOT)
 * =========================================================================== */

:root {
    --social-bg: #070a12;
    --social-surface: #0f1420;
    --social-surface-alt: #141a28;
    --social-text-main: #dfe2ea;
    --social-text-white: #ffffff;
    --social-text-muted: rgba(200, 206, 220, 0.72); /* a11y: 0.5 was 3.7:1 (sub-AA); 0.72 -> ~4.7:1 (TEP-322 axe gate) */
    --social-text-dim: rgba(200, 206, 220, 0.2);
    --social-primary: #f5b731;
    --social-primary-bright: #fcd34d;
    --social-teal: #4d9eb8;
    --social-green: #3ddba0;
    --social-red: #ef4444;
    --social-border-gold: rgba(245, 183, 49, 0.15);
    --social-border-subtle: rgba(200, 206, 220, 0.08);

    /* Per-team accent: each .team-{slug} sets --team-color via
       get_team_color_css() output (rendered server-side per season). */
    --team-color: var(--social-primary);

    /* Typography */
    --social-font-display: 'Sora', system-ui, sans-serif;
    --social-font-ui: 'Outfit', system-ui, sans-serif;
    --social-font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Spacing scale */
    --social-space-1: 4px;
    --social-space-2: 8px;
    --social-space-3: 12px;
    --social-space-4: 16px;
    --social-space-5: 24px;
    --social-space-6: 32px;
}

/* ===========================================================================
 * 2. Brand header (brand_header.html)
 * =========================================================================== */

.social-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--social-space-4) var(--social-space-5);
    color: var(--social-text-main);
}

.social-header-left,
.social-header-right {
    display: flex;
    align-items: center;
    gap: var(--social-space-2);
}

.social-brand-mark,
.social-gridline-mark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.social-brand-mark {
    background-image: url('/static/torch-brand-assets/burst-color-dark.svg');
    width: 32px;
    height: 32px;
}

.social-gridline-mark {
    background-image: url('/static/torch-brand-assets/mark-gridline.svg');
    width: 20px;
    height: 20px;
}

.social-brand-text {
    font-family: var(--social-font-mono);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--social-text-white);
}

.social-brand-sep {
    color: var(--social-text-muted);
}

.social-brand-tag {
    font-family: var(--social-font-mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--social-text-muted);
}

.social-gridline-text {
    font-family: var(--social-font-mono);
    font-weight: 500;
    font-size: 11px;
    color: var(--social-teal);
    letter-spacing: 0.08em;
}

/* ===========================================================================
 * 3. Title block (title_block.html)
 * =========================================================================== */

.social-title-block {
    padding: var(--social-space-3) var(--social-space-5) var(--social-space-5);
}

.social-frame-label {
    font-family: var(--social-font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--social-text-muted);
    margin-bottom: var(--social-space-2);
}

.social-title {
    font-family: var(--social-font-display);
    font-weight: 800;
    font-size: 36px;
    line-height: 1.1;
    color: var(--social-text-white);
    margin: 0;
}

.social-subtitle {
    font-family: var(--social-font-mono);
    font-size: 12px;
    color: var(--social-text-muted);
    margin-top: var(--social-space-2);
    letter-spacing: 0.06em;
}

.social-meta {
    font-family: var(--social-font-mono);
    font-size: 10px;
    color: var(--social-text-dim);
    margin-top: var(--social-space-2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.social-meta-sep {
    margin: 0 var(--social-space-2);
    color: var(--social-text-dim);
}

/* ===========================================================================
 * 4. KPI card (kpi_card.html) + row
 * =========================================================================== */

.social-kpi-row {
    display: flex;
    gap: var(--social-space-2);
    padding: 0 var(--social-space-5) var(--social-space-4);
    flex-wrap: wrap;
}

.social-kpi-card {
    background: var(--social-surface);
    border: 1px solid var(--social-border-subtle);
    border-radius: 4px;
    padding: var(--social-space-3) var(--social-space-4);
    min-width: 120px;
    flex: 1;
}

.social-kpi-label {
    font-family: var(--social-font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--social-text-muted);
    text-transform: uppercase;
    margin-bottom: var(--social-space-2);
}

.social-kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: var(--social-space-1);
}

.social-kpi-value {
    font-family: var(--social-font-mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--social-primary);
    line-height: 1;
}

.social-kpi-card--teal .social-kpi-value { color: var(--social-teal); }
.social-kpi-card--neutral .social-kpi-value { color: var(--social-text-white); }
.social-kpi-card--highlight {
    border-color: var(--social-border-gold);
    background: linear-gradient(180deg, rgba(245, 183, 49, 0.06), transparent);
}
.social-kpi-card--highlight .social-kpi-value { color: var(--social-primary-bright); }

.social-kpi-unit {
    font-family: var(--social-font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--social-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-kpi-secondary {
    font-family: var(--social-font-mono);
    font-size: 10px;
    color: var(--social-text-muted);
    margin-top: var(--social-space-1);
}

/* ===========================================================================
 * 5. KPI progress card (kpi_card_progress.html)
 * =========================================================================== */

.social-kpi-card--progress {
    display: flex;
    flex-direction: column;
}

.social-kpi-tier {
    font-family: var(--social-font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--social-text-white);
    margin-bottom: var(--social-space-2);
}

.social-kpi-bar-track {
    height: 4px;
    background: var(--social-text-dim);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--social-space-1);
}

.social-kpi-bar-fill {
    height: 100%;
    background: var(--social-text-muted);
    transition: width 200ms ease;
}

.social-kpi-bar-fill--amber {
    background: var(--social-primary);
}

.social-kpi-bar-label {
    font-family: var(--social-font-mono);
    font-size: 10px;
    color: var(--social-text-muted);
    text-align: right;
}

/* ===========================================================================
 * 6. Position bar (position_bar.html)
 * =========================================================================== */

.social-position-bar {
    display: flex;
    align-items: center;
    gap: var(--social-space-3);
}

.social-position-bar-track {
    flex: 1;
    height: 12px;
    background: var(--social-text-dim);
    border-radius: 2px;
    overflow: hidden;
}

.social-position-bar-fill {
    height: 100%;
    background: var(--team-color, var(--social-primary));
    transition: width 200ms ease;
}

.social-position-bar-value {
    font-family: var(--social-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--social-text-white);
    min-width: 60px;
    text-align: right;
    letter-spacing: 0.04em;
}

/* ===========================================================================
 * 7. Team row (team_row.html) + list
 * =========================================================================== */

/* ---------------------------------------------------------------------------
 * 7a. Per-constructor team-color rules (T2 — TEP-315 UAT-1)
 *
 * These rules set --team-color from the --f1-team-{slug} design token for
 * every 2026 F1 constructor. They are static CSS, work on cold cache with no
 * DB-sourced hex, and satisfy TADS Rule 4 (all values via var(--*) tokens).
 *
 * Gold (--social-primary) is RESERVED for the leader/active state only —
 * see .social-team-cell--accent. No constructor row uses gold by default.
 *
 * Slug map (frozen per §3 of TEP-315-UAT1-contract.md, all 11/11 confirmed):
 *   MER → mercedes  | FER → ferrari    | MCL → mclaren
 *   RBR → red-bull  | ALP → alpine     | RCB → racing-bulls
 *   HAA → haas      | WIL → williams   | AUD → audi
 *   CAD → cadillac  | AMR → aston-martin
 * ---------------------------------------------------------------------------*/
.social-team-row.team-mercedes     { --team-color: var(--f1-team-mercedes); }
.social-team-row.team-ferrari      { --team-color: var(--f1-team-ferrari); }
.social-team-row.team-mclaren      { --team-color: var(--f1-team-mclaren); }
.social-team-row.team-red-bull     { --team-color: var(--f1-team-red-bull); }
.social-team-row.team-alpine       { --team-color: var(--f1-team-alpine); }
.social-team-row.team-racing-bulls { --team-color: var(--f1-team-racing-bulls); }
.social-team-row.team-haas         { --team-color: var(--f1-team-haas); }
.social-team-row.team-williams     { --team-color: var(--f1-team-williams); }
.social-team-row.team-audi         { --team-color: var(--f1-team-audi); }
.social-team-row.team-cadillac     { --team-color: var(--f1-team-cadillac); }
.social-team-row.team-aston-martin { --team-color: var(--f1-team-aston-martin); }

.social-team-row-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--social-border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.social-team-row {
    display: grid;
    /* pos | headshot | driver-code | logo | abbrev | cells
       driver-code and abbrev use max-content so text never overflows into
       neighbouring columns; cells get the remaining space with min-width 0
       so flex children inside can truncate instead of causing column blowout. */
    grid-template-columns: 24px 24px max-content 18px max-content minmax(0, 1fr);
    align-items: center;
    gap: var(--social-space-2);
    padding: var(--social-space-2) var(--social-space-4);
    background: var(--social-surface);
    font-family: var(--social-font-mono);
    font-size: 12px;
}

.social-team-pos {
    color: var(--social-text-muted);
    text-align: center;
    font-weight: 500;
}

.social-team-headshot,
.social-team-headshot-empty {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--social-surface-alt);
    object-fit: cover;
}

/* Constructor avatar — the official team logo (contain-fit, square, no tint)
   rather than a cropped circular headshot. */
.social-team-headshot--logo {
    border-radius: 3px;
    background: transparent;
    object-fit: contain;
}

.social-team-driver-code {
    color: var(--team-color, var(--social-text-white));
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Empty placeholder keeps the logo grid column occupied when no URL is
   present (e.g. Audi NULL logo). Prevents column collapsing. */
.social-team-logo-empty {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-team-logo {
    /* Mask-tint approach: the CDN assets are white-on-transparent WebP.
       Setting mask-image lets the browser use the asset's alpha channel as a
       stencil and fill it with --team-color, so each constructor's monochrome
       logo renders in its brand color on the dark panel.
       Falls back to --social-text-white when --team-color is unresolved. */
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: var(--team-color, var(--social-text-white));
    -webkit-mask-image: var(--logo-url);
    mask-image: var(--logo-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.social-team-abbrev {
    /* --team-color is set by the .team-{slug} class rule (never gold for known
       constructors). Fall back to white, not gold — gold is leader/accent only. */
    color: var(--team-color, var(--social-text-white));
    font-weight: 500;
    letter-spacing: 0.04em;
}

.social-team-cells {
    display: flex;
    align-items: center;
    /* Use space-3 (12px) so a 7-cell row fits without overflowing the 1fr
       column and colliding with the identity columns on the left. */
    gap: var(--social-space-3);
    justify-content: flex-end;
    /* Clip rather than wrap — cell count is data-driven and must not reflow
       identity columns. Overflow is intentional: callers size the panel. */
    overflow: hidden;
    min-width: 0;
}

.social-team-cell {
    font-variant-numeric: tabular-nums;
    color: var(--social-text-white);
}

.social-team-cell--left { text-align: left; }
.social-team-cell--center { text-align: center; }
.social-team-cell--right { text-align: right; }

.social-team-cell--accent { color: var(--social-primary); }
.social-team-cell--muted { color: var(--social-text-muted); }
.social-team-cell--pos { color: var(--social-green); }
.social-team-cell--neg { color: var(--social-red); }

.social-team-cell-label {
    font-size: 10px;
    color: var(--social-text-muted);
    margin-left: var(--social-space-1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===========================================================================
 * 8. Status pill (status_pill.html)
 * =========================================================================== */

.social-status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: var(--social-font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.social-status-pill--amber {
    background: rgba(245, 183, 49, 0.18);
    color: var(--social-primary-bright);
    border: 1px solid rgba(245, 183, 49, 0.32);
}

.social-status-pill--blue {
    background: rgba(77, 158, 184, 0.18);
    color: var(--social-teal);
    border: 1px solid rgba(77, 158, 184, 0.32);
}

.social-status-pill--neutral {
    background: var(--social-surface-alt);
    color: var(--social-text-muted);
    border: 1px solid var(--social-border-subtle);
}

.social-status-pill--red {
    background: rgba(239, 68, 68, 0.16);
    color: var(--social-red);
    border: 1px solid rgba(239, 68, 68, 0.32);
}

.social-status-pill--green {
    background: rgba(61, 219, 160, 0.16);
    color: var(--social-green);
    border: 1px solid rgba(61, 219, 160, 0.32);
}

/* ===========================================================================
 * 9. Pill chip row (pill_chip_row.html)
 * =========================================================================== */

.social-pill-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--social-space-2);
    padding: var(--social-space-3) var(--social-space-5);
}

.social-pill-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-family: var(--social-font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--social-border-subtle);
}

.social-pill-chip--neutral {
    background: transparent;
    color: var(--social-primary);
    border-color: var(--social-border-gold);
}

.social-pill-chip--amber {
    background: rgba(245, 183, 49, 0.10);
    color: var(--social-primary-bright);
    border-color: rgba(245, 183, 49, 0.32);
}

/* ===========================================================================
 * 10. Schedule row (schedule_row.html)
 * =========================================================================== */

.social-schedule-row {
    display: grid;
    grid-template-columns: 100px 1fr auto 1fr;
    align-items: center;
    gap: var(--social-space-4);
    padding: var(--social-space-3) var(--social-space-4);
    background: var(--social-surface);
    border-bottom: 1px solid var(--social-border-subtle);
    font-family: var(--social-font-mono);
}

.social-schedule-row:last-child {
    border-bottom: none;
}

.social-schedule-row--active {
    background: linear-gradient(90deg, rgba(245, 183, 49, 0.08), transparent 40%);
    border-left: 2px solid var(--social-primary);
}

.social-schedule-day {
    font-size: 9px;
    color: var(--social-text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.social-schedule-time {
    font-size: 18px;
    color: var(--social-text-white);
    font-weight: 500;
}

.social-schedule-session {
    font-size: 14px;
    color: var(--social-text-white);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.social-schedule-local {
    font-size: 10px;
    color: var(--social-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}

.social-schedule-conditions {
    display: flex;
    gap: var(--social-space-4);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.social-schedule-cond {
    display: flex;
    gap: var(--social-space-1);
    align-items: baseline;
    font-size: 10px;
    color: var(--social-text-muted);
}

.social-schedule-cond-label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.social-schedule-cond-value {
    color: var(--social-text-white);
    font-weight: 500;
}

.social-schedule-cond--rain .social-schedule-cond-value {
    color: var(--social-teal);
    font-weight: 600;
}

/* ===========================================================================
 * 11. Alert banner (alert_banner.html)
 * =========================================================================== */

.social-alert-banner {
    display: flex;
    align-items: center;
    gap: var(--social-space-3);
    padding: var(--social-space-3) var(--social-space-5);
    margin: 0 var(--social-space-5) var(--social-space-4);
    border-radius: 4px;
    font-family: var(--social-font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.social-alert-banner--rain,
.social-alert-banner--info {
    background: rgba(77, 158, 184, 0.16);
    color: var(--social-teal);
    border: 1px solid rgba(77, 158, 184, 0.40);
}

.social-alert-banner--warn {
    background: rgba(245, 183, 49, 0.14);
    color: var(--social-primary-bright);
    border: 1px solid rgba(245, 183, 49, 0.36);
}

.social-alert-banner--danger {
    background: rgba(239, 68, 68, 0.16);
    color: var(--social-red);
    border: 1px solid rgba(239, 68, 68, 0.36);
}

.social-alert-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ===========================================================================
 * 12. Methodology footer (methodology_footer.html)
 * =========================================================================== */

.social-methodology-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: var(--social-space-4) var(--social-space-5);
    border-top: 1px solid var(--social-border-subtle);
    font-family: var(--social-font-mono);
    font-size: 9px;
    color: var(--social-text-dim);
    letter-spacing: 0.08em;
}

.social-methodology-text {
    flex: 1;
    max-width: 80%;
    line-height: 1.5;
}

.social-methodology-label {
    color: var(--social-text-muted);
    font-weight: 600;
    margin-right: var(--social-space-1);
    letter-spacing: 0.16em;
}

.social-methodology-paragraph {
    color: var(--social-text-muted);
}

.social-methodology-sep {
    color: var(--social-text-dim);
    margin: 0 var(--social-space-1);
}

.social-methodology-brand {
    color: var(--social-text-muted);
    font-weight: 500;
    letter-spacing: 0.12em;
}

/* ===========================================================================
 * 13. Highlights grid (highlights_grid.html)
 * =========================================================================== */

.social-highlights-grid {
    background: var(--social-surface);
    border: 1px solid var(--social-border-subtle);
    border-radius: 4px;
    padding: var(--social-space-4);
    font-family: var(--social-font-mono);
}

.social-highlights-header {
    font-size: 11px;
    color: var(--social-text-white);
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: var(--social-space-4);
    padding-bottom: var(--social-space-2);
    border-bottom: 1px solid var(--social-border-subtle);
}

.social-highlights-section {
    margin-bottom: var(--social-space-4);
}

.social-highlights-section:last-child {
    margin-bottom: 0;
}

.social-highlights-section-title {
    font-size: 10px;
    color: var(--social-primary);
    font-weight: 600;
    letter-spacing: 0.16em;
    margin-bottom: var(--social-space-2);
}

.social-highlights-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--social-space-3);
    padding: var(--social-space-1) 0;
    align-items: center;
}

.social-highlights-row-label {
    font-size: 11px;
    color: var(--social-text-muted);
}

.social-highlights-row-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--social-space-2);
}

.social-highlights-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--social-surface-alt);
    border: 1px solid var(--social-border-subtle);
    font-size: 10px;
}

.social-highlights-chip-code {
    color: var(--team-color, var(--social-primary));
    font-weight: 600;
    letter-spacing: 0.04em;
}

.social-highlights-chip-count {
    color: var(--social-text-muted);
    font-size: 9px;
}

/* ===========================================================================
 * Headline list (headline_list.html) — home NEWS tile
 * =========================================================================== */

.social-headline-list {
    display: flex;
    flex-direction: column;
}

.social-headline {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: var(--social-space-3) 0;
    border-bottom: 1px solid var(--social-border-subtle);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease;
}

.social-headline:last-child {
    border-bottom: 0;
}

.social-headline:hover {
    transform: translateX(var(--social-space-2));
}

.social-headline-text {
    color: var(--social-text-white);
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.social-headline:hover .social-headline-text {
    color: var(--social-primary);
}

.social-headline-summary {
    color: var(--social-text-muted);
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.social-headline-meta {
    display: flex;
    align-items: center;
    gap: var(--social-space-2);
    font-family: var(--social-font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--social-text-muted);
}

.social-headline-age::before {
    content: "·";
    margin-right: var(--social-space-2);
}

/* ===========================================================================
 * Track map (track_map.html) — static SVG circuit outline
 * =========================================================================== */

.social-track-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--social-space-2);
    width: 100%;
    min-height: 0;
}

.social-track-map-svg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 360px;
    overflow: visible;
}

.social-track-map-path {
    fill: none;
    stroke: var(--social-text-main);
    stroke-width: 11;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.social-track-map-start {
    fill: var(--social-text-white);
    stroke: var(--social-bg);
    stroke-width: 3;
}

/* Marshal-sector markers — small accent dots along the lap. */
.social-track-map-sector {
    fill: var(--social-teal);
    opacity: 0.7;
}

/* Turn-number labels — numbered chips at each corner apex. */
.social-track-map-corner circle {
    fill: var(--social-surface);
    stroke: var(--social-border-subtle);
    stroke-width: 1.5;
}

.social-track-map-corner text {
    fill: var(--social-text-white);
    font-family: var(--social-font-mono);
    font-size: 19px;
    font-weight: 600;
}

/* Famous corner names (Sainte Devote, La Rascasse, …) — sit above the numbered
   chip; only emitted for named corners. Neutral (soft-white), NOT gold — gold is
   reserved for leader/active state, never structural map labels (TADS). */
.social-track-map-corner-name {
    fill: var(--social-text-main);
    font-family: var(--social-font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    paint-order: stroke;
    stroke: var(--social-bg);
    stroke-width: 4;
}

/* Thin leader from the turn-number circle out to its (offset) name label, so the
   name reads clear of the numbers without losing which corner it belongs to. */
.social-track-map-corner-leader {
    stroke: var(--social-border-subtle);
    stroke-width: 1;
}

/* Named corners get a slightly stronger NEUTRAL chip ring — the corner NAME is the
   emphasis, not a gold accent (keeps the map structural, not all-gold). */
.social-track-map-corner--named circle {
    stroke: var(--social-text-muted);
}

.social-track-map-label {
    font-family: var(--social-font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--social-text-muted);
    text-align: center;
}
