/* =====================================================================
   The Cozy Recipe Kitchen — main stylesheet
   Colors and fonts are defined once below; change them here.
   ===================================================================== */
:root {
  --cream: #FBF6EE;
  --paper: #FFFDF9;
  --sand: #F3E9DA;
  --line: #E4D8C6;
  --ink: #2A2723;
  --muted: #5E574E;
  --green: #2F5D43;
  --green-dark: #234832;
  --green-soft: #E4EDE3;
  --terracotta: #B5532F;
  --terracotta-soft: #F7E4D9;
  --focus: #C0603F;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(42, 39, 35, .06), 0 6px 20px rgba(42, 39, 35, .06);
  --shadow-hover: 0 2px 4px rgba(42, 39, 35, .08), 0 12px 28px rgba(42, 39, 35, .10);
  --max: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: .6em 1em; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--terracotta); margin-bottom: .6em;
}
.print-only { display: none; }
.js .no-js-only { display: none; }

/* ---------- Buttons, badges, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: .55em 1.15em; border-radius: 999px;
  border: 2px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: var(--paper); color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-small { min-height: 38px; padding: .35em .9em; font-size: .9rem; }
.link-btn {
  background: none; border: 0; padding: .25em 0; color: var(--green); cursor: pointer;
  text-decoration: underline; text-underline-offset: .18em;
}
.link-btn:hover { color: var(--terracotta); }

.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .2em .65em; border-radius: 999px; vertical-align: middle; white-space: nowrap;
}
.badge-untested { background: var(--terracotta-soft); color: #8A3A1D; border: 1px solid #E6BFA9; }
.badge-tested { background: var(--green-soft); color: var(--green-dark); border: 1px solid #BFD3BE; }
.badge-diet { background: var(--paper); color: var(--green-dark); border: 1px solid #BFD3BE; }
.badge-optional { background: var(--sand); color: var(--muted); font-weight: 600; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-block; padding: .45em 1em; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.chip:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 253, 249, .96); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--green); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.logo-mark { width: 44px; height: 44px; }

.nav-toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--ink);
}
.site-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-list > li { position: relative; }
.nav-list a, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: .25em; padding: .5em .7em; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-list a:hover, .dropdown-toggle:hover { background: var(--green-soft); color: var(--green-dark); }
.nav-list a[aria-current="page"], .dropdown-toggle[data-active] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.dropdown-toggle .chev { transition: transform .15s; }
.dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown {
  list-style: none; margin: 0; padding: .5rem; min-width: 250px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover);
}
.dropdown a { display: block; width: 100%; font-weight: 500; }
.dropdown-all { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.js .dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; }
.js .dropdown.open { display: block; }

.header-search { display: flex; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding-left: .9rem; }
.header-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.header-search input { border: 0; background: transparent; width: 200px; padding: .5em 0; outline: none; font-size: .95rem; }
.header-search button { background: none; border: 0; padding: .5em .8em; color: var(--green); cursor: pointer; border-radius: 999px; }

@media (max-width: 1240px) {
  .header-search input { width: 150px; }
  .nav-list a, .dropdown-toggle { padding: .5em .5em; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .75rem;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 20px 1.25rem;
    box-shadow: var(--shadow-hover); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .js .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a, .dropdown-toggle { width: 100%; padding: .75em .5em; justify-content: space-between; font-size: 1.05rem; }
  .nav-list a[aria-current="page"], .dropdown-toggle[data-active] { box-shadow: inset 3px 0 0 var(--green); }
  .js .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 0 .75rem; min-width: 0; }
  .header-search { order: -1; }
  .header-search input { width: 100%; flex: 1; font-size: 1rem; }
  .brand-name { font-size: 1.08rem; }
}


/* ---------- Breadcrumbs & page headers ---------- */
.breadcrumbs { margin: 1.25rem 0 .5rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25em; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35em; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.page-header { margin: 1rem 0 2rem; max-width: 760px; }
.page-updated { color: var(--muted); font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--paper), var(--cream)); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); margin-bottom: .35em; }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-search { margin: 1.5rem 0 1.25rem; max-width: 560px; }
.hero-search label { display: block; font-weight: 600; margin-bottom: .4rem; }
.hero-search-row { display: flex; gap: .5rem; }
.hero-search input {
  flex: 1; min-width: 0; min-height: 50px; padding: .6em 1.1em; border-radius: 999px;
  border: 1px solid #CFC2AE; background: #fff; font-size: 1rem;
}
.hero-search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.hero-search .btn { min-height: 50px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 460px; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.25rem; padding-bottom: 2.25rem; gap: 1rem; }
  .hero-visual { order: -1; }
  .hero-art { max-width: 260px; }
}
@media (max-width: 480px) {
  .hero-search .btn span { display: none; }
  .hero-search .btn { padding: .55em .9em; }
}

