/* THE KRATOS SKIN (12 Oct 2026): YNN's pages as kratos.marketing/analysis/* shows them. Loaded only with the secret
   Kratos header (src/worker.js "THE KRATOS SKIN"); youneednasser.com never loads it. js/kratos-skin.js turns every
   other colour of YNN's CSS into its Kratos twin; this file holds the exact Kratos tokens, Kratos's menu and footer,
   and the places that need a hand. Kratos = warm paper, ink, the bronze of the K logo, Inter + Noto Serif italic,
   mostly sharp corners, restrained warm shadows. Never YNN's dark ground, copper, Outfit or WebGL light. */

/* ── 1. THE TOKENS (beat :root[data-look="showroom"] by one attribute) ─────────────────────── */
:root[data-skin="kratos"],
:root[data-look="showroom"][data-skin="kratos"] {
  color-scheme: light;
  --k-ink: #0B0A09; --k-ink-3: #2B2825;
  --k-paper: #F6F3EE; --k-paper-2: #EFEBE3; --k-paper-3: #E5DFD3; --k-cream: #FBF8F2;
  --k-b50: #F7EDE2; --k-b100: #ECD5BD; --k-b200: #DDB892; --k-b300: #C69573; --k-b400: #AE7651; --k-b500: #945D3C; --k-b600: #6F4428; --k-b700: #4E2F1B;
  --k-grad: linear-gradient(135deg, #D9A77A 0%, #B27A4E 22%, #7A4424 48%, #C9885C 72%, #E6B98D 100%);
  --k-serif: 'Noto Serif', 'Iowan Old Style', Palatino, Georgia, serif;
  --k-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --k-shadow-md: 0 4px 16px -4px rgba(46, 30, 15, .10), 0 2px 4px rgba(46, 30, 15, .04);
  --k-shadow-lg: 0 24px 48px -12px rgba(46, 30, 15, .18), 0 8px 16px -8px rgba(46, 30, 15, .08);

  --bg: #F6F3EE; --bg-2: #FBF8F2; --bg-3: #EFEBE3; --bg-4: #E5DFD3;
  --fg: #0B0A09; --fg-2: #5E5853; --fg-3: #706962;
  --line: rgba(11, 10, 9, .10);
  --cu: #945D3C; --cu-hi: #6F4428; --cu-soft: rgba(148, 93, 60, .12); --cu-press: #6F4428;
  --grad: var(--k-grad);
  --glass: rgba(246, 243, 238, .97); --float: #FBF8F2;
  --shadow-float: var(--k-shadow-lg);
  --ok: #2E7D5B; --no: #B53A2A;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--k-serif);
  --r: 4px; --r-m: 4px; --r-s: 2px;
  --nav-h: 72px;

  --n-ink-2: #0B0A09;
  --n-border-strong: #CFC7B6; --border-strong: #CFC7B6; --stone-300: #CFC7B6;
  --sapphire-soft: #AE7651; --n-copper-500: #AE7651; --n-copper-700: #4E2F1B; --purple: #AE7651;
  --n-positive-soft: rgba(46, 125, 91, .10); --n-negative-soft: rgba(181, 58, 42, .10);
  --n-font-serif: var(--k-serif); --n-font-mono: var(--k-mono);
  --w-light: 400; --w-regular: 400; --w-medium: 500; --w-semibold: 600;
  --n-r-xs: 2px; --n-r-sm: 2px; --n-r-md: 4px; --n-r-lg: 4px; --radius-1: 2px; --radius-2: 4px; --radius-3: 4px;
  --n-shadow-md: var(--k-shadow-md); --shadow-md: var(--k-shadow-md);
  --n-shadow-lg: var(--k-shadow-lg); --shadow-lg: var(--k-shadow-lg);
  --shadow-inset: inset 0 0 0 1px rgba(11, 10, 9, .07);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px #AE7651;
  --n-chart-1: #945D3C; --n-chart-2: #0B0A09; --n-chart-grid: rgba(11, 10, 9, .07);
}

/* ── 2. THE GROUND: paper with life (a slow bronze light and a fine grain; nothing to hover, so it lives on a phone) ── */
:root[data-skin="kratos"] { background: var(--k-paper); }
:root[data-skin="kratos"] body {
  background: transparent;                      /* the paper is on <html>, so the light below can show through */
  color: var(--k-ink);
  font-family: var(--sans);
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11', 'calt', 'tnum';
  -webkit-font-smoothing: antialiased;
}
:root[data-skin="kratos"] body::before {
  content: ''; position: fixed; inset: -20vh -20vw; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42vw 34vw at 86% 8%, rgba(221, 184, 146, .34), transparent 70%),
    radial-gradient(38vw 30vw at 6% 64%, rgba(236, 213, 189, .40), transparent 72%),
    radial-gradient(30vw 24vw at 60% 110%, rgba(198, 149, 115, .16), transparent 70%);
  animation: kxDrift 38s ease-in-out infinite alternate;
}
:root[data-skin="kratos"] body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes kxDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4vw, 3vh, 0); } }
@media (prefers-reduced-motion: reduce) { :root[data-skin="kratos"] body::before { animation: none; } }
:root[data-skin="kratos"] .y-amb { display: none !important; }
:root[data-skin="kratos"].amb-still, :root[data-skin="kratos"].amb-still body { background: var(--k-paper) !important; }
:root[data-skin="kratos"] ::selection { background: var(--k-b200); color: var(--k-ink); }

