:root {
  color-scheme: only light;
  --ux-page: #F4F2EE;
  --ux-surface: #FFFFFF;
  --ux-surface-2: #F5F3EF;
  --ux-surface-3: #EAE7E1;
  --ux-ink: #16151B;
  --ux-ink-body: #3F3C46;
  --ux-ink-2: #57535F;
  --ux-heading: #211C1F;
  --ux-accent: #D03268;
  --ux-accent-dark: #A82452;
  --ux-accent-text: #BE2A5C;
  --ux-accent-line: rgba(208, 50, 104, 0.28);
  --ux-accent-soft: rgba(208, 50, 104, 0.10);
  --ux-wall: #8F1C1C;
  --ux-vermilion: var(--ux-accent);
  --ux-mint: #2D6A55;
  --ux-warn: #B25912;
  --ux-line: rgba(22, 21, 27, 0.09);
  --ux-line-2: rgba(22, 21, 27, 0.17);
  --ux-shadow: rgba(106, 35, 61, 0.12);
  --ux-shadow-strong: rgba(106, 35, 61, 0.20);
  --liquid-shadow: 0 2px 6px rgba(61, 32, 22, 0.05), 0 12px 28px rgba(61, 32, 22, 0.09);
  --surface-popup: #FFFFFF;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-ui);
  --ux-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ux-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  /* Strict 6-step typographic scale (zero half-pixel values) */
  --fs-h1: 36px;
  --fs-h2: 24px;
  --fs-lg: 18px;
  --fs-base: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--ux-page);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.ccx-lucian {
  margin: 0;
  background: var(--ux-page);
  color: var(--ux-ink);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }
a { color: var(--ux-accent-text); text-decoration: none; }
a:hover { color: var(--ux-accent-dark); }
:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 2px; }
::selection { background: rgba(208, 50, 104, 0.18); }
h1, h2 { text-wrap: balance; font-family: var(--font-ui); }
h3 { text-wrap: pretty; font-family: var(--font-ui); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ux-ink);
  color: var(--ux-surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  z-index: 120;
}
.skip-link:focus { left: 12px; }

.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.narrow-container { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.site-shell { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* Header: compact single-bar, opaque on scroll, hide-on-scroll-down mobile, static in landscape */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 64px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--ux-line);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.26s var(--ux-ease);
}
.site-header.is-scrolled {
  background: var(--ux-surface);
  box-shadow: 0 4px 20px -12px rgba(22, 21, 27, 0.12);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

/* Thin 2.5px reading progress line on bottom edge of header */
.header-reading-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background: var(--ux-accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
body.kind-post .header-reading-bar.is-active {
  opacity: 1;
}
.ccx-reading-head { display: none !important; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  flex-shrink: 0;
  min-height: 44px;
  padding-inline: 4px;
  border-radius: 12px;
  text-decoration: none;
}
.brand-wordmark {
  --wordmark-width: 146px;
  --mascot-size: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mascot {
  display: block;
  width: var(--mascot-size);
  height: var(--mascot-size);
  flex: none;
  object-fit: contain;
  border-radius: 8px;
}
.brand-lettering {
  display: block;
  width: var(--wordmark-width);
  height: auto;
  flex: none;
}
.brand-text-mark {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ux-heading);
}
.brand-text-mark em {
  font-style: normal;
  color: var(--ux-accent);
}

.desktop-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 4px;
  margin: 0;
  isolation: isolate;
}
.desktop-nav .lens-roam {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
  width: 48px;
  height: 38px;
  margin-top: -19px;
  border-radius: 999px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.desktop-nav .lens-roam.is-visible[data-positioned="true"] { opacity: 1; }
.desktop-nav .lens-roam__inner { display: none; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ux-ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-active, .nav-link[aria-expanded="true"] {
  color: var(--ux-ink);
}
.nav-link.is-active { font-weight: 700; }
.nav-link--bazaar::before {
  content: "\2726";
  font-size: var(--fs-xs);
  margin-right: 2px;
  color: var(--ux-accent);
}
.desktop-nav:not([data-lu-pill-ready="true"]) .nav-link.is-active {
  background: var(--ux-surface-2);
}

.stories-menu { position: relative; }
.stories-menu-trigger svg { transition: transform 0.22s var(--ux-ease); }
.stories-menu-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.stories-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  z-index: 60;
  width: 400px;
  padding: 18px;
  border: 1px solid var(--ux-line-2);
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: var(--liquid-shadow);
  color: var(--ux-ink);
}
.stories-menu-label {
  display: block;
  padding: 0 8px;
  color: var(--ux-ink-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stories-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: 10px;
}
.stories-menu-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--ux-ink);
  transition: background-color 0.18s ease;
}
.stories-menu-link > span {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.25;
}
.stories-menu-link em {
  font-style: normal;
  font-weight: 600;
  color: var(--ux-accent-text);
  margin-left: 4px;
  font-size: var(--fs-xs);
}
.stories-menu-link small {
  margin-top: 2px;
  color: var(--ux-ink-2);
  font-size: var(--fs-xs);
  line-height: 1.3;
}
.stories-menu-link:hover, .stories-menu-link:focus-visible, .stories-menu-link.is-active {
  background: var(--ux-accent-soft);
  color: var(--ux-ink);
}

/* Header Action Buttons: all >= 44x44px hit targets */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 6px;
}
.lu-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ux-surface-2);
  color: var(--ux-ink-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.lu-search-trigger:hover, .lu-search-trigger:focus-visible {
  background: var(--ux-surface);
  color: var(--ux-ink);
  box-shadow: inset 0 0 0 1px var(--ux-accent-line);
}
.lu-search-trigger__kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  color: var(--ux-ink-2);
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.points-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ux-accent-soft);
  color: var(--ux-accent-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.points-nav-pill:hover {
  background: rgba(208, 50, 104, 0.16);
  color: var(--ux-accent-dark);
}

.header-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ux-ink);
  color: var(--ux-surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
.header-signin-btn:hover {
  background: var(--ux-accent);
  color: var(--ux-surface);
}

.header-actions .icon-link,
.mobile-menu-btn,
.u074-bell,
.account-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ux-ink-2);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.header-actions .icon-link:hover,
.header-actions .icon-link:focus-visible,
.mobile-menu-btn:hover,
.mobile-menu-btn[aria-expanded="true"] {
  background: var(--ux-surface-2);
  color: var(--ux-ink);
}
.mobile-menu-btn { display: none; }
.mobile-menu-btn .mobile-menu-icon-close,
.mobile-menu-btn[aria-expanded="true"] .mobile-menu-icon-bars { display: none; }
.mobile-menu-btn[aria-expanded="true"] .mobile-menu-icon-close { display: block; }

.my-menu-wrap { position: relative; }
.account-avatar-btn {
  overflow: hidden;
  background: linear-gradient(140deg, var(--ux-accent), var(--ux-accent-dark));
  color: var(--ux-surface);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.account-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 65;
  width: 240px;
  padding: 8px;
  border-radius: 18px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line-2), var(--liquid-shadow);
  display: grid;
  gap: 2px;
}
.account-menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--ux-line); margin-bottom: 4px; }
.account-menu-head strong { display: block; font-size: var(--fs-sm); color: var(--ux-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-head small { display: block; font-size: var(--fs-xs); color: var(--ux-ink-2); }
.account-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ux-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
}
.account-menu-item:hover { background: var(--ux-surface-2); color: var(--ux-ink); }
.account-menu-item--danger { color: var(--ux-accent-dark); }
.account-menu-item--danger:hover { background: var(--ux-accent-soft); }

/* Notifications */
.u074.ccx-notifications { position: relative; width: 44px; height: 44px; flex: none; }
.u074-bell { background: var(--ux-surface-2); color: var(--ux-ink); box-shadow: inset 0 0 0 1px var(--ux-line); }
.u074-bell:hover { background: var(--ux-surface); }
.u074-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.u074-badge {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ux-accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--ux-surface);
}
.u074-badge.zero { display: none; }
.ccx-notifications .u074-pan {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 32px));
  max-height: min(420px, calc(100dvh - 96px));
  z-index: 65;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line-2), var(--liquid-shadow);
}
.u074.is-closed .u074-pan { opacity: 0; pointer-events: none; }
.u074-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ux-line); }
.u074-ph b { font-size: var(--fs-sm); font-weight: 700; }
.u074-all { border: 0; min-height: 36px; padding: 4px 8px; border-radius: 8px; background: none; font-size: var(--fs-xs); font-weight: 700; color: var(--ux-accent-text); }
.u074-all:disabled { color: var(--ux-ink-2); opacity: 0.5; cursor: default; }
.u074-list { margin: 0; padding: 8px; list-style: none; overflow-y: auto; display: grid; gap: 4px; }
.u074-row { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 22px 10px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: var(--ux-ink); }
.u074-row:hover { background: var(--ux-surface-2); }
.u074-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ux-accent); color: #fff; font-size: var(--fs-sm); font-weight: 700; }
.u074-tx { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ux-ink-2); }
.u074-tx b { color: var(--ux-ink); font-weight: 700; }
.u074-tx small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--ux-ink-2); }
.u074-dot { position: absolute; right: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ux-accent); }
.u074-row.read .u074-dot { display: none; }
.notification-empty { padding: 18px 16px; font-size: var(--fs-sm); color: var(--ux-ink-2); text-align: center; }

/* Mobile Nav Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 84;
  border: 0;
  padding: 0;
  background: rgba(22, 21, 27, 0.24);
}
.mobile-nav {
  position: fixed;
  top: 64px;
  right: 12px;
  left: 12px;
  z-index: 86;
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--ux-line-2);
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: var(--liquid-shadow);
}
.mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ux-line-2);
  border-radius: 999px;
  background: var(--ux-surface-2);
  color: var(--ux-ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
}
.mobile-nav-account { margin-top: 2px; }
.mobile-nav-signin { width: 100%; min-height: 44px; font-size: var(--fs-sm); }
.mobile-nav-member { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-nav-member__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.mobile-nav-member__pts { background: var(--ux-accent-soft); color: var(--ux-accent-text); }
.mobile-nav-group { display: grid; gap: 6px; }
.mobile-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.mobile-nav-label {
  display: block;
  padding: 0 10px 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ux-ink-2);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ux-ink);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.mobile-nav-link em {
  font-style: normal;
  font-weight: 500;
  color: var(--ux-accent-text);
  margin-left: 5px;
  font-size: var(--fs-xs);
}
.mobile-nav-link:hover, .mobile-nav-link.is-active {
  background: var(--ux-surface-2);
  color: var(--ux-ink);
}

/* Badges & Buttons */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ux-surface-2);
  color: var(--ux-ink-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.eyebrow-accent {
  background: var(--ux-accent-soft);
  color: var(--ux-accent-text);
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ux-ease), background-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-full { width: 100%; }
.btn-primary { background: var(--ux-accent); color: var(--ux-surface); }
.btn-primary:hover { background: var(--ux-accent-dark); color: var(--ux-surface); }
.btn-ink { background: var(--ux-ink); color: var(--ux-surface); }
.btn-ink:hover { background: var(--ux-heading); color: var(--ux-surface); }
.btn-ghost { background: var(--ux-surface); color: var(--ux-ink); box-shadow: inset 0 0 0 1px var(--ux-line-2); }
.btn-ghost:hover { background: var(--ux-surface-2); color: var(--ux-ink); }
.btn-danger { background: #C23A2E; color: #fff; }
.btn-danger:hover { background: var(--ux-accent-dark); color: #fff; }

/* Home Hero & Sections */
.home-opening-canvas {
  position: relative;
  isolation: isolate;
  background: linear-gradient(to bottom, var(--ux-surface) 0%, var(--ux-surface) 86%, var(--ux-page) 100%);
  overflow: clip;
}
.home-opening-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 68% 60% at 10% 12%, rgba(238, 100, 92, 0.22), transparent 62%),
    radial-gradient(ellipse 60% 70% at 92% 55%, rgba(208, 50, 104, 0.16), transparent 64%);
}
.lu-hero.xiao-fu-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  column-gap: 28px;
  padding: 28px 0 88px;
}
.xiao-fu-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}
.xiao-fu-art { display: block; width: 100%; height: auto; object-fit: contain; }
.lu-hero.xiao-fu-intro h1 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ux-heading);
}
.hero-line-lead { display: block; margin-bottom: 4px; color: var(--ux-accent-text); }
.scrollCue {
  position: absolute;
  inset-inline: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  min-height: 48px;
  margin-inline: auto;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--ux-ink);
}
.cueCopy { display: grid; gap: 2px; }
.cueLabel { color: var(--ux-ink-2); font-size: var(--fs-xs); font-weight: 600; }
.cueTitle { font-size: var(--fs-base); font-weight: 600; color: var(--ux-ink); }
.scrollCue:hover .cueTitle { text-decoration: underline; text-underline-offset: 3px; }
.cueArrows {
  position: relative;
  flex: none;
  width: 36px;
  height: 44px;
  border: 1px solid var(--ux-accent-line);
  border-radius: 999px;
  background: var(--ux-accent-soft);
  color: var(--ux-accent);
}
.cueArrows::before, .cueArrows::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translate(-50%) rotate(45deg);
}
.cueArrows::after { top: 19px; }

