/* Meplar Name Specimen Almanac -- Curiosity Cabinet design system */

:root {
  --paper: #FBF5EA;
  --paper-2: #F3EADA;
  --card: #FFFDF8;
  --plate: #F6F7F4;
  --ink: #1C1A17;
  --ink-2: #48423A;
  --muted: #6E665A;
  --line: rgb(28 26 23 / 0.12);
  --line-2: rgb(28 26 23 / 0.22);
  --on-night: #FBF5EA;
  --on-night-2: rgb(251 245 234 / 0.76);

  --tomato: #FF5A36;
  --butter: #FFD84D;
  --mint: #9BE3B6;
  --sky: #9CCBFF;
  --lilac: #C9B8FF;
  --night: #1C1A17;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Fraunces", ui-serif, Georgia, serif;
  --f-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-card: 22px;
  --r-plate: 14px;
  --r-pill: 999px;
  --gutter: clamp(18px, 3vw, 32px);
  --edge: inset 0 0 0 1px rgb(28 26 23 / 0.08);
  --lift: 0 1px 1px rgb(28 26 23 / 0.06), 0 2px 6px -2px rgb(28 26 23 / 0.08), 0 18px 32px -18px rgb(28 26 23 / 0.26);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-ui: 180ms;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .09 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-stock="tomato"] { --stock: var(--tomato); --swash: var(--tomato); }
[data-stock="butter"] { --stock: var(--butter); --swash: var(--butter); }
[data-stock="mint"]   { --stock: var(--mint);   --swash: var(--mint); }
[data-stock="sky"]    { --stock: var(--sky);    --swash: var(--sky); }
[data-stock="lilac"]  { --stock: var(--lilac);  --swash: var(--lilac); }
[data-stock="night"]  { --stock: var(--night);  --swash: var(--butter); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--f-display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--butter); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 245 234 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1.6rem; font-weight: 780; font-stretch: 90%;
  letter-spacing: -0.045em; line-height: 1; text-decoration: none;
}
.brand-dot { color: var(--tomato); }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  white-space: nowrap; display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px;
  border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}
.nav-list a[aria-current="page"] { background: rgb(28 26 23 / 0.08); color: var(--ink); font-weight: 600; }
.nav-toggle { display: none; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }
@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover { background: rgb(28 26 23 / 0.06); color: var(--ink); }
}
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 42px; padding: 0 15px; border: 0; border-radius: var(--r-pill);
    background: transparent; box-shadow: inset 0 0 0 1px var(--line-2);
    font-size: 0.9375rem; font-weight: 600;
  }
  .nav-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 18px; background: var(--paper);
    box-shadow: 0 1px 0 var(--line), 0 24px 32px -24px rgb(28 26 23 / 0.3);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui);
  }
  .nav.is-open .nav-list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list a { width: 100%; min-height: 50px; padding: 0; border-radius: 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); box-shadow: 0 1px 0 var(--line); background: transparent !important; }
}

/* Buttons & Chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  font: 600 0.9375rem/1 var(--f-display); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-ui) ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #3A352E; }
  .btn-line:hover { background: rgb(28 26 23 / 0.06); }
}

.chip {
  display: inline-flex; align-items: center; padding: 5px 11px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.28);
  font: 600 0.78rem/1 var(--f-display); white-space: nowrap;
}
[data-stock="night"] .chip { box-shadow: inset 0 0 0 1px rgb(251 245 234 / 0.36); color: var(--on-night); }

/* Toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--paper); border-radius: var(--r-pill);
  padding: 10px 18px; font: 400 0.78rem/1.3 var(--f-mono);
  box-shadow: 0 12px 28px -8px rgb(28 26 23 / 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.22s var(--ease-out); z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Main Page */
.almanac-main { padding-top: 28px; padding-bottom: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }

/* Hero + Search Console */
.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 720; font-stretch: 86%; line-height: 0.94; letter-spacing: -0.038em;
}
.hero-sub {
  margin-top: 10px;
  font: italic 400 1.1rem/1.35 var(--f-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink-2);
  max-width: 44ch;
}

