:root {
  color-scheme: light;

  /* Color tokens (palette unchanged) */
  --ink: #24201f;
  --muted: #69605d;
  --soft: #8a7c78;
  --line: #e2d9d4;
  --paper: #fcf8f4;
  --panel: #fffdfb;
  --blush: #fff0f2;
  --rose: #be4964;
  --rose-dark: #92324b;
  --sage: #5d7f72;
  --sage-dark: #315f54;
  --honey: #a96e1d;

  /* Paper light states — give the off-white surface real lighting instead of flat fill.
     lit = where the cinematic warm light lands; shade = where it falls away. */
  --paper-lit: #fffaf3;
  --paper-shade: #f1e8df;
  --ink-soft: rgba(36, 32, 31, 0.06);

  /* Paper grain: inline SVG fractalNoise, zero network request. Strong-intensity
     tuning per design system. Layered under content via ::before overlays. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-body: 0.07;   /* page background grain strength */
  --grain-card: 0.05;   /* card material grain strength */

  /* Spacing scale — 4px base unit */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;

  /* Layout rails */
  --layout-workbench: 1028px;

  /* Typography scale */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 26px;
  --text-3xl: 32px;
  --text-display: clamp(36px, 1.5rem + 2vw, 56px);

  --line-tight: 1.05;
  --line-snug: 1.2;
  --line-base: 1.5;
  --line-relaxed: 1.65;

  /* Radius */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  /* Shadow */
  /* Soft UI Evolution: multi-layer soft shadows (softer than flat, clearer than neumorphism) */
  --shadow-sm: 0 1px 2px rgba(71, 50, 42, 0.05), 0 2px 8px rgba(71, 50, 42, 0.05);
  --shadow: 0 4px 12px rgba(71, 50, 42, 0.07), 0 16px 44px rgba(71, 50, 42, 0.10);
  --shadow-lg: 0 8px 22px rgba(71, 50, 42, 0.09), 0 26px 64px rgba(71, 50, 42, 0.14);
  --radius-lg: 14px;

  /* Directional, warm-tinted shadows — light source sits top-left, so shadows
     drop down-right. This reads as a physical object on a desk, not a flat panel. */
  --shadow-paper:
    -1px -1px 0 rgba(255, 255, 255, 0.7),
    3px 5px 12px rgba(99, 67, 52, 0.09),
    14px 22px 44px rgba(99, 67, 52, 0.12);
  --shadow-lift:
    -1px -1px 0 rgba(255, 255, 255, 0.85),
    6px 10px 20px rgba(99, 67, 52, 0.13),
    22px 34px 66px rgba(99, 67, 52, 0.18);
  /* Letterpress emboss for buttons: top inner highlight + bottom inner shade. */
  --shadow-emboss:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 3px rgba(99, 67, 52, 0.22),
    0 2px 5px rgba(99, 67, 52, 0.18);
  --shadow-press:
    inset 0 2px 5px rgba(99, 67, 52, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);

  /* Organic radii — hand-cut, intentionally uneven corners (anti-symmetry). */
  --radius-organic: 16px 13px 18px 14px;
  --radius-organic-lg: 22px 17px 24px 19px;

  /* Motion */
  --duration-fast: 140ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Physical rebound — a touch of overshoot so motion feels like a real object. */
  --ease-physical: cubic-bezier(0.34, 1.4, 0.4, 1);

  /* Typography — "Love-letter letterpress" direction.
     Display = Fraunces (characterful high-contrast serif, used for headings + generated names).
     Body = Hanken Grotesk (humanist sans for UI/reading text).
     Both loaded from Bunny Fonts (privacy-friendly) in each page <head> with display=swap.
     Fallbacks keep text visible during swap to protect CLS/LCP. */
  --font-display: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  /* Cinematic warm light: a soft off-center glow from upper-left fading into a
     cooler shaded lower-right, over the paper base. Lighting, not a color band. */
  background:
    radial-gradient(120% 80% at 18% -8%, rgba(255, 244, 238, 0.95), rgba(255, 240, 242, 0) 46%),
    radial-gradient(90% 70% at 92% 6%, rgba(255, 240, 242, 0.6), rgba(252, 248, 244, 0) 40%),
    linear-gradient(168deg, var(--paper-lit), var(--paper) 32%, var(--paper-shade) 100%);
  color: var(--ink);
}