.section-band { padding: 44px 0; }
.laowai-feature { padding-top: 16px; scroll-margin-top: 80px; }
.laowai-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 340px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 24px;
  background: var(--ux-ink);
  color: var(--ux-surface);
}
.laowai-cover-art { position: absolute; inset: 0; overflow: hidden; }
.laowai-cover-art--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transition: transform 0.35s ease;
}
.laowai-cover--photo:hover .laowai-cover-art--photo img { transform: scale(1.03); }
.laowai-cover--photo .laowai-cover-art--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(95deg, rgba(24, 15, 18, 0.9), rgba(24, 15, 18, 0.72) 50%, rgba(24, 15, 18, 0.22));
}
.laowai-cover-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ux-accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.laowai-cover-copy {
  position: relative;
  width: 58%;
  padding-block: 16px;
  border-block: 1px solid rgba(255, 255, 255, 0.42);
}
.laowai-cover h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}
.laowai-cover-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #fff;
}
.laowai-cover:is(:hover, :focus-visible) .laowai-cover-action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-stories-section, .home-editorial-section { padding-top: 56px; }
.home-paths-section { padding-top: 48px; }
.home-ad-wrap { padding-top: 24px; }
.home-ad-wrap:not(:has(.ad-slot ins)):not(:has(.ad-slot[data-ad-layout-preview="true"])) {
  display: none;
}

.home-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 22px;
}
.home-section-heading h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ux-ink);
}
.home-section-heading > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ux-accent-text);
}
.home-section-heading > a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Story Grid & Cards (no redundant Read story button) */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.lu-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 22px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 18px 36px -28px var(--ux-shadow-strong);
  transition: transform 0.22s var(--ux-ease), box-shadow 0.22s var(--ux-ease);
  color: var(--ux-ink);
}
.lu-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1.5px var(--ux-accent), 0 22px 40px -26px var(--ux-shadow-strong);
  color: var(--ux-ink);
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ux-ink-2);
}
.lu-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ux-surface-2);
  color: var(--ux-ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.lu-story h2, .lu-story h3 {
  margin: 14px 0 8px;
  font-size: var(--fs-lg);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ux-ink);
}
.lu-story p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ux-ink-2);
}
.home-read-link { display: none !important; }

.lu-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lu-paths--companions { margin-top: 16px; }
.lu-path-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 124px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  color: var(--ux-ink);
  transition: transform 0.22s var(--ux-ease), box-shadow 0.22s ease;
}
.lu-path-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1.5px var(--ux-accent), 0 16px 28px -18px var(--ux-shadow-strong);
  color: var(--ux-ink);
}
.lu-path-kicker { font-size: var(--fs-xs); font-weight: 700; color: var(--ux-ink-2); }
.lu-path-title { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.015em; color: var(--ux-ink); line-height: 1.3; }
.lu-path-desc { margin: 0; font-size: var(--fs-sm); line-height: 1.58; color: var(--ux-ink-2); }
.lu-path-card--lavender { background: rgba(110, 70, 143, 0.06); box-shadow: inset 0 0 0 1px rgba(110, 70, 143, 0.24); }
.lu-path-card--lavender:hover { background: #fff; box-shadow: inset 0 0 0 1.5px #6E468F, 0 16px 28px -18px rgba(62, 35, 85, 0.24); }
.lu-path-card--lavender .lu-path-kicker { color: #6E468F; }

/* Newsletter Box: always visible input + Subscribe button for guests & members */
.home-newsletter {
  margin-top: 28px;
  padding: 32px 36px;
  border-radius: 24px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 20px 40px -30px var(--ux-shadow-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
}
.home-newsletter-copy { flex: 1 1 320px; min-width: 0; }
.home-newsletter-copy h2 {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ux-ink);
}
.home-newsletter-copy p { margin: 0; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.home-newsletter-form { flex: 1 1 420px; min-width: 0; display: grid; gap: 8px; }
.home-newsletter-row, .home-newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.home-newsletter-input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ux-line-2);
  border-radius: 999px;
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  font-size: var(--fs-base);
}
.home-newsletter-input:focus {
  outline: none;
  border-color: var(--ux-accent);
  background: var(--ux-surface);
  box-shadow: 0 0 0 3px var(--ux-accent-soft);
}
.home-newsletter-msg { margin: 0; }

/* Subnav Pills */
.subnav-lens {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
}
.subnav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ux-ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.subnav-pill:hover { color: var(--ux-ink); background: var(--ux-surface-2); }
.subnav-pill.is-active { background: var(--ux-ink); color: var(--ux-surface); }

/* Page Hero & Post Header */
.lu-page-hero {
  margin-top: 24px;
  padding: 36px 40px;
  border-radius: 26px;
  background: radial-gradient(110% 70% at 50% 0%, var(--ux-accent-soft), transparent 65%), var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
}
.lu-page-hero h1,
.post-header h1 {
  margin: 10px 0 0;
  font-size: var(--fs-h1);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ux-ink);
}
.lu-page-hero .lead,
.post-header .lead {
  margin: 12px 0 0;
  max-width: 66ch;
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ux-ink-2);
}
.post-header { margin-bottom: 22px; }
.post-header .lead { max-width: none; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ux-ink-2);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--ux-ink-2); }
.breadcrumb a:hover { color: var(--ux-accent-text); }

/* Non-breaking Article Meta (no hanging trailing dot) */
.post-eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ux-ink-2);
}
.article-meta__sep { display: none !important; }
.article-meta > * {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.article-meta > :not(.article-meta__sep) + :not(.article-meta__sep)::before {
  content: "\00b7";
  margin-right: 6px;
  color: var(--ux-ink-2);
}
.article-meta__author { color: var(--ux-ink); font-weight: 700; }

/* Article Layout & Alignment (fixes 250px right mismatch when ads/TOC are hidden) */
.ccx-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin: 24px 0 48px;
}
.ccx-reader > * { min-width: 0; }
.ccx-reader--post {
  display: grid;
  grid-template-columns: 48px minmax(0, 768px) auto;
  justify-content: center;
  column-gap: 24px;
  align-items: start;
}
/* Collapse empty right rail cleanly so layout centers symmetrically */
.ccx-reader-rail:not(:has(> :not([hidden]):not(.ad-slot:not(:has(ins)):not([data-ad-layout-preview="true"])))) {
  display: none;
}
.ccx-reader--post:not(:has(.ccx-reader-rail > :not([hidden]):not(.ad-slot:not(:has(ins)):not([data-ad-layout-preview="true"])))) {
  grid-template-columns: 48px minmax(0, 768px);
}
.ccx-desktop-actions-slot {
  position: sticky;
  top: 84px;
  align-self: start;
}
.ccx-reader-main {
  min-width: 0;
  width: 100%;
  max-width: 768px;
  display: grid;
  gap: 24px;
}
.ccx-reader-rail {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 18px;
  align-self: start;
}
.ccx-reader-rail > * { width: 240px; }

/* Unified 48px (Desktop) / 44px (Mobile) Action Buttons */
.ccx-article-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 48px;
}
.action-btn,
.u022-btn,
.u012-btn,
.u008-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--ux-surface);
  color: var(--ux-ink-2);
  box-shadow: 0 0 0 1px var(--ux-line), 0 8px 20px -14px var(--ux-shadow-strong);
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.action-btn:hover,
.u022-btn:hover,
.u012-btn:hover,
.u008-btn:hover {
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  box-shadow: 0 0 0 1px var(--ux-line-2);
}
.action-btn:active { transform: scale(0.95); }
.action-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.action-btn svg.icon-fill {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.action-btn .icon-copied { display: none; }
.action-btn.is-copied {
  background: var(--ux-mint);
  color: #fff;
  box-shadow: none;
}
.action-btn.is-copied .icon-copy { display: none; }
.action-btn.is-copied .icon-copied { display: block; }
.action-btn[data-gf-liked],
.action-btn.is-on,
.action-btn.is-saved {
  background: var(--ux-accent-soft);
  color: var(--ux-accent-text);
  box-shadow: inset 0 0 0 1.5px var(--ux-accent-line);
}
.action-btn[data-gf-liked] svg,
.action-btn.is-saved svg {
  fill: currentColor;
}
.action-btn__count,
.ccx-rail-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ux-ink);
  color: var(--ux-surface);
  box-shadow: 0 0 0 2px var(--ux-page);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.action-btn__count[data-zero="true"],
.ccx-rail-badge[data-zero="true"] {
  display: none !important;
}

/* Editorial Card, Cover Figure & Balanced Prose */
.editorial-card {
  min-width: 0;
  padding: 36px 40px;
  border-radius: 26px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 24px 48px -34px var(--ux-shadow-strong);
}
.editorial-card--spacious {
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 52px);
}
.article-figure {
  margin: 0 0 26px;
  padding: 12px;
  border-radius: 18px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}
.article-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ux-ink-2);
}

/* Prose: softer contrast (#3f3c46) & restrained bold weight */
.prose {
  color: #3f3c46;
  min-width: 0;
  max-width: none;
}
.prose--centered {
  max-width: 68ch;
  margin-inline: auto;
}
.prose h2 {
  margin: 32px 0 12px;
  font-size: var(--fs-h2);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ux-ink);
  scroll-margin-top: 84px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 24px 0 8px;
  font-size: var(--fs-lg);
  line-height: 1.32;
  font-weight: 700;
  color: var(--ux-ink);
  scroll-margin-top: 84px;
}
.prose p {
  margin: 0 0 18px;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: #3f3c46;
  text-wrap: pretty;
}
.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #3f3c46;
  font-size: var(--fs-base);
  line-height: 1.72;
}
.prose li { margin-bottom: 8px; }
.prose strong {
  color: inherit;
  font-weight: 600;
}
.prose a:not(.btn) {
  color: var(--ux-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ux-accent-line);
  text-underline-offset: 3px;
}
.prose a:not(.btn):hover {
  color: var(--ux-accent-text);
  text-decoration-color: currentColor;
}
.prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--ux-surface-2);
  border-left: 3px solid var(--ux-accent);
  border-radius: 0 14px 14px 0;
  color: var(--ux-ink);
}
.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--ux-surface-2);
  font-size: var(--fs-sm);
}

.article-section-link {
  margin-left: 8px;
  opacity: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ux-accent-text);
  text-decoration: none !important;
  transition: opacity 0.18s;
}
.prose h2:hover .article-section-link,
.prose h3:hover .article-section-link,
.article-section-link:focus-visible { opacity: 0.85; }

/* Single-Row Action & Share Bar */
.engage-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--ux-line);
}
.engage-bar__slot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.engage-bar__slot:empty { display: none; }
.engage-bar__share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.engage-bar__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ux-ink-2);
  margin-right: 4px;
}
.engage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.engage-btn:hover { background: var(--ux-surface); box-shadow: inset 0 0 0 1px var(--ux-line-2); }
.engage-btn[data-gf-liked] { background: var(--ux-accent); color: var(--ux-surface); box-shadow: none; }
.engage-btn--subtle { background: transparent; box-shadow: none; color: var(--ux-ink-2); }
.engage-btn--subtle:hover { background: var(--ux-surface-2); color: var(--ux-ink); }
.share-msg { font-size: var(--fs-xs); color: var(--ux-ink-2); font-weight: 600; white-space: nowrap; }
.share-msg:empty { display: none; }

/* Tables & Unified Disclosures (Appendix + FAQ use identical right-chevron style) */
.table-scroll,
.sample-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 20px 0;
  border-radius: 14px;
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}
.table-scroll:focus-visible,
.sample-table-wrap:focus-visible {
  outline: 2px solid var(--ux-accent);
  outline-offset: 2px;
}
.prose table,
.appendix-table,
.sample-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.prose th, .prose td,
.appendix-table th, .appendix-table td,
.sample-table th, .sample-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--ux-line);
  text-align: left;
  vertical-align: top;
}
.prose th,
.appendix-table th,
.sample-table th {
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.appendix-table td { color: #3f3c46; }
.appendix-table td:first-child { color: var(--ux-ink); font-weight: 600; }
.appendix-table tbody tr:last-child td,
.sample-table tbody tr:last-child td { border-bottom: 0; }

.reference-appendix {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ux-line);
  color: var(--ux-ink-2);
}
.reference-appendix .table-scroll { margin: 0 0 12px; }
.appendix-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 12px;
}
.appendix-kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ux-ink-2);
}
.appendix-meta { font-size: var(--fs-xs); font-weight: 600; color: var(--ux-ink-2); }

/* Unified Accordion Component (.appendix-details & .faq-item share identical right arrow) */
.appendix-details,
.faq-item {
  border-radius: 14px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  overflow: hidden;
}
.appendix-details { margin-top: 10px; }
.appendix-details > summary,
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--ux-ink);
  font-size: var(--fs-base);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.appendix-details > summary::-webkit-details-marker,
