:root {
  color-scheme: dark;
  --ink: #f7f8fc;
  --muted: #aebbd0;
  --faint: #77869f;
  --night: #07111d;
  --night-2: #0b1725;
  --panel: rgba(16, 30, 46, 0.88);
  --panel-strong: #112236;
  --panel-soft: #112236;
  --line: rgba(188, 208, 236, 0.16);
  --line-strong: rgba(118, 87, 255, 0.56);
  --purple: #7657ff;
  --purple-soft: #a99aff;
  --teal: #3dd5c3;
  --accent: #3dd5c3;
  --link: #65e7d7;
  --focus: #f6cc78;
  --coral: #ff8b75;
  --gold: #f6cc78;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  --body-grid-line: rgba(255, 255, 255, 0.024);
  --header-background: rgba(7, 17, 29, 0.91);
  --footer-background: rgba(6, 14, 24, 0.82);
  --submenu-background: #0b1725;
  --mobile-nav-background: rgba(7, 17, 29, 0.98);
  --hero-surface: rgba(8, 20, 33, 0.88);
  --surface-hover: rgba(22, 39, 59, 0.96);
  --surface-raised: rgba(22, 39, 59, 0.96);
  --surface-translucent: rgba(17, 34, 53, 0.78);
  --surface-related: rgba(17, 34, 53, 0.58);
  --field-background: #0a1827;
  --table-cell-background: #102033;
  --table-head-background: #15273c;
  --control-hover: rgba(255, 255, 255, 0.05);
  --lede-color: #d9e3f1;
  --trust-background: rgba(13, 27, 44, 0.74);
  --premium-card-background: linear-gradient(145deg, rgba(77, 52, 155, 0.35), rgba(15, 30, 48, 0.96));
  --on-soft-strong: #ffffff;
  --transition-copy: #d6e0ec;
  --article-copy: #c9d5e5;
  --skip-background: #f6cc78;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --shell: min(1160px, calc(100% - 40px));
  --reading: min(780px, calc(100% - 40px));
  --display-font: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --panel-accent: #eef2ff;
  --ink: #172033;
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --muted: #475569;
  --faint: #58677a;
  --night: #ffffff;
  --night-2: #f1f5f9;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #f1f5f9;
  --panel-soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.16);
  --line-strong: rgba(98, 70, 229, 0.42);
  --purple: #6246e5;
  --purple-soft: #5541c7;
  --brand: #6246e5;
  --brand-strong: #5138c9;
  --teal: #087f72;
  --accent: #087f72;
  --link: #087f72;
  --focus: #6246e5;
  --coral: #b93f30;
  --gold: #9a5a08;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  --body-grid-line: rgba(15, 23, 42, 0.035);
  --header-background: rgba(255, 255, 255, 0.92);
  --footer-background: rgba(248, 250, 252, 0.94);
  --submenu-background: #ffffff;
  --mobile-nav-background: rgba(255, 255, 255, 0.98);
  --hero-surface: rgba(255, 255, 255, 0.92);
  --surface-hover: #f3f0ff;
  --surface-raised: #f3f0ff;
  --surface-translucent: rgba(241, 245, 249, 0.92);
  --surface-related: rgba(241, 245, 249, 0.86);
  --field-background: #ffffff;
  --table-cell-background: #f8fafc;
  --table-head-background: #eef2f7;
  --control-hover: rgba(98, 70, 229, 0.08);
  --lede-color: #475569;
  --trust-background: rgba(241, 245, 249, 0.92);
  --premium-card-background: linear-gradient(145deg, rgba(238, 242, 255, 0.96), rgba(245, 243, 255, 0.96));
  --on-soft-strong: #172033;
  --transition-copy: #475569;
  --article-copy: #475569;
  --skip-background: #f6cc78;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body.design-v2,
body.legacy-layout {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 8%, rgba(118, 87, 255, 0.18), transparent 27rem),
    radial-gradient(circle at 98% 24%, rgba(61, 213, 195, 0.1), transparent 25rem),
    var(--night);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.design-v2::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(var(--body-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--body-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.design-v2 img {
  display: block;
  max-width: 100%;
  height: auto;
}

.design-v2 a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.design-v2 button,
.design-v2 a {
  -webkit-tap-highlight-color: transparent;
}

.design-v2 :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Approved shared chrome on legacy content templates. Content remains protected
   while navigation, footer, focus, and mobile behavior are unified. */
.legacy-layout {
  overflow-x: clip;
}

.legacy-layout .publisher-header,
.legacy-layout .publisher-footer {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legacy-layout .publisher-brand,
.legacy-layout .primary-nav a,
.legacy-layout .footer-nav-v2 a {
  color: inherit;
  text-decoration: none;
}

.legacy-layout .site-shell.header-bar,
.legacy-layout .publisher-footer .site-shell {
  width: var(--shell);
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.legacy-layout .publisher-header + main {
  min-width: 0;
}

.legacy-layout .publisher-footer {
  margin-top: 38px;
}

.legacy-layout .publisher-footer .publisher-brand {
  display: inline-flex;
}

.legacy-layout .publisher-footer .brand-words {
  display: grid;
}

.legacy-layout .publisher-footer .footer-copy {
  margin: 18px 0;
}

.legacy-layout .publisher-footer .footer-meta-v2 {
  margin: 0;
}

.legacy-layout .publisher-footer .footer-nav-v2 {
  align-content: start;
}

.legacy-layout .publisher-footer .footer-nav-v2 a {
  min-height: 38px;
}

.legacy-layout h1,
.legacy-layout h2,
.legacy-layout h3,
.legacy-layout .display-title,
.legacy-layout .article-title,
.legacy-layout .section-title,
.legacy-layout .card-title,
.legacy-layout .panel-title {
  font-family: var(--display-font);
  letter-spacing: -0.025em;
}

.legacy-layout h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.08;
}

.legacy-layout main p,
.legacy-layout main li {
  line-height: 1.7;
}

.legacy-layout .page-kicker,
.legacy-layout .card-kicker,
.legacy-layout .directory-label {
  letter-spacing: 0.025em;
  text-transform: none;
}

/* Legacy pages use `main section { padding: ... }`, which otherwise outranks
   their card padding once a panel is also a section. Preserve the approved
   card treatment while those protected pages keep their existing content. */
.legacy-layout main section.panel,
.legacy-layout main section.card,
.legacy-layout main section.route,
.legacy-layout main section.template,
.legacy-layout main section.cta-box,
.legacy-layout main section.faq-item,
.legacy-layout main section.disclosure,
.legacy-layout main section.disclosure-block,
.legacy-layout main section.trust-block,
.legacy-layout main section.ebook-callout {
  padding: 22px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 10px;
  color: #08111d;
  background: var(--skip-background);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: var(--shell);
  margin-inline: auto;
}

.publisher-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header-background);
  backdrop-filter: blur(18px);
}

.header-bar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mobile-header-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

.publisher-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-seal {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, var(--purple), #4aa7c5);
  box-shadow: 0 9px 25px rgba(93, 78, 226, 0.28);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-words {
  min-width: 0;
}

.brand-words strong,
.brand-words small {
  display: block;
}

.theme-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--night-2);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.js .theme-toggle-desktop {
  display: inline-grid;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 87, 255, 0.4);
  background: var(--control-hover);
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon,
:root[data-theme="light"] .theme-icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

:root[data-theme="light"] .hero-panel {
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96)),
    var(--panel);
}

