/* Kicker comparison page styles. Loaded only by compare.php (referenced
   via <link> in its <head>). Was previously inline in the template;
   extracted to a per-page CSS file so it's cacheable separately and so
   the template HTML reads cleaner. */

.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.compare-col { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; background: var(--color-surface); min-height: 200px; }
.compare-name { font-size: 1.15rem; font-weight: 700; color: var(--color-accent); margin-bottom: 12px; }
.compare-name a { color: inherit; text-decoration: none; }
.compare-name a:hover { text-decoration: underline; }
.compare-stat { margin-bottom: 10px; }
.compare-stat-label { font-size: 0.72rem; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; letter-spacing: 0.3px; }
.compare-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin-top: 1px; }
.compare-stat-value .compare-sub { font-size: 0.75rem; font-weight: 400; color: var(--color-text-muted); }
.compare-bar-track { height: 4px; background: var(--color-border); border-radius: 2px; margin-top: 4px; }
.compare-bar-fill { height: 4px; background: var(--color-accent); border-radius: 2px; transition: width 0.3s; }
.compare-teams { font-size: 0.82rem; color: var(--color-text-muted); }
.compare-teams a { color: var(--color-accent); text-decoration: none; }
.compare-teams a:hover { text-decoration: underline; }
.compare-selector { margin-bottom: 0; }
.compare-selector select { width: 100%; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.85rem; font-family: var(--font-body); }
.compare-divider { border: none; border-top: 1px solid var(--color-border); margin: 14px 0 10px; }
.compare-section-label { font-size: 0.68rem; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }
.compare-stat-best .compare-stat-value { color: var(--color-accent); }
.compare-stat-rate { padding: 8px 10px; border-radius: var(--radius); margin: 0 -10px 10px; }
.compare-record-split { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 3px; }
.compare-record-split span { font-weight: 600; color: var(--color-text); }
.suggested-comparisons { margin-top: 32px; }
.suggested-link { display: inline-block; padding: 6px 14px; margin: 4px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.82rem; color: var(--color-text); text-decoration: none; background: var(--color-surface); }
.suggested-link:hover { border-color: var(--color-accent); color: var(--color-accent); }
@media (max-width: 768px) {
    .compare-grid { grid-template-columns: 1fr; }
}

/* Era splits — expandable section per kicker, only rendered when
   the kicker has doinks in BOTH the 1974–2014 and 2015–present
   eras. Hidden by default; clicking the toggle reveals the body. */
.compare-era-section { margin-top: 4px; }
.compare-era-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: color 0.15s ease;
}
.compare-era-toggle:hover { color: var(--color-accent); }
.compare-era-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}
.compare-era-glyph {
    display: inline-block;
    transition: transform 0.15s ease;
    font-size: 0.78em;
    line-height: 1;
}
/* Rotated glyph when section is expanded — driven by the
   aria-expanded attribute the click handler toggles. */
.compare-era-toggle[aria-expanded="true"] .compare-era-glyph {
    transform: rotate(90deg);
}
.compare-era-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.compare-era-body {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.compare-era-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 12px;
}
.compare-era-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.compare-era-stat-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.compare-era-stat-label {
    color: var(--color-text-muted);
    min-width: 60px;
}
.compare-era-stat-value {
    font-weight: 600;
}
.compare-era-stat-sub {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}
