:root {
  --bg: #f6efe4;
  --paper: #fffaf4;
  --paper-strong: #fffdf9;
  --ink: #201714;
  --muted: #6d5d52;
  --accent: #d95538;
  --accent-dark: #a53928;
  --accent-soft: #f4d8c8;
  --line: rgba(104, 72, 51, 0.14);
  --line-strong: rgba(104, 72, 51, 0.24);
  --shadow: 0 18px 50px rgba(78, 49, 30, 0.10);
  --shadow-soft: 0 10px 28px rgba(78, 49, 30, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 238, 221, 0.95), transparent 28%),
    radial-gradient(circle at top right, rgba(244, 216, 200, 0.7), transparent 30%),
    linear-gradient(180deg, #f3ebdf 0%, #fcf9f4 48%, #f6eee4 100%);
}

body.nav-open {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(252, 248, 242, 0.84);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(92, 60, 39, 0.05);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 1.4rem;
  padding: 0.8rem 0;
  position: relative;
  z-index: 2;
}

.brand-group {
  display: grid;
  gap: 0.35rem;
  align-items: center;
}

.brand img {
  width: min(220px, 100%);
  height: auto;
}

.brand-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 30rem;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-width: 0;
  width: 100%;
}

.nav-toggle,
.nav-backdrop {
  display: none;
}

.nav-toggle {
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: auto;
  min-width: 5.7rem;
  height: 3rem;
  padding: 0 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(104, 72, 51, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 240, 232, 0.92));
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(92, 60, 39, 0.08);
}

.nav-toggle-text {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.14rem 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(104, 72, 51, 0.16);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 20px rgba(92, 60, 39, 0.05);
  font-size: 0.92rem;
  font-weight: 700;
  margin-left: auto;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: 180ms ease;
}

.main-nav a {
  color: var(--ink);
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.56rem 0.82rem;
  border: 1px solid rgba(104, 72, 51, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 241, 233, 0.9));
  box-shadow: 0 6px 14px rgba(92, 60, 39, 0.06);
}

.main-nav a:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 229, 215, 0.95));
  color: var(--accent-dark);
  border-color: rgba(217, 85, 56, 0.22);
  transform: translateY(-1px);
}

.header-cta {
  border: 1px solid rgba(217, 85, 56, 0.22);
  background: rgba(217, 85, 56, 0.1);
  color: var(--accent-dark);
  font-weight: 800;
}

.header-cta:hover {
  background: var(--accent);
  color: #fff;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--heading-h1-size, clamp(2.15rem, 4.8vw, 4rem));
  line-height: 0.98;
  margin: 0.35rem 0 1rem;
}

h2 {
  font-size: var(--heading-h2-size, clamp(1.7rem, 3.1vw, 2.5rem));
  line-height: 1.05;
  margin: 0;
}

h3 {
  font-size: var(--heading-h3-size, 1.35rem);
  margin: 0;
}

.eyebrow,
.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow::before,
.meta::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.hero {
  position: relative;
  padding: 3.2rem 0 2rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 1.25rem 0 auto;
  height: 78%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 35%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(247, 232, 219, 0.76));
  border-bottom: 1px solid rgba(104, 72, 51, 0.08);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy,
.hero-feature,
.hero-strip-card,
.section-shell,
.filters-panel--boxed,
.card,
.video-card,
.contact-card,
.toc-card,
.search-item,
.related-links a {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-feature {
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58), rgba(255, 244, 236, 0.92)),
    var(--paper);
  max-width: 52rem;
}