.faq-item > summary::-webkit-details-marker,
.appendix-details > summary::marker,
.faq-item > summary::marker {
  display: none;
  content: "";
}
.appendix-details > summary::after,
.faq-item > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -2px;
  border: solid var(--ux-ink-2);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ux-ease);
}
.appendix-details[open] > summary,
.faq-item[open] > summary {
  border-bottom: 1px solid var(--ux-line);
}
.appendix-details[open] > summary::after,
.faq-item[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.entity-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 16px 0; }
.entity-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ux-ink);
}
.geo-facts-list,
.appendix-sources {
  margin: 12px 0 0;
  padding: 0 16px 14px 34px;
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: #3f3c46;
}
.geo-facts-list li, .appendix-sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.appendix-sources a {
  color: var(--ux-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ux-accent-line);
  text-underline-offset: 2px;
}

.faq-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ux-line);
  scroll-margin-top: 84px;
}
.reference-appendix + .faq-block--quiet {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ux-line);
}
/* Consistent H2 size across all sections */
.faq-heading,
.faq-block--quiet .faq-heading {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ux-ink);
}
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.faq-item p {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: #3f3c46;
}

/* TOC Rail */
.ccx-reader-toc {
  padding: 18px;
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
}
.ccx-reader-toc-label {
  margin: 0 0 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ux-ink-2);
}
.ccx-reader-toc-track { position: relative; }
.u275-ul { position: relative; margin: 0; padding: 0 0 0 12px; list-style: none; display: grid; gap: 4px; }
.u275-ul::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--ux-line); }
.u275-mk { position: absolute; left: 0; top: 0; width: 2.5px; height: 28px; border-radius: 2px; background: var(--ux-accent); z-index: 1; pointer-events: none; transition: transform 0.25s var(--ux-ease), height 0.25s var(--ux-ease); }
.u275-ul a { display: block; padding: 5px 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--ux-ink-2); line-height: 1.4; }
.u275-ul a[data-level="3"] { padding-left: 12px; }
.u275-ul a.is-on, .u275-ul a:hover { color: var(--ux-ink); font-weight: 700; }
.toc-back-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ux-line); }
.toc-back-btn { width: 100%; min-height: 44px; font-size: var(--fs-sm); }

/* Ad Slots: strictly collapse when empty or unfilled */
.ad-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
}
/* ad-slot visibility controlled by [hidden] attribute from AdSense loader */
.ad-slot__label { display: flex; align-items: center; gap: 10px; }
.ad-slot__label-text { flex: none; color: var(--ux-ink-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ad-slot__label-line { flex: 1; height: 1px; background: var(--ux-line); }
.ad-slot__inner { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 96px; }
.ad-slot--vertical .ad-slot__inner { min-height: 250px; }
.ad-slot[data-ad-layout-preview="true"] .ad-slot__inner { border: 1px dashed var(--ux-line-2); border-radius: 14px; background: var(--ux-surface-2); padding: 16px; }
.ad-slot__placeholder { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--ux-ink-2); }
.ad-slot__placeholder-title { font-size: var(--fs-sm); font-weight: 700; color: var(--ux-ink); }
.ad-slot__placeholder-desc, .ad-slot__disclaimer { margin: 0; font-size: var(--fs-xs); color: var(--ux-ink-2); text-align: center; }

/* Related Stories & Comments */
.related-stories-block { padding-top: 4px; }
.related-stories-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.comments-box {
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  scroll-margin-top: 84px;
}
.comments-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.comments-heading {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ux-ink);
}
.comments-bazaar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ux-accent-text);
  white-space: nowrap;
}
.comments-bazaar-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.comment-form { display: grid; gap: 12px; margin-bottom: 18px; }
.comment-submit { justify-self: start; }

.form-field { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ux-ink); }
.form-field input,
.form-field select,
.form-field textarea,
.account-delete-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ux-line-2);
  background-color: var(--ux-surface);
  color: var(--ux-ink);
  font-size: var(--fs-base);
  font-weight: 400;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field textarea { min-height: 96px; line-height: 1.55; resize: vertical; }
.form-field select {
  padding-right: 38px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316151B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #75707C; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.account-delete-input:focus {
  outline: none;
  border-color: var(--ux-accent);
  box-shadow: 0 0 0 3px var(--ux-accent-soft);
}
.form-feedback { margin: 4px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ux-ink-2); }
.form-feedback:empty { display: none; }

.field-label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ux-ink); margin-bottom: 4px; }
.comment-name-field { max-width: 320px; }
.comment-name-field small { font-weight: 500; color: var(--ux-ink-2); font-size: var(--fs-xs); }
.cc028-box {
  position: relative;
  padding: 12px 14px 10px;
  border-radius: 16px;
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 1px var(--ux-line-2);
}
.cc028-box:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--ux-accent), 0 0 0 3px var(--ux-accent-soft);
}
.cc028-ta {
  display: block;
  width: 100%;
  min-height: 56px;
  max-height: 160px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ux-ink);
}
.cc028-ta::placeholder { color: #75707C; }
.cc028-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ux-ink-2);
  font-variant-numeric: tabular-nums;
}
.cc028-ring { position: relative; width: 24px; height: 24px; flex: none; }
.cc028-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cc028-ring circle { fill: none; stroke-width: 3; }
.cc028-ring .bg { stroke: var(--ux-surface-3); }
.cc028-ring .fg { stroke: var(--ux-accent); stroke-linecap: round; stroke-dasharray: 75.4; stroke-dashoffset: calc(75.4 * (1 - var(--p, 0))); }
.cc028.is-near .cc028-ring .fg { stroke: var(--ux-warn); }

/* Checkbox label >= 44px touch target */
.sensitive-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ux-ink-2);
  cursor: pointer;
}
.sensitive-check input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--ux-accent);
  flex: none;
  cursor: pointer;
}
.sensitive-check a {
  color: var(--ux-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dfa-soft-notice { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(178, 89, 18, 0.1); color: var(--ux-warn); font-size: var(--fs-sm); font-weight: 600; }
.comments-empty-note, .comments-closed-note { margin: 12px 0; padding: 16px; border-radius: 14px; background: var(--ux-surface-2); color: var(--ux-ink-2); font-size: var(--fs-sm); text-align: center; }
.reply-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 14px; border-radius: 12px; background: var(--ux-accent-soft); color: var(--ux-accent-dark); font-size: var(--fs-sm); font-weight: 600; }
.reply-cancel-btn { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ux-surface); color: var(--ux-ink); box-shadow: inset 0 0 0 1px var(--ux-line-2); font-size: var(--fs-xs); font-weight: 700; }
.comment-thread .comment-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-top: 1px solid var(--ux-line); }
.comment-thread .comment-reply-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; }
.comment-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ux-accent); color: #fff; font-size: var(--fs-sm); font-weight: 700; }
.comment-avatar--sm { width: 28px; height: 28px; font-size: var(--fs-xs); }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-xs); color: var(--ux-ink-2); margin-bottom: 4px; }
.comment-meta strong { color: var(--ux-ink); font-size: var(--fs-sm); }
.comment-owner-badge { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--ux-accent); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.comment-reply-to { font-size: var(--fs-xs); color: var(--ux-ink-2); }
.comment-reply-to:not(:empty)::before { content: "\21b3\a0"; }
.comment-bubble { margin: 4px 0 0; padding: 10px 14px; border-radius: 4px 16px 16px; background: var(--ux-surface-2); box-shadow: inset 0 0 0 1px var(--ux-line); color: var(--ux-ink); font-size: var(--fs-sm); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.comment-reply-btn, .comment-delete-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ux-ink-2); font-size: var(--fs-xs); font-weight: 700; }
.comment-reply-btn:hover { background: var(--ux-surface-2); color: var(--ux-ink); }
.comment-delete-btn { color: var(--ux-accent-dark); }
.comment-delete-btn:hover { background: var(--ux-accent-soft); }
.comment-replies { margin: 8px 0 0 4px; padding-left: 14px; border-left: 2px solid var(--ux-line); }
.comment-replies:empty { display: none; }

/* Premium Gate */
.premium-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--ux-accent-soft); color: var(--ux-accent-text); font-size: var(--fs-xs); font-weight: 700; }
.cc259-pw { max-width: 540px; margin: 26px auto; }
.cc259-cd { padding: 26px 24px; border-radius: 22px; background: var(--ux-ink); color: var(--ux-surface); text-align: center; }
.premium-gate__icon { font-size: var(--fs-h2); margin-bottom: 6px; }
.premium-gate__title { display: block; font-size: var(--fs-lg); font-weight: 700; color: #fff; }
.premium-gate__desc { margin: 8px auto 0; max-width: 44ch; font-size: var(--fs-sm); line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.premium-gate__cost { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.premium-gate__cost-value { font-size: var(--fs-h2); font-weight: 700; color: #fff; }
.premium-gate__cost-label { font-size: var(--fs-xs); font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.cc259-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 16px; border: 0; border-radius: 999px; background: var(--ux-accent); color: #fff; font-size: var(--fs-sm); font-weight: 700; }
.cc259-go:hover { background: var(--ux-accent-dark); }
.premium-gate__hint { margin: 10px 0 0; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.74); }

/* Secondary Pages: Membership, Concierge, Bazaar, Points, Account, User, Search, Channels */
.tool-stage { margin: 22px 0 32px; scroll-margin-top: 84px; }
.tool-guide-card, .coming-soon-body, .channel-intro-card, .mem-prose-card { margin-top: 24px; }
.channel-cn-mark { margin: 10px 0 0; font-size: var(--fs-h2); font-weight: 700; letter-spacing: 0.1em; color: var(--ux-accent); line-height: 1.2; }
.coming-soon-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.pricing-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 26px;
  border-radius: 24px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 20px 40px -30px var(--ux-shadow-strong);
}
.tier-featured { box-shadow: 0 0 0 2px var(--ux-accent), 0 24px 44px -28px var(--ux-shadow-strong); }
.tier-title { margin: 12px 0 0; font-size: var(--fs-h2); font-weight: 700; color: var(--ux-ink); }
.tier-price { margin: 8px 0 0; font-size: var(--fs-h1); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; color: var(--ux-ink); }
.tier-price small { font-size: var(--fs-sm); font-weight: 600; color: var(--ux-ink-2); }
.tier-desc { margin: 10px 0 14px; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.tier-list { margin: 0; padding-left: 18px; color: #3f3c46; font-size: var(--fs-sm); line-height: 1.65; }
.tier-list li { margin-bottom: 6px; }
.tier-cta { width: 100%; }

.mem-film { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ux-heading); }
.mem-film__bg { position: absolute; inset: 0; z-index: -1; }
.mem-film__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.mem-film__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(33, 20, 29, 0.92), rgba(124, 29, 64, 0.76) 62%, rgba(33, 20, 29, 0.88)); }
.mem-film h1 { color: #fff; }
.mem-film .lead { color: rgba(255, 255, 255, 0.86); }
.breadcrumb--light, .breadcrumb--light a { color: rgba(255, 255, 255, 0.78); }
.mem-eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.mem-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.mem-benefit { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); }
.mem-benefit__icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ux-accent-soft); font-size: var(--fs-lg); }
.mem-benefit strong { display: block; font-size: var(--fs-sm); color: var(--ux-ink); }
.mem-benefit small { display: block; font-size: var(--fs-xs); color: var(--ux-ink-2); }
.pay-status-stack { margin-top: 20px; }
.pay-banner { padding: 16px 20px; border-radius: 16px; margin-bottom: 18px; font-size: var(--fs-sm); font-weight: 600; }
.pay-banner-ok { background: var(--ux-surface); box-shadow: inset 0 0 0 2px var(--ux-mint); color: var(--ux-mint); }
.pay-banner-wait { background: var(--ux-surface); box-shadow: inset 0 0 0 2px var(--ux-warn); color: var(--ux-warn); }
.checkout-compliance-box { margin-top: 22px; padding: 22px 24px; border-radius: 20px; background: var(--ux-surface-2); box-shadow: inset 0 0 0 1px var(--ux-line); }
.checkout-compliance-title { margin: 0 0 12px; font-size: var(--fs-base); font-weight: 700; color: var(--ux-ink); }
.checkout-compliance-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--fs-sm); line-height: 1.6; color: #3f3c46; }

