/* =====================================================================
   00 Â· BASE â€” design tokens, typography, page shells
   Dash loads every .css in /assets alphabetically, so the number prefix
   sets the cascade order: base â†’ components â†’ layout â†’ cards â†’ pages.
   (Replaces brand.css + the :root block that used to live in admin.css)
   ===================================================================== */

/* ---------- Brand font: League Spartan (SIL Open Font License, see assets/fonts) ----------
   Self-hosted variable font: one file covers every weight from 100 to 900, so any
   font-weight in the CSS renders as a true weight (e.g. 600 is a real semi-bold).
   Two files: basic Latin, and extended Latin (accented letters, the â‚± sign). */
@font-face {
    font-family: 'League Spartan';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    /* League Spartan's built-in metrics put capitals at the top of the line box
       (text looks high inside buttons/pills). These overrides centre the capitals
       and restore a ~1.16em line height, close to Glacial Indifference. */
    ascent-override: 91%;
    descent-override: 25%;
    line-gap-override: 0%;
    src: url('../fonts/league-spartan-latin.woff2') format('woff2-variations'),
         url('../fonts/league-spartan-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                   U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'League Spartan';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    /* League Spartan's built-in metrics put capitals at the top of the line box
       (text looks high inside buttons/pills). These overrides centre the capitals
       and restore a ~1.16em line height, close to Glacial Indifference. */
    ascent-override: 91%;
    descent-override: 25%;
    line-gap-override: 0%;
    src: url('../fonts/league-spartan-latin-ext.woff2') format('woff2-variations'),
         url('../fonts/league-spartan-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                   U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Brand */
    --font-brand: 'League Spartan', sans-serif;
    --glacial: var(--font-brand);   /* old name, kept so every existing var(--glacial) picks up the new font */
    --green: #006400;
    --dark-green: #084008;
    --white: #ffffff;
    --off-white: #f2f2f2;
    --light-green: #eef3e4;
    --placeholder: #99a899;
    --title-size: 2.2rem;
    --title-weight: 700;
    --body-size: 1rem;
    --shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;

    /* Surfaces & ink (shared by the public site and the admin) */
    --a-bg: #f5f7f1;
    --a-surface: #ffffff;
    --a-line: #e2e9d8;
    --a-line-soft: #edf2e6;
    --a-ink: #1f2e1f;
    --a-muted: #66766a;
    --a-faint: #94a294;
    --a-hover: #f3f7ec;
    --a-select: #e8f1dc;
    --a-radius: 14px;
    --a-radius-sm: 10px;
    --a-shadow: 0 1px 2px rgba(8, 64, 8, .05), 0 6px 18px rgba(8, 64, 8, .05);

    /* Status palette (text / tint) */
    --st-new: #1d5f8f;        --st-new-bg: #e5f0f8;
    --st-urgent: #b42318;     --st-urgent-bg: #fdeceb;
    --st-progress: #8a5a00;   --st-progress-bg: #fff3d6;
    --st-resolved: #006400;   --st-resolved-bg: #e4f1dc;
    --st-neutral: #5c665c;    --st-neutral-bg: #eef0ec;

    /* One spacing rule for every page hero (public + admin) */
    --hero-pad-y: 44px;
    --hero-pad-x: clamp(28px, 4vw, 56px);
}

body {
    font-family: var(--font-brand);
    background-color: var(--white);
    color: var(--dark-green);
    font-size: var(--body-size);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-brand);
    color: var(--dark-green);
    font-weight: var(--title-weight);
}

/* ---------- Page shells ---------- */
.site-shell { background: var(--a-bg); min-height: 60vh; color: var(--a-ink); }
.admin-shell { background: var(--a-bg); min-height: 100vh; font-size: .9rem; color: var(--a-ink); }
.admin-shell h1, .admin-shell h2, .admin-shell h3,
.admin-shell h4, .admin-shell h5, .admin-shell h6 { color: var(--dark-green); }

.site-container { max-width: 1240px; margin: 0 auto; padding: 28px 28px 56px; }
.site-container.narrow { max-width: 1040px; }
.admin-container { max-width: 1680px; margin: 0 auto; padding: 22px 28px 40px; }

/* The white "no photo" icon, tinted green so it shows on white cards */
.site-shell img[src$="product_icon.svg"]:not([class*="ico"]),
.admin-shell img[src$="product_icon.svg"]:not([class*="ico"]),
.a-modal img[src$="product_icon.svg"]:not([class*="ico"]) {
    filter: brightness(0) saturate(100%) invert(22%) sepia(90%) saturate(1500%) hue-rotate(95deg);
    opacity: .45; max-width: 64px !important; max-height: 64px !important;
}

@media (max-width: 900px) {
    .site-container { padding: 22px 16px 44px; }
    .admin-container { padding: 18px 16px 32px; }
}