/* Full-page paper grain. Fixed so it never scrolls like a flat texture tile;
   soft-light blend keeps it under the content as a material, not a filter. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: var(--grain-body);
  mix-blend-mode: soft-light;
}

@media (prefers-reduced-transparency: reduce) {
  body::before {
    opacity: calc(var(--grain-body) * 0.5);
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(252, 248, 244, 0.94);
  border-bottom: 1px solid rgba(226, 217, 212, 0.8);
  backdrop-filter: blur(14px);
}

.brand,
.nav a,
.footer a,
.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  /* Wax-seal feel: uneven corners + an inked-stamp inner shadow. */
  border-radius: 12px 9px 13px 10px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%),
    var(--ink);
  color: white;
  font-size: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 5px rgba(36, 32, 31, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.hero {
  display: grid;
  gap: var(--space-6);
  max-width: 1060px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-6) var(--space-9);
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--rose-dark);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
.result-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  text-rendering: optimizeLegibility;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: var(--text-display);
  font-weight: 620;
  line-height: var(--line-tight);
  letter-spacing: -0.025em;
}

h2 {
  font-weight: 560;
  letter-spacing: -0.012em;
}

h3 {
  font-weight: 600;
}

.hero-text {
  max-width: 60ch;
  margin: var(--space-5) auto 0;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: var(--line-relaxed);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 253, 251, 0.82);
  color: var(--muted);
  font-size: var(--text-base);
}

.generator-panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-organic-lg);
  padding: var(--space-5);
  /* Lit from the top-left corner, settling into paper toward the base. */
  background:
    radial-gradient(140% 100% at 0% 0%, var(--paper-lit), rgba(255, 250, 243, 0) 55%),
    var(--panel);
  box-shadow: var(--shadow-paper);
}

/* Material grain pressed into the panel; clipped to the organic radius. */
.generator-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: var(--grain-card);
  mix-blend-mode: multiply;
}

.generator-panel > * {
  position: relative;
  z-index: 1;
}

.panel-intro {
  margin-bottom: var(--space-4);
}

.panel-intro h2 {
  margin: 0;
  font-size: var(--text-3xl);
  line-height: var(--line-snug);
}

.panel-intro p:not(.eyebrow) {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  line-height: var(--line-base);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.mode-tab,
.secondary-button,
.text-button,
.example-list button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* Raised cardstock chip: faint top sheen + grounded lower edge. */
  background: linear-gradient(180deg, var(--paper-lit), var(--panel));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(99, 67, 52, 0.08);
}

.secondary-button,
.example-list button {
  transition: transform var(--duration-fast) var(--ease-physical),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.secondary-button:hover,
.example-list button:hover {
  border-color: rgba(190, 73, 100, 0.4);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 10px rgba(99, 67, 52, 0.12);
}

.secondary-button:active,
.example-list button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-press);
}

.mode-tab {
  min-height: 44px;
  padding: var(--space-2);
  transition: border-color var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.mode-tab:hover {
  border-color: rgba(190, 73, 100, 0.4);
  background: #fff7f8;
}

.mode-tab.active {
  border-color: rgba(190, 73, 100, 0.7);
  background: var(--blush);
  color: var(--rose-dark);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.input-grid,
.advanced-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.search-query-field {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(93, 127, 114, 0.22);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.search-query-field input {
  min-height: 48px;
}

.search-query-field span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.advanced-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-organic);
  /* A slightly cooler, recessed stock tipped into the panel. */
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(244, 250, 247, 0.7), rgba(255, 253, 251, 0) 60%),
    rgba(250, 246, 241, 0.85);
  box-shadow: inset 0 1px 2px rgba(99, 67, 52, 0.06);
}

.advanced-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}

.advanced-details summary::-webkit-details-marker {
  display: none;
}

.advanced-details summary span:last-child {
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
}

