/* Sue Vee: Precision Kitchen Science
   Dark, lab-meets-kitchen, scientific rigor with warm accents.
   No em dashes anywhere (U+2014 is banned). */

:root {
  --bg: #1a1a2e;
  --bg-2: #16213e;
  --surface: #0f3460;
  --accent: #e94560;
  --accent-2: #f5a623;
  --verified: #4ecdc4;
  --text: #f0f0f0;
  --text-muted: #a0a0b0;
  --border: rgba(240, 240, 240, 0.08);
  --border-strong: rgba(240, 240, 240, 0.16);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px var(--accent), 0 0 24px rgba(233, 69, 96, 0.25);
  --glow-amber: 0 0 0 1px var(--accent-2), 0 0 24px rgba(245, 166, 35, 0.22);
  --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }

img { max-width: 100%; display: block; }

/* Layout helpers */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: rgba(22, 33, 62, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand:hover { color: var(--accent); }
.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.6);
}

/* Sue mascot: header thumbnail */
.brand-sue {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 2px;
  filter: drop-shadow(0 0 8px rgba(233, 69, 96, 0.25));
}

/* Sue mascot: hero placement on landing */
.hero-sue {
  display: block;
  width: 120px;
  height: 160px;
  margin: 0 auto 24px;
  opacity: 0.95;
  filter: drop-shadow(0 8px 24px rgba(233, 69, 96, 0.25));
}

/* Sue mascot: predict-page head */
.predict-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.predict-head .predict-sue {
  width: 64px;
  height: 86px;
  flex: 0 0 auto;
}
.predict-head h1 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Sue mascot: empty state */
.empty-sue {
  display: block;
  width: 96px;
  height: 128px;
  margin: 0 auto 16px;
  opacity: 0.85;
}

/* Sue mascot: 404 page */
.section-404 {
  padding: 80px 0 96px;
  text-align: center;
}
.section-404 .lost-sue {
  display: block;
  width: 220px;
  height: 293px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 28px rgba(233, 69, 96, 0.2));
}
.section-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.text-center { text-align: center; }

/* Parent brand mark in footer */
.parent-brand {
  color: var(--accent-2);
  font-weight: 600;
}

.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.active { color: var(--text); }
.site-nav .cta {
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}
.site-nav .cta:hover { background: #f25571; color: white; }

/* Hero with dot-grid */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(240, 240, 240, 0.07) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero h1 .pulse {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: 8px;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.6); }
  50% { opacity: 0.55; box-shadow: 0 0 0 10px rgba(233, 69, 96, 0); }
}
.hero p.subhead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  text-align: center;
  background: transparent;
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #f25571;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(233, 69, 96, 0.05);
}
.btn-amber {
  background: var(--accent-2);
  color: #1a1a2e;
  border-color: var(--accent-2);
}
.btn-amber:hover {
  background: #f7b545;
  color: #1a1a2e;
  transform: translateY(-1px);
}

/* Sections */
section.section {
  padding: 72px 0;
}
section.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
section.section p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.6;
}
.section-head { margin-bottom: 32px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
  display: inline-block;
}

/* Cards */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
}
.card.interactive:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(233, 69, 96, 0.3);
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* Equipment grid (recommended kit on landing) */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.equipment-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}
.equipment-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}
.equipment-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0;
  font-weight: 700;
}
.equipment-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.equipment-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.link-affiliate {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  align-self: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.link-affiliate:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}
.equipment-disclosure {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.cat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 120px;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 24px rgba(233, 69, 96, 0.12);
  color: var(--text);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card .cat-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  text-transform: uppercase;
}
.cat-card .cat-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cat-card .cat-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

/* What is Sue Vee */
.about-block {
  max-width: 720px;
}
.about-block p { font-size: 17px; color: var(--text-muted); margin: 0 0 18px; }
.about-block p.last { color: var(--text); font-weight: 500; }

