:root {
  color-scheme: light;
  --cream: #fbf7f0;
  --cream-deep: #f3e9dc;
  --paper: rgba(255, 253, 249, 0.9);
  --paper-solid: #fffdf9;
  --ink: #302a2a;
  --muted: #786f6d;
  --wine: #9e3e59;
  --wine-deep: #722d42;
  --coral: #e27a71;
  --butter: #f2c56b;
  --sage: #9eb29d;
  --blush: #f4d9d3;
  --border: rgba(126, 84, 69, 0.16);
  --shadow: 0 22px 60px rgba(90, 54, 43, 0.1);
  --shadow-soft: 0 12px 30px rgba(90, 54, 43, 0.07);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 15%, rgba(242, 197, 107, 0.18), transparent 22rem),
    radial-gradient(circle at 89% 8%, rgba(226, 122, 113, 0.14), transparent 24rem),
    linear-gradient(180deg, #fffaf4 0%, var(--cream) 48%, #f6eee4 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}

body::before {
  top: 36%;
  left: -7rem;
  width: 19rem;
  height: 19rem;
  opacity: 0.45;
  background: radial-gradient(circle, rgba(158, 178, 157, 0.2), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}

body::after {
  right: -8rem;
  bottom: 5%;
  width: 23rem;
  height: 23rem;
  opacity: 0.48;
  background: radial-gradient(circle, rgba(244, 217, 211, 0.45), transparent 68%);
  animation: drift 22s ease-in-out -5s infinite alternate-reverse;
}

button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif; }

.site-header,
.page,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-footer { padding: 10px 0 32px; color: var(--muted); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(126, 84, 69, 0.14); }
.site-footer p { margin: 0; font-size: 0.82rem; line-height: 1.5; }
.site-footer a { color: var(--wine); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(158, 62, 89, 0.35); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--wine-deep); }
.site-footer a:focus-visible { outline: 3px solid rgba(226, 122, 113, 0.7); outline-offset: 3px; border-radius: 3px; }

.page-view { width: 100%; }
.page-view[hidden] { display: none !important; }
.nutrition-page, .education-page { display: grid; gap: 18px; }

.site-header { padding: 40px 0 22px; }

.brand {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  min-height: 390px;
  margin-bottom: 22px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(126, 84, 69, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(115deg, rgba(255, 253, 249, 0.96), rgba(255, 248, 239, 0.72)),
    var(--paper-solid);
  box-shadow: var(--shadow);
}

.brand::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.22;
  background-image: radial-gradient(rgba(114, 45, 66, 0.18) 0.7px, transparent 0.7px);
  background-size: 12px 12px;
  mask-image: linear-gradient(100deg, black, transparent 74%);
}

.brand::after {
  position: absolute;
  right: 31%;
  bottom: -12rem;
  width: 32rem;
  height: 32rem;
  content: "";
  border: 1px solid rgba(158, 178, 157, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(158, 178, 157, 0.08), 0 0 0 84px rgba(158, 178, 157, 0.05);
  transform: rotate(-22deg);
}

.brand-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 48px 20px 48px 56px;
  animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--wine-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50% 50% 48% 52%;
  color: #fffaf1;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: -0.03em;
  background: var(--wine);
  box-shadow: 3px 4px 0 rgba(242, 197, 107, 0.68);
  transform: rotate(-10deg);
}

.eyebrow,
.section-kicker {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 8ch;
  margin-bottom: 18px;
  color: var(--wine-deep);
  font-size: clamp(4.5rem, 9vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

h1 em {
  color: var(--coral);
  font-weight: 500;
}

.subtitle {
  max-width: 39ch;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.brand-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 217, 211, 0.82), rgba(242, 197, 107, 0.28)),
    #f7e6d5;
}

.brand-visual::before,
.brand-visual::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-visual::before {
  top: 14%;
  right: 9%;
  width: 11px;
  height: 11px;
  background: var(--wine);
  box-shadow: -145px 85px 0 2px rgba(158, 178, 157, 0.75), -40px 182px 0 1px rgba(226, 122, 113, 0.65), -204px 236px 0 1px rgba(158, 178, 157, 0.5);
  animation: bob 5s ease-in-out infinite;
}

.brand-visual::after {
  right: -4rem;
  bottom: -7rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(114, 45, 66, 0.15);
  box-shadow: 0 0 0 24px rgba(255, 253, 249, 0.26), 0 0 0 48px rgba(255, 253, 249, 0.18);
  transform: rotate(18deg);
}

.visual-sun {
  position: absolute;
  top: 9%;
  right: 16%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: rgba(242, 197, 107, 0.75);
  box-shadow: 0 0 0 20px rgba(242, 197, 107, 0.12), 0 0 0 42px rgba(242, 197, 107, 0.08);
  animation: breathe 7s ease-in-out infinite;
}

.visual-plate {
  position: absolute;
  right: 12%;
  bottom: -10%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(114, 45, 66, 0.15);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 249, 0.8) 0 57%, rgba(255, 253, 249, 0.14) 58% 63%, transparent 64%);
  box-shadow: 0 18px 30px rgba(114, 45, 66, 0.1);
  transform: rotate(-8deg);
}

.visual-bake {
  position: absolute;
  z-index: 2;
  bottom: 24%;
  width: 110px;
  height: 74px;
  border-radius: 48% 52% 44% 56%;
  background: linear-gradient(150deg, #d48150, #b7583f);
  box-shadow: inset -9px -9px 0 rgba(114, 45, 66, 0.14), 0 16px 20px rgba(114, 45, 66, 0.16);
  animation: bake-float 6s ease-in-out infinite;
}

.visual-bake::before,
.visual-bake::after,
.visual-bake span {
  position: absolute;
  width: 9px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #f6d895;
  transform: rotate(28deg);
}

.visual-bake::before { top: 18px; left: 25px; }
.visual-bake::after { top: 34px; left: 62px; }
.visual-bake span { top: 16px; left: 78px; }
.visual-bake-one { right: 29%; transform: rotate(-7deg); }
.visual-bake-two { right: 11%; bottom: 28%; width: 92px; height: 63px; animation-delay: -1.1s; transform: rotate(11deg); }
.visual-bake-three { right: 42%; bottom: 19%; width: 78px; height: 54px; animation-delay: -2.2s; transform: rotate(8deg); }

.visual-card {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  color: var(--wine-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(114, 45, 66, 0.15);
  box-shadow: 8px 10px 0 rgba(114, 45, 66, 0.08);
  backdrop-filter: blur(8px);
}

.visual-card strong { color: var(--coral); font-size: 1.15rem; font-weight: 600; }
.visual-card-top { top: 26%; left: 9%; transform: rotate(-7deg); }
.visual-card-bottom { right: 7%; bottom: 10%; transform: rotate(7deg); }
.visual-card-star { color: var(--coral); font-size: 1.2rem; }

.visual-label {
  position: absolute;
  z-index: 4;
  top: 30%;
  left: 12%;
  display: grid;
  gap: 5px;
  padding: 17px 18px;
  color: var(--paper-solid);
  background: var(--wine);
  box-shadow: 8px 10px 0 rgba(114, 45, 66, 0.1);
  transform: rotate(-7deg);
}

.visual-label span { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; }
.visual-label strong { font-family: "Iowan Old Style", Georgia, serif; font-size: 1.5rem; font-weight: 500; line-height: 0.9; }
.visual-dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--sage); animation: bob 4s ease-in-out infinite; }
.visual-dot-one { top: 21%; right: 23%; }
.visual-dot-two { top: 54%; right: 12%; width: 8px; height: 8px; background: var(--coral); animation-delay: -1s; }
.visual-dot-three { bottom: 20%; left: 24%; width: 8px; height: 8px; background: var(--butter); animation-delay: -2s; }