.naming-bridge-card {
  margin-top: 24px;
  padding: 26px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(110, 70, 143, 0.08), rgba(110, 70, 143, 0.14));
  box-shadow: inset 0 0 0 1px rgba(110, 70, 143, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  color: var(--ux-ink);
}
.naming-bridge-card__copy { flex: 1 1 320px; min-width: 0; }
.naming-bridge-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: rgba(110, 70, 143, 0.15); color: #6E468F; font-size: var(--fs-xs); font-weight: 700; }
.naming-bridge-card h2 { margin: 10px 0 6px; font-size: var(--fs-h2); line-height: 1.25; font-weight: 700; color: var(--ux-ink); }
.naming-bridge-card p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--ux-ink-2); }
.naming-bridge-card__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }
.naming-bridge-btn-primary { background: #6E468F; color: #fff; }
.naming-bridge-btn-primary:hover { background: #53326E; color: #fff; }
.naming-bridge-btn-ghost { background: #fff; color: var(--ux-ink); box-shadow: inset 0 0 0 1px rgba(110, 70, 143, 0.32); }

.concierge-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; margin-top: 24px; }
.concierge-card-title { margin: 12px 0 8px; font-size: var(--fs-h2); font-weight: 700; color: var(--ux-ink); }
.concierge-card-desc { margin: 0 0 16px; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.concierge-channel-stack { display: grid; gap: 14px; margin-top: 18px; }
.concierge-channel-box { padding: 16px 18px; border-radius: 16px; background: var(--ux-surface-2); }
.concierge-channel-box p { margin: 6px 0 12px; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.concierge-form { display: grid; gap: 14px; }
.concierge-submit { justify-self: start; }

.bazaar-page { padding-bottom: 8px; }
.bazaar-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.bazaar-hero-copy { flex: 1 1 520px; min-width: 0; }
.bazaar-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.bazaar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin: 24px 0 48px; }
.bazaar-main { display: grid; gap: 24px; min-width: 0; }
.bazaar-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.bazaar-filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); }
.bazaar-page-engage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bazaar-section-title { margin: 0 0 14px; font-size: var(--fs-h2); font-weight: 700; line-height: 1.25; color: var(--ux-ink); }
.bazaar-prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bazaar-prompt-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 20px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); }
.bazaar-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bazaar-card-chips .lu-chip:first-child { background: var(--ux-accent-soft); color: var(--ux-accent-dark); }
.bazaar-prompt-card h3 { margin: 0; font-size: var(--fs-lg); line-height: 1.35; font-weight: 700; color: var(--ux-ink); }
.bazaar-prompt-card p { flex: 1; margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--ux-ink-2); }
.bazaar-reply-jump { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; color: var(--ux-accent-text); }
.bazaar-filter-empty { grid-column: 1 / -1; margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--ux-surface-2); color: var(--ux-ink-2); font-size: var(--fs-sm); text-align: center; }
.bazaar-composer-card { padding: 28px 30px; scroll-margin-top: 84px; }
.bazaar-composer-hint { margin: 0 0 16px; max-width: 62ch; font-size: var(--fs-sm); line-height: 1.6; color: var(--ux-ink-2); }
.bazaar-form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.bazaar-form-grid--3 { grid-template-columns: 1.2fr 0.9fr 1fr; }
.bazaar-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bazaar-feed-wrap { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ux-line); }
.bazaar-feed-heading { margin: 0 0 6px; font-size: var(--fs-lg); font-weight: 700; color: var(--ux-ink); }
.bazaar-aside { position: sticky; top: 84px; display: grid; gap: 20px; }
.bazaar-rules-card { padding: 24px; border-radius: 22px; }
.bazaar-rules-card h2 { margin: 0 0 8px; font-size: var(--fs-h2); font-weight: 700; color: var(--ux-ink); }
.bazaar-rules-card p { margin: 0 0 14px; font-size: var(--fs-sm); line-height: 1.6; color: var(--ux-ink-2); }
.bazaar-rule-list { display: grid; gap: 8px; margin: 0 0 18px; padding-left: 20px; font-size: var(--fs-sm); line-height: 1.55; color: #3f3c46; }
.bazaar-rule-list li::marker { color: var(--ux-accent); font-weight: 700; }
.bazaar-rules-btn { width: 100%; min-height: 44px; font-size: var(--fs-sm); }
.bazaar-community-list { display: grid; gap: 14px; }
.community-post { padding: 20px 22px; border-radius: 22px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); }
.community-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: var(--fs-xs); color: var(--ux-ink-2); }
.community-post__author { font-weight: 700; color: var(--ux-ink); }
.community-post__title { margin: 0 0 6px; font-size: var(--fs-lg); font-weight: 700; color: var(--ux-ink); }
.community-post__body { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: #3f3c46; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-post__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ux-line); }
.bazaar-shared-thread { padding: 22px 24px; border-radius: 20px; background: var(--ux-surface); box-shadow: 0 0 0 1.5px var(--ux-accent-line); }
.bazaar-shared-kicker { display: block; margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ux-accent-text); }
.bazaar-shared-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: var(--fs-xs); color: var(--ux-ink-2); }
.bazaar-shared-text { margin: 0; font-size: var(--fs-base); line-height: 1.68; color: var(--ux-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.bazaar-shared-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ux-line); }
.bazaar-shared-status { font-size: var(--fs-xs); font-weight: 600; color: var(--ux-ink-2); }
.cc250-br { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 16px; padding: 6px 8px 6px 14px; border-radius: 14px; background: var(--ux-ink); color: var(--ux-surface); font-size: var(--fs-xs); font-weight: 700; }
.cc250-br span { flex: 1; min-width: 0; }
.cc250-br button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; font-size: var(--fs-xs); font-weight: 700; }
.cc250-cx { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cc250-sv { background: var(--ux-surface); color: var(--ux-ink); }

.points-page__login-card, .points-member-stack, .account-member-stack, .account-guest-card { margin-top: 24px; }
.points-member-stack, .account-member-stack { display: grid; gap: 22px; }
.points-guest-inner { display: flex; align-items: flex-start; gap: 20px; }
.points-mascot { flex: none; border-radius: 16px; }
.points-guest-inner h2 { margin: 0 0 8px; font-size: var(--fs-h2); color: var(--ux-ink); }
.points-guest-inner p { margin: 0 0 16px; color: var(--ux-ink-2); font-size: var(--fs-base); }
.points-guest-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.points-balance-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.points-balance-num { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.points-balance-num strong { font-size: var(--fs-h1); line-height: 1; font-weight: 700; color: var(--ux-ink); font-variant-numeric: tabular-nums; }
.points-balance-num span { font-size: var(--fs-base); font-weight: 600; color: var(--ux-ink-2); }
.points-balance-sub { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.points-balance-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.points-streak-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ux-line); }
.points-streak-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.points-streak-label strong { color: var(--ux-ink); }
.points-streak-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.points-streak-day { padding: 10px 8px; border-radius: 14px; background: var(--ux-surface-2); box-shadow: inset 0 0 0 1px var(--ux-line); text-align: center; display: grid; gap: 3px; }
.points-streak-day span { font-size: var(--fs-xs); color: var(--ux-ink-2); font-weight: 600; }
.points-streak-day b { font-size: var(--fs-base); color: var(--ux-ink); font-weight: 700; }
.points-streak-day--boost { background: var(--ux-accent-soft); box-shadow: inset 0 0 0 1px var(--ux-accent-line); }
.points-streak-day--boost b, .points-streak-day--jackpot b { color: var(--ux-accent-text); }
.points-streak-day--jackpot { background: rgba(208, 50, 104, 0.15); box-shadow: inset 0 0 0 1.5px var(--ux-accent); }
.points-ledger-list, .account-saved-list { display: grid; gap: 10px; }
.points-tx-row, .saved-essay-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-radius: 14px; background: var(--ux-surface-2); font-size: var(--fs-sm); }
.points-tx-row strong, .saved-essay-row a { font-weight: 600; color: var(--ux-ink); }
.points-tx-amt { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ux-mint); }
.points-tx-amt.is-spend { color: var(--ux-accent-text); }
.points-ledger-empty { margin: 0; padding: 16px; border-radius: 14px; background: var(--ux-surface-2); color: var(--ux-ink-2); font-size: var(--fs-sm); }
.points-modal { max-width: 500px; width: calc(100% - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--ux-surface); box-shadow: var(--liquid-shadow); }
.points-modal::backdrop { background: rgba(22, 21, 27, 0.42); }
.points-modal__inner { padding: 26px; display: grid; gap: 14px; }
.points-modal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.points-modal__top h2 { margin: 0; font-size: var(--fs-h2); }

.user-breadcrumb { margin-top: 24px; }
.cc054 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 26px 28px; border-radius: 26px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); }
.cc054-main { display: flex; align-items: center; gap: 18px; flex: 1 1 360px; min-width: 0; }
.user-avatar-lg { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ux-accent); color: #fff; font-size: var(--fs-h2); font-weight: 700; }
.cc054-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc054-title-row h1 { margin: 0; font-size: var(--fs-h2); font-weight: 700; color: var(--ux-ink); }
.cc054-bio { margin: 6px 0 8px; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.cc054-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--ux-ink-2); }
.cc054-fb { min-width: 116px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ux-ink); color: var(--ux-surface); font-size: var(--fs-sm); font-weight: 600; }
.cc047-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 22px 0; border-radius: 16px; background: var(--ux-surface-2); box-shadow: inset 0 0 0 1px var(--ux-line); }
.cc047-knob { position: absolute; top: 4px; bottom: 4px; left: var(--l, 4px); right: var(--r, calc(50% + 2px)); border-radius: 12px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); transition: left 0.25s var(--ux-ease), right 0.25s var(--ux-ease); }
.cc047-opt { position: relative; z-index: 1; min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: var(--fs-sm); font-weight: 600; color: var(--ux-ink-2); }
.cc047-opt[aria-checked="true"] { color: var(--ux-ink); }

.account-summary-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.account-identity { display: flex; align-items: center; gap: 16px; }
.account-identity h2 { margin: 0; font-size: var(--fs-h2); }
.account-pass-line { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.account-summary-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.account-quick-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.account-card-heading { margin: 0 0 12px; font-size: var(--fs-h2); font-weight: 700; color: var(--ux-ink); }
.account-local-saved { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ux-line); }
.setting-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ux-line); }
.setting-row h3 { margin: 0; font-size: var(--fs-base); font-weight: 600; color: var(--ux-ink); }
.setting-row p { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.profile-page__danger-zone { box-shadow: 0 0 0 1.5px rgba(194, 58, 46, 0.32); }
.account-delete-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.account-delete-input { flex: 1 1 200px; }
.cookies-status-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--ux-line); }
.explore-visual-banner { margin-top: 24px; }
.explore-visual-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.explore-street-img { width: 100%; border-radius: 18px; object-fit: cover; }

/* Search Modal & Search Page */
.lu-search-backdrop,
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(48px, 10vh, 96px) 16px 24px;
  background: rgba(22, 21, 27, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lu-search {
  width: min(620px, 100%);
  border-radius: 24px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line-2), 0 28px 56px -20px rgba(22, 21, 27, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(560px, calc(100dvh - 80px));
}
.global-search-field { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ux-line); }
.global-search-field__icon { flex: none; color: var(--ux-accent); }
.global-search-input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font-size: var(--fs-base); font-weight: 600; color: var(--ux-ink); }
.global-search-input::placeholder { color: var(--ux-ink-2); font-weight: 400; }
.global-search-clear {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ux-surface-2);
  color: var(--ux-ink-2);
}
.global-search-clear:hover { background: var(--ux-surface-3); color: var(--ux-ink); }
.global-search-scopes { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--ux-line); background: var(--ux-surface-2); }
.global-search-scope { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: var(--fs-xs); font-weight: 700; color: var(--ux-ink-2); }
.global-search-scope[aria-pressed="true"] { background: var(--ux-ink); color: var(--ux-surface); }
.global-search-count { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--ux-ink-2); }
.global-search-results { position: relative; flex: 1; overflow-y: auto; padding: 8px 10px 12px; }
.lu-search-highlight { position: absolute; left: 10px; right: 10px; top: 0; height: 52px; border-radius: 14px; background: var(--ux-accent-soft); transform: translateY(var(--y, 0px)); opacity: 0; pointer-events: none; transition: transform 0.2s var(--ux-ease), height 0.18s var(--ux-ease), opacity 0.15s; }
.global-search-group { margin: 10px 10px 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ux-ink-2); }
.global-search-option { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; color: var(--ux-ink); }
.global-search-option[aria-selected="true"] { background: var(--ux-accent-soft); }
.global-search-option-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ux-surface-2); color: var(--ux-accent-text); font-size: var(--fs-sm); font-weight: 700; }
.global-search-option-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.global-search-option-name { font-size: var(--fs-sm); font-weight: 700; color: var(--ux-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search-option-name mark { background: rgba(208, 50, 104, 0.2); color: var(--ux-ink); border-radius: 3px; padding: 0 2px; }
.global-search-option-subtitle { font-size: var(--fs-xs); color: var(--ux-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search-option-type { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--ux-surface-2); font-size: var(--fs-xs); font-weight: 700; color: var(--ux-ink-2); }
.global-search-empty { padding: 28px 16px; text-align: center; font-size: var(--fs-sm); color: var(--ux-ink-2); }
.global-search-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--ux-line); background: var(--ux-surface-2); font-size: var(--fs-xs); color: var(--ux-ink-2); }
.global-search-footer kbd { display: inline-block; padding: 1px 6px; margin-right: 3px; border-radius: 5px; background: var(--ux-surface); box-shadow: inset 0 0 0 1px var(--ux-line-2); font-size: var(--fs-xs); font-weight: 700; }

.search-page-form { margin-top: 20px; display: grid; gap: 12px; }
.search-page-box { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; border-radius: 999px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line-2); }
.search-page-box:focus-within { box-shadow: 0 0 0 2px var(--ux-accent), 0 0 0 4px var(--ux-accent-soft); }
.search-page-input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: var(--fs-base); color: var(--ux-ink); }
.search-page-body { padding: 24px 0 56px; }
.search-page-status { margin: 0 0 16px; font-size: var(--fs-sm); font-weight: 600; color: var(--ux-ink-2); }
.search-empty-card, .not-found-hero { text-align: center; padding: 40px 24px; }
.not-found-mascot { display: block; margin: 0 auto 14px; max-height: 180px; width: auto; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.u079.ccx-story-skeleton { position: relative; padding: 24px; border-radius: 22px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); overflow: hidden; display: grid; gap: 12px; }
.u079-s { position: relative; overflow: hidden; border-radius: 8px; background: var(--ux-surface-2); }
.search-sk-line { width: 110px; height: 18px; border-radius: 999px; }
.search-sk-title { width: 82%; height: 24px; }
.search-sk-body { width: 100%; height: 48px; }