/* Book promo banner */
.book-promo {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.book-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 166, 35, 0.05) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
}
.book-promo .cover {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  aspect-ratio: 1600 / 2560;
  background: #0a0a14;
}
.book-promo .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-promo .info {
  position: relative;
}
.book-promo h3 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.book-promo .meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.book-promo p.book-desc {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 16px;
}
.cta-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
  transition: all var(--transition);
}
.cta-book:hover {
  background: #f25571;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

.book-promo.compact {
  grid-template-columns: 120px 1fr;
  padding: 28px;
  gap: 24px;
}
.book-promo.compact h3 { font-size: 24px; margin-bottom: 8px; }
.book-promo.compact .meta { font-size: 12px; margin-bottom: 10px; }
.book-promo.compact p.book-desc { font-size: 14px; margin-bottom: 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.site-footer .brand { font-size: 18px; margin-bottom: 12px; display: inline-flex; }
.site-footer .credit {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 8px;
}
.site-footer .ftc {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 8px;
  max-width: 480px;
  line-height: 1.5;
}
.site-footer .copy { color: var(--text-muted); font-size: 12px; font-family: var(--font-mono); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-body);
}
.footer-links a:hover { color: var(--accent); }

/* Search page */
.search-shell { padding: 48px 0 24px; }
.search-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.search-shell p.lede { font-size: 17px; color: var(--text-muted); margin: 0 0 24px; max-width: 640px; }

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: rgba(26, 26, 46, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.filter-bar .wrap { display: flex; flex-direction: column; gap: 12px; }

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  min-height: 48px;
  transition: all var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}
.search-input::placeholder { color: var(--text-muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  background: var(--bg-2);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.result-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}
.result {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(233, 69, 96, 0.25);
}
.result-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.result-readout {
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(15, 52, 96, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 166, 35, 0.16);
}
.readout-temp {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.readout-time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  opacity: 0.85;
}
.readout-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.result-meta .doneness {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
}
.result-meta .texture {
  font-size: 13px;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.badge.verified {
  color: var(--verified);
  border-color: rgba(78, 205, 196, 0.4);
  background: rgba(78, 205, 196, 0.08);
}
.badge.verified::before { background: var(--verified); box-shadow: 0 0 6px var(--verified); }
.badge.extrapolated {
  color: var(--accent-2);
  border-color: rgba(245, 166, 35, 0.4);
  background: rgba(245, 166, 35, 0.08);
}
.badge.extrapolated::before { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); }
.badge.source {
  color: var(--text-muted);
  border-color: var(--border-strong);
  background: var(--bg);
  text-transform: none;
  letter-spacing: 0.04em;
}
.badge.source::before { display: none; }

.result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.result-details {
  display: none;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-strong);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.result.expanded .result-details { display: block; }
.result-details ul { margin: 8px 0 0; padding-left: 18px; }
.result-details li { margin-bottom: 6px; }
.result-details a { color: var(--accent-2); word-break: break-all; }
.result-details .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin: 12px 0 4px;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 12px;
}
.empty-state p { color: var(--text-muted); margin: 0 0 20px; }

/* Predictor page */
.predict-shell { padding: 48px 0 24px; }
.predict-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.predict-shell p.lede { font-size: 17px; color: var(--text-muted); margin: 0 0 32px; max-width: 640px; }

.predict-form {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  min-height: 48px;
  transition: all var(--transition);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23a0a0b0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.predict-form .btn-primary { align-self: flex-start; padding: 16px 32px; font-size: 16px; }

/* Predictor results */
.predict-result {
  display: none;
  margin-top: 32px;
}
.predict-result.show { display: block; }

.result-readout-large {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.result-readout-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 166, 35, 0.06) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
}
.readout-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
}
.readout-ingredient {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  position: relative;
  color: var(--text);
}
.readout-instrument {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 12px;
  position: relative;
  text-shadow: 0 0 28px rgba(245, 166, 35, 0.3);
}
.readout-instrument-time {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  position: relative;
}
.readout-badges { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

.disclaimer-card {
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.disclaimer-card p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; }
.disclaimer-card a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.based-on {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.based-on h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.based-on dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0 0 16px;
  font-size: 14px;
}
.based-on dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: center;
}
.based-on dd { margin: 0; color: var(--text); }
.based-on .rule {
  border-left: 2px solid var(--accent);
  padding: 12px 16px;
  background: rgba(233, 69, 96, 0.04);
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.based-on .rule .rule-id {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.similar-list {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.similar-list h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.similar-list ul { list-style: none; margin: 0; padding: 0; }
.similar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.similar-list li:last-child { border-bottom: none; }
.similar-list .sim-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}
.similar-list .sim-readout {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
}

/* Autocomplete */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 30;
  display: none;
  box-shadow: var(--shadow);
}
.autocomplete-list.show { display: block; }
.autocomplete-item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  border-bottom: 1px solid var(--border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.focused {
  background: var(--surface);
  color: var(--text);
}

/* About page */
.about-shell { padding: 64px 0; max-width: 760px; margin: 0 auto; }
.about-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.about-shell p.lede { font-size: 18px; color: var(--text-muted); margin: 0 0 48px; }

.about-shell section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.about-shell section h2 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.about-shell p { font-size: 16px; color: var(--text); line-height: 1.7; margin: 0 0 14px; }
.about-shell .meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 20px;
}

/* Responsive */
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .site-nav { gap: 4px; }
  .site-nav a { padding: 6px 10px; font-size: 13px; }
  .site-nav .cta { padding: 8px 14px; font-size: 14px; margin-left: 4px; }

  .hero { padding: 48px 0 40px; }
  section.section { padding: 48px 0; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 18px 16px; min-height: 100px; }
  .cat-card .cat-name { font-size: 18px; }

  .book-promo {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
    text-align: center;
  }
  .book-promo .cover {
    max-width: 200px;
    margin: 0 auto;
  }
  .book-promo h3 { font-size: 26px; }
  .book-promo.compact { grid-template-columns: 1fr; padding: 24px 20px; }
  .book-promo.compact .cover { max-width: 140px; }

  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
  .filter-bar { top: 64px; }

  .results { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .predict-form { padding: 24px 20px; }
  .result-readout-large { padding: 28px 22px; }
  .based-on { padding: 22px 18px; }
  .based-on dl { grid-template-columns: 1fr; gap: 2px; }
  .based-on dt { margin-top: 8px; }
  .similar-list { padding: 22px 18px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 38px; }
  .hero p.subhead { font-size: 16px; }
  .btn { padding: 12px 18px; font-size: 14px; min-height: 44px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

/* Loading shimmer (small) */
.loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.loading::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 8px;
  animation: pulse 1.2s infinite;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; color: white; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================================
 * SPRINT 2 ADDITIONS
 * Table view, unit toggle, view toggle, compare panel, item modal,
 * print styles, Surprise Me button.
 * ===================================================================== */

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}
.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.toggle-group {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.toggle-group button {
  background: transparent;
  color: var(--text-muted);
  border: 0;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  border-right: 1px solid var(--border);
}
.toggle-group button:last-child { border-right: 0; }
.toggle-group button.active {
  background: var(--accent);
  color: white;
}
.compare-toggle {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
}
.compare-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.compare-toggle.on {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Results table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.results-table th {
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.results-table th:hover { color: var(--accent-2); }
.results-table th .sort-arrow {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-left: 4px;
}
.results-table tbody tr {
  border-bottom: 1px solid var(--border);
  min-height: 48px;
  transition: background var(--transition);
}
.results-table tbody tr:hover { background: var(--surface); }
.results-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
.results-table tbody tr:nth-child(even):hover { background: var(--surface); }
.results-table td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--text);
}
.results-table .col-temp {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-weight: 600;
  white-space: nowrap;
}
.results-table .col-time {
  font-family: var(--font-mono);
  color: var(--text);
  white-space: nowrap;
}
.results-table .col-item a {
  color: var(--text);
  text-decoration: none;
}
.results-table .col-item a:hover { color: var(--accent); }
.results-table .col-select {
  width: 38px;
  text-align: center;
}
.results-table .col-select input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* Mobile table responsiveness */
@media (max-width: 640px) {
  .results-table .col-sources { display: none; }
  .results-table th, .results-table td { padding: 12px 10px; font-size: 13.5px; }
}
@media (max-width: 480px) {
  .results-table .col-category,
  .results-table .col-confidence { display: none; }
}

/* Card-mode compare checkbox */
.card-compare {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.card-compare input { accent-color: var(--accent); }
.result { position: relative; cursor: pointer; }

/* Compare panel (bottom sheet on desktop, full screen on mobile) */
.compare-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.4);
  padding: 16px 0;
  z-index: 70;
  max-height: 60vh;
  overflow-y: auto;
}
.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 12px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.compare-header h3 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.compare-clear, .compare-close {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.compare-close { font-size: 18px; padding: 4px 12px; }
.compare-close:hover, .compare-clear:hover { color: var(--text); border-color: var(--border-strong); }
.compare-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0 24px;
}
.compare-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.compare-card h4 { font-family: var(--font-display); margin: 0 0 8px; font-size: 16px; }
.compare-readout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.compare-readout .readout-temp {
  color: var(--accent-2);
  font-size: 22px;
  font-weight: 700;
}
.compare-readout .readout-time {
  color: var(--text);
  font-size: 14px;
}
.compare-card p { margin: 4px 0; font-size: 13.5px; color: var(--text-muted); }
.compare-card .label { color: var(--accent-2); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }

@media (max-width: 640px) {
  .compare-panel { max-height: 100vh; height: 100vh; padding: 16px 0 24px; }
}

/* Item modal (deep-link detail view) */
.item-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 24, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}
.item-modal.open { display: flex; }
.item-modal-body {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
  max-width: 540px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
}
.item-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  color: var(--text-muted);
  border: 0;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
}
.item-modal-close:hover { color: var(--accent); }
.item-modal-content .item-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 4px 0 16px;
}
.item-readout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.item-readout .readout-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.item-readout .readout-temp {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
}
.item-readout .readout-time {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 16px;
}
.item-meta p { margin: 6px 0; }
.item-meta .label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-right: 8px;
}
.item-meta ul { margin: 4px 0 8px 18px; padding: 0; color: var(--text-muted); font-size: 13.5px; }
.item-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  flex-wrap: wrap;
}
.item-modal-actions .btn { padding: 10px 16px; min-height: auto; }

