:root {
  --color-cta: #C8521A;
  --color-cta-hover: #A8401A;
  --color-cta-text: #ffffff;
  --color-accent: #E8B400;
  --color-accent-text: #7a5c00;
  --color-bg: #f7f5f0;
  --color-surface: #ffffff;
  --color-border: #e0ddd6;
  --color-text: #1e1e1e;
  --color-text-muted: #6b6860;
  --badge-freeze-bg: #EAF3DE;
  --badge-freeze-text: #3B6D11;
  --badge-cat-bg: #E6F1FB;
  --badge-cat-text: #185FA5;
  --badge-method-bg: #FAEEDA;
  --badge-method-text: #854F0B;
  --badge-time-bg: #FAECE7;
  --badge-time-text: #993C1D;
  --badge-veg-bg: #EAF3DE;
  --badge-veg-text: #3B6D11;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --paper: var(--color-surface);
  --yellow: #fff238;
  --blue: #27a6d9;
  --red: #d84a3a;
  --page-bg: var(--color-bg);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--ink); }
body { background: var(--page-bg, var(--color-bg)); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
:where(h1, h2, h3, p, li, a, button, span, strong, label, input, textarea, select) {
  overflow-wrap: anywhere;
}
button, .button {
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--yellow);
  color: #111;
  padding: 0.8rem 1.35rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(13rem, 18rem) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5.2rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: #050505;
  color: #fff;
}
.topbar > *,
.recipe-actions > *,
.serving-adjuster > *,
.top-search > *,
.account > *,
.columns > *,
.related-card {
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 1.75rem;
  font-weight: 950;
  letter-spacing: 0;
}
.brand img {
  width: 3.2rem;
  height: 3.2rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}
.habsalon-logo { display: none; }
.custom-site-logo { display: none; }
body.has-custom-logo .brand {
  min-width: 0;
}
body.has-custom-logo .custom-site-logo {
  display: block;
  width: auto;
  height: 3.4rem;
  max-width: min(16rem, 36vw);
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
body.has-custom-logo .brand-logo-main,
body.has-custom-logo .habsalon-logo,
body.has-custom-logo .brand span,
body.has-custom-logo .brand strong,
body.has-custom-logo .brand em,
body.has-custom-logo .turquoise-brand-text {
  display: none;
}
.brand span { color: var(--yellow); }
.brand em { color: var(--yellow); font-style: normal; }
.turquoise-brand-text { display: none; }
nav { display: flex; gap: 1rem; align-items: center; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
nav a, .account a { color: #fff; }
.nav-tagline {
  margin-left: 0.35rem;
  padding-left: 1rem;
  border-left: 1px solid #333;
  color: #cfcfcf;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: normal;
}
.top-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
}
.top-search input {
  min-width: 0;
  border: 1px solid #252525;
  background: #fff;
  padding: 0.58rem 0.65rem;
  font-size: 0.78rem;
}
.top-search button {
  padding: 0.65rem 0.8rem;
}
.account { display: flex; align-items: center; justify-content: end; gap: 0.8rem; font-size: 0.78rem; font-weight: 800; }
.account form { margin: 0; }
.account button { padding: 0.55rem 0.7rem; background: #252525; color: #fff; }
.account small {
  display: block;
  color: #9f9f9f;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}
.mobile-menu-button {
  display: none;
}
.primary-nav a,
.primary-nav button,
.account a,
.account button,
.account-user {
  white-space: nowrap;
  word-break: keep-all;
}
.nav-more {
  position: relative;
}
.nav-more > button {
  background: transparent;
  color: inherit;
  padding: 0;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  z-index: 60;
  display: none;
  min-width: 180px;
  border: 1px solid #EAE0D5;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}
.nav-more:hover .nav-dropdown,
.nav-more.is-open .nav-dropdown {
  display: grid;
}
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}
.nav-dropdown a:hover {
  background: #F2EBE0;
}
.account-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
}
.user-icon {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}
.footer-version {
  font-size: 11px;
  color: var(--color-text-faint, var(--color-text-muted));
  opacity: 0.6;
}

main {
  width: min(100%, 82rem);
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 3vw, 1.5rem) 4rem;
}
.page-frame {
  width: min(100%, 118rem);
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 82rem) minmax(12rem, 15rem);
  gap: 1.6rem;
  align-items: start;
  background: #fff;
}
.content-panel { min-width: 0; }
.side-panel {
  position: sticky;
  top: 6.2rem;
  min-width: 0;
  min-height: calc(100vh - 7rem);
  padding: 1rem;
  background: #f6f6f1;
}
.side-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.side-list {
  display: grid;
  gap: 0.85rem;
}
.side-list a {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}
.side-thumb {
  display: block;
  width: 3.4rem;
  aspect-ratio: 1;
  background: #eee;
  overflow: hidden;
}
.side-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.side-list span {
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.inspiration-top {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  margin: 0 0 1rem;
}
.inspiration-top a {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
}
.inspiration-top img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  display: block;
  transition: transform 160ms ease, filter 160ms ease;
}
.inspiration-top a:hover img {
  transform: scale(1.03);
  filter: contrast(1.08);
}
.inspiration-top span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 0.45rem 0.45rem;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.78));
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}
.food-hero { padding: 0 0 4.2rem; }
.hero-image {
  position: relative;
  display: block;
  min-height: clamp(18rem, 42vw, 27rem);
  overflow: hidden;
  background: #d9d9d9;
}
.hero-image img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; display: block; filter: saturate(1.08) contrast(1.06); }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.08) 65%);
}
.hero-image div {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 5vw, 3rem);
  bottom: clamp(1.5rem, 5vw, 3rem);
  width: min(27rem, 80%);
  color: #fff;
}
.hero-image p, .split-feature p:first-child {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-image h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 11ch;
}
.hero-image span {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  padding: 0.7rem 1rem;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.food-search {
  display: grid;
  grid-template-columns: 1fr 12rem auto;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 3.2rem;
}
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -1.8rem 0 3.2rem;
}
.category-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  border: 1px solid #d7d7d7;
  background: #f7f7f2;
  padding: 0.34rem 0.55rem;
  color: #222;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}
.category-strip a.active,
.category-strip a:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}
.skolegpt {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
  margin: -1rem 0 3.2rem;
  padding: 1rem;
  border: 3px solid #111;
}
.skolegpt p:first-child {
  margin: 0 0 0.4rem;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}
.skolegpt h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.skolegpt form {
  display: grid;
  gap: 0.7rem;
}
.assistant-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-top: 0.5rem;
}
.assistant-results p { color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.85rem 0.9rem;
}
.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.8rem;
  align-items: stretch;
}
.password-field input {
  border-right: 0;
}
.password-toggle {
  display: grid;
  place-items: center;
  width: 2.8rem;
  min-height: 2.8rem;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.password-toggle span {
  position: relative;
  width: 1.25rem;
  height: 0.75rem;
  border: 2px solid #111;
  border-radius: 999px / 70%;
}
.password-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #111;
  transform: translate(-50%, -50%);
}
.password-toggle.is-visible {
  background: var(--yellow);
}

.explore-more, .food-band, .split-feature { margin: 0 0 3.2rem; }
.explore-more h2, .food-section-title h2, .split-feature h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.explore-more > div {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.explore-more a { display: grid; justify-items: center; gap: 0.55rem; text-align: center; }
.explore-more img {
  width: 4.9rem;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
}
.explore-more span {
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.food-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.food-section-title a, .food-section-title p { color: var(--blue); font-size: 0.72rem; margin: 0; }
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.feature-tile {
  position: relative;
  min-height: 11.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 0.85rem;
  color: #fff;
  background: #ddd;
}
.feature-tile.wide { grid-column: span 1; }
.feature-tile img, .feature-tile .tile-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.75));
}
.feature-tile span, .feature-tile em, .feature-tile strong {
  position: relative;
  z-index: 1;
}
.feature-tile span, .feature-tile em {
  font-size: 0.58rem;
  font-weight: 950;
  opacity: 0.75;
  text-transform: uppercase;
}
.feature-tile em {
  margin: 0.12rem 0 0.25rem;
  color: var(--yellow);
  font-style: normal;
  opacity: 1;
}
.feature-tile strong {
  font-size: 1.15rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.small-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}
.small-tile { display: block; }
.small-tile img, .mini-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efefef;
}
.small-tile strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.split-feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.2rem;
  padding: 2.2rem 0;
}
.split-feature img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.split-feature p { color: var(--muted); line-height: 1.6; }
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.1rem;
}
.recipe-card {
  display: block;
  min-height: 0;
  background: #fff;
  border: 0;
  overflow: hidden;
}
.recipe-card .thumb { aspect-ratio: 4 / 3; background: #efefef; display: grid; place-items: center; font-size: 2rem; font-weight: 950; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-card div:last-child { padding: 0.65rem 0 0; }
.recipe-card small { color: var(--red); font-size: 0.62rem; font-weight: 950; text-transform: uppercase; }
.recipe-card h3 { margin: 0.25rem 0; font-size: 0.86rem; line-height: 1.1; text-transform: uppercase; }
.recipe-card p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

.recipe-inspiration-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.recipe-inspiration-strip a,
.recipe-inspiration-strip div {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ededed;
}
.recipe-inspiration-strip img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}
.recipe-inspiration-strip span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.75rem 0.6rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.72));
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.recipe-detail {
  display: block !important;
  padding: 1.4rem 0 4rem;
}
.recipe-hero {
  display: block;
  position: static !important;
  width: 100%;
  overflow: hidden;
  background: #ddd;
}
.recipe-hero img {
  position: static !important;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 42rem;
  object-fit: cover;
  display: block;
}
.recipe-carousel {
  position: relative;
  overflow: hidden;
  background: #111;
}
.recipe-carousel-track {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: clamp(22rem, 58vw, 48rem);
  max-height: 42rem;
}
.recipe-carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.recipe-carousel-track img.active { opacity: 1; }
.recipe-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease, background 160ms ease;
}
.recipe-carousel-arrow.prev { left: 1rem; }
.recipe-carousel-arrow.next { right: 1rem; }
.recipe-carousel:hover .recipe-carousel-arrow,
.recipe-carousel:focus-within .recipe-carousel-arrow { opacity: 1; }
.recipe-carousel-arrow:hover { background: rgba(0,0,0,0.82); }
.recipe-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.recipe-carousel-dots button {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(255,255,255,0.38);
}
.recipe-carousel-dots button.active {
  background: var(--yellow);
  border-color: var(--yellow);
}
.recipe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.7rem;
  margin: 0.7rem 0 2rem;
}
.recipe-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  border: 1px solid #d7d7d7;
  background: #f7f7f2;
  padding: 0.34rem 0.55rem;
  color: #222;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}
.chips a:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}
.recipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}
.recipe-actions form { margin: 0; }
.edit-link {
  display: inline-block;
  background: var(--yellow);
  padding: 0.65rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}