/* ---------- Home sections ---------- */
.category-strip { padding: 1.75rem 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.strip-title { font-size: 1.05rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
.home-section { padding: 3rem 0 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { margin: 0; color: var(--muted); }
.section-more { font-weight: 600; white-space: nowrap; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.learn-card {
  display: block; padding: 1.5rem; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.learn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--ink); }
.learn-card p { color: var(--muted); }
.learn-more { color: var(--green); font-weight: 600; }
.home-about { margin: 3rem 0 0; padding: 3rem 0; background: var(--green-soft); border-top: 1px solid #CFDDCD; }
@media (max-width: 760px) { .learn-grid { grid-template-columns: 1fr; } }

/* ---------- Recipe cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.home-section .card-grid, .related .card-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .home-section .card-grid, .related .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-section .card-grid, .related .card-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--terracotta); margin-bottom: .35rem; }
.card-title { font-size: 1.2rem; margin-bottom: .4rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card:hover .card-title a { color: var(--green); }
.card-desc { font-size: .95rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); margin: 0; font-weight: 600; }
.match-note { font-size: .85rem; color: var(--green-dark); background: var(--green-soft); border-radius: var(--radius-sm); padding: .3em .6em; margin: .7rem 0 0; }

/* ---------- Recipes page filters ---------- */
.filters {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.75rem; box-shadow: var(--shadow);
}
.filters label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.filter-search input {
  width: 100%; min-height: 48px; padding: .55em 1em; border: 1px solid #CFC2AE; border-radius: var(--radius-sm); background: #fff;
}
.filter-search p { margin: .35rem 0 1rem; }
.filter-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.field select {
  width: 100%; min-height: 44px; padding: .45em .6em; border: 1px solid #CFC2AE; border-radius: var(--radius-sm); background: #fff;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.filter-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.results-count { margin: 0 0 0 auto; font-weight: 600; color: var(--muted); }
.empty-state { text-align: center; padding: 2.5rem 1rem; background: var(--paper); border: 1px dashed #CFC2AE; border-radius: var(--radius); }
.empty-state .chips { justify-content: center; }
@media (max-width: 900px) { .filter-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .filter-row { grid-template-columns: 1fr; } .results-count { margin-left: 0; width: 100%; } }

/* ---------- Categories ---------- */
.category-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.category-tile { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.category-tile h2 { font-size: 1.3rem; }
.category-tile h2 a { text-decoration: none; color: var(--ink); }
.category-tile h2 a::after { content: ""; position: absolute; inset: 0; }
.category-tile:hover { border-color: var(--green); }
.category-tile:hover h2 a { color: var(--green); }
.category-tile p { color: var(--muted); margin-bottom: .5em; }
.more-cats { margin: 3rem 0 1rem; }

/* ---------- Recipe page ---------- */
.recipe-header { margin-bottom: 1.5rem; }
.recipe-desc { font-size: 1.18rem; color: var(--muted); }
.byline { font-size: .95rem; color: var(--muted); }
.quick-facts { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.quick-facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .45em .9em; display: flex; flex-direction: column; min-width: 96px; flex: 0 1 auto; }
.quick-facts span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.quick-facts strong { font-size: 1rem; }
.jump-bar { display: flex; flex-wrap: wrap; gap: .6rem; }
.recipe-hero { margin: 0 0 1.25rem; }
.recipe-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.recipe-hero figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.status-notice {
  background: var(--terracotta-soft); border: 1px solid #ECCBB8; border-left: 5px solid var(--terracotta);
  border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .95rem;
}
.status-notice .badge { margin-right: .4rem; }
.status-tested { background: var(--green-soft); border-color: #C9DAC7; border-left-color: var(--green); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.recipe-intro { margin: 1.5rem 0 2rem; }

.recipe-card {
  background: var(--paper); border: 2px solid var(--green); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); margin: 2rem 0 2.5rem; scroll-margin-top: 90px;
}
.recipe-card-head { padding: 1.5rem 1.6rem 1.25rem; background: var(--green-soft); border-bottom: 1px solid #C9DAC7; }
.recipe-card-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.recipe-card-desc { color: var(--muted); }
.diet-tags { margin: 0 0 .9rem; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem 1rem; margin: 0 0 1rem; }
.time-grid div { border-left: 3px solid var(--green); padding-left: .65rem; }
.time-grid dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.time-grid dd { margin: 0; font-weight: 600; }
.recipe-card-body { padding: 1.5rem 1.6rem 1.75rem; }
.recipe-card-body section { scroll-margin-top: 90px; }
.recipe-card-body h3 { font-size: 1.45rem; border-bottom: 2px solid var(--line); padding-bottom: .35rem; margin-top: .5rem; }
.ing-group-title { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); margin: 1.25rem 0 .4rem; }
@media (max-width: 640px) {
  .time-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-card-head, .recipe-card-body { padding-left: 1.1rem; padding-right: 1.1rem; }
}

.scaler { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: .75rem 0 1rem; }
.scaler-label { font-weight: 700; display: block; margin-bottom: .4rem; text-transform: capitalize; }
.scaler-controls { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.scaler-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--green); background: var(--paper);
  color: var(--green); font-size: 1.4rem; line-height: 1; cursor: pointer; font-weight: 700;
}
.scaler-btn:hover { background: var(--green); color: #fff; }
.scaler-input { width: 4.5em; height: 44px; text-align: center; border: 1px solid #CFC2AE; border-radius: var(--radius-sm); background: #fff; font-weight: 700; font-size: 1.1rem; }
.scaler-reset { margin-left: .5rem; }
.scaler-note { margin: .5rem 0 0; }

.ingredients { list-style: none; padding: 0; margin: 0 0 .5rem; }
.ingredient { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.ingredient:last-child { border-bottom: 0; }
.ingredient input { flex-shrink: 0; width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--green); cursor: pointer; }
.ingredient label { cursor: pointer; }
.ing-qty { font-weight: 700; }
.ing-note { color: var(--muted); }
.ingredient input:checked + label { text-decoration: line-through; color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: .2rem 0 .9rem 3.1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
}
.steps p { margin: 0; }
.recipe-notes h4 { font-family: var(--sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); margin-top: 1rem; }
.recipe-notes ul { margin-top: .25rem; }

.qa dt { font-weight: 700; margin-top: .9rem; }
.qa dd { margin: .25rem 0 0; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; }
.faq-list summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; list-style-position: inside; }
.faq-list summary:hover { color: var(--green); }
.faq-list details p { padding: 0 1rem 1rem; margin: 0; }
.share-box, .feedback-box { margin-top: 2.5rem; padding: 1.4rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.share-box h2, .feedback-box h2 { margin-top: 0; font-size: 1.4rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.feedback-box .btn { margin: .25rem .4rem .25rem 0; }
.related { background: var(--paper); border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; margin-top: 3rem; }

/* ---------- Content pages ---------- */
.content-page { margin-bottom: 3rem; }
.prose li { margin-bottom: .35em; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.table-wrap table { min-width: 420px; }
caption { text-align: left; font-weight: 700; padding: .75rem 1rem .25rem; }
th, td { text-align: left; padding: .6rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--green-soft); font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
.def-list dt { margin-top: 1rem; }
.def-list dd { margin: .4rem 0 0; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.contact-card h2 { margin-top: 0; }
.contact-card .btn { word-break: break-all; }
.contact-links li { margin-bottom: .6em; }
.sitemap-cols { max-width: none; }
.not-found { text-align: center; padding: 4rem 0; }
.not-found .hero-search { margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { background: #26332B; color: #E9E4DA; margin-top: 3rem; padding-top: 3rem; }
.home-about + .site-footer, .related + .site-footer { margin-top: 0; }
.site-footer a { color: #F3EDE2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.footer-about p { color: #CFC8BB; font-size: .95rem; }
.brand-footer { color: #fff; margin-bottom: .9rem; }
.footer-heading { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #B7D3BA; margin-bottom: .8rem; }
.footer-col ul, .footer-social { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45rem; font-size: .95rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .9rem; color: #CFC8BB; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .learn-card:hover { transform: none; }
}

/* ---------- Print: only the recipe card ---------- */
@media print {
  @page { margin: 1.5cm; }
  body { background: #fff; font-size: 11.5pt; line-height: 1.45; color: #000; }
  .site-header, .site-footer, .skip-link, .breadcrumbs, .recipe-header, .recipe-hero,
  .status-notice, .recipe-intro, .recipe-extra, .related, .no-print { display: none !important; }
  .print-only { display: block; }
  .container, .container.narrow { max-width: none; padding: 0; }
  .recipe-card { border: 1px solid #999; box-shadow: none; margin: 0; border-radius: 8px; }
  .recipe-card-head { background: #fff; border-bottom: 1px solid #999; }
  .time-grid { grid-template-columns: repeat(4, 1fr); }
  .time-grid div { border-left-color: #666; }
  .steps li::before { background: #fff; color: #000; border: 1.5px solid #000; }
  .steps li, .ingredient { break-inside: avoid; }
  .badge { border: 1px solid #999; background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .ingredient input:checked + label { text-decoration: none; color: #000; }
}
