/* Shared Into Why shell for all inside pages. Homepage index.html remains verbatim. */
:root {
  --ink: #16181D;
  --raised-ink: #23262E;
  --ink-2: var(--raised-ink);
  --paper: #F4F3F0;
  --panel: #ECEAE4;
  --paper-2: var(--panel);
  --card: #FBFAF8;
  --grey: #6B6E76;
  --muted: #9A9CA2;
  --grey-soft: var(--muted);
  --line: #DEDCD4;
  --mustard: #E0A92E;
  --mustard-deep: #B7841C;
  --mustard-soft: #F4E4BE;
  --w-sage: #9DAE8B;
  --w-sky: #8FAAC4;
  --w-clay: #C98F6E;
  --w-plum: #9D8BA8;
  --w-moss: #7E9A86;

  /* Legacy aliases used by existing renderers. Values point at the new brand spine. */
  --cream: var(--paper);
  --cream-2: var(--panel);
  --soft: var(--paper);
  --mist: var(--panel);
  --sun: var(--mustard);
  --sun-soft: var(--mustard-soft);
  --honey: var(--mustard);
  --honey-soft: var(--mustard-soft);
  --leaf: var(--w-sage);
  --sky: var(--w-sky);
  --clay: var(--w-clay);
  --lilac: var(--w-plum);
  --plum: var(--w-plum);
  --rose: var(--w-clay);
  --blue: var(--w-sky);
  --blue-soft: color-mix(in srgb, var(--w-sky) 18%, var(--card));
  --leaf-soft: color-mix(in srgb, var(--w-sage) 18%, var(--card));
  --coral: var(--mustard);
  --coral-soft: var(--mustard-soft);
  --line-strong: color-mix(in srgb, var(--line) 62%, var(--ink));
  --shadow: rgba(22, 24, 29, 0.08);
  --paper-shadow: 0 18px 40px var(--shadow);
  --radius: 20px;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 12px;
  font-family: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
summary {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}

.serif,
.brand-name,
.section-head h1,
.section-head h2,
.library-hero h1,
.member-hero h1,
.cluster-head h2,
.question-card h3,
.story-card h1,
.story-answer .story-lead,
.world-cover-card .world-card-top strong {
  font-family: 'Fraunces', Georgia, serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  padding: 0;
  background: rgba(244, 243, 240, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body[data-shell-theme="dark"] .site-header,
body[data-shell-theme="dark"] .nav {
  background: rgba(22, 24, 29, 0.92);
  border-bottom-color: rgba(244, 243, 240, 0.12);
}

body[data-shell-theme="dark"] .nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body[data-shell-theme="dark"] .brand-mark {
  background: var(--paper);
}

body[data-shell-theme="dark"] .brand-name {
  color: var(--paper);
}

body[data-shell-theme="dark"] .brand-name .brand-into,
body[data-shell-theme="dark"] .brand-name .lt {
  color: #F4F3F0;
}

body[data-shell-theme="dark"] .brand-name .brand-why,
body[data-shell-theme="dark"] .brand-name .hv {
  color: var(--mustard);
}

body[data-shell-theme="dark"] .brand-promise {
  color: rgba(244, 243, 240, 0.72);
}

body[data-shell-theme="dark"] .top-nav {
  position: absolute;
  top: 50%;
  right: max(32px, calc((100vw - 1180px) / 2 + 32px));
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  overflow: visible;
}

body[data-shell-theme="dark"] .nav-link {
  color: var(--paper);
}

body[data-shell-theme="dark"] .nav-link[href="/"],
body[data-shell-theme="dark"] .nav-link[href="../"],
body[data-shell-theme="dark"] .nav-link[href="../../"],
body[data-shell-theme="dark"] .nav-link[href^="../?"],
body[data-shell-theme="dark"] .nav-link[href^="../../?"] {
  border-color: rgba(244, 243, 240, 0.14);
}

body[data-shell-theme="dark"] .nav-link:hover,
body[data-shell-theme="dark"] .nav-link:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

body[data-shell-theme="dark"] .brand:focus-visible,
body[data-shell-theme="dark"] .nav-link:focus-visible {
  outline-color: color-mix(in srgb, var(--mustard) 56%, transparent);
}

body[data-shell-theme="dark"] .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-shell-theme="dark"] .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 10px 18px;
  color: var(--paper);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: 0.18s;
  white-space: nowrap;
}

body[data-shell-theme="dark"] .nav-links a.ghost {
  border-color: rgba(244, 243, 240, 0.14);
}

body[data-shell-theme="dark"] .nav-links a.ghost:hover,
body[data-shell-theme="dark"] .nav-links a.ghost:focus-visible {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

body[data-shell-theme="dark"] .nav-links a.solid {
  color: var(--ink);
  background: var(--mustard);
  border-color: var(--mustard);
}

body[data-shell-theme="dark"] .nav-links a.solid:hover,
body[data-shell-theme="dark"] .nav-links a.solid:focus-visible {
  background: var(--mustard-deep);
  border-color: var(--mustard-deep);
}

.header-row {
  width: min(1180px, 100%);
  height: 74px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.brand-eye {
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-radius: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-mark svg,
.brand-eye svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-eye {
  width: 36px;
  height: 36px;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  color: var(--ink);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name .brand-into,
.brand-name .lt {
  color: var(--ink);
}

.brand-name .brand-why,
.brand-name .hv {
  color: var(--mustard-deep);
}

.brand-promise {
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}


.top-nav {
  position: absolute;
  top: 50%;
  right: max(32px, calc((100vw - 1180px) / 2 + 32px));
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  overflow: visible;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 10px 18px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: 0.18s;
  white-space: nowrap;
}

.nav-link[href="/"],
.nav-link[href="../"],
.nav-link[href="../../"],
.nav-link[href^="../?"],
.nav-link[href^="../../?"] {
  border-color: var(--line);
}

body[data-section="questions"] .nav-link[href$="/questions/"],
body[data-section="worlds"] .nav-link[href$="/worlds/"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
}

.nav-link[href="/"]:hover,
.nav-link[href="/"]:focus-visible,
.nav-link[href="../"]:hover,
.nav-link[href="../"]:focus-visible,
.nav-link[href="../../"]:hover,
.nav-link[href="../../"]:focus-visible,
.nav-link[href^="../?"]:hover,
.nav-link[href^="../?"]:focus-visible,
.nav-link[href^="../../?"]:hover,
.nav-link[href^="../../?"]:focus-visible {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.brand:focus-visible,
.nav-link:focus-visible,
.search-input:focus-visible,
.primary-button:focus-visible,
.small-button:focus-visible,
.chip:focus-visible,
.world-chip:focus-visible,
.question-card:focus-visible,
.world-card:focus-visible,
.product-home-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--mustard) 44%, transparent);
  outline-offset: 3px;
}

main {
  min-height: calc(100vh - 74px);
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 74px 32px 88px;
}

.site-footer {
  margin-top: 92px;
  padding: 60px 0 44px;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid rgba(244, 243, 240, 0.12);
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand .mark {
  border-radius: 11px;
  overflow: hidden;
}

.footer-top p {
  max-width: 560px;
  margin: 0;
  color: rgba(244, 243, 240, 0.78);
  font-size: 0.98rem;
  font-weight: 500;
}

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

.foot-col h5 {
  margin: 0 0 12px;
  color: rgba(244, 243, 240, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-col a {
  display: block;
  margin: 0 0 10px;
  color: rgba(244, 243, 240, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
}

.foot-col a:hover,
.foot-col a:focus-visible {
  color: var(--mustard);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(244, 243, 240, 0.12);
  color: rgba(244, 243, 240, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
}

.foot-bottom .brand-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
}

.foot-bottom .brand-into {
  color: #F4F3F0;
}

.foot-bottom .brand-why {
  color: var(--mustard);
}

.view,
.cluster-list,
.cluster-section,
.world-card-body,
.question-page {
  display: grid;
}

.view {
  gap: 32px;
}

.hero-band,
.section-head,
.listing-cover {
  min-height: 0;
  margin: 0;
}

.hero-band.library-hero,
.listing-cover {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow,
.library-hero .eyebrow,
.member-hero .eyebrow,
.cluster-head .eyebrow {
  margin: 0;
  color: var(--mustard-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h1,
.section-head h2,
.library-hero h1,
.member-hero h1 {
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.section-head p,
.library-hero p:not(.eyebrow),
.member-hero .hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--grey);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
}

.member-hero {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  background:
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--mustard) 15%, transparent), transparent 34%),
    linear-gradient(135deg, var(--card), var(--panel));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--paper-shadow);
}

.panel.listing-toolbar.search-shelf {
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, #FFFFFF 0%, var(--card) 100%);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 18px 42px rgba(22, 24, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-form,
.search-shelf .search-form,
.member-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: none;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.search-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.search-token {
  display: none;
}

.search-input,
.search-shelf .search-input,
.member-search .search-input {
  width: 100%;
  min-height: 56px;
  padding: 0 52px 0 22px;
  color: var(--ink);
  background: #FFFFFF;
  border: 2px solid color-mix(in srgb, var(--line) 76%, var(--ink));
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 0 rgba(22, 24, 29, 0.03);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 72%, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.32rem;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.search-clear[hidden] {
  display: none;
}

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

.search-clear-hint {
  grid-column: 1 / -1;
  margin: 2px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.search-clear-hint[hidden] {
  display: none;
}

.worlds-search-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.worlds-search-row .search-form {
  flex: 1 1 auto;
  min-width: 0;
}

.worlds-explore-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.quick-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.quick-action-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 26px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(22, 24, 29, 0.05);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.quick-action-tab[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 5;
}

.quick-action-tab[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.quick-action-tab[data-tip]:hover::after,
.quick-action-tab[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quick-action-tab[data-tip]:hover::before,
.quick-action-tab[data-tip]:focus-visible::before {
  opacity: 1;
}

.quick-action-tab span:first-child {
  font-size: 1.2rem;
}

.quick-action-tab:hover,
.quick-action-tab:focus-visible {
  transform: translateY(-3px);
  border-color: var(--mustard-deep);
  box-shadow: 0 14px 30px rgba(22, 24, 29, 0.14);
}

.quick-action-tab.quick-action-featured {
  color: var(--ink);
  background: var(--mustard-soft);
  border-color: var(--mustard);
}

.quick-action-tab.quick-action-featured:hover,
.quick-action-tab.quick-action-featured:focus-visible {
  background: var(--mustard);
  border-color: var(--mustard-deep);
}

.add-to-library-row {
  margin-top: 14px;
}

.add-to-library-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--grey);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.add-to-library-button:hover,
.add-to-library-button:focus-visible {
  color: var(--ink);
  border-color: var(--mustard-deep);
  background: var(--card);
}

@media (max-width: 640px) {
  .worlds-search-row {
    flex-wrap: wrap;
  }

  .worlds-explore-link {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .quick-action-tab {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}

.todays-why-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 14px 20px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mustard-soft), var(--card));
  border: 1px solid color-mix(in srgb, var(--mustard) 48%, var(--line));
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.todays-why-card:hover,
.todays-why-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 24, 29, 0.1);
}

.todays-why-label {
  flex: 0 0 auto;
  padding: 4px 10px;
  color: var(--ink);
  background: var(--mustard);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.todays-why-question {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
}

.todays-why-cue {
  flex: 0 0 auto;
  color: var(--mustard-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.search-input:focus {
  border-color: var(--mustard-deep);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--mustard-soft) 72%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.primary-button,
.small-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  transition: 0.18s;
  white-space: nowrap;
}

.primary-button {
  min-height: 52px;
  padding: 0 26px;
  color: var(--ink);
  background: var(--mustard);
  border: 0;
}

.small-button,
.ghost-button {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
}

.primary-button:hover,
.primary-button:focus-visible,
.small-button:hover,
.small-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
}

.small-button:hover,
.ghost-button:hover {
  color: var(--paper);
  background: var(--ink);
}

.filter-row,
.search-shelf .filter-row,
.status-row,
.member-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-shelf .filter-row {
  flex-wrap: wrap;
  padding: 0;
  overflow: visible;
}

.chip,
.world-chip,
.status-chip,
.type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.filter-row .chip,
.search-shelf .chip {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: normal;
}

.chip:hover,
.world-chip:hover,
.filter-row .chip:focus-visible {
  border-color: var(--ink);
}

.chip.is-active,
.filter-row .chip.is-active {
  color: var(--ink);
  background: var(--mustard-soft);
  border-color: var(--mustard);
}

.world-chip {
  background: color-mix(in srgb, var(--world-accent, var(--w-sage)) 20%, var(--card));
  border-color: color-mix(in srgb, var(--world-accent, var(--w-sage)) 36%, var(--line));
}

.listing-grid,
.world-grid {
  display: grid;
  gap: 24px;
}

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

.world-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.question-card,
.world-card,
.info-card,
.story-card {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.question-card.encyclopedia-card {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 16px;
  padding: clamp(16px, 3vw, 22px);
  background: var(--card);
  border-top: 6px solid color-mix(in srgb, var(--world-accent, var(--w-sage)) 70%, var(--line));
  box-shadow: 0 16px 36px rgba(22, 24, 29, 0.07);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.question-card.encyclopedia-card::after {
  display: none;
}

.question-card.encyclopedia-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--world-accent, var(--w-sage)) 38%, var(--line));
  box-shadow: 0 20px 42px rgba(22, 24, 29, 0.1);
}

.question-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  min-width: 0;
}

.question-card.has-subject-sketch .card-meta {
  margin-top: 4px;
}

.question-card h3 {
  max-width: 100%;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: clamp(1.22rem, 2.7vw, 1.56rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.question-card p {
  margin: 0;
  color: var(--grey);
}

.question-card .card-open-cue,
.related-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--mustard-soft);
  border: 1px solid color-mix(in srgb, var(--mustard) 48%, var(--line));
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 100%;
}

.world-cover-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 20px;
  padding: clamp(18px, 3vw, 24px);
  overflow: hidden;
  background: var(--card);
  border-top: 7px solid color-mix(in srgb, var(--world-accent, var(--w-sage)) 72%, var(--line));
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(22, 24, 29, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.world-cover-card:hover,
.world-cover-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--world-accent, var(--w-sage)) 42%, var(--line));
  box-shadow: 0 24px 46px rgba(22, 24, 29, 0.11);
}

.world-card-image {
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--world-accent, var(--w-sage)) 24%, var(--line));
  border-radius: 20px;
}

.world-card-image img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.world-card-motif-frame {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.world-card-body {
  gap: 14px;
  align-content: start;
}

.world-cover-card .world-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.world-motif.small {
  width: 48px;
  height: 48px;
  flex: none;
}

.world-cover-card .world-card-top strong {
  color: var(--ink);
  font-size: clamp(1.36rem, 2.6vw, 1.82rem);
  font-weight: 600;
  line-height: 1.05;
}

.world-cover-card p {
  margin: 0;
  color: var(--grey);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.featured-list {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.featured-list span,
.answer-prize-label,
.answer-path-wrap h2,
.story-path h2,
.answer-prize-footer span,
.story-footer span {
  color: var(--mustard-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-feature {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.22;
  font-weight: 700;
}

.supporting-questions {
  display: grid;
  gap: 4px;
  color: var(--grey);
  font-size: 0.92rem;
  font-weight: 500;
}

.cluster-list {
  gap: clamp(28px, 5vw, 46px);
}

.cluster-section {
  gap: 18px;
}

.cluster-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cluster-head h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
}

.cluster-head span {
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.question-page {
  gap: 24px;
}

.question-token {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  color: var(--ink);
  background: var(--mustard);
  border-radius: 13px;
  font-weight: 800;
}

.product-home-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px 8px 8px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-home-button .brand-eye {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(24px, 5vw, 42px);
  color: var(--grey);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--paper-shadow);
  font-weight: 600;
}

.empty-state .brand-eye {
  width: 44px;
  height: 44px;
}

.all-done .brand-eye {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
}

.mode-control.internal-utility {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--grey);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(22, 24, 29, 0.08);
  backdrop-filter: blur(10px);
}

body.studio-access-enabled .mode-control.internal-utility {
  display: flex;
}

.mode-label {
  padding-left: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.mode-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--mustard-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worlds-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-row {
    height: auto;
    padding: 14px 22px 10px;
  }

  .top-nav {
    position: static;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 22px 14px;
    transform: none;
    overflow-x: auto;
  }

  .brand-promise {
    display: none;
  }

  .shell {
    padding: 48px 22px 60px;
  }

  .section-head,
  .cluster-head {
    display: grid;
    align-items: start;
  }

  .panel.listing-toolbar.search-shelf,
  .member-hero {
    padding: 18px;
  }

  .search-form,
  .search-shelf .search-form,
  .member-search {
    grid-template-columns: 1fr;
  }

  .primary-button {
    width: 100%;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .world-cover-card {
    grid-template-columns: 1fr;
  }

  .world-card-image {
    min-height: 190px;
  }
}

@media (max-width: 540px) {
  .question-card.encyclopedia-card {
    gap: 12px;
    padding: 16px;
  }

  .question-card h3 {
    font-size: clamp(1.24rem, 6.8vw, 1.52rem);
  }
}