.search-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px auto;
  gap: 10px;
  align-items: stretch;
}
.input-wrap { position: relative; }
.name-input, .year-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--ink), 0 6px 18px -12px rgb(28 26 23 / 0.25);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}
.name-input::placeholder, .year-input::placeholder { color: var(--muted); font-weight: 400; }
.year-input {
  padding: 0 14px;
  font-family: var(--f-mono);
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.ac-list {
  position: absolute;
  left: 0; right: 0; top: 58px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--edge), 0 18px 36px -12px rgb(28 26 23 / 0.28);
  padding: 6px;
  z-index: 40;
  max-height: 300px;
  overflow-y: auto;
}
.ac-item {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 0.95rem;
}
.ac-item:hover, .ac-item.active { background: var(--paper-2); }
.ac-item strong { font-weight: 640; }
.ac-meta { font: 400 0.72rem/1 var(--f-mono); color: var(--muted); }

.quick-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-label {
  font: 400 0.7rem/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 4px;
}
.quick-btn {
  border: 0;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  min-height: 32px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}
.quick-btn:hover { background: var(--paper-2); color: var(--ink); }
.quick-btn.is-random { background: var(--paper-2); color: var(--ink); font-weight: 600; }

.search-error {
  font: 400 0.82rem/1.4 var(--f-mono);
  color: #b42c10;
}

