/* Site chrome: color tokens, header, footer, flash and cookie notice, shared by every public
   layout. layouts/application links it after Bootstrap, so the scoped rules below win there.
   Plain CSS: the production Sass compressor rejects min() and max() with mixed units.
   The light palette is the default; the dark one applies for a dark system preference with no
   saved choice, or for <html data-theme="dark">. */

:root {
  color-scheme: light;
  --ink: #121415;
  --ink-2: #2b2e31;
  --ink-3: #44484c;
  --black: #0b0c0d;
  --black-2: #16181a;
  --paper: #ffffff;
  --canvas: #f6f5f2;
  --surface: #ffffff;
  --stripe: #fbfaf8;
  --cover: #dfe3e6;
  --header-bg: rgba(255, 255, 255, .96);
  --panel-bg: rgba(255, 255, 255, .94);
  --line: #e4e3e0;
  --line-strong: #d6d4cf;
  --line-dark: #2a2d30;
  --muted: #5c6066;
  --muted-dark: #a6abb1;
  --red: #ba122b;
  --red-hover: #8f0e21;
  --red-on-dark: #f2485b;
  --accent: #ba122b;
  --ok: #1d7a45;
  --ok-bg: #e6f5ec;
  --warn-bg: #fdeceb;
  --alert-bg: #fff3f3;
  --notice-bg: #fff4d6;
  --logo-light: block;
  --logo-dark: none;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(52px, 6.8vw, 96px);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 2px rgba(18, 20, 21, .06), 0 8px 24px rgba(18, 20, 21, .06);
  --shadow-lg: 0 2px 4px rgba(18, 20, 21, .06), 0 24px 64px rgba(18, 20, 21, .14);
  --header-h: 68px;
}
/* The dark palette, once for the system preference and once for a saved choice. Keep both the
   same: plain CSS cannot share one block between a media query and a selector. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eef0f1;
    --ink-2: #cfd3d6;
    --ink-3: #c2c6ca;
    --black: #050607;
    --black-2: #121416;
    --paper: #131517;
    --canvas: #1a1d20;
    --surface: #1c1f22;
    --stripe: #212529;
    --cover: #1a1d20;
    --header-bg: rgba(19, 21, 23, .92);
    --panel-bg: rgba(19, 21, 23, .92);
    --line: #2c3034;
    --line-strong: #3a3f44;
    --line-dark: #2c3034;
    --muted: #a6abb1;
    --red-hover: #d41a34;
    --accent: #f2485b;
    --ok: #6fd39a;
    --ok-bg: #163b27;
    --warn-bg: #3a1419;
    --alert-bg: #2a1416;
    --notice-bg: #3a3014;
    --logo-light: none;
    --logo-dark: block;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 64px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef0f1;
  --ink-2: #cfd3d6;
  --ink-3: #c2c6ca;
  --black: #050607;
  --black-2: #121416;
  --paper: #131517;
  --canvas: #1a1d20;
  --surface: #1c1f22;
  --stripe: #212529;
  --cover: #1a1d20;
  --header-bg: rgba(19, 21, 23, .92);
  --panel-bg: rgba(19, 21, 23, .92);
  --line: #2c3034;
  --line-strong: #3a3f44;
  --line-dark: #2c3034;
  --muted: #a6abb1;
  --red-hover: #d41a34;
  --accent: #f2485b;
  --ok: #6fd39a;
  --ok-bg: #163b27;
  --warn-bg: #3a1419;
  --alert-bg: #2a1416;
  --notice-bg: #3a3014;
  --logo-light: none;
  --logo-dark: block;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 64px rgba(0, 0, 0, .6);
}

/* ---------- Chrome base ---------- */
/* Repeats the www body type, so the chrome looks the same over a Bootstrap page. */
:is(.site-header, .site-footer, .flash, .cookie-notice) {
  font: 400 18px/1.6 var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* :where keeps these at element weight: they beat Bootstrap's link colors, not the chrome's. */
:where(.site-header, .site-footer, .flash, .cookie-notice) a,
:where(.site-header, .site-footer, .flash, .cookie-notice) a:hover { color: inherit; text-decoration: none; }
:where(.site-header, .site-footer, .flash, .cookie-notice) :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .cookie-notice :focus-visible { outline-color: var(--red-on-dark); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* The www .container and .btn, scoped: Bootstrap defines both under the same names. */
:is(.site-header, .site-footer, .flash, .cookie-notice) .container {
  width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
}
:is(.site-header, .site-footer, .flash, .cookie-notice) .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 6px; box-shadow: none;
  font: 600 16px/1.25 var(--font); letter-spacing: .005em; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.site-header .btn--red, .site-header .btn--red:hover { color: #fff; }
.site-header .btn--red { background: var(--red); }
.site-header .btn--red:hover { background: var(--red-hover); }
.site-header .btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.site-header .btn--ghost:hover { background: var(--ink); color: var(--paper); }
.site-header .btn--sm { min-height: 40px; padding: 9px 16px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand__light { display: var(--logo-light); }
.brand__dark { display: var(--logo-dark); }
.nav { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 2px; height: 100%; margin-left: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 0; background: none; border-radius: 6px;
  font: 500 15.5px/1 var(--font); color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--canvas); }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--accent); background: var(--canvas); }
.nav__item > .nav__link.is-current::before, .nav__link[aria-current="page"]::before {
  content: ""; position: absolute; bottom: 0; left: 12px; right: 12px; height: 3px; background: var(--accent);
}
.nav__chev { width: 10px; height: 10px; transition: transform .2s; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__link--account { max-width: 14em; }
.nav__link--account > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-fallback { font-size: 15px; font-weight: 600; text-underline-offset: 3px; }
.site-header.has-navigation .nav-fallback, .site-header:not(.has-navigation) .nav,
.site-header:not(.has-navigation) .tools-menu, .site-header:not(.has-navigation) .burger { display: none; }
.menu {
  position: absolute; top: 100%; left: -12px; z-index: 60;
  min-width: 300px; padding: 8px; max-height: calc(100vh - var(--header-h) - 8px); overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s, transform .16s;
}
.menu--wide { width: 580px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.menu--right { left: auto; right: 0; }
.nav__item.is-open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu a, .menu__action { display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"], .menu__action:hover, .menu__action:focus-visible { background: var(--canvas); }
.menu a:focus-visible, .menu__action:focus-visible { outline-offset: -3px; }
.menu a[aria-current="page"] b, .menu a:hover b, .menu__action:hover { color: var(--accent); }
.menu__form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.menu__action { font-size: 15.5px; font-weight: 700; }
.menu .menu__overview { grid-column: 1 / -1; margin-bottom: 4px; border-inline-start: 3px solid var(--accent); border-radius: 3px; background: var(--canvas); }
.menu .menu__overview:is(:hover, :focus-visible) b { text-decoration: underline; text-underline-offset: 3px; }
.menu b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.menu span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.menu__foot { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s; content: ""; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1200px) {
  .nav, .site-header__tools .tools-menu, .site-header__tools .site-header__wide { display: none; }
  .burger { display: block; margin-left: 4px; }
  .site-header__tools { margin-left: auto; }
  .site-header__tools .btn { min-height: 40px; padding: 9px 14px; font-size: 15px; }
}
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h) - 1px); max-height: calc(100dvh - var(--header-h) - 1px); overflow-y: auto; overscroll-behavior: contain; }
.nav-open .mobile-nav { display: block; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav > .container > a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav > .container > a { border-bottom: 1px solid var(--line); }
.mobile-nav details a { display: block; min-height: 44px; padding: 11px 12px; border-inline-start: 2px solid var(--line); text-decoration: none; color: var(--ink); font-size: 16px; line-height: 1.4; }
.mobile-nav details a:last-child { margin-bottom: 12px; }
.mobile-nav details[open] summary, .mobile-nav .is-current { color: var(--accent); }
.mobile-nav details[open] .nav__chev { transform: rotate(180deg); }
.mobile-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; border-color: var(--accent); background: var(--canvas); }
.mobile-nav details .menu__form { margin: 0 0 12px; border: 0; padding: 0; }
.mobile-nav details .menu__action { min-height: 44px; padding: 11px 12px; border-inline-start: 2px solid var(--line); border-radius: 0; font-size: 16px; }
.mobile-nav__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px 16px; font-weight: 700; font-size: 17px; }
@media (min-width: 1201px) { .mobile-nav { display: none !important; } }
/* The switch needs www.js, which reveals it. It sits in the footer and the phone menu. */
.theme-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); }
.theme-switch[hidden] { display: none; }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.theme-switch button:focus-visible { outline-offset: 0; }
.theme-switch svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .site-header__bar { gap: 12px; }
  .brand img { height: 36px; }
  .site-header__tools .btn { min-height: 44px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #d5d8db; font-size: 15px; }
.site-footer a { text-decoration: none; color: #d5d8db; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); padding: clamp(40px, 4.6vw, 72px) 0 40px; }
.footer__brand img { height: 46px; width: auto; }
.footer__brand > a { display: inline-flex; vertical-align: top; }
.footer__brand p { margin: 16px 0 0; color: var(--muted-dark); line-height: 1.55; max-width: 42ch; }
.footer__col summary { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 0; list-style: none; cursor: pointer; }
.footer__col summary::-webkit-details-marker { display: none; }
.footer__col h2 { font: 700 12.5px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--red-on-dark); margin: 0; }
.footer__col[open] summary .nav__chev { transform: rotate(180deg); }
.footer__col summary[aria-disabled="true"] { cursor: default; }
.footer__col summary[aria-disabled="true"] .nav__chev { display: none; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin: 6px 0 0; line-height: 1.4; }
.footer__col a { display: inline-block; padding: 2px 0; }
.footer__col a[aria-current="page"] { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red-on-dark); text-underline-offset: 4px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; font-style: normal; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0 40px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 14px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.site-footer .theme-switch { border-color: var(--line-dark); background: var(--black-2); }
.site-footer .theme-switch button { color: var(--muted-dark); }
.site-footer .theme-switch button:hover { color: #fff; }
.site-footer .theme-switch button[aria-pressed="true"] { background: #fff; color: var(--black); }
@media (max-width: 1024px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 0; padding: 32px 0 0; }
  .footer__brand { padding-bottom: 24px; }
  .footer__brand img { height: 38px; }
  .footer__col { border-top: 1px solid var(--line-dark); }
  .footer__col summary { min-height: 48px; padding: 12px 4px; }
  .footer__col h2 { font-size: 14px; }
  .footer__col ul { padding-bottom: 12px; }
  .footer__col li { margin: 0; }
  .footer__col a { display: block; padding: 11px 8px; line-height: 1.5; }
  .footer__bottom { display: grid; padding: 22px 0; gap: 12px; }
  .footer__bottom nav { gap: 8px 16px; }
  .footer__legal { gap: 8px 16px; }
  .footer__bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__contact { display: grid; justify-items: start; gap: 0; margin-bottom: 12px; }
  .footer__contact span { margin-bottom: 4px; }
  .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Flash and cookie notice ---------- */
.flash { border-bottom: 1px solid var(--line); background: var(--canvas); }
.flash__msg { display: flex; align-items: baseline; gap: 12px; padding-top: 12px; padding-bottom: 12px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.flash__msg::before { content: ""; flex: none; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.flash[role="alert"] { background: var(--alert-bg); }
.flash[role="alert"] .flash__msg::before { width: 8px; height: 8px; border: 0; background: var(--accent); transform: rotate(45deg); }
.flash__msg p:last-child { margin-bottom: 0; }
.flash__msg ul { margin: 0; padding-inline-start: 1.25em; }
.cookie-notice {
  background: var(--black); color: #fff; font-size: 14px; line-height: 1.45;
}
.cookie-notice__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 6px; }
.cookie-notice a { text-underline-offset: 3px; }
.cookie-notice .btn { flex: none; min-height: 44px; padding: 8px 14px; font-size: 14px; background: transparent; color: #fff; border-color: #919397; }
.cookie-notice .btn:hover { background: #fff; color: var(--black); border-color: #fff; }
.cookie-notice .btn[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  :is(.site-header, .site-footer) *, :is(.site-header, .site-footer) *::before { transition: none !important; }
}

/* ---------- Store cart ---------- */
.cart-link { position: relative; }
.cart-link__icon { width: 20px; height: 20px; }
.cart-link__count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px var(--font); text-align: center;
}