.share-recipe-button {
  background: var(--yellow);
  padding: 0.65rem 0.9rem;
}
.share-status {
  align-self: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.delete-button {
  background: #111;
  color: #fff;
  padding: 0.65rem 0.9rem;
}
.print-choice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
}
.print-choice-dialog {
  position: relative;
  width: min(34rem, 100%);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.4rem;
  box-shadow: 0 1.3rem 3rem rgba(0,0,0,0.25);
}
.print-choice-dialog h2 {
  margin: 0 0 0.45rem;
}
.print-choice-dialog p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.print-choice-dialog > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.print-choice-dialog [data-print-mode] {
  display: grid;
  gap: 0.35rem;
  min-height: 5rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.9rem;
  text-align: left;
  font-weight: 950;
}
.print-choice-dialog [data-print-mode] span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: none;
}
.print-choice-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  min-height: 2rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}
.cook-mode-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #111;
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}
.cook-mode-button::before {
  content: "";
  width: 1.9rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.cook-mode-button::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease;
}
.cook-mode-button[aria-pressed="true"] {
  background: var(--yellow);
  color: #111;
}
.cook-mode-button[aria-pressed="true"]::after {
  transform: translateX(0.86rem);
}
.cook-mode-hint {
  flex: 1 1 14rem;
  align-self: center;
  padding: 0.62rem 0.75rem;
  border: 1px solid #e8e0c4;
  background: #fffdf4;
  color: #4d4d4d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}
.cook-mode-hint[hidden] {
  display: none;
}
.recipe-detail h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
}
.recipe-body {
  display: block;
  position: relative;
  z-index: 2;
  width: min(100%, 66rem);
  margin: 2.4rem auto 0;
  clear: both;
  background: #fff;
}
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.8; max-width: 46rem; }
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.recipe-meta p {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: #f4f4f4;
  font-size: 0.9rem;
}
.serving-adjuster {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
}
.serving-adjuster span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.serving-adjuster button {
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: #111;
  color: #fff;
  font-size: 1rem;
}
.serving-adjuster input {
  min-width: 2rem;
  width: 4rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 950;
}
.serving-adjuster .unit-mode-button {
  width: auto;
  min-width: 6.4rem;
  height: 2rem;
  padding: 0 0.7rem;
  background: var(--yellow);
  color: #111;
  font-size: 0.72rem;
  white-space: normal;
}
.cook-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1.25rem;
}
.cook-control-row .serving-adjuster {
  margin: 0;
}
.columns { display: grid; grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr); gap: 2.8rem; margin-top: 2.6rem; }
.columns section { border-top: 4px solid #111; padding-top: 1.25rem; }
.columns h2 { font-size: 1.08rem; text-transform: uppercase; margin-bottom: 1rem; }
.ingredient-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 0;
  list-style: none;
}
li { margin: 0.7rem 0; line-height: 1.55; }
.ingredient-row {
  display: grid;
  grid-template-columns: minmax(5.8rem, max-content) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
  margin: 0;
}
.ingredient-amount {
  color: #555;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ingredient-name {
  min-width: 0;
}
.ingredient-heading {
  grid-column: 1 / -1;
  justify-self: start;
  width: 100%;
  margin: 1.1rem 0 0.15rem;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}
.ingredient-heading:first-child {
  margin-top: 0;
}
.columns p { line-height: 1.9; margin: 0 0 1.2rem; }
.recipe-info-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}
.recipe-info-sections article {
  border: 1px solid var(--line);
  background: #f7f7f2;
  padding: 1rem;
}
.recipe-info-sections h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
}
.recipe-info-sections div {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.recipe-info-sections strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}
.recipe-info-sections p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.impact-toggle-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 2.4rem;
}
.impact-toggle-section p {
  margin: 0;
  color: var(--muted);
}
.impact-toggle-button {
  min-height: 2.9rem;
  border: 0;
  background: var(--impact-green);
  color: var(--impact-ink);
  padding: 0 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}
