/* Tokens: colours, type scale, radii, shadows and layout sizes, light and dark. */

:root {
  --ncc-ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* the one ease-out for motion: entrances, menus, sheets, presses (the script reads it too) */
  --ncc-dur-release: 100ms; /* a press springs back */
  --ncc-dur-leave: 120ms; /* things on their way out: the old page in a page change, the search panel and Sort menu closing */
  --ncc-dur-press: 140ms; /* a press goes in */
  --ncc-dur-fade: 150ms; /* colour, border, shadow and opacity changes; small menus opening */
  --ncc-dur-ui: 200ms; /* chevrons, the menu sheet closing, chip entrances, the swipe spring-back */
  --ncc-dur-move: 250ms; /* the phone chip row and Sort button tucking away, card photos fading in */
  --ncc-dur-travel: 300ms; /* entrances, page transitions, the photo hand-off, the menu sheet opening */
  /* Colours copied from oliur.com (2026-11-12): page, text greys, button, field, line and link colours; each token names what it takes. That site has no dark theme, so the dark values below stay the Cards greys with a lighter link blue. Type steps, radii and the menu shadow are still the Cards design system's. */
  --ncc-page: #fbfbfb; /* oliur.com page background */
  --ncc-surface: #ffffff; /* white: menus, and buttons that sit on a grey panel */
  --ncc-muted-bg: #f5f5f5; /* oliur secondary button and panel fill: filled controls, active nav, panels */
  --ncc-border: #e5e5e5; /* oliur line */
  --ncc-border-strong: #d4d4d4; /* oliur strong line */
  --ncc-placeholder: #666666; /* oliur body grey: 4.5:1 on the #e5e5e5 field fill (its own #737373 placeholder is 3.7:1) */
  --ncc-faint: #a3a3a3; /* oliur faint grey: decorative glyphs only (2.5:1 on the page), never text someone has to read */
  --ncc-muted: #666666; /* oliur body grey: 5.5:1 on the page, 5.2:1 on a #f5f5f5 panel (#737373 is 4.3:1 there) */
  --ncc-subtle: #737373; /* oliur nav grey: 4.6:1 on the page; nav and filter text, never on a grey panel */
  --ncc-secondary: #666666; /* oliur body grey: descriptions, excerpts */
  --ncc-ink: #171717; /* oliur title colour */
  --ncc-primary: #262626; /* oliur button */
  --ncc-primary-fg: #ffffff; /* white on it */
  --ncc-primary-hover: #666666; /* oliur button hover */
  --ncc-identity-bg: #171717; /* oliur dark surface: the official banner */
  --ncc-identity-fg: #d4d4d4; /* neutral-300 */
  --ncc-thumb: #d4d4d4; /* Cards track-strong */
  --ncc-edge: oklch(0 0 0 / 0.1); /* image outlines: pure black / white, never tinted */
  --ncc-card-shadow: 0 0 0 0 transparent; /* no rings or soft shadows at rest: surfaces are told apart by tone */
  --ncc-card-shadow-hover: 0 0 0 0 transparent;
  --ncc-shadow: var(--ncc-card-shadow);
  --ncc-float-shadow: 0 0 0 1px rgba(10,10,10,0.08), 0 1px 2px 0 rgba(10,10,10,0.12), 0 4px 8px -4px rgba(10,10,10,0.16); /* Cards shadow-menu: menus and other floating layers */
  --ncc-inverse: #171717; /* oliur dark surface: About's "Cases stay open" panel, step numbers */
  --ncc-inverse-fg: #ffffff; /* Cards fg-inverse: text on it */
  --ncc-danger: #b00020; /* oliur error red: an invalid field's line */
  --ncc-danger-fg: #b00020; /* oliur error red: error text, 7.9:1 on white */
  --ncc-success: #1e6b3a; /* oliur success green: the sent notice's line and tick */
  --ncc-radius-control: 8px; /* Cards radius-button / radius-lg: buttons, fields, tabs, icon buttons */
  --ncc-radius-menu: 13px; /* Cards radius-2xl: menus */
  --ncc-radius-item: 5px; /* menu items: the menu's 13px less its 8px padding (concentric) */
  --ncc-header-h: 104px; /* identity bar 36 + nav bar 68 (the JS measures the real height) */
  --ncc-footer-h: 0px; /* no fixed footer: the band scrolls with the page */
  --ncc-sticky-top: 24px; /* sticky things live inside .ncc-scroll, which starts under the header */
  --ncc-fixed-top: calc(var(--ncc-header-h) + var(--wp-admin--admin-bar-height, 0px) + 24px); /* fixed things are measured from the viewport */
  --ncc-side-w: 260px;
  --ncc-max: 1344px; /* content width (1440 with the 48px gutters), shared by header, identity bar, footer and every page wrapper */
  --ncc-control-border: #737373; /* Cards neutral: the first step that is 3:1 on white and on the canvas (field-line #e5e5e5 is 1.2:1) */
  --ncc-focus: var(--ncc-ink); /* Cards line-focus: 2px ring */
  --ncc-accent: #0f4bf1; /* oliur blue: text links and the selection tint; buttons stay #262626 as on oliur.com */
  --ncc-link: #0f4bf1; /* oliur link blue: 6.9:1 on the page */
  --ncc-link-hover: #0a2f94; /* oliur link hover */
  --ncc-serif: var(--ncc-font); /* Cards: Inter everywhere; the token stays so the heading rules keep working */
  --ncc-band: #f5f5f5; /* oliur panel grey: footer band, privacy note, row hover */
  --ncc-divider: #e5e5e5; /* oliur line */
  --ncc-media-bg: #f5f5f5; /* oliur panel grey: photo placeholders */
  --ncc-media-radius: 8px; /* Cards radius-lg: photos and their placeholders */
  --ncc-hover-btn: #e5e5e5; /* oliur secondary button hover */
  --ncc-outline: 0 0 0 0 transparent;
  --ncc-body: #666666; /* oliur body text: long-form, 5.5:1 on the page */
  --ncc-field-border: #737373; /* Cards neutral: form fields, 4.7:1 on white */
  --ncc-input-ring: #737373; /* Cards neutral: search fields */
  --ncc-link-line: color-mix(in srgb, #0f4bf1 40%, transparent); /* link underline at rest: the link blue, lighter */
  --ncc-safe-x: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); /* a phone on its side: the notch side's inset, on both sides so centred things stay centred */
  --ncc-gutter: max(48px, var(--ncc-safe-x)); /* 24 under 1180, 20 on phones; never less than the notch */
  --ncc-control-h: 40px;
  --ncc-font: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* type scale (interfaces.dev "Working with type"): a handful of sizes, named by role */
  /* the five type steps; nothing else is used for text. rem, so a reader's larger default font size applies. Cards sizes at a 16px root: 14 (body-sm), 16 (body-md), 18 (body-lg), 24 (heading-5), up to 56 (heading-1) */
  --ncc-step-small: 0.875rem;   /* meta, counts, controls, captions */
  --ncc-step-body: 1rem;    /* running text */
  --ncc-step-lead: 1.125rem;    /* lead sentences and statements */
  --ncc-step-title: 1.5rem;   /* section headings, card names */
  --ncc-step-display: clamp(2.25rem, 5.6vw, 3.5rem); /* page titles */
  --ncc-step-display-case: clamp(2.125rem, 4.6vw, 3rem); /* case names: long names stay within two lines beside the photo */
  --ncc-text-xs: 0.75rem;    /* micro: counts, credits */
  --ncc-text-sm: 0.8125rem;    /* captions, meta, excerpts */
  --ncc-text-ui: 0.875rem;    /* controls, menus, chips */
  --ncc-text-base: 1rem;  /* long-form and section headings */
  --ncc-text-lg: 1.125rem;    /* card-level headings */
  --ncc-text-xl: 1.25rem;    /* wordmark, group labels */
  --ncc-text-2xl: 1.5rem;   /* page titles */
  --ncc-text-3xl: 1.75rem;   /* display, rare */
  --ncc-text-4xl: 2.5rem;   /* hero, rare */
}
html[data-theme="dark"] {
  --ncc-band: #202020; /* Cards subtle */
  --ncc-divider: rgba(255,255,255,0.07); /* Cards line */
  --ncc-media-bg: #252525; /* Cards surface */
  --ncc-hover-btn: #343434; /* Cards control-hover */
  --ncc-outline: 0 0 0 0 transparent;
  --ncc-body: #d4d4d4; /* long-form in the dark theme: a step under the white ink, as light's #666 sits under its #171717 (pure white read as glare in the case stories, 2026-11-17); 12:1 on the page */
  --ncc-field-border: #737373; /* Cards neutral */
  --ncc-input-ring: #737373; /* Cards neutral */
  --ncc-control-border: #737373; /* Cards neutral */
  --ncc-link: #8aa9ff; /* the link blue, lightened: 7.6:1 on #171717 (#0f4bf1 is 2.9:1 there) */
  --ncc-link-hover: #b3c6ff;
  --ncc-accent: #8aa9ff;
  --ncc-link-line: color-mix(in srgb, #8aa9ff 45%, transparent);
  --ncc-danger: #fb2c36; /* Cards danger: the light theme's #b00020 is too dark here */
  --ncc-success: #00c950;
  --ncc-page: #171717; /* Cards canvas: a dark grey, never black */
  --ncc-surface: #252525; /* Cards surface: higher is lighter */
  --ncc-muted-bg: #2c2c2c; /* Cards control: filled controls, a shade lighter than the surface */
  --ncc-border: rgba(255,255,255,0.07); /* Cards line */
  --ncc-border-strong: rgba(255,255,255,0.18); /* Cards line-strong */
  --ncc-focus: #ffffff; /* Cards line-focus */
  --ncc-placeholder: #a1a1a1; /* Cards fg-muted */
  --ncc-faint: #737373; /* Cards fg-subtle */
  --ncc-muted: #a1a1a1; /* Cards fg-muted: 7.1:1 on #171717 */
  --ncc-subtle: #a1a1a1; /* Cards fg-muted */
  --ncc-secondary: #a1a1a1; /* Cards fg-muted */
  --ncc-ink: #ffffff; /* Cards fg */
  --ncc-primary: #f2f2f2; /* Cards primary */
  --ncc-primary-fg: #0a0a0a; /* Cards primary-foreground */
  --ncc-primary-hover: #e2e2e2; /* Cards primary-hover */
  --ncc-thumb: #525252; /* Cards track-strong */
  --ncc-edge: oklch(1 0 0 / 0.1);
  --ncc-card-shadow: 0 0 0 0 transparent; /* no rings or soft shadows at rest: surfaces are told apart by tone */
  --ncc-card-shadow-hover: 0 0 0 0 transparent;
  --ncc-float-shadow: 0 0 0 0.5px #434343, 0 1px 2px 0 rgba(0,0,0,0.5), 0 4px 8px -4px rgba(0,0,0,0.5); /* Cards shadow-menu */
  --ncc-danger-fg: #ffc9c9; /* Cards danger-fg */
  --ncc-inverse: #ffffff; /* Cards inverse */
  --ncc-inverse-fg: #0a0a0a; /* Cards fg-inverse */
}
@media (max-width: 1024px) {
  :root { --ncc-gutter: max(24px, var(--ncc-safe-x)); }
  :root { --ncc-footer-h: 0px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --ncc-side-w: 220px; }
}
@media (max-width: 767px) {
  :root { --ncc-control-h: 44px; }
}
:root { --ncc-pill: 999px; } /* Cards radius-full: counts, chips, the theme switch; controls take --ncc-radius-control */
@media (max-width: 1179px) {
  :root { --ncc-gutter: max(24px, var(--ncc-safe-x)); }
}
@media (max-width: 767px) {
  :root { --ncc-gutter: max(20px, var(--ncc-safe-x)); }
}
html[data-theme="dark"] { --ncc-identity-bg: #0a0a0a; --ncc-identity-fg: #a1a1a1; }