.header-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.header-actions > .button, .header-actions > a { display: inline-flex; align-items: center; gap: 7px; }
.header-actions .tab[aria-selected="true"], .header-actions .tab.is-active { border-color: var(--wine); color: var(--paper-solid); background: var(--wine); box-shadow: 0 8px 18px rgba(114, 45, 66, 0.16); }
.editor-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tab:hover { color: var(--wine); transform: translateY(-1px); }
.tab.is-active { color: var(--paper-solid); background: var(--wine); box-shadow: 0 6px 16px rgba(114, 45, 66, 0.18); }

.page { display: grid; gap: 18px; padding-bottom: 70px; }

.panel {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.panel:nth-child(2) { animation-delay: 0.08s; }
.panel:nth-child(3) { animation-delay: 0.16s; }
.panel:nth-child(4) { animation-delay: 0.24s; }
.panel h2 { margin-bottom: 10px; color: var(--wine-deep); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -0.05em; }
.panel h3 { color: var(--wine-deep); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.04em; }
.panel h4 { color: var(--wine-deep); font-size: 1.12rem; font-weight: 600; }
.panel p { color: var(--muted); line-height: 1.7; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .section-heading h3 { margin-bottom: 8px; }
.section-heading > div > p:last-child { margin-bottom: 0; }
.section-kicker { margin-bottom: 8px; }

.panel-recipes::after {
  position: absolute;
  top: -6rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  content: "";
  border: 1px solid rgba(242, 197, 107, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(242, 197, 107, 0.08), 0 0 0 56px rgba(242, 197, 107, 0.05);
}

.about-panel { padding: 28px 32px; }
.about-panel { background: linear-gradient(125deg, rgba(158, 178, 157, 0.18), rgba(255, 253, 249, 0.9)); }

.button {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.92);
  padding: 11px 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 17px rgba(90, 54, 43, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover { border-color: rgba(158, 62, 89, 0.3); box-shadow: 0 10px 22px rgba(90, 54, 43, 0.11); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible, a:focus-visible, summary:focus-visible, .education-category-button:focus-visible { outline: 3px solid rgba(226, 122, 113, 0.78); outline-offset: 3px; }
.button-primary { color: #fffaf4; border-color: var(--wine); background: var(--wine); box-shadow: 0 10px 22px rgba(114, 45, 66, 0.2); }
.button-primary:hover { background: var(--wine-deep); }
.button-small { padding: 8px 13px; font-size: 0.82rem; }
.tab-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.82; }
.recipes-tab, .favorites-tab, .nutrition-tab, .education-tab, .print-tab { display: inline-flex; align-items: center; min-height: auto; padding: 11px 17px; font-size: 1rem; font-weight: 700; text-decoration: none; }
.recipes-tab:hover, .favorites-tab:hover, .nutrition-tab:hover, .education-tab:hover, .print-tab:hover { color: var(--ink); }

.status-pill { margin: 0; padding: 8px 12px; border-radius: 999px; color: var(--wine-deep); background: var(--blush); white-space: nowrap; font-size: 0.8rem; font-weight: 800; }
.save-status[data-state="saving"] { color: #7c5a14; background: #f9e9b9; }
.save-status[data-state="dirty"] { color: #9e3e59; background: #f6d0cf; }
.save-status[data-state="saved"] { color: #597256; background: #dce9db; }

.jump-top-button { position: fixed; right: 22px; bottom: 22px; z-index: 30; font-weight: 800; box-shadow: 0 12px 28px rgba(114, 45, 66, 0.22); }

.recipe-list { display: grid; gap: 16px; }
.empty-state { display: grid; gap: 14px; justify-items: start; padding: 28px; border: 1px dashed rgba(158, 62, 89, 0.3); border-radius: 20px; background: rgba(244, 217, 211, 0.22); }
.empty-state p { margin-bottom: 0; }
.favorites-empty { justify-items: center; text-align: center; }
.favorites-empty strong { color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.35rem; font-weight: 600; }

.featured-recipe-panel { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 24px; margin: 0 0 22px; padding: 24px; border: 1px solid rgba(226, 122, 113, 0.3); border-radius: 21px; background: linear-gradient(120deg, rgba(244, 217, 211, 0.78), rgba(255, 253, 249, 0.9)); box-shadow: 0 12px 28px rgba(90, 54, 43, 0.07); }
.featured-recipe-media { width: 150px; height: 150px; overflow: hidden; border-radius: 16px; background: var(--blush); box-shadow: 0 10px 22px rgba(90, 54, 43, 0.09); }
.featured-recipe-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-recipe-copy { min-width: 0; }
.featured-recipe-copy h3 { margin: 0 0 8px; color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 500; letter-spacing: -0.05em; }
.featured-recipe-copy > p:not(.section-kicker) { max-width: 60ch; margin-bottom: 16px; }
.featured-recipe-copy .recipe-badge-row { overflow: visible; flex-wrap: wrap; }
.featured-recipe-button { flex: 0 0 auto; }
.recipe-search-wrap { display: grid; gap: 8px; margin: 0 0 22px; }
.recipe-search-label { color: var(--wine-deep); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.recipe-search-field { position: relative; display: flex; align-items: center; }
.recipe-search-field input { min-height: 52px; padding: 13px 52px 13px 46px; border-color: rgba(158, 62, 89, 0.2); border-radius: 16px; background: rgba(255, 253, 249, 0.88); }
.recipe-search-icon { position: absolute; left: 16px; z-index: 1; width: 19px; height: 19px; fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.recipe-search-field input::-webkit-search-cancel-button { display: none; }
.recipe-search-clear { position: absolute; right: 10px; display: inline-grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--wine-deep); background: rgba(244, 217, 211, 0.72); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.recipe-search-clear:hover { background: rgba(226, 122, 113, 0.24); }
.recipe-search-clear:focus-visible { outline: 3px solid rgba(226, 122, 113, 0.78); outline-offset: 2px; }
.recipe-search-status { min-height: 1.2em; margin: 0; color: var(--muted); font-size: 0.82rem; }

.review-section { margin-top: 4px; padding: 20px; border: 1px solid rgba(158, 178, 157, 0.48); border-radius: 17px; background: rgba(228, 238, 226, 0.42); }
.review-section .recipe-section-heading { align-items: flex-start; }
.review-section .recipe-section-heading p { margin: 4px 0 0; font-size: 0.84rem; }
.review-list { display: grid; gap: 10px; margin: 14px 0 18px; }
.review-empty { margin: 0; color: var(--muted); font-size: 0.86rem; }
.review-card { padding: 13px 14px; border: 1px solid rgba(126, 84, 69, 0.12); border-radius: 13px; background: rgba(255, 253, 249, 0.76); }
.review-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-card-header strong { color: var(--wine-deep); font-size: 0.9rem; }
.review-card p { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.owner-review-delete { justify-self: start; margin-top: 8px; }
.review-stars { color: #b96922; letter-spacing: 0.08em; white-space: nowrap; }
.review-form { display: grid; gap: 13px; }
.review-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr); gap: 14px; align-items: end; }
.review-image-grid { align-items: start; }
.review-image-grid .field > input { height: 48px; min-height: 48px; }
.faq-question-form .review-form-grid { align-items: stretch; }
.faq-question-form .field { grid-template-rows: auto 1fr; height: 100%; }
.faq-question-form .field > input, .faq-question-form .field > textarea { height: 100%; min-height: 104px; }
.rating-field { min-width: 0; padding: 0; border: 0; }
.rating-field legend { margin-bottom: 8px; color: var(--muted); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; }
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; min-height: 46px; align-items: center; padding: 0 10px; border: 1px solid rgba(126, 84, 69, 0.18); border-radius: 11px; background: rgba(255, 253, 249, 0.9); }
.star-rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-rating label { color: #c9b4aa; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #b96922; }
.star-rating input:focus-visible + label { outline: 3px solid rgba(226, 122, 113, 0.78); outline-offset: 3px; border-radius: 3px; }
.review-form-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-validation, .review-status { min-height: 1.3em; margin: 0; color: var(--wine-deep); font-size: 0.82rem; line-height: 1.5; }
.review-validation { color: #9e3e59; }
.review-owner-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.review-owner-delete { color: var(--muted); background: transparent; border-color: rgba(126, 84, 69, 0.16); font-size: 0.74rem; font-weight: 600; }
.review-owner-delete:hover { color: var(--wine-deep); border-color: rgba(158, 62, 89, 0.35); background: rgba(244, 217, 211, 0.38); }
.faq-community { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(126, 84, 69, 0.18); }
.faq-community-heading { display: grid; gap: 3px; }
.faq-community-heading h5 { margin: 0; color: var(--wine-deep); font-size: 1rem; }
.faq-community-heading p, .faq-question-empty { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.faq-question-list { display: grid; gap: 10px; }
.faq-question-card { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid rgba(126, 84, 69, 0.12); border-radius: 12px; background: rgba(251, 247, 240, 0.72); }
.faq-question-card strong { color: var(--wine-deep); font-size: 0.82rem; }
.faq-question-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.faq-question-answer { padding-left: 12px; border-left: 3px solid rgba(158, 62, 89, 0.28); }
.faq-question-answer strong { display: block; margin-bottom: 3px; }
.faq-question-form { display: grid; gap: 11px; }
.faq-question-form-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.faq-question-validation, .faq-question-status { min-height: 1.3em; margin: 0; color: var(--wine-deep); font-size: 0.8rem; line-height: 1.45; }
.faq-question-validation { color: #9e3e59; }
.owner-question-response { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(126, 84, 69, 0.18); }
.owner-question-response-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.owner-question-response-status { min-height: 1.3em; margin: 0; color: var(--wine-deep); font-size: 0.78rem; }
.recent-reviews-panel { margin-top: 22px; }
.recent-reviews-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recent-reviews-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.9rem; }
.recent-review-card { display: grid; gap: 8px; padding: 15px 16px; border: 1px solid rgba(126, 84, 69, 0.12); border-radius: 14px; background: rgba(255, 253, 249, 0.76); }
.recent-review-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.recent-review-header > div:first-child { display: grid; gap: 3px; min-width: 0; }
.recent-review-header strong { color: var(--wine-deep); font-size: 0.9rem; }
.recent-review-header span:not(.review-stars) { overflow: hidden; color: var(--muted); font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-review-meta { display: grid; justify-items: end; gap: 3px; }
.recent-review-meta time { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.recent-review-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.owner-editor-context { display: grid; gap: 14px; width: 100%; margin-bottom: 18px; }
.owner-editor-context[hidden], .owner-editor-surface[hidden] { display: none !important; }
.owner-editor-tab-shell { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(158, 62, 89, 0.22); border-radius: 20px; background: linear-gradient(120deg, rgba(244, 217, 211, 0.72), rgba(255, 253, 249, 0.96)); box-shadow: var(--shadow-soft); }
.owner-editor-tab-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.owner-editor-tab-heading h2 { margin: 0; color: var(--wine-deep); font-size: 1.45rem; font-weight: 500; }
.owner-editor-tab-heading p:last-child { max-width: 48ch; margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.owner-editor-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-editor-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; border: 1px solid rgba(126, 84, 69, 0.16); border-radius: 999px; color: var(--muted); background: rgba(255, 253, 249, 0.76); font: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.owner-editor-tab:hover { color: var(--wine-deep); border-color: rgba(158, 62, 89, 0.34); transform: translateY(-1px); }
.owner-editor-tab.is-active { color: var(--paper-solid); border-color: var(--wine); background: var(--wine); }
.owner-editor-tab:focus-visible { outline: 3px solid rgba(226, 122, 113, 0.72); outline-offset: 3px; }
.owner-reviews-management { display: grid; gap: 16px; padding: 20px; border: 1px solid rgba(158, 62, 89, 0.22); border-radius: 20px; background: rgba(255, 253, 249, 0.82); }
.owner-reviews-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.owner-reviews-heading h2 { margin: 0 0 6px; color: var(--wine-deep); font-size: 1.5rem; font-weight: 500; }
.owner-reviews-heading p:last-child { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }
.owner-review-filter { min-width: min(260px, 100%); }
.owner-reviews-management-status, .owner-review-empty { min-height: 1.3em; margin: 0; color: var(--muted); font-size: 0.84rem; }
.owner-review-management-list { display: grid; gap: 12px; }
.owner-review-card { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(126, 84, 69, 0.14); border-radius: 16px; background: rgba(251, 247, 240, 0.7); }
.owner-review-card-heading, .owner-review-card-meta, .owner-review-card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.owner-review-card-heading { justify-content: space-between; }
.owner-review-card-heading > div { display: grid; gap: 3px; }
.owner-review-card-heading strong { color: var(--wine-deep); }
.owner-review-card-heading span:not(.review-stars) { color: var(--muted); font-size: 0.78rem; }
.owner-review-card-fields { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 12px; }
.owner-review-card-meta .field { min-width: 150px; flex: 1 1 180px; }
.owner-review-card-actions { justify-content: flex-start; }
.owner-review-card-status { min-height: 1.2em; color: var(--wine-deep); font-size: 0.78rem; }
.owner-editor-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 16px 18px; border: 1px solid rgba(158, 62, 89, 0.22); border-radius: 18px; background: linear-gradient(120deg, rgba(244, 217, 211, 0.72), rgba(255, 253, 249, 0.94)); box-shadow: var(--shadow-soft); }
.owner-editor-toolbar-copy { min-width: 0; }
.owner-editor-toolbar-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 4px; }
.owner-editor-toolbar-heading .section-kicker { margin: 0; }
.owner-editor-toolbar h2 { margin: 0 0 4px; color: var(--wine-deep); font-size: 1.35rem; font-weight: 500; }
.owner-editor-toolbar-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; }
.owner-editor-toolbar-actions .button { white-space: nowrap; }
.owner-editor-toolbar-note { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(126, 84, 69, 0.12); }
.owner-editor-toolbar .editor-status-line { grid-column: 1 / -1; min-height: 1.2em; }
.owner-mode-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border: 1px solid rgba(114, 45, 66, 0.18); border-radius: 999px; color: var(--wine-deep); background: rgba(255, 253, 249, 0.78); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.owner-mode-badge-header { margin-bottom: 14px; }
.owner-editor-surface { display: grid; gap: 16px; }
.owner-nutrition-serving-note { display: grid; align-content: end; gap: 3px; min-height: 52px; padding: 9px 12px; border-radius: 12px; color: var(--wine-deep); background: rgba(228, 238, 226, 0.56); }
.owner-nutrition-serving-note strong { font-family: "Iowan Old Style", Georgia, serif; font-size: 1.1rem; font-weight: 600; }
.owner-nutrition-serving-note span { color: var(--muted); font-size: 0.78rem; }
.owner-nutrition-edit-card { max-width: 760px; }
.owner-editor-status { min-height: 1.2em; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.owner-local-controls { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(158, 62, 89, 0.18); border-radius: 15px; background: linear-gradient(120deg, rgba(244, 217, 211, 0.55), rgba(255, 253, 249, 0.82)); }
.owner-local-controls > div { display: grid; gap: 2px; min-width: 0; }
.owner-local-controls .section-kicker { margin: 0; font-size: 0.62rem; }
.owner-local-controls strong { color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.05rem; font-weight: 600; }
.owner-local-controls span { color: var(--muted); font-size: 0.78rem; }
.owner-local-controls .button { flex: 0 0 auto; }
.owner-section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.owner-recipe-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.owner-recipe-edit-button { align-self: start; margin-top: 15px; }
.owner-card-edit-button { position: absolute; top: 14px; right: 14px; z-index: 2; }
.swap-card { position: relative; }
.owner-editor-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(48, 42, 42, 0.34); backdrop-filter: blur(9px); }
.owner-editor-overlay[hidden] { display: none !important; }
.owner-editor-dialog { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(920px, 100%); max-height: min(900px, calc(100vh - 40px)); overflow: hidden; border: 1px solid rgba(126, 84, 69, 0.18); border-radius: 24px; background: var(--paper-solid); box-shadow: var(--shadow); }
.owner-editor-dialog-header, .owner-editor-dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; }
.owner-editor-dialog-header { border-bottom: 1px solid rgba(126, 84, 69, 0.12); }
.owner-editor-dialog-header h2 { margin: 0; color: var(--wine-deep); }
.owner-editor-dialog-header .section-kicker { margin: 0 0 3px; }
.owner-editor-dialog-actions { justify-content: flex-end; border-top: 1px solid rgba(126, 84, 69, 0.12); background: rgba(251, 247, 240, 0.72); }
.owner-editor-form { display: grid; gap: 16px; min-height: 0; overflow: auto; padding: 20px 22px; }
.owner-form-section { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(126, 84, 69, 0.13); border-radius: 18px; background: rgba(251, 247, 240, 0.62); }
.owner-form-section h3 { margin: 0; color: var(--wine-deep); }
.owner-form-section p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.owner-form-section-heading, .owner-editor-item-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.owner-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-bulk-add { display: flex; align-items: end; gap: 8px; }
.owner-bulk-add .field { min-width: 190px; }
.owner-bulk-add .field span { white-space: nowrap; }
.owner-editor-item-list { display: grid; gap: 12px; }
.owner-editor-item { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(126, 84, 69, 0.12); border-radius: 15px; background: rgba(255, 253, 249, 0.86); }
.owner-editor-item-heading strong { color: var(--wine-deep); font-size: 0.9rem; }
.owner-editor-item-label { display: inline-flex; align-items: center; gap: 8px; }
.owner-drag-handle { display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid rgba(126, 84, 69, 0.15); border-radius: 8px; color: var(--muted); background: rgba(251, 247, 240, 0.78); cursor: grab; }
.owner-drag-handle:active { cursor: grabbing; }
.owner-drag-handle:focus-visible { outline: 3px solid rgba(226, 122, 113, 0.7); outline-offset: 2px; }
.owner-drag-icon { width: 17px; height: 17px; fill: currentColor; }
.ingredient-editor-grid { display: grid; grid-template-columns: minmax(84px, 0.65fr) minmax(150px, 0.9fr) minmax(0, 1.8fr); gap: 12px; }
.ingredient-name-field { min-width: 0; }
.editor-custom-measurement { grid-column: 2 / -1; }
.owner-image-editor { display: grid; gap: 12px; padding-top: 6px; border-top: 1px dashed rgba(126, 84, 69, 0.18); }
.owner-image-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.owner-image-preview { display: block; width: min(100%, 360px); max-height: 210px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 18px rgba(90, 54, 43, 0.08); }
.owner-image-warning { margin: 0; padding: 10px 12px; border: 1px solid rgba(170, 95, 67, 0.28); border-radius: 10px; background: rgba(255, 239, 230, 0.8); color: #7b4434; font-size: 0.88rem; }
.owner-image-uploading { margin: 0; color: var(--muted-ink); font-size: 0.9rem; }
.owner-step-image-editor { margin-top: 4px; }
.recipe-body-meta { align-items: center; }
.recipe-body-meta .favorite-icon { width: 16px; height: 16px; }
.recipe-body-favorite { position: static; grid-area: auto; }
.recipe-body-badges { display: none; }
.owner-editor-open { overflow: hidden; }
.editor-workspace { display: grid; gap: 18px; }
.editor-preview-actions, .editor-actions, .editor-inline-actions, .editor-toolbar-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.editor-intro, .editor-help { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.editor-notice-stack { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid rgba(158, 178, 157, 0.36); border-radius: 18px; background: rgba(228, 238, 226, 0.46); }
.editor-status-line { min-height: 1.4em; color: var(--wine-deep); }
.editor-panel { display: grid; gap: 16px; padding: 24px; border: 1px solid rgba(126, 84, 69, 0.13); border-radius: 22px; background: rgba(255, 253, 249, 0.72); }
.editor-section-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.editor-section-heading h3 { margin-bottom: 7px; }
.editor-select-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 14px; align-items: end; }
.editor-compact-field { min-width: 0; }
.editor-card-grid { display: grid; gap: 16px; }
.editor-card { display: grid; gap: 16px; padding: 20px; border: 1px solid rgba(126, 84, 69, 0.13); border-radius: 18px; background: rgba(251, 247, 240, 0.74); }
.editor-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.editor-card-heading h4, .editor-card-heading h5 { margin: 0; }
.editor-card-subsection { display: grid; gap: 12px; padding-top: 8px; border-top: 1px dashed rgba(126, 84, 69, 0.18); }
.editor-form-grid { display: grid; gap: 14px; }
.editor-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editor-field-span-2 { grid-column: span 2; }
.editor-field-span-3 { grid-column: 1 / -1; }
.editor-item-list { display: grid; gap: 12px; }
.editor-item-card { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(126, 84, 69, 0.12); border-radius: 16px; background: rgba(255, 253, 249, 0.86); }
.editor-item-card-compact { gap: 10px; }
.editor-item-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.editor-item-toolbar strong { color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.03rem; font-weight: 600; }
.editor-export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editor-export-card p { margin: 0; }

.field { display: grid; gap: 8px; }
.field span { color: var(--muted); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; }
input, textarea, select { width: 100%; border: 1px solid rgba(126, 84, 69, 0.18); border-radius: 11px; outline: none; color: var(--ink); background: rgba(255, 253, 249, 0.9); padding: 12px 13px; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #aaa09b; }
input:focus, textarea:focus, select:focus { border-color: rgba(158, 62, 89, 0.55); background: #fffefb; box-shadow: 0 0 0 4px rgba(226, 122, 113, 0.12); }

.recipe-card {
  overflow: hidden;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 8px 24px rgba(90, 54, 43, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.recipe-card-shell { position: relative; min-width: 0; }
.favorite-button { position: static; z-index: auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; min-height: 34px; padding: 7px 12px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.favorite-button:hover { border-color: transparent; color: var(--muted); background: transparent; }
.favorite-button:focus-visible { outline: 3px solid rgba(226, 122, 113, 0.78); outline-offset: 3px; }
.favorite-button[aria-pressed="true"] { border-color: transparent; color: var(--muted); background: transparent; }
.favorite-button .favorite-button-label { padding: 0; border-radius: 0; color: inherit; background: transparent; }
.favorite-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.favorite-button[aria-pressed="true"] .favorite-icon { fill: currentColor; }

.recipe-card:hover { border-color: rgba(158, 62, 89, 0.25); transform: translateY(-2px); }
.recipe-card[open] { box-shadow: 0 18px 40px rgba(90, 54, 43, 0.11); }
.recipe-card-summary { list-style: none; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px 0; cursor: pointer; }
.recipe-card-summary::marker, .nutrition-card-summary::marker { content: ""; }
.recipe-card-summary::-webkit-details-marker, .nutrition-card-summary::-webkit-details-marker { display: none; }
.recipe-card-heading { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.recipe-card-title { min-width: 0; max-width: 40%; overflow: hidden; color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.04em; text-overflow: ellipsis; white-space: nowrap; }
.recipe-chevron { width: 20px; height: 20px; flex: 0 0 20px; margin-left: auto; fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.recipe-card[open] > .recipe-card-summary .recipe-chevron, .nutrition-card[open] > .nutrition-card-summary .recipe-chevron { transform: rotate(180deg); }
.recipe-badge-row { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; padding: 2px 0; scrollbar-width: thin; }
.recipe-badge { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 7px; min-width: 108px; min-height: 38px; padding: 8px 12px; border: 1px solid rgba(126, 84, 69, 0.14); border-radius: 999px; color: var(--muted); background: rgba(251, 247, 240, 0.82); font-size: 0.82rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.recipe-badge-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.72; }
.recipe-badge-value { overflow: hidden; text-overflow: ellipsis; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.recipe-card-body { display: grid; gap: 18px; margin-bottom: 24px; }
.recipe-card-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-height: 0; flex-wrap: wrap; }
.recipe-inline-print { display: none; align-items: center; gap: 7px; }
.recipe-inline-share { display: inline-flex; align-items: center; gap: 7px; }
.inline-action-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.favorite-button-label { display: inline; font-size: 0.78rem; font-weight: 700; }
.recipe-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; padding-top: 4px; }
.recipe-card-top p { margin-bottom: 0; font-size: 1.02rem; line-height: 1.7; }
.recipe-card-photo { width: 116px; height: 82px; flex: 0 0 116px; overflow: hidden; border-radius: 13px; background: var(--blush); box-shadow: 0 8px 18px rgba(90, 54, 43, 0.08); }
.recipe-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recipe-card h3 { margin: 0 0 8px; }
.recipe-card p { margin-bottom: 0; }
.recipe-details-summary, .recipe-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-details-summary span, .recipe-meta > span { padding: 7px 11px; border-radius: 999px; color: var(--wine-deep); background: #f7e8dc; font-size: 0.79rem; font-weight: 700; }
.recipe-details-summary strong { font-weight: 800; }
.recipe-meta { margin: 0; color: var(--muted); }
.recipe-meta > span { color: #597256; background: #e4eee2; }
.recipe-section { margin-top: 4px; padding: 20px; border: 1px solid rgba(126, 84, 69, 0.13); border-radius: 17px; background: rgba(251, 247, 240, 0.72); }
.recipe-section h4 { margin: 0; }
.recipe-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ingredient-preview-list { display: grid; gap: 9px; margin-top: 16px; }
.ingredient-preview { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-bottom: 1px dashed rgba(126, 84, 69, 0.2); }
.ingredient-preview strong { min-width: 104px; color: var(--wine-deep); font-weight: 600; }
.ingredient-preview span { color: var(--muted); }
.ingredient-preview-section { margin-top: 9px; padding: 12px 12px 6px; border-bottom: 1px solid rgba(158, 62, 89, 0.24); }
.ingredient-preview-section span { color: var(--wine); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.08rem; font-weight: 600; }
.step-preview-list, .faq-preview-list { display: grid; gap: 12px; margin-top: 16px; }
.step-preview { padding: 16px; border: 1px solid rgba(126, 84, 69, 0.12); border-radius: 14px; background: linear-gradient(145deg, rgba(244, 217, 211, 0.5), rgba(255, 253, 249, 0.84)); }
.step-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.step-line span { color: var(--coral); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.step-line strong { color: var(--wine-deep); font-size: 1.04rem; font-weight: 600; }
.step-preview > p:not(.step-line) { color: #5d5553; line-height: 1.7; }
.step-overview { color: var(--ink); font-weight: 600; }
.step-description { min-height: 90px; resize: vertical; color: var(--ink); line-height: 1.7; }
.image-placeholder { display: grid; min-height: 150px; place-items: center; border-radius: 12px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: repeating-linear-gradient(135deg, #f6e6dc 0, #f6e6dc 10px, #f9eee7 10px, #f9eee7 20px); }
.recipe-image { display: block; width: 100%; max-height: 260px; margin-top: 12px; border-radius: 12px; object-fit: cover; }
.recipe-tips-section { margin-top: 4px; }
.tip-list { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 22px; }
.tip-list li { color: var(--muted); line-height: 1.6; }
.faq-preview { padding: 13px 15px; border: 1px solid rgba(126, 84, 69, 0.12); border-radius: 13px; background: rgba(255, 253, 249, 0.74); }
.faq-preview summary { color: var(--wine-deep); cursor: pointer; font-weight: 700; }
.faq-preview p { margin: 10px 0 0; }

.print-picker-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(48, 42, 42, 0.34); backdrop-filter: blur(8px); }
.print-picker-overlay[hidden] { display: none; }
.print-picker { width: min(560px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow-y: auto; padding: 24px; border: 1px solid rgba(126, 84, 69, 0.18); border-radius: 22px; background: var(--paper-solid); box-shadow: var(--shadow); }
.print-picker-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.print-picker-header h2 { margin-bottom: 8px; }
.print-picker-header p:last-child { max-width: 38ch; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.print-picker-search-wrap { display: grid; gap: 8px; margin-top: 20px; }
.print-picker-search-label { color: var(--wine-deep); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; }
.print-picker-search-field { position: relative; display: flex; align-items: center; }
.print-picker-search-field input { width: 100%; min-height: 47px; padding: 11px 44px 11px 42px; border: 1px solid rgba(126, 84, 69, 0.18); border-radius: 13px; color: var(--ink); background: rgba(255, 253, 249, 0.82); font: inherit; }
.print-picker-search-field input:focus { border-color: rgba(158, 62, 89, 0.55); outline: none; box-shadow: 0 0 0 4px rgba(226, 122, 113, 0.12); }
.print-picker-search-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.print-picker-search-clear { position: absolute; right: 9px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.print-picker-search-clear:hover { color: var(--wine); background: rgba(244, 217, 211, 0.7); }
.print-picker-search-clear:focus-visible { outline: 3px solid rgba(226, 122, 113, 0.45); outline-offset: 2px; }
.print-picker-options { display: grid; gap: 8px; margin-top: 22px; }
.print-picker-option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(126, 84, 69, 0.12); border-radius: 13px; cursor: pointer; background: rgba(251, 247, 240, 0.62); transition: border-color 0.2s ease, background 0.2s ease; }
.print-picker-option:hover { border-color: rgba(158, 62, 89, 0.3); background: #fffaf3; }
.print-picker-option:focus-within { border-color: rgba(158, 62, 89, 0.55); box-shadow: 0 0 0 4px rgba(226, 122, 113, 0.12); }
.print-picker-option input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--wine); }
.print-picker-option span { display: grid; gap: 4px; min-width: 0; }
.print-picker-option strong { overflow: hidden; color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.print-picker-option small { overflow: hidden; color: var(--muted); font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.print-picker-empty { margin: 22px 0 0; padding: 18px; border: 1px dashed rgba(126, 84, 69, 0.2); border-radius: 13px; color: var(--muted); background: rgba(251, 247, 240, 0.62); }
.print-picker-status { min-height: 20px; margin: 10px 0 0; color: var(--wine); font-size: 0.82rem; font-weight: 700; }
.print-picker-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.share-overlay { position: fixed; inset: 0; z-index: 42; display: grid; place-items: center; padding: 20px; background: rgba(48, 42, 42, 0.34); backdrop-filter: blur(8px); }
.share-overlay[hidden] { display: none; }
.share-dialog { width: min(470px, 100%); padding: 24px; border: 1px solid rgba(126, 84, 69, 0.18); border-radius: 22px; background: var(--paper-solid); box-shadow: var(--shadow); }
.share-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.share-dialog-header h2 { margin-bottom: 0; }
.share-dialog-recipe { margin: 18px 0 0; color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.22rem; font-weight: 600; }
.share-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.share-option { display: grid; min-height: 76px; justify-items: center; gap: 7px; padding: 13px 10px; font-size: 0.82rem; }
.share-option-icon { display: inline-grid; min-width: 22px; min-height: 22px; place-items: center; color: var(--wine); font-size: 0.8rem; font-weight: 800; }
.share-option-icon:not(svg) { border: 1px solid currentColor; border-radius: 6px; }
svg.share-option-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-dialog-status { min-height: 1.4em; margin: 16px 0 0; color: var(--muted); font-size: 0.82rem; }

.swap-detail-overlay { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 20px; background: rgba(48, 42, 42, 0.34); backdrop-filter: blur(8px); }
.swap-detail-overlay[hidden] { display: none; }
.swap-detail-open { overflow: hidden; }
.swap-detail-dialog { width: min(760px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow-y: auto; padding: 26px; border: 1px solid rgba(126, 84, 69, 0.18); border-radius: 22px; background: var(--paper-solid); box-shadow: var(--shadow); }
.swap-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.swap-detail-header .section-kicker { margin: 0; }
.swap-detail-content .swap-card-modal { gap: 16px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.swap-detail-content .swap-card-modal .swap-card-media { height: 240px; margin: 0 0 4px; border-radius: 16px; }
.swap-detail-content .swap-card-modal h3 { font-size: clamp(1.7rem, 4vw, 2.35rem); }
.swap-detail-content .swap-card-modal .education-fact-list { gap: 10px; padding: 14px 0; }
.swap-detail-content .swap-card-modal .education-fact { gap: 12px; }
.swap-detail-content .swap-card-modal .education-fact > span { font-size: 0.68rem; }
.swap-detail-content .swap-card-modal .education-fact > strong, .swap-detail-content .swap-card-modal .education-fact > p { font-size: 0.94rem; line-height: 1.55; }
.swap-detail-content .swap-card-modal .education-important { gap: 6px; padding: 14px; }
.swap-detail-content .swap-card-modal .education-important > strong { font-size: 0.7rem; }
.swap-detail-content .swap-card-modal .education-important p { font-size: 0.9rem; line-height: 1.55; }

.nutrition-panel { display: grid; gap: 18px; }
.nutrition-content { display: grid; gap: 16px; }
.nutrition-intro { padding: 16px 18px; border: 1px solid rgba(158, 178, 157, 0.3); border-radius: 15px; background: rgba(228, 238, 226, 0.6); }
.nutrition-intro p { margin: 0; color: #597256; }
.nutrition-list { display: grid; gap: 13px; }
.nutrition-card { overflow: hidden; padding: 0 20px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255, 253, 249, 0.82); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.nutrition-card:hover { transform: translateY(-2px); }
.nutrition-card[open] { box-shadow: 0 16px 36px rgba(90, 54, 43, 0.1); }
.nutrition-card-summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 120px 20px; align-items: center; gap: 12px; padding: 18px 0; cursor: pointer; }
.nutrition-card-summary strong { min-width: 0; color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.nutrition-card-summary .nutrition-yield { width: auto; margin-left: 0; color: var(--muted); font-size: 0.8rem; font-weight: 700; text-align: right; }
.nutrition-card-summary .recipe-chevron { margin-left: auto; }
.nutrition-card-body { display: grid; gap: 14px; padding-bottom: 20px; }
.nutrition-section { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(126, 84, 69, 0.14); }
.nutrition-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nutrition-section-heading h3 { margin: 0; }
.nutrition-serving-note { margin: -4px 0 4px; color: var(--muted); font-size: 0.87rem; }
.nutrition-facts-list { display: grid; gap: 12px; }
.nutrition-facts-card { padding: 16px 18px; border: 1px solid rgba(126, 84, 69, 0.15); border-radius: 14px; background: #fffaf3; }
.nutrition-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.nutrition-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; padding: 9px 0; border-bottom: 1px solid rgba(126, 84, 69, 0.12); }
.nutrition-row:last-child { border-bottom: 0; }
.nutrition-row-label { color: var(--ink); font-size: 0.82rem; font-weight: 650; }
.nutrition-row-value { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 4px; min-width: 7ch; color: var(--wine-deep); white-space: nowrap; }
.nutrition-row-value strong { font-weight: 700; }
.nutrition-row-value small { color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.nutrition-row input { min-width: 0; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; font-weight: 800; text-align: right; }
.nutrition-row input:focus { outline: none; box-shadow: none; background: transparent; }
.nutrition-row:focus-within { border-bottom-color: rgba(158, 62, 89, 0.42); }
.nutrition-row-static .nutrition-value { color: var(--ink); text-align: right; }

#education-content { display: grid; gap: 18px; }
.education-page { gap: 18px; }
.education-category-sections { display: grid; gap: 18px; }
.education-category-section { scroll-margin-top: 24px; }
.education-category-section-heading { margin: 4px 0 10px; }
.education-category-section-heading .section-kicker { margin-bottom: 5px; }
.education-category-section-heading h3 { margin: 0; color: var(--wine-deep); font-size: 1.55rem; font-weight: 500; }
.education-intro { background: linear-gradient(125deg, rgba(228, 238, 226, 0.68), rgba(255, 253, 249, 0.94)); }
.education-intro > p:not(.section-kicker) { max-width: 70ch; }
.education-principles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.education-principles span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: var(--wine-deep); background: rgba(255, 253, 249, 0.72); font-size: 0.79rem; font-weight: 700; }
.education-principles strong { color: var(--coral); font-size: 0.68rem; letter-spacing: 0.08em; }
.education-visual { background: linear-gradient(135deg, rgba(228, 238, 226, 0.9), rgba(244, 217, 211, 0.78)); }
.education-brand { min-height: 300px; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); }
.education-brand .brand-copy { padding-top: 32px; padding-bottom: 32px; }
.education-brand h1 { max-width: 12ch; font-size: clamp(3.5rem, 6vw, 6rem); line-height: 0.82; }
.education-brand .brand-visual { min-height: 300px; }
.education-orbit { position: absolute; z-index: 2; border: 1px solid rgba(114, 45, 66, 0.18); border-radius: 50%; transform: rotate(-22deg); }
.education-orbit-one { top: 18%; left: 18%; width: 56%; height: 32%; }
.education-orbit-two { top: 39%; left: 26%; width: 45%; height: 25%; transform: rotate(35deg); }
.education-label { position: absolute; z-index: 5; top: 31%; left: 13%; display: grid; gap: 5px; padding: 17px 18px; color: var(--paper-solid); background: var(--wine); box-shadow: 8px 10px 0 rgba(114, 45, 66, 0.1); transform: rotate(-8deg); }
.education-label span { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; }
.education-label strong { font-family: "Iowan Old Style", Georgia, serif; font-size: 1.5rem; font-weight: 500; line-height: 0.9; }
.education-brand #education-hero-intro { margin-top: 24px; }
.education-panel { background: rgba(255, 253, 249, 0.88); }
.education-category-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 20px 0 10px; }
.education-category-button { display: grid; min-height: 82px; gap: 7px; align-content: center; padding: 12px 13px; border: 1px solid rgba(126, 84, 69, 0.15); border-radius: 14px; color: var(--muted); text-align: left; background: rgba(251, 247, 240, 0.72); cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.education-category-button.has-image { grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; }
.education-category-button-media { display: block; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: var(--blush); }
.education-category-button-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.education-category-button-copy { display: grid; gap: 7px; min-width: 0; }
.education-category-button:hover { border-color: rgba(158, 62, 89, 0.3); color: var(--wine-deep); background: #fffaf3; transform: translateY(-2px); }
.education-category-button[aria-pressed="true"] { border-color: var(--wine); color: var(--paper-solid); background: var(--wine); box-shadow: 0 8px 18px rgba(114, 45, 66, 0.16); }
.education-category-button strong { font-family: "Iowan Old Style", Georgia, serif; font-size: 1.05rem; font-weight: 600; }
.education-category-button span { font-size: 0.71rem; line-height: 1.35; }
.education-category-button[aria-pressed="true"] span { color: rgba(255, 253, 249, 0.78); }
.education-filter-status { min-height: 20px; margin: 0 0 10px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.swap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swap-card { display: grid; align-content: start; gap: 9px; padding: 15px; border: 1px solid rgba(126, 84, 69, 0.14); border-radius: 16px; background: linear-gradient(145deg, rgba(251, 247, 240, 0.8), rgba(255, 253, 249, 0.94)); box-shadow: 0 8px 22px rgba(90, 54, 43, 0.04); }
.swap-card-media { overflow: hidden; height: 156px; margin: -15px -15px 3px; border-radius: 16px 16px 10px 10px; background: var(--blush); }
.swap-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swap-card-featured { border-color: rgba(158, 62, 89, 0.28); background: linear-gradient(145deg, rgba(244, 217, 211, 0.55), rgba(255, 253, 249, 0.96)); }
.swap-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.swap-number { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--paper-solid); background: var(--wine); font-family: "Iowan Old Style", Georgia, serif; font-size: 0.94rem; }
.swap-tag { color: var(--coral); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.swap-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 2px 0 0; color: var(--muted); font-size: 0.82rem; }
.swap-line strong { color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.swap-card h3 { margin: 0; color: var(--wine-deep); font-size: 1.28rem; font-weight: 500; }
.swap-card > p:not(.swap-line):not(.swap-tip) { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.education-fact-list { display: grid; gap: 6px; padding: 9px 0; border-top: 1px dashed rgba(126, 84, 69, 0.18); border-bottom: 1px dashed rgba(126, 84, 69, 0.18); }
.education-fact { display: grid; grid-template-columns: minmax(84px, 0.78fr) minmax(0, 1.22fr); gap: 7px; align-items: start; }
.education-fact > span { color: var(--coral); font-size: 0.59rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.education-fact > strong, .education-fact > p { margin: 0; color: var(--ink); font-size: 0.77rem; font-weight: 600; line-height: 1.4; }
.education-fact > p { font-weight: 400; }
.education-important { display: grid; gap: 3px; padding: 9px 10px; border-radius: 10px; background: rgba(244, 217, 211, 0.46); }
.education-important > strong { color: var(--wine-deep); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.education-important p { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.4; }
.swap-tip { margin: 0; padding-top: 12px; border-top: 1px dashed rgba(126, 84, 69, 0.2); color: var(--muted); font-size: 0.79rem; line-height: 1.6; }
.swap-tip strong { color: var(--wine-deep); }
.education-note { background: linear-gradient(125deg, rgba(244, 217, 211, 0.58), rgba(255, 253, 249, 0.94)); }
.education-note > p:not(.section-kicker) { max-width: 68ch; }
.comparison-panel { background: linear-gradient(125deg, rgba(251, 247, 240, 0.92), rgba(255, 253, 249, 0.96)); }
.comparison-table { overflow: hidden; border: 1px solid rgba(126, 84, 69, 0.14); border-radius: 16px; }
.comparison-row { display: grid; grid-template-columns: 1.15fr 1fr 1.25fr 1.2fr; }
.comparison-row:not(.comparison-head) { border-top: 1px solid rgba(126, 84, 69, 0.12); }
.comparison-head { color: var(--paper-solid); background: var(--wine); }
.comparison-cell { min-width: 0; padding: 13px 14px; color: var(--muted); font-size: 0.81rem; line-height: 1.5; }
.comparison-head .comparison-cell { color: var(--paper-solid); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.comparison-ingredient strong { color: var(--wine-deep); font-family: "Iowan Old Style", Georgia, serif; font-size: 1rem; font-weight: 600; }
.education-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.education-choice-card { display: grid; gap: 11px; padding: 20px; border: 1px solid rgba(126, 84, 69, 0.14); border-radius: 17px; background: rgba(251, 247, 240, 0.7); }
.education-choice-card .swap-number { width: 30px; height: 30px; font-size: 0.82rem; }
.education-choice-card h3 { margin: 0; color: var(--wine-deep); font-size: 1.32rem; font-weight: 500; }
.education-choice-card p { margin: 0; color: var(--muted); font-size: 0.87rem; line-height: 1.65; }
.education-sources { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(126, 84, 69, 0.14); }
.education-sources h3 { margin-bottom: 12px; font-size: 1.25rem; }
.source-list { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.source-list li, .source-list a { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.source-list a { color: var(--wine); font-weight: 700; }
.source-list a:hover { color: var(--wine-deep); }

.print-recipe-view { display: none; }

@media print {
  @page { margin: 0.65in; }

  html { scroll-behavior: auto; }
  html, body {
    min-height: 0;
    background: #fff !important;
    color: #111 !important;
  }

  body {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
  }

  body > *:not(#print-recipe-view) { display: none !important; }

  #print-recipe-view {
    display: block !important;
    color: #111;
  }

  .print-recipe-sheet {
    width: 100%;
    max-width: none;
  }

  .print-recipe-sheet + .print-recipe-sheet {
    break-before: page;
    page-break-before: always;
  }

  .print-recipe-header {
    padding-bottom: 18px;
    border-bottom: 2px solid #111;
  }

  .print-recipe-brand {
    margin: 0 0 7px;
    color: #111;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .print-recipe-header h1 {
    margin: 0 0 9px;
    color: #111;
    font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.12;
  }

  .print-recipe-summary {
    max-width: 70ch;
    margin: 0;
    font-size: 11pt;
    line-height: 1.5;
  }

  .print-recipe-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
  }

  .print-recipe-meta span {
    display: grid;
    gap: 3px;
    font-size: 9pt;
  }

  .print-recipe-meta strong {
    font-size: 10pt;
    font-weight: 700;
  }

  .print-recipe-section {
    margin-top: 20px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-recipe-section h2 {
    margin: 0 0 9px;
    padding-bottom: 5px;
    border-bottom: 1px solid #111;
    color: #111;
    font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
    font-size: 16pt;
    font-weight: 700;
    line-height: 1.2;
    break-after: avoid;
    page-break-after: avoid;
  }

  .print-ingredient-group {
    margin-top: 12px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-ingredient-group h3 {
    margin: 0 0 5px;
    font-size: 11pt;
    break-after: avoid;
    page-break-after: avoid;
  }

  .print-ingredient-list,
  .print-instructions {
    margin: 0;
    padding-left: 22px;
  }

  .print-ingredient-list li,
  .print-instructions li {
    margin: 0 0 6px;
    font-size: 10.5pt;
    line-height: 1.45;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-ingredient-list li strong { font-weight: 700; }

  .print-instructions li { padding-left: 3px; }

  .print-instructions li h3 {
    display: inline;
    margin: 0;
    font-size: 10.5pt;
    font-weight: 700;
    break-after: avoid;
    page-break-after: avoid;
  }

  .print-instructions li p {
    display: inline;
    margin: 0;
    white-space: pre-line;
  }

  .print-tips,
  .print-faqs {
    margin: 0;
    padding-left: 20px;
  }

  .print-tips li {
    margin-bottom: 6px;
    font-size: 10.5pt;
    line-height: 1.45;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-faqs > div {
    margin-bottom: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-faqs dt {
    font-size: 10.5pt;
    font-weight: 700;
  }

  .print-faqs dd {
    margin: 3px 0 0;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .print-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
  }

  .print-nutrition-grid span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #bbb;
    font-size: 10pt;
  }

  .print-nutrition-grid strong { font-weight: 700; }

  a,
  button { color: inherit; text-decoration: none; }
  a::after { content: none !important; }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(28px, -20px, 0) rotate(8deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes bake-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (max-width: 820px) {
  .site-header, .page, .site-footer { width: min(100% - 28px, 700px); }
  .brand { grid-template-columns: 1fr; }
  .brand-copy { padding: 38px 30px 26px; }
  .brand-visual { min-height: 275px; }
  .education-brand .brand-visual { min-height: 275px; }
  .visual-plate { right: 14%; bottom: -47%; width: 52%; }
  .visual-sun { top: 12%; right: 18%; width: 90px; height: 90px; }
  .visual-bake { bottom: 25%; transform: scale(0.78) rotate(-7deg); transform-origin: bottom right; }
  .visual-bake-two { right: 7%; bottom: 28%; }
  .visual-bake-three { right: 36%; bottom: 18%; }
  .visual-card-top { top: 20%; left: 9%; }
  .visual-card-bottom { right: 6%; bottom: 8%; }
  h1 { font-size: clamp(4rem, 15vw, 6rem); }
  .ingredient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingredient-grid .field:last-child { grid-column: 1 / -1; }
  .swap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .owner-editor-tab-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .owner-editor-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-editor-tab { width: 100%; }
  .owner-reviews-heading { align-items: stretch; flex-direction: column; }
  .owner-review-filter { min-width: 0; }
  .owner-review-card-fields { grid-template-columns: 1fr; }
  .site-header { padding-top: 18px; }
  .site-header, .page, .site-footer { width: min(100% - 18px, 520px); }
  .site-footer-inner { flex-direction: column; gap: 7px; }
  .brand { min-height: 0; border-radius: 24px; }
  .brand-copy { padding: 30px 22px 25px; }
  .brand-kicker { margin-bottom: 22px; font-size: 0.66rem; }
  .brand-visual { min-height: 245px; }
  .education-brand .brand-visual { min-height: 245px; }
  .visual-card { padding: 10px 12px; font-size: 0.56rem; }
  .visual-bake { bottom: 22%; transform: scale(0.62) rotate(-7deg); }
  .visual-bake-two { right: 0; bottom: 26%; }
  .visual-bake-three { right: 32%; bottom: 15%; }
  .tabs { border-radius: 18px; }
  .tab { flex: 1 1 auto; justify-content: center; padding-inline: 10px; font-size: 0.74rem; }
  .header-actions { display: grid; grid-template-columns: 1fr; }
  .header-actions .button, .header-actions a { text-align: center; }
  .header-actions { gap: 9px; }
  .header-actions .tab { min-height: 44px; }
  .panel { padding: 22px 18px; border-radius: 20px; }
  .section-heading, .recipe-card-top, .recipe-section-heading, .form-actions { flex-direction: column; }
  .section-heading > *, .recipe-section-heading > * { max-width: 100%; }
  .featured-recipe-panel { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; }
  .featured-recipe-media { width: 100%; height: 150px; }
  .featured-recipe-button { width: 100%; }
  .review-form-grid { grid-template-columns: 1fr; }
  .faq-question-form .field { grid-template-rows: auto auto; height: auto; }
  .faq-question-form .field > input, .faq-question-form .field > textarea { height: auto; min-height: 46px; }
  .recent-reviews-list { grid-template-columns: 1fr; }
  .star-rating { width: 100%; justify-content: center; }
  .recipe-card-summary { display: grid; grid-template-columns: minmax(0, 14ch) minmax(0, 1fr) 18px; gap: 8px; align-items: center; padding: 16px 0; }
  .recipe-card-heading { display: contents; }
  .recipe-card-title { grid-column: 1; min-width: 0; max-width: 14ch; overflow: visible; font-size: 1.25rem; line-height: 1.05; text-overflow: clip; white-space: normal; }
  .recipe-badge-row { grid-column: 2; gap: 6px; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
  .recipe-badge-row { min-width: 0; scrollbar-width: none; }
  .recipe-badge-row::-webkit-scrollbar { display: none; }
  .recipe-badge { flex: 0 0 auto; min-width: 96px; min-height: 32px; padding: 6px 10px; font-size: 0.74rem; }
  .recipe-badge-icon { width: 15px; height: 15px; flex-basis: 15px; }
  .recipe-body-badges { display: block; margin: 0 0 12px; }
  .recipe-body-badges .recipe-badge-row { display: flex; flex-wrap: wrap; gap: 7px; overflow: visible; }
  .recipe-body-badges .recipe-badge { flex: 0 1 auto; min-width: 0; max-width: none; white-space: normal; }
  .recipe-body-badges .recipe-badge-value { overflow: visible; text-overflow: clip; }
  .recipe-chevron { grid-column: 3; width: 18px; height: 18px; flex-basis: 18px; margin-left: 0; }
  .recipe-card-actions { justify-content: flex-start; gap: 8px; padding-top: 2px; }
  .recipe-inline-print { display: inline-flex; }
  .owner-recipe-shell { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .owner-recipe-edit-button { margin-top: 13px; padding-inline: 10px; }
  .owner-local-controls { align-items: flex-start; flex-direction: column; }
  .owner-local-controls .button { width: 100%; }
  .owner-bulk-add { width: 100%; align-items: end; }
  .owner-bulk-add .field { min-width: 0; flex: 1; }
  .owner-bulk-add .button { width: auto; }
  .owner-editor-overlay { padding: 10px; }
  .owner-editor-dialog { max-height: calc(100vh - 20px); border-radius: 20px; }
  .owner-editor-dialog-header, .owner-editor-dialog-actions { padding: 15px 16px; }
  .owner-editor-form { padding: 15px 16px; }
  .owner-form-section { padding: 15px; }
  .ingredient-editor-grid { grid-template-columns: minmax(82px, 0.7fr) minmax(130px, 1fr); }
  .ingredient-name-field, .editor-custom-measurement { grid-column: 1 / -1; }
  .owner-card-edit-button { top: 10px; right: 10px; }
  .recipe-body-meta { align-items: stretch; }
  .recipe-body-meta .favorite-button { height: 34px; }
  .recipe-card-photo { width: 96px; height: 72px; flex-basis: 96px; }
.recipe-edit-button { width: 100%; }
.add-bulk { width: 100%; align-items: stretch; flex-wrap: wrap; }
  .add-count-field { flex: 1; width: auto; }
  .add-bulk > .button { flex: 1 1 140px; }
  .field-control { flex-direction: column; align-items: stretch; }
  .detail-grid, .ingredient-grid, .faq-grid { grid-template-columns: 1fr; }
  .ingredient-grid .field:last-child { grid-column: auto; }
  .nutrition-card { padding-inline: 16px; }
  .education-brand .brand-copy { padding-bottom: 28px; }
  .swap-grid { grid-template-columns: 1fr; }
  .education-category-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .education-choice-grid { grid-template-columns: 1fr; }
  .education-principles { align-items: stretch; flex-direction: column; }
  .education-principles span { justify-content: flex-start; }
  .nutrition-card-summary { grid-template-columns: minmax(0, 1fr) 120px 20px; align-items: center; }
  .nutrition-card-summary .nutrition-yield { text-align: right; }
  .nutrition-facts { grid-template-columns: 1fr; }
  .editor-select-row,
  .editor-form-grid-2,
  .editor-form-grid-3,
  .editor-export-grid { grid-template-columns: 1fr; }
  .owner-editor-toolbar { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .owner-editor-toolbar-actions { justify-content: flex-start; }
  .owner-editor-toolbar-actions .button { flex: 1 1 140px; }
  .editor-field-span-2,
  .editor-field-span-3 { grid-column: auto; }
  .editor-panel,
  .editor-card,
  .editor-item-card { padding: 18px; }
  .nutrition-row { grid-template-columns: minmax(0, 1fr) auto; }
  .education-category-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-head { display: none; }
  .print-picker { padding: 20px 16px; }
  .print-picker-header { flex-direction: column; }
  .print-picker-header > .button { align-self: flex-end; }
  .print-picker-actions { flex-direction: column-reverse; }
  .print-picker-actions .button { width: 100%; }
  .share-dialog { padding: 20px 16px; }
  .share-options { grid-template-columns: 1fr; }
  .share-option { grid-template-columns: 24px minmax(0, 1fr); min-height: 48px; justify-items: start; align-items: center; text-align: left; }
  .swap-detail-dialog { padding: 20px 16px; }
  .swap-detail-content .swap-card-modal .swap-card-media { height: 190px; }
  .comparison-row { display: grid; grid-template-columns: 1fr; gap: 0; padding: 8px 0; }
  .comparison-row:not(.comparison-head) { border-top: 1px solid rgba(126, 84, 69, 0.12); }
  .comparison-cell { display: grid; grid-template-columns: minmax(112px, 0.75fr) minmax(0, 1.25fr); gap: 12px; padding: 8px 13px; }
  .comparison-cell::before { content: attr(data-label); color: var(--coral); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; }
  .comparison-ingredient strong { font-size: 1.05rem; }
  .jump-top-button { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
