:root {
  /* Brand type — mirrors CheekyApp constants/tokens.ts */
  --font-display: "Lora", serif;
  --font-sans: "Lora", serif;
  --font-mono: "Lora", serif;

  /* Brand color — mirrors CheekyApp constants/tokens.ts (accent stays site gold) */
  --bone: #F3F4F6;
  --bone-2: #E5E7EB;
  --paper: #ffffff;
  --ink: #0A0A0A;
  --ink-2: #1F2937;
  --ink-3: #4B5563;
  --ink-4: #6B7280;
  --dark-surface: #1C1C1E;
  --accent-ivy: #2E4338;
  --accent-atelier: #2F5D50;
  --accent-saffron: #E89947;
  --accent-marigold: #F59E0B;

  /* Type scale: fixed sizes */
  --fs-10: 10px;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-17: 17px;
  --fs-19: 19px;
  --fs-20: 20px;
  --fs-22: 22px;
  --fs-24: 24px;
  --fs-26: 26px;
  --fs-27: 27px;
  --fs-28: 28px;
  --fs-30: 30px;
  --fs-32: 32px;
  --fs-34: 34px;
  --fs-40: 40px;
  --fs-84: 84px;

  /* Type scale: fluid (responsive headings) */
  --fs-fluid-2xs: clamp(13px, 1.54vw, 15px);
  --fs-fluid-xs: clamp(15px, 2.1vw, 20px);
  --fs-fluid-sm: clamp(17px, 2.1vw, 22px);
  --fs-fluid-md: clamp(18px, 2.45vw, 25px);
  --fs-fluid-lg: clamp(20px, 2.8vw, 28px);
  --fs-fluid-xl: clamp(21px, 3.15vw, 32px);
  --fs-fluid-2xl: clamp(22px, 2.8vw, 32px);
  --fs-fluid-3xl: clamp(25px, 3.5vw, 36px);
  --fs-fluid-4xl: clamp(28px, 4.2vw, 52px);
  --fs-fluid-5xl: clamp(31px, 10.5vw, 50px);
  --fs-fluid-6xl: clamp(38px, 5.6vw, 70px);
  --fs-fluid-7xl: clamp(45px, 6.3vw, 70px);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: #ffffff;
}

body {
  min-height: 100vh;
}

body[data-page] {
  --chrome-bg: rgba(255, 255, 255, 0.9);
  --chrome-bg-strong: rgba(255, 255, 255, 0.96);
  --chrome-bg-soft: rgba(255, 255, 255, 0.6);
  --chrome-border: rgba(26, 26, 26, 0.1);
  --chrome-text: #1F2937;
  --chrome-text-muted: rgba(26, 26, 26, 0.58);
  --chrome-accent: #c99722;
  --chrome-icon-bg: rgba(201, 151, 34, 0.14);
  --chrome-link-border: rgba(26, 26, 26, 0.08);
  --chrome-link-hover-border: rgba(201, 151, 34, 0.34);
  --chrome-link-active-border: rgba(201, 151, 34, 0.48);
  --chrome-link-hover-bg: rgba(255, 255, 255, 0.8);
  --chrome-link-active-bg: rgba(255, 255, 255, 0.9);
  --chrome-index: rgba(26, 26, 26, 0.42);
  --chrome-highlight: linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.16) 44%, rgba(201, 151, 34, 0.1) 100%);
  --chrome-shadow: 0 20px 40px rgba(26, 26, 26, 0.08);
  --chrome-shadow-strong: 0 26px 56px rgba(26, 26, 26, 0.13);
  padding-bottom: 138px;
}

body[data-page].subpage-theme-dark {
  --chrome-bg: rgba(28, 28, 30, 0.76);
  --chrome-bg-strong: rgba(28, 28, 30, 0.88);
  --chrome-bg-soft: rgba(255, 255, 255, 0.06);
  --chrome-border: rgba(255, 255, 255, 0.14);
  --chrome-text: #ffffff;
  --chrome-text-muted: rgba(255, 255, 255, 0.68);
  --chrome-accent: #c5a059;
  --chrome-icon-bg: rgba(197, 160, 89, 0.18);
  --chrome-link-border: rgba(255, 255, 255, 0.06);
  --chrome-link-hover-border: rgba(197, 160, 89, 0.32);
  --chrome-link-active-border: rgba(197, 160, 89, 0.4);
  --chrome-link-hover-bg: rgba(255, 255, 255, 0.08);
  --chrome-link-active-bg: rgba(255, 255, 255, 0.12);
  --chrome-index: rgba(255, 255, 255, 0.44);
  --chrome-highlight: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 44%, rgba(197, 160, 89, 0.14) 100%);
  --chrome-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
  --chrome-shadow-strong: 0 28px 60px rgba(0, 0, 0, 0.32);
}

body[data-page] nav#mainNav,
body[data-page] .mobile-menu,
body[data-page] .topbar {
  display: none !important;
}

body[data-page] .shell {
  padding-top: 108px;
  will-change: auto;
}

body[data-page] .shell.is-transitioning {
  will-change: transform, opacity;
}

body[data-page] .site-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

body[data-page] .site-menu-toggle,
body[data-page] .site-brand,
body[data-page] .floating-pill {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--chrome-border);
  background: var(--chrome-bg);
  box-shadow: var(--chrome-shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

body[data-page] .site-menu-toggle::before,
body[data-page] .site-brand::before,
body[data-page] .floating-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chrome-highlight);
  pointer-events: none;
}