/* Sign-In Modal */
.auth-modal-panel {
  width: min(440px, 100%);
  border-radius: 24px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line-2), 0 28px 56px -20px rgba(22, 21, 27, 0.34);
  overflow: hidden;
}
.auth-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--ux-line);
}
.auth-modal-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.auth-modal-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}
.auth-modal-brand h2 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ux-ink);
}
.auth-modal-brand p {
  margin: 4px 0 0;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--ux-ink-2);
}
.auth-modal-body {
  padding: 20px 22px 22px;
  display: grid;
  gap: 14px;
}
.auth-google-btn,
.auth-submit-btn {
  width: 100%;
  min-height: 46px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ux-ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ux-line);
}
.auth-email-form {
  display: grid;
  gap: 12px;
}
.auth-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ux-line);
  font-size: var(--fs-xs);
  color: var(--ux-ink-2);
}
.auth-modal-foot a {
  color: var(--ux-ink-2);
  font-weight: 600;
}
.auth-modal-foot a:hover { color: var(--ux-accent-text); text-decoration: underline; }

/* Cookie Banner: bottom bar without blocking body column; zero floating cookie icon */
.u225-fab { display: none !important; }
.ccx-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  padding: 0;
  pointer-events: none;
}
.cookie-banner,
.ccx-cookie .u225-bn {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  width: 100%;
  padding: 10px max(20px, calc((100% - 1120px) / 2)) max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ux-line-2);
  border-radius: 0;
  background: var(--ux-surface);
  box-shadow: 0 -8px 24px -14px rgba(22, 21, 27, 0.14);
}
.cookie-banner__copy {
  flex: 1 1 420px;
  min-width: 0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ux-ink-2);
}
.cookie-banner__copy strong {
  display: inline;
  margin-right: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ux-ink);
}
.cookie-banner__link {
  color: var(--ux-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions,
.u225-bs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.cookie-btn,
.u225-bs button {
  min-width: 92px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.cookie-btn--accept, .u225-all { background: var(--ux-ink); color: var(--ux-surface); }
.cookie-btn--accept:hover, .u225-all:hover { background: var(--ux-accent); color: var(--ux-surface); }
.cookie-btn--decline, .u225-set { background: var(--ux-surface-2); color: var(--ux-ink); box-shadow: inset 0 0 0 1px var(--ux-line-2); }
.cookie-btn--decline:hover, .u225-set:hover { background: var(--ux-surface-3); }

/* Toast & Network Banner */
.ccx-toast-zone.u070-zone {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 98;
  width: min(320px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.u070-t {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line-2), 0 16px 32px -16px rgba(22, 21, 27, 0.24);
  color: var(--ux-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: transform 0.25s var(--ux-ease), opacity 0.2s;
}
.u070-t.is-leaving { opacity: 0; transform: translateY(12px); }
.u070-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ux-accent); }
.u070-t[data-tone="success"] .u070-dot { background: var(--ux-mint); }
.u070-t[data-tone="error"] .u070-dot { background: #C23A2E; }
.u070-msg { flex: 1; min-width: 0; }
.u070-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ux-ink-2); font-size: var(--fs-base); }
.ccx-network-banner { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 92; padding: 10px 18px; border-radius: 999px; background: var(--ux-ink); color: var(--ux-surface); font-size: var(--fs-sm); font-weight: 600; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: start;
  gap: 32px 48px;
  width: min(1120px, calc(100% - 48px));
  margin: 80px auto 0;
  padding: 36px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ux-line);
}
.site-footer .brand-wordmark { --wordmark-width: 164px; --mascot-size: 30px; }
.footer-tagline { margin: 10px 0 0; max-width: 44ch; color: var(--ux-ink-2); font-size: var(--fs-sm); }
.footer-links { display: flex; gap: 36px; }
.footer-link-group { display: grid; align-content: start; min-width: 108px; }
.footer-link-group--channels { grid-template-columns: auto auto; column-gap: 20px; }
.footer-link-label { grid-column: 1 / -1; display: block; margin-bottom: 6px; color: var(--ux-ink-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-link-group a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ux-ink-2); font-size: var(--fs-sm); }
.footer-link-group a:hover { color: var(--ux-ink); }
.footer-meta { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--ux-line); }
.footer-service-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-bottom: 8px; }
.footer-service-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ux-ink-2); font-size: var(--fs-xs); font-weight: 600; }
.footer-service-links a:hover { color: var(--ux-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { margin: 0; color: var(--ux-ink-2); font-size: var(--fs-xs); }

/* Responsive Breakpoints */
@media (max-width: 1220px) {
  .lu-search-trigger { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .lu-search-trigger__label, .lu-search-trigger__kbd { display: none; }
}

@media (max-width: 1120px) and (min-width: 961px) {
  .header-actions .header-contact-icon { display: none !important; }
  .ccx-reader--post { column-gap: 18px; }
  .ccx-reader-rail > * { width: 220px; }
}

@media (max-width: 960px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 32px);
  }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .header-actions .header-contact-icon { display: none !important; }
  .ccx-reader,
  .ccx-reader--post {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 16px;
    margin: 12px 0 36px;
  }
  .ccx-desktop-actions-slot { display: none; }
  .ccx-reader-rail { display: none !important; }
  .ccx-reader-main { max-width: 100%; }
  .ccx-article-actions {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .action-btn,
  .u022-btn,
  .u012-btn,
  .u008-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }
  .engage-bar {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .engage-bar::-webkit-scrollbar { display: none; }
  .engage-bar__label { display: none; }
  .engage-bar__share { margin-left: 0; }
  .bazaar-layout, .pricing-grid, .pricing-grid--two, .concierge-grid, .explore-visual-grid, .bazaar-form-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .bazaar-aside { position: static; }
  .mem-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; gap: 24px; width: calc(100% - 32px); margin-top: 56px; }
}

@media (max-width: 740px) {
  :root {
    --fs-h1: 28px;
    --fs-h2: 20px;
    --fs-lg: 18px;
    --fs-base: 16px;
    --fs-sm: 14px;
    --fs-xs: 12px;
  }
  .site-header { height: 56px; min-height: 56px; }
  .mobile-nav { top: 64px; }
  .container, .narrow-container { width: calc(100% - 32px); }
  .header-signin-btn { padding: 0 12px; height: 44px; }
  .brand-wordmark { --wordmark-width: 118px; --mascot-size: 26px; gap: 6px; }
  .points-nav-pill { display: none !important; }
  .lu-hero.xiao-fu-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 0 22px;
  }
  .xiao-fu-visual { width: min(42vw, 156px); }
  .lu-hero.xiao-fu-intro h1 { font-size: var(--fs-h1); text-align: center; }
  .scrollCue { position: static; margin-top: 4px; padding: 4px 8px; }
  .laowai-cover--photo { min-height: 272px; padding: 22px 18px; align-items: flex-end; }
  .laowai-cover--photo .laowai-cover-art--photo::after {
    background: linear-gradient(180deg, rgba(24, 15, 18, 0.25), rgba(24, 15, 18, 0.72) 48%, rgba(24, 15, 18, 0.92));
  }
  .laowai-cover-copy { width: 100%; padding-block: 12px; }
  .story-grid, .lu-paths, .related-stories-grid, .bazaar-prompt-grid, .bazaar-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editorial-card, .editorial-card--spacious, .lu-page-hero, .home-newsletter, .comments-box, .bazaar-composer-card {
    padding: 20px 18px;
    border-radius: 20px;
  }
  .lu-page-hero { margin-top: 12px; }
  /* Post mobile first-screen optimization: tight header, full-width borderless cover image */
  .post-article { padding: 18px 16px 22px; }
  .post-header { margin-bottom: 14px; }
  .post-header h1 { margin-top: 6px; line-height: 1.2; }
  .post-header .lead { margin-top: 8px; font-size: var(--fs-lg); line-height: 1.48; }
  .post-header .article-meta { margin-top: 8px; }
  .article-figure {
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .article-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 204px;
    object-fit: cover;
    border-radius: 12px;
  }
  .article-figure figcaption { margin-top: 6px; }
  .prose h2 { margin-top: 24px; }
  /* Ensure ALL inputs on mobile are >= 16px so iOS Safari never auto-zooms */
  input, select, textarea, .cc028-ta, .home-newsletter-input {
    font-size: 16px !important;
  }
  .home-newsletter-row { flex-direction: column; align-items: stretch; }
  .home-newsletter-row .btn, .home-newsletter-input { width: 100%; }
  .subnav-lens, .bazaar-filters {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .subnav-lens::-webkit-scrollbar, .bazaar-filters::-webkit-scrollbar { display: none; }
  .subnav-lens .subnav-pill, .bazaar-filters .subnav-pill { flex: none; white-space: nowrap; }
  .footer-links { flex-wrap: wrap; gap: 24px 32px; }
  .points-streak-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .points-guest-inner { flex-direction: column; }
}

/* Small-screen Stacked Row Cards for Tables (zero column clipping) */
@media (max-width: 640px) {
  .table-scroll,
  .sample-table-wrap {
    background: transparent;
    box-shadow: none;
    overflow-x: visible;
  }
  .appendix-table,
  .sample-table,
  .prose table {
    display: block;
    min-width: 0;
  }
  .appendix-table thead,
  .sample-table thead,
  .prose table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .appendix-table tbody,
  .sample-table tbody,
  .prose table tbody {
    display: grid;
    gap: 10px;
  }
  .appendix-table tr,
  .sample-table tr,
  .prose table tr {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--ux-surface-2);
    box-shadow: inset 0 0 0 1px var(--ux-line);
  }
  .appendix-table td,
  .sample-table td,
  .prose table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .appendix-table td[data-label]::before,
  .sample-table td[data-label]::before,
  .prose table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ux-ink-2);
  }
  .cookie-banner { padding: 12px 14px; gap: 10px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; }
  .mem-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-wordmark { --wordmark-width: clamp(108px, 32vw, 136px); --mascot-size: 26px; gap: 6px; }
  .footer-link-group--channels { min-width: 100%; grid-template-columns: repeat(3, 1fr); column-gap: 12px; }
}

/* Landscape mobile: header NOT sticky so it never eats 40% of viewport height */
@media (orientation: landscape) and (max-height: 540px) {
  .site-header {
    position: relative;
    top: auto;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* === RESTORED_LIQUID_GLASS_AND_ADS_V2 === */

/* ==========================================================================
   Restored Optical Liquid-Glass Navbar, Glossy Spring Lens, Ad Slots & Red-Wall Hero
   ========================================================================== */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/_a/fredoka-latin.99d6c78e04.woff2") format("woff2"), url("../assets/fredoka-latin.99d6c78e04.woff2") format("woff2");
}

:root {
  --liquid-shadow: 0 2px 6px rgba(61, 32, 22, 0.05), 0 12px 32px rgba(61, 32, 22, 0.11);
  --surface-popup: rgba(255, 255, 255, 0.90);
  --blur-popup: blur(24px) saturate(1.24);
  --lens-rim: rgba(208, 50, 104, 0.24);
  --lens-shadow: rgba(106, 35, 61, 0.13);
  --glass-rim-bottom: rgba(92, 54, 40, 0.18);
  --font-display: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Homepage Breathing Aurora Canvas pulled behind floating liquid-glass header */
.home-opening-canvas {
  --intro-header: 76px;
  --intro-peek: clamp(42px, 9svh, 92px);
  --intro-boundary: calc(100svh - var(--intro-peek));
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--intro-header) * -1);
  padding-top: var(--intro-header);
  background: linear-gradient(to bottom, var(--ux-surface) 0%, var(--ux-surface) 88%, var(--ux-page) 100%);
  overflow: clip;
}
.home-opening-canvas::before,
.home-opening-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
}
.home-opening-canvas::before {
  background-image:
    radial-gradient(ellipse 72% 65% at 7% 9%, rgba(238, 100, 92, 0.30), transparent 62%),
    radial-gradient(ellipse 67% 76% at 95% 58%, rgba(227, 113, 138, 0.24), transparent 64%),
    radial-gradient(ellipse 51% 58% at 34% 100%, rgba(244, 142, 114, 0.16), transparent 64%);
  opacity: 0.22;
  animation: home-intro-breathe 36s ease-in-out infinite alternate;
}
.home-opening-canvas::after {
  background-image:
    radial-gradient(ellipse 67% 64% at 78% 3%, rgba(247, 139, 117, 0.24), transparent 64%),
    radial-gradient(ellipse 61% 70% at 17% 81%, rgba(226, 116, 136, 0.20), transparent 62%),
    radial-gradient(ellipse 46% 53% at 98% 97%, rgba(242, 139, 119, 0.18), transparent 65%);
  opacity: 0.12;
  animation: home-intro-breathe 47s ease-in-out -17s infinite alternate-reverse;
}
@keyframes home-intro-breathe {
  0% { opacity: 0.08; }
  100% { opacity: 0.26; }
}
.lu-hero.xiao-fu-intro h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "wght" 540;
}