/* Print styles for recipe cards */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .filter-bar, .compare-panel,
  .results-toolbar, .item-modal-actions, .item-modal-close,
  .hero, .section, .skip-link { display: none !important; }
  .item-modal { position: static; background: #fff; padding: 0; }
  .item-modal-body {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    max-width: 5.5in;
    max-height: none;
    box-shadow: none;
  }
  .item-modal-content .item-title { color: #000; font-size: 24px; }
  .item-readout { background: #fff; border-color: #000; }
  .item-readout .readout-temp { color: #000; }
  .item-readout .readout-time { color: #000; }
  .item-readout .readout-eyebrow { color: #555; }
  .item-meta .label { color: #555; }
  .item-meta p, .item-meta ul { color: #000; }
  .badge { border: 1px solid #555; color: #000; background: #fff; }
  @page { size: 5.5in 8.5in; margin: 0.4in; }
}
body.print-active { overflow: visible; }

/* =====================================================================
 * SPRINT 3 STAGE 4: FAQ page
 * ===================================================================== */

.faq-shell {
  padding: 64px 0 80px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.05;
}
.faq-shell p.lede {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 56px;
  line-height: 1.6;
}
.faq-shell p.lede a {
  color: var(--accent-2);
}
.faq-shell p.lede a:hover {
  color: var(--accent);
}

.faq-section {
  margin: 0 0 48px;
}
.faq-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.faq-section h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  margin: 0 0 12px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-2);
  padding: 18px 52px 18px 22px;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.4;
  transition: color var(--transition), background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '\2212';
  color: var(--accent);
}
.faq-item summary:hover {
  background: rgba(15, 52, 96, 0.35);
  color: var(--accent);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}
.faq-answer {
  padding: 0 22px 20px;
}
.faq-answer p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 12px;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a {
  color: var(--accent-2);
  border-bottom: 1px dotted rgba(245, 166, 35, 0.4);
}
.faq-answer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.faq-cta {
  margin-top: 64px;
  padding: 28px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}
.faq-cta p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}
.faq-cta a {
  color: var(--accent-2);
  font-weight: 600;
}
.faq-cta a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .faq-shell { padding: 40px 0 56px; }
  .faq-shell p.lede { margin-bottom: 40px; font-size: 17px; }
  .faq-section { margin-bottom: 36px; }
  .faq-section h2 { font-size: 22px; gap: 10px; }
  .faq-section h2 .num { font-size: 12px; }
  .faq-item summary {
    font-size: 16px;
    padding: 16px 44px 16px 18px;
  }
  .faq-item summary::after { right: 16px; font-size: 20px; }
  .faq-answer { padding: 0 18px 18px; }
  .faq-answer p { font-size: 15px; line-height: 1.7; }
  .faq-cta { padding: 22px 20px; }
}

/* =====================================================================
 * SPRINT 3 STAGE 5: Quick Tips
 * ===================================================================== */

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.tip-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 140px;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto;
  column-gap: 14px;
  align-items: start;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.tip-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 24px rgba(233, 69, 96, 0.12);
}
.tip-sue {
  width: 32px;
  height: 42px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 0 transparent);
  opacity: 0.95;
}
.tip-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  padding-right: 36px;
}
.tip-num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.12em;
}
@media (max-width: 640px) {
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .tip-body {
    font-size: 16px;
  }
}

/* ============================================================
   Stage 9: Kitchen Mode + Cook Timer
   Toggle in .site-nav, body.kitchen-mode overrides, pinned amber
   banner, and a bottom-right persistent timer widget.
   No em dashes anywhere below this line.
   ============================================================ */

/* Toggle button in header */
.kitchen-mode-toggle {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-left: 8px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.kitchen-mode-toggle:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--accent-2);
}
.kitchen-mode-toggle .km-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 1px var(--border-strong);
  transition: background var(--transition), box-shadow var(--transition);
}
.kitchen-mode-toggle.on {
  color: var(--bg);
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.kitchen-mode-toggle.on:hover {
  color: var(--bg);
  background: #ffb84d;
}
.kitchen-mode-toggle.on .km-dot {
  background: var(--bg);
  box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.45);
}

