/* ==========================================================================
   THE STANDARD ARENA - base.css
   Design tokens, typography, buttons, forms, chips, pills, utilities.
   Palette: deep navy / warm gold / ivory paper / charcoal ink.
   ========================================================================== */

:root {
        --sa-navy:      #0C1B2A;
        --sa-navy-2:    #12273C;
        --sa-navy-3:    #1B3450;
        --sa-gold:      #C9A227;
        --sa-gold-2:    #A8861B;
        --sa-gold-soft: rgba(201, 162, 39, 0.12);
        --sa-paper:     #FAF7F0;
        --sa-paper-2:   #F3EFE4;
        --sa-white:     #FFFFFF;
        --sa-ink:       #232E3A;
        --sa-grey:      #66707C;
        --sa-line:      #E6E0D2;
        --sa-line-dark: rgba(255, 255, 255, 0.14);
        --sa-serif:     'Fraunces', Georgia, 'Times New Roman', serif;
        --sa-sans:      'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
        --sa-shadow:    0 14px 40px rgba(12, 27, 42, 0.10);
        --sa-shadow-sm: 0 6px 18px rgba(12, 27, 42, 0.07);
        --sa-radius:    10px;
        --sa-radius-sm: 4px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
        margin: 0;
        background: var(--sa-paper);
        color: var(--sa-ink);
        font-family: var(--sa-sans);
        font-size: 17px;
        line-height: 1.7;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sa-serif); font-weight: 600; line-height: 1.15; color: var(--sa-navy); margin: 0 0 0.6em; }