:root[data-theme="light"] .legacy-layout .prose a,
:root[data-theme="light"] .legacy-layout .content a,
:root[data-theme="light"] .legacy-layout .guide a {
  color: #0f766e;
  text-decoration-color: rgba(15, 118, 110, 0.48);
}

:root[data-theme="light"] .legacy-layout .prose a:hover,
:root[data-theme="light"] .legacy-layout .content a:hover,
:root[data-theme="light"] .legacy-layout .guide a:hover {
  color: #115e59;
  text-decoration-color: currentColor;
}

:root[data-theme="light"] .legacy-layout .template {
  background: #f8fafc;
}

:root[data-theme="light"] .legacy-layout code {
  color: #0f5f56;
}

:root[data-theme="light"] .fit-pill,
:root[data-theme="light"] .goal-tag.long-term,
:root[data-theme="light"] .guide-topic {
  color: #0f5f56;
}

:root[data-theme="light"] .fit-pill.fit-limited,
:root[data-theme="light"] .goal-tag.casual {
  color: #9b2f24;
}

:root[data-theme="light"] .goal-tag.hookups {
  color: #805000;
}

:root[data-theme="light"] .goal-tag.fwb,
:root[data-theme="light"] .guide-format {
  color: #4f3ab8;
}

:root[data-theme="light"] .goal-tag.non-monogamy {
  color: #9d285c;
}

.brand-words strong {
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-words small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: none;
  min-width: 88px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--night-2);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.menu-icon {
  position: relative;
}

.menu-icon::before {
  position: absolute;
  top: -5px;
}

.menu-icon::after {
  position: absolute;
  top: 5px;
}