.advanced-details summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--rose-dark);
  /* Raised paper chip — the one control that pops out of the recessed panel. */
  background: linear-gradient(180deg, var(--paper-lit), var(--panel));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(99, 67, 52, 0.14);
  font-weight: 700;
  transition: transform var(--duration-base) var(--ease-physical),
    box-shadow var(--duration-base) var(--ease-out);
}

.advanced-details summary:hover::after {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 3px 7px rgba(99, 67, 52, 0.16);
}

.advanced-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.advanced-details[open] summary::after {
  content: "-";
}

.advanced-details > :not(summary) {
  margin-left: 12px;
  margin-right: 12px;
}

.advanced-details > :last-child {
  margin-bottom: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  /* Debossed ink well: a faint shaded lip at the top + recessed inner shadow,
     so the field reads as carved into the paper rather than floated on it. */
  background: linear-gradient(180deg, #f6efe7, var(--panel) 58%);
  color: var(--ink);
  outline: none;
  box-shadow:
    inset 0 1px 2px rgba(99, 67, 52, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out);
}

input::placeholder {
  color: var(--soft);
  opacity: 0.7;
}

input:hover,
select:hover {
  border-color: rgba(93, 127, 114, 0.4);
}

input:focus-visible,
select:focus-visible {
  border-color: var(--sage);
  /* Settle the well flat and add the sage focus ring — the field "fills with ink". */
  background: var(--panel);
  box-shadow:
    inset 0 1px 2px rgba(99, 67, 52, 0.06),
    0 0 0 3px rgba(93, 127, 114, 0.18);
  outline: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-3);
  z-index: 1000;
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-3);
}

.advanced-row {
  margin-top: 12px;
}

.context-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.context-grid > label {
  flex: 1 1 220px;
  min-width: 0;
}

.context-grid > label[hidden] {
  display: none;
}

.fandom-check {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(93, 127, 114, 0.28);
  border-radius: var(--radius);
  padding: 12px;
  background: #f4faf7;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.public-check-bar {
  margin: var(--space-4) 0 0;
  border-color: rgba(190, 73, 100, 0.24);
  background: linear-gradient(135deg, rgba(255, 247, 246, 0.94), rgba(244, 250, 247, 0.9));
  font-size: var(--text-base);
}

.use-case-coach {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-3);
  border: 1px solid rgba(190, 73, 100, 0.18);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: linear-gradient(135deg, rgba(255, 240, 242, 0.72), rgba(244, 250, 247, 0.82));
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--line-base);
}

.use-case-coach strong {
  color: var(--rose-dark);
}

.add-name-row[hidden],
.extra-names[hidden] {
  display: none;
}

.fandom-check[hidden] {
  display: none;
}

.fandom-check strong {
  color: var(--sage-dark);
}

.check-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.check-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  background: white;
  color: var(--sage-dark);
  font-size: var(--text-xs);
  font-weight: 800;
  text-decoration: none;
}

