/* Nepsis design tokens. Neutral surfaces keep the interface calm while the
   copper accent carries the warmth of the brand. Light/white only. */
html {
  color-scheme: light !important;
}
:root {
  color-scheme: light;
  /* «Ζεστό Φως» (warm light) tokens. Every page uses them; the --np-* tokens below map onto them.
     --nx-whop is only for Whop / Nepsis+ buttons. */
  --nx-paper: #FFFDF8;
  --nx-ink: #25211E;
  --nx-sun: #F08A24;
  --nx-accent: #B8501A;
  --nx-whop: #D97706;
  --nx-stages: #FFE6CF;
  --nx-coach: #ECE5F8;
  --nx-library: #E1EEDA;
  --nx-diary: #F4EADB;
  --nx-community: #FBE1DC;
  --nx-exams: #FFF0B8;
  --nx-pause: #D9F0E6;
  --np-canvas: #FFFDF8;
  --np-surface: #FFFFFF;
  --np-surface-raised: #FFFFFF;
  --np-surface-muted: #F7F0E6;
  --np-text: #25211E;
  --np-muted: #6E655C;
  --np-soft: #5A5148;
  --np-border: #EDE4D8;
  --np-glass: rgba(255, 253, 248, .88);
  --np-shadow: 0 18px 40px -28px rgba(126, 45, 10, .28);
  --np-shadow-sm: 0 1px 2px rgba(37, 33, 30, .06);
  --np-shadow-md: 0 18px 40px -28px rgba(126, 45, 10, .28);
  --np-shadow-lg: 0 22px 44px -34px rgba(126, 45, 10, .42);
  --np-modal-shadow: 0 24px 70px -28px rgba(0, 0, 0, .28);

  /* Bright brand fill with dark ink; text accents use deeper copper. */
  --np-accent: #F0702A;
  --np-accent-hover: #DB5F1D;
  --np-on-accent: #2A1408;
  --np-accent-ink: #B8501A;
  --np-accent-soft: rgba(240, 112, 42, .12);
  --np-accent-border: rgba(240, 112, 42, .38);
  --np-focus: #B8501A;
  --np-sun: #F08A24;
  --np-whop: #D97706;
  --np-scrim: rgba(0, 0, 0, .42);
  --np-success: #4E8F6B;
  --np-danger: #C2452D;
  --np-warning: #D9A21B;

  --np-stages: #FFE6CF;
  --np-coach: #ECE5F8;
  --np-library: #E1EEDA;
  --np-diary: #F4EADB;
  --np-community: #FBE1DC;
  --np-exams: #FFF0B8;
  --np-pause: #D9F0E6;
  --np-plus: #FDEBD3;
  --np-mine: #FFF1E3;
  --np-highlight: #FFF8EC;

  --np-stages-deep: #F4B27A;
  --np-coach-deep: #A592D6;
  --np-library-deep: #8DB37E;
  --np-diary-deep: #C9A673;
  --np-community-deep: #E88F83;
  --np-exams-deep: #F0C94F;
  --np-pause-deep: #6FBF9F;
  --np-plus-deep: #E9A55A;

  --np-font-sans: Nunito, ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --np-font-serif: Literata, Georgia, "Times New Roman", serif;
  --np-fs-xs: .75rem;
  --np-fs-sm: .875rem;
  --np-fs-base: 1rem;
  --np-fs-md: 1.125rem;
  --np-fs-lg: 1.375rem;
  --np-fs-xl: 1.75rem;
  --np-fs-2xl: 2.25rem;
  --np-fs-display: clamp(2.6rem, 5.6vw, 4.25rem);
  --np-lh-tight: 1.05;
  --np-lh-body: 1.6;
  --np-w-body: 400;
  --np-w-medium: 700;
  --np-w-bold: 800;
  --np-w-black: 900;

  --np-sp-1: 4px;
  --np-sp-2: 8px;
  --np-sp-3: 12px;
  --np-sp-4: 16px;
  --np-sp-5: 24px;
  --np-sp-6: 32px;
  --np-sp-7: 48px;
  --np-sp-8: 64px;
  --np-sp-9: 96px;

  --np-r-sm: 12px;
  --np-r-md: 16px;
  --np-r-lg: 24px;
  --np-r-xl: 32px;
  --np-r-pill: 999px;
  --np-page-width: 1180px;
  --np-gutter: 20px;
  --np-z-base: 0;
  --np-z-dock: 60;
  --np-z-header: 900;
  --np-z-drawer: 1001;
  --np-z-dialog: 1100;
  --np-z-toast: 1200;

  /* Compatibility aliases for all existing page styles. */
  --bg: var(--np-canvas);
  --card: var(--np-surface);
  --fg: var(--np-text);
  --muted: var(--np-muted);
  --border: var(--np-border);
  --orange: var(--np-accent-ink);
  --ember: #a34726;
  --sun: var(--np-sun);
  --green: #5d7864;
  --paper: var(--np-canvas);
  --ink: var(--np-text);
  --accent: var(--np-accent);
  --grad: linear-gradient(120deg, var(--np-sun) 0%, #C4672E 55%, #A94D2E 100%);
  --theme-header-bg: var(--np-glass);
  --theme-surface: var(--np-surface-raised);
  --theme-surface-soft: var(--np-surface-muted);
  --theme-hero-veil: var(--np-canvas);
  --theme-scrim: var(--np-scrim);
  --theme-shadow: rgba(0, 0, 0, .18);
}

/* Dark theme retired — Nepsis is light/white only. Keep the selector so any
   stale data-theme="dark" still resolves to the light tokens above. */


/* The coach page historically shadowed the root aliases locally. */
html:not([data-theme="dark"]) .coach-page {
  --bg: var(--np-canvas);
  --fg: var(--np-text);
  --card: var(--np-surface);
  --surface: var(--np-surface);
  --muted: var(--np-muted);
  --orange: var(--np-accent);
  --ember: #a34726;
  --border: var(--np-border);
}


body {
  color: var(--np-text);
  background-color: var(--np-canvas);
  font-family: var(--np-font-sans);
  font-size: var(--np-fs-base);
  line-height: var(--np-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* The header is the only shared translucent chrome; the solid fill is the
   fallback when backdrop-filter is unsupported. */
html body header,
html body header.top,
html body header.coach-header,
html body > .wrap > header,
html body.home-page header.top {
  background: var(--np-surface);
  border-bottom: 1px solid var(--np-border);
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  html body header,
  html body header.top,
  html body header.coach-header,
  html body > .wrap > header,
  html body.home-page header.top {
    background: var(--np-glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
/* A menu scrim is a dimmer, not another translucent content layer. */
html body :is(.scrim.open, .nepsis-menu-scrim.open),
html body.home-page :is(.hero-country, .globe-drag-hint) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Ordinary content surfaces stay flat: no global perspective or movement.
   State-specific cards and intentionally inverted panels remain page-owned. */
.card:not(.stage),
.panel:not(.next),
.stat:not(.stat-streak),
.entry,
.tool-panel {
  background: var(--np-surface);
  border-color: var(--np-border);
  box-shadow: var(--np-shadow);
}

/* Primary controls use a darker copper in light mode and dark ink on the
   lighter dark-mode accent. */
.btn-primary,
.primary,
.tool-button,
.coach-btn:not(.coach-btn-secondary) {
  background: var(--np-accent);
  border-color: var(--np-accent);
  color: var(--np-on-accent);
  box-shadow: 0 5px 14px -6px var(--np-accent-border);
}
.btn-primary:hover,
.primary:hover,
.tool-button:hover:not(:disabled),
.coach-btn:not(.coach-btn-secondary):hover {
  background: var(--np-accent-hover);
  border-color: var(--np-accent-hover);
  filter: none;
}

/* Reinforce keyboard focus even where a legacy component removes outlines. */
html :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--np-focus) !important;
  outline-offset: 3px;
}

/* Dark equivalents for older hard-coded light controls. These rules avoid
   forcing backgrounds or borders on timer, calendar and dashboard states. */













/* These older page-specific cards used translucent white or cream fills. */

/* Library suggestions and disclaimer had light-only fills. */















/* Theme toggle removed — site is light/white only. */
.theme-toggle { display: none !important; }

/* Phone header controls stay at least 44px so a thumb can hit them. */
@media (max-width: 480px) {
  .head-right, .headright, .controls, .top-actions { gap: 6px !important; }
  .menu-btn { width: 44px !important; height: 44px !important; flex: 0 0 44px; }
  .acc-btn, .account-btn { min-height: 44px; padding: 8px 12px !important; font-size: 16px !important; }
  .lang button { min-width: 44px; min-height: 44px; padding: 8px 10px !important; font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* Highlighted heading words use the deep copper, not the bright orange fill: bright orange text fails contrast on cream. */
html body :is(h1 em, h2 em, .hero h1 em, .intro h1 em, .wp-head h1 em, .cm-hero h1 em) {
  color: var(--np-accent-ink) !important;
  -webkit-text-fill-color: var(--np-accent-ink) !important;
}
