/* ==========================================================================
   Components -- Buttons, sector-markers, stat counters, form-dots,
   breadcrumbs, legal-prose, pull-quotes, timing-card, drop-cap
   ========================================================================== */

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
    background: var(--c-accent);
    border: none;
    border-radius: var(--r-sm);
    padding: var(--s-12) var(--s-24);
    letter-spacing: 0.25px;
    transition: background var(--dur) var(--ease);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary:hover {
    background: var(--c-accent-hover);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--c-accent);
    background: transparent;
    border: 1.5px solid var(--c-accent);
    border-radius: var(--r-sm);
    padding: var(--s-12) var(--s-24);
    letter-spacing: 0.25px;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
    text-decoration: none;
    line-height: 1.4;
}

.btn-secondary:hover {
    background: var(--c-accent);
    color: #ffffff;
}

.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
    background: var(--c-accent-sec);
    border: none;
    border-radius: var(--r-sm);
    padding: var(--s-12) var(--s-24);
    letter-spacing: 0.25px;
    transition: opacity var(--dur) var(--ease);
    text-decoration: none;
    line-height: 1.4;
}

.btn-tertiary:hover {
    opacity: 0.85;
    color: #ffffff;
}

/* Sector marker (divider) */
.sector-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-8);
    padding: var(--s-16) 0;
}

.sector-marker::before,
.sector-marker::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--c-border);
}

.sector-marker span {
    width: 5px;
    height: 5px;
    background: var(--c-accent);
    border-radius: 50%;
}

/* Stat counter */
.stat-counter {
    text-align: center;
}

.stat-counter__number {
    font-family: var(--f-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--c-accent);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: var(--s-8);
}

.stat-counter__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: var(--s-4);
}

.stat-counter__context {
    font-size: 0.8125rem;
    color: var(--c-text-dim);
    line-height: 1.6;
}

/* Form dots (W/L) */
.form-dots {
    display: flex;
    gap: 4px;
}

.form-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.form-dot--w {
    background: var(--c-win);
}

.form-dot--l {
    background: var(--c-loss);
}

/* Breadcrumbs */
.breadcrumb {
    padding: var(--s-16) 0;
    font-size: 0.8125rem;
    color: var(--c-text-dim);
}

.breadcrumb a {
    color: var(--c-text-dim);
}

.breadcrumb a:hover {
    color: var(--c-accent);
}

.breadcrumb__sep {
    margin: 0 var(--s-8);
    color: var(--c-border);
}

/* Legal prose */
.legal-prose {
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.75;
}

.legal-prose h2 {
    margin-top: var(--s-48);
    margin-bottom: var(--s-16);
}

.legal-prose h3 {
    margin-top: var(--s-32);
    margin-bottom: var(--s-12);
}

.legal-prose p {
    margin-bottom: var(--s-16);
}

.legal-prose ul,
.legal-prose ol {
    margin-bottom: var(--s-16);
    padding-left: var(--s-24);
    list-style: disc;
}

.legal-prose table {
    margin-bottom: var(--s-24);
    font-size: 0.875rem;
}

.legal-prose table th,
.legal-prose table td {
    padding: var(--s-8) var(--s-12);
    border: 1px solid var(--c-border);
    text-align: left;
}

.legal-prose table th {
    background: var(--c-surface);
    font-weight: 600;
}

/* Pull quote */
.pull-quote {
    border-left: 3px solid var(--c-accent);
    padding-left: var(--s-24);
    font-family: var(--f-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--c-text);
    max-width: 640px;
    margin: var(--s-32) 0;
    line-height: 1.6;
}

/* Timing card */
.timing-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--s-24);
}

.timing-card__header {
    font-family: var(--f-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--s-16);
    padding-bottom: var(--s-8);
    border-bottom: 1px solid var(--c-border);
}

.timing-card__row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: var(--s-12);
    align-items: center;
    padding: var(--s-8) 0;
    border-bottom: 1px solid var(--c-border);
    font-variant-numeric: tabular-nums;
}

.timing-card__row:last-child {
    border-bottom: none;
}

.timing-card__pos {
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--c-text-dim);
}

.timing-card__driver {
    font-weight: 500;
    font-size: 0.875rem;
}

.timing-card__constructor {
    font-size: 0.75rem;
    color: var(--c-text-dim);
}

.timing-card__gap {
    font-size: 0.8125rem;
    color: var(--c-text-dim);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Drop cap */
.drop-cap::first-letter {
    font-family: var(--f-heading);
    font-style: italic;
    font-size: 3.5rem;
    float: left;
    line-height: 0.85;
    margin-right: 0.5rem;
    color: var(--c-accent);
}

/* Category badge */
.badge {
    display: inline-block;
    font-family: var(--f-body);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--c-accent);
    border: 1px solid var(--c-accent);
    border-radius: var(--r-sm);
    padding: 2px var(--s-8);
    letter-spacing: 0.5px;
}

/* Read time */
.read-time {
    font-size: 0.8125rem;
    color: var(--c-text-dim);
}

/* Stat card (sidebar) */
.stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--s-24);
}

.stat-card__item {
    padding: var(--s-12) 0;
    border-bottom: 1px solid var(--c-border);
}

.stat-card__item:last-child {
    border-bottom: none;
}

.stat-card__value {
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--c-accent);
    font-variant-numeric: tabular-nums;
}

.stat-card__label {
    font-size: 0.8125rem;
    color: var(--c-text-dim);
}

/* Team member */
.team-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-right: 3px solid var(--c-accent);
    border-radius: var(--r-md);
    padding: var(--s-24);
}

.team-card__name {
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--s-4);
}

.team-card__role {
    font-size: 0.8125rem;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: var(--s-12);
}

.team-card__bio {
    font-size: 0.875rem;
    color: var(--c-text-dim);
    line-height: 1.7;
}