/* Floating Pill Liquid-Glass Header */
.site-header,
.site-header.is-scrolled {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 48px));
  height: 64px;
  min-height: 64px;
  margin: 12px auto 0;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.site-header.is-hidden {
  transform: none;
}

.liquid-glass {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: var(--ux-surface);
  box-shadow: var(--liquid-shadow);
}
.liquid-glass__filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.liquid-glass::before,
.liquid-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.liquid-glass::before {
  background: rgba(255, 255, 255, 0.50);
}
.liquid-glass::after {
  background:
    radial-gradient(ellipse 42% 110% at var(--glass-light-x, 22%) var(--glass-light-y, 0%), rgba(255, 255, 255, 0.46), transparent 64%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.30), transparent 34%, transparent 70%, rgba(255, 255, 255, 0.15));
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.95),
    inset 1px 0 1px rgba(255, 255, 255, 0.52),
    inset -1px 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px var(--glass-rim-bottom),
    inset 0 -3px 6px rgba(255, 255, 255, 0.20);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid-glass {
    background: transparent;
  }
  .liquid-glass::before {
    -webkit-backdrop-filter: blur(8px) saturate(1.4);
    backdrop-filter: blur(8px) saturate(1.4) var(--liquid-refraction, blur(0px));
  }
}

/* Thin reading progress bar inside the curved bottom rim of .liquid-glass */
.header-reading-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2.5px;
  border-radius: 999px;
  background: var(--ux-accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s ease;
}
body.kind-post .header-reading-bar.is-active {
  opacity: 1;
}

.site-header .logo-mark {
  border-radius: 999px;
  transition: background-color 0.18s ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .site-header .logo-mark:hover {
    background-color: rgba(255, 255, 255, 0.22);
  }
}

/* Glossy Oil-Sheen Roaming Lens ("油光透镜") */
.desktop-nav {
  gap: 5px;
}
.desktop-nav .lens-roam {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
  width: 48px;
  height: 40px;
  margin-top: -20px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.35));
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.96),
    inset 0 -1px 1px rgba(29, 29, 31, 0.07),
    inset 0 0 0 1px var(--lens-rim),
    0 4px 14px var(--lens-shadow),
    0 1px 3px rgba(29, 29, 31, 0.06);
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.desktop-nav .lens-roam.is-visible[data-positioned="true"] {
  opacity: 1;
}
.desktop-nav .lens-roam__inner {
  display: block !important;
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.18) 44%, transparent 72%);
  will-change: transform;
}
.desktop-nav:not([data-lu-pill-ready="true"]) .nav-link.is-active {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--lens-rim), 0 2px 8px var(--lens-shadow);
}
.nav-link {
  color: #36333D;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.nav-link[aria-expanded="true"] {
  color: var(--ux-ink);
}

/* Frosted Liquid-Glass Popovers, Pills & Search Trigger */
.lu-search-trigger {
  height: 40px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), inset 0 0 0 1px var(--ux-line);
}
.lu-search-trigger:hover,
.lu-search-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px var(--ux-accent-line);
}
.header-signin-btn {
  height: 38px;
  min-height: 38px;
  padding: 0 15px;
}
.header-actions .icon-link,
.mobile-menu-btn,
.u074-bell {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}
.u074-bell {
  background: rgba(255, 255, 255, 0.72);
}

.stories-menu-panel,
.mobile-nav,
.account-menu-panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 55%), var(--surface-popup);
  -webkit-backdrop-filter: var(--blur-popup);
  backdrop-filter: var(--blur-popup);
  box-shadow: var(--liquid-shadow), inset 0 1px rgba(255, 255, 255, 0.92);
}

.subnav-lens,
.bazaar-filters {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.92), 0 0 0 1px var(--ux-line), 0 8px 20px -14px var(--ux-shadow-strong);
}

/* Card Cursor Specular Spotlight */
.lu-story {
  position: relative;
  overflow: hidden;
}
.lu-story::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--ux-accent-soft), transparent 62%);
  transition: opacity 0.26s ease-out;
}
.lu-story:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Restored Configured Ad Slots (Desktop + Mobile)
   ========================================================================== */
.home-ad-wrap {
  display: block !important;
  padding-top: 28px;
}
.home-ad-wrap:has(> .ad-slot[hidden]),
.home-ad-wrap:has(> .ad-slot[data-ad-status="unfilled"]),
.home-ad-wrap:has(> .ad-slot:not([data-ad-layout-preview="true"]) ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 18px 36px -28px var(--ux-shadow-strong);
}
.ad-slot[hidden] {
  display: none !important;
}
/* Keep loading/configured AdSense slots visible while loading, but collapse explicitly unfilled slots */
.ad-slot:not([hidden]):not([data-ad-status="unfilled"]):not(:has(ins)) {
  display: flex !important;
}
.ad-slot[data-ad-status="unfilled"],
.ad-slot:not([data-ad-layout-preview="true"]):has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}
.ad-slot--article-bottom,
.ad-slot--related-after {
  margin: 0;
  background: var(--ux-surface);
}
.ad-slot--wide .ad-slot__inner {
  min-height: 96px;
}
.ad-slot--vertical .ad-slot__inner {
  min-height: 280px;
}
.ccx-reader-rail .ad-slot--sidebar {
  padding: 16px;
  border-radius: 22px;
}
.ccx-reader-rail .ad-slot--sidebar .ad-slot__inner {
  min-height: 280px;
  border-radius: 14px;
  background: var(--ux-surface-2);
}

/* Reader Grid with Active Right Sidebar Rail (48 + 24 + 768 + 24 + 256 = 1120px) */
.ccx-reader--post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 256px;
  justify-content: center;
  column-gap: 24px;
  align-items: start;
}
.ccx-reader--post .ccx-reader-main {
  max-width: none;
}
.ccx-reader-rail {
  display: grid !important;
  position: sticky;
  top: 92px;
  gap: 18px;
  align-self: start;
}
.ccx-reader-rail > * {
  width: 256px;
  margin-left: 0;
}
/* Only collapse the right rail if EVERY child inside it is explicitly [hidden] */
.ccx-reader-rail:not(:has(> :not([hidden]))) {
  display: none !important;
}
.ccx-reader--post:not(:has(.ccx-reader-rail > :not([hidden]))) {
  grid-template-columns: 48px minmax(0, 768px);
}

/* ==========================================================================
   Restored Membership Sunlit Red-Wall + Moon-Gate Hero (.mem-film)
   ========================================================================== */
.mem-film {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(320px, 38vw, 456px);
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 30px;
  color: #fff;
  background: var(--ux-wall);
  box-shadow: 0 26px 52px -30px rgba(112, 22, 16, 0.46);
}
.mem-film__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.mem-film__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1 !important;
  filter: saturate(1.06) brightness(1.03);
}
.mem-film__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    92deg,
    rgba(126, 20, 16, 0.56) 0%,
    rgba(126, 20, 16, 0.28) 44%,
    rgba(126, 20, 16, 0.04) 60%,
    rgba(126, 20, 16, 0) 100%
  ) !important;
}
.mem-film__copy {
  position: relative;
  max-width: 52%;
}
.mem-film h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(68, 16, 8, 0.54);
}
.mem-film .lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(68, 16, 8, 0.48);
}
.breadcrumb--light,
.breadcrumb--light a {
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 1px 6px rgba(68, 16, 8, 0.42);
}
.breadcrumb--light a:hover {
  color: #fff;
  text-decoration: underline;
}
.mem-eyebrow {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.40);
}

/* ==========================================================================
   Responsive & Mobile Adaptation (Tablet, Phone Portrait, Landscape)
   ========================================================================== */
@media (max-width: 1220px) {
  .lu-search-trigger {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .lu-search-trigger__label,
  .lu-search-trigger__kbd {
    display: none;
  }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .site-header,
  .site-header.is-scrolled {
    gap: 10px;
    width: calc(100% - 32px);
  }
  .nav-link {
    padding: 0 10px;
  }
  .header-contact-icon {
    display: none !important;
  }
  .ccx-reader--post {
    grid-template-columns: 48px minmax(0, 1fr) 224px;
    column-gap: 18px;
  }
  .ccx-reader-rail > * {
    width: 224px;
  }
}

@media (max-width: 960px) {
  .site-header,
  .site-header.is-scrolled {
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 32px);
    gap: 8px;
    padding: 6px 12px;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .header-contact-icon,
  .points-nav-pill {
    display: none !important;
  }
  .mobile-nav {
    top: calc(84px + env(safe-area-inset-top, 0px));
    right: 16px;
    left: 16px;
    border-radius: 24px;
  }
  .ccx-reader,
  .ccx-reader--post {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .ccx-reader-rail,
  .ad-slot--sidebar {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .mem-film {
    min-height: 348px;
    align-items: flex-start;
    padding: 24px 20px 144px;
    border-radius: 22px;
  }
  .mem-film__bg img {
    object-position: 66% center;
  }
  .mem-film__bg::after {
    background: linear-gradient(
      180deg,
      rgba(138, 24, 20, 0.86) 0%,
      rgba(138, 24, 20, 0.62) 55%,
      rgba(138, 24, 20, 0.12) 100%
    ) !important;
  }
  .mem-film__copy {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-header.is-scrolled {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 24px);
    height: 56px;
    min-height: 56px;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
  }
  .home-opening-canvas {
    --intro-header: 64px;
  }
  .mobile-nav {
    top: calc(72px + env(safe-area-inset-top, 0px));
    right: 12px;
    left: 12px;
    max-height: calc(100dvh - 88px);
    padding: 18px 16px;
  }
  .header-actions {
    gap: 4px;
  }
  .lu-search-trigger,
  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .header-signin-btn {
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    font-size: var(--fs-xs);
  }
  .ad-slot {
    padding: 14px 16px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .brand-wordmark {
    --wordmark-width: clamp(104px, 30vw, 132px);
    --mascot-size: 25px;
    gap: 6px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .site-header,
  .site-header.is-scrolled {
    position: relative;
    top: 0;
    margin-top: 8px;
    height: 52px;
    min-height: 52px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .liquid-glass {
    background: var(--ux-surface);
  }
  .liquid-glass::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .desktop-nav .lens-roam {
    display: none;
  }
  .stories-menu-panel,
  .mobile-nav,
  .account-menu-panel {
    background: var(--ux-surface);
    backdrop-filter: none;
  }
}


/* Header Grid Spacing & Centered Ad Preview Polish */
@media (min-width: 961px) {
  .site-header,
  .site-header.is-scrolled {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }
}
.ad-slot__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.ad-slot[data-ad-layout-preview="true"] .ad-slot__inner {
  border: 1px dashed var(--ux-line-2);
  border-radius: 14px;
  background: var(--ux-surface-2);
  padding: 18px 14px;
}
.ad-slot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  width: 100%;
}

/* === TURN3-PURPLE-AND-ATMOSPHERE-PASS === */
/* ==========================================================================
   ChineseProMax Full-Page & Bottom Radial Gradient Atmosphere + Xiao Fu Fix
   ========================================================================== */
:root {
  --ux-grad: linear-gradient(120deg, #E0457B, #D03268 55%, #A82452);
}
html {
  background-color: var(--ux-page);
}
body.ccx-lucian {
  position: relative;
  isolation: isolate;
  background-color: var(--ux-page);
}
body.ccx-lucian .site-shell {
  background: transparent;
}
/* Full-viewport ambient radial light fields covering upper, middle AND lower page */
body.ccx-lucian::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 10% 8%, rgba(238, 100, 92, 0.10), transparent 66%),
    radial-gradient(40% 36% at 90% 6%, rgba(227, 113, 138, 0.08), transparent 68%),
    radial-gradient(52% 46% at 84% 48%, rgba(247, 178, 166, 0.12), transparent 70%),
    radial-gradient(48% 44% at 14% 76%, rgba(226, 116, 136, 0.10), transparent 70%),
    radial-gradient(66% 52% at 50% 100%, rgba(244, 142, 114, 0.14), transparent 74%);
  opacity: 0.32;
  animation: atmosphere-fields 36s ease-in-out infinite alternate;
}
/* Seamless feathered opening canvas (eliminates hard horizontal line below Scroll to discover) */
.home-opening-canvas {
  --intro-header: 84px;
  --intro-peek: clamp(42px, 8svh, 84px);
  --intro-boundary: calc(100svh - var(--intro-peek));
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--intro-header) * -1);
  padding-top: var(--intro-header);
  background: linear-gradient(
    to bottom,
    rgba(255, 253, 252, 0.86) 0%,
    rgba(255, 250, 248, 0.56) 68%,
    rgba(244, 242, 238, 0) 100%
  ) !important;
  overflow: visible !important;
}
.home-opening-canvas::before,
.home-opening-canvas::after {
  inset: 0 0 -96px 0 !important;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
/* Fix Xiao Fu vertical framing so mascot head is never clipped behind navbar + restore bottom radial glow */
.lu-hero.xiao-fu-intro {
  min-height: 0;
  padding: 28px 0 88px;
  align-items: center;
}
.xiao-fu-visual {
  position: relative;
  justify-self: center;
  width: min(92%, 410px);
  margin-top: 8px;
  isolation: isolate;
}
.xiao-fu-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 18% 2% 18%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(208, 50, 104, 0.24), rgba(110, 58, 33, 0.14) 58%, transparent 100%);
  filter: blur(10px);
}
/* Rich radial glow on lower sections (newsletter, page heroes, footer) */
.lu-page-hero {
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(208, 50, 104, 0.12), transparent 62%),
    radial-gradient(95% 65% at 50% 100%, rgba(244, 142, 114, 0.14), transparent 68%),
    rgba(255, 255, 255, 0.92);
}
.home-newsletter {
  background:
    radial-gradient(110% 90% at 88% 100%, rgba(238, 100, 92, 0.16), transparent 64%),
    radial-gradient(90% 80% at 12% 0%, rgba(208, 50, 104, 0.11), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 244, 242, 0.92));
}
.site-footer {
  position: relative;
  background: radial-gradient(80% 110% at 50% 100%, rgba(238, 100, 92, 0.12), transparent 70%);
}
@media (max-width: 740px) {
  .lu-hero.xiao-fu-intro {
    min-height: auto;
    padding: 20px 0 28px;
  }
  .xiao-fu-visual {
    width: min(48vw, 184px);
    margin-top: 4px;
  }
}