.hero-copy h1 {
  max-width: 15ch;
  font-size: clamp(2.2rem, calc(var(--heading-h1-size, 4rem) * 0.88), var(--heading-h1-size, 4rem));
  line-height: 1.04;
  text-wrap: balance;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(217, 85, 56, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 1rem;
  font-size: 1.03rem;
}

.hero-quote {
  margin: 0 0 1.2rem;
  padding-left: 1rem;
  border-left: 4px solid rgba(217, 85, 56, 0.22);
  color: #5f4638;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
}

.global-search,
.recipe-filter-form {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.global-search input {
  flex: 1 1 18rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(110, 84, 65, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(217, 85, 56, 0.18);
  border-color: rgba(217, 85, 56, 0.4);
}

button,
.button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  min-height: 2.9rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #e1684c 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(170, 60, 40, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
.button:hover,
.section-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(170, 60, 40, 0.22);
}

.button.ghost,
.hero-actions .button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.ghost:hover,
.hero-actions .button:hover {
  background: var(--paper-strong);
  color: var(--accent-dark);
}

button.danger,
.button.danger {
  background: linear-gradient(180deg, #bc3b3b 0%, #982727 100%);
  box-shadow: 0 12px 24px rgba(120, 24, 24, 0.22);
}

button.danger:hover,
.button.danger:hover {
  box-shadow: 0 16px 28px rgba(120, 24, 24, 0.28);
}

.button.small {
  min-height: 2.5rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.helper-text {
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.hero-badges,
.hero-stats,
.hero-quick-links,
.page-head-meta,
.option-groups,
.tag-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-badges {
  margin-top: 1rem;
}

.hero-badges span,
.page-head-meta span,
.type-badge,
.tag-row span,
.stat-chip,
.insight-card {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.42rem 0.74rem;
  background: #f5e7da;
  color: #6d4434;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.2;
}

.hero-feature {
  display: grid;
  gap: 1rem;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.97), rgba(247, 233, 220, 0.95));
  min-height: 100%;
}

.hero-feature p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-chip {
  display: grid;
  gap: 0.18rem;
  justify-items: start;
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.stat-chip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.stat-chip span {
  font-size: 0.76rem;
  color: var(--muted);
}

.hero-quick-links {
  display: grid;
  gap: 0.7rem;
}

.hero-quick-links a {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(104, 72, 51, 0.12);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.hero-quick-links a:hover {
  color: var(--accent-dark);
  border-color: rgba(217, 85, 56, 0.25);
}

.hero-quick-links a span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.hero-strip-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem 1.2rem 1.25rem;
  border-radius: 24px;
}

.hero-strip-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.hero-strip-card span {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: 1.25rem 0 2rem;
}

.section-shell {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-intro {
  display: grid;
  gap: 0.35rem;
  max-width: 44rem;
}

.section-intro p:last-child,
.page-head p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-head {
  display: grid;
  gap: 0.55rem;
  padding: 2.1rem 0 1rem;
}

.page-head h1 {
  font-size: clamp(1.85rem, calc(var(--heading-h1-size, 4rem) * 0.68), calc(var(--heading-h1-size, 4rem) * 0.78));
  line-height: 1.08;
  margin: 0.15rem 0 0.55rem;
}

.page-head--feature {
  padding-bottom: 1.1rem;
}

.filters-panel {
  padding-bottom: 0.75rem;
}

.filters-panel--boxed {
  padding: 0.9rem 1rem 0.85rem;
  border-radius: 26px;
}

.filters-panel--boxed .recipe-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.72fr) minmax(180px, 0.72fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.filters-panel--boxed .recipe-filter-form input,
.filters-panel--boxed .recipe-filter-form select {
  min-width: 0;
  border: 1px solid rgba(152, 104, 74, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 246, 239, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(217, 85, 56, 0.05);
}

.filters-panel--boxed .recipe-filter-form button {
  min-width: 0;
  padding-inline: 1.1rem;
}

.ingredient-suggester {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  scroll-margin-top: 7rem;
  background:
    radial-gradient(circle at top right, rgba(244, 216, 200, 0.82), transparent 32%),
    linear-gradient(145deg, rgba(255, 251, 246, 0.99), rgba(247, 233, 220, 0.92));
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(78, 49, 30, 0.10);
}

.ingredient-suggester-head {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.35rem;
  align-items: stretch;
}

.ingredient-suggester .section-intro {
  display: grid;
  gap: 0.85rem;
  max-width: 64ch;
}

.ingredient-suggester-visual {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 100%;
}

.ingredient-suggester-visual img {
  width: 100%;
  height: 100%;
  min-height: 16.5rem;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(104, 72, 51, 0.16);
  box-shadow: 0 18px 34px rgba(78, 49, 30, 0.12);
}

.ingredient-suggester h2 {
  margin: 0;
}

.ingredient-suggester-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ingredient-suggester-benefits span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(104, 72, 51, 0.14);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(92, 60, 39, 0.05);
}

.ingredient-suggester-form {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.ingredient-suggester-form input {
  flex: 1 1 24rem;
  border: 1px solid rgba(152, 104, 74, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 246, 239, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(217, 85, 56, 0.05);
}

.ingredient-suggester-form button {
  min-width: 14rem;
}

.ingredient-suggester-form input::placeholder,
.filters-panel--boxed .recipe-filter-form input::placeholder {
  color: #81695b;
  opacity: 1;
}

.ingredient-suggester-form input:hover,
.filters-panel--boxed .recipe-filter-form input:hover,
.filters-panel--boxed .recipe-filter-form select:hover {
  border-color: rgba(217, 85, 56, 0.42);
}

.ingredient-suggester-form input:focus,
.filters-panel--boxed .recipe-filter-form input:focus,
.filters-panel--boxed .recipe-filter-form select:focus {
  outline: none;
  border-color: rgba(217, 85, 56, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 0 0 4px rgba(217, 85, 56, 0.11),
    0 10px 24px rgba(170, 60, 40, 0.08);
}

.ingredient-suggester-foot {
  display: grid;
  gap: 0.35rem;
}

.recommendation-grid {
  align-items: stretch;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
}

.recommendation-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.recommendation-score {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(217, 85, 56, 0.12);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.82rem;
}

.recommendation-block {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.recommendation-block strong {
  font-size: 0.95rem;
}

.recommendation-block p {
  margin: 0;
}

.ad-strip {
  margin: 1.35rem auto 2rem;
}

.ad-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ad-strip-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.promo-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(252,246,239,0.96));
  box-shadow: var(--shadow-soft);
}

.promo-card--footer {
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  padding: 0.9rem;
}

.promo-card-media img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.promo-card--footer .promo-card-media img {
  min-height: 120px;
}

.promo-card-body {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.promo-card-badge {
  justify-self: start;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(32, 23, 20, 0.08);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-card h3 {
  font-size: 1.35rem;
  line-height: 1.08;
}

.promo-card--footer h3 {
  font-size: 1.05rem;
}

.promo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.promo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.promo-placeholder {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem 1.2rem;
  border: 2px dashed rgba(92, 152, 210, 0.55);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(232, 243, 255, 0.92), rgba(219, 236, 255, 0.82));
  box-shadow: 0 10px 24px rgba(83, 126, 171, 0.10);
}

.promo-placeholder-badge {
  justify-self: start;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(92, 152, 210, 0.14);
  color: #3d6790;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-placeholder h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.14;
  color: #244668;
}

.promo-placeholder-place {
  font-weight: 800;
  color: #2d5f8f;
}

.promo-placeholder p {
  margin: 0;
  color: #45688a;
  line-height: 1.65;
}

.option-groups {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.option-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.filters-panel--boxed .option-groups {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}

.filters-panel--boxed .option-switch {
  flex: 1 1 22rem;
  min-width: 0;
}

.option-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-weight: 700;
}

.option-switch a.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.card-grid,
.video-grid,
.stack,
.toc-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid,
.stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.toc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.video-card,
.contact-card,
.toc-card {
  border-radius: 24px;
  overflow: hidden;
}

.card,
.video-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(78, 49, 30, 0.14);
  border-color: rgba(217, 85, 56, 0.22);
}

.card img,
.article-image,
.recipe-header img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-media {
  display: block;
}

.card-body {
  padding: 1.15rem;
}

.card h3 {
  margin: 0.35rem 0 0.65rem;
}

.card p,
.video-card p,
.contact-card p,
.search-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.video-card .card-body {
  padding-top: 1rem;
}

.video-card.large {
  grid-template-columns: 1fr;
}

.video-card-body {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.video-copy {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(104, 72, 51, 0.1);
}

.video-copy .meta::before {
  width: 1rem;
}

.video-copy h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.video-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.55rem;
}

.video-meta-pill {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  align-content: start;
  min-height: 4.1rem;
  padding: 0.8rem 0.88rem;
  border-radius: 18px;
  border: 1px solid rgba(104, 72, 51, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 239, 231, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.video-meta-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.video-meta-value {
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--ink);
}

.video-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.15rem;
  padding-top: 0.1rem;
}

.video-actions .button {
  width: 100%;
  min-height: 2.7rem;
  padding-inline: 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 10px 18px rgba(170, 60, 40, 0.14);
}

.video-actions .button.ghost {
  border-color: rgba(104, 72, 51, 0.14);
  background: rgba(255, 255, 255, 0.95);
}

.video-catalog {
  display: grid;
  gap: 1.25rem;
}

.catalog-more {
  display: flex;
  justify-content: center;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #100d0c;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(104, 72, 51, 0.12);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: auto;
}

.title-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(217, 83, 63, 0.42);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
  font-weight: 800;
}

.title-link:hover,
.inline-link:hover,
.toc-list a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent);
}

.inline-link { display: inline; }
.card-actions { margin-top: 1rem; }

.recipe-page,
.article-page {
  padding: 2rem 0 3rem;
}

.about-page {
  padding: 2rem 0 3rem;
}

.about-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 1.6rem;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.about-copy h1 {
  margin-bottom: 0.2rem;
}

.about-quote {
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid rgba(217, 85, 56, 0.28);
  border-radius: 0 18px 18px 0;
  background: rgba(244, 216, 200, 0.28);
  color: #6c4636;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.7;
  font-style: italic;
}

.about-prose {
  display: grid;
  gap: 1rem;
}

.about-prose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.about-photo-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 234, 223, 0.9));
  border: 1px solid rgba(104, 72, 51, 0.12);
  box-shadow: var(--shadow-soft);
}

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(104, 72, 51, 0.08);
}

