/* ══════════════════════════════════════════
   BASE — Reset, typography, global defaults
   ══════════════════════════════════════════ */

/* Box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Reset margins */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
    margin: 0;
}

/* Body */
body {
    font-family: var(--cg-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cg-text);
    background: var(--cg-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography — Athletics for headings, Inter for body */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--cg-font);
    color: var(--cg-text-heading);
    font-weight: 700;
    line-height: 1.25;
}

p, li, td, th, label, input, textarea, select, button, a {
    font-family: var(--cg-font-body);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--cg-text);
}

a {
    color: var(--cg-navy);
    text-decoration: none;
    transition: color var(--cg-transition);
}

a:hover {
    color: var(--cg-orange);
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Selection */
::selection {
    background: var(--cg-orange);
    color: #fff;
}

/* Focus outline for accessibility */
:focus-visible {
    outline: 2px solid var(--cg-blue);
    outline-offset: 2px;
}

/* Smooth scroll (respect user preference) */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Utility: screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mark/highlight */
mark {
    background-color: var(--cg-orange);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    padding: 10px 12px;
    border: 1px solid var(--cg-border);
    text-align: left;
}
table th {
    background: var(--cg-navy);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}
table td {
    font-size: 14px;
}

/* Inputs — prevent iOS zoom */
input, select, textarea {
    font-family: var(--cg-font);
    font-size: 16px;
}

/* Remove tap highlight on mobile */
a, button, input, select, textarea, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}
