/* ============================================================
   BakeScale — Baking & Cooking Unit Converter Suite
   Shared stylesheet (English / 中文)
   Signature: measuring-cup tick marks, recipe-card tiles,
   warm cream + honey amber + cocoa ink palette
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --cream-50: #FDFAF4;
  --cream-100: #F6EFE2;
  --cream-200: #EDE2CD;
  --paper: #FFFDF8;
  --ink-900: #2B1D12;
  --ink-700: #46352A;
  --ink-500: #7C6A58;
  --ink-300: #B3A28E;
  --honey-700: #8A4C0E;
  --honey-600: #A45F15;
  --honey-500: #BE7320;
  --honey-400: #D18F3C;
  --honey-100: #F5E3C3;
  --honey-050: #FAF0DC;
  --sage-700: #4E6A44;
  --sage-500: #6E8A60;
  --sage-100: #E8EFE1;
  --clay-500: #C2603A;
  --clay-100: #F6E2D8;
  --line: #E8DCC6;
  --shadow-sm: 0 1px 2px rgba(43,29,18,.06), 0 2px 8px rgba(43,29,18,.05);
  --shadow-md: 0 2px 4px rgba(43,29,18,.07), 0 10px 28px rgba(43,29,18,.09);
  --shadow-lg: 0 6px 16px rgba(43,29,18,.10), 0 20px 50px rgba(43,29,18,.12);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --font-display: "Lora", "Songti SC", "SimSun", serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --maxw: 1120px;
  --header-h: 64px;
}

/* ---------- Reset & base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-700);
  background:
    radial-gradient(1200px 500px at 85% -80px, rgba(214,166,86,.10), transparent 60%),
    radial-gradient(900px 420px at -10% 10%, rgba(214,166,86,.07), transparent 55%),
    var(--cream-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--honey-600); text-decoration: none; }
a:hover { color: var(--honey-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); line-height: 1.22; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(190,115,32,.45); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--honey-100); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink-900); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Signature: measuring-cup tick marks ---------- */
.ticks {
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--honey-500) 0 2px, transparent 2px 10px);
  border-radius: 999px;
  margin: 0 0 14px;
}
.ticks-sm { height: 5px; margin-bottom: 10px; background-image: repeating-linear-gradient(90deg, var(--cream-200) 0 1.5px, transparent 1.5px 7px); }
.card-ticks { position: relative; overflow: hidden; }
.card-ticks::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--honey-500) 0 2px, transparent 2px 9px);
  opacity: .55;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--honey-600); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--honey-500); border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,250,244,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink-900); display: grid; place-items: center; color: var(--honey-400); flex: none; }
.brand-mark svg { width: 21px; height: 21px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-700); font-weight: 700; font-size: .95rem; }
.main-nav a:hover { background: var(--cream-100); color: var(--ink-900); }
.main-nav a[aria-current="page"] { color: var(--honey-700); background: var(--honey-050); }
.nav-drop { position: relative; }
.nav-drop > button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-weight: 700; font-size: .95rem; color: var(--ink-700); padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.nav-drop > button:hover { background: var(--cream-100); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 8px; display: none; z-index: 120;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; font-size: .92rem; }
.nav-drop-menu a:hover { background: var(--cream-100); }
.nav-drop-menu .d-ico { flex: none; margin-top: 2px; color: var(--honey-600); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper);
}
.lang-switch button { border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 800; padding: 6px 12px; cursor: pointer; color: var(--ink-500); }
.lang-switch button.active { background: var(--ink-900); color: var(--honey-400); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink-700);
}
.icon-btn:hover { border-color: var(--honey-400); color: var(--honey-700); }
.icon-btn .badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--clay-500); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 999px;
  display: grid; place-items: center; border: 2px solid var(--cream-50);
}
.menu-btn { display: none; }

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 150; background: rgba(43,29,18,.35);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  background: var(--paper); box-shadow: var(--shadow-lg); padding: 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav-panel h4 { margin: 14px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); }
.mobile-nav-panel > a { padding: 11px 10px; border-radius: 10px; font-weight: 700; color: var(--ink-700); }
.mobile-nav-panel > a:hover { background: var(--cream-100); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: .98rem; line-height: 1;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-900); color: #FFF6E8; }
.btn-primary:hover { background: #3A2A1C; color: #FFF6E8; box-shadow: var(--shadow-md); }
.btn-honey { background: var(--honey-600); color: #FFF7EA; }
.btn-honey:hover { background: var(--honey-700); color: #FFF7EA; box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--honey-400); color: var(--honey-700); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 9px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--honey-050); border: 1px solid var(--honey-100); color: var(--honey-700);
  font-size: .84rem; font-weight: 700;
}
.badge-pro {
  display: inline-flex; align-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px; background: var(--ink-900); color: var(--honey-400); text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: 1.13rem; color: var(--ink-500); max-width: 52ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-500); font-size: .88rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--sage-500); }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.hero-figure::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--honey-100); border-radius: var(--r-lg); z-index: -1;
}
.hero-float {
  position: absolute; left: -14px; bottom: 22px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-md); padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.hero-float .f-num { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--honey-700); }