.about-photo-caption {
  display: grid;
  gap: 0.2rem;
}

.about-photo-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.about-photo-caption span {
  color: var(--muted);
}

.article-page > h1,
.recipe-page h1 {
  font-size: var(--heading-h1-size, clamp(2rem, 3.7vw, 3rem));
  line-height: 1.08;
  margin-bottom: 0.9rem;
}

.recipe-header {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: start;
}

.recipe-editor-toolbar,
.recipe-editor-panel {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(104, 72, 51, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(246, 236, 227, 0.95));
  box-shadow: var(--shadow-soft);
}

.recipe-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  flex-wrap: wrap;
}

.recipe-editor-toolbar-copy {
  display: grid;
  gap: 0.2rem;
}

.recipe-editor-toolbar-copy strong {
  font-size: 1rem;
}

.recipe-editor-toolbar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.recipe-editor-panel {
  padding: 1.2rem;
}

.recipe-editor-form {
  display: grid;
  gap: 1rem;
}

.recipe-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 1rem;
}

.recipe-editor-fields,
.recipe-editor-media,
.recipe-editor-nav-cards {
  display: grid;
  gap: 0.9rem;
}

.recipe-editor-fields label,
.recipe-editor-upload {
  display: grid;
  gap: 0.4rem;
}

.rich-editor-field {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(104, 72, 51, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(217, 83, 63, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(246, 236, 227, 0.94));
  box-shadow: 0 18px 36px rgba(48, 31, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  scroll-margin-top: 6rem;
}

.rich-editor-shell {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(104, 72, 51, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.rich-editor-menu-bar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  padding: 0.2rem 0.2rem 0.5rem;
  border-bottom: 1px solid rgba(104, 72, 51, 0.12);
}

.rich-editor-menu-group {
  position: relative;
}

.rich-editor-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #544034;
  font-size: 0.88rem;
  font-weight: 700;
}

.rich-editor-menu-button:hover,
.rich-editor-menu-button.is-open {
  background: #fff;
  border-color: rgba(104, 72, 51, 0.14);
  box-shadow: 0 10px 24px rgba(32, 22, 16, 0.08);
}

.rich-editor-menu-caret {
  font-size: 0.72rem;
  opacity: 0.7;
}

.rich-editor-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 0.12rem;
  padding: 0.45rem;
  border: 1px solid rgba(104, 72, 51, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(29, 20, 15, 0.14);
  z-index: 9;
}

.rich-editor-menu[hidden],
.rich-editor-toolbar[hidden],
.rich-editor-visual[hidden],
.rich-editor-source[hidden] {
  display: none !important;
}

.rich-editor-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #433129;
  text-align: left;
}

.rich-editor-menu-item:hover {
  background: #f8f2ec;
  border-color: rgba(217, 83, 63, 0.14);
}

.rich-editor-menu-item-label {
  font-size: 0.86rem;
  font-weight: 700;
}

.rich-editor-shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.rich-editor-shell-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rich-editor-media-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(58, 120, 184, 0.24);
  background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
  color: #1c5d9e;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(58, 120, 184, 0.1);
}