.primary-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.primary-nav a,
.nav-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-trigger {
  gap: 8px;
  border: 1px solid transparent;
  appearance: none;
  color: var(--muted);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.primary-nav a:hover,
.nav-trigger:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.primary-nav a[aria-current="page"],
.nav-trigger.is-active {
  color: white;
  background: var(--purple);
  box-shadow: 0 10px 26px rgba(118, 87, 255, 0.22);
}

.nav-group {
  position: relative;
}

.nav-chevron {
  width: 8px;
  height: 8px;
  transform: translateY(-2px) rotate(45deg);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: transform 160ms ease;
}

.nav-trigger[aria-expanded="true"] .nav-chevron {
  transform: translateY(2px) rotate(225deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 270px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--submenu-background);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.nav-submenu-wide {
  width: 310px;
}

.nav-submenu-guides {
  width: min(640px, calc(100vw - 32px));
}

.nav-submenu-apps {
  width: min(680px, calc(100vw - 32px));
}

.nav-submenu-guides,
.nav-submenu-apps {
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 0;
  padding: 10px;
}

.nav-menu-primary,
.nav-menu-directory,
.nav-menu-paths,
.nav-app-links,
.nav-guide-links {
  display: grid;
  gap: 6px;
}

.nav-menu-primary {
  align-content: start;
  padding: 10px 14px 10px 8px;
  border-right: 1px solid var(--line);
}

.nav-menu-paths {
  margin-top: 3px;
}

.nav-submenu .nav-menu-path {
  min-height: 62px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
}

.nav-submenu .nav-menu-path-primary {
  border-color: rgba(169, 154, 255, 0.24);
  background: rgba(118, 87, 255, 0.15);
}


.nav-menu-path strong {
  color: var(--ink);
}

.nav-menu-path span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.nav-submenu-section {
  display: grid;
  gap: 7px;
}

.nav-menu-directory {
  align-content: start;
  padding: 10px 8px 10px 18px;
}

.nav-guide-panel {
  display: grid;
  gap: 7px;
}

.nav-guide-panel[hidden] {
  display: none;
}

.nav-submenu-guides[data-guide-view] .nav-menu-path[aria-current="page"]:not(.nav-menu-path-primary) {
  color: var(--ink);
  background: transparent;
}

.nav-app-links,
.nav-guide-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 8px;
}

.nav-submenu-label {
  padding: 0 12px;
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-submenu[data-open="true"] {
  display: grid;
}

.nav-submenu a {
  min-height: 42px;
  justify-content: flex-start;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  white-space: normal;
}

.nav-submenu a[aria-current="page"] {
  color: white;
  background: rgba(118, 87, 255, 0.24);
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: none;
}

.eyebrow.warm {
  color: var(--coral);
}

.display-title,
.article-title,
.section-title,
.card-title,
.panel-title {
  margin: 0;
  font-family: var(--display-font);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-title {
  max-width: 16ch;
  font-size: clamp(2.3rem, 4vw, 3rem);
}

.article-title {
  max-width: 18ch;
  font-size: clamp(2.3rem, 4vw, 3rem);
}

.section-title {
  max-width: 19ch;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.card-title,
.panel-title {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.05;
}

.lede {
  max-width: 64ch;
  margin: 22px 0 0;
  color: var(--lede-color);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.6;
}

.button-row,
.chip-row,
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row {
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.text-chip {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--purple), #8f5cff);
  box-shadow: 0 13px 30px rgba(118, 87, 255, 0.25);
}

.button-secondary,
.text-chip {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

.button-primary:hover,
.button-secondary:hover,
.text-chip:hover {
  transform: translateY(-1px);
}

/* Outbound/affiliate link pattern: distinct from internal navigation
   buttons above, and paired with a visible disclosure line, per the
   "disclosures must be present" rule in MONETIZATION.md. Not wired to
   any live link yet — affiliate programs are still inactive per
   MONETIZATION-PLAN.md — this just makes the pattern ready to use. */
.button-outbound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(246, 204, 120, 0.08);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.button-outbound:hover {
  background: rgba(246, 204, 120, 0.16);
}

.affiliate-note {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.homepage-hero {
  padding: 54px 0 28px;
}

.hero-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  grid-template-areas: "headline visual" "copy visual";
  gap: 0 clamp(28px, 6vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(118, 87, 255, 0.12), transparent 35%),
    var(--hero-surface);
  box-shadow: var(--shadow);
}

.hero-frame > * {
  min-width: 0;
}

.hero-headline {
  grid-area: headline;
}

.hero-copy {
  grid-area: copy;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  width: 78%;
  max-width: 340px;
  min-width: 0;
  justify-self: end;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: #05080d;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 34px;
  left: 34px;
  margin: 0;
  color: white;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.45;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.hero-proof div,
.quick-grid > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.hero-proof strong,
.hero-proof span,
.quick-grid strong,
.quick-grid span {
  display: block;
}

.hero-proof strong,
.quick-grid strong {
  color: var(--on-soft-strong);
  font-size: 0.82rem;
}

.hero-proof span,
.quick-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.adult-guide-section {
  position: relative;
}

.adult-guide-section::before {
  position: absolute;
  inset: 8% 0 auto;
  z-index: -1;
  height: 78%;
  background: radial-gradient(circle at 82% 35%, rgba(255, 173, 92, 0.09), transparent 42%);
  content: "";
  pointer-events: none;
}

.adult-guide-grid .editorial-card {
  border-color: rgba(255, 173, 92, 0.2);
}

.adult-guide-grid .editorial-card:hover {
  border-color: rgba(255, 173, 92, 0.58);
}

.premium-guide-card {
  background: var(--premium-card-background);
  box-shadow: inset 0 3px 0 rgba(255, 173, 92, 0.72);
}

.trust-band {
  padding: 18px 0;
}

.trust-band .site-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--trust-background);
}

.trust-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #05131a;
  background: var(--teal);
  font-weight: 1000;
}

.trust-band p {
  margin: 0;
  color: var(--muted);
}

.trust-band strong {
  color: var(--ink);
}

.section-block {
  padding: clamp(42px, 6vw, 72px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.path-grid,
.feature-grid,
.quick-grid {
  display: grid;
  gap: 14px;
}

.path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-card,
.article-panel,
.decision-visual,
.example-card,
.comparison-table-wrap,
.toc,
.source-note,
.checkpoint-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.editorial-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
}

a.editorial-card,
a.goal-card {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

a.editorial-card:hover,
a.goal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 154, 255, 0.55);
  background: var(--surface-hover);
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.goal-card {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.goal-card .goal-label {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
}

.goal-card h2,
.goal-card h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.goal-card p {
  margin: 12px 0 20px;
  color: var(--muted);
}

.goal-card .card-link {
  margin-top: auto;
}

.compact-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-link-list a {
  display: block;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 750;
  text-decoration: none;
}

.compact-link-list a:hover {
  border-color: rgba(169, 154, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.editorial-card::after {
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 87, 255, 0.23), transparent 67%);
  content: "";
}

.card-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(61, 213, 195, 0.1);
  font-size: 0.76rem;
  font-weight: 1000;
}

/* Decision-path cards: solid badge + topical icon instead of the blurred
   gradient circle, so the four cards read as distinct steps rather than
   four identical panels. Scoped to .path-card so other .editorial-card
   uses (feature-grid, article pages) are unaffected. */
.path-card::after {
  content: none;
}

.path-card .card-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.path-card .card-number {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  border-radius: 10px;
  color: #06231f;
  background: var(--teal);
}

.path-card .card-icon {
  flex: 0 0 auto;
  color: var(--teal);
}

.editorial-card p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--purple-soft);
  font-size: 0.84rem;
  font-weight: 900;
}

.intent-strip {
  padding: 32px;
  border: 1px solid rgba(255, 139, 117, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 139, 117, 0.1), rgba(118, 87, 255, 0.11));
}

.intent-strip .chip-row {
  margin-top: 22px;
}

.article-main {
  padding: clamp(46px, 7vw, 86px) 0 100px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 28px;
  color: var(--faint);
  font-size: 0.83rem;
}

.breadcrumbs a {
  color: var(--teal);
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.66fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}

.article-hero.single {
  grid-template-columns: minmax(0, 1fr);
}

.article-hero > * {
  min-width: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 700;
}

.checkpoint-note {
  margin-top: 28px;
  padding: 14px 17px;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkpoint-note strong {
  color: var(--gold);
}

.transition-alert {
  margin: 0 0 clamp(34px, 6vw, 58px);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(246, 204, 120, 0.42);
  border-left: 5px solid var(--gold);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 12%, rgba(246, 204, 120, 0.16), transparent 18rem),
    rgba(246, 204, 120, 0.075);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.transition-alert .panel-title {
  max-width: 920px;
  margin-bottom: 10px;
}

.transition-alert p:not(.eyebrow) {
  max-width: 1040px;
  color: var(--transition-copy);
}

.transition-alert a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 6px;
  color: var(--gold);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.transition-alert a:hover {
  color: #fff0c7;
}

.quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 38px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 46px;
  align-items: start;
  margin-top: 44px;
}

.article-content {
  min-width: 0;
}

.article-content > section,
.article-content > div {
  margin-top: 22px;
}

.article-panel,
.example-card,
.source-note {
  padding: clamp(22px, 4vw, 34px);
}

.article-panel p,
.example-card p,
.source-note p {
  color: var(--muted);
}

.article-panel p:last-child,
.example-card p:last-child,
.source-note p:last-child {
  margin-bottom: 0;
}

.article-content h2:not(.panel-title) {
  margin: 58px 0 14px;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.article-content h3 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.article-content p,
.article-content li {
  color: var(--article-copy);
}

.article-content a:not(.button) {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 48%, transparent);
  text-underline-offset: 0.18em;
}

.article-content .eyebrow {
  color: var(--teal);
}

.article-content .eyebrow.warm {
  color: var(--coral);
}

.article-content li + li {
  margin-top: 8px;
}

.toc {
  position: sticky;
  top: 98px;
  padding: 20px;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal);
}