.impact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--impact-ink);
  box-shadow: none;
}
.impact-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0.9rem;
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #f5f7f3;
  box-shadow: 0 1.2rem 3rem rgba(6, 20, 61, 0.10);
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
}
.impact-summary-card {
  grid-column: 1 / -1;
  min-height: 0;
}
.impact-card h2,
.contains-list h2,
.contains-list h3,
.nutrition-card h2 {
  margin: 0 0 0.8rem;
  color: var(--impact-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: 0;
  text-transform: none;
}
.impact-card h2 {
  font-size: 1.04rem;
  font-weight: 950;
  text-transform: uppercase;
}
.impact-card p {
  margin: 0 0 0.85rem;
}
.impact-card strong {
  display: block;
  color: #4b4f59;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 950;
  text-transform: uppercase;
}
.impact-card span {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.9rem;
}
.impact-icon {
  position: absolute;
  top: 1.55rem;
  right: 1.75rem;
  color: var(--impact-ink);
  font-size: 3.4rem;
  line-height: 1;
}
.impact-read-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.7rem;
  border: 1px solid rgba(6, 20, 61, 0.16);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--impact-ink);
  padding: 0 1.25rem;
  font-weight: 850;
}
.impact-read-more span {
  font-size: 2rem;
  line-height: 1;
}
.impact-note {
  border-top: 1px solid rgba(6,20,61,0.18);
  padding-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.contains-list p {
  margin: 0;
  color: var(--impact-ink);
  font-size: 1rem;
}
.contains-list span {
  display: inline-block;
  padding: 0 0.55rem;
}
.nutrition-card h3 {
  margin: 0 0 0.8rem;
  color: var(--impact-ink);
  font-size: 1rem;
}
.nutrition-grid {
  display: grid;
  grid-template-columns: minmax(13rem, 0.9fr) minmax(13rem, 1.1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}
.nutrition-lines p {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr);
  gap: 0.25rem;
  margin: 0 0 0.34rem;
  color: var(--impact-ink);
}
.nutrition-lines p::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  border-bottom: 1px dotted var(--impact-ink);
  transform: translateY(-0.35rem);
}
.nutrition-lines span,
.nutrition-lines strong {
  position: relative;
  z-index: 1;
  background: #f5f7f3;
}
.nutrition-lines strong {
  justify-self: end;
  font-weight: 500;
}
.energy-chart {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  justify-items: center;
  align-items: start;
}
.impact-energy-card .energy-chart {
  align-content: center;
}
.energy-chart h3 {
  justify-self: start;
  width: 100%;
}
.donut {
  width: clamp(10rem, 18vw, 13.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--macro-protein, #a678f3) 0 calc(var(--protein) * 1%),
    var(--macro-carbs, #1f66f2) 0 calc((var(--protein) + var(--carbs)) * 1%),
    var(--macro-fat, #06143d) 0 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 47%, #000 49%);
  mask: radial-gradient(circle, transparent 47%, #000 49%);
}
.donut-svg {
  width: clamp(10rem, 18vw, 13.5rem);
  height: auto;
  aspect-ratio: 1;
  display: block;
  transform: rotate(-90deg);
}
.donut-svg circle {
  fill: none;
  stroke-width: 18;
}
.donut-bg {
  stroke: rgba(5, 12, 40, 0.08);
}
.donut-segment {
  stroke-linecap: butt;
}
.donut-protein {
  stroke: var(--macro-protein, #a678f3);
}
.donut-carbs {
  stroke: var(--macro-carbs, #1f66f2);
}
.donut-fat {
  stroke: var(--macro-fat, #06143d);
}
.energy-chart ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.energy-chart li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.energy-chart li span {
  width: 0.9rem;
  aspect-ratio: 1;
  border-radius: 50%;
}
.energy-chart .protein { background: var(--macro-protein, #a678f3); }
.energy-chart .fat { background: var(--macro-fat, #06143d); }
.energy-chart .carbs { background: var(--macro-carbs, #1f66f2); }
.energy-explainer,
.nutrition-assessment-text,
.impact-estimate-note {
  color: var(--impact-ink);
  line-height: 1.55;
}
.energy-explainer {
  max-width: 34rem;
  font-size: 0.94rem;
}
.nutrition-summary-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(1.4rem, 2.5vw, 2.1rem);
  align-items: start;
}
.nutrition-summary-grid > * {
  min-width: 0;
}
.nutrition-assessment-panel {
  min-width: 0;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  border-left: 1px solid rgba(6, 20, 61, 0.14);
  padding-left: clamp(0.9rem, 1.8vw, 1.35rem);
}
.nutrition-assessment-text {
  margin: 0;
  color: #4b5563;
  font-size: 0.98rem;
}
.nutrition-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  margin: 0;
}
.nutrition-badge {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  border: 1px solid rgba(6, 20, 61, 0.14);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--impact-ink);
  min-height: 2.55rem;
  padding: 0.56rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 750;
}
.nutrition-badge dt {
  font-weight: 950;
  margin: 0;
  min-width: 0;
}
.nutrition-badge dd {
  justify-self: end;
  margin: 0;
  border-radius: 999px;
  background: rgba(6, 20, 61, 0.08);
  padding: 0.24rem 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}
.nutrition-badge.high { border-color: rgba(6, 20, 61, 0.34); }
.nutrition-badge.medium { border-color: rgba(31, 102, 242, 0.32); }
.nutrition-badge.low { opacity: 0.88; }
.nutrition-missing-note {
  margin: 0;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .nutrition-summary-grid {
    grid-template-columns: 1fr;
  }
  .nutrition-assessment-panel {
    border-left: 0;
    border-top: 1px solid rgba(6, 20, 61, 0.14);
    padding: 1rem 0 0;
  }
}

.impact-estimate-note {
  border-top: 1px solid rgba(6,20,61,0.14);
  margin-top: 1rem;
  padding-top: 0.85rem;
  font-size: 0.88rem;
}
.related-recipes {
  margin-top: 2.8rem;
  border-top: 4px solid #111;
  padding-top: 1.25rem;
}
.related-recipes h2 {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  text-transform: uppercase;
}
.related-recipes > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.9rem;
}
.related-card {
  display: grid;
  gap: 0.45rem;
  min-height: 8rem;
  border: 1px solid var(--line);
  padding: 0.75rem;
  background: #f7f7f2;
}
.related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 0.2rem;
}
.related-card strong {
  min-height: 2.3em;
  font-size: 0.9rem;
  line-height: 1.15;
  text-transform: uppercase;
}
.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.cook-steps {
  display: none;
}

body.cook-mode {
  background: #fffdf4;
}
body.cook-mode .topbar,
body.cook-mode .side-panel,
body.cook-mode .recipe-inspiration-strip,
body.cook-mode .related-recipes,
body.cook-mode .site-footer {
  display: none;
}
body.cook-mode main,
body.cook-mode .page-frame,
body.cook-mode .content-panel {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: #fffdf4;
}
body.cook-mode .page-frame {
  display: block;
}
body.cook-mode .recipe-detail {
  width: 100%;
  max-width: none;
  padding: clamp(0.75rem, 2vw, 1.4rem);
}
body.cook-mode .recipe-body {
  width: min(100%, 112rem);
  margin: 1rem auto 0;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem) 2rem;
}
body.cook-mode .recipe-hero,
body.cook-mode .recipe-carousel {
  width: min(100%, 112rem);
  margin: 0 auto;
  border: 2px solid #111;
  background: #111;
}
body.cook-mode .recipe-hero img,
body.cook-mode .recipe-carousel-track {
  max-height: min(42vh, 28rem);
}
body.cook-mode .recipe-carousel-track {
  min-height: clamp(15rem, 34vw, 28rem);
}
body.cook-mode .chips,
body.cook-mode .lead,
body.cook-mode .recipe-meta {
  margin-bottom: 1rem;
}
body.cook-mode .recipe-detail h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}
body.cook-mode .recipe-actions {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 1rem;
  padding: 0.75rem min(25rem, 34vw) 0.75rem 0;
  background: #fffdf4;
  border-bottom: 1px solid #e8e0c4;
}
body.cook-mode .recipe-actions a,
body.cook-mode .recipe-actions form {
  display: none;
}
body.cook-mode .serving-adjuster {
  position: relative;
  top: auto;
  z-index: 19;
  background: #fffdf4;
  box-shadow: none;
}
body.cook-mode .columns {
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.6rem;
}
body.cook-mode .columns section:nth-child(2) {
  display: block;
}
body.cook-mode .columns section {
  background: #fff;
  border: 2px solid #111;
  padding: clamp(1rem, 2.5vw, 1.4rem);
}
body.cook-mode li,
body.cook-mode .columns p {
  line-height: 1.8;
}
body.cook-mode .cook-steps {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.cook-mode .cook-step-top,
body.cook-mode [data-cook-step-text],
body.cook-mode .cook-step-controls,
body.cook-mode [data-cook-all-steps] {
  display: none;
}
body.cook-mode .cook-step-top p {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 950;
  text-transform: uppercase;
}
body.cook-mode .cook-step-top button,
body.cook-mode .cook-step-controls button {
  padding: 0.9rem 1rem;
}
body.cook-mode [data-cook-step-text] {
  font-size: clamp(1.45rem, 4.8vw, 2.4rem);
  line-height: 1.45;
  font-weight: 800;
}
body.cook-mode .cook-step-controls {
  display: none;
  flex-wrap: wrap;
  gap: 0.7rem;
}
body.cook-mode .cook-step-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
body.cook-mode [data-cook-all-steps] {
  margin: 0;
  padding-left: 1.4rem;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  line-height: 1.7;
}
body.cook-mode .cook-timers {
  position: relative;
  top: auto;
  right: auto;
  z-index: 30;
  width: min(100%, 24rem);
  display: grid;
  justify-items: start;
  gap: 0.45rem;
}
body.cook-mode .cook-timer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.75rem 0.95rem;
  border: 2px solid #111;
  background: var(--yellow);
  box-shadow: 0 0.45rem 1.1rem rgba(0,0,0,0.18);
  font-size: 0.82rem;
}
body.cook-mode .clock-icon {
  position: relative;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  border: 2px solid #111;
  border-radius: 999px;
}
body.cook-mode .clock-icon::before,
body.cook-mode .clock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  background: #111;
  transform-origin: bottom;
}
body.cook-mode .clock-icon::before {
  height: 0.42rem;
  transform: translateX(-50%) rotate(0deg);
}
body.cook-mode .clock-icon::after {
  height: 0.34rem;
  transform: translateX(-50%) rotate(90deg);
}
body.cook-mode .cook-timer-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #111;
  background: #fff;
  box-shadow: 0 0.65rem 1.5rem rgba(0,0,0,0.2);
}
body.cook-mode .cook-timer-panel[hidden] {
  display: none;
}
body.cook-mode .cook-timer-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
body.cook-mode .cook-timer-top h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
}
body.cook-mode .cook-timer-top button {
  padding: 0.55rem 0.75rem;
  background: #111;
  color: #fff;
}
body.cook-mode .cook-timer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem 4.5rem 5.2rem;
  gap: 0.45rem;
}
body.cook-mode .cook-timer-form input {
  min-height: 2.7rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
body.cook-mode .cook-timer-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
body.cook-mode .cook-timer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid #ddd4b9;
  background: #fffdf4;
}
body.cook-mode .cook-timer strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}
body.cook-mode .cook-timer span {
  min-width: 4.4rem;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 950;
  text-align: right;
}
body.cook-mode .cook-timer em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
body.cook-mode .cook-timer.is-done {
  border-color: #111;
  background: var(--yellow);
}

@media (min-width: 641px) and (max-width: 1180px) {
  body.cook-mode main,
  body.cook-mode .page-frame,
  body.cook-mode .content-panel,
  body.cook-mode .recipe-body {
    max-width: 100%;
  }
  body.cook-mode .recipe-detail {
    padding: clamp(1rem, 3vw, 2rem);
  }
  body.cook-mode .columns {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  }
  body.cook-mode .cook-steps {
    min-height: 42vh;
  }
  body.cook-mode [data-cook-step-text] {
    font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  }
}

.form-page, .login, .admin { max-width: 52rem; margin: 0 auto; padding-top: 2rem; }
.form-page { max-width: 82rem; }
.login { max-width: 28rem; padding-top: 8vh; }
.login-version {
  margin: 1.7rem calc(clamp(1rem, 3vw, 1.6rem) * -1) calc(clamp(1rem, 3vw, 1.6rem) * -1);
  padding: 1.2rem clamp(1rem, 3vw, 1.6rem);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.65;
  text-align: right;
}
.panel {
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 1.6rem);
}
.recipe-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
}
.recipe-editor > * {
  min-width: 0;
}
.recipe-editor .editor-actions,
.recipe-editor .recipe-editor-section,
.recipe-editor .direct-recipe-editor,
.recipe-editor .category-checkboxes,
.recipe-editor .time-fields,
.recipe-editor .existing-images,
.recipe-editor .image-upload,
.recipe-editor .related-editor,
.recipe-editor > button,
.editor-save-bar {
  grid-column: 1 / -1;
}
.recipe-editor-section {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border: 1px solid var(--line);
  background: #fff;
}
.recipe-editor-section-heading {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.recipe-editor-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.recipe-editor-section-heading h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.2;
}
.recipe-editor-section-basic {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  align-items: start;
}
.recipe-editor-section-basic .recipe-editor-section-heading,
.recipe-editor-section-basic .recipe-live-preview {
  grid-column: 1 / -1;
}
.recipe-editor-section-basic .existing-images,
.recipe-editor-section-basic .image-upload {
  margin: 0;
}
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.editor-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.editor-format-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  background: #fff;
  width: max-content;
  max-width: 100%;
  margin: 0;
}
.editable-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 0.4rem;
}
.editable-section-heading h3 {
  margin: 0;
}
.editor-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid transparent;
  background: #f7f7f2;
  color: #111;
  font-weight: 950;
  line-height: 1;
}
.editor-icon-button:hover,
.editor-icon-button:focus-visible {
  border-color: #111;
  background: var(--yellow);
}
.ingredient-heading-button {
  min-width: 3.2rem;
}
.editor-source {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.recipe-live-preview {
  border: 2px solid #111;
  background: #fffdf4;
  padding: clamp(1rem, 2.5vw, 1.6rem);
}
.recipe-live-preview strong,
.recipe-live-preview h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
}
.direct-edit-label {
  display: block;
  margin-bottom: 0.8rem;
}
.recipe-live-preview h2 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.direct-recipe-editor [contenteditable="true"] {
  outline: 2px solid transparent;
  outline-offset: 0.25rem;
  cursor: text;
}
.direct-recipe-editor [contenteditable="true"]:focus {
  outline-color: var(--yellow);
  background: #fff;
}
.direct-recipe-editor [contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: #999;
}
.recipe-live-preview p {
  color: var(--muted);
  line-height: 1.65;
}
.editable-recipe-block {
  min-height: 8rem;
  white-space: pre-wrap;
  line-height: 1.65;
}
.editable-recipe-block ul,
.editable-recipe-block ol,
.recipe-live-preview ul,
.recipe-live-preview ol {
  margin: 0.4rem 0 0.9rem 1.4rem;
  padding-left: 1rem;
  white-space: normal;
}
.editable-recipe-block li,
.recipe-live-preview li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
}
.editable-recipe-block + h3 {
  margin-top: 1rem;
}
label { display: grid; gap: 0.4rem; margin: 0 0 1rem; font-weight: 850; }
label span, .hint { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.checkbox-line input {
  width: auto;
}
.watermark-preview {
  width: 5rem;
  height: 5rem;
  margin: -0.25rem 0 1rem;
  border: 1px solid var(--line);
  background: #f7f7f7;
}
.watermark-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-logo-preview {
  width: 9rem;
  background: #fff;
}
.theme-watermark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.theme-watermark-card {
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}
.theme-watermark-card h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}
.theme-admin-form [data-theme-panel][hidden] {
  display: none;
}
.theme-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
}
.theme-panel-tabs button {
  min-height: 2.55rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.theme-panel-tabs button.active {
  border-color: #111;
  background: #111;
  color: #fff;
}
.theme-settings-panel {
  margin: 0 0 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fafafa;
}
.theme-settings-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}
.category-checkboxes {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
}
.category-checkboxes strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}
.category-checkbox-group {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
}
.category-checkbox-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.category-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.category-checkboxes input {
  width: auto;
}
.new-category-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.45fr);
  gap: 1rem;
  align-items: end;
}
.time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.recipe-editor-section .time-fields {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.info-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}
.info-editor-card {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  background: #f7f7f2;
  padding: 1rem;
}
.info-editor-card textarea {
  min-height: 5.2rem;
  resize: vertical;
}
.editor-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -0.5rem 1.5rem rgba(0,0,0,0.07);
}
.editor-save-bar a,
.editor-save-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}
.editor-save-bar a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.related-editor {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fafafa;
}
.related-editor strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.related-editor span,
.related-editor p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.related-editor-row {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  padding: 0.85rem;
  border: 1px solid #e2e2e2;
  background: #fff;
}
.related-editor-row button {
  justify-self: start;
}
.secondary-button {
  background: #111;
  color: #fff;
}
.existing-images {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
}
.existing-images strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}
.existing-images div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.75rem;
}
.existing-image-item {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
}
.existing-image-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.existing-image-item input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.existing-image-item span {
  display: block;
  color: #197a2f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.existing-image-item button {
  padding: 0.55rem 0.65rem;
  background: #111;
  color: #fff;
}
.existing-image-item.is-removed {
  opacity: 0.52;
  background: #f4f4f4;
}
.existing-image-item.is-removed img { filter: grayscale(1); }
.existing-image-item.is-removed span { color: var(--red); }
.existing-images p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.image-upload {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 2px dashed #cfcfcf;
  background: #fafafa;
  transition: border-color 160ms ease, background 160ms ease;
}
.image-upload.is-dragging {
  border-color: var(--red);
  background: #fff6e8;
}
.image-upload label { margin: 0; }
.image-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.image-upload p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.image-upload button {
  justify-self: start;
}
.image-upload .gemini-button {
  background: #111;
  color: #fff;
}
.gemini-status {
  min-height: 1.2rem;
  font-weight: 800;
}
.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.75rem;
}
.preview-item {
  position: relative;
  overflow: hidden;
  background: #eee;
}
.preview-item.generated::before {
  content: "Gemini";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  z-index: 1;
  background: var(--yellow);
  padding: 0.25rem 0.35rem;
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}
.preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.preview-item button {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.62rem;
}
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.admin-modern {
  max-width: 118rem;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.4rem;
}
.admin-nav {
  position: sticky;
  top: 5.2rem;
  align-self: start;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 0.7rem 1.8rem rgba(0,0,0,0.05);
}
.admin-nav strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-nav a {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0 0.75rem;
  border-left: 3px solid transparent;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}
.admin-nav a:hover {
  border-left-color: var(--yellow);
  background: #fafafa;
}
.admin-content {
  min-width: 0;
  display: grid;
  gap: 1.25rem;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  background: #111;
  color: #fff;
}
.admin-header p,
.admin-section-heading p {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-header h1 {
  margin: 0;
  color: #fff;
}
.admin-header dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(5rem, 1fr));
  gap: 0.7rem;
  margin: 0;
}
.admin-header dl div {
  min-width: 6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}