/* Pinned banner that appears when Kitchen Mode is ON */
.kitchen-mode-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--accent-2);
  color: #1a1a2e;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  letter-spacing: 0.02em;
}
.kitchen-mode-banner .kmb-label { line-height: 1.2; }
.kitchen-mode-banner .kmb-off {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: transparent;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 32px;
}
.kitchen-mode-banner .kmb-off:hover { background: rgba(0, 0, 0, 0.1); }
.kitchen-mode-banner .kmb-note {
  font-weight: 500;
  font-size: 12px;
  opacity: 0.85;
  margin-left: 8px;
}

/* body.kitchen-mode: scale, enforce tap targets, hide chrome */
body.kitchen-mode {
  font-size: 120%;
}
body.kitchen-mode .site-footer { display: none !important; }

/* Hide secondary nav links (Search, Predict, About, FAQ, Get the Book) but
   keep the brand and the Kitchen Mode toggle visible. */
body.kitchen-mode .site-nav > a { display: none !important; }
body.kitchen-mode .site-nav .kitchen-mode-toggle { display: inline-flex !important; }

/* Enforce 56px minimum tap targets on common controls */
body.kitchen-mode .btn,
body.kitchen-mode .chip,
body.kitchen-mode .unit-btn,
body.kitchen-mode .view-btn,
body.kitchen-mode .compare-toggle,
body.kitchen-mode .site-nav a,
body.kitchen-mode .kitchen-mode-toggle,
body.kitchen-mode .cta-book,
body.kitchen-mode .link-affiliate,
body.kitchen-mode .item-modal-actions .btn,
body.kitchen-mode .tw-stop,
body.kitchen-mode .kmb-off {
  min-height: 56px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 16px;
}

/* Bigger hit area on result cards and table rows for finger taps */
body.kitchen-mode .result { padding: 22px; }
body.kitchen-mode .results-table td { padding: 18px 14px; }

/* Cook timer widget: fixed bottom-right */
.timer-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 240px;
  max-width: calc(100vw - 32px);
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-family: var(--font-body);
}
.timer-widget .tw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.timer-widget .tw-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.timer-widget .tw-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.timer-widget .tw-close:hover { color: var(--text); background: var(--surface); }
.timer-widget .tw-time {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 6px 0 8px;
  letter-spacing: 0.04em;
}
.timer-widget .tw-actions { justify-content: flex-end; }
.timer-widget .tw-stop {
  font-size: 13px;
  padding: 8px 14px;
  min-height: 36px;
}
.timer-widget.done {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 8px 24px rgba(245, 166, 35, 0.35);
}
.timer-widget.done .tw-time { color: var(--accent-2); }

/* In Kitchen Mode, make the timer widget larger and more legible */
body.kitchen-mode .timer-widget { width: 300px; padding: 16px 18px; }
body.kitchen-mode .timer-widget .tw-time { font-size: 36px; }

/* Print: hide Kitchen Mode chrome and the timer widget */
@media print {
  .kitchen-mode-banner,
  .kitchen-mode-toggle,
  .timer-widget { display: none !important; }
}

@media (max-width: 640px) {
  .kitchen-mode-toggle .km-label { display: none; }
  .kitchen-mode-toggle { padding: 8px 10px; }
  .kitchen-mode-banner { padding: 10px 16px; font-size: 13px; }
  .timer-widget { right: 12px; bottom: 12px; width: 210px; }
}


/* =====================================================================
 * SPRINT 3 STAGES 2 + 3: aliases / fuzzy / analog / modifiers / doneness
 * ===================================================================== */

/* Fuzzy fallback banner */
.fuzzy-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text);
}
.fuzzy-banner.alias { border-left-color: var(--verified); }
.fuzzy-banner.category { border-left-color: var(--accent); }
.fuzzy-banner em { color: var(--accent-2); font-style: normal; font-weight: 600; }
.fuzzy-banner .fb-note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Analog confidence badge */
.badge.analog {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}

.disclaimer-card.analog-card {
  border-left: 3px solid var(--accent-2);
}

/* Modifier cards (collapsible) */
.modifier-cards {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.mod-heading {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text);
}
.mod-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 8px;
  overflow: hidden;
}
.mod-card[open] {
  border-color: var(--accent-2);
}
.mod-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition);
}
.mod-card > summary:hover { background: var(--surface); }
.mod-card > summary::-webkit-details-marker { display: none; }
.mod-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent-2);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}
.mod-card[open] .mod-icon { background: var(--accent); color: white; transform: rotate(45deg); }
.mod-effect {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}
.mod-card > p {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Doneness reference card */
.doneness-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 18px;
  padding: 0;
}
.doneness-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
}
.doneness-card > summary::-webkit-details-marker { display: none; }
.doneness-card > summary:hover { background: var(--surface); }
.dc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 6px;
}
.dc-range {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 12px;
}
.doneness-card > p {
  padding: 0 16px 8px;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.doneness-card .dc-desc { color: var(--text); }
.doneness-card .dc-warn { color: var(--accent-2); }
.doneness-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-right: 6px;
}

/* =====================================================================
 * SPRINT 3 STAGE 6: Enhanced equipment categories
 * ===================================================================== */

.equipment-cat {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.equipment-cat:first-of-type { margin-top: 16px; padding-top: 0; border-top: 0; }
.equipment-cat-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.equipment-cat-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 680px;
  margin: 0 0 22px;
  line-height: 1.55;
}
.equipment-cat-desc a { color: var(--accent); }
.equipment-cat-desc a:hover { color: var(--accent-2); }
.equipment-cat .equipment-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.equipment-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0;
  color: var(--text);
}
.equipment-why {
  margin-top: 6px;
  font-size: 13px;
}
.equipment-why > summary {
  list-style: none;
  cursor: pointer;
  color: var(--accent-2);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.equipment-why > summary::-webkit-details-marker { display: none; }
.equipment-why > p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =====================================================================
 * SPRINT 3 STAGE 8: predictor optional inputs + adjusted result
 * ===================================================================== */

.predict-modifiers {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin: 16px 0;
  padding: 0;
}
.predict-modifiers[open] { border-color: var(--accent-2); }
.predict-modifiers > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.predict-modifiers > summary::-webkit-details-marker { display: none; }
.predict-modifiers .pm-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--accent-2); color: var(--bg);
  font-weight: 700; font-size: 14px;
  transition: transform 200ms ease;
}
.predict-modifiers[open] .pm-icon { transform: rotate(45deg); background: var(--accent); color: white; }
.predict-modifiers .field-row { padding: 0 16px; }
.predict-modifiers .checkbox-row {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  padding: 0 16px 16px;
}
.checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14px; color: var(--text);
}
.checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
}
.thickness-wrap {
  display: flex; gap: 8px; align-items: center;
}
.thickness-wrap input[type="number"] {
  flex: 1; min-width: 80px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-family: var(--font-mono); color: var(--text); font-size: 15px;
}
.thickness-wrap .toggle-group { flex: 0 0 auto; }
.thick-unit-btn {
  background: transparent; color: var(--text-muted);
  border: 0; padding: 8px 12px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  cursor: pointer; min-height: 38px;
  border-right: 1px solid var(--border);
}
.thick-unit-btn:last-child { border-right: 0; }
.thick-unit-btn.active { background: var(--accent); color: white; }