/* ==========================================================================
   Persistent Right-Rail Reading Guide + Circular Progress (u058 + u275-toc)
   (Positioned cleanly above .ad-slot--sidebar, never flashing or hiding)
   ========================================================================== */
.ccx-reader-guide {
  display: grid;
  gap: 12px;
  width: 100%;
}
.ccx-reader-rail .ccx-reading-head.u058 {
  display: block !important;
  position: relative;
  padding: 0;
  border-radius: 22px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 22px 44px -30px var(--ux-shadow-strong);
  overflow: hidden;
}
.ccx-reader-rail .u058-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--ux-grad, linear-gradient(90deg, var(--ux-accent), var(--ux-accent-dark)));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  z-index: 2;
  transition: transform 0.12s linear;
}
.ccx-reader-rail .u058-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px 14px;
}
.ccx-reader-rail .u058-head > div {
  flex: 1;
  min-width: 0;
}
.ccx-reader-rail .u058-head small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ux-ink-3, var(--ux-ink-2));
}
.ccx-reader-rail .u058-head b {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ux-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ccx-reader-rail .u058-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}
.ccx-reader-rail .u058-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ccx-reader-rail .u058-ring circle {
  fill: none;
  stroke-width: 4;
}
.ccx-reader-rail .u058-ring .t {
  stroke: var(--ux-surface-3);
}
.ccx-reader-rail .u058-ring .p {
  stroke: var(--ux-accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0) * 100);
  transition: stroke-dashoffset 0.16s ease-out, stroke 0.35s ease;
}
.ccx-reader-rail .u058-ring > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ux-ink);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.ccx-reader-rail .u058-ring > i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ux-mint, #187250);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.28s ease, transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.ccx-reader-rail .u058-ring > i svg {
  width: 20px;
  height: 20px;
  transform: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ccx-reader-rail .u058.is-done .u058-ring .p {
  stroke: var(--ux-mint, #187250);
}
.ccx-reader-rail .u058.is-done .u058-ring > span {
  opacity: 0;
  transform: scale(0.4);
}
.ccx-reader-rail .u058.is-done .u058-ring > i {
  opacity: 1;
  transform: scale(1);
}
.ccx-reader-rail .ccx-reader-toc.u275-toc {
  padding: 16px 16px 18px;
  border-radius: 22px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 22px 44px -30px var(--ux-shadow-strong);
}
.ccx-reader-rail .u275-ti {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ux-ink-2);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.ccx-reader-rail .u275-ti:hover {
  color: var(--ux-ink);
  background: var(--ux-surface-2);
}
.ccx-reader-rail .u275-ti.is-on,
.ccx-reader-rail .u275-ti.on {
  color: var(--ux-ink);
  font-weight: 750;
  background: var(--ux-accent-soft);
}
.ccx-reader-rail .u275-ti[data-level="3"] {
  padding-left: 16px;
  font-size: 12.5px;
}
.post-header,
.reference-appendix,
.faq-block,
#reader-notes {
  scroll-margin-top: 96px;
}
@keyframes atmosphere-fields {
  from { opacity: 0.58; }
  to { opacity: 0.94; }
}

/* === TURN3-MICRO-POLISH === */
.ccx-reader-rail .u058:not([data-started="true"]) .u058-ring .p {
  opacity: 0;
}
/* Removed legacy .is-scrolled 0.90 opaque white-tile override */

/* === Restored u225 Bottom-Left Cookie Card (With Bite & Crumb Motion, Zero Persistent FAB) === */
.u225-fab { display: none !important; }
.ccx-cookie.u225 {
  position: fixed;
  left: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: auto;
  z-index: 78;
  width: min(328px, calc(100vw - 28px));
  padding: 0;
  pointer-events: none;
}
.ccx-cookie.u225 .u225-bn {
  pointer-events: auto;
  display: block;
  width: 100%;
  padding: 15px 16px;
  border-radius: 20px;
  border: 0;
  background: color-mix(in srgb, var(--ux-surface) 95%, transparent);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 0 0 1px var(--ux-line-2), 0 22px 44px -16px var(--ux-shadow-strong);
  transform: translateY(calc(100% + 28px));
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.22s ease-out;
}
.ccx-cookie.u225.is-on .u225-bn {
  transform: translateY(0);
  opacity: 1;
}
.ccx-cookie.u225.is-done .u225-bn {
  transform: translateY(calc(100% + 28px));
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.5, 0, 0.75, 0) 0.38s, opacity 0.22s ease-out 0.42s;
}
.u225-tp {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.u225-ck {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  margin-top: 1px;
}
.u225-ck svg {
  width: 42px;
  height: 42px;
  overflow: visible;
}
.u225-bt circle.b {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.24s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.u225.is-bite .u225-bt circle.b {
  transform: scale(1);
}
.u225-cr {
  position: absolute;
  right: 2px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #b25912;
  opacity: 0;
}
.u225.is-bite .u225-cr {
  animation: u225-cr 0.65s ease-out forwards;
}
.u225-cr:nth-of-type(2) {
  right: 8px;
  width: 3px;
  height: 3px;
  animation-delay: 0.05s;
}
.u225-cr:nth-of-type(3) {
  right: -2px;
  top: 9px;
  width: 3px;
  height: 3px;
  animation-delay: 0.1s;
}
@keyframes u225-cr {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(6px, 32px) rotate(160deg); }
}
.u225-tx {
  min-width: 0;
  flex: 1;
}
.u225-tx b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ux-ink);
}
.u225-tx span {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-xs);
  line-height: 1.48;
  color: var(--ux-ink-2);
}
.u225-tx a {
  color: var(--ux-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.u225-bs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}
.u225-bs button {
  flex: 1;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms ease-out;
}
.u225-all {
  background: var(--ux-ink);
  color: var(--ux-surface);
}
.u225-set {
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  box-shadow: inset 0 0 0 1px var(--ux-line-2);
}
@media (hover: hover) and (pointer: fine) {
  .u225-all:hover { background: var(--ux-accent); color: var(--ux-surface); }
  .u225-set:hover { background: var(--ux-surface-3); }
}
@media (max-width: 640px) {
  .ccx-cookie.u225 {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(324px, calc(100vw - 24px));
  }
  .ccx-cookie.u225 .u225-bn {
    padding: 13px 14px;
    border-radius: 18px;
  }
  .u225-ck, .u225-ck svg {
    width: 36px;
    height: 36px;
  }
  .u225-bs button {
    min-height: 44px;
  }
}

/* === Lightning Responsiveness & Instant Interaction Upgrade (闪电 Skill: INP < 50ms + View Transitions + Tactile Feedback) === */
:root {
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 140ms;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }
}

/* Zero-delay tap & crisp physical active states (Emil Kowalski design-engineering) */
a, button, summary, input, select, textarea, label[for], [role="button"],
.btn, .action-btn, .cng-chip, .subnav-pill, .lu-story, .lu-path-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn,
.action-btn,
.cng-chip,
.subnav-pill,
.u225-bs button,
.bazi-calc-btn,
.bazi-today-btn,
.bazi-copy-btn,
.bazi-gender-btn,
.header-search-btn,
.header-signin-btn,
.mobile-menu-btn {
  transition:
    transform 120ms var(--ease-out-strong),
    background-color 150ms ease-out,
    color 150ms ease-out,
    border-color 150ms ease-out,
    box-shadow 150ms ease-out;
}
.btn:active:not(:disabled),
.action-btn:active:not(:disabled),
.cng-chip:active:not(:disabled),
.subnav-pill:active:not(:disabled),
.u225-bs button:active:not(:disabled),
.bazi-calc-btn:active:not(:disabled),
.bazi-today-btn:active:not(:disabled),
.bazi-copy-btn:active:not(:disabled),
.header-search-btn:active:not(:disabled),
.header-signin-btn:active:not(:disabled),
.mobile-menu-btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* Instant keyboard command palette: zero open lag on Ctrl/Cmd+K */
.search-modal,
.search-modal__panel,
[data-search-modal] {
  animation: none !important;
  transition: none !important;
}

/* Offscreen layout/paint containment for below-the-fold blocks (preserves exact article prose height) */
.related-stories-block,
.comments-box {
  content-visibility: auto;
  contain-intrinsic-size: none;
  contain-intrinsic-width: none;
  contain-intrinsic-height: auto 340px;
}
.site-footer {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

/* Fluid multi-breakpoint & dvh viewport responsiveness */
.auth-modal__dialog,
.search-modal__panel {
  max-height: min(680px, calc(100dvh - 32px));
}
@media (min-width: 641px) and (max-width: 960px) {
  .pricing-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (hover: none) and (pointer: coarse) {
  .lu-story:hover,
  .lu-path-card:hover,
  .btn:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  .lu-hero.xiao-fu-intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .lu-hero.xiao-fu-intro > * {
    min-width: 0;
    max-width: 100%;
  }
  .lu-hero.xiao-fu-intro .scrollCue {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    text-align: left;
  }
  .lu-hero.xiao-fu-intro .cueCopy {
    min-width: 0;
    flex: 1;
  }
}


/* Chinese Pro Max — mobile compatibility, liquid-glass & logo restoration patch v2. Load LAST. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 1. Single-column container & grid child min-width safeguards (preserves desktop multi-column grids) */
.ccx-reader-main,
.bazaar-main,
.search-page-form {
  grid-template-columns: minmax(0, 1fr);
}

.ccx-reader-main > *,
.bazaar-main > *,
.bazaar-layout > *,
.search-page-form > *,
.concierge-grid > *,
.bespoke-grid > *,
.cng-grid > * {
  min-width: 0;
}

.bazaar-controls {
  min-width: 0;
  max-width: 100%;
}

.bazaar-filters {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.concierge-channel-box {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ad-slot[data-ad-status="unfilled"] {
  display: none !important;
}

/* 2. Mobile Optical Liquid-Glass Navbar + Guaranteed Visible Top-Left Logo (<= 960px ONLY; Desktop >= 961px untouched) */
@media (max-width: 960px) {
  .site-header,
  .site-header.is-scrolled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: transparent !important;
  }

  /* Direct backdrop-filter on .liquid-glass avoids WebKit/iOS Safari ::before Backdrop-Root isolation */
  .site-header .liquid-glass,
  .site-header.is-scrolled .liquid-glass {
    display: block !important;
    background: rgba(255, 252, 254, 0.82) !important;
    box-shadow: 0 10px 30px -6px rgba(61, 24, 36, 0.20), 0 2px 8px rgba(61, 24, 36, 0.09);
  }

  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header .liquid-glass {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 249, 251, 0.22) 52%, rgba(255, 253, 254, 0.34) 100%) !important;
      -webkit-backdrop-filter: blur(18px) saturate(1.9) contrast(1.04);
      backdrop-filter: blur(18px) saturate(1.9) contrast(1.04);
    }

    .site-header.is-scrolled .liquid-glass {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 249, 251, 0.30) 52%, rgba(255, 253, 254, 0.42) 100%) !important;
      -webkit-backdrop-filter: blur(20px) saturate(1.95) contrast(1.05);
      backdrop-filter: blur(20px) saturate(1.95) contrast(1.05);
    }

    /* Chromium/Android real SVG bevel edge refraction on top of liquid blur */
    .site-header .liquid-glass[data-refraction="ready"] {
      backdrop-filter: blur(12px) saturate(1.9) contrast(1.04) var(--liquid-refraction);
    }

    .site-header.is-scrolled .liquid-glass[data-refraction="ready"] {
      backdrop-filter: blur(14px) saturate(1.95) contrast(1.05) var(--liquid-refraction);
    }
  }

  /* Curved optical caustic sheen & 3D specular glass rim (replaces flat 0.50 whitewash) */
  .site-header .liquid-glass::before {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background:
      radial-gradient(
        ellipse 66% 130% at var(--glass-light-x, 24%) var(--glass-light-y, 0%),
        rgba(255, 255, 255, 0.68) 0%,
        rgba(255, 255, 255, 0.16) 46%,
        transparent 72%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.04) 38%,
        rgba(255, 255, 255, 0.02) 68%,
        rgba(255, 255, 255, 0.24) 100%
      );
  }

  .site-header .liquid-glass::after {
    background: linear-gradient(
      132deg,
      rgba(255, 255, 255, 0.46) 0%,
      transparent 32%,
      transparent 68%,
      rgba(255, 255, 255, 0.30) 100%
    );
    box-shadow:
      inset 0 1.5px 1px rgba(255, 255, 255, 0.98),
      inset 0 -1.5px 1.5px rgba(255, 255, 255, 0.64),
      inset 1.5px 0 1.5px rgba(255, 255, 255, 0.70),
      inset -1.5px 0 1.5px rgba(255, 255, 255, 0.50),
      inset 0 -5px 12px rgba(208, 50, 104, 0.08);
  }

  /* Guaranteed non-collapsing, crisp top-left Mascot + Wordmark Logo across iOS Safari & Android */
  .site-header .logo-mark {
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
    padding-inline: 2px;
  }

  .site-header .brand-wordmark {
    --mascot-size: 30px;
    --wordmark-width: 138px;
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .brand-mascot {
    display: block !important;
    flex: 0 0 auto;
    width: var(--mascot-size);
    height: var(--mascot-size);
    min-width: var(--mascot-size);
    min-height: var(--mascot-size);
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .brand-lettering {
    display: block !important;
    flex: 0 0 auto;
    width: var(--wordmark-width);
    min-width: var(--wordmark-width);
    max-width: none;
    aspect-ratio: 1430 / 245;
    height: auto;
    opacity: 1 !important;
    visibility: visible !important;
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.84))
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.42));
  }

  .site-header .header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
  }

  .site-header .lu-search-trigger,
  .site-header .u074-bell,
  .site-header .account-avatar-btn,
  .site-header .mobile-menu-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .site-header .lu-search-trigger,
  .site-header .u074-bell,
  .site-header .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.52);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 1px 3px rgba(22, 21, 27, 0.08);
    color: var(--ux-ink);
  }
}