.admin-header dt {
  color: #cfcfcf;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-header dd {
  margin: 0.2rem 0 0;
  color: var(--yellow);
  font-size: 1.35rem;
  font-weight: 950;
}
.admin-section {
  scroll-margin-top: 6rem;
  display: grid;
  gap: 0.75rem;
}
.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #111;
}
.admin-section-heading h2 {
  margin: 0;
}
.admin-two-col {
  display: grid;
  grid-template-columns: minmax(17rem, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.admin-table-panel {
  overflow-x: auto;
  max-width: 100%;
}
.admin-modern .panel {
  background: #fff;
}
.admin-modern table {
  min-width: 44rem;
}
.admin-modern .structure-table {
  min-width: 0;
  table-layout: fixed;
}
.structure-table th:first-child,
.structure-table td:first-child {
  width: auto;
}
.structure-table th:nth-child(2),
.structure-table td:nth-child(2) {
  width: 7.5rem;
  text-align: left;
}
.structure-table th:nth-child(3),
.structure-table td:nth-child(3) {
  width: 7.25rem;
}
.method-table th:nth-child(2),
.method-table td:nth-child(2) {
  width: 6.5rem;
}
.method-table th:nth-child(3),
.method-table td:nth-child(3) {
  width: 7rem;
}
.method-table th:nth-child(4),
.method-table td:nth-child(4) {
  width: 8.5rem;
}
.structure-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  background: #f7f7f4;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.structure-badge.custom {
  background: var(--paper);
  color: var(--ink);
}

.platform-page,
.platform-home {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
}
.home-hero,
.index-hero,
.blog-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
  margin-bottom: 1.2rem;
  background: #111;
  color: #fff;
}
.home-hero > div,
.index-hero > div,
.blog-detail-hero > div {
  padding: clamp(1.25rem, 3vw, 2.4rem);
}
.home-hero p,
.index-hero p,
.blog-detail-hero p {
  margin: 0 0 0.65rem;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-hero h1,
.index-hero h1,
.blog-detail-hero h1 {
  margin: 0;
  max-width: 48rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
}
.home-hero span,
.index-hero span,
.blog-detail-hero span {
  display: block;
  max-width: 42rem;
  margin-top: 0.9rem;
  color: #d8d8d8;
  line-height: 1.6;
}
.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.home-search input,
.recipe-filter-bar input,
.recipe-filter-bar select {
  min-height: 44px;
}
.home-carousel {
  position: relative;
  min-height: clamp(18rem, 38vw, 32rem);
  overflow: hidden;
  background: #222;
}
.home-carousel a {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 1.2rem;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.home-carousel a.active {
  opacity: 1;
  pointer-events: auto;
}
.home-carousel img,
.blog-detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-carousel a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.82));
}
.home-carousel span,
.home-carousel strong,
.home-carousel em {
  position: relative;
  z-index: 1;
}
.home-carousel strong {
  max-width: 28rem;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}
.home-carousel em {
  margin-top: 0.4rem;
  font-style: normal;
}
@keyframes homeCarousel {
  0%, 18% { opacity: 1; }
  23%, 100% { opacity: 0; }
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.quick-actions a,
.filter-reset,
.load-more a,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}
.home-section,
.tips-strip {
  margin-top: 1.8rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid #111;
}
.section-heading h2 {
  margin: 0 0 0.55rem;
}
.section-heading a {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 900;
}
.card-grid {
  display: grid;
  gap: 1rem;
}
.recipe-grid {
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}
.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.platform-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.platform-card:hover {
  transform: translateY(-2px);
  border-color: #111;
  box-shadow: 0 0.8rem 1.8rem rgba(0,0,0,0.09);
}
.platform-card .thumb {
  min-height: 11rem;
  background: #eee;
}
.platform-card .thumb img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
  transition: transform 220ms ease;
}
.platform-card:hover .thumb img {
  transform: scale(1.035);
}
.platform-card > div:last-child {
  padding: 1rem;
}
.platform-card small {
  color: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}