.check-links a:hover {
  border-color: var(--sage-dark);
  background: white;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.variant-list-label {
  color: var(--soft);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  background: white;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.variant-chip::after {
  content: "Copy";
  color: var(--soft);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}

.variant-chip:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.variant-chip:hover::after {
  opacity: 1;
  color: var(--sage-dark);
}

.variant-chip.is-copied {
  background: var(--sage-dark);
  color: white;
  border-color: var(--sage-dark);
}

.variant-chip.is-copied::after {
  content: "✓";
  color: white;
  opacity: 1;
}

.extra-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.extra-name-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.remove-name-button {
  min-width: 48px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.add-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.add-name-button {
  min-height: 36px;
  color: var(--rose-dark);
  font-weight: 800;
}

.actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 16px;
}

.primary-button,
.copy-button {
  border: 0;
  border-radius: var(--radius);
  color: white;
  font-weight: 800;
}

.primary-button {
  min-height: 52px;
  padding: 0 18px;
  /* Inked surface with a faint top sheen, like saturated dye on cardstock. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
    var(--rose);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 2px 5px rgba(146, 50, 75, 0.28),
    0 10px 22px rgba(146, 50, 75, 0.22);
  transition: background-color var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-physical),
    box-shadow var(--duration-base) var(--ease-out);
}

.primary-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 42%),
    var(--rose-dark);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 4px 9px rgba(146, 50, 75, 0.3),
    0 18px 34px rgba(146, 50, 75, 0.28);
}

.primary-button:active {
  transform: translateY(0);
  /* Pressed into the paper. */
  background: var(--rose-dark);
  box-shadow:
    inset 0 2px 6px rgba(82, 24, 40, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.secondary-button {
  min-height: 52px;
  padding: 0 16px;
}

.status-line {
  position: relative;
  margin-top: 12px;
  border: 1px solid #eadbd0;
  border-left: 3px solid var(--soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 30px;
  background: #fff8ee;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  transition: border-color var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out);
}

/* Small status lamp — gives the readout a sense of a live machine. */
.status-line::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--soft);
}

/* Live check in progress — sage, with a breathing lamp. */
.status-line[data-tone="live"] {
  border-left-color: var(--sage-dark);
  background: #f4faf7;
  color: var(--sage-dark);
}

.status-line[data-tone="live"]::before {
  background: var(--sage-dark);
  animation: pulse-dot 1.2s ease-out infinite;
}

/* Fallback / AI-unavailable — honey amber, so degraded mode is honest but calm. */
.status-line[data-tone="warn"] {
  border-left-color: var(--honey);
  background: #fdf4e6;
  color: #7c5a2d;
}

.status-line[data-tone="warn"]::before {
  background: var(--honey);
}

.results-shell {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  scroll-margin-top: 120px;
}

.results-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.results-header h2,
.section h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}

.results-header p,
.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.text-button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--muted);
  white-space: nowrap;
}

.top-pick,
.results-grid {
  display: grid;
  gap: 12px;
}

.top-pick {
  margin-bottom: 12px;
}

.refine-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  border: 1px solid rgba(93, 127, 114, 0.22);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: #f7fbf8;
}

.refine-bar span {
  color: var(--sage-dark);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.refine-bar button {
  border: 1px solid rgba(93, 127, 114, 0.28);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
  background: white;
  color: var(--sage-dark);
  font-size: var(--text-xs);
  font-weight: 800;
  transition: background-color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}

.refine-bar button:hover {
  border-color: var(--sage-dark);
  background: #edf4f1;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-organic);
  padding: var(--space-5);
  background:
    radial-gradient(130% 90% at 0% 0%, var(--paper-lit), rgba(255, 250, 243, 0) 60%),
    #fffdfb;
  box-shadow: var(--shadow-paper);
  animation: result-in var(--duration-slow) var(--ease-physical) both;
  transition: box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-physical);
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: var(--grain-card);
  mix-blend-mode: multiply;
}

.result-card > * {
  position: relative;
  z-index: 1;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(190, 73, 100, 0.28);
}

.result-card.is-highlighted {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(190, 73, 100, 0.2), var(--shadow-lg);
  animation: share-highlight 2.2s var(--ease-out);
}

@keyframes share-highlight {
  0% {
    box-shadow: 0 0 0 8px rgba(190, 73, 100, 0.45), var(--shadow-lg);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(190, 73, 100, 0.2), var(--shadow-sm);
  }
}

.loading-card {
  border: 1px solid rgba(93, 127, 114, 0.32);
  border-radius: var(--radius);
  padding: 18px;
  background: #f5fbf8;
}

.loading-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.stream-meter {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(93, 127, 114, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.stream-meter-top,
.stream-meter-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
}

.stream-meter-bottom {
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stream-track {
  position: relative;
  overflow: hidden;
  height: 9px;
  border-radius: var(--radius-pill);
  background: #dce9e4;
}

.stream-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-100%);
  animation: stream-shine 1.45s linear infinite;
}

.stream-track span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage-dark), var(--rose));
  transition: width 420ms ease;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(190, 73, 100, 0.5);
  animation: pulse-dot 1.2s ease-out infinite;
}

.stream-meter[data-state="complete"] .pulse-dot {
  background: var(--sage-dark);
  animation: none;
}

