/* ============================================================================
   Smart Dollar Place — tokens + self-hosted faces
   (sdp-theme 1.0.x, Stitch direction "B · The Receipt", picked 2026-10-30)
   Loaded first; main.css reads the --color-* / --font-size-* bridge below,
   sdp.css reads the --sd-* tokens.
   ========================================================================= */

/* --- Faces: Schibsted Grotesk 400–900 (variable) for headlines and UI (1.0.3,
       2026-10-30: matches the N-W3 logo's grotesk; replaced Libre Franklin 800,
       which the user found out of place); Be Vietnam Pro 400/600 + 400 italic for reading text; Space
       Mono 400/700 (latin only) for the receipt's figures and counts.
       Google Fonts css2 (Chrome UA), 2026-10-30. ------------------------- */
@font-face {
    font-family: 'Schibsted Grotesk';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/schibsted-grotesk-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Schibsted Grotesk';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/schibsted-grotesk-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: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/be-vietnam-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/be-vietnam-400-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: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/be-vietnam-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/be-vietnam-600-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: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/be-vietnam-400i-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/be-vietnam-400i-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: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/space-mono-400-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: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-mono-700-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;
}

:root {
    color-scheme: light;
    /* --- Palette (Stitch "The Receipt", 2026-10-30): white ground, receipt
       paper for the till slips, ONE deep teal for everything interactive.
       WCAG: #0B5563 on #FFFFFF 8.42 · on #FAF8F2 7.93 · on #F1EEE5 7.26 ·
       #FFFFFF on #0B5563 8.42 · #56615F on #FFFFFF 6.42 · on #FAF8F2 6.05 ·
       on #F1EEE5 5.53 · #1B2326 on #FAF8F2 15.0 */
    --sd-ground:      #FFFFFF;   /* page */
    --sd-white:       #FFFFFF;
    --sd-paper:       #FAF8F2;   /* receipt paper: till slips, newsletter */
    --sd-deep:        #F1EEE5;   /* footer */
    --sd-rule:        #E3E0D8;   /* hairlines, frames */
    --sd-leader:      #B9B4A8;   /* dotted leaders, dashed rules */
    --sd-ink:         #1B2326;   /* headlines + text */
    --sd-text:        #232C2F;
    --sd-meta:        #56615F;
    --sd-brand:       #0B5563;   /* deep teal: links, buttons, tab underline */
    --sd-brand-dark:  #083F49;   /* hover */
    --sd-brand-tint:  #E6EFF0;   /* hover wash, current topic */

    /* --- Type ---------------------------------------------------------------- */
    --sd-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --sd-body:    'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --sd-ui:      'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --sd-mono:    'Space Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --sd-size-body: clamp(1.0625rem, 1.01rem + 0.3vw, 1.1875rem);   /* 17–19px */
    --sd-lh-body:   1.72;
    --sd-lh-head:   1.12;
    --sd-title: clamp(2.125rem, 1.55rem + 2vw, 2.75rem);   /* article H1, capped 44px */
    --sd-h2:    clamp(1.5rem, 1.3rem + 0.7vw, 1.8125rem);
    --sd-h3:    clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
    --sd-label: 0.75rem;

    /* --- Shape & metrics ------------------------------------------------------ */
    --sd-radius:    8px;
    --sd-page-max:  1280px;
    --sd-sidebar:   304px;
    --sd-gutter:    clamp(1rem, 3vw, 2rem);
    /* the receipt's torn edge: a row of 12px teeth */
    --sd-tear: conic-gradient(from -45deg at 50% 100%, transparent 90deg, #000 0) 0 0 / 12px 100%;

    /* --- Bridge to main.css (do not restyle main.css) ------------------------- */
    --font-size-body-min: 1.0625rem;
    --font-size-body-max: 1.1875rem;
    --font-size-body-fluid: calc(1.01rem + 0.3vw);
    --font-size-h1-min: 2.125rem;
    --font-size-h1-max: 2.75rem;
    --font-size-h1-fluid: calc(1.5rem + 2.2vw);
    --font-size-h2-min: 1.5rem;
    --font-size-h2-max: 1.875rem;
    --font-size-h2-fluid: calc(1.3rem + 0.8vw);
    --font-size-h3-min: 1.1875rem;
    --font-size-h3-max: 1.375rem;
    --font-size-h3-fluid: calc(1.1rem + 0.35vw);
    --font-size-h4-min: 1.0625rem;
    --font-size-h4-max: 1.1875rem;
    --font-size-h4-fluid: calc(1.02rem + 0.2vw);
    --font-size-h5-min: 1rem;
    --font-size-h5-max: 1.0625rem;
    --font-size-h5-fluid: calc(0.98rem + 0.15vw);
    --font-size-h6-min: 1rem;
    --font-size-h6-max: 1rem;
    --font-size-h6-fluid: 1rem;
    --line-height-body: 1.72;
    --line-height-heading: 1.12;
    --color-primary: #0B5563;
    --color-primary-hover: #083F49;
    --color-heading: #1B2326;
    --color-accent: #0B5563;
    --color-text-dark: #1B2326;
    --color-text-medium: #56615F;
    --color-text-light: #56615F;
    --color-background: #FFFFFF;
    --color-background-light: #FFFFFF;
    --color-background-tint: #F1EEE5;
    --color-border: #E3E0D8;
    --color-border-soft: #E3E0D8;
    --color-footer-bg: #F1EEE5;
    --color-error: #B42318;
    --color-warning: #8A5A00;
    --font-family-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-family-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --border-radius: 8px;
    --border-radius-lg: 8px;
    --content-max: 780px;
    --page-max: 1280px;
    --color-border-light: #E3E0D8;
    --color-footer-border: #E3E0D8;
    --color-footer-text: #1B2326;
    --color-copyright: #56615F;
    --color-facebook: #0B5563; --color-facebook-hover: #083F49;
    --color-twitter: #0B5563; --color-twitter-hover: #083F49;
    --color-pinterest: #0B5563; --color-pinterest-hover: #083F49;
    --color-linkedin: #0B5563; --color-linkedin-hover: #083F49;
    --color-error-bg: #F9E3E0; --color-error-text: #8A1C12;
    --color-warning-bg: #F6EBD2; --color-warning-text: #6B4600;
    --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-heading: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