p { margin: 0 0 1.1em; }
a { color: var(--sa-navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--sa-gold-2); }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--sa-line); margin: 2rem 0; }
::selection { background: var(--sa-gold); color: #1A1505; }
:focus-visible { outline: 2px solid var(--sa-gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout helpers ---------- */
.sa-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sa-container--narrow { width: min(760px, calc(100% - 48px)); }
.sa-section { padding: 92px 0; }
.sa-section--tight { padding: 56px 0; }
.sa-section--paper { background: var(--sa-white); border-block: 1px solid var(--sa-line); }
.sa-section--alt { background: var(--sa-paper-2); }
.sa-section--dark { background: var(--sa-navy); color: rgba(255, 255, 255, 0.82); }
.sa-section--dark h2, .sa-section--dark h3 { color: #fff; }
.sa-section--gsc { background: var(--sa-navy-2); }
.sa-center { text-align: center; }
.sa-rule { width: 64px; border-top: 2px solid var(--sa-gold); margin: 28px auto; }

.screen-reader-text {
        border: 0; clip-path: inset(50%); height: 1px; width: 1px;
        margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link:focus {
        clip-path: none; height: auto; width: auto; position: fixed; top: 12px; left: 12px;
        background: var(--sa-gold); color: #1A1505; padding: 10px 18px; z-index: 100000; font-weight: 600;
}

/* ---------- Typography utilities ---------- */
.lead-para { font-size: 1.18rem; color: var(--sa-ink); }
.entry-content p { margin-bottom: 1.35em; }
.entry-content h2 { font-size: 1.75rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.6em; }
.entry-content a { color: var(--sa-gold-2); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
        margin: 2em 0; padding: 0.4em 0 0.4em 1.4em;
        border-left: 3px solid var(--sa-gold);
        font-family: var(--sa-serif); font-size: 1.25rem; font-style: italic; color: var(--sa-navy);
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.35em; }
.entry-content li { margin-bottom: 0.4em; }

.text-link { font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; color: var(--sa-grey); display: inline-block; }
.text-link:hover { color: var(--sa-gold-2); }
.text-link--light { color: rgba(255, 255, 255, 0.75); }
.text-link--light:hover { color: var(--sa-gold); }

/* ---------- Buttons ---------- */
.btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 10px;
        font-family: var(--sa-sans); font-size: 0.78rem; font-weight: 700;
        letter-spacing: 0.16em; text-transform: uppercase; line-height: 1;
        padding: 16px 30px; border-radius: var(--sa-radius-sm);
        border: 1px solid transparent; cursor: pointer; text-align: center;
        transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--sa-gold); color: #1A1505; box-shadow: 0 8px 22px rgba(201, 162, 39, 0.35); }
.btn--gold:hover { background: #B8921F; color: #1A1505; }
.btn--navy { background: var(--sa-navy); color: #fff; }
.btn--navy:hover { background: var(--sa-navy-3); color: #fff; }
.btn--outline { border-color: var(--sa-navy); color: var(--sa-navy); background: transparent; }
.btn--outline:hover { background: var(--sa-navy); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: var(--sa-gold); color: var(--sa-gold); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: var(--sa-gold); color: var(--sa-gold); }
.btn--sm { padding: 11px 20px; font-size: 0.72rem; }
.btn--lg { padding: 19px 40px; font-size: 0.84rem; }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

/* ---------- Chips & pills ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0; }
.chip-row--wrap { justify-content: center; }
.chip {
        display: inline-flex; align-items: center; gap: 6px;
        font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
        padding: 9px 16px; border: 1px solid var(--sa-line); border-radius: 999px;
        background: var(--sa-white); color: var(--sa-grey); cursor: pointer;
        transition: all 0.2s ease;
}
.chip:hover { border-color: var(--sa-gold); color: var(--sa-gold-2); transform: translateY(-1px); }
.chip--active { background: var(--sa-navy); border-color: var(--sa-navy); color: #fff; }
.chip--dark { background: transparent; border-color: var(--sa-line-dark); color: rgba(255, 255, 255, 0.78); }
.chip--dark:hover { border-color: var(--sa-gold); color: var(--sa-gold); }

.pill {
        display: inline-flex; align-items: center; gap: 6px;
        font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
        padding: 6px 12px; border-radius: 3px; line-height: 1.2;
}
.pill--gold { background: var(--sa-gold); color: #1A1505; }
.pill--soft { background: var(--sa-gold-soft); color: var(--sa-gold-2); }
.pill--muted { background: #EDEAE2; color: var(--sa-grey); }
.pill--media { position: absolute; top: 14px; left: 14px; box-shadow: var(--sa-shadow-sm); }

/* ---------- Forms ---------- */
.sa-input, .sa-select, .sa-textarea, input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], select, textarea {
        width: 100%; font-family: var(--sa-sans); font-size: 0.98rem; color: var(--sa-ink);
        background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm);
        padding: 13px 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sa-input:focus, .sa-textarea:focus, input:focus, select:focus, textarea:focus {
        outline: none; border-color: var(--sa-gold); box-shadow: 0 0 0 3px var(--sa-gold-soft);
}
.sa-textarea { min-height: 150px; resize: vertical; }
.sa-label {
        display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
        text-transform: uppercase; color: var(--sa-grey); margin-bottom: 8px;
}
.sa-field { margin-bottom: 22px; }
.sa-required { color: var(--sa-gold-2); }
.sa-msg { margin-top: 18px; padding: 14px 18px; border-radius: var(--sa-radius-sm); font-size: 0.92rem; display: none; }
.sa-msg--ok { display: block; background: #EEF5EC; color: #2C5E2E; border: 1px solid #CBDFC9; }
.sa-msg--err { display: block; background: #FBEFEA; color: #A03E22; border: 1px solid #EBCDC1; }
.sa-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: sa-rot 0.7s linear infinite; vertical-align: -2px; }
@keyframes sa-rot { to { transform: rotate(360deg); } }

.sa-searchform { width: 100%; }
.sa-searchform-in { display: flex; gap: 12px; }
.sa-searchform-in input[type="search"] { flex: 1; }

/* Search panel in navbar */
.search-panel { background: var(--sa-white); border-top: 1px solid var(--sa-line); border-bottom: 1px solid var(--sa-line); padding: 26px 0; }
.search-panel .sa-searchform-in { max-width: 640px; margin-inline: auto; }

/* ---------- Empty states / notices ---------- */
.sa-empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 30px 0; }
.sa-empty h2 { font-size: 1.5rem; }
.sa-empty .btn { margin-top: 10px; }
.sa-note { font-size: 0.88rem; color: var(--sa-grey); margin-top: 16px; }
.sa-note--strong { color: var(--sa-navy); font-weight: 600; }

/* ---------- Editorial widths inside entries ---------- */
.entry-wrap { padding: 44px 0 20px; }
.entry-content { text-align: left; }
.alignwide, .alignfull { max-width: none; }

/* Accessible focus inside dark areas */
.sa-section--dark a:focus-visible, .footer a:focus-visible, .hero a:focus-visible { outline-color: var(--sa-gold); }