.stream-meter[data-state="complete"] .stream-track::after {
  animation: none;
  opacity: 0;
}

.loading-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.loading-steps span {
  border: 1px solid rgba(93, 127, 114, 0.24);
  border-radius: var(--radius-pill);
  padding: 8px 10px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.loading-steps .active {
  background: var(--sage-dark);
  color: white;
}

.featured-result {
  border-color: rgba(190, 73, 100, 0.45);
  background: #fff7f6;
}

.result-label {
  margin: 0 0 var(--space-2);
  color: var(--rose-dark);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.result-name {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 820;
  letter-spacing: -0.02em;
}

/* Top pick = the moment the tool delivers its verdict. The name gets letterpress
   scale and a hairline ink underline so it reads as a stamped headline. */
.featured-result .result-name {
  margin-top: var(--space-1);
  font-size: clamp(36px, 1.6rem + 3.2vw, 54px);
  font-weight: 760;
  line-height: 1.02;
}

/* A short hand-inked rule under the headline name — stamped, not a full border. */
.featured-result .result-name::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: var(--space-3);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--rose), rgba(190, 73, 100, 0.15));
}

.featured-result .result-label {
  letter-spacing: 0.08em;
}

.result-type {
  margin: var(--space-1) 0 0;
  color: var(--soft);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.result-verdict {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: var(--space-3) 0 0;
  border: 1px solid rgba(93, 127, 114, 0.22);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  background: #f7fbf8;
  color: var(--sage-dark);
  font-size: var(--text-base);
  font-weight: 800;
  line-height: var(--line-snug);
}

.result-meaning {
  margin: var(--space-2) 0 0;
  color: var(--ink);
  line-height: var(--line-base);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.decision-tile {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(226, 217, 212, 0.84);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: rgba(252, 248, 244, 0.74);
}

.decision-tile span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-tile strong {
  color: var(--ink);
  font-size: var(--text-xs);
  line-height: var(--line-snug);
}

.result-meta,
.score-line,
.result-risk {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--line-base);
}

.result-risk {
  border-left: 3px solid rgba(169, 110, 29, 0.45);
  padding-left: var(--space-2);
  color: #7c5a2d;
}

.use-pack {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.use-pack-label {
  display: inline-flex;
  align-items: center;
  color: var(--soft);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.use-pack-chip {
  display: grid;
  gap: 2px;
  min-width: 136px;
  max-width: 100%;
  border: 1px solid rgba(93, 127, 114, 0.24);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.use-pack-chip span {
  color: var(--sage-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.use-pack-chip strong {
  overflow-wrap: anywhere;
  font-size: var(--text-base);
  line-height: var(--line-snug);
}

.use-pack-chip:hover {
  border-color: var(--sage-dark);
  background: #f7fbf8;
}

.use-pack-chip.is-copied {
  border-color: var(--sage);
  background: #edf4f1;
  transform: scale(1.02);
}

.result-check-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.result-check-links span {
  color: var(--soft);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.result-check-links a {
  border: 1px solid rgba(190, 73, 100, 0.22);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-2);
  background: white;
  color: var(--rose-dark);
  font-size: var(--text-xs);
  font-weight: 800;
  text-decoration: none;
}

.result-check-links a:hover {
  border-color: var(--rose);
  background: var(--blush);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tag-row span {
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-2);
  background: #edf4f1;
  color: var(--sage-dark);
  font-size: var(--text-xs);
  font-weight: 750;
}

.result-actions {
  display: grid;
  gap: var(--space-2);
}

.copy-button {
  min-width: 96px;
  min-height: 40px;
  padding: 0 var(--space-3);
  background: var(--sage-dark);
  transition: background-color var(--duration-base) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.copy-button.is-copied {
  background: var(--sage);
  transform: scale(1.04);
}

.share-button {
  min-width: 96px;
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid rgba(49, 95, 84, 0.4);
  border-radius: var(--radius);
  background: white;
  color: var(--sage-dark);
  font-weight: 800;
  transition: background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.share-button:hover {
  background: #edf4f1;
  border-color: var(--sage-dark);
}

.share-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.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;
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  max-width: calc(100vw - 32px);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 14px 32px rgba(36, 32, 31, 0.32);
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-button.is-ready-pulse {
  animation: copy-ready-pulse 1.2s ease-out 3;
}

@keyframes copy-ready-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(190, 73, 100, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(190, 73, 100, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(190, 73, 100, 0);
  }
}

.loading-card.is-top-pick-ready {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(245, 251, 248, 0.55);
  border-color: rgba(93, 127, 114, 0.18);
}

.loading-card.is-top-pick-ready .result-label,
.loading-card.is-top-pick-ready .loading-steps,
.loading-card.is-top-pick-ready > .result-meta {
  display: none;
}

.loading-card.is-top-pick-ready .loading-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--soft);
}

.loading-card.is-top-pick-ready .stream-meter {
  margin-top: 8px;
  padding: 10px;
}

@keyframes stream-shine {
  to {
    transform: translateX(100%);
  }
}

@keyframes pulse-dot {
  70% {
    box-shadow: 0 0 0 9px rgba(190, 73, 100, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(190, 73, 100, 0);
  }
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(var(--space-2));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  max-width: var(--layout-workbench);
  margin: 0 auto;
  padding: 56px 24px;
}

.proof-section {
  border-top: 1px solid var(--line);
}

.value-grid,
.use-case-grid {
  display: grid;
  gap: 14px;
}

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

.use-case-grid {
  grid-template-columns: repeat(4, 1fr);
}

.value-grid article,
.use-case-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-organic);
  padding: var(--space-5);
  background:
    radial-gradient(140% 100% at 0% 0%, var(--paper-lit), rgba(255, 250, 243, 0) 62%),
    var(--panel);
  box-shadow: var(--shadow-paper);
  transition: transform var(--duration-base) var(--ease-physical),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

/* Hand-cut variety: mirror the organic corner on alternating cards, and nudge
   every other card down so the row breathes instead of marching in lockstep. */
.value-grid article:nth-child(even),
.use-case-grid article:nth-child(even) {
  border-radius: 13px 16px 14px 18px;
  transform: translateY(10px);
}

.value-grid article:hover,
.use-case-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(190, 73, 100, 0.24);
}

.value-grid article:nth-child(even):hover,
.use-case-grid article:nth-child(even):hover {
  transform: translateY(7px);
}

.value-grid h3,
.use-case-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.value-grid p,
.use-case-grid p,
.content-copy p,
.faq p,
.footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.use-case-grid a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--rose-dark);
  font-weight: 800;
  text-decoration: none;
}

.tool-links {
  padding-top: 34px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.example-list button {
  min-height: 44px;
  padding: 0 14px;
}

.content-band {
  position: relative;
  max-width: none;
  /* Sage paper insert — a different stock tipped into the magazine. */
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(245, 251, 248, 0.9), rgba(238, 244, 239, 0) 55%),
    linear-gradient(168deg, #eef5f0, #e7efe9);
}

.content-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.content-copy {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
}

.content-copy p + p {
  margin-top: 14px;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 54px 24px 70px;
}

.legal-page h1 {
  font-size: 48px;
}

.legal-page h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-meta {
  margin-top: 14px;
  color: var(--soft);
  font-weight: 750;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-organic);
  padding: 16px 18px;
  background:
    radial-gradient(140% 120% at 0% 0%, var(--paper-lit), rgba(255, 250, 243, 0) 70%),
    var(--panel);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.faq details:nth-child(even) {
  border-radius: 13px 16px 14px 18px;
}

.faq details[open] {
  box-shadow: var(--shadow-paper);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin-top: 10px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 750;
}

@media (min-width: 900px) {
  .hero {
    gap: var(--space-5);
    padding-top: var(--space-5);
    padding-bottom: var(--space-6);
  }

  .hero-copy h1 {
    font-size: 44px;
    line-height: 1.1;
  }

  .hero-text {
    margin-top: var(--space-3);
    font-size: var(--text-base);
  }

  .trust-row {
    display: none;
  }

  .panel-intro {
    margin-bottom: var(--space-3);
  }

  .panel-intro .eyebrow {
    display: none;
  }

  .panel-intro h2 {
    font-size: var(--text-xl);
  }

  .panel-intro p:not(.eyebrow) {
    font-size: 13px;
    margin-top: 4px;
  }
}

@media (max-width: 1020px) {
  .value-grid,
  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .hero {
    gap: var(--space-3);
    padding-top: var(--space-4);
    padding-bottom: var(--space-5);
  }

  .hero-copy {
    max-width: 48ch;
  }

  .hero-copy .eyebrow {
    margin-bottom: var(--space-2);
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  .hero-text {
    margin-top: var(--space-2);
    font-size: var(--text-md);
    line-height: 1.48;
  }

  .trust-row {
    display: none;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: var(--space-4);
    padding-bottom: 2px;
    font-size: var(--text-md);
  }

  .hero,
  .section {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .generator-panel {
    padding: var(--space-3);
  }

  .panel-intro {
    margin-bottom: var(--space-3);
  }

  .panel-intro .eyebrow {
    display: none;
  }

  .panel-intro h2 {
    font-size: 28px;
    line-height: 1.06;
  }

  .panel-intro p:not(.eyebrow) {
    margin-top: var(--space-2);
    font-size: var(--text-base);
    line-height: 1.45;
  }

  .mode-tabs {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
  }

  .mode-tab {
    min-height: 40px;
    padding: var(--space-2) var(--space-1);
  }

  .mode-tab:last-child {
    grid-column: 1 / -1;
  }

  input,
  select {
    min-height: 46px;
  }

  label {
    gap: var(--space-1);
  }

  .advanced-details {
    margin-top: var(--space-3);
  }

  .advanced-details summary {
    min-height: 44px;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-top: var(--space-3);
  }

  .primary-button {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .secondary-button {
    min-height: 44px;
  }

  .status-line {
    margin-top: var(--space-2);
  }

  .results-shell {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    scroll-margin-top: 112px;
  }

  .input-grid,
  .extra-names,
  .advanced-row,
  .context-grid,
  .value-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  /* Single column on phones — drop the organic stagger so cards stack flush. */
  .value-grid article:nth-child(even),
  .use-case-grid article:nth-child(even) {
    transform: none;
  }

  .result-card {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

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

  .use-pack-chip {
    flex: 1 1 100%;
  }

  .loading-steps {
    grid-template-columns: 1fr;
  }

  .stream-meter-top,
  .stream-meter-bottom {
    flex-wrap: wrap;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .add-name-row {
    align-items: stretch;
    flex-direction: column;
  }

  .results-header,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-page h1 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-card,
  .pulse-dot,
  .stream-track::after,
  .status-line[data-tone="live"]::before {
    animation: none;
  }

  .stream-track span,
  .copy-button,
  .copy-toast,
  .variant-chip {
    transition: none;
  }

  .use-pack-chip {
    transition: none;
  }

  .variant-chip::after {
    transition: none;
  }

  .copy-button.is-copied {
    transform: none;
  }

  .use-pack-chip.is-copied {
    transform: none;
  }

  .copy-button.is-ready-pulse {
    animation: none;
  }

  .result-card,
  .mode-tab,
  .primary-button,
  .share-button {
    transition: none;
  }

  .result-card.is-highlighted {
    animation: none;
  }

  .primary-button:hover {
    transform: none;
  }
}

/* === Static sample card + reference tables (SEO/AI surfaces) === */
.sample-result-card {
  grid-template-columns: 1fr;
  background: #fff7f6;
  border-color: rgba(190, 73, 100, 0.45);
}

.sample-result-card header {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
}

.sample-disclaimer {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ship-ref-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdfb;
}

.ship-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ship-ref-table th,
.ship-ref-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ship-ref-table thead th {
  background: #f5fbf8;
  font-weight: 800;
  color: var(--sage-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ship-ref-table tbody tr:last-child td {
  border-bottom: none;
}

.ship-ref-table .ship-name-cell {
  font-weight: 900;
  color: var(--ink);
}

.ship-ref-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.alt-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.alt-keyword-list li {
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  background: #edf4f1;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
}