.hero-float .f-label { font-size: .78rem; color: var(--ink-500); font-weight: 700; line-height: 1.3; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-100); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .ticks { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-500); font-size: 1.02rem; }

/* ---------- Tool cards grid ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tool-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 24px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--honey-300, #D9B87E); }
.tool-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--honey-050); color: var(--honey-600); display: grid; place-items: center; margin-bottom: 4px; }
.tool-ico svg { width: 24px; height: 24px; }
.tool-card h3 { margin-bottom: 2px; font-size: 1.16rem; }
.tool-card p { font-size: .92rem; color: var(--ink-500); margin: 0; flex: 1; }
.tool-card .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.tool-card .card-link { font-weight: 800; font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; }
.tool-card .card-link svg { transition: transform .15s ease; }
.tool-card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Converter widget ---------- */
.converter {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: clamp(22px, 4vw, 38px); max-width: 720px; margin: 0 auto;
}
.converter-wide { max-width: 880px; }
.cv-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.cv-col { display: flex; flex-direction: column; gap: 7px; }
.cv-col label { font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.cv-input, .cv-select {
  width: 100%; font: inherit; font-size: 1.12rem; font-weight: 700; color: var(--ink-900);
  padding: 13px 15px; border: 1.5px solid var(--cream-200); border-radius: 12px; background: var(--cream-50);
  min-height: 52px;
}
.cv-input:focus, .cv-select:focus { outline: none; border-color: var(--honey-500); background: #fff; box-shadow: 0 0 0 3px rgba(190,115,32,.14); }
.cv-swap {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer; color: var(--honey-600); margin-bottom: 2px; flex: none;
}
.cv-swap:hover { border-color: var(--honey-400); background: var(--honey-050); }
.cv-result {
  margin-top: 22px; background: var(--ink-900); color: #F6EAD7; border-radius: var(--r-md);
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cv-result .r-big { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; color: var(--honey-400); line-height: 1.15; }
.cv-result .r-sub { font-size: .85rem; color: #C9B89F; margin-top: 3px; }
.cv-actions { display: flex; gap: 8px; }
.cv-note { margin-top: 14px; font-size: .87rem; color: var(--ink-500); display: flex; gap: 8px; align-items: flex-start; }
.cv-note svg { flex: none; margin-top: 3px; color: var(--sage-500); }
.cv-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cv-presets button {
  border: 1px solid var(--line); background: var(--cream-50); color: var(--ink-700); font: inherit; font-size: .85rem;
  font-weight: 700; padding: 7px 13px; border-radius: 999px; cursor: pointer;
}
.cv-presets button:hover { border-color: var(--honey-400); color: var(--honey-700); }
.autocomplete { position: relative; }
.ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; max-height: 280px; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); display: none;
}
.ac-list.open { display: block; }
.ac-item { padding: 9px 14px; cursor: pointer; font-size: .92rem; display: flex; justify-content: space-between; gap: 10px; }
.ac-item:hover, .ac-item.sel { background: var(--honey-050); }
.ac-item .g { color: var(--ink-500); font-size: .8rem; font-weight: 700; white-space: nowrap; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--paper); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.tbl th, .tbl td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--cream-200); }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); background: var(--cream-100); font-weight: 800; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--cream-50); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Feature / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: step; }
.step-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm); }
.step-card .step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--honey-400); line-height: 1;
  display: block; margin-bottom: 10px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-card p { font-size: .9rem; color: var(--ink-500); margin: 0; }