.rich-editor-media-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(58, 120, 184, 0.14);
}

.rich-editor-select-wrap {
  display: inline-grid;
  gap: 0.25rem;
  min-width: 180px;
}

.rich-editor-select-wrap span {
  color: #7b6657;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rich-editor-select-wrap select {
  min-height: 40px;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(104, 72, 51, 0.18);
  border-radius: 12px;
  background: #fff;
}

.rich-editor-shell-status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: rgba(244, 239, 233, 0.9);
  border: 1px solid rgba(214, 203, 193, 0.9);
  color: #6d5547;
  font-size: 0.82rem;
  font-weight: 700;
}

.rich-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0.2rem;
  z-index: 3;
  padding-bottom: 0.2rem;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(246, 236, 227, 0.95));
}

.rich-editor-copy {
  display: grid;
  gap: 0.45rem;
  min-width: min(100%, 34rem);
}

.rich-editor-label {
  color: #3b2b24;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rich-editor-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rich-editor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rich-editor-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 83, 63, 0.14);
  color: #6f5240;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rich-editor-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 18px;
  border: 1px solid rgba(104, 72, 51, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rich-editor-mode button,
.rich-editor-tool {
  width: auto;
  min-height: 2.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.rich-editor-mode button:hover,
.rich-editor-tool:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 83, 63, 0.22);
}

.rich-editor-mode button.is-active {
  background: var(--accent);
  border-color: rgba(217, 83, 63, 0.14);
  color: #fff;
  box-shadow: 0 10px 20px rgba(217, 83, 63, 0.24);
}

.rich-editor-toolbar {
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid rgba(104, 72, 51, 0.12);
  border-radius: 20px;
  background: rgba(255, 251, 247, 0.9);
  position: sticky;
  top: 5.4rem;
  z-index: 2;
  box-shadow: 0 14px 28px rgba(41, 27, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.rich-editor-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 16px;
  border: 1px solid rgba(104, 72, 51, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 240, 234, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.rich-editor-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 2.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
}

.rich-editor-tool:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(31, 22, 17, 0.08);
}

.rich-editor-tool.is-active {
  background: linear-gradient(180deg, #fff1ed 0%, #fde4dc 100%);
  border-color: rgba(217, 83, 63, 0.22);
  color: #a53624;
  box-shadow: 0 10px 18px rgba(217, 83, 63, 0.12);
}

.rich-editor-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: inherit;
  flex: 0 0 auto;
}

.rich-editor-tool-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rich-editor-tool-label {
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rich-editor-visual,
.rich-editor-source {
  width: 100%;
  height: clamp(24rem, 48vh, 40rem);
  padding: 1rem 1.05rem;
  border: 1px solid rgba(104, 72, 51, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  overflow: auto;
  scrollbar-gutter: stable;
}

.rich-editor-visual {
  outline: none;
  line-height: 1.8;
}

.rich-editor-visual:focus,
.rich-editor-source:focus {
  border-color: rgba(217, 83, 63, 0.42);
  box-shadow: 0 0 0 4px rgba(217, 83, 63, 0.1);
}

.rich-editor-source {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.rich-editor-visual img,
.prose img,
.lead-rich img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.rich-editor-visual iframe,
.prose iframe,
.lead-rich iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 20px;
  background: #111;
}

.rich-editor-visual table,
.prose table,
.lead-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}

.rich-editor-visual th,
.rich-editor-visual td,
.prose th,
.prose td,
.lead-rich th,
.lead-rich td {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(104, 72, 51, 0.18);
  text-align: left;
}

.rich-editor-visual th,
.prose th,
.lead-rich th {
  background: #f7efe7;
  font-weight: 800;
}

.rich-editor-visual figure,
.prose figure,
.lead-rich figure {
  margin: 0 0 1rem;
}

.rich-editor-visual figcaption,
.prose figcaption,
.lead-rich figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.rich-editor-visual .media-embed,
.prose .media-embed,
.lead-rich .media-embed {
  display: grid;
  gap: 0.55rem;
}

.recipe-editor-fields span,
.recipe-editor-upload span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-editor-fields input,
.recipe-editor-fields textarea,
.recipe-editor-upload input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.recipe-editor-fields input,
.recipe-editor-fields textarea {
  padding: 0.85rem 0.95rem;
}

.recipe-editor-fields textarea {
  resize: vertical;
  min-height: 8rem;
}

.recipe-editor-upload {
  padding: 1rem;
  border-radius: 20px;
  border: 1px dashed rgba(104, 72, 51, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.recipe-editor-upload small {
  color: var(--muted);
}

.recipe-editor-image-preview {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.recipe-editor-image-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.recipe-editor-nav-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.recipe-editor-nav-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.recipe-editor-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.recipe-editor-delete {
  display: flex;
  justify-content: flex-end;
}

.recipe-editor-actions button {
  min-width: 12rem;
}

.recipe-editor-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.recipe-header img,
.article-image {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.recipe-meta-box {
  margin: 0.2rem 0 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(104, 72, 51, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(245, 235, 224, 0.92));
  box-shadow: var(--shadow-soft);
}

.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem 1rem;
}

.recipe-meta-item {
  display: grid;
  gap: 0.2rem;
}

.recipe-meta-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-meta-value {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.lead-rich {
  display: grid;
  gap: 0.8rem;
}

.action-row {
  align-items: center;
  margin-top: 1rem;
}

.recipe-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1rem 0 0.6rem;
}

.insight-card {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.insight-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1;
}

.insight-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

.insight-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-dark) !important;
}

.recipe-columns {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.4rem;
  margin-top: 2rem;
}

.prose {
  line-height: 1.85;
  color: #332923;
  white-space: normal;
}

.prose p,
.prose div,
.prose ul,
.prose ol,
.prose blockquote,
.prose h2,
.prose h3,
.prose h4,
.lead-rich p,
.lead-rich div {
  margin: 0 0 1rem;
}

.prose p:last-child,
.prose div:last-child,
.prose ul:last-child,
.prose ol:last-child,
.prose blockquote:last-child,
.prose h2:last-child,
.prose h3:last-child,
.prose h4:last-child,
.lead-rich p:last-child,
.lead-rich div:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose .align-left,
.lead-rich .align-left {
  text-align: left;
  justify-items: start;
  margin-right: auto;
}

.prose .align-center,
.lead-rich .align-center {
  text-align: center;
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
}

.prose .align-right,
.lead-rich .align-right {
  text-align: right;
  justify-items: end;
  margin-left: auto;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a,
.lead-rich a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.prose blockquote {
  padding: 0.9rem 1rem;
  border-left: 4px solid rgba(217, 83, 63, 0.32);
  border-radius: 0 18px 18px 0;
  background: rgba(248, 225, 210, 0.36);
  color: #6b4331;
  font-style: italic;
}

.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.2;
  color: #241b15;
}

.prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.prose h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
}

.prose h4 {
  font-size: 1.05rem;
}

.prose hr,
.lead-rich hr {
  border: 0;
  border-top: 1px solid rgba(104, 72, 51, 0.18);
  margin: 1.35rem 0;
}

.tip-box {
  margin-top: 1.2rem;
  background: #fff4e8;
  border: 1px solid #efd7b5;
  padding: 1rem 1.1rem;
  border-radius: 20px;
}

.tip-box .prose {
  margin-top: 0.8rem;
}

.rating-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(246, 234, 222, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.rating-copy {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.rating-form {
  display: grid;
  gap: 0.9rem;
}

.rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rating-star {
  position: relative;
}

.rating-star input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-star span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 2.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.rating-star input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.rating-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  color: var(--muted);
}

.related-links,
.search-results {
  display: grid;
  gap: 0.8rem;
}

.related-links a,
.search-item {
  padding: 1rem 1.05rem;
  border-radius: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.2rem;
  padding-bottom: 3rem;
}

.contact-card {
  padding: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  margin-bottom: 0.8rem;
}

.notice.error { background: #ffefef; color: #8b2d2d; }
.notice.success { background: #eefbf2; color: #215a33; }

.toc-card {
  padding: 1rem 1rem 1.1rem;
}

.toc-card--wide {
  padding: 1.15rem 1.15rem 1.25rem;
}

.toc-card--empty p {
  margin: 0;
  color: var(--muted);
}

.toc-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
}

.toc-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.toc-list--columns {
  columns: 3 220px;
  column-gap: 1.6rem;
  display: block;
}

.toc-list--columns li {
  break-inside: avoid;
  margin: 0 0 0.45rem;
}

.toc-list a {
  font-size: 0.96rem;
  line-height: 1.4;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(104, 72, 51, 0.1);
  background:
    linear-gradient(180deg, rgba(242, 231, 219, 0.82), rgba(239, 223, 208, 0.95));
}

.ad-strip--footer {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.footer-grid {
  grid-template-columns: 1.15fr 0.85fr 0.85fr 0.85fr;
  padding: 2rem 0;
}

.footer-grid h3 {
  margin-bottom: 0.7rem;
}

.footer-grid p {
  margin: 0.2rem 0;
  color: #614d41;
  line-height: 1.7;
}

.footer-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(217, 83, 63, 0.35);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

.footer-links a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent);
}

.footer-note {
  color: var(--accent-dark);
  font-weight: 700;
}

.legal-page {
  padding: 2rem 0 3rem;
}

.legal-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.legal-head {
  display: grid;
  gap: 0.7rem;
}

.legal-head h1 {
  max-width: 16ch;
}

.legal-intro,
.legal-updated {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 70ch;
}

.legal-updated {
  font-size: 0.92rem;
}

.legal-sections {
  display: grid;
  gap: 1rem;
}

.legal-section {
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 0.7rem;
}

.legal-section p {
  margin: 0.55rem 0 0;
  color: #57463d;
  line-height: 1.78;
}

.print-page { background: #fff; }
.print-only { max-width: 800px; }

@media (max-width: 1100px) {
  .hero-inner,
  .card-grid,
  .video-grid,
  .video-list,
  .ad-strip-grid,
  .footer-grid,
  .recipe-header,
  .recipe-columns,
  .contact-grid,
  .toc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .recipe-editor-grid {
    grid-template-columns: 1fr;
  }

  .rich-editor-head {
    align-items: stretch;
  }

  .rich-editor-mode {
    width: 100%;
    justify-content: space-between;
  }

  .rich-editor-shell-bar,
  .rich-editor-shell-controls {
    align-items: stretch;
  }

  .rich-editor-menu-bar {
    overflow: auto;
    scrollbar-width: thin;
    flex-wrap: nowrap;
  }

  .rich-editor-select-wrap {
    min-width: 0;
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recipe-columns {
    grid-template-columns: 1fr;
  }

  .recipe-editor-actions button {
    min-width: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 780px) {
  .site-header {
    z-index: 80;
  }

  .header-inner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0;
  }

  .brand-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand {
    flex: 0 0 auto;
    display: block;
  }

  .brand img {
    width: clamp(108px, 28vw, 132px);
    min-width: 108px;
  }

  .brand-note {
    display: none;
  }

  .header-nav-wrap {
    flex: 0 0 auto;
    margin-left: auto;
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-menu-open .nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-menu-open .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(70vh, 30rem);
    overflow: auto;
    padding: 0.75rem;
    border-radius: 26px;
    border: 1px solid rgba(104, 72, 51, 0.14);
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.99), rgba(248, 239, 230, 0.97));
    box-shadow: 0 24px 48px rgba(67, 41, 24, 0.18);
    backdrop-filter: blur(14px);
    gap: 0.55rem;
    z-index: 4;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 3.05rem;
    padding: 0.8rem 1rem;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(32, 23, 20, 0.22);
    backdrop-filter: blur(3px);
    z-index: 1;
  }

  body.nav-open .nav-backdrop {
    display: block;
  }

  .hero-inner,
  .hero-strip,
  .card-grid,
  .video-grid,
  .video-list,
  .ad-strip-grid,
  .footer-grid,
  .contact-grid,
  .recipe-header,
  .toc-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-feature,
  .section-shell,
  .about-card,
  .promo-card {
    padding: 1.2rem;
  }

  .promo-card,
  .promo-card--footer {
    grid-template-columns: 1fr;
  }

  .global-search,
  .hero-actions,
  .ingredient-suggester-form {
    flex-direction: column;
  }

  .filters-panel--boxed .recipe-filter-form {
    grid-template-columns: 1fr;
  }

  .filters-panel--boxed .option-groups {
    display: grid;
    justify-content: stretch;
    gap: 0.8rem;
  }

  .ingredient-suggester-head {
    grid-template-columns: 1fr;
  }

  .ingredient-suggester-visual {
    order: -1;
  }

  .ingredient-suggester-visual img {
    min-height: 12.5rem;
  }

  .global-search button,
  .hero-actions .button,
  .ingredient-suggester-form button {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head h1,
  .article-page > h1,
  .recipe-page h1 {
    font-size: min(var(--heading-h1-size, 1.9rem), 1.9rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, calc(var(--heading-h1-size, 4rem) * 0.66), calc(var(--heading-h1-size, 4rem) * 0.78));
  }

  .hero-copy .lead,
  .hero-feature p,
  .helper-text {
    font-size: 0.98rem;
  }

  .video-copy h3 {
    font-size: 1.12rem;
  }

  .option-switch span {
    width: 100%;
  }

  .toc-list--columns {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.1rem, 1180px);
  }

  .site-header {
    backdrop-filter: blur(12px);
  }

  .header-inner {
    gap: 0.55rem;
    padding: 0.5rem 0;
  }

  .brand img {
    width: clamp(100px, 30vw, 120px);
    min-width: 100px;
  }

  .brand-note {
    display: none;
  }

  .main-nav {
    width: calc(100vw - 1.1rem);
    right: -0.05rem;
    max-height: calc(100vh - 6rem);
  }

  .hero {
    padding: 1.6rem 0 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, calc(var(--heading-h1-size, 4rem) * 0.58), calc(var(--heading-h1-size, 4rem) * 0.7));
    line-height: 1.02;
  }

  .hero-quote {
    font-size: 1rem;
    line-height: 1.55;
  }

  .video-copy h3 {
    font-size: 1rem;
  }

  .video-meta-pill {
    width: 100%;
  }

  .video-actions {
    grid-template-columns: 1fr;
  }

  .rich-editor-toolbar-group {
    width: 100%;
  }

  .rich-editor-tool {
    flex: 1 1 calc(50% - 0.35rem);
    justify-content: center;
  }

  .rich-editor-menu {
    min-width: 200px;
  }

  .rich-editor-tool-label {
    display: none;
  }

  .rich-editor-media-button,
  .rich-editor-shell-status {
    width: 100%;
    justify-content: center;
  }

  .hero-badges span,
  .stat-chip,
  .hero-quick-links a,
  .section-link,
  .hero-actions .button,
  .global-search button {
    width: 100%;
  }

  .page-head {
    padding-top: 1.5rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .action-row {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .recipe-page {
    padding: 0;
  }
}