body[data-page] .site-menu-toggle > *,
body[data-page] .site-brand > *,
body[data-page] .floating-pill > * {
  position: relative;
  z-index: 1;
}

body[data-page] .site-menu-toggle {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body[data-page] .site-menu-toggle:hover,
body[data-page] .floating-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--chrome-shadow-strong);
  background: var(--chrome-bg-strong);
}

body[data-page] .site-brand:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: var(--chrome-shadow-strong);
  background: var(--chrome-bg-strong);
}

body[data-page] .site-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--chrome-text);
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.24s ease, width 0.24s ease;
}

body[data-page] .site-menu-toggle span:nth-child(2) {
  width: 18px;
}

body[data-page].menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body[data-page].menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

body[data-page].menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body[data-page] .site-menu-panel {
  width: min(340px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 28px;
  background: var(--chrome-bg);
  border: 1px solid var(--chrome-border);
  box-shadow: var(--chrome-shadow-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transform-origin: top right;
  transform: translateY(-8px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
  position: relative;
}

body[data-page] .site-menu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--chrome-highlight);
  pointer-events: none;
}

body[data-page].menu-open .site-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body[data-page] .site-menu-panel-inner {
  position: relative;
  z-index: 1;
}

body[data-page] .site-menu-label {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome-text-muted);
  margin-bottom: 10px;
}

body[data-page] .site-menu-list {
  display: grid;
  gap: 10px;
}

body[data-page] .site-menu-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--chrome-text);
  background: var(--chrome-bg-soft);
  border: 1px solid var(--chrome-link-border);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body[data-page] .site-menu-link:hover {
  transform: translateX(4px);
  border-color: var(--chrome-link-hover-border);
  background: var(--chrome-link-hover-bg);
}

body[data-page] .site-menu-link.is-active {
  border-color: var(--chrome-link-active-border);
  background: var(--chrome-link-active-bg);
}

body[data-page] .site-menu-index {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--chrome-index);
  padding-top: 4px;
}

body[data-page] .site-menu-copy {
  display: grid;
  gap: 4px;
}

body[data-page] .site-menu-copy strong {
  font-family: var(--font-display);
  font-size: var(--fs-27);
  font-weight: 400;
  line-height: 1;
  color: var(--chrome-text);
}

body[data-page] .site-menu-copy span {
  font-size: var(--fs-13);
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.68);
}

body[data-page].subpage-theme-dark .site-menu-copy span {
  color: rgba(255, 255, 255, 0.68);
}

body[data-page] .site-brand {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 255;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 80px;
  padding: 0 36px;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body[data-page] .site-brand img {
  display: block;
  width: auto;
  height: 64px;
}

body[data-page] .floating-toolbar {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 250;
  width: auto;
  max-width: calc(100vw - 40px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

body[data-page] .floating-pill {
  min-height: 60px;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--chrome-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, opacity 0.24s ease;
  pointer-events: auto;
}

body[data-page] .floating-pill--app {
  min-width: 0;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 18px 12px 14px;
}

body[data-page] .floating-pill--secondary {
  white-space: nowrap;
}

body[data-page] button.floating-pill {
  cursor: pointer;
  font: inherit;
}

body[data-page] .floating-pill:disabled {
  opacity: 0.52;
  pointer-events: none;
  transform: none;
  box-shadow: var(--chrome-shadow);
}

body[data-page] .floating-pill__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chrome-icon-bg);
  color: var(--chrome-accent);
  flex-shrink: 0;
}

body[data-page] .floating-pill__icon svg,
body[data-page] .floating-pill--secondary svg {
  width: 18px;
  height: 18px;
}

body[data-page] .floating-pill__icon svg {
  fill: currentColor;
}

body[data-page] .floating-pill--secondary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page] .floating-pill__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body[data-page] .floating-pill__eyebrow {
  font-size: var(--fs-10);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chrome-text-muted);
  transition: max-width 0.24s ease, opacity 0.24s ease, margin 0.24s ease;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
}

body[data-page] .floating-pill__label,
body[data-page] .floating-pill__text {
  font-size: var(--fs-15);
  font-weight: 600;
  letter-spacing: 0.01em;
}

body[data-page].subpage-scrolled .floating-pill {
  box-shadow: 0 18px 38px rgba(26, 26, 26, 0.16);
}