.result-adjusted {
  margin-top: 16px;
  padding: 18px 22px;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius-sm);
}
.result-adjusted .readout-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.result-adjusted .readout-instrument.adjusted {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 26px;
  font-weight: 700;
}
.result-adjusted .readout-instrument-time {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 15px;
}
.adjusted-explanations {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.why-this {
  margin-top: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.why-this[open] { border-color: var(--accent); }
.why-this > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.why-this > summary::-webkit-details-marker { display: none; }
.why-this .mod-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--accent); color: white; font-weight: 700; font-size: 14px;
}
.why-this ul {
  padding: 0 22px 16px 40px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* =====================================================================
 * SPRINT 4: Hamburger menu, side panel, density tightening, color system
 * for temp + time, scroll-to-top, hero tightening
 * ===================================================================== */

/* Locked header height: 56px mobile, 64px desktop */
.site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
.site-header { min-height: 56px; }
@media (min-width: 1024px) {
  .site-header { min-height: 64px; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
}

/* Hide the legacy inline nav links if any survive */
.site-nav { display: none !important; }

/* Hamburger button */
.nav-toggle {
  display: inline-flex; flex-direction: column;
  justify-content: center; gap: 4px;
  width: 44px; height: 44px;
  background: transparent; border: 0; padding: 0;
  cursor: pointer; border-radius: 6px;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle-bar {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
  margin: 0 auto;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Side panel */
.nav-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--bg-2);
  border-left: 1px solid var(--border-strong);
  box-shadow: -10px 0 30px rgba(0,0,0,0.4);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 90;
  overflow-y: auto;
}
.nav-panel.open { transform: translateX(0); }
.nav-panel-inner { padding: 18px 22px 28px; }
.nav-panel-close {
  background: transparent; border: 0;
  color: var(--text-muted); font-size: 26px;
  cursor: pointer; line-height: 1;
  padding: 6px 10px;
  margin-bottom: 18px;
}
.nav-panel-close:hover { color: var(--accent); }

.nav-list { list-style: none; padding: 0; margin: 0; }
.nav-list li { margin: 0; }
.nav-list a {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  border-left: 3px solid transparent;
  padding-left: 16px;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a.active {
  color: var(--accent-2);
  border-left-color: var(--accent-2);
  background: rgba(245, 166, 35, 0.04);
}

.nav-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.nav-panel-actions .kitchen-mode-toggle { width: 100%; justify-content: center; min-height: 48px; }
.nav-panel-actions .nav-cta { width: 100%; text-align: center; min-height: 48px; }

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(10, 12, 24, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 80;
}

/* Density tightening: cards across the site */
.card { padding: 16px; border-radius: 8px; }
@media (min-width: 768px) { .card { padding: 20px; } }
.equipment-card { padding: 16px; border-radius: 8px; gap: 6px; }
@media (min-width: 768px) { .equipment-card { padding: 20px; } }
.equipment-card h3, .equipment-card h4 { font-size: 16px; margin: 0; line-height: 1.3; }
.equipment-card p { font-size: 13.5px; line-height: 1.4; margin: 6px 0 0; }
.tips-grid { gap: 12px; }
.cat-grid { gap: 12px; }
.equipment-grid { gap: 12px; }
.compare-body { gap: 12px; }

/* Hero tightening: 30-40% less vertical padding */
.hero { padding: 36px 0 28px; }
@media (min-width: 768px) { .hero { padding: 56px 0 44px; } }
.hero h1 { margin-bottom: 14px; font-size: clamp(34px, 6vw, 60px); line-height: 1.04; }
.hero p.subhead { margin-bottom: 22px; font-size: 17px; }
.hero-sue { width: 88px; height: 117px; margin-bottom: 16px; }

/* Category grid: 2 cols mobile, 3 tablet, 4 desktop, ~80-100px tall */
.cat-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  min-height: 84px;
  padding: 14px 14px;
  gap: 4px;
}
.cat-card .cat-name { font-size: 15.5px; font-weight: 700; }
.cat-card .cat-mark { font-size: 11px; }
.cat-card .cat-count { font-size: 12px; }

/* Book promo: single horizontal banner, max ~96px on mobile */
.book-promo {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.book-promo .cover img { width: 64px; height: auto; aspect-ratio: 2 / 3; border-radius: 4px; }
.book-promo .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.book-promo .info .section-eyebrow { font-size: 10px; margin-bottom: 0; }
.book-promo .info h3 { margin: 0; font-size: 15.5px; line-height: 1.2; }
.book-promo .info .meta { font-size: 10.5px; margin: 0; color: var(--text-muted); letter-spacing: 0.04em; }
.book-promo .info .book-desc { display: none; }
.book-promo .info .cta-book {
  background: var(--accent); color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px; font-weight: 600;
  align-self: start;
  display: inline-block;
  margin-top: 4px;
}
@media (min-width: 640px) {
  .book-promo { grid-template-columns: 96px 1fr auto; padding: 14px 18px; }
  .book-promo .cover img { width: 80px; }
  .book-promo .info h3 { font-size: 17px; }
  .book-promo .info .book-desc { display: block; font-size: 13px; color: var(--text-muted); line-height: 1.4; margin: 2px 0 0; }
  .book-promo .info .cta-book { justify-self: start; margin-top: 6px; }
}
.book-promo.compact .info .book-desc { display: none; }

/* Equipment categories: tier cards become accordions */
.equipment-cat { margin-top: 28px; padding-top: 20px; }
.equipment-cat-title { font-size: 19px; margin: 0 0 6px; }
.equipment-cat-desc { font-size: 14px; line-height: 1.45; margin-bottom: 14px; max-width: none; }
.equipment-cat .equipment-grid { grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 768px) { .equipment-cat .equipment-grid { grid-template-columns: 1fr; } }
.equipment-card {
  display: block;
  padding: 0;
  overflow: hidden;
}
.equipment-card > .equipment-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
}
.equipment-card > .equipment-summary::-webkit-details-marker { display: none; }
.equipment-card > .equipment-summary:hover { background: var(--surface); }
.equipment-card .equipment-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--accent-2); color: var(--bg);
  font-weight: 700; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px;
}
.equipment-card[open] > .equipment-summary .equipment-mark { background: var(--accent); color: white; }
.equipment-card .equipment-tier-name { font-weight: 700; font-size: 15px; }
.equipment-card .equipment-price { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); }
.equipment-card .equipment-body {
  padding: 0 14px 14px 50px;
}
.equipment-card .equipment-body p { margin: 6px 0; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.equipment-card .equipment-body p.first { color: var(--text); }
.equipment-card .equipment-body .link-affiliate { margin-top: 6px; display: inline-block; }
.equipment-why { display: none; }  /* old expandable replaced by accordion summary */

/* Quick Tips: grouped, compact list */
.tips-section { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.tips-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.tips-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tip-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
.tip-card .tip-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-2); letter-spacing: 0.06em;
}
.tip-card .tip-body { margin: 0; font-size: 13.5px; line-height: 1.45; }
.tip-card .tip-sue { display: none; }  /* Stage 5 audit: no Sue on tip cards */
.tips-controls { display: flex; justify-content: flex-end; margin-bottom: 12px; gap: 8px; }