.reader-toc {
  border-top: 3px solid var(--purple-soft);
}

.reader-toc a {
  border-radius: 8px;
}

.reader-toc a:hover {
  padding-left: 7px;
  background: rgba(61, 213, 195, 0.08);
}

.reader-toc a:focus-visible,
.reader-jump-nav a:focus-visible,
.reader-next a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.legacy-reader .article-hero {
  max-width: 920px;
}

.legacy-reader .article-hero h1 {
  margin: 12px 0 18px;
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.legacy-reader .article-content > section:first-child {
  margin-top: 0;
}

.legacy-reader .article-content > .panel,
.legacy-reader .article-content > .route,
.legacy-reader .article-content > .cta-box,
.legacy-reader .article-content > .disclosure {
  padding: clamp(22px, 4vw, 34px);
}

.legacy-reader .article-content > .grid {
  margin-top: 22px;
}

.legacy-reader .article-content .split-panel {
  margin-top: 32px;
}

.reader-jump-nav {
  margin: 34px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--purple-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.reader-jump-nav strong {
  display: block;
  margin-bottom: 13px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-jump-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reader-jump-nav a {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.reader-jump-nav a:hover {
  border-color: rgba(61, 213, 195, 0.56);
  color: var(--ink);
}

[data-guide-reader] [id] {
  scroll-margin-top: 116px;
}

.reader-next {
  margin-top: clamp(48px, 8vw, 78px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(118, 87, 255, 0.34);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 8%, rgba(118, 87, 255, 0.18), transparent 20rem),
    var(--panel);
}

.reader-next h2 {
  margin: 8px 0 24px;
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 3.5vw, 2.55rem);
  letter-spacing: -0.04em;
}

.reader-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reader-next-grid a {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 108px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.reader-next-grid a:hover {
  border-color: rgba(169, 154, 255, 0.65);
  background: rgba(118, 87, 255, 0.12);
}

.reader-next-grid span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-next-grid strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.review-hub-intro {
  max-width: 930px;
}

.review-hub-intro .lede {
  max-width: 760px;
}

.review-directory-head {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.review-directory-head > div {
  max-width: 820px;
}

.review-directory-head h2 {
  margin-bottom: 14px;
}

.review-directory-head .lede {
  margin: 0;
}

.review-directory-head > .button {
  flex: 0 0 auto;
  margin-bottom: 4px;
}


.review-directory-note {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.review-directory-note strong {
  color: var(--ink);
}

.review-directory-note a {
  color: var(--teal);
  font-weight: 800;
}

.decision-visual {
  min-height: 360px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 139, 117, 0.16), transparent 13rem),
    radial-gradient(circle at 10% 90%, rgba(61, 213, 195, 0.17), transparent 12rem),
    var(--panel-strong);
}

.editorial-image-frame {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #07101a;
}

.editorial-image-frame picture,
.editorial-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.editorial-image-frame img {
  object-fit: cover;
}

.editorial-image-frame.ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.editorial-image-frame.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.editorial-figure {
  margin: 34px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.editorial-figure picture,
.editorial-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.infographic-figure {
  width: min(100%, 720px);
  margin-inline: auto;
}

.decision-phone {
  width: min(250px, 82%);
  margin: 22px auto 0;
  padding: 12px;
  transform: rotate(4deg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: #07101a;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
}

.decision-phone::before {
  display: block;
  width: 36%;
  height: 5px;
  margin: 3px auto 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  content: "";
}

.profile-card {
  min-height: 220px;
  padding: 18px;
  border-radius: 21px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent),
    linear-gradient(145deg, #965d7e, #273d65 55%, #152437);
}

.profile-lines {
  display: grid;
  gap: 7px;
  margin-top: 130px;
}

.profile-lines i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-lines i:last-child {
  width: 64%;
  opacity: 0.5;
}

.comparison-visual {
  display: grid;
  min-height: 360px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.choice-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 18px;
  color: white;
}

.choice-column:first-child {
  background: linear-gradient(180deg, rgba(255, 139, 117, 0.22), rgba(153, 55, 88, 0.52));
}

.choice-column:last-child {
  background: linear-gradient(180deg, rgba(61, 213, 195, 0.18), rgba(31, 96, 112, 0.55));
}

.choice-column small {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.choice-column strong {
  margin-top: 5px;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1;
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table-wrap:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--ink);
  background: var(--surface-related);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-table td {
  color: var(--muted);
}

.comparison-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 64px;
}

.comparison-dashboard > *,
.compare-summary-grid > *,
.compare-builder > *,
.compare-supporting > * {
  min-width: 0;
  max-width: 100%;
}

.compare-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compare-summary-grid > div,
.compare-builder,
.compare-supporting {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.compare-summary-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.compare-summary-grid p,
.compare-builder p,
.compare-supporting p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.compare-builder {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 90% 0, rgba(118, 87, 255, 0.18), transparent 18rem),
    var(--panel);
}

.compare-builder fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.compare-builder legend {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.compare-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.compare-choice {
  display: flex;
  min-height: 50px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.compare-choice:hover {
  border-color: rgba(169, 154, 255, 0.6);
}

.compare-choice:has(input:checked) {
  border-color: var(--purple-soft);
  background: rgba(118, 87, 255, 0.2);
}

.compare-choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.48;
}

.compare-choice input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--purple);
}

.compare-choice input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.compare-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compare-action-row .button {
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
}

.compare-action-row .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.compare-status {
  flex: 1 1 260px;
  color: var(--muted);
  font-size: 0.9rem;
}

.compare-section-heading {
  display: grid;
  gap: 7px;
}

.compare-section-heading h2,
.compare-section-heading p {
  margin: 0;
}

.compare-overview-table {
  width: 100%;
  min-width: 1080px;
}

.compare-overview-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.comparison-table .compare-app-cell,
.comparison-table .compare-criterion-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 150px;
  color: var(--ink);
  background: var(--table-cell-background);
}

.comparison-table thead .compare-app-cell,
.comparison-table thead .compare-criterion-cell {
  z-index: 3;
  background: var(--table-head-background);
}

.comparison-table a {
  font-weight: 800;
}

.fit-pill {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid rgba(61, 213, 195, 0.28);
  border-radius: 999px;
  color: #baf5ec;
  background: rgba(61, 213, 195, 0.09);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.fit-pill.fit-limited {
  border-color: rgba(255, 139, 117, 0.32);
  color: #ffd0c7;
  background: rgba(255, 139, 117, 0.09);
}

.goal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.goal-tag,
.cost-band {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
}

.goal-tag {
  padding: 5px 8px;
  color: #dce6f4;
  background: rgba(255, 255, 255, 0.04);
}

.goal-tag.casual { border-color: rgba(255, 139, 117, 0.34); color: #ffd1c8; background: rgba(255, 139, 117, 0.1); }
.goal-tag.hookups { border-color: rgba(246, 204, 120, 0.34); color: #ffe4aa; background: rgba(246, 204, 120, 0.09); }
.goal-tag.fwb { border-color: rgba(169, 154, 255, 0.4); color: #ddd5ff; background: rgba(118, 87, 255, 0.12); }
.goal-tag.long-term { border-color: rgba(61, 213, 195, 0.34); color: #baf5ec; background: rgba(61, 213, 195, 0.09); }
.goal-tag.non-monogamy { border-color: rgba(255, 126, 182, 0.34); color: #ffc8df; background: rgba(255, 126, 182, 0.09); }

.cost-band {
  gap: 7px;
  padding: 5px 9px;
  color: var(--gold);
  background: rgba(246, 204, 120, 0.08);
  white-space: nowrap;
}

.cost-band small {
  color: var(--muted);
  font-size: 0.68rem;
}

.compare-results[hidden],
.comparison-table [hidden] {
  display: none !important;
}

.compare-results {
  display: grid;
  gap: 16px;
  scroll-margin-top: 92px;
}

.compare-card-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compare-result-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.compare-result-card h3 {
  margin-bottom: 14px;
  color: var(--ink);
}

.compare-result-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.compare-result-card dl > div {
  display: grid;
  gap: 4px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.compare-result-card dt {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-result-card dd {
  margin: 0;
  color: var(--muted);
}

.compare-result-card a {
  color: var(--teal);
  font-weight: 850;
}

.compare-detail-table {
  min-width: 680px;
}

.compare-detail-table th:not(:first-child),
.compare-detail-table td:not(:first-child) {
  min-width: 190px;
}

.compare-supporting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.compare-supporting-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.message-stage {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 10%, rgba(118, 87, 255, 0.16), transparent 14rem),
    var(--panel-strong);
}

.message-bubble {
  width: min(88%, 520px);
  padding: 14px 17px;
  border-radius: 18px 18px 18px 5px;
  color: #dbe6f3;
  background: rgba(255, 255, 255, 0.065);
}

.message-bubble.outgoing {
  margin-left: auto;
  border-radius: 18px 18px 5px 18px;
  background: rgba(118, 87, 255, 0.28);
}

.message-bubble small {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-weight: 900;
}

:root[data-theme="light"] .message-bubble {
  color: #334155;
  background: #eef2f7;
}

:root[data-theme="light"] .message-bubble.outgoing {
  color: #312e5f;
  background: #ede9fe;
}

:root[data-theme="light"] .message-bubble small {
  color: #0f665c;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.principle-grid .example-card {
  min-width: 0;
}

.source-note {
  margin-top: 50px !important;
  border-color: rgba(246, 204, 120, 0.22);
  background: rgba(246, 204, 120, 0.055);
}

.source-links a {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.publisher-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-background);
}

.footer-grid-v2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: start;
  padding: 42px 0;
}

.footer-copy {
  max-width: 48ch;
  margin: 15px 0 0;
  color: var(--faint);
  font-size: 0.84rem;
}

.footer-nav-v2 {
  display: flex;
  max-width: 470px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.footer-nav-v2 a {
  min-height: 38px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-meta-v2 {
  margin: 20px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
}

.checklist-progress {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(160px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.checklist-progress div:first-child {
  display: grid;
  gap: 2px;
}

.checklist-progress span {
  color: var(--muted);
  font-size: 0.82rem;
}

.checklist-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.checklist-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  transition: width 180ms ease;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checklist-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.check-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  color: var(--muted);
  cursor: pointer;
}

.check-row + .check-row {
  border-top: 1px solid var(--line);
}

.check-row input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.check-row strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.check-row:has(input:checked) span {
  color: var(--faint);
}

.check-row:has(input:checked) strong {
  color: var(--teal);
}

.checklist-email-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Unified guide discovery and category shelves. */
.guide-library-main,
.topic-library-main {
  padding-bottom: 72px;
}

.guide-library-hero {
  padding: 58px 0 30px;
}

.guide-library-hero .hero-panel {
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 90% 10%, rgba(61, 213, 195, 0.15), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(255, 139, 117, 0.12), transparent 34%),
    var(--panel);
}

.guide-discovery {
  display: grid;
  gap: 22px;
  margin-top: 26px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-translucent);
}

.guide-search-label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.guide-search-label span {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.guide-search-input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--field-background);
  font: inherit;
}

.guide-search-input::placeholder {
  color: var(--faint);
}

.guide-search-input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: transparent;
}

.guide-filter-row {
  display: grid;
  gap: 12px;
}

.guide-filter-row strong {
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-filter-button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.guide-filter-button:hover {
  color: var(--ink);
  border-color: rgba(169, 154, 255, 0.55);
}

.guide-filter-button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--purple);
  background: var(--purple);
}

.guide-filter-button:focus-visible,
.guide-clear-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.guide-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 14px;
}

.guide-results-bar p {
  margin: 0;
  color: var(--muted);
}

.guide-clear-button {
  border: 0;
  color: var(--teal);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.guide-catalog-list,
.topic-guide-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.guide-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 154, 255, 0.5);
  background: var(--surface-hover);
}

.guide-item-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.guide-format,
.guide-topic {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
}

.guide-format {
  color: #ddd5ff;
  border-color: rgba(169, 154, 255, 0.38);
  background: rgba(118, 87, 255, 0.11);
}

.guide-topic {
  color: #baf5ec;
  border-color: rgba(61, 213, 195, 0.32);
  background: rgba(61, 213, 195, 0.07);
}

.guide-item-copy {
  min-width: 0;
}

.guide-item-copy h2,
.guide-item-copy h3 {
  margin: 0 0 7px;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.guide-item-copy h2 a,
.guide-item-copy h3 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-item-copy h2 a::after,
.guide-item-copy h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.guide-item-copy p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.guide-list-item {
  position: relative;
}

.guide-item-meta {
  display: grid;
  gap: 5px;
  min-width: 94px;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: right;
}

.guide-item-meta span:last-child {
  color: var(--teal);
}

.guide-list-item[hidden] {
  display: none;
}

.guide-empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.guide-empty-state[hidden] {
  display: none;
}

.topic-library-header {
  display: grid;
  gap: 14px;
  padding: 52px 0 28px;
}

.topic-library-header .breadcrumbs {
  margin-bottom: 8px;
}

.topic-library-header h1 {
  max-width: 860px;
}

.topic-start-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 12px 0 34px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(169, 154, 255, 0.42);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 15%, rgba(118, 87, 255, 0.2), transparent 36%),
    var(--panel);
}

.topic-start-card h2 {
  margin: 8px 0 12px;
}

.topic-start-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.topic-section-heading {
  margin: 0 0 16px;
}

.topic-related {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-related);
}

.topic-related h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.topic-related p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* Long-form ebook editions and the browsable library directory. */
.library-directory {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 34px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 22, 35, 0.8);
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

.directory-label {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.library-directory a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.library-directory a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.library-directory a[aria-current="page"] {
  color: #fff;
  background: var(--purple);
}

.library-directory a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

:root[data-theme="light"] .library-directory {
  background: #f1f5f9;
}

:root[data-theme="light"] .library-directory a:hover {
  background: rgba(98, 70, 229, 0.08);
}

.ebook-cover {
  display: flex;
  width: min(100%, 390px);
  min-height: 500px;
  justify-self: end;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px 28px 28px 8px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 139, 117, 0.34), transparent 34%),
    linear-gradient(145deg, #151f3c, #512f76 58%, #0d6971 140%);
  box-shadow: -14px 18px 0 rgba(4, 10, 17, 0.58), 0 30px 70px rgba(0, 0, 0, 0.36);
}

.ebook-cover strong {
  font-family: var(--display-font);
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.ebook-cover-series,
.ebook-cover small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ebook-cover > span:not(.ebook-cover-series) {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ebook-prose {
  counter-reset: chapter;
}

.ebook-chapter {
  position: relative;
  margin-top: 70px !important;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.chapter-number {
  margin: 0 0 10px;
  color: var(--coral) !important;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ebook-chapter > h2 {
  margin-top: 0 !important;
}

.field-work,
.scenario-block,
.script-card {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid rgba(61, 213, 195, 0.24);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(61, 213, 195, 0.08), rgba(118, 87, 255, 0.08));
}

.field-work > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field-work p,
.scenario-block p,
.script-card p {
  margin-bottom: 0;
}

.scenario-block h3 {
  margin-top: 0;
}

.consent-block {
  border-color: rgba(255, 139, 117, 0.3);
  background: linear-gradient(135deg, rgba(255, 139, 117, 0.1), rgba(118, 87, 255, 0.09));
}

.clean-checklist {
  padding: 0;
  list-style: none;
}

.clean-checklist li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
}

.clean-checklist li::before {
  float: left;
  margin-left: -30px;
  color: var(--teal);
  content: "✓";
  font-weight: 900;
}

.confidence-ladder {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.confidence-ladder li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.confidence-ladder span {
  grid-row: 1 / 3;
  color: var(--purple-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.confidence-ladder p {
  margin: 2px 0 0;
}

.before-after-grid,
.date-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.date-flow > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.date-flow span {
  display: block;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.date-flow strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.date-flow p {
  margin: 0;
  font-size: 0.92rem;
}

.comparison-table caption {
  padding: 0 0 13px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.ebook-toc a {
  display: flex;
  gap: 8px;
}

.ebook-toc a span {
  min-width: 1.6rem;
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 900;
}

.action-plan ol {
  padding-left: 1.25rem;
}

@media (max-width: 960px) {
  .path-grid,
  .feature-grid,
  .goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    order: -1;
  }

  .reader-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .reader-toc strong {
    grid-column: 1 / -1;
  }

  .reader-toc a {
    min-height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
  }

  .ebook-cover {
    justify-self: center;
  }

  .compare-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  :root {
    --shell: min(100% - 28px, 720px);
    --reading: min(100% - 28px, 720px);
  }

  .header-bar {
    position: relative;
    min-height: 68px;
    gap: 12px;
  }

  .js .mobile-header-controls {
    display: flex;
    margin-left: auto;
  }

  .js .theme-toggle-mobile {
    display: inline-grid;
  }

  .js .theme-toggle-desktop {
    display: none;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    flex-wrap: wrap;
  }

  .js .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px 14px 16px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: var(--mobile-nav-background);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .js .primary-nav[data-open="true"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-nav a,
  .primary-nav .nav-trigger,
  .primary-nav .nav-group {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .primary-nav .nav-trigger {
    justify-content: space-between;
  }

  .nav-submenu,
  .nav-submenu-wide,
  .nav-submenu-guides,
  .nav-submenu-apps {
    position: static;
    width: 100%;
    margin: 4px 0 8px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 2px solid rgba(169, 154, 255, 0.35);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-submenu a {
    min-height: 44px;
  }

  .nav-submenu-featured,
  .nav-menu-primary,
  .nav-menu-directory,
  .nav-app-links,
  .nav-guide-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-submenu-guides,
  .nav-submenu-apps {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .nav-menu-primary,
  .nav-menu-directory {
    padding: 6px 0;
    border-right: 0;
  }

  .nav-menu-directory {
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-submenu .nav-menu-path {
    min-height: 54px;
  }

  .nav-submenu-label {
    padding-top: 6px;
  }

  .guide-list-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .guide-item-meta {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    text-align: left;
  }

  .topic-start-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .topic-start-card .button {
    width: 100%;
  }

  .homepage-hero {
    padding-top: 24px;
  }

  .hero-frame,
  .article-hero,
  .section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .ebook-hero {
    gap: 36px;
  }

  .hero-frame {
    padding: 0;
    border-radius: 24px;
  }

  /* Image leads on mobile: it's the first thing in the card, full-bleed
     to the card edges, with the eyebrow and headline layered on top of
     its bottom edge (same grid cell, stacked by z-index) instead of
     sitting in a separate block below it. */
  .hero-frame {
    grid-template-areas: "visual" "copy";
    grid-template-rows: auto auto;
    gap: 0;
  }

  .hero-visual,
  .hero-headline {
    grid-area: visual;
  }

  .hero-visual {
    width: auto;
    max-width: none;
    justify-self: stretch;
  }

  .hero-visual img {
    aspect-ratio: 5 / 4;
    object-position: 50% 15%;
    border: 0;
    border-radius: 24px 24px 0 0;
  }

  .hero-headline {
    position: relative;
    z-index: 2;
    align-self: end;
    padding: 60px 24px 20px;
    background: linear-gradient(180deg, transparent, rgba(4, 8, 14, 0.82) 55%, rgba(4, 8, 14, 0.96) 88%);
  }

  .hero-headline .eyebrow {
    color: var(--coral);
  }

  .hero-headline .display-title {
    font-size: clamp(2.1rem, 8vw, 2.35rem);
    color: #fff;
  }

  .hero-copy {
    grid-area: copy;
    padding: 20px 24px 24px;
  }

  .hero-copy .lede {
    margin-top: 0;
  }

  .hero-proof,
  .quick-grid,
  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid-v2 {
    grid-template-columns: 1fr;
  }

  .footer-nav-v2 {
    justify-content: flex-start;
  }

  .checklist-progress,
  .checklist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .library-directory {
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

@media (max-width: 720px) {
  .review-directory-head {
    display: grid;
    gap: 18px;
    align-items: start;
  }

  .review-directory-head > .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .reader-next-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reader-next-grid a {
    min-height: 86px;
  }
}

@media (max-width: 420px) {
  .reader-toc {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .compare-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-results .comparison-table-wrap {
    display: none;
  }

  .compare-overview-wrap {
    overflow: visible;
  }

  .compare-overview-table,
  .compare-overview-table tbody,
  .compare-overview-table tr,
  .compare-overview-table th,
  .compare-overview-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .compare-overview-table {
    border: 0;
    background: transparent;
  }

  .compare-overview-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .compare-overview-table tbody {
    display: grid;
    gap: 14px;
  }

  .compare-overview-table tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
  }

  .comparison-table .compare-app-cell {
    position: static;
    padding: 15px 16px;
    border: 0;
    color: var(--ink);
    background: var(--table-head-background);
  }

  .compare-overview-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .compare-overview-table td::before {
    content: attr(data-label);
    color: var(--faint);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .compare-overview-table caption {
    display: block;
    width: 100%;
    padding: 0 0 12px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.55;
  }
}

@media (max-width: 560px) {
  .guide-results-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-filter-button {
    flex: 1 1 calc(50% - 8px);
  }

  .brand-words small {
    display: none;
  }

  .display-title {
    font-size: clamp(2.1rem, 9vw, 2.35rem);
  }

  .article-title {
    font-size: clamp(2.1rem, 9vw, 2.35rem);
  }

  .hero-proof,
  .quick-grid,
  .path-grid,
  .feature-grid,
  .goal-grid,
  .principle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ebook-cover {
    min-height: 410px;
    border-radius: 7px 22px 22px 7px;
    box-shadow: -8px 11px 0 rgba(4, 10, 17, 0.58), 0 22px 45px rgba(0, 0, 0, 0.3);
  }

  .before-after-grid,
  .date-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .confidence-ladder li {
    grid-template-columns: minmax(0, 1fr);
  }

  .confidence-ladder span {
    grid-row: auto;
  }

  .trust-band .site-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .comparison-visual {
    min-height: 300px;
  }

  .choice-column {
    padding: 14px;
  }

  .compare-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-supporting {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .compare-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-builder,
  .compare-summary-grid > div,
  .compare-supporting {
    padding: 18px;
  }

  .compare-action-row {
    align-items: stretch;
  }

  .compare-action-row .button {
    width: 100%;
    justify-content: center;
  }

  .compare-status {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Privacy and consent */
.consent-banner {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(4, 10, 17, 0.28);
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner-copy h2,
.consent-dialog h2 {
  margin: 2px 0 7px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.16;
}

.consent-banner-copy p,
.consent-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.consent-banner-copy a,
.consent-dialog a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent-kicker {
  color: var(--accent) !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consent-banner-actions,
.consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-banner-actions {
  justify-content: flex-end;
}

.consent-banner-actions button,
.consent-dialog-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.consent-banner-actions button:hover,
.consent-dialog-actions button:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.consent-banner-actions button:focus-visible,
.consent-dialog-actions button:focus-visible,
.consent-dialog-close:focus-visible,
.footer-privacy-choices:focus-visible,
.consent-option input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.consent-dialog {
  width: min(650px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(4, 10, 17, 0.45);
}

.consent-dialog::backdrop {
  background: rgba(4, 10, 17, 0.68);
  backdrop-filter: blur(3px);
}

.consent-dialog-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 22px 14px;
}

.consent-dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--panel-soft);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.consent-dialog-intro {
  padding: 0 22px 16px;
}

.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 22px 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
}

.consent-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.98rem;
}

.consent-option small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.consent-option input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent);
}

.consent-dialog-actions {
  padding: 8px 22px 14px;
}

.consent-dialog-policy {
  padding: 0 22px 22px;
}

.footer-privacy-choices {
  display: inline;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
}

.footer-privacy-choices:hover {
  color: var(--link);
  text-decoration-color: currentColor;
}

/* Date-idea finder and guide */
.date-ideas-hero-image {
  overflow: hidden;
  margin: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.date-ideas-hero-image img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.date-ideas-tool {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 88, 255, 0.14), transparent 38%),
    var(--panel-soft);
  box-shadow: var(--shadow);
}

.date-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}

.date-search-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.date-search-form input {
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface-raised);
  font: inherit;
}

.date-search-form input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.date-location-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
}

.date-location-examples button {
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--link);
  background: var(--surface-raised);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

:root[data-theme="light"] .date-location-examples button {
  color: #06675d;
}

.date-location-examples button:hover {
  border-color: var(--accent);
}

.date-location-examples button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.date-ideas-status {
  min-height: 1.6em;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.viator-consent-gate {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-raised);
}

.viator-consent-gate h3 {
  margin-top: 0;
}

.affiliate-disclosure {
  margin-top: 22px;
  padding: 13px 15px;
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-raised);
  font-size: 0.94rem;
  line-height: 1.6;
}

.viator-widget-host {
  min-width: 0;
  margin-top: 18px;
}

.viator-widget-host[aria-busy="true"] {
  min-height: 180px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(100deg, transparent 20%, rgba(111, 88, 255, 0.1) 45%, transparent 70%);
  background-size: 220% 100%;
  animation: date-ideas-loading 1.4s ease infinite;
}

@keyframes date-ideas-loading {
  to { background-position: -220% 0; }
}

.widget-privacy-note {
  margin-top: 16px;
  font-size: 0.9rem;
}

.date-idea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.date-idea-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.date-idea-grid h3 {
  margin-top: 0;
}

:root[data-theme="light"] body.design-v2 .template {
  background: #f8fafc;
}

:root[data-theme="light"] body.design-v2 code {
  color: #0f5f56;
}

.date-ideas-page .template strong {
  color: var(--ink);
}

.homepage-date-ideas-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(111, 88, 255, 0.14), rgba(27, 207, 191, 0.08)),
    var(--panel-soft);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.homepage-date-ideas-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.homepage-date-ideas-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.homepage-date-ideas-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  font-size: 1.45rem;
}

.homepage-date-ideas-card h3,
.homepage-date-ideas-card p {
  margin: 0;
}

.homepage-date-ideas-card h3 {
  margin-bottom: 6px;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
}

.homepage-date-ideas-card .card-link {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .date-search-form,
  .date-idea-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .date-search-form .button {
    width: 100%;
  }

  .homepage-date-ideas-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .homepage-date-ideas-card .card-link {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viator-widget-host[aria-busy="true"] {
    animation: none;
  }
}

@media (max-width: 800px) {
  .consent-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: calc(100% - 24px);
    padding: 17px;
    border-radius: 18px;
  }

  .consent-banner-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .consent-banner-actions button {
    padding-inline: 10px;
  }
}

@media (max-width: 520px) {
  .consent-banner-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .consent-banner-actions button,
  .consent-dialog-actions button {
    width: 100%;
  }

  .consent-dialog-actions {
    display: grid;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body.design-v2 {
    color: #111827;
    background: #fff;
    font-size: 10pt;
  }

  .publisher-header,
  .publisher-footer,
  .consent-banner,
  .consent-dialog,
  .breadcrumbs,
  .no-print,
  .toc {
    display: none !important;
  }

  .article-main,
  .article-hero,
  .checklist-section,
  .source-note {
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .article-title,
  .panel-title,
  .check-row strong {
    color: #111827;
  }

  .lede,
  .check-row,
  .source-note p {
    color: #374151;
  }

  .checklist-grid {
    display: block;
  }

  .checklist-section,
  .source-note {
    break-inside: avoid;
    margin: 0 0 18pt;
  }

  .check-row {
    padding: 6pt 0;
  }
}