body[data-page].subpage-theme-dark.subpage-scrolled .floating-pill {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

body[data-page].subpage-scrolled .floating-pill--app .floating-pill__eyebrow {
  max-width: 0;
  opacity: 0;
  margin: 0;
}

@media (max-width: 900px) {
  body[data-page] .site-nav {
    top: 18px;
    right: 18px;
  }

  body[data-page] .site-menu-toggle {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  body[data-page] .site-brand {
    top: 18px;
    min-width: 180px;
    height: 72px;
    padding: 0 30px;
  }

  body[data-page] .site-brand img {
    height: 56px;
  }

  body[data-page] .shell {
    padding-top: 98px;
  }

  body[data-page] .floating-toolbar {
    max-width: calc(100vw - 36px);
    gap: 10px;
  }
}

@media (max-width: 500px) {
  body[data-page] {
    padding-bottom: 142px;
  }

  body[data-page] .site-nav {
    top: 14px;
    right: 14px;
  }

  body[data-page] .site-brand {
    top: 14px;
    min-width: 164px;
    height: 66px;
    padding: 0 26px;
  }

  body[data-page] .site-brand img {
    height: 52px;
  }

  body[data-page] .site-menu-panel {
    width: min(300px, calc(100vw - 20px));
    padding: 16px;
  }

  body[data-page] .site-menu-link {
    padding: 12px 14px;
  }

  body[data-page] .site-menu-copy strong {
    font-size: var(--fs-24);
  }

  body[data-page] .shell {
    padding-top: 90px;
  }

  body[data-page] .floating-toolbar {
    max-width: calc(100vw - 32px);
    gap: 8px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body[data-page] .floating-pill {
    min-height: 54px;
    padding: 12px 14px;
  }

  body[data-page] .floating-pill--secondary {
    width: 52px;
    padding: 0;
  }

  body[data-page] .floating-pill--secondary .floating-pill__text {
    display: none;
  }

  body[data-page] .floating-pill--app {
    justify-content: center;
    padding: 10px 14px 10px 12px;
  }

  body[data-page] .floating-pill__icon {
    width: 34px;
    height: 34px;
  }

  body[data-page] .floating-pill__label {
    font-size: var(--fs-14);
  }
}

@media (max-width: 640px) {
  body[data-page] .floating-toolbar {
    max-width: calc(100vw - 24px);
    gap: 6px;
  }

  body[data-page] .floating-pill {
    min-height: 50px;
  }

  body[data-page] .floating-pill--app {
    padding: 10px 12px;
    gap: 8px;
  }

  body[data-page] .floating-pill__copy {
    gap: 0;
  }

  body[data-page] .floating-pill__eyebrow {
    display: none;
  }

  body[data-page] .floating-pill__label {
    font-size: var(--fs-13);
  }
}

@media (max-width: 360px) {
  body[data-page] .floating-toolbar {
    max-width: calc(100vw - 28px);
    gap: 6px;
  }

  body[data-page] .floating-pill--app .floating-pill__eyebrow {
    display: none;
  }
}

body[data-page="closet"] .shell,
body[data-page="social"] .shell,
body[data-page="styling"] .shell,
body[data-page="marketplace"] .shell {
  padding-top: 122px;
}

body[data-page="closet"] .site-brand,
body[data-page="social"] .site-brand,
body[data-page="styling"] .site-brand,
body[data-page="marketplace"] .site-brand {
  top: 28px;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="closet"] .site-brand::before,
body[data-page="social"] .site-brand::before,
body[data-page="styling"] .site-brand::before,
body[data-page="marketplace"] .site-brand::before {
  display: none;
}

body[data-page="closet"] .site-brand:hover,
body[data-page="social"] .site-brand:hover,
body[data-page="styling"] .site-brand:hover,
body[data-page="marketplace"] .site-brand:hover {
  transform: translateX(-50%) translateY(-2px);
  background: none;
  box-shadow: none;
}

body[data-page="closet"] .site-brand img,
body[data-page="social"] .site-brand img,
body[data-page="styling"] .site-brand img,
body[data-page="marketplace"] .site-brand img {
  height: 96px;
}

body[data-page="closet"] .floating-pill--app,
body[data-page="social"] .floating-pill--app,
body[data-page="styling"] .floating-pill--app,
body[data-page="marketplace"] .floating-pill--app {
  padding: 12px 20px 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(26, 26, 26, 0.08);
  box-shadow:
    0 18px 40px rgba(201, 151, 34, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

body[data-page="closet"] .floating-pill--app::before,
body[data-page="social"] .floating-pill--app::before,
body[data-page="styling"] .floating-pill--app::before,
body[data-page="marketplace"] .floating-pill--app::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.12) 46%, rgba(201, 151, 34, 0.1) 100%);
}

body[data-page="closet"] .floating-pill--app:hover,
body[data-page="social"] .floating-pill--app:hover,
body[data-page="styling"] .floating-pill--app:hover,
body[data-page="marketplace"] .floating-pill--app:hover {
  background: #ffffff;
  box-shadow:
    0 22px 46px rgba(201, 151, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-page="closet"] .floating-pill--app .floating-pill__eyebrow,
body[data-page="social"] .floating-pill--app .floating-pill__eyebrow,
body[data-page="styling"] .floating-pill--app .floating-pill__eyebrow,
body[data-page="marketplace"] .floating-pill--app .floating-pill__eyebrow {
  color: rgba(26, 26, 26, 0.62);
}

body[data-page="closet"] .floating-pill--app .floating-pill__label,
body[data-page="social"] .floating-pill--app .floating-pill__label,
body[data-page="styling"] .floating-pill--app .floating-pill__label,
body[data-page="marketplace"] .floating-pill--app .floating-pill__label {
  color: #1F2937;
}

body[data-page="closet"].subpage-scrolled .floating-pill--app,
body[data-page="social"].subpage-scrolled .floating-pill--app,
body[data-page="styling"].subpage-scrolled .floating-pill--app,
body[data-page="marketplace"].subpage-scrolled .floating-pill--app {
  box-shadow:
    0 18px 40px rgba(201, 151, 34, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

body[data-page="closet"].subpage-scrolled .floating-pill--app .floating-pill__eyebrow,
body[data-page="social"].subpage-scrolled .floating-pill--app .floating-pill__eyebrow,
body[data-page="styling"].subpage-scrolled .floating-pill--app .floating-pill__eyebrow,
body[data-page="marketplace"].subpage-scrolled .floating-pill--app .floating-pill__eyebrow {
  max-width: 120px;
  opacity: 1;
  margin: 0;
}

@media (max-width: 900px) {
  body[data-page="closet"] .shell,
  body[data-page="social"] .shell,
  body[data-page="styling"] .shell,
  body[data-page="marketplace"] .shell {
    padding-top: 112px;
  }

  body[data-page="closet"] .site-brand,
  body[data-page="social"] .site-brand,
  body[data-page="styling"] .site-brand,
  body[data-page="marketplace"] .site-brand {
    top: 22px;
  }

  body[data-page="closet"] .site-brand img,
  body[data-page="social"] .site-brand img,
  body[data-page="styling"] .site-brand img,
  body[data-page="marketplace"] .site-brand img {
    height: 84px;
  }
}

@media (max-width: 500px) {
  body[data-page="closet"] .shell,
  body[data-page="social"] .shell,
  body[data-page="styling"] .shell,
  body[data-page="marketplace"] .shell {
    padding-top: 102px;
  }

  body[data-page="closet"] .site-brand,
  body[data-page="social"] .site-brand,
  body[data-page="styling"] .site-brand,
  body[data-page="marketplace"] .site-brand {
    top: 18px;
  }

  body[data-page="closet"] .site-brand img,
  body[data-page="social"] .site-brand img,
  body[data-page="styling"] .site-brand img,
  body[data-page="marketplace"] .site-brand img {
    height: 74px;
  }

  body[data-page="closet"] .floating-pill--app,
  body[data-page="social"] .floating-pill--app,
  body[data-page="styling"] .floating-pill--app,
  body[data-page="marketplace"] .floating-pill--app {
    padding: 10px 16px 10px 12px;
  }
}

body.info-editorial {
  --page-bg: var(--bone);
  --page-surface: rgba(255, 255, 255, 0.82);
  --page-surface-strong: #ffffff;
  --page-text: #1F2937;
  --page-dim: #4B5563;
  --page-accent: #c99722;
  --page-accent-lo: rgba(201, 151, 34, 0.12);
  --page-blue-lo: rgba(26, 26, 26, 0.08);
  --page-border: rgba(26, 26, 26, 0.1);
  --page-shadow: 0 24px 46px rgba(26, 26, 26, 0.06);
  --page-radius: 28px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--page-bg) 32%, #ffffff 100%);
  color: var(--page-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.info-editorial h1,
body.info-editorial h2,
body.info-editorial h3,
body.info-editorial h4 {
  font-family: var(--font-display);
}

body.info-editorial .shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-inline: 48px;
  padding-top: 122px;
}

body.info-editorial .site-brand {
  top: 28px;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.info-editorial .site-brand::before {
  display: none;
}

body.info-editorial .site-brand:hover {
  transform: translateX(-50%) translateY(-2px);
  background: none;
  box-shadow: none;
}

body.info-editorial .site-brand img {
  height: 96px;
}

/* Site-wide top bar — one rule for every page; logo markup comes from
   js/site-subpage-chrome.js brandMarkup (home is static in index.html) */
html body[data-page] .site-brand {
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  min-width: 0;
  height: auto;
  transform: none !important;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: 12px 0;
  background: rgba(197, 160, 89, 0.34);
  box-shadow: 0 12px 32px rgba(122, 96, 44, 0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

html body[data-page] .site-brand::before {
  display: none;
}

html body[data-page] .site-brand:hover {
  background: rgba(197, 160, 89, 0.46);
  box-shadow: 0 16px 36px rgba(122, 96, 44, 0.18);
}

html body[data-page] .site-brand img {
  height: 72px;
}

html body[data-page] .site-nav {
  top: 19px;
  right: 24px;
}

body.info-editorial .editorial-main {
  display: grid;
  gap: 48px;
  padding-bottom: 64px;
}

body.info-editorial .editorial-hero,
body.info-editorial .editorial-section,
body.info-editorial .editorial-stack {
  display: grid;
  gap: 24px;
}

body.info-editorial .editorial-hero {
  gap: 28px;
}

body.info-editorial .editorial-hero-grid,
body.info-editorial .editorial-two-up,
body.info-editorial .editorial-support-grid,
body.info-editorial .editorial-summary-grid {
  display: grid;
  gap: 16px;
}

body.info-editorial .editorial-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  align-items: start;
}

body.info-editorial .editorial-hero-media {
  position: relative;
  overflow: hidden;
  height: min(46vh, 420px);
  min-height: 240px;
  margin-top: 8px;
  border: 1px solid var(--page-border);
  border-radius: var(--page-radius);
  background: var(--page-surface);
  box-shadow: var(--page-shadow);
}

/* Side variant hugs the clip: the box takes the video's own aspect ratio, so
   portrait and landscape sources both fill it with no letterboxing. */
body.info-editorial .editorial-hero-media--side {
  height: auto;
  min-height: 0;
  margin-top: 0;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  align-self: center;
}

body.info-editorial .editorial-hero-media--side video {
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(58vh, 520px);
}

body.info-editorial .editorial-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body.info-editorial .editorial-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.info-editorial .editorial-two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.info-editorial .editorial-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.info-editorial .editorial-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.info-editorial .editorial-tag {
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-atelier);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.info-editorial .editorial-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

body.info-editorial .editorial-copy {
  display: grid;
  gap: 20px;
}

body.info-editorial .editorial-title,
body.info-editorial .editorial-section-title,
body.info-editorial .editorial-card h2,
body.info-editorial .editorial-card h3,
body.info-editorial .editorial-document-title,
body.info-editorial .editorial-support-card h2,
body.info-editorial .editorial-statement blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

body.info-editorial .editorial-title {
  font-size: var(--fs-fluid-6xl);
  max-width: 20ch;
  text-wrap: balance;
}

body.info-editorial .editorial-title em,
body.info-editorial .editorial-section-title em,
body.info-editorial .editorial-statement blockquote em {
  color: var(--page-accent);
  font-style: italic;
}

body.info-editorial .editorial-section-title {
  font-size: var(--fs-fluid-4xl);
  max-width: 14ch;
}

body.info-editorial .editorial-lead,
body.info-editorial .editorial-section-copy,
body.info-editorial .editorial-card p,
body.info-editorial .editorial-summary p,
body.info-editorial .editorial-document p,
body.info-editorial .editorial-document ul,
body.info-editorial .editorial-document address,
body.info-editorial .editorial-support-card p,
body.info-editorial .editorial-caption,
body.info-editorial .editorial-note,
body.info-editorial .editorial-note p,
body.info-editorial .editorial-statement p {
  color: var(--page-dim);
  font-size: var(--fs-16);
  line-height: 1.75;
}

body.info-editorial .editorial-meta-row,
body.info-editorial .editorial-chip-row,
body.info-editorial .editorial-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.info-editorial .editorial-pill,
body.info-editorial .editorial-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4B5563;
}

body.info-editorial .editorial-pill {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: var(--fs-13);
  color: var(--page-dim);
}

body.info-editorial .editorial-summary,
body.info-editorial .editorial-document,
body.info-editorial .editorial-note,
body.info-editorial .editorial-support-card,
body.info-editorial .editorial-statement {
  border: 1px solid var(--page-border);
  border-radius: var(--page-radius);
  background: #ffffff;
  box-shadow: none;
}

body.info-editorial .editorial-summary,
body.info-editorial .editorial-support-card {
  padding: 24px;
}

body.info-editorial .editorial-card,
body.info-editorial .editorial-summary,
body.info-editorial .editorial-support-card,
body.info-editorial .editorial-statement,
body.info-editorial .editorial-note {
  display: grid;
  gap: 12px;
}

body.info-editorial .editorial-card strong,
body.info-editorial .editorial-summary strong,
body.info-editorial .editorial-support-kicker {
  font-size: var(--fs-11);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--page-accent);
  font-weight: 600;
}

body.info-editorial .editorial-card h2,
body.info-editorial .editorial-card h3,
body.info-editorial .editorial-summary h2,
body.info-editorial .editorial-summary h3,
body.info-editorial .editorial-support-card h2 {
  font-size: var(--fs-34);
}

body.info-editorial .editorial-statement--dark {
  background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
  color: #F3F4F6;
}

body.info-editorial .editorial-statement--dark p,
body.info-editorial .editorial-statement--dark .editorial-tag {
  color: rgba(255, 255, 255, 0.72);
}

body.info-editorial .editorial-summary--warm,
body.info-editorial .editorial-note--warm,
body.info-editorial .editorial-statement--warm {
  background: #ffffff;
}

body.info-editorial .editorial-summary--cool,
body.info-editorial .editorial-note--cool {
  background: #ffffff;
}

body.info-editorial .editorial-statement {
  padding: 30px;
}

body.info-editorial .editorial-statement blockquote {
  font-size: var(--fs-fluid-xl);
}

body.info-editorial .editorial-document {
  padding: 38px 36px;
  background: #ffffff;
}

body.info-editorial .editorial-document-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.86fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 26px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--page-border);
}

body.info-editorial .editorial-document-title {
  font-size: var(--fs-fluid-xl);
}

body.info-editorial .editorial-note {
  padding: 22px;
  background: #ffffff;
}

body.info-editorial .editorial-note h3 {
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-accent);
}

body.info-editorial .editorial-button,
body.info-editorial .editorial-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--page-accent);
  color: #F3F4F6;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(201, 151, 34, 0.24);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

body.info-editorial .editorial-button:hover,
body.info-editorial .editorial-link-button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

body.info-editorial .editorial-link {
  color: var(--page-accent);
  text-decoration: none;
  font-weight: 600;
}

body.info-editorial .editorial-support-card {
  min-height: 220px;
  text-decoration: none;
  color: var(--page-text);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

body.info-editorial .editorial-support-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 151, 34, 0.22);
  background: rgba(255, 255, 255, 0.76);
}