@media (max-width: 740px) {
  .home-newsletter-row .home-newsletter-input,
  .home-newsletter-input {
    flex: 0 0 auto;
    width: 100%;
    height: 48px;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
  }

  .home-newsletter-row .btn {
    width: 100%;
  }

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

  .bazaar-main > *,
  .bazaar-layout > * {
    min-width: 0;
  }

  .search-page-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-page-form > * {
    min-width: 0;
  }

  .related-stories-block,
  .comments-box,
  .site-footer {
    content-visibility: visible;
    contain-intrinsic-size: none;
    contain-intrinsic-height: none;
  }
}

@media (max-width: 640px) {
  .site-header .brand-wordmark {
    --mascot-size: 26px;
    --wordmark-width: 122px;
    gap: 6px;
  }

  .site-header .header-actions {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .concierge-channel-box .btn {
    max-width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 14px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .site-footer .logo-mark,
  .site-footer .brand-wordmark,
  .site-footer .brand-lettering {
    min-width: 0;
    max-width: 100%;
  }

  .prose,
  .prose code,
  .breadcrumb {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 410px) {
  /* Search bar is right at the top of #mobile-nav; frees full room for Logo + Wordmark */
  .site-header .lu-search-trigger {
    display: none !important;
  }

  .site-header .brand-wordmark {
    --mascot-size: 26px;
    --wordmark-width: 118px;
    gap: 6px;
  }

  .search-page-box {
    gap: 8px;
    padding: 5px 6px 5px 12px;
  }
}

@media (max-width: 355px) {
  /* Keep BOTH Mascot AND Wordmark crisp & visible even on 320px / Display-Zoom phones */
  .site-header .brand-wordmark {
    --mascot-size: 22px;
    --wordmark-width: 104px;
    gap: 5px;
  }

  .site-header .u074-bell,
  .site-header .account-avatar-btn,
  .site-header .mobile-menu-btn {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }

  .site-header .header-signin-btn {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
  }

  .search-page-box {
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .search-page-input {
    flex: 1 1 140px;
  }

  .search-page-box .btn {
    width: 100%;
  }
}

@media (max-width: 304px) {
  /* Even at 280px folded screens, keep full Mascot + Wordmark visible with zero overlap */
  .site-header .notification-bell-wrap {
    display: none !important;
  }

  .site-header .brand-wordmark {
    --mascot-size: 20px;
    --wordmark-width: 94px;
    gap: 4px;
  }
}

/* 3. Pause imperceptible 36s/47s background drift & sticky hover on touch devices (without weakening liquid glass!) */
@media (hover: none) and (pointer: coarse) {
  body.ccx-lucian::before,
  .home-opening-canvas::before,
  .home-opening-canvas::after {
    animation: none !important;
  }

  .lu-story:hover {
    transform: none;
  }

  .lu-story:hover::after {
    opacity: 0;
  }

  .laowai-cover--photo:hover .laowai-cover-art--photo img {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header .liquid-glass,
  .site-header.is-scrolled .liquid-glass {
    background: var(--ux-surface) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .liquid-glass::before {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* 4. Older engines discard an entire selector list if any selector uses :has(). */
@supports not selector(:has(*)) {
  .site-header,
  .site-header.is-scrolled {
    position: sticky;
    top: 12px;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: min(1120px, calc(100% - 48px));
    height: 64px;
    min-height: 64px;
    margin: 12px auto 0;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  @media (min-width: 961px) {
    .site-header,
    .site-header.is-scrolled {
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 14px;
    }
  }

  @media (min-width: 961px) and (max-width: 1100px) {
    .site-header,
    .site-header.is-scrolled {
      width: calc(100% - 32px);
    }
  }

  @media (max-width: 960px) {
    .site-header,
    .site-header.is-scrolled {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: calc(100% - 32px);
      gap: 8px;
      padding: 6px 12px;
      border: 1px solid rgba(255, 255, 255, 0.72);
    }
  }

  @media (max-width: 640px) {
    .site-header,
    .site-header.is-scrolled {
      top: 8px;
      top: max(8px, env(safe-area-inset-top, 0px));
      width: calc(100% - 24px);
      height: 56px;
      min-height: 56px;
      margin-top: 8px;
      padding: 4px 10px;
    }
  }

  @media (max-height: 500px) and (orientation: landscape) {
    .site-header,
    .site-header.is-scrolled {
      position: relative;
      top: 0;
      margin-top: 8px;
      height: 52px;
      min-height: 52px;
    }
  }

  .home-ad-wrap {
    padding-top: 0 !important;
  }

  .home-ad-wrap > .ad-slot:not([hidden]):not([data-ad-status="unfilled"]) {
    margin-top: 28px;
  }
}

/* 5. Old viewport-unit fallbacks */
@supports not (height: 100dvh) {
  .mobile-nav {
    max-height: calc(100vh - 80px);
  }

  .lu-search {
    max-height: min(560px, calc(100vh - 80px));
  }

  .ccx-notifications .u074-pan {
    max-height: min(420px, calc(100vh - 96px));
  }

  .auth-modal__dialog,
  .search-modal__panel {
    max-height: min(680px, calc(100vh - 32px));
  }

  @media (max-width: 640px) {
    .mobile-nav {
      max-height: calc(100vh - 88px);
    }
  }
}

@supports not (height: 100svh) {
  .home-opening-canvas {
    --intro-peek: clamp(42px, 8vh, 84px);
    --intro-boundary: calc(100vh - var(--intro-peek));
  }
}

@supports not (background: color-mix(in srgb, white, transparent)) {
  .ccx-cookie.u225 .u225-bn {
    background: rgba(255, 252, 250, 0.97);
  }
}

@supports not (overflow: clip) {
  html,
  body.ccx-lucian {
    overflow-x: hidden;
  }

  .home-opening-canvas {
    overflow: hidden;
  }
}

/* 6. Positioning fallback for engines without inset support */
@supports not (inset: 0) {
  .mobile-nav-backdrop,
  .laowai-cover-art,
  .laowai-cover--photo .laowai-cover-art--photo::after,
  .mem-film__bg,
  .mem-film__bg::after,
  .lu-search-backdrop,
  .auth-modal-backdrop,
  .liquid-glass,
  .liquid-glass::before,
  .liquid-glass::after,
  .lu-story::after,
  body.ccx-lucian::before,
  .ccx-reader-rail .u058-ring > span,
  .ccx-reader-rail .u058-ring > i {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .home-opening-canvas::before,
  .home-opening-canvas::after {
    top: 0 !important;
    right: 0 !important;
    bottom: -96px !important;
    left: 0 !important;
  }

  .desktop-nav .lens-roam__inner {
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
  }

  .xiao-fu-visual::before {
    top: auto;
    right: 18%;
    bottom: 2%;
    left: 18%;
  }

  .studio-hero-mascot::before {
    top: auto;
    right: 16%;
    bottom: 2%;
    left: 16%;
  }
}

/* ==========================================================================
   Unified Cross-Platform Optical Liquid-Glass v3 (Identical on PC & All Phones)
   - Zero white-tile opacity overrides on scroll or initial load
   - Direct element backdrop-filter on .liquid-glass (avoids WebKit ::before Backdrop-Root bug)
   - Zero nested child backdrop-filter inside header (prevents mobile/Safari GPU flicker)
   - Real SDF convex bevel refraction on Blink + identical 3D meniscus optics on WebKit/Gecko
   ========================================================================== */
.site-header,
.site-header.is-scrolled {
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.64) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header .liquid-glass,
.site-header.is-scrolled .liquid-glass {
  display: block !important;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255, 252, 253, 0.86) !important;
  box-shadow:
    0 0 0 0.5px rgba(22, 21, 27, 0.08),
    0 4px 12px rgba(61, 24, 36, 0.07),
    0 14px 32px -8px rgba(61, 24, 36, 0.14) !important;
  transform: translateZ(0);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header .liquid-glass,
  .site-header.is-scrolled .liquid-glass {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(255, 249, 251, 0.20) 48%,
      rgba(255, 252, 253, 0.26) 100%
    ) !important;
    -webkit-backdrop-filter: blur(9px) saturate(1.75) brightness(1.08) contrast(1.03) !important;
    backdrop-filter: blur(9px) saturate(1.75) brightness(1.08) contrast(1.03) !important;
  }

  .site-header .liquid-glass[data-refraction="ready"],
  .site-header.is-scrolled .liquid-glass[data-refraction="ready"] {
    backdrop-filter: blur(8.5px) saturate(1.75) brightness(1.08) contrast(1.03) var(--liquid-refraction) !important;
  }
}

/* Convex water-meniscus caustic highlight (0% center fill -> zero whitewash!) */
.site-header .liquid-glass::before,
.site-header.is-scrolled .liquid-glass::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background:
    radial-gradient(
      ellipse 46% 96% at var(--glass-light-x, 24%) var(--glass-light-y, 0%),
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.06) 46%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.00) 25%,
      rgba(255, 255, 255, 0.00) 77%,
      rgba(255, 255, 255, 0.18) 100%
    ) !important;
}

/* 3D curved inner specular rim & internal reflection edge */
.site-header .liquid-glass::after,
.site-header.is-scrolled .liquid-glass::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 24%,
    transparent 76%,
    rgba(255, 255, 255, 0.16) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0.8px rgba(255, 255, 255, 0.96),
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.68),
    inset 1.5px 0 1.2px rgba(255, 255, 255, 0.62),
    inset -1.5px 0 1.2px rgba(255, 255, 255, 0.48),
    inset 0 -1px 1px var(--glass-rim-bottom),
    inset 0 -4px 10px rgba(208, 50, 104, 0.06) !important;
}

/* Remove nested child backdrop-filters inside .site-header to eliminate multi-GPU compositing artifacts */
.site-header .desktop-nav .lens-roam {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.20)) !important;
}

.site-header .lu-search-trigger,
.site-header .u074-bell,
.site-header .mobile-menu-btn {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(22, 21, 27, 0.08),
    0 1px 3px rgba(22, 21, 27, 0.06) !important;
  color: var(--ux-ink);
}

.site-header .lu-search-trigger:hover,
.site-header .lu-search-trigger:focus-visible,
.site-header .u074-bell:hover,
.site-header .mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.66) !important;
}

/* Crisp legibility over both dark hero imagery and light editorial cards (zero double-edge halo) */
.site-header .nav-link {
  color: #1F1C26;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.site-header .brand-lettering {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.30)) !important;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header .liquid-glass,
  .site-header.is-scrolled .liquid-glass {
    background: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
