/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --paper: #f3ece3;
  --paper-2: #e7d9c8;
  --ink: #1c1916;
  --muted: #6a6158;
  --line: rgba(28, 25, 22, 0.1);
  --line-strong: rgba(28, 25, 22, 0.18);
  --card: #fffdfb;
  --accent: #9c3f24;
  --accent-soft: #f3dfd4;
  --warn: #8a5a12;
  --warn-soft: #f5ead2;
  --ok: #3a5c48;
  --ad: #d4cbbf;
  --band-steps: #e4ebe5;
  --band-table: #efe3d2;
  --band-faq: #f7f1e9;
  --footer: #2a211c;
  --footer-fg: #f3ece4;
  --footer-muted: #c4b8ac;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1rem, 3.2vw, 2.4rem);
  --max: 42rem;
  --max-wide: 52rem;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(28, 25, 22, 0.04), 0 22px 44px -28px rgba(92, 42, 24, 0.4);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  color-scheme: only light;
  scroll-padding-top: 5rem;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.55rem 0.9rem; background: var(--ink); color: var(--paper);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wrap { width: min(var(--max-wide), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.wrap-narrow { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
main { overflow-x: clip; }

/* =============================================================
   4. Typography
   ============================================================= */
.lede { color: var(--muted); font-size: 1.02rem; max-width: 38em; }
.fine { color: var(--muted); font-size: 0.88rem; }
.kicker {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 650;
}

/* =============================================================
   5. Components
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s var(--ease-out);
}
@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  .site-header {
    background: rgba(243, 236, 227, 0.84);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
  }
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.62rem;
  color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -0.045em;
}
.brand-mark { color: var(--accent); flex: 0 0 auto; }
.brand svg { width: 26px; height: 26px; overflow: visible; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-shrink: 0;
}
.header-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-link:hover { color: var(--ink); }
.header-link-tool { color: var(--ink); font-weight: 650; }
@media (max-width: 540px) {
  .brand { font-size: 1.12rem; gap: 0.5rem; }
  .brand svg { width: 30px; height: 30px; }
  .header-link { font-size: 0.84rem; }
  .field input, .field select, .field textarea, .select-trigger {
    padding: 0.72rem 0.85rem;
  }
  .field select, .select-trigger {
    padding-right: 2.25rem;
    background-position: right 0.82rem center;
  }
}
@media (max-width: 380px) {
  .header-nav { gap: 0.8rem; }
  .header-link { font-size: 0.82rem; }
}

.hero { padding: clamp(1.15rem, 3.4vw, 1.9rem) 0 clamp(1.4rem, 3.2vw, 2.1rem); }
.hero h1 { font-size: clamp(1.65rem, 5.4vw, 2.55rem); margin-bottom: 0.7rem; }
.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 32em;
  margin-bottom: clamp(1.2rem, 3vw, 1.75rem);
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.15rem 1.15rem;
}
@media (min-width: 540px) { .tool-card { padding: 1.7rem 1.75rem 1.55rem; } }

.field { display: flex; flex-direction: column; gap: 0.42rem; }
.field label { font-size: 0.8rem; font-weight: 650; color: var(--muted); padding-inline: 0.2rem; }
.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.field-icon {
  color: var(--accent);
  flex: 0 0 auto;
}
.field input, .field select, .field textarea, .select-trigger {
  width: 100%;
  font: inherit;
  line-height: 1.35;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  appearance: none;
  -webkit-appearance: none;
}
.field select, .select-trigger {
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='%231c1916' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round' d='M1.6 1.8 6 6.1 10.4 1.8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.72rem 0.48rem;
}
.select-trigger { display: flex; align-items: center; margin: 0; text-align: left; line-height: 1.35; }
.select-ui { position: relative; width: 100%; min-width: 0; }
.select-ui.is-open { z-index: 6; }
.select-ui.is-custom > select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  pointer-events: none;
}
.select-ui.is-open .select-trigger { border-color: var(--accent); }
.select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 45;
  max-height: 16.5rem;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
}
.select-menu[hidden] { display: none !important; }
.select-option {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.35;
}
.select-option.is-active { background: var(--accent-soft); }
.select-option.is-selected { color: var(--accent); font-weight: 650; }
.field input { font-variant-numeric: tabular-nums; }
.trio .field input { font-size: 1.15rem; }
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.45; }
.grid-2 {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  margin-top: 0.9rem;
}
@media (min-width: 540px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: end; }
}
.trio {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 0.2rem;
}
.conv-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-top: 0.9rem;
}
.conv-row > .field,
.unit-pair .select-ui { min-width: 0; }
.unit-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.95rem minmax(0, 1fr);
  grid-template-areas:
    "from-l .    to-l"
    "from-c swap to-c";
  column-gap: 0.55rem;
  row-gap: 0.42rem;
  align-items: stretch;
  min-width: 0;
}
.unit-pair > .unit-from,
.unit-pair > .unit-to { display: contents; }
.unit-pair > .unit-from > label { grid-area: from-l; }
.unit-pair > .unit-to > label { grid-area: to-l; }
.unit-pair > .unit-from > .select-ui,
.unit-pair > .unit-from > select { grid-area: from-c; }
.unit-pair > .unit-to > .select-ui,
.unit-pair > .unit-to > select { grid-area: to-c; }
.unit-pair > .swap-units { grid-area: swap; }
.unit-pair > .unit-from > label,
.unit-pair > .unit-to > label {
  padding-inline: 0.9rem;
  align-self: end;
}
.swap-units {
  box-sizing: border-box;
  width: 2.95rem;
  height: auto;
  min-height: 2.7rem;
  aspect-ratio: 1;
  justify-self: center;
  align-self: stretch;
  padding: 0;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.swap-units svg { overflow: visible; transition: transform 0.35s var(--ease-out); }
.swap-units:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.swap-units:active { transform: scale(0.97); }
@media (min-width: 540px) {
  .conv-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
}

.result {
  margin-top: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: var(--accent-soft);
  min-height: 5.2rem;
}
.result[data-state="idle"] { background: var(--paper-2); }
.result[data-state="error"] { background: var(--warn-soft); }
.result-value {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.result-source { margin-top: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.result-source a { color: inherit; }
.result-alt { margin-top: 0.25rem; font-size: 0.88rem; }
.chip {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
}
.chip[hidden], .result-alt[hidden], .ficha[hidden], .ficha-total[hidden], .install-card[hidden] { display: none !important; }

.cup-row { margin-top: 1.05rem; }
.privacy-badge {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin-top: 1.15rem; color: var(--muted); font-size: 0.88rem;
  line-height: 1.55;
}
.privacy-badge svg { flex: 0 0 18px; margin-top: 0.15rem; }
.privacy-line { display: block; }
.privacy-line + .privacy-line { margin-top: 0.38rem; }

.install-card {
  margin-top: 1.45rem;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.install-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.install-preview {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(28, 25, 22, 0.06), 0 10px 22px -14px rgba(92, 42, 24, 0.5);
}
.install-preview img { width: 52px; height: 52px; object-fit: cover; }
.install-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.22rem;
  letter-spacing: -0.03em;
}
.install-card .install-top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.install-native { margin-top: 0.95rem; }
.install-desk { margin-top: 0.9rem; }
.install-card[data-platform="ios"] .install-desk,
.install-card[data-platform="android"] .install-desk { display: none; }
.install-ways {
  display: grid;
  gap: 1.1rem;
  margin-top: 1rem;
}
@media (min-width: 540px) {
  .install-card[data-platform="all"] .install-ways,
  .install-card:not([data-platform]) .install-ways {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
  }
}
.install-card[data-platform="ios"] .install-way[data-way="android"],
.install-card[data-platform="android"] .install-way[data-way="ios"] {
  display: none;
}
.install-way-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.install-steps {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
}
.install-steps li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.3;
}
.install-key {
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(28, 25, 22, 0.04);
}
.install-key svg { display: block; }
.install-steps strong { font-weight: 650; }
.install-switch-wrap { margin-top: 0.75rem; }
.install-switch {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
html.is-standalone .install-card { display: none !important; }

.recipe-block {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.05rem;
}
.recipe-block summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.recipe-block summary::-webkit-details-marker { display: none; }
.recipe-block summary::after { content: "+"; color: var(--muted); font-weight: 500; margin-left: auto; }
.recipe-block[open] summary::after { content: " –"; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.85rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--card);
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.btn[hidden],
.install-native[hidden] { display: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.recipe-in-field { margin-top: 0.7rem; }
.recipe-hint { margin-top: 0.4rem; }

.ficha {
  margin-top: 0.9rem;
}
.ficha-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  background: var(--card);
}
.ficha table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ficha th, .ficha td {
  text-align: left; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ficha th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ficha th:nth-child(1) { width: 48%; }
.ficha th:nth-child(2) { width: 28%; }
.ficha tr:last-child td { border-bottom: 0; }
.ficha td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ficha td:last-child { white-space: nowrap; }
.ficha .miss { color: var(--warn); }
.ficha-miss-why { display: block; margin-top: 0.25rem; font-size: 0.82rem; color: var(--warn); }
.ficha-edit {
  width: 100%; font: inherit; color: inherit; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 0.45rem 0.55rem;
}
.ficha-total {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-radius: 14px;
}
.ficha-total-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.ficha-total-value {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ficha-total-alt { margin-top: 0.2rem; font-size: 0.88rem; color: var(--muted); }
.ficha-total-note { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) {
  .ficha-table-wrap { overflow: visible; }
  .ficha thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .ficha tbody, .ficha tr, .ficha td { display: block; width: auto; }
  .ficha tr {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .ficha tr:last-child { border-bottom: 0; }
  .ficha th, .ficha td {
    padding: 0;
    border: 0;
    width: auto;
    white-space: normal;
  }
  .ficha td:first-child {
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 0.28rem;
  }
  .ficha td:last-child {
    margin-top: 0.22rem;
    font-size: 0.82rem;
    color: var(--muted);
  }
  .ficha td:last-child a { color: var(--accent); }
}

.oven {
  margin-top: 1.2rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}
.oven h2 { font-size: 0.95rem; margin-bottom: 0.7rem; font-weight: 650; letter-spacing: -0.02em; }
.oven-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.oven-head .field-icon { margin-top: -0.05rem; }

html:not(.ads-on) .ad-slot,
html:not(.ads-on) .ad-toast,
html:not(.ads-on) .ad-dialog { display: none; }
.ad-slot {
  margin: 1.5rem auto;
  min-height: 100px;
  border: 1px dashed var(--ad);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  width: min(100%, 728px);
}
.ad-slot-incontent { min-height: 250px; width: min(100%, 336px); margin-inline: auto; }

.ad-toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: min(18rem, calc(100% - 2rem));
  background: var(--card);
  border: 1px dashed var(--ad);
  border-radius: 14px;
  padding: 0.85rem 0.9rem 0.75rem;
  box-shadow: var(--shadow);
}
.ad-toast .ad-mark {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  min-height: 80px; display: grid; place-items: center; border: 1px dashed var(--ad); border-radius: 8px;
}
.ad-toast-close {
  position: absolute; top: 0.35rem; right: 0.45rem;
  width: 2rem; height: 2rem; font-size: 1.2rem; color: var(--muted);
}

.ad-dialog {
  border: 0; border-radius: 18px; padding: 0; width: min(26rem, calc(100% - 2rem));
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.ad-dialog::backdrop { background: rgba(28, 25, 22, 0.38); }
.ad-dialog-inner { padding: 1.2rem 1.2rem 1.1rem; }
.ad-dialog h2 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.ad-dialog .ad-slot { min-height: 250px; margin: 0.8rem 0 1rem; }

.section { padding: 2rem 0; }
.section h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); margin-bottom: 1rem; }
.band-steps { background: var(--band-steps); }
.band-table { background: var(--band-table); }
.band-faq { background: var(--band-faq); }
.band-steps .section,
.band-table .section,
.band-faq .section { padding: 2.4rem 0; }
.steps { display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
}
.step-n {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.step-n .field-icon { color: var(--accent); }
.step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

.seo p { margin-bottom: 1.05rem; color: var(--ink); }
.seo h2 { margin-top: 0; }
.seo-more {
  margin: 0.15rem 0 1.15rem;
}
.seo-more summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
  list-style: none;
}
.seo-more summary::-webkit-details-marker { display: none; }
.seo-more summary::after { content: " +"; font-weight: 500; }
.seo-more[open] summary::after { content: " –"; }
.seo-more p { margin-top: 0.9rem; margin-bottom: 0; }
.seo-more p + p { margin-top: 0.85rem; }
.sources { display: grid; gap: 0.55rem; margin: 1rem 0 0; }
.source-row { font-size: 0.92rem; }
.source-row a { color: var(--ink); }

.equiv { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.equiv table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.equiv th, .equiv td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.equiv th { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.equiv th:nth-child(1) { width: 44%; }
.equiv th:nth-child(2) { width: 32%; }
.equiv tr:last-child td { border-bottom: 0; }
.equiv td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.equiv td:last-child { white-space: nowrap; }
@media (max-width: 640px) {
  .equiv { overflow: visible; }
  .equiv thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .equiv table { font-size: 0.95rem; }
  .equiv tbody, .equiv tr, .equiv td { display: block; width: auto; }
  .equiv tr {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .equiv tr:last-child { border-bottom: 0; }
  .equiv th, .equiv td {
    padding: 0;
    border: 0;
    width: auto;
    white-space: normal;
  }
  .equiv td:first-child {
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 0.28rem;
  }
  .equiv td:nth-child(2) {
    font-variant-numeric: tabular-nums;
  }
  .equiv td:last-child {
    margin-top: 0.22rem;
    font-size: 0.82rem;
    color: var(--muted);
  }
  .equiv td:last-child a { color: var(--accent); }
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin-top: 0.5rem; color: var(--muted); }

.site-footer {
  padding: 2rem 0 2.8rem;
  color: var(--footer-muted);
  font-size: 0.88rem;
  background: var(--footer);
  margin-top: 0;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; margin-bottom: 0.55rem; }
.site-footer a { color: var(--footer-muted); text-decoration: none; }
.site-footer a:hover { color: var(--footer-fg); }

.legal { padding: 1.85rem 0 3.2rem; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.1rem; margin: 1.55rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); margin-bottom: 0.7rem; }
.legal ul { padding-left: 1.15rem; }

.noscript {
  margin-bottom: 0.8rem;
  padding: 0.7rem 0.85rem;
  background: var(--warn-soft);
  border-radius: 12px;
  color: var(--ink);
}

/* =============================================================
   8. Responsive extras
   ============================================================= */
@media (min-width: 960px) {
  .tool-card { padding: 1.85rem 1.95rem 1.7rem; }
}

/* =============================================================
   9. Print & reduced-motion
   ============================================================= */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .hero-sub, .privacy-badge, .ad-slot, .ad-toast, .ad-dialog,
  .oven, .section, .site-footer, .recipe-block summary, .recipe-actions,
  .cup-row, .conv-row, .trio, .install-card { display: none !important; }
  .hero h1 { font-size: 18pt; }
  .tool-card { box-shadow: none; border: 0; padding: 0; }
  .ficha, .result { display: block !important; }
}
body.is-print-ficha .site-header,
body.is-print-ficha .hero,
body.is-print-ficha .ad-slot,
body.is-print-ficha .ad-toast,
body.is-print-ficha .oven,
body.is-print-ficha .section,
body.is-print-ficha .site-footer,
body.is-print-ficha .install-card,
body.is-print-ficha .privacy-badge,
body.is-print-ficha .recipe-block summary,
body.is-print-ficha .recipe-actions,
body.is-print-ficha .conv-row,
body.is-print-ficha .trio,
body.is-print-ficha .cup-row,
body.is-print-ficha .result {
  display: none !important;
}
body.is-print-ficha .ficha { display: block !important; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .site-header { transition: none; }
  .swap-units svg { transition: none; }
}