body.info-editorial .editorial-support-index {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 151, 34, 0.3);
  color: var(--page-accent);
  background: var(--page-accent-lo);
  font-size: var(--fs-13);
  letter-spacing: 0.08em;
}

body.info-editorial .editorial-support-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--page-accent);
  font-size: var(--fs-13);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

body.info-editorial .editorial-document ul {
  padding-left: 18px;
}

body.info-editorial .editorial-document li::marker {
  color: var(--page-accent);
}

body.info-editorial .editorial-document address {
  font-style: normal;
}

body.info-editorial a {
  color: inherit;
}

body.info-editorial strong {
  color: var(--page-text);
}

@media (max-width: 1080px) {
  body.info-editorial .editorial-hero-grid,
  body.info-editorial .editorial-document-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.info-editorial .shell {
    padding-inline: 24px;
    padding-top: 112px;
  }

  body.info-editorial .site-brand {
    top: 22px;
  }

  body.info-editorial .site-brand img {
    height: 84px;
  }

  body.info-editorial .editorial-main {
    gap: 40px;
  }

  body.info-editorial .editorial-card-grid,
  body.info-editorial .editorial-two-up,
  body.info-editorial .editorial-support-grid,
  body.info-editorial .editorial-summary-grid {
    grid-template-columns: 1fr;
  }

  body.info-editorial .editorial-document {
    padding: 30px 24px;
  }

}