/* FAQ: accordion */
.faq-question {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 0;
}
.faq-question[open] { border-color: var(--accent); }
.faq-question > summary {
  list-style: none; cursor: pointer;
  padding: 12px 16px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 14.5px; color: var(--text);
}
.faq-question > summary::-webkit-details-marker { display: none; }
.faq-question > summary:hover { background: var(--surface); }
.faq-question > p, .faq-question > div { padding: 0 16px 14px; margin: 4px 0 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.faq-question > p:first-of-type { margin-top: 0; }
.faq-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 28px 0 10px;
  color: var(--text);
}
.faq-section-title:first-of-type { margin-top: 8px; }

/* Color system for temp + time: amber temperature, teal time, mono numerals */
.readout-temp, .col-temp, .readout-instrument {
  font-family: var(--font-mono);
  color: var(--accent-2);
}
.readout-time, .col-time, .readout-instrument-time {
  font-family: var(--font-mono);
  color: var(--verified);
}
.compare-readout .readout-temp { color: var(--accent-2); }
.compare-readout .readout-time { color: var(--verified); }
.item-readout .readout-temp { color: var(--accent-2); }
.item-readout .readout-time { color: var(--verified); }
.sim-readout { font-family: var(--font-mono); }
.sim-readout { color: var(--accent-2); }