.platform-card h3 {
  margin: 0.35rem 0;
}
.platform-card p {
  color: var(--muted);
}
.card-meta,
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.card-meta span,
.card-badges span,
.active-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.55rem;
  background: #f4f4f4;
  font-size: 0.76rem;
  font-weight: 850;
}
.recipe-filter-bar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) repeat(5, minmax(8rem, auto)) auto auto;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.index-count {
  margin: 0 0 1rem;
  color: var(--muted);
}
.load-more {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
}
.category-group-list {
  display: grid;
  gap: 2rem;
}
.category-group-section {
  display: grid;
  gap: 0.85rem;
}
.category-group-section > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--line);
}
.category-group-section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}
.category-group-section header span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}
.category-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.85rem;
}
.category-landing-card {
  display: grid;
  min-height: 10rem;
  align-content: end;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.category-landing-card img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  margin: -1rem -1rem 0.8rem;
  width: calc(100% + 2rem);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.breadcrumbs a {
  color: var(--ink);
  font-weight: 850;
}
.recipe-breadcrumbs,
.back-link {
  margin-left: clamp(1rem, 3vw, 2rem);
  margin-right: clamp(1rem, 3vw, 2rem);
}
.back-link {
  width: max-content;
  margin-bottom: 0.8rem;
}
.recipe-fact-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fafafa;
}
.recipe-fact-box h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1rem;
}
.recipe-fact-box p {
  margin: 0;
  padding: 0.65rem;
  background: #fff;
}
.recipe-fact-box strong,
.recipe-fact-box span {
  display: block;
}
.blog-detail-hero {
  position: relative;
  min-height: 24rem;
}
.blog-detail-hero > div {
  position: relative;
  z-index: 1;
  align-self: end;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.78));
}
.blog-copy {
  max-width: 780px;
  font-size: 1.1rem;
  line-height: 1.75;
}
.guide-steps {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 0;
}
.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.55fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: start;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid var(--line);
  background: #fff;
}
.guide-step-number {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guide-step h2 {
  margin: 0 0 0.65rem;
}
.guide-step p {
  line-height: 1.75;
}
.guide-step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.guide-caption {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}
.guide-step-editor-list {
  display: grid;
  gap: 1rem;
}
.guide-step-editor {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}
.guide-step-editor h3 {
  margin: 0;
}
.admin-inspiration {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.75rem;
}
.admin-inspiration-item {
  display: grid;
  gap: 0.5rem;
}
.admin-inspiration img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}
.admin-inspiration form { margin: 0; }
.admin-inspiration button {
  width: 100%;
  padding: 0.55rem 0.65rem;
  background: #111;
  color: #fff;
}
.theme-admin-form {
  grid-column: 1 / -1;
}
.theme-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.65rem 0.85rem;
}
.theme-color-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
}
.theme-color-grid input[type="color"] {
  width: 3rem;
  min-width: 3rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
}
table { width: 100%; border-collapse: collapse; }
th {
  padding: 0.7rem 0.8rem;
  border-bottom: 2px solid #111;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
}
td { padding: 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}
.inline-form input {
  min-width: 0;
  width: 100%;
  padding: 0.65rem 0.75rem;
}
.inline-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
  overflow-wrap: normal;
}
.inline-form button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.structure-table .inline-form {
  width: 100%;
}
.structure-table td:first-child .inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.admin-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 100vh;
  background: #f8f8f6;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 1rem 0.75rem;
  border-right: 1px solid #e5e5e0;
  background: #fff;
}
.admin-sidebar-brand {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem 1rem;
}
.admin-sidebar-brand strong {
  font-size: 0.88rem;
}
.admin-sidebar-brand span {
  color: #777;
  font-size: 0.68rem;
}
.admin-nav-group {
  display: grid;
  gap: 0.18rem;
  margin: 0 0 1rem;
}
.admin-nav-group p {
  margin: 0.75rem 0.55rem 0.25rem;
  color: #8a8a84;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-nav-group a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0 0.6rem;
  color: #202020;
  font-size: 0.84rem;
  font-weight: 760;
}
.admin-nav-group a.active,
.admin-nav-group a:hover {
  background: #f0f0ee;
  color: #111;
  font-weight: 950;
}
.admin-nav-group i {
  width: 15px;
  height: 15px;
  font-style: normal;
}
.admin-main {
  min-width: 0;
  padding: 1.5rem;
  overflow: auto;
}
.admin-page-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.admin-page-top p {
  margin: 0 0 0.2rem;
  color: #777;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-page-top h1 {
  margin: 0;
}
[data-admin-message] {
  color: #276749;
  font-size: 0.85rem;
  font-weight: 850;
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: grid;
  gap: 1rem;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.admin-metrics article {
  padding: 1.1rem;
  border: 1px solid #e5e5e0;
  background: #fff;
}
.admin-metrics span {
  color: #777;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}
.admin-metrics strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
}
.quick-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.admin-shell .admin-two-col {
  grid-template-columns: minmax(16rem, 0.34fr) minmax(0, 1fr);
}
.admin-shell .panel {
  border: 1px solid #e5e5e0;
  background: #fff;
}
.admin-shell table {
  width: 100%;
  border-collapse: collapse;
}
.admin-shell tr:hover td {
  background: #f7f7f5;
}
.admin-shell th {
  color: #666;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-group-row td,
.admin-group-row:hover td {
  padding: 0.65rem 0.8rem;
  background: #f1f1ee;
  color: #777;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-table-filter {
  width: 100%;
  margin: 0 0 0.75rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.55rem;
  border: 1px solid #ddd;
  background: #eee;
  color: #555;
  font-size: 0.72rem;
  font-weight: 900;
}
.status-badge.ok { background: #e8f7ed; border-color: #a7d8b7; color: #276749; }
.status-badge.warn { background: #fff7cf; border-color: #e9c46a; color: #755900; }
.status-badge.info { background: #e9f2ff; border-color: #aac8f5; color: #164b8f; }
.danger-button,
.admin-shell button.danger-button {
  border: 1px solid #F09595;
  background: #fff;
  color: #A32D2D;
}
.secondary-action,
.admin-shell .secondary-action {
  border: 1px solid #d8d8d2;
  background: #fff;
  color: #333;
}
.admin-drop-zone {
  display: grid;
  place-items: center;
  min-height: 10rem;
  border: 2px dashed #d7d7d0;
  background: #fafaf8;
  text-align: center;
}
.admin-drop-zone input {
  margin-top: 0.75rem;
}
.admin-inspiration {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.admin-inspiration-item {
  display: grid;
  gap: 0.45rem;
}
.admin-inspiration-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.notice {
  width: min(100%, 61rem);
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  background: #fff7c7;
  color: #6c5b00;
}
.print-page {
  background: #fff;
  color: #111;
}
.print-watermark {
  position: fixed;
  inset: 38% auto auto 10%;
  z-index: 0;
  transform: rotate(-24deg);
  color: rgba(0, 0, 0, 0.055);
  font-size: 4.5rem;
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
  pointer-events: none;
}
.print-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
}
.print-sheet header p {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}
.print-sheet h1 {
  margin: 0 0 0.45rem;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.print-sheet header span {
  display: inline-block;
  margin: 0 0.25rem 0.2rem 0;
  border: 1px solid #ccc;
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}
.print-image {
  float: right;
  width: 30%;
  max-width: 8cm;
  height: 3.8cm;
  max-height: 3.8cm;
  object-fit: cover;
  margin: 0 0 0.45rem 0.9rem;
}
.print-compact .print-image,
.print-compact .print-lead,
.print-compact .print-meta,
.print-compact .print-info-sections {
  display: none;
}
.print-visual .print-image {
  float: none;
  display: block;
  width: 100%;
  max-width: none;
  height: 8.5cm;
  max-height: none;
  margin: 0 0 0.55rem;
}
.print-lead {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.35rem 0 0.45rem;
}
.print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.45rem;
}
.print-meta p {
  margin: 0;
  padding: 0.18rem 0.35rem;
  background: #f0f0f0;
  font-size: 0.82rem;
}
.print-columns {
  clear: both;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 0.85rem;
  margin-top: 0.45rem;
}
.print-columns h2 {
  border-bottom: 2px solid #111;
  padding-bottom: 0.16rem;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.print-columns .ingredient-list { gap: 0.18rem; }
.print-columns .ingredient-row {
  grid-template-columns: minmax(3.7rem, max-content) minmax(0, 1fr);
  gap: 0.45rem;
  font-size: 1rem;
}
.print-columns .ingredient-heading {
  margin: 0.55rem 0 0.08rem;
  font-size: 0.9rem;
}
.print-columns ul { margin-top: 0; padding-left: 0; }
.print-columns li { margin: 0 0 0.12rem; line-height: 1.28; }
.print-columns p {
  margin: 0 0 0.34rem;
  line-height: 1.5;
  font-size: 1rem;
}
.print-columns br { line-height: 1.2; }
.print-info-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.45rem;
  page-break-inside: avoid;
}
.print-info-sections * {
  overflow-wrap: normal;
  word-break: normal;
}
.print-info-sections article {
  border: 1px solid #ddd;
  padding: 0.35rem;
}
.print-info-sections h2 {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  text-transform: uppercase;
}
.print-info-sections article > div:not(.impact-layout):not(.impact-icon),
.print-info-sections .impact-climate-card > div:not(.impact-icon) {
  display: grid;
  gap: 0.08rem;
  padding-top: 0.18rem;
}
.print-info-sections strong {
  font-size: 0.78rem;
}
.print-info-sections p {
  margin: 0 0 0.16rem;
  line-height: 1.3;
  font-size: 0.86rem;
}
.print-info-sections .impact-layout {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  gap: 0.22cm;
  border-radius: 0;
  box-shadow: none;
}
.print-info-sections .impact-card {
  min-height: 0;
  gap: 0.25rem;
  padding: 0.35rem;
  box-shadow: none;
}
.print-info-sections .impact-summary-card {
  grid-column: 1 / -1;
}
.print-info-sections .impact-card h2,
.print-info-sections .contains-list h2,
.print-info-sections .contains-list h3,
.print-info-sections .nutrition-card h2 {
  margin-bottom: 0.18rem;
  font-size: 0.82rem;
}
.print-info-sections .impact-card p {
  margin-bottom: 0.18rem;
}
.print-info-sections .impact-icon,
.print-info-sections .impact-read-more,
.print-info-sections .impact-note {
  display: none;
}
.print-info-sections .nutrition-grid {
  grid-template-columns: minmax(0, 1fr) minmax(4.4cm, 0.78fr);
  gap: 0.55rem;
}
.print-info-sections .nutrition-summary-grid {
  grid-template-columns: minmax(5.2cm, 0.85fr) minmax(6.2cm, 1.15fr);
  gap: 0.45rem;
}
.print-info-sections .energy-chart {
  grid-template-columns: 1fr;
  gap: 0.22rem;
  justify-items: center;
}
.print-info-sections .donut {
  width: 5.2rem;
}
.print-info-sections .donut-svg {
  width: 5.2rem;
  height: 5.2rem;
  flex: 0 0 auto;
}
.print-info-sections .energy-chart ul {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: start;
  justify-items: start;
  gap: 0.08rem;
  font-size: 0.75rem;
}
.print-info-sections .energy-explainer,
.print-info-sections .nutrition-assessment-text,
.print-info-sections .impact-estimate-note {
  font-size: 8.5pt;
  line-height: 1.25;
}
.print-info-sections .nutrition-badges {
  grid-template-columns: 1fr;
  gap: 0.1cm;
  margin-top: 0;
}
.print-info-sections .nutrition-badge {
  grid-template-columns: minmax(2.5cm, 1fr) auto;
  padding: 0.06cm 0.12cm;
  font-size: 7.5pt;
  min-height: 0;
}
.print-info-sections .nutrition-badge dd {
  padding: 0.03cm 0.1cm;
}

@media print {
  @page { margin: 0.9cm; }
  .print-page { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-sheet {
    padding: 0;
    width: 100%;
    font-size: 12pt;
  }
  .print-sheet header p { font-size: 9pt; margin-bottom: 0.15cm; }
  .print-sheet h1 { font-size: 20pt; margin-bottom: 0.18cm; }
  .print-sheet header span { font-size: 8.5pt; padding: 0.08cm 0.14cm; margin-bottom: 0.08cm; }
  .print-image {
    width: 23%;
    max-width: 4.4cm;
    height: 2.6cm;
    max-height: 2.6cm;
    margin: 0 0 0.25cm 0.45cm;
  }
  .print-visual .print-image {
    width: 100%;
    max-width: none;
    height: 7.2cm;
    max-height: 7.2cm;
    margin: 0 0 0.28cm;
  }
  .print-compact .print-sheet h1 { font-size: 18pt; }
  .print-lead { font-size: 12pt; line-height: 1.35; margin: 0.18cm 0 0.22cm; }
  .print-meta { gap: 0.12cm; margin-bottom: 0.22cm; }
  .print-meta p { font-size: 9pt; padding: 0.06cm 0.12cm; }
  .print-columns { gap: 0.55cm; margin-top: 0.22cm; }
  .print-columns h2 { font-size: 11pt; margin-bottom: 0.18cm; padding-bottom: 0.06cm; }
  .print-columns .ingredient-list { gap: 0.06cm; }
  .print-columns .ingredient-row { font-size: 12pt; gap: 0.24cm; grid-template-columns: minmax(2.35cm, max-content) minmax(0, 1fr); }
  .print-columns .ingredient-heading { font-size: 10pt; margin: 0.25cm 0 0.04cm; }
  .print-columns li { line-height: 1.32; margin-bottom: 0.08cm; }
  .print-columns p { font-size: 12pt; line-height: 1.35; margin-bottom: 0.2cm; }
  .print-info-sections { gap: 0.22cm; margin-top: 0.25cm; }
  .print-info-sections article { padding: 0.16cm; }
  .print-info-sections h2 { font-size: 10pt; margin-bottom: 0.08cm; }
  .print-info-sections strong,
  .print-info-sections p { font-size: 9pt; line-height: 1.25; }
  .print-info-sections .impact-layout { gap: 0.2cm; }
  .print-info-sections .nutrition-grid { gap: 0.18cm; }
  .print-info-sections .impact-card strong,
  .print-info-sections .impact-card span,
  .print-info-sections .contains-list p,
  .print-info-sections .nutrition-lines p,
  .print-info-sections .energy-chart li { font-size: 9pt; }
  .print-watermark { display: block; }
}
.empty { min-height: 40vh; display: grid; place-items: center; color: var(--muted); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.2rem;
  padding: 1.2rem;
  color: #888;
  background: #050505;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.visit-counter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  color: #666;
}
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(48rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid #2f2f2f;
  background: rgba(5, 5, 5, 0.96);
  color: #fff;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.28);
}

body.theme-turquoise {
  background: #f6f8f8;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body.theme-light-modern {
  background: var(--light-bg);
  color: var(--light-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}
body.theme-light-modern h1,
body.theme-light-modern h2,
body.theme-light-modern h3 {
  color: var(--light-ink);
}
body.theme-light-modern .topbar {
  min-height: 4.4rem;
  border-bottom: 1px solid var(--light-line);
  background: var(--light-paper);
  color: var(--light-ink);
  box-shadow: 0 0.35rem 1.4rem rgba(31,41,51,0.06);
}
body.theme-light-modern .brand span,
body.theme-light-modern .brand em {
  color: var(--light-accent);
}
body.theme-light-modern .brand img {
  background: var(--light-warm);
}
body.theme-light-modern nav a,
body.theme-light-modern .account a,
body.theme-light-modern .account span {
  color: var(--light-ink);
}
body.theme-light-modern .nav-tagline,
body.theme-light-modern .account small {
  color: var(--light-muted);
  border-color: var(--light-line);
}
body.theme-light-modern .top-search input,
body.theme-light-modern input,
body.theme-light-modern textarea,
body.theme-light-modern select {
  border-color: var(--light-line);
  background: #fff;
  color: var(--light-ink);
}
body.theme-light-modern button,
body.theme-light-modern .button,
body.theme-light-modern .edit-link,
body.theme-light-modern .top-search button,
body.theme-light-modern .account button,
body.theme-light-modern .home-search button,
body.theme-light-modern .recipe-filter-bar button,
body.theme-light-modern .editor-save-bar button,
body.theme-light-modern .secondary-button {
  border-radius: 0.35rem;
  background: var(--light-button);
  color: #fff;
}
body.theme-light-modern button:hover,
body.theme-light-modern .button:hover,
body.theme-light-modern .edit-link:hover,
body.theme-light-modern .top-search button:hover,
body.theme-light-modern .account button:hover,
body.theme-light-modern .home-search button:hover,
body.theme-light-modern .recipe-filter-bar button:hover,
body.theme-light-modern .editor-save-bar button:hover {
  background: var(--light-button-hover);
}
body.theme-light-modern .delete-button {
  background: #9f1d1d;
  color: #fff;
}
body.theme-light-modern .content-panel,
body.theme-light-modern .panel,
body.theme-light-modern .recipe-editor-section,
body.theme-light-modern .platform-card,
body.theme-light-modern .related-card,
body.theme-light-modern .recipe-fact-box,
body.theme-light-modern .admin-section,
body.theme-light-modern .admin-nav,
body.theme-light-modern .side-panel {
  border-color: var(--light-line);
  background: var(--light-paper);
}
body.theme-light-modern .home-hero,
body.theme-light-modern .index-hero,
body.theme-light-modern .blog-detail-hero,
body.theme-light-modern .admin-header {
  border: 1px solid var(--light-line);
  background: linear-gradient(135deg, var(--light-paper), var(--light-warm));
  color: var(--light-ink);
}
body.theme-light-modern .home-hero h1,
body.theme-light-modern .index-hero h1,
body.theme-light-modern .admin-header h1 {
  color: var(--light-ink);
}
body.theme-light-modern .home-hero p,
body.theme-light-modern .section-heading a,
body.theme-light-modern .platform-card small,
body.theme-light-modern .breadcrumbs a,
body.theme-light-modern .back-link,
body.theme-light-modern .active-filters a {
  color: var(--light-button);
}
body.theme-light-modern .home-hero span,
body.theme-light-modern .lead,
body.theme-light-modern .platform-card p,
body.theme-light-modern .blog-copy,
body.theme-light-modern label span,
body.theme-light-modern .hint {
  color: var(--light-muted);
}
body.theme-light-modern .quick-actions a,
body.theme-light-modern .chips a,
body.theme-light-modern .t-inline-tags a,
body.theme-light-modern .recipe-fact-box p,
body.theme-light-modern .recipe-meta p,
body.theme-light-modern .category-card,
body.theme-light-modern .active-filters span {
  border-color: var(--light-line);
  background: #fff;
}
body.theme-light-modern .columns section,
body.theme-light-modern .related-recipes {
  border-top-color: var(--light-button);
}
body.theme-light-modern .recipe-live-preview,
body.theme-light-modern .editable-recipe-block:focus,
body.theme-light-modern .direct-recipe-editor [contenteditable="true"]:focus {
  border-color: var(--light-accent);
  background: #fff;
  outline-color: var(--light-accent);
}
body.theme-light-modern .editor-icon-button {
  border-radius: 0.3rem;
  background: #fff;
  color: var(--light-ink);
}
body.theme-light-modern .editor-icon-button:hover,
body.theme-light-modern .editor-icon-button:focus-visible {
  border-color: var(--light-button);
  background: var(--light-warm);
}
body.theme-light-modern .editor-save-bar {
  border-color: var(--light-line);
  background: rgba(255, 255, 255, 0.96);
}
body.theme-light-modern .editor-save-bar a {
  border-radius: 0.35rem;
  border-color: var(--light-line);
  background: #fff;
  color: var(--light-ink);
}
body.theme-light-modern .site-footer {
  background: var(--light-ink);
  color: #fff;
}
body.has-custom-logo.theme-light-modern .custom-site-logo {
  display: block;
}
body.theme-turquoise h1,
body.theme-turquoise h2,
body.theme-turquoise h3,
body.theme-turquoise .brand,
body.theme-turquoise .t-recipe-card h3,
body.theme-turquoise .t-feature-card h3 {
  font-family: "Playfair Display", Georgia, serif;
}
body.theme-turquoise .topbar {
  grid-template-columns: auto minmax(0, 1fr) minmax(15rem, 23.75rem) auto;
  min-height: 56px;
  padding: 0 40px;
  gap: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  color: var(--ink);
}
body.theme-turquoise .brand {
  gap: 0.15rem;
  font-size: 18px;
  color: var(--t800);
}
body.theme-turquoise .brand img,
body.theme-turquoise .brand span,
body.theme-turquoise .brand em {
  display: none;
}
body.theme-turquoise .brand-logo-main {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: 0.45rem;
  border-radius: 4px;
}
body.theme-turquoise .habsalon-logo {
  display: none;
}
body.theme-turquoise .brand strong {
  display: none;
}
body.theme-turquoise .turquoise-brand-text {
  display: inline;
  font-style: normal;
  color: var(--t800);
}
body.theme-turquoise .turquoise-brand-text i {
  color: var(--t400);
  font-style: normal;
}
body.theme-turquoise nav {
  justify-content: flex-end;
  gap: 1.2rem;
  order: 3;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}
body.theme-turquoise nav a,
body.theme-turquoise .account a {
  color: #333;
}
body.theme-turquoise .nav-tagline {
  display: none;
}
body.theme-turquoise .top-search {
  order: 2;
  max-width: 380px;
  width: 100%;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
}
body.theme-turquoise .top-search::before {
  content: "⌕";
  position: absolute;
}
body.theme-turquoise .top-search input {
  height: 34px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #f6f8f8;
}
body.theme-turquoise .top-search button,
body.theme-turquoise .account .button,
body.theme-turquoise .account button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 3px;
  background: var(--t600);
  color: #fff;
  padding: 0 18px;
  font-size: 12px;
  line-height: 1;
}
body.theme-turquoise .account {
  order: 4;
}
body.theme-turquoise .account small {
  color: #999;
}
body.theme-turquoise main {
  width: 100%;
}
.t-category-strip {
  display: flex;
  height: 38px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 40px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}
.t-category-strip::-webkit-scrollbar { display: none; }
.t-category-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-bottom: 2px solid transparent;
  color: #888;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.t-category-strip a span,
.t-left-categories a span,
.t-recipe-categories a span {
  display: none;
}
.t-category-strip a.active {
  color: var(--t800);
  border-bottom-color: var(--t400);
}
.t-category-strip a:hover {
  color: var(--t600);
  border-bottom-color: var(--t200);
}
.t-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  background: var(--t800);
  min-height: 205px;
}
.t-hero > div {
  padding: 28px 48px 28px 40px;
}
.t-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--t200);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.t-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
}
.t-hero-copy {
  max-width: 400px;
  color: var(--t100);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  margin: 0.65rem 0 0;
}
.t-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 0.8rem;
  border-radius: 3px;
  background: var(--t400);
  color: #fff;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}
.t-hero-pick {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 1.25rem;
  text-align: center;
  background: var(--t600);
}
.t-hero-pick small {
  color: var(--t100);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.t-hero-pick span {
  width: 32px;
  height: 2px;
  margin: 8px auto;
  background: var(--t400);
}
.t-hero-pick strong {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
}
.t-hero-pick em {
  max-width: 18rem;
  margin-top: 0.65rem;
  color: var(--t100);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.45;
}
.t-body {
  padding: 24px 40px 60px;
}
.t-body-with-sidebar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}
.t-left-categories {
  align-self: start;
  position: sticky;
  top: 72px;
}
.t-left-categories h2,
.t-recipe-categories h2 {
  margin: 0 0 0.75rem;
  color: #1a1a1a;
  font-size: 18px;
}
.t-left-categories > div,
.t-recipe-categories {
  display: grid;
  gap: 7px;
}
.t-left-categories a,
.t-recipe-categories a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: 0 0.7rem;
  border-left: 3px solid transparent;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 700;
}
.t-left-categories a:hover,
.t-recipe-categories a:hover {
  border-left-color: var(--t400);
  background: var(--t50);
  color: var(--t800);
}
.t-main-feed {
  min-width: 0;
}
.t-category-boxes {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}
.t-category-boxes a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
}
.t-category-boxes a:hover {
  border-color: var(--t400);
  background: var(--t50);
}
.t-category-boxes span {
  color: var(--t600);
  font-size: 20px;
}
.t-category-boxes strong {
  color: #555;
  font-size: 11px;
  font-weight: 600;
}
.t-divider {
  height: 1px;
  margin: 22px 0;
  background: #e8e8e8;
}
.t-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.t-section-header h2 {
  margin: 0;
  color: #1a1a1a;
  font-size: 22px;
}
.t-section-header a {
  color: var(--t600);
  font-size: 12px;
  font-weight: 600;
}
.t-feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.t-feature-grid > div {
  display: grid;
  gap: 12px;
}
.t-feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--t800);
  color: #fff;
}
.t-feature-card.large {
  background: var(--t900);
}
.t-feature-image {
  min-height: 92px;
  display: grid;
  place-items: center;
  background: #007a82;
  font-size: 2rem;
}
.t-feature-card.large .t-feature-image {
  min-height: 124px;
}
.t-feature-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.t-feature-card div:last-child {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 16px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.76));
}
.t-feature-card small {
  color: var(--t200);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.t-feature-card h3 {
  margin: 0.35rem 0;
  color: #fff;
  font-size: 19px;
}
.t-feature-card p {
  color: var(--t100);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
}
.t-grid {
  display: grid;
  gap: 12px;
}
.t-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.t-recipe-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
}
.t-recipe-card:hover {
  border-color: var(--t400);
}
.t-card-image {
  height: 132px;
  display: grid;
  place-items: center;
  background: var(--t50);
  color: var(--t600);
  font-size: 2rem;
}
.t-recipe-card.compact .t-card-image { height: 98px; }
.t-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 12px 11px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.78));
}
.t-card-body small {
  color: var(--t200);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.t-card-body h3 {
  margin: 0.25rem 0;
  color: #fff;
  font-size: 16px;
}
.t-card-body p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.45;
}
.t-card-footer {
  border-top: 1px solid #f0f0f0;
  padding: 9px 14px;
  color: #aaa;
  font-size: 11px;
}
.t-recipe-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 40px 60px;
}
.t-recipe-shell > div {
  min-width: 0;
}
.t-recipe-categories {
  align-self: start;
  position: sticky;
  top: 72px;
}
body.theme-turquoise .t-recipe-detail {
  padding-top: 0;
  background: #fff;
}
body.theme-turquoise .recipe-hero,
body.theme-turquoise .recipe-carousel {
  position: relative;
}
body.theme-turquoise .recipe-hero img {
  max-height: 32rem;
}
body.theme-turquoise .recipe-carousel-track {
  min-height: clamp(18rem, 45vw, 34rem);
  max-height: 34rem;
}
.t-image-tags {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.t-image-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 3px;
  background: rgba(0, 74, 80, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}
body.theme-turquoise .t-recipe-detail .recipe-body {
  max-width: none;
  padding: 1.2rem 2rem 3rem;
}
body.theme-turquoise .recipe-actions,
body.theme-turquoise .t-top-actions,
body.theme-turquoise .t-cook-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
body.theme-turquoise .t-top-actions {
  justify-content: flex-end;
  margin: 0 0 0.7rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}
body.theme-turquoise .t-cook-tag-row {
  margin: 0.4rem 0 1rem;
}
body.theme-turquoise .recipe-actions .edit-link,
body.theme-turquoise .recipe-actions button,
body.theme-turquoise .t-top-actions .edit-link,
body.theme-turquoise .t-top-actions button,
body.theme-turquoise .t-cook-tag-row button,
body.theme-turquoise .serving-adjuster button,
body.theme-turquoise .unit-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: 38px;
  border-radius: 3px;
  background: var(--t600);
  color: #fff;
  padding: 0 1rem;
  margin: 0;
}
body.theme-turquoise .t-top-actions form,
body.theme-turquoise .recipe-actions form {
  margin: 0;
}
body.theme-turquoise .cook-mode-button {
  min-width: 10rem;
}
body.theme-turquoise .cook-mode-button[aria-pressed="true"] {
  background: var(--t400);
  color: #fff;
}
body.theme-turquoise .cook-mode-hint {
  border-color: var(--t100);
  background: var(--t50);
  color: var(--t800);
}
body.theme-turquoise .serving-adjuster input {
  height: 38px;
}
body.theme-turquoise .serving-adjuster {
  gap: 0.8rem;
}
body.theme-turquoise .cook-control-row {
  gap: 0.8rem;
  align-items: center;
}
.t-inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 38px;
  align-items: center;
}
.t-inline-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.75rem;
  border: 1px solid var(--t200);
  border-radius: 3px;
  background: var(--t50);
  color: var(--t800);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