@media (max-width: 500px) {
  body.info-editorial .shell {
    padding-inline: 20px;
    padding-top: 102px;
  }

  body.info-editorial .site-brand {
    top: 18px;
  }

  body.info-editorial .site-brand img {
    height: 74px;
  }

  body.info-editorial .editorial-main {
    gap: 32px;
  }

  body.info-editorial .editorial-title {
    font-size: var(--fs-fluid-5xl);
  }

  body.info-editorial .editorial-section-title,
  body.info-editorial .editorial-card h2,
  body.info-editorial .editorial-card h3,
  body.info-editorial .editorial-summary h2,
  body.info-editorial .editorial-summary h3,
  body.info-editorial .editorial-support-card h2,
  body.info-editorial .editorial-document-title {
    font-size: var(--fs-28);
  }

  body.info-editorial .editorial-lead,
  body.info-editorial .editorial-section-copy,
  body.info-editorial .editorial-card p,
  body.info-editorial .editorial-summary p,
  body.info-editorial .editorial-document p,
  body.info-editorial .editorial-document ul,
  body.info-editorial .editorial-document address,
  body.info-editorial .editorial-support-card p,
  body.info-editorial .editorial-caption,
  body.info-editorial .editorial-note,
  body.info-editorial .editorial-note p,
  body.info-editorial .editorial-statement p {
    font-size: var(--fs-15);
  }

  body.info-editorial .editorial-summary,
  body.info-editorial .editorial-note,
  body.info-editorial .editorial-support-card,
  body.info-editorial .editorial-statement {
    padding: 22px;
  }
}