/* Scroll-to-top button */
.scroll-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: opacity 200ms ease, transform 200ms ease;
}
.scroll-to-top[hidden] { opacity: 0; pointer-events: none; }
.scroll-to-top:not([hidden]) { opacity: 1; }
.scroll-to-top:hover { background: #f25571; transform: translateY(-2px); }
@media (min-width: 768px) { .scroll-to-top { right: 24px; bottom: 24px; } }

/* Sprint 4: Surprise Me as a subtle inline link on the search page */
.link-surprise {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent-2);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link-surprise:hover { color: var(--accent); }

/* =====================================================================
 * SPRINT 5 STAGE 4: Quick Tips bug fix + redesign
 * The Sprint 3 .tips-grid used CSS grid with minmax(240px, 1fr) which
 * placed each tips-section (after Sprint 4 grouped restructure) into a
 * narrow column, squeezing tip text to one-word-per-line at desktop.
 * The Sprint 4 .tip-card was also a 28px | 1fr internal grid which made
 * the bug worse on narrow displays.
 *
 * Replace the whole layout with simple block flow: sections stack
 * vertically, cards are full-width inside their section. Tip number is a
 * compact inline-block on the left, tip body flows normally.
 * ===================================================================== */

/* Override the legacy multi-column grid: sections stack vertically. */
.tips-grid {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  max-width: 720px;
  margin: 0 auto;
}
.tips-section {
  display: block;
  margin: 0 0 24px;
  padding: 0;
  border: 0 !important;
}
.tips-section:first-of-type { margin-top: 0; }
.tips-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Reset .tip-card to a clean flex layout. !important is used here only to
 * neutralize the layered Sprint 3 + Sprint 4 rules without removing them
 * (preserves history). */
.tip-card {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px !important;
  margin: 0 0 8px !important;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  min-height: 0;
  position: static;
  grid-template-columns: none !important;
}
.tip-card .tip-num {
  position: static;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  padding-top: 2px;
  min-width: 22px;
}
.tip-card .tip-body {
  flex: 1 1 auto;
  margin: 0;
  padding: 0 !important;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (min-width: 768px) {
  .tip-card .tip-body { font-size: 16px; }
}

/* Belt-and-suspenders: hide the legacy Sue image on tip cards. */
.tip-card .tip-sue { display: none !important; }

/* Tips controls (Shuffle button) */
.tips-controls {
  max-width: 720px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: flex-end;
}

/* =====================================================================
 * SPRINT 5 STAGE 5: FAQ breathing room
 * Per spec: page padding, accordion spacing, section header tune,
 * typography rebalance.
 * ===================================================================== */

.faq-shell {
  padding: 32px 16px 64px;
  max-width: 800px;
}
@media (min-width: 768px) {
  .faq-shell {
    padding: 40px 24px 80px;
  }
}
.faq-shell h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}
.faq-shell p.lede {
  font-size: 16px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.faq-section {
  margin: 0 0 28px;
}
.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 600;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.005em;
  gap: 10px;
}
.faq-section:first-of-type h2 { margin-top: 4px; }
.faq-section h2 .num {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.faq-item {
  margin: 0 0 8px;
  border-radius: 6px;
}
.faq-item summary {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 16px 48px 16px 16px;
  line-height: 1.4;
}
.faq-item summary::after {
  right: 16px;
  font-size: 18px;
}
.faq-item summary:hover {
  background: rgba(15, 52, 96, 0.4);
  color: var(--accent-2);
}
.faq-answer {
  padding: 12px 16px 16px;
}
.faq-answer p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 10px;
}
@media (min-width: 768px) {
  .faq-answer p { font-size: 15px; }
}

/* =====================================================================
 * SPRINT 6: Visual polish pass
 * ===================================================================== */

/* Nav panel close button: circular icon button, accessible target. */
.nav-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.nav-panel-close:hover,
.nav-panel-close:focus-visible {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}
.nav-panel-inner { position: relative; padding-top: 56px; }

/* Kitchen Mode toggle inside the nav panel: real switch UI with label.
   Override the mobile rule that hides .km-label elsewhere. */
.nav-panel-actions .kitchen-mode-toggle.nav-panel-km {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  min-height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.nav-panel-actions .kitchen-mode-toggle.nav-panel-km .km-label {
  display: inline-block !important;
  letter-spacing: 0.01em;
}
.nav-panel-actions .kitchen-mode-toggle.nav-panel-km .km-switch {
  position: relative;
  display: inline-block;
  width: 38px; height: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex: 0 0 auto;
  transition: background 200ms ease;
}
.nav-panel-actions .kitchen-mode-toggle.nav-panel-km .km-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 200ms ease, background 200ms ease;
}
.nav-panel-actions .kitchen-mode-toggle.nav-panel-km:hover {
  border-color: var(--accent-2);
}
.nav-panel-actions .kitchen-mode-toggle.nav-panel-km.on {
  border-color: var(--accent-2);
  background: rgba(245, 166, 35, 0.06);
}
.nav-panel-actions .kitchen-mode-toggle.nav-panel-km.on .km-switch {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.nav-panel-actions .kitchen-mode-toggle.nav-panel-km.on .km-thumb {
  background: var(--bg);
  transform: translateX(16px);
}

/* Hero: shrink Sue and put her inline with the heading instead of stacked above. */
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.hero .hero-title-row h1 { margin-bottom: 0; }
.hero .hero-title-row .hero-sue {
  width: 56px;
  height: auto;
  margin-bottom: 0;
  flex: 0 0 56px;
}
@media (min-width: 768px) {
  .hero-title-row { gap: 20px; }
  .hero .hero-title-row .hero-sue { width: 72px; flex-basis: 72px; }
}

/* Predict: header no longer has a Sue illustration; tighten the layout. */
.predict-head {
  display: block;
  margin-bottom: 8px;
}
.predict-head h1 { margin-top: 4px; }
.predict-sue { display: none !important; }

/* Quick Tips: card treatment with amber number badge. */
.tip-card {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  border-left: 3px solid var(--accent-2) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  margin: 0 0 12px !important;
  align-items: flex-start;
  gap: 14px !important;
  transition: border-color 160ms ease, transform 160ms ease;
}
.tip-card:hover {
  border-color: var(--accent-2) !important;
}
.tip-card .tip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 32px;
  height: 22px;
  padding: 0 8px;
  background: rgba(245, 166, 35, 0.14);
  color: var(--accent-2) !important;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  margin-top: 1px;
}
.tip-card .tip-body {
  font-size: 14.5px !important;
  line-height: 1.55 !important;
}
@media (min-width: 768px) {
  .tip-card { padding: 16px 18px !important; }
  .tip-card .tip-body { font-size: 16px !important; }
}

/* Equipment accordion: chevron icon that rotates on open. Pseudo-element so
   we don't need to touch every existing summary in HTML. */
.equipment-card > .equipment-summary {
  position: relative;
  padding-right: 40px;
  gap: 12px;
  min-height: 52px;
}
.equipment-card > .equipment-summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease, border-color 200ms ease;
}
.equipment-card[open] > .equipment-summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--accent-2);
}
.equipment-card[open] {
  border-color: var(--accent-2) !important;
}
.equipment-card > .equipment-summary:hover::after {
  border-color: var(--accent-2);
}

/* Nav-list: explicit list-style guard against any inherited bullets. */
.nav-panel .nav-list,
.nav-panel .nav-list li { list-style: none !important; }

/* Predict head: tighter on mobile after Sue removal. */
.predict-shell .predict-head .section-eyebrow {
  display: inline-block;
  margin-bottom: 4px;
}

/* =====================================================================
 * SPRINT 8 - Design system alignment (Hearth UI spec v1.3)
 *
 * Goals: 56/64px header, single-line nav, hero compaction, horizontally
 * scrolling chips, one-line controls, accordion result cards.
 *
 * Spec tokens applied as raw px (vanilla CSS, no Tailwind):
 *   spacing  4·8·12·16·24·32 (4-base)
 *   type     12 / 14 (body) / 16 / 20 / 24 / 30 px
 *   radius   4 (control) / 8 (card) / 12 (panel) / 9999 (pill)
 *   touch    44px min target, 8px adjacent gap
 * ===================================================================== */

/* Header - 56px mobile / 64px desktop. Compact single line. */
.site-header { min-height: 56px; }
.site-header .wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 56px;
  gap: 12px;
}
@media (min-width: 1024px) {
  .site-header { min-height: 64px; }
  .site-header .wrap { min-height: 64px; }
}