/* ---------- Articles ---------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.art-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.art-card .art-cover { height: 150px; display: grid; place-items: center; background: var(--ink-900); color: var(--honey-400); position: relative; }
.art-card .art-cover svg { width: 52px; height: 52px; opacity: .9; }
.art-card .art-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.art-card h3 { font-size: 1.1rem; margin: 0; line-height: 1.35; }
.art-card h3 a { color: var(--ink-900); }
.art-card h3 a:hover { color: var(--honey-700); }
.art-card .art-excerpt { font-size: .9rem; color: var(--ink-500); margin: 0; flex: 1; }
.art-meta { font-size: .78rem; font-weight: 700; color: var(--ink-300); display: flex; gap: 10px; align-items: center; }
.art-meta .cat { color: var(--honey-600); }

/* Article prose */
.art-prose { max-width: 760px; margin: 0 auto; }
.art-prose h2 { margin-top: 1.9em; font-size: 1.55rem; }
.art-prose h3 { margin-top: 1.5em; font-size: 1.18rem; }
.art-prose p { margin-bottom: 1.15em; }
.art-prose ul, .art-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.art-prose li { margin-bottom: .45em; }
.art-prose blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--honey-400);
  background: var(--honey-050); border-radius: 0 12px 12px 0; color: var(--ink-700); font-style: italic;
}
.tipbox {
  display: flex; gap: 12px; background: var(--sage-100); border: 1px solid #CFDCC4; border-radius: var(--r-md);
  padding: 16px 18px; margin: 1.3em 0;
}
.tipbox svg { flex: none; color: var(--sage-700); margin-top: 2px; }
.tipbox strong { color: var(--sage-700); }
.warnbox { display: flex; gap: 12px; background: var(--clay-100); border: 1px solid #EAC9B8; border-radius: var(--r-md); padding: 16px 18px; margin: 1.3em 0; }
.warnbox svg { flex: none; color: var(--clay-500); margin-top: 2px; }
.art-prose table { font-size: .9rem; }
.art-header { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.art-header .ticks { margin-left: auto; margin-right: auto; }
.art-cover-img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin: 0 auto 30px; max-width: 100%; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 800; font-size: 1rem;
  color: var(--ink-900); padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q .faq-arrow { transition: transform .2s ease; color: var(--honey-600); flex: none; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--ink-500); font-size: .94rem; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin-bottom: .6em; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 18px 0 0; font-size: .84rem; font-weight: 700; color: var(--ink-500); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-300); }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--honey-700); }
.breadcrumbs [aria-current="page"] { color: var(--ink-900); }