/* ── Site footer (lean two-row) ── */

body[data-page] .site-footer,
.site-footer {
  --sf-ink: #1F2937;
  --sf-dim: rgba(26, 26, 26, 0.55);
  --sf-line: rgba(26, 26, 26, 0.1);
  --sf-accent: #c99722;
  margin-top: 48px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 0;
}

body[data-page] .site-footer::before,
.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--sf-accent) 0%, var(--sf-accent) 48px, var(--sf-line) 48px, var(--sf-line) 100%);
  margin-bottom: 22px;
}

.site-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sf-ink);
  flex-shrink: 0;
}

.site-footer-brand img {
  height: 22px;
  width: auto;
  display: block;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.site-footer-nav a {
  color: var(--sf-dim);
  text-decoration: none;
  font-size: var(--fs-13);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 4px 8px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  color: var(--sf-accent);
  background: rgba(201, 151, 34, 0.08);
  outline: none;
}

.site-footer-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sf-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
}

.site-footer-legal a {
  color: var(--sf-dim);
  text-decoration: none;
  font-size: var(--fs-12);
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.18s ease;
}

.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
  color: var(--sf-ink);
  outline: none;
}

.site-footer-legal a.is-delete {
  color: var(--sf-accent);
  font-weight: 600;
}

.site-footer-legal a.is-delete:hover,
.site-footer-legal a.is-delete:focus-visible {
  color: #9f7414;
}

.site-footer-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.22);
  vertical-align: middle;
}