.brand {
  font-size: 16px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand > span:last-child { white-space: nowrap; }
.brand-sue { width: 24px !important; height: 24px !important; margin-right: 4px !important; }
.brand-mark { width: 8px; height: 8px; }

.nav-toggle { width: 44px !important; height: 44px !important; }

/* Nav panel - 280px or 75vw, slide from right. Token gaps. */
.nav-panel {
  width: min(280px, 75vw) !important;
  z-index: 41 !important;
}
.nav-scrim { z-index: 40 !important; background: rgba(0, 0, 0, 0.55) !important; }
.site-header { z-index: 30 !important; }
.nav-panel .nav-list,
.nav-panel .nav-list li { list-style: none !important; padding-left: 0; }
.nav-list a {
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 12px 16px !important;
  min-height: 44px;
  display: flex !important;
  align-items: center;
}

/* Hero compaction - keep Sue inline, tighten padding to 4-base scale. */
.hero { padding: 24px 0 16px !important; }
@media (min-width: 768px) { .hero { padding: 48px 0 32px !important; } }
.hero h1 {
  font-size: 30px !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .hero h1 { font-size: 36px !important; } }
.hero p.subhead {
  font-size: 14px !important;
  line-height: 1.5;
  margin-bottom: 16px !important;
}
.hero-ctas { gap: 12px; }
.hero-title-row { margin-bottom: 12px !important; }
.hero .hero-title-row .hero-sue { width: 48px !important; flex-basis: 48px !important; }
@media (min-width: 768px) {
  .hero .hero-title-row .hero-sue { width: 64px !important; flex-basis: 64px !important; }
}

/* About-block tightening so first card grid is visible sooner. */
.about-block { padding: 16px 0 !important; }
.about-block p { font-size: 14px !important; line-height: 1.5 !important; margin: 8px 0; }

/* Section base: keep spacing scale honest. */
.section { padding: 16px 0 !important; }
@media (min-width: 768px) { .section { padding: 24px 0 !important; } }

/* Category chips - single horizontal scroll row. */
.search-shell { padding: 16px 0 8px !important; }
.search-shell h1 { font-size: 24px !important; line-height: 1.2 !important; margin: 0 0 4px !important; }
.search-shell .lede { font-size: 14px !important; line-height: 1.5; margin: 0 0 12px !important; }

.filter-bar { padding: 8px 0 !important; }
.filter-bar .wrap { gap: 8px !important; padding-left: 16px !important; padding-right: 16px !important; }
.search-input-wrap { padding: 8px 12px !important; }
.search-input { font-size: 14px !important; }

.chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  gap: 8px !important;
  padding: 4px 0 8px !important;
  margin: 0 -16px;
  padding-left: 16px !important;
  padding-right: 16px !important;
  scroll-snap-type: x mandatory;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto !important;
  scroll-snap-align: start;
  min-height: 36px;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

/* Results toolbar - single line. */
.results-toolbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--border);
}
.results-toolbar .result-count {
  font-size: 11px !important;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1 1 auto !important;
  margin: 0;
}
.toolbar-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}
.toolbar-actions .toggle-group { padding: 2px !important; }
.toolbar-actions .unit-btn,
.toolbar-actions .view-btn {
  min-height: 32px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 600;
}
.toolbar-actions .compare-toggle {
  min-height: 32px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 600;
}

/* Result cards - accordion. Collapsed: ~60px, 2 lines. Expanded: details. */
.results {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
@media (min-width: 768px) {
  .results { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 12px !important; }
}
@media (min-width: 1024px) {
  .results { grid-template-columns: repeat(3, 1fr); }
}
.result {
  display: block !important;
  padding: 0 !important;
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.result:hover { border-color: var(--accent-2) !important; }
.result[aria-expanded="true"] { border-color: var(--accent-2) !important; }
.result-head {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 12px 16px !important;
  min-height: 60px;
}
.result-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.result .result-name {
  flex: 1 1 auto;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  color: var(--text);
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result .result-verified {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: var(--verified, #4ecdc4);
}
.result.is-extrapolated .result-verified {
  background: var(--accent-2);
  opacity: 0.7;
}
.result .result-chevron {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  position: relative;
  transition: transform 200ms ease;
}
.result .result-chevron::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}
.result[aria-expanded="true"] .result-chevron {
  transform: rotate(180deg);
}
.result[aria-expanded="true"] .result-chevron::after {
  border-color: var(--accent-2);
}
.result .result-readout {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--font-mono);
  font-size: 13px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  line-height: 1.2 !important;
}
.result .result-readout .readout-temp {
  color: var(--accent-2) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
}
.result .result-readout .readout-time {
  color: var(--verified, #4ecdc4) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  opacity: 1 !important;
}
.result .result-readout .readout-sep { color: var(--text-muted); font-size: 13px !important; }

/* Override the legacy boxed .result base layout. */
.result {
  padding: 0 !important;
  gap: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.result:hover {
  transform: none !important;
  box-shadow: none !important;
}
.result-body {
  display: none;
  padding: 0 16px 14px;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.result[aria-expanded="true"] .result-body { display: block; }
.result-body .body-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.result-body .body-row:last-child { border-bottom: 0; }
.result-body .body-row > .label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.result-body .body-row > .value { color: var(--text); text-align: right; flex: 1 1 auto; word-break: break-word; }
.result-body .body-row > .value.mono { font-family: var(--font-mono); }
.result-body .body-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.result-body .body-actions .btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
.result-body .body-actions .btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.result-body .body-actions .btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Hide old legacy result internals (still rendered fallbacks). */
.result .result-meta,
.result > .result-footer,
.result > .readout-label,
.result > .result-readout > .readout-label { display: none !important; }

/* Old card-compare checkbox sits inside the accordion body now. */
.result .card-compare {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Em dash sweep guard: data sources also clean, but enforce no em dash
   in any rendered card by collapsing whitespace inside the readout. */
.result-readout { white-space: nowrap; }

/* Wraps: enforce 16px page padding on mobile per spec. */
.search-shell .wrap,
.predict-shell .wrap-narrow,
.section .wrap,
.section .wrap-narrow {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
@media (min-width: 1024px) {
  .search-shell .wrap,
  .predict-shell .wrap-narrow,
  .section .wrap,
  .section .wrap-narrow { padding-left: 24px !important; padding-right: 24px !important; }
}

/* Default body min-size - kill sub-14px body copy. */
.about-block p,
.lede,
p.subhead,
.section p { font-size: 14px; line-height: 1.5; }

/* Footer compactness. */
.site-footer .wrap { padding-top: 24px !important; padding-bottom: 24px !important; }
.site-footer p,
.site-footer a { font-size: 13px !important; }