/* ---------- Page hero (inner pages) ---------- */
.page-head { padding: 44px 0 12px; max-width: 820px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .lead { color: var(--ink-500); font-size: 1.08rem; margin: 0; }

/* ---------- Contact / forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px,4vw,34px); box-shadow: var(--shadow-md); max-width: 640px; }
.form-card label { display: block; font-size: .82rem; font-weight: 800; color: var(--ink-500); margin: 0 0 6px; }
.form-card input, .form-card textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--cream-200); border-radius: 12px;
  background: var(--cream-50); margin-bottom: 18px; color: var(--ink-900);
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--honey-500); background: #fff; box-shadow: 0 0 0 3px rgba(190,115,32,.14); }

/* ---------- Favorites drawer & toast ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 160; background: rgba(43,29,18,.4); display: none; }
.drawer-overlay.open { display: block; }
.fav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 170;
  background: var(--paper); box-shadow: var(--shadow-lg); transform: translateX(102%);
  transition: transform .25s ease; display: flex; flex-direction: column;
}
.fav-drawer.open { transform: translateX(0); }
.fav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.fav-drawer-head h3 { margin: 0; font-size: 1.15rem; }
.fav-list { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.fav-empty { color: var(--ink-500); text-align: center; padding: 40px 10px; font-size: .92rem; }
.fav-empty svg { margin: 0 auto 12px; color: var(--cream-200); }
.fav-item {
  display: flex; align-items: center; gap: 12px; background: var(--cream-50); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.fav-item .fav-txt { flex: 1; min-width: 0; }
.fav-item .fav-txt strong { display: block; font-size: .92rem; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-item .fav-txt span { font-size: .78rem; color: var(--ink-500); }
.fav-item .fav-del { border: 0; background: none; cursor: pointer; color: var(--ink-300); padding: 6px; border-radius: 8px; }
.fav-item .fav-del:hover { color: var(--clay-500); background: var(--clay-100); }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 200;
  background: var(--ink-900); color: #F6EAD7; padding: 12px 20px; border-radius: 12px; font-size: .9rem; font-weight: 700;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.heart-btn { border: 0; background: none; cursor: pointer; color: var(--ink-300); display: inline-grid; place-items: center; padding: 8px; border-radius: 10px; }
.heart-btn:hover { color: var(--clay-500); background: var(--clay-100); }
.heart-btn.saved { color: var(--clay-500); }

/* ---------- Cookie consent ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 180; max-width: 640px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 16px 18px; display: none; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { margin: 0; font-size: .86rem; color: var(--ink-500); flex: 1; min-width: 240px; }
.cookie-bar .btn { flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #C9B89F; margin-top: 72px; }
.footer-inner { padding: 56px 0 26px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand { color: #F6EAD7; }
.footer-brand p { font-size: .9rem; margin: 0; max-width: 30ch; }
.footer-col h4 { color: #F6EAD7; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col a { display: block; color: #C9B89F; font-size: .92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--honey-400); }
.footer-bottom { border-top: 1px solid rgba(246,234,215,.12); padding: 18px 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #C9B89F; }
.footer-bottom a:hover { color: var(--honey-400); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-900); color: #F6EAD7; border-radius: var(--r-lg); padding: clamp(28px,5vw,52px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(214,166,86,.14) 0 2px, transparent 2px 12px);
  opacity: .5;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #F6EAD7; margin-bottom: 10px; }
.cta-band p { color: #C9B89F; max-width: 52ch; margin: 0 auto 24px; }

/* ---------- Sitemap ---------- */
.sitemap-list { columns: 2; column-gap: 40px; }
.sitemap-list h3 { break-inside: avoid; margin-top: 8px; }
.sitemap-list ul { list-style: none; padding: 0; margin: 0 0 20px; }
.sitemap-list a { display: inline-block; padding: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .cv-row { grid-template-columns: 1fr; }
  .cv-swap { transform: rotate(90deg); margin: 4px auto; }
  .sitemap-list { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  input, select, textarea { font-size: 16px !important; }
  .section { padding: 44px 0; }
  .hero { padding: 40px 0 52px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .lang-switch button { min-width: 48px; min-height: 44px; padding: 8px 10px; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .tool-grid, .art-grid { grid-template-columns: 1fr; }
  .hero-float { left: 8px; bottom: 10px; padding: 10px 12px; }
  .icon-btn { width: 44px; height: 44px; }
  .btn, .btn-sm { min-height: 44px; }
  .btn-sm { padding: 12px 16px; }
  .main-nav a, .nav-drop > button { min-height: 44px; align-items: center; }
  .card-link { padding: 10px 6px; }
  .faq-q { min-height: 44px; }
  .skip-link { min-height: 44px; }
  .cookie-bar .btn { min-height: 44px; }
  .mobile-nav-panel a { padding: 13px 10px; }
  .art-meta { font-size: .82rem; }
  .hero-float .f-label, .hero-badge { font-size: .88rem; }
  .badge-pro { font-size: .72rem; padding: 4px 10px; }
  .cookie-bar p { font-size: .92rem; }
  .footer-bottom { font-size: .9rem; }
  .brand { min-height: 44px; }
  .tool-card .card-link, .art-card .card-link { min-height: 44px; padding: 10px 4px; }
  .hero-trust { font-size: .95rem; gap: 14px; }
  .cv-note { font-size: .95rem; }
  .footer-brand p { font-size: .92rem; }
  .art-meta { font-size: .88rem; }
  .badge-pro { font-size: .8rem; padding: 4px 10px; }
  .eyebrow { font-size: .95rem; }
  .footer-col a { min-height: 44px; padding: 11px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