/* ── 3. TYPE: Inter SemiBold, tight; emphasis is Noto Serif italic in bronze, never a gradient ── */
:root[data-skin="kratos"] h1, :root[data-skin="kratos"] h2 {
  font-family: var(--sans); font-weight: 600; letter-spacing: -.045em; color: var(--k-ink);
}
:root[data-skin="kratos"] h1 { line-height: .98; }
:root[data-skin="kratos"] h3, :root[data-skin="kratos"] .cc-title { font-weight: 600; letter-spacing: -.02em; }
:root[data-skin="kratos"] .accent,
:root[data-skin="kratos"] h1 em, :root[data-skin="kratos"] h2 em, :root[data-skin="kratos"] .n-em,
:root[data-skin="kratos"] [data-look="showroom"] .data-hero h1 .accent {
  font-family: var(--k-serif) !important; font-style: italic !important; font-weight: 600 !important;
  letter-spacing: -.02em !important;
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important; color: var(--k-b500) !important;
}
:root[data-skin="kratos"] .accent span, :root[data-skin="kratos"] h1 em span { background: none !important; -webkit-text-fill-color: currentColor !important; padding: 0 !important; margin: 0 !important; }
:root[data-skin="kratos"] .eyebrow {
  font-family: var(--k-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--k-b600);
}