.site-footer-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-footer-socials a {
  color: var(--sf-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-footer-socials a:hover,
.site-footer-socials a:focus-visible {
  color: var(--sf-accent);
  background: rgba(201, 151, 34, 0.08);
  outline: none;
}

.site-footer-socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.site-footer-copy {
  color: var(--sf-dim);
  font-size: var(--fs-12);
  opacity: 0.85;
  white-space: nowrap;
}

@media (max-width: 680px) {
  body[data-page] .site-footer,
  .site-footer {
    margin-top: 36px;
  }

  .site-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer-copy {
    white-space: normal;
  }
}

/* Legacy footer classes map to lean layout if markup not yet replaced */
body[data-page] .editorial-footer {
  margin-top: 48px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page] .editorial-footer-top,
body[data-page] .editorial-footer-brand p,
body[data-page] .editorial-footer-col h4 {
  display: none;
}

body[data-page] .editorial-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}


/* ── Email Popup ── */

/* â”€â”€ Inline Email Capture â”€â”€ */

body[data-page] .email-inline-fallback {
  margin-top: 40px;
}

body[data-page] .email-inline {
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid var(--page-border, var(--border, rgba(26, 26, 26, 0.08)));
  background: #ffffff;
  box-shadow: var(--page-shadow, var(--shadow, 0 24px 46px rgba(26, 26, 26, 0.08)));
  display: grid;
  gap: 12px;
}

body[data-page] .email-inline-copy {
  display: grid;
  gap: 4px;
}

body[data-page] .email-inline-kicker {
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--page-accent, var(--accent, #c99722));
}

body[data-page] .email-inline-copy p {
  margin: 0;
  color: var(--page-dim, var(--dim, #4B5563));
  font-size: var(--fs-14);
  line-height: 1.6;
}

body[data-page] .email-inline-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-page] .email-inline-form {
  display: grid;
  gap: 10px;
}

body[data-page] .email-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

body[data-page] .email-inline-input {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--page-text, var(--text, #1F2937));
  font-family: var(--font-display);
  font-size: var(--fs-15);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-page] .email-inline-input::placeholder {
  color: rgba(26, 26, 26, 0.42);
}

body[data-page] .email-inline-input:focus {
  border-color: rgba(201, 151, 34, 0.35);
  box-shadow: 0 0 0 3px rgba(201, 151, 34, 0.12);
}

body[data-page] .email-inline-submit {
  min-width: 170px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background: var(--page-accent, var(--accent, #c99722));
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--fs-15);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

body[data-page] .email-inline-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(201, 151, 34, 0.22);
}

body[data-page] .email-inline-submit:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

body[data-page] .email-inline-error {
  display: none;
  color: #9f7414;
  font-size: var(--fs-13);
}

body[data-page] .email-inline.is-error .email-inline-error {
  display: block;
}

body[data-page] .email-inline-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: popup-spin 0.6s linear infinite;
}

body[data-page] .email-inline.is-loading .email-inline-spinner {
  display: inline-block;
}

body[data-page] .email-inline.is-loading .email-inline-submit-text {
  opacity: 0.72;
}

body[data-page] .email-inline-success {
  display: none;
  color: var(--page-text, var(--text, #1F2937));
}

body[data-page] .email-inline-success strong {
  font-size: var(--fs-15);
}

body[data-page] .email-inline-success p {
  margin-top: 4px;
  color: var(--page-dim, var(--dim, #4B5563));
  font-size: var(--fs-14);
  line-height: 1.6;
}

body[data-page] .email-inline.is-success .email-inline-form {
  display: none;
}

body[data-page] .email-inline.is-success .email-inline-success {
  display: block;
}

@media (max-width: 680px) {
  body[data-page] .email-inline-row {
    grid-template-columns: 1fr;
  }

  body[data-page] .email-inline-submit {
    width: 100%;
  }
}

body.email-popup-open {
  overflow: hidden;
}

.email-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
}

.email-popup {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 36px;
  border-radius: var(--page-radius, 28px);
  background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
  color: #F3F4F6;
  overflow: visible;
  opacity: 0;
}

.email-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: radial-gradient(260px circle at top right, rgba(201, 151, 34, 0.18) 0%, transparent 70%),
              radial-gradient(200px circle at bottom left, rgba(45, 91, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.email-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 1;
  padding: 0;
}

.email-popup-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.email-popup-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.email-popup h2 {
  font-family: var(--font-display);
  font-size: var(--fs-34);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
}

.email-popup p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-15);
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
}

.email-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.email-popup-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #F3F4F6;
  font-family: var(--font-display);
  font-size: var(--fs-15);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.email-popup-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.email-popup-input:focus {
  border-color: rgba(201, 151, 34, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 151, 34, 0.12);
}

.email-popup-submit {
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  background: #c99722;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--fs-15);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.email-popup-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(201, 151, 34, 0.3);
}

.email-popup-submit:active {
  transform: translateY(0);
}

.email-popup-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.email-popup-error {
  color: #c99722;
  font-size: var(--fs-13);
  text-align: center;
  display: none;
}

.email-popup.is-error .email-popup-error {
  display: block;
}

.email-popup-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: popup-spin 0.6s linear infinite;
  margin: 0 auto;
}

.email-popup.is-loading .email-popup-spinner {
  display: inline-block;
}

.email-popup.is-loading .email-popup-submit-text {
  visibility: hidden;
}

.email-popup-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@keyframes popup-spin {
  to { transform: rotate(360deg); }
}

.email-popup-success {
  display: none;
  text-align: center;
  position: relative;
}

.email-popup.is-success .email-popup-form {
  display: none;
}

.email-popup.is-success .email-popup-success {
  display: block;
}

.email-popup-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(201, 151, 34, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-popup-success-icon svg {
  width: 24px;
  height: 24px;
  stroke: #c99722;
  stroke-width: 2.5;
  fill: none;
}

.email-popup-success h3 {
  font-family: var(--font-display);
  font-size: var(--fs-26);
  font-weight: 400;
  margin-bottom: 6px;
}

.email-popup-success p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-14);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .email-popup {
    padding: 32px 24px 28px;
    max-width: calc(100% - 16px);
  }

  .email-popup h2 {
    font-size: var(--fs-28);
  }
}

/* ── Shared AEO FAQ + HowTo components ── */
/* Uses --page-* tokens where present (info-editorial pages) and falls back to
   --chrome-* tokens on product pages, so it renders natively everywhere. */
body[data-page] .aeo-faq {
  margin-top: 44px;
  padding: 32px 32px 14px;
  border: 1px solid var(--page-border, var(--chrome-border, rgba(26, 26, 26, 0.08)));
  border-radius: var(--page-radius, 28px);
  background: #ffffff;
  box-shadow: none;
}

body[data-page] .aeo-faq > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: var(--fs-fluid-lg);
  color: var(--page-text, var(--chrome-text, #1F2937));
  margin-bottom: 6px;
}

body[data-page] .aeo-faq > p.aeo-faq-intro {
  color: var(--page-dim, var(--chrome-text-muted, #4B5563));
  font-size: var(--fs-15);
  line-height: 1.7;
  margin-bottom: 8px;
}

body[data-page] .aeo-faq details {
  border-top: 1px solid var(--page-border, var(--chrome-border, rgba(26, 26, 26, 0.08)));
  padding: 18px 0;
}

body[data-page] .aeo-faq details:first-of-type {
  border-top: 0;
}

body[data-page] .aeo-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-size: var(--fs-20);
  line-height: 1.32;
  color: var(--page-text, var(--chrome-text, #1F2937));
  cursor: pointer;
  list-style: none;
}

body[data-page] .aeo-faq summary::-webkit-details-marker {
  display: none;
}

body[data-page] .aeo-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--page-accent, var(--chrome-accent, #c99722));
  font-family: var(--font-display);
  font-weight: 400;
}

body[data-page] .aeo-faq details[open] summary::after {
  content: "\2013";
}

body[data-page] .aeo-faq details p {
  margin-top: 10px;
  color: var(--page-dim, var(--chrome-text-muted, #4B5563));
  font-size: var(--fs-15);
  line-height: 1.7;
}

body[data-page] .aeo-faq details a {
  color: var(--page-accent, var(--chrome-accent, #c99722));
}

body[data-page] .editorial-product-definition {
  margin-top: 14px;
  color: var(--page-text, var(--chrome-text, #1F2937));
  font-size: var(--fs-17);
  line-height: 1.65;
  max-width: 58ch;
}

body[data-page] .editorial-last-updated {
  margin-top: 12px;
  color: var(--page-dim, var(--chrome-text-muted, #4B5563));
  font-size: var(--fs-13);
  letter-spacing: 0.04em;
}

body[data-page] .evidence-panel {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--page-border, var(--chrome-border, rgba(26, 26, 26, 0.08)));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 8px;
}

body[data-page] .evidence-panel p {
  margin: 0;
  color: var(--page-dim, var(--chrome-text-muted, #4B5563));
  font-size: var(--fs-13);
  line-height: 1.6;
}

body.home-page .editorial-product-definition,
body.home-page .editorial-last-updated,
body.home-page .evidence-panel {
  max-width: 58ch;
}

body.home-page .evidence-panel {
  margin-top: 24px;
  grid-column: 1 / -1;
}

/* Bridge links — styled pointers to a topic's master page (see CONTENT-MAP.md) */
body[data-page] .bridge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--page-accent, #c99722);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 151, 34, 0.35);
  transition: border-color 0.22s ease, gap 0.22s ease;
}

body[data-page] .bridge-link:hover {
  border-color: var(--page-accent, #c99722);
  gap: 12px;
}

body[data-page] .evidence-bridge {
  margin-top: 18px;
  font-size: var(--fs-14);
}

body.home-page .evidence-bridge {
  margin-top: 24px;
  grid-column: 1 / -1;
}

body[data-page] a.bridge-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

body[data-page] a.bridge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 151, 34, 0.28);
}

body[data-page] .bridge-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--page-accent, #c99722);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* HowTo step list */
body[data-page] .aeo-howto {
  margin-top: 44px;
  padding: 32px;
  border: 1px solid var(--page-border, var(--chrome-border, rgba(26, 26, 26, 0.08)));
  border-radius: var(--page-radius, 28px);
  background: var(--page-surface, var(--chrome-bg-soft, rgba(255, 255, 255, 0.62)));
  box-shadow: var(--page-shadow, var(--chrome-shadow, none));
}

body[data-page] .aeo-howto > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: var(--fs-fluid-lg);
  color: var(--page-text, var(--chrome-text, #1F2937));
  margin-bottom: 20px;
}

body[data-page] .aeo-howto ol {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: aeo-step;
}

body[data-page] .aeo-howto li {
  position: relative;
  padding-left: 56px;
  min-height: 40px;
}

body[data-page] .aeo-howto li::before {
  counter-increment: aeo-step;
  content: counter(aeo-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--page-accent, var(--chrome-accent, #c99722));
  color: var(--page-accent, var(--chrome-accent, #c99722));
  background: var(--page-accent-lo, var(--chrome-icon-bg, rgba(201, 151, 34, 0.1)));
  font-size: var(--fs-14);
  font-weight: 600;
}

body[data-page] .aeo-howto li h3 {
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--page-text, var(--chrome-text, #1F2937));
  margin-bottom: 4px;
}

body[data-page] .aeo-howto li p {
  color: var(--page-dim, var(--chrome-text-muted, #4B5563));
  font-size: var(--fs-15);
  line-height: 1.65;
}

@media (max-width: 500px) {
  body[data-page] .aeo-faq,
  body[data-page] .aeo-howto {
    padding: 24px 22px 8px;
  }

  body[data-page] .aeo-howto {
    padding-bottom: 24px;
  }
}

@media print {
  body[data-page] .site-nav,
  body[data-page] .site-brand,
  body[data-page] .floating-toolbar {
    display: none !important;
  }

  body[data-page] .shell {
    padding-top: 0;
  }
}