body.theme-turquoise .delete-button {
  background: var(--t900) !important;
}
.t-recipe-image-fallback {
  display: grid;
  place-items: center;
  min-height: 18rem;
  background: var(--t50);
  color: var(--t600);
  font-size: 4rem;
}
body.theme-turquoise .site-footer {
  justify-content: space-between;
  padding: 24px 40px;
  background: var(--t900);
  color: var(--t100);
}
body.theme-turquoise .site-footer::before {
  content: "Verdens Lækreste Opskrifter";
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

body.theme-turquoise.cook-mode .cook-timer-top,
body.theme-turquoise .cook-timer-toggle,
body.theme-turquoise .cook-timer-form button,
body.theme-turquoise .cook-step-top button,
body.theme-turquoise .cook-step-controls button {
  background: var(--t600);
  color: #fff;
}
body.theme-turquoise.cook-mode .cook-timer-panel {
  border-color: var(--t100);
}
body.theme-turquoise.cook-mode .recipe-body {
  padding: 1rem 1.5rem 2rem;
}
body.theme-turquoise.cook-mode .columns {
  gap: 1.4rem;
}

body.theme-habsalon {
  --h-red-local: var(--h-red, #ef3333);
  --h-dark-local: var(--h-dark, #090909);
  --h-cream-local: var(--h-cream, #fff4e8);
  --h-sand-local: var(--h-sand, #f3e1cf);
  background: var(--h-cream-local);
  color: var(--h-dark-local);
  font-family: Inter, Arial, Helvetica, sans-serif;
}
body.theme-habsalon h1,
body.theme-habsalon h2,
body.theme-habsalon h3,
body.theme-habsalon .t-recipe-card h3,
body.theme-habsalon .t-feature-card h3 {
  font-family: "Arial Black", Impact, Inter, sans-serif;
  letter-spacing: 0.01em;
}
body.theme-habsalon .topbar {
  grid-template-columns: auto minmax(0, 1fr) minmax(15rem, 24rem) auto;
  min-height: 64px;
  padding: 0 36px;
  gap: 1.4rem;
  border-bottom: 4px solid var(--h-red-local);
  background: var(--h-dark-local);
  color: #fff;
}
body.theme-habsalon .brand {
  min-width: 13rem;
}
body.theme-habsalon .brand-logo-main,
body.theme-habsalon .brand span,
body.theme-habsalon .brand strong,
body.theme-habsalon .brand em,
body.theme-habsalon .turquoise-brand-text {
  display: none;
}
body.theme-habsalon .habsalon-logo {
  display: block;
  width: clamp(11rem, 18vw, 17rem);
  height: auto;
  margin: 0;
  border-radius: 0;
}
body.theme-habsalon nav {
  justify-content: flex-end;
  gap: 1.25rem;
  order: 3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
body.theme-habsalon nav a,
body.theme-habsalon .account a {
  color: #fff;
}
body.theme-habsalon nav a:hover {
  color: var(--h-red-local);
}
body.theme-habsalon .nav-tagline {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
}
body.theme-habsalon .top-search {
  order: 2;
  max-width: 390px;
  width: 100%;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}
body.theme-habsalon .top-search input {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
body.theme-habsalon .top-search button,
body.theme-habsalon .account .button,
body.theme-habsalon .account button,
body.theme-habsalon .t-cta,
body.theme-habsalon .recipe-actions .edit-link,
body.theme-habsalon .recipe-actions button,
body.theme-habsalon .t-top-actions .edit-link,
body.theme-habsalon .t-top-actions button,
body.theme-habsalon .t-cook-tag-row button,
body.theme-habsalon .serving-adjuster button,
body.theme-habsalon .unit-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: var(--h-red-local);
  color: #fff;
  padding: 0 1.05rem;
  margin: 0;
  box-shadow: none;
}
body.theme-habsalon .account {
  gap: 0.8rem;
}
body.theme-habsalon .account span {
  color: #fff;
}
body.theme-habsalon .account small {
  color: rgba(255,255,255,0.55);
}
body.theme-habsalon main {
  width: 100%;
}
body.theme-habsalon .t-category-strip {
  height: 46px;
  padding: 0 36px;
  border-bottom: 1px solid #111;
  background: #fff;
}
body.theme-habsalon .t-category-strip a {
  height: 46px;
  color: #222;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}
body.theme-habsalon .t-category-strip a span,
body.theme-habsalon .t-left-categories a span,
body.theme-habsalon .t-recipe-categories a span,
body.theme-habsalon .t-category-boxes span {
  display: none;
}
body.theme-habsalon .t-category-strip a.active,
body.theme-habsalon .t-category-strip a:hover {
  color: var(--h-red-local);
  border-bottom-color: var(--h-red-local);
}
body.theme-habsalon .t-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 255px;
  border-bottom: 4px solid var(--h-dark-local);
  background: var(--h-dark-local);
}
body.theme-habsalon .t-hero > div {
  padding: 38px 48px 34px 40px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.9), rgba(0,0,0,0.62)),
    repeating-linear-gradient(135deg, rgba(239,51,51,0.18) 0 2px, transparent 2px 18px);
}
body.theme-habsalon .t-eyebrow {
  color: var(--h-red-local);
  font-weight: 900;
}
body.theme-habsalon .t-hero h1 {
  max-width: 36rem;
  color: #fff;
  font-size: clamp(2.35rem, 4vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}
body.theme-habsalon .t-hero-copy {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}
body.theme-habsalon .t-hero-pick {
  background: var(--h-red-local);
}
body.theme-habsalon .t-hero-pick small,
body.theme-habsalon .t-hero-pick em {
  color: rgba(255,255,255,0.8);
}
body.theme-habsalon .t-hero-pick span {
  background: #fff;
}
body.theme-habsalon .t-hero-pick strong {
  font-family: "Arial Black", Impact, Inter, sans-serif;
  text-transform: uppercase;
}
body.theme-habsalon .t-body {
  padding: 28px 36px 60px;
  background: var(--h-cream-local);
}
body.theme-habsalon .t-body-with-sidebar,
body.theme-habsalon .t-recipe-shell {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
}
body.theme-habsalon .t-left-categories,
body.theme-habsalon .t-recipe-categories {
  top: 82px;
}
body.theme-habsalon .t-left-categories h2,
body.theme-habsalon .t-recipe-categories h2 {
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--h-red-local);
  color: var(--h-dark-local);
  font-family: "Arial Black", Impact, Inter, sans-serif;
  text-transform: uppercase;
}
body.theme-habsalon .t-left-categories a,
body.theme-habsalon .t-recipe-categories a,
body.theme-habsalon .t-category-boxes a {
  border: 2px solid var(--h-dark-local);
  border-radius: 0;
  background: #fff;
  color: var(--h-dark-local);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
body.theme-habsalon .t-left-categories a:hover,
body.theme-habsalon .t-recipe-categories a:hover,
body.theme-habsalon .t-category-boxes a:hover {
  border-color: var(--h-red-local);
  background: var(--h-red-local);
  color: #fff;
}
body.theme-habsalon .t-category-boxes {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
body.theme-habsalon .t-divider {
  height: 4px;
  margin: 28px 0;
  background: var(--h-dark-local);
}
body.theme-habsalon .t-section-header h2 {
  color: var(--h-dark-local);
  font-size: 28px;
  text-transform: uppercase;
}
body.theme-habsalon .t-section-header a {
  color: var(--h-red-local);
  font-weight: 900;
}
body.theme-habsalon .t-feature-card,
body.theme-habsalon .t-recipe-card {
  border: 3px solid var(--h-dark-local);
  border-radius: 0;
  background: #fff;
}
body.theme-habsalon .t-feature-card:hover,
body.theme-habsalon .t-recipe-card:hover {
  border-color: var(--h-red-local);
}
body.theme-habsalon .t-feature-image {
  min-height: 112px;
  background: var(--h-red-local);
}
body.theme-habsalon .t-feature-card.large .t-feature-image {
  min-height: 150px;
}
body.theme-habsalon .t-feature-card div:last-child,
body.theme-habsalon .t-card-body {
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.88));
}
body.theme-habsalon .t-feature-card small,
body.theme-habsalon .t-card-body small {
  color: #ff6262;
}
body.theme-habsalon .t-card-image {
  height: 140px;
  background: var(--h-sand-local);
  color: var(--h-red-local);
}
body.theme-habsalon .t-recipe-card.compact .t-card-image {
  height: 108px;
}
body.theme-habsalon .t-recipe-shell {
  padding: 32px 36px 64px;
  background: var(--h-cream-local);
}
body.theme-habsalon .t-recipe-detail {
  padding-top: 0;
  border: 3px solid var(--h-dark-local);
  background: #fff;
}
body.theme-habsalon .recipe-hero,
body.theme-habsalon .recipe-carousel {
  position: relative;
  border-bottom: 4px solid var(--h-red-local);
}
body.theme-habsalon .recipe-hero img {
  max-height: 32rem;
}
body.theme-habsalon .recipe-carousel-track {
  min-height: clamp(18rem, 45vw, 34rem);
  max-height: 34rem;
}
body.theme-habsalon .t-image-tags a,
body.theme-habsalon .t-inline-tags a {
  border: 2px solid #fff;
  border-radius: 0;
  background: rgba(239, 51, 51, 0.9);
  color: #fff;
}
body.theme-habsalon .t-recipe-detail .recipe-body {
  max-width: none;
  padding: 1.2rem 2rem 3rem;
}
body.theme-habsalon .t-top-actions,
body.theme-habsalon .t-cook-tag-row,
body.theme-habsalon .recipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
body.theme-habsalon .t-top-actions {
  justify-content: flex-end;
  margin: 0 0 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 4px solid var(--h-dark-local);
}
body.theme-habsalon .t-cook-tag-row {
  margin: 0.4rem 0 1rem;
}
body.theme-habsalon .cook-mode-button {
  min-width: 10rem;
  background: var(--h-dark-local);
}
body.theme-habsalon .cook-mode-button[aria-pressed="true"] {
  background: var(--h-red-local);
}
body.theme-habsalon .cook-mode-hint {
  border-color: var(--h-red-local);
  background: #fff;
  color: var(--h-dark-local);
}
body.theme-habsalon .serving-adjuster {
  gap: 0.8rem;
}
body.theme-habsalon .serving-adjuster input {
  height: 40px;
  border: 2px solid var(--h-dark-local);
  border-radius: 0;
}
body.theme-habsalon .delete-button {
  background: var(--h-dark-local) !important;
}
body.theme-habsalon .site-footer {
  justify-content: space-between;
  padding: 24px 36px;
  border-top: 5px solid var(--h-red-local);
  background: var(--h-dark-local);
  color: rgba(255,255,255,0.7);
}
body.theme-habsalon .site-footer::before {
  content: "Habsalon Madklub for CSL";
  color: var(--h-red-local);
  font-family: "Arial Black", Impact, Inter, sans-serif;
  font-size: 18px;
  font-weight: 900;
}
body.theme-habsalon.cook-mode .cook-timer-top,
body.theme-habsalon .cook-timer-toggle,
body.theme-habsalon .cook-timer-form button,
body.theme-habsalon .cook-step-top button,
body.theme-habsalon .cook-step-controls button {
  background: var(--h-red-local);
  color: #fff;
}
body.theme-habsalon.cook-mode .cook-timer-panel {
  border-color: var(--h-red-local);
}
body.theme-habsalon.cook-mode .recipe-body {
  padding: 1rem 1.5rem 2rem;
}
body.theme-habsalon.cook-mode .columns {
  gap: 1.4rem;
}

body.has-custom-logo.theme-turquoise .brand-logo-main,
body.has-custom-logo.theme-habsalon .habsalon-logo,
body.has-custom-logo.theme-turquoise .turquoise-brand-text {
  display: none;
}
body.has-custom-logo.theme-turquoise .custom-site-logo,
body.has-custom-logo.theme-habsalon .custom-site-logo {
  display: block;
}
body.has-custom-logo.theme-turquoise .brand,
body.has-custom-logo.theme-habsalon .brand {
  min-width: 0;
}

/* Unified visual design system: colors, radius, buttons and badges only. */
body {
  background: var(--color-bg);
  color: var(--color-text);
}

input,
select,
textarea {
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
}

button,
.button,
a.button {
  border-radius: var(--radius-md);
}

.btn-primary,
.top-search button,
.home-search button,
.recipe-filter-bar button,
.food-search button,
.skolegpt button,
.cookie-banner button,
.cook-timer-form button,
.cook-step-top button,
.cook-step-controls button {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary:hover,
.top-search button:hover,
.home-search button:hover,
.recipe-filter-bar button:hover,
.food-search button:hover,
.skolegpt button:hover,
.cookie-banner button:hover,
.cook-timer-form button:hover,
.cook-step-top button:hover,
.cook-step-controls button:hover {
  background: var(--color-cta-hover);
}

.btn-primary:active,
.top-search button:active,
.home-search button:active,
.recipe-filter-bar button:active,
.food-search button:active,
.skolegpt button:active,
.cookie-banner button:active,
.cook-timer-form button:active,
.cook-step-top button:active,
.cook-step-controls button:active {
  transform: scale(0.98);
}

.btn-secondary,
.filter-reset,
.cook-mode-button,
.serving-adjuster button,
.unit-mode-button,
.impact-toggle-button,
.back-link {
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--color-cta);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-cta);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-secondary:hover,
.filter-reset:hover,
.cook-mode-button:hover,
.serving-adjuster button:hover,
.unit-mode-button:hover,
.impact-toggle-button:hover,
.back-link:hover {
  background: #fdf0eb;
}

.serving-adjuster button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.cook-mode-button::before {
  border-color: currentColor;
}

.cook-mode-button::after {
  background: currentColor;
}

.btn-ghost,
.share-recipe-button,
a[data-print-recipe],
.section-heading a,
.quick-actions a,
.load-more a,
.feature-link,
.read-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-ghost:hover,
.share-recipe-button:hover,
a[data-print-recipe]:hover,
.section-heading a:hover,
.quick-actions a:hover,
.load-more a:hover,
.feature-link:hover,
.read-more-link:hover {
  background: #eceae4;
}

.recipe-card,
.platform-card,
.blog-card,
.related-card,
.category-tile,
.category-landing-card,
.recipe-filter-bar,
.food-search,
.recipe-fact-box,
.filter-panel,
.theme-card,
.admin-card {
  border-radius: var(--radius-lg);
  border-color: var(--color-border);
  background: var(--color-surface);
}

.recipe-card,
.platform-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.recipe-card:hover,
.platform-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.category-tile,
.category-landing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color 0.15s;
}

.category-tile:hover,
.category-landing-card:hover {
  border-color: var(--color-cta);
}

.badge,
.card-badges span,
.recipe-meta p,
.print-meta p,
.t-inline-tags a,
.t-image-tags a,
.chips a,
.chips span,
.status-badge,
.structure-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.badge-freeze,
.card-badges .badge-freeze {
  background: var(--badge-freeze-bg);
  color: var(--badge-freeze-text);
}

.badge-category,
.card-badges .badge-category,
.chips a,
.chips span,
.t-inline-tags a,
.t-image-tags a {
  background: var(--badge-cat-bg);
  color: var(--badge-cat-text);
}

.badge-method,
.card-badges .badge-method {
  background: var(--badge-method-bg);
  color: var(--badge-method-text);
}

.badge-time,
.card-badges .badge-time,
.recipe-meta p:first-child,
.print-meta p:first-child {
  background: var(--badge-time-bg);
  color: var(--badge-time-text);
}

.badge-special,
.card-badges .badge-special {
  background: var(--badge-veg-bg);
  color: var(--badge-veg-text);
}

.card-badges span {
  border: 0;
  text-transform: none;
}

.recipe-actions .share-recipe-button,
.recipe-actions a[data-print-recipe],
.t-top-actions .share-recipe-button,
.t-top-actions a[data-print-recipe] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  line-height: 1;
  text-align: center;
}

.recipe-actions a.edit-link[data-print-recipe],
.t-top-actions a.edit-link[data-print-recipe],
body.theme-light-modern .recipe-actions a.edit-link[data-print-recipe],
body.theme-light-modern .t-top-actions a.edit-link[data-print-recipe],
body.theme-turquoise .recipe-actions a.edit-link[data-print-recipe],
body.theme-turquoise .t-top-actions a.edit-link[data-print-recipe],
body.theme-habsalon .recipe-actions a.edit-link[data-print-recipe],
body.theme-habsalon .t-top-actions a.edit-link[data-print-recipe] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Header navigation fix: keep labels on one line and move overflow into "Mere". */
.topbar {
  grid-template-columns: auto minmax(0, 1fr) minmax(14rem, 22rem) auto;
}
.brand img,
body.has-custom-logo .custom-site-logo,
body.theme-habsalon .habsalon-logo {
  width: auto;
  height: 36px;
  max-height: 36px;
}
.primary-nav,
.primary-nav a,
.primary-nav button,
.nav-dropdown a {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.primary-nav {
  min-width: 0;
  gap: clamp(0.45rem, 1vw, 0.9rem);
}
.primary-nav a,
.primary-nav button {
  font-size: 0.72rem;
  line-height: 1;
}
.nav-more > button {
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.nav-more > button:hover {
  background: transparent;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  display: none;
  min-width: 180px;
  border: 1px solid #EAE0D5;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nav-more:hover .nav-dropdown,
.nav-more.is-open .nav-dropdown {
  display: grid;
}
.nav-dropdown a {
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.2;
  text-transform: none;
}
.nav-dropdown a:hover {
  background: #F2EBE0;
}
.account {
  white-space: nowrap;
}
.account-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: max-content;
}
.footer-version {
  margin-left: auto;
}

@media (max-width: 1000px) {
  body.theme-turquoise .topbar { grid-template-columns: 1fr; height: auto; padding: 0.8rem 1rem; }
  body.theme-turquoise nav, body.theme-turquoise .account, body.theme-turquoise .top-search { order: initial; justify-self: stretch; }
  body.theme-habsalon .topbar { grid-template-columns: 1fr; height: auto; padding: 0.8rem 1rem; }
  body.theme-habsalon nav, body.theme-habsalon .account, body.theme-habsalon .top-search { order: initial; justify-self: stretch; }
  body.theme-habsalon .habsalon-logo { width: 12rem; }
  body.theme-habsalon .t-hero { grid-template-columns: 1fr; }
  body.theme-habsalon .t-body-with-sidebar,
  body.theme-habsalon .t-recipe-shell { grid-template-columns: 1fr; padding-inline: 1rem; }
  body.theme-habsalon .t-left-categories,
  body.theme-habsalon .t-recipe-categories { position: static; }
  body.theme-habsalon .t-category-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-hero, .t-feature-grid { grid-template-columns: 1fr; }
  .t-body-with-sidebar, .t-recipe-shell { grid-template-columns: 1fr; padding-inline: 1rem; }
  .t-left-categories, .t-recipe-categories { position: static; }
  .t-category-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-grid4, .t-grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.cookie-banner p {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.82rem;
  line-height: 1.45;
}
.cookie-banner button {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr; padding: 1rem; }
  .brand img { width: 2.7rem; height: 2.7rem; }
  body.has-custom-logo .custom-site-logo { height: 3rem; max-width: 68vw; }
  .brand { font-size: 1.45rem; }
  nav, .account { justify-content: flex-start; flex-wrap: wrap; }
  .top-search { width: 100%; }
  .page-frame, .food-search, .recipe-detail, .columns, .admin-grid, .split-feature, .skolegpt, .time-fields, .new-category-inline { grid-template-columns: 1fr; }
  .impact-layout,
  .nutrition-grid,
  .nutrition-summary-grid,
  .energy-chart {
    grid-template-columns: 1fr;
  }
  .print-choice-dialog > div {
    grid-template-columns: 1fr;
  }
  .admin-modern { grid-template-columns: 1fr; padding: 1rem; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .admin-nav-group p {
    flex: 1 0 100%;
  }
  .admin-main { padding: 1rem; }
  .admin-metrics,
  .admin-shell .admin-two-col,
  .admin-inspiration {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-nav strong { grid-column: 1 / -1; }
  .admin-header {
    display: grid;
    align-items: start;
  }
  .admin-header dl,
  .admin-two-col {
    grid-template-columns: 1fr;
  }
  .admin-modern table {
    min-width: 40rem;
  }
  .admin-modern .structure-table {
    min-width: 0;
  }
  .home-hero,
  .index-hero,
  .blog-detail-hero,
  .guide-step,
  .recipe-filter-bar {
    grid-template-columns: 1fr;
  }
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recipe-filter-bar {
    position: static;
  }
  .theme-watermark-grid { grid-template-columns: 1fr; }
  .recipe-editor {
    grid-template-columns: 1fr;
  }
  .recipe-editor-section-basic {
    grid-template-columns: 1fr;
  }
  .recipe-live-preview {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }
  .page-frame { display: flex; flex-direction: column; }
  .content-panel { order: 1; display: flex; flex-direction: column; width: 100%; }
  .left-panel { order: 2; width: 100%; }
  .side-panel { position: static; }
  .right-panel { display: none; }
  .food-search { order: -4; }
  .category-strip { order: -3; }
  .all-recipes { order: -2; }
  .inspiration-top, .food-hero, .skolegpt, .explore-more, .split-feature { margin-bottom: 1.6rem; }
  .inspiration-top { grid-template-columns: repeat(3, 1fr); }
  .assistant-results { grid-template-columns: repeat(2, 1fr); }
  .explore-more > div { grid-template-columns: repeat(4, 1fr); }
  .feature-row, .small-row, .ideas-grid, .grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-detail aside { position: static; }
  .cookie-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  body.cook-mode .columns {
    grid-template-columns: 1fr;
  }
  body.cook-mode .serving-adjuster {
    position: static;
  }
  body.cook-mode .recipe-actions {
    position: sticky;
  }
  body.cook-mode .cook-step-top,
  body.cook-mode .cook-step-controls {
    display: grid;
    grid-template-columns: 1fr;
  }
  body.cook-mode .cook-timer-form,
  body.cook-mode .cook-timer {
    grid-template-columns: minmax(0, 1fr) 4.2rem 4.2rem;
  }
  body.cook-mode .cook-timer-form button {
    grid-column: 1 / -1;
  }
  body.cook-mode .cook-timer span {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body.cook-mode main {
    padding-inline: 0;
  }
  body.cook-mode .recipe-detail {
    padding: 0.85rem;
  }
  body.cook-mode .recipe-detail h1 {
    font-size: 2rem;
    line-height: 1;
  }
  body.cook-mode .recipe-actions {
    position: sticky;
    top: 0;
    margin: 0 0 1rem;
    padding: 0.7rem 7.8rem 0.7rem 0;
  }
  body.cook-mode .cook-mode-button {
    width: auto;
  }
  body.cook-mode .serving-adjuster {
    position: static;
    width: 100%;
  }
  body.cook-mode .chips,
  body.cook-mode .lead,
  body.cook-mode .recipe-meta {
    display: block;
  }
  body.cook-mode .columns {
    gap: 1rem;
    margin-top: 1rem;
  }
  body.cook-mode .columns section,
  body.cook-mode .columns section:nth-child(2) {
    display: block;
    padding: 1rem;
    border-width: 2px;
  }
  body.cook-mode .cook-steps {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  body.cook-mode .cook-step-top,
  body.cook-mode [data-cook-step-text],
  body.cook-mode .cook-step-controls,
  body.cook-mode [data-cook-all-steps] {
    display: none;
  }
  body.cook-mode .cook-timers {
    top: auto;
    right: auto;
    width: 100%;
  }
  body.cook-mode .cook-timer-panel {
    position: static;
  }
  body.cook-mode .cook-timer-toggle {
    min-height: 3rem;
    padding: 0.68rem 0.78rem;
  }
  body.cook-mode .cook-timer-panel {
    padding: 0.65rem;
  }
  body.cook-mode li,
  body.cook-mode .columns p {
    font-size: 1.05rem;
    line-height: 1.65;
  }
}

@media (max-width: 520px) {
  main { padding-inline: 1rem; }
  .hero-image h1 { font-size: 2rem; }
  .explore-more > div, .feature-row, .small-row, .ideas-grid, .grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar,
  body.theme-turquoise .topbar,
  body.theme-habsalon .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.75rem 1rem;
  }
  .brand {
    min-width: 0;
  }
  .brand img,
  body.has-custom-logo .custom-site-logo,
  body.theme-habsalon .habsalon-logo {
    width: auto;
    height: 36px;
    max-height: 36px;
  }
  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-md);
    background: transparent;
    color: currentColor;
    font-size: 1.35rem;
  }
  .primary-nav,
  body.theme-turquoise nav,
  body.theme-habsalon nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid #EAE0D5;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-text);
    overflow: hidden;
  }
  .topbar.is-open .primary-nav {
    display: flex;
  }
  .primary-nav a,
  .primary-nav button,
  .nav-dropdown a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .nav-more {
    width: 100%;
  }
  .nav-more > button {
    padding: 12px 16px;
    color: var(--color-text);
    font-size: 15px;
  }
  .nav-dropdown,
  .nav-more:hover .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f8f3ec;
  }
  .nav-more.is-open .nav-dropdown {
    display: grid;
  }
  .top-search,
  body.theme-turquoise .top-search,
  body.theme-habsalon .top-search {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-self: stretch;
  }
  .account {
    grid-column: 1 / -1;
    order: 4;
    justify-content: flex-start;
    width: 100%;
  }
}