/* ── 4. BUTTONS AND CHIPS: Kratos's ink button, sharp corners ── */
:root[data-skin="kratos"] .y-cta, :root[data-skin="kratos"] .btn-primary {
  background: var(--k-ink) !important; color: var(--k-paper) !important; border-radius: 4px !important; font-weight: 600;
}
:root[data-skin="kratos"] .y-cta:hover, :root[data-skin="kratos"] .btn-primary:hover { background: var(--k-ink-3) !important; }
:root[data-skin="kratos"] .y-ghost { background: transparent; color: var(--k-ink); border: 1px solid #CFC7B6; border-radius: 4px; }
:root[data-skin="kratos"] .y-pill { border-color: rgba(148, 93, 60, .35); color: var(--k-b600); }

/* ── 5. THE HEAD PHOTO: an editorial plate (a sharp frame on a cream mat with a hairline), not YNN's arch ── */
:root[data-skin="kratos"] .y-split > .y-photo {
  border-radius: 2px !important;
  background: var(--k-cream) !important;
  outline: 1px solid rgba(148, 93, 60, .45) !important; outline-offset: 10px !important;
  box-shadow: 0 30px 60px -22px rgba(46, 30, 15, .30), 0 0 0 10px var(--k-cream) !important;
}
:root[data-skin="kratos"] .y-photo::after {
  border-radius: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(11, 10, 9, .08) !important;
  background: linear-gradient(to top, rgba(46, 30, 15, .22), transparent 40%) !important;
}
:root[data-skin="kratos"] .y-photo::before { background: var(--k-paper) !important; }
:root[data-skin="kratos"] .y-split::after { opacity: .26 !important; filter: blur(80px) saturate(1.1) !important; }
:root[data-skin="kratos"] .y-photo img { filter: saturate(.92) contrast(1.02); }

/* ── 6. PANELS PEOPLE READ ARE SOLID (lists, pickers, tooltips, menus) ── */
:root[data-skin="kratos"] .nav-dropdown,
:root[data-skin="kratos"] [class*="picker"] [role="listbox"],
:root[data-skin="kratos"] [role="listbox"] {
  background-color: var(--k-cream);
}

/* ── 7. KRATOS'S MENU (replaces YNN's; the burger under 1200 px) ── */
:root[data-skin="kratos"]:not(.kx-ready) nav.navbar { visibility: hidden; }
:root[data-skin="kratos"] nav.navbar { display: none !important; }
.kx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(246, 243, 238, .97);         /* solid enough to read; no blur, so the lists inside open cleanly */
  border-bottom: 1px solid #E5DFD3;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  transition: box-shadow 260ms cubic-bezier(.22, 1, .36, 1);
}
.kx-nav[data-stuck="true"] { box-shadow: 0 1px 20px rgba(46, 30, 15, .07); }
.kx-nav__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.kx-brand {
  justify-self: start; display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; color: #0B0A09;
}
.kx-brand img { height: 26px; width: auto; display: block; }
.kx-menu {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 26px; font-size: 14px; font-weight: 600;
}
.kx-menu > li { position: relative; }
.kx-menu a { color: #5E5853; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color 160ms; }
.kx-menu a:hover, .kx-menu a[aria-current="page"], .kx-menu .is-here > a { color: #0B0A09; }
.kx-caret { width: 9px; height: 9px; opacity: .5; }
.kx-sub {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 236px; padding: 8px; margin: 0; list-style: none;
  background: #FBF8F2; border: 1px solid #E5DFD3; border-radius: 4px; box-shadow: 0 24px 48px -12px rgba(46, 30, 15, .18), 0 8px 16px -8px rgba(46, 30, 15, .08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 160ms cubic-bezier(.22, 1, .36, 1), transform 160ms cubic-bezier(.22, 1, .36, 1), visibility 160ms;
}
.kx-sub--wide { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); column-gap: 4px; left: 50%; translate: -50% 0; width: 520px; }
.kx-item:hover .kx-sub, .kx-item:focus-within .kx-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.kx-sub a { display: block; padding: 9px 12px; border-radius: 2px; color: #0B0A09; font-size: 13.5px; font-weight: 500; }
.kx-sub a:hover { background: #EFEBE3; color: #6F4428; }
.kx-sub a[aria-current="page"] { color: #6F4428; background: #F7EDE2; }
.kx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; border-radius: 4px;
  font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: background 160ms cubic-bezier(.22, 1, .36, 1);
}
.kx-btn--primary { background: #0B0A09; color: #F6F3EE; }
.kx-btn--primary:hover { background: #2B2825; }
.kx-nav__cta { justify-self: end; }
.kx-toggle {
  display: none; justify-self: end; width: 44px; height: 44px; padding: 0; background: transparent;
  border: 1px solid #CFC7B6; border-radius: 4px; cursor: pointer; align-items: center; justify-content: center;
}
.kx-toggle span { display: block; width: 17px; height: 1.5px; background: #0B0A09; position: relative; transition: background 160ms; }
.kx-toggle span::before, .kx-toggle span::after { content: ''; position: absolute; left: 0; width: 17px; height: 1.5px; background: #0B0A09; transition: transform 260ms cubic-bezier(.22, 1, .36, 1); }
.kx-toggle span::before { top: -5.5px; } .kx-toggle span::after { top: 5.5px; }
.kx-toggle[aria-expanded="true"] span { background: transparent; }
.kx-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.kx-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1199px) {
  .kx-nav__inner { grid-template-columns: 1fr auto; padding: 0 20px; gap: 14px; }
  .kx-nav__cta { display: none; }
  .kx-toggle { display: inline-flex; }
  .kx-nav__inner > nav { display: contents; }     /* the list is fixed below the bar: the bar holds only the name and the button */
  .kx-menu {
    position: fixed; inset: 72px 0 auto 0; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 28px; background: #F6F3EE; border-bottom: 1px solid #E5DFD3;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms cubic-bezier(.22, 1, .36, 1), transform 200ms cubic-bezier(.22, 1, .36, 1), visibility 200ms;
  }
  .kx-menu[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .kx-menu > li > a { min-height: 52px; font-size: 16px; color: #0B0A09; border-bottom: 1px solid #E5DFD3; justify-content: space-between; }
  .kx-caret { display: block; width: 12px; height: 12px; transition: transform 200ms; }
  .kx-item.is-open .kx-caret { transform: rotate(180deg); }
  .kx-sub, .kx-sub--wide {
    position: static; display: none; width: auto; min-width: 0; translate: none; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; background: transparent; padding: 4px 0 10px 10px; grid-template-columns: 1fr;
  }
  .kx-item.is-open .kx-sub { display: block; }
  .kx-sub a { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
}

/* ── 8. KRATOS'S FOOTER (ink, like kratos.marketing) ── */
:root[data-skin="kratos"] footer.yf { display: none !important; }
.kx-footer { background: #0B0A09; color: #F6F3EE; padding: 76px 0 32px; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; position: relative; z-index: 1; }
.kx-footer__grid { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.kx-brand--foot { color: #F6F3EE; font-size: 21px; margin-bottom: 16px; }
.kx-brand--foot img { height: 34px; }
.kx-footer__blurb { font-size: 13px; color: #A39A8D; line-height: 1.6; font-weight: 500; max-width: 34ch; margin: 0 0 20px; }
.kx-footer__addr { margin-top: 16px; }
.kx-footer h4 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #C69573; font-weight: 600; margin: 0 0 16px; }
.kx-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kx-footer ul a { color: #F6F3EE; text-decoration: none; font-size: 14px; font-weight: 600; transition: color 160ms; }
.kx-footer ul a:hover { color: #C69573; }
.kx-footer__legal {
  max-width: 1280px; margin: 52px auto 0; padding: 22px 32px 0; border-top: 1px solid #2B2825;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #8A837A; font-weight: 500;
}
.kx-footer__legal em { font-family: 'Noto Serif', Georgia, serif; font-style: italic; color: #C69573; }
.kx-social { display: flex; gap: 8px; }
.kx-social a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #2B2825; border-radius: 4px; color: #F6F3EE; }
.kx-social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 1080px) { .kx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .kx-footer__grid { grid-template-columns: 1fr; padding: 0 20px; gap: 36px; }
  .kx-footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .kx-footer__legal { padding: 22px 20px 0; }
}

/* ── 9. NUMBERS AND FIELDS (the places the colour pass cannot guess) ── */
:root[data-skin="kratos"] .k-value { font-weight: 600; letter-spacing: -.04em; }
:root[data-skin="kratos"] .cc-select, :root[data-skin="kratos"] .y-pick, :root[data-skin="kratos"] .y-pick-src,
:root[data-skin="kratos"] .data-main select, :root[data-skin="kratos"] .filter-bar select {
  background-color: #FBF8F2 !important; color: #0B0A09 !important; border: 1px solid #CFC7B6 !important; border-radius: 4px !important;
}
:root[data-skin="kratos"] .cc-select:hover, :root[data-skin="kratos"] .y-pick:hover { border-color: #945D3C !important; }
