/* ==========================================================================
   Typography system: one type scale for the whole public site (Inter).
   Loaded LAST by layout/layout.blade.php so every page and component follows
   the same roles: display, section, panel, card, lead, body, small, eyebrow.
   ========================================================================== */

:root {
    /* Fluid scale (mobile → desktop), ~1.25 ratio */
    --t-display: clamp(2.25rem, 1.35rem + 3.4vw, 4rem);
    --t-h1: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
    --t-section: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    --t-panel: clamp(1.3rem, 1.12rem + .7vw, 1.6rem);
    --t-card: 1.0625rem;
    --t-card-lg: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
    --t-lead: clamp(1.05rem, .98rem + .3vw, 1.2rem);
    --t-body: 1rem;
    --t-body-sm: .9375rem;
    --t-small: .875rem;
    --t-meta: .8125rem;
    --t-eyebrow: .75rem;
}


/* ---------- Normal spacing everywhere (owner preference) ----------
   No custom letter-spacing on any element, and standard line heights:
   1.5 for text, 1.2 for headings (Bootstrap defaults). */
body.site, body.site * { letter-spacing: normal !important; }
body.site { line-height: 1.5 !important; }
body.site :is(p, li, dd, dt, td, th, label, input, textarea, select, button, a, span, small, blockquote, figcaption, address) { line-height: 1.5 !important; }
body.site :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { line-height: 1.2 !important; }

/* ---------- Base ---------- */
body.site {
    font-size: var(--t-body);
    font-feature-settings: "cv11", "ss01", "ss03";   /* Inter: single-storey a, open digits, rounded quotes */
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}
body.site .site-main p { text-wrap: pretty; }
body.site :is(h1, h2, h3, h4, h5, h6) { text-wrap: balance; font-feature-settings: "cv11", "ss01", "ss03", "cpsp"; }

/* Numbers in stats, dates and counters line up */
body.site :is(.s-stats strong, .srp-stats strong, .ft-stats strong, .ft-date strong, .s-ab-stat strong, [data-count], .hc-slide time, .pp-chip) {
    font-variant-numeric: tabular-nums;
}

/* ---------- Display: hero + page-header titles ---------- */
body.site :is(.hc-title, .s-ab-hero h1, .srp-hero h1, .hsr-page-title h1, .sp-hero h1, .s-hero h1) {
    font-size: var(--t-display) !important;
    font-weight: 750 !important;
}
/* Inner-page headers are a step smaller than the home hero */
body.site :is(.hsr-page-title h1, .srp-hero h1, .sp-hero h1, .s-ab-hero h1) { font-size: var(--t-h1) !important; }

/* ---------- Section titles ---------- */
body.site :is(.s-section-head h2, .sp-head h2, .sp-intro h2, .svc-title, .srp-year-head h2, .rtc-section-title, .s-ab-section h2, .pp-section-head h2) {
    font-size: var(--t-section) !important;
    font-weight: 700 !important;
}
/* Smaller section titles that sit inside a column or above a grid */
body.site :is(.srp-year-head h2, .pp-section-head h2) { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem) !important; }

/* ---------- Panel / CTA titles ---------- */
body.site :is(.sp-panel h2, .sp-panel-title, .sp-cta h2, .sp-notice h2, .sp-quote :is(h2, h3), .ft-cta h2, .s-footer-cta h2, .svc-contact h2, .srp-cta h3, .srp-empty h3, .s-prose h2, .sp-rich h2) {
    font-size: var(--t-panel) !important;
    font-weight: 700 !important;
}
body.site .sp-panel-title { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem) !important; font-weight: 650 !important; }

/* A section-style title placed INSIDE a card / panel / sidebar drops to panel size */
body.site :is(.card, aside, [class*="-panel"], [class*="-card"], [class*="-aside"], .svc-contact) :is(.svc-title, .sp-head h2, .s-section-head h2, .sp-intro h2) {
    font-size: var(--t-panel) !important;
}

/* Events pages */
body.site :is(.evd-panel > h2) { font-size: var(--t-panel) !important; font-weight: 700 !important; }
body.site .ev-section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem) !important; font-weight: 700 !important; }
body.site .ev-spot-body h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem) !important; font-weight: 700 !important; }
body.site .ev-row-body h3 { font-size: var(--t-card-lg) !important; font-weight: 650 !important; }
body.site .ev-card-body h3 { font-size: var(--t-card) !important; font-weight: 650 !important; }
body.site .ev-month { font-size: var(--t-card) !important; }

/* ---------- Card titles ---------- */
body.site :is(.s-card-title, .svc-card h3, .sp-card h3, .sp-tile h3, .sp-feature h3, .s-quick-item h3, .pp-name, .srp-info h3, .s-ab-card h3, .s-ab-do h3, .ft-live-text strong) {
    font-size: var(--t-card) !important;
    font-weight: 650 !important;
}
body.site :is(.s-event-feature .s-card-title, .s-event-row .s-card-title) { font-size: var(--t-card-lg) !important; }

/* ---------- Lead paragraphs ---------- */
body.site :is(.hc-sub, .s-lead, .sp-lead, .srp-lead, .s-ab-hero-lead, .s-hero-lead, .hsr-page-title p:not(.hsr-theme-page-title-text), .sp-hero p) {
    font-size: var(--t-lead) !important;
    font-weight: 400 !important;
}

/* ---------- Body text inside cards ---------- */
body.site :is(.svc-summary, .sp-card p, .sp-tile p, .s-quick-item p, .s-card p, .s-ab-card p, .ft-about) {
    font-size: var(--t-body-sm) !important;
}

/* ---------- Small / meta ---------- */
body.site :is(.s-meta, .sp-meta, .pp-meta, .srp-info p, .srp-count, .svc-step p, .s-card small, .ft-live-text small, .breadcrumb, .aph-crumbs) {
    font-size: var(--t-small);
}
body.site :is(.breadcrumb, .breadcrumb-item) { font-size: var(--t-meta) !important; font-weight: 500; }

/* ---------- Eyebrows / labels ---------- */
body.site :is(.s-eyebrow, .hc-eyebrow, .ft-eyebrow, .srp-eyebrow, .hsr-page-title .hsr-theme-page-title-text, .sp-eyebrow, .s-ab-eyebrow, .ft-live-label, .svc-tag) {
    font-size: var(--t-eyebrow) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}
body.site .svc-tag { font-size: .6875rem !important; }

/* ---------- Navigation & buttons ---------- */
body.site :is(.s-nav .nav-link, .navbar .nav-link) { font-size: .9375rem; font-weight: 500; }
body.site :is(.s-btn, .hc-btn, .ft-btn, .svc-cta, .svc-btn, .srp-cta-btn, .btn) { }
body.site :is(.s-btn, .hc-btn, .ft-btn, .svc-cta) { font-weight: 650 !important; }

/* ---------- Footer ---------- */
body.site .ft-title, body.site .s-footer-title { font-size: var(--t-eyebrow) !important; }
body.site :is(.ft-links a, .ft-contact-row) { font-size: var(--t-body-sm) !important; }

/* ---------- Long-form readability ---------- */
body.site :is(.s-prose, .sp-rich, .sp-doc) { font-size: 1.0625rem; }
body.site :is(.s-prose, .sp-rich, .sp-doc) :is(p, li) { max-width: 72ch; }

/* ---------- Mobile tuning ---------- */
@media (max-width: 575.98px) {
    body.site { font-size: .96875rem; }
    body.site :is(.hc-title, .s-hero h1) { }
}