/* ---------- The Printed Specimen Plate ---------- */
.plate-card {
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--edge), var(--lift);
  overflow: hidden;
  animation: plateIn 260ms var(--ease-out);
}
@keyframes plateIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.plate-head {
  padding: 16px 26px;
  background: var(--grain), var(--stock);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plate-card[data-stock="night"] .plate-head { color: var(--on-night); }
.plate-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.plate-head .mono {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.plate-head-note {
  font: italic 400 0.96rem/1.25 var(--f-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.plate-body {
  padding: 28px 28px 24px;
}

/* Top Answer Band */
.answer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.name-heading-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.specimen-name {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.6rem);
  font-weight: 740;
  font-stretch: 88%;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.sex-pill {
  font: 700 0.72rem/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.age-headline {
  font-size: clamp(2.8rem, 2.2rem + 2.5vw, 4.4rem);
  font-weight: 760;
  font-stretch: 86%;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 10px;
}
.age-headline mark {
  background: linear-gradient(#0000 54%, var(--swash) 54% 92%, #0000 92%);
  color: inherit;
  padding: 0 6px;
}
.age-caption {
  font: italic 400 1.2rem/1.35 var(--f-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink-2);
  max-width: 46ch;
}

/* Personal Birth Year Callout */
.personal-callout {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--paper-2);
  border-left: 4px solid var(--tomato);
  font-size: 0.94rem;
  color: var(--ink);
}
.personal-callout strong { font-weight: 700; }

/* 4-column Stats Ledger */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stat-box {
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat-box span {
  display: block;
  font: 400 0.68rem/1.3 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 5px;
}
.stat-box strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat-box small {
  display: block;
  margin-top: 3px;
  font: 400 0.72rem/1.3 var(--f-mono);
  color: var(--muted);
}

/* Archival Chart Plate */
.chart-section {
  margin-top: 24px;
}
.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font: 400 0.74rem/1 var(--f-mono);
  color: var(--ink-2);
}
.leg-item { display: inline-flex; align-items: center; gap: 6px; }
.leg-line { width: 16px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.leg-fill { width: 12px; height: 12px; border-radius: 3px; background: var(--swash); opacity: 0.55; box-shadow: inset 0 0 0 1px rgb(28 26 23 / 0.2); }
.leg-cmp  { width: 16px; height: 0; border-top: 2.5px dashed var(--tomato); }
.leg-f    { width: 14px; height: 3px; background: var(--tomato); border-radius: 2px; }
.leg-m    { width: 14px; height: 3px; background: #2D6CDF; border-radius: 2px; }

.chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-toggle {
  display: inline-flex;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  border-radius: var(--r-pill);
  padding: 2px;
}
.mini-toggle button {
  border: 0; background: transparent; color: var(--ink-2);
  padding: 5px 11px; border-radius: var(--r-pill);
  font: 600 0.76rem/1 var(--f-display); min-height: 28px;
}
.mini-toggle button.active { background: var(--ink); color: var(--paper); }

.compare-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.compare-input {
  height: 34px;
  width: 170px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.84rem;
}

.chart-plate {
  position: relative;
  border-radius: var(--r-plate);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px 16px 12px;
}
.chart-hover-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 6px;
  font: 400 0.74rem/1.3 var(--f-mono);
  color: var(--ink-2);
}
.chart-hover-bar strong { color: var(--ink); }

#curve-svg {
  width: 100%;
  height: auto;
  display: block;
  touch-action: pan-y;
  cursor: crosshair;
}

/* Twins + Era Equivalents Row */
.insights-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.sub-kicker {
  font: 700 0.72rem/1.3 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.twins-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.twin-group-label {
  font: italic 400 0.95rem/1.3 var(--f-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.twin-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.twin-btn {
  width: 100%;
  border: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: background-color var(--dur-ui) ease, transform 120ms var(--ease-out);
}
.twin-btn:hover { background: var(--paper-2); transform: translateX(2px); }
.twin-btn strong { font-weight: 650; font-size: 0.95rem; }
.twin-sim { font: 700 0.72rem/1 var(--f-mono); color: var(--muted); }

.era-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.era-tile {
  border: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  transition: background-color var(--dur-ui) ease;
}
.era-tile:hover { background: var(--paper-2); }
.era-tile span {
  display: block;
  font: 400 0.68rem/1 var(--f-mono);
  color: var(--muted);
  margin-bottom: 4px;
}
.era-tile strong {
  font: italic 400 1.15rem/1.15 var(--f-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink);
}

/* Perforated Plate Receipt Stub */
.plate-stub {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--paper-2);
}
.plate-stub::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; top: -2px; height: 4px;
  background: radial-gradient(circle, rgb(28 26 23 / 0.32) 1.6px, #0000 2px) 0 0 / 11px 4px repeat-x;
}
.stub-sources {
  max-width: 58ch;
  font: 400 0.72rem/1.5 var(--f-mono);
  color: var(--ink-2);
}
.stub-sources a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* ---------- Curiosity Drawer Galleries ---------- */
.drawer-section {
  margin-top: 48px;
}
.drawer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.drawer-head h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 700; font-stretch: 88%; line-height: 1; letter-spacing: -0.032em;
}
.drawer-head p {
  font: italic 400 1.05rem/1.35 var(--f-serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink-2);
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.drawer-card {
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--edge), var(--lift);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.drawer-card-head {
  padding: 16px 20px;
  background: var(--grain), var(--stock);
  color: var(--ink);
}
.drawer-card[data-stock="night"] .drawer-card-head { color: var(--on-night); }
.drawer-card-head h3 {
  font-size: 1.25rem; font-weight: 680; font-stretch: 90%; letter-spacing: -0.02em;
}
.drawer-card-head p {
  margin-top: 4px;
  font-size: 0.88rem;
  opacity: 0.85;
}
.drawer-pills {
  padding: 16px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.drawer-pill {
  border: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2);
  border-radius: var(--r-pill);
  padding: 7px 13px;
  min-height: 36px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color var(--dur-ui) ease, transform 120ms var(--ease-out);
}
.drawer-pill:hover { background: var(--paper-2); transform: translateY(-1px); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .search-hero, .answer-top, .insights-row, .drawer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .search-row { grid-template-columns: 1fr 104px; }
  .search-row .btn-ink { grid-column: 1 / -1; width: 100%; }
  .plate-body { padding: 20px 18px; }
  .plate-head, .plate-stub { padding-left: 18px; padding-right: 18px; }
  .twins-cols { grid-template-columns: 1fr; }
  .stub-actions { width: 100%; }
  .stub-actions .btn { flex: 1; }
}
