@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
}

:root {
  --bg: #f6f2ea;
  --bg-soft: #fbf7f0;
  --paper: #fffcf7;
  --paper-2: #faf5ed;
  --text: #17352e;
  --muted: #66746f;
  --line: rgba(23, 53, 46, 0.12);
  --line-strong: rgba(23, 53, 46, 0.18);
  --forest: #204f43;
  --forest-deep: #163b34;
  --forest-soft: #42685e;
  --gold: #bd8c47;
  --gold-soft: #e8d8b7;
  --sage: #dbe4d6;
  --shadow: 0 20px 52px rgba(24, 37, 31, 0.08);
  --shadow-lg: 0 30px 80px rgba(20, 30, 26, 0.12);
  --radius-xl: 18px;
  --radius-lg: 13px;
  --radius-md: 8px;
  --container: 1510px;
  --copy-width: 62ch;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(223, 208, 178, 0.38), transparent 22%),
    radial-gradient(circle at 92% 10%, rgba(214, 225, 208, 0.34), transparent 18%),
    linear-gradient(180deg, #f8f4ed 0%, #f6f2ea 45%, #f3eee5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(189, 140, 71, 0.72);
  outline-offset: 3px;
}

p {
  line-height: 1.72;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #173a32;
}

h1 {
  font-size: clamp(3.7rem, 5.85vw, 6.2rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.5rem, 3.25vw, 4rem);
  line-height: 0.95;
}

h3 {
  font-size: clamp(1.7rem, 2vw, 2.55rem);
  line-height: 0.98;
}

.skip-link {
  position: absolute;
  top: -56px;
  left: 18px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--forest-deep);
  color: #f8f0e6;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.inner-page {
  padding-bottom: 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 8px max(20px, calc((100vw - var(--container)) / 2 + 20px)) 8px;
  background: rgba(248, 244, 237, 0.98);
  border-bottom: 1px solid rgba(23, 53, 46, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf7, #f5f0e5);
  border: 1px solid rgba(23, 53, 46, 0.08);
  box-shadow: 0 12px 28px rgba(23, 53, 46, 0.08);
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.brand strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.16rem;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.2;
  white-space: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--forest-soft);
}

.main-nav a {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 252, 247, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current='page'],
.main-nav a[aria-current='location'] {
  color: var(--forest-deep);
  border-color: rgba(23, 53, 46, 0.16);
  transform: translateY(-1px);
}

.main-nav a[aria-current='page'],
.main-nav a[aria-current='location'] {
  font-weight: 600;
  background: rgba(255, 252, 247, 0.9);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(189, 140, 71, 0.7);
}

#recipe-finder,
#goals,
#science,
#collections {
  scroll-margin-top: 116px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 28px;
  padding: 26px 0 18px;
  align-items: center;
}

.hero-copy {
  padding: 26px 6px 18px 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #35584e;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow::before {
  content: '';
  width: 40px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #d9b06d);
}

.hero-copy h1,
.page-hero h1 {
  max-width: 11ch;
}

.hero-copy h1 em,
.page-hero h1 em,
.display-accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.lede {
  max-width: var(--copy-width);
  font-size: 1.1rem;
}

.hero-actions,
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin: 26px 0 22px;
}

.hero-meta {
  margin: 0 0 18px;
  color: var(--forest-soft);
  font-size: 0.98rem;
  font-weight: 600;
}

.editorial-proof {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}

.editorial-proof strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}

.proof-points,
.finder-shortcuts,
.chip-row,
.listing-hero-meta,
.recipe-highlights,
.tag-row,
.card-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-points span,
.listing-hero-meta span,
.recipe-highlights span,
.tag-row span,
.chip-row a,
.finder-shortcuts a,
.card-stat-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 252, 247, 0.78);
  color: var(--forest-soft);
  font-size: 0.95rem;
}

.chip-row a,
.finder-shortcuts a {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip-row a:hover,
.finder-shortcuts a:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 53, 46, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--forest);
  color: #faf6ee;
  box-shadow: 0 18px 36px rgba(23, 53, 46, 0.14);
}

.button-accent {
  box-shadow: 0 22px 40px rgba(23, 53, 46, 0.18);
}

.button-secondary {
  background: rgba(255, 252, 247, 0.78);
  color: var(--forest);
  border-color: rgba(23, 53, 46, 0.12);
}

.button:focus-visible,
.related-card:focus-visible,
.collection-card:focus-visible,
.cross-links a:focus-visible,
.footer-links a:focus-visible,
.recipe-pager a:focus-visible,
.recipe-card h3 a:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 249, 240, 0.95), 0 0 0 7px rgba(189, 140, 71, 0.28);
}

.hero-panel {
  min-width: 0;
}

.hero-panel-card,
.finder-card,
.recipe-card,
.collection-card,
.science-strip,
.goal-item,
.faq-card,
.page-hero,
.recipe-main,
.recipe-sidebar,
.collection-intro,
.collection-panel,
.mini-card,
.goal-intro {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(251, 246, 238, 0.94));
  border: 1px solid rgba(23, 53, 46, 0.08);
  box-shadow: var(--shadow);
}

.hero-panel-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 468px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0) 0%, rgba(32, 79, 67, 0.12) 100%),
    linear-gradient(180deg, #f7f2e9 0%, #efe4d3 100%);
}

.visual-panel {
  gap: 0;
}

.plated-scene {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.2), rgba(0, 0, 0, 0.06)),
    url('/assets/scene-salmon-bowl.svg') center/cover no-repeat;
}

.plated-scene-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate,
.leaf,
.accent {
  display: none;
}

.visual-caption {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(320px, 64%);
  margin: auto 4px 2px auto;
  padding: 24px 22px;
  border-radius: 26px;
  background: rgba(53, 79, 69, 0.9);
  color: #f7f0e4;
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 48px rgba(14, 28, 23, 0.18);
}

.visual-caption h2,
.visual-caption p,
.visual-caption span {
  color: inherit;
}

.panel-label {
  margin: 0 0 10px;
  color: #d1ac6d;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.section-heading.narrow {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.faq-heading {
  margin-bottom: 14px;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--forest-soft);
  font-size: 1.02rem;
}

.section-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.section-actions-inline {
  margin-top: 16px;
}

.builder-surface {
  padding-top: 8px;
}

.builder-shell {
  gap: 28px;
}

.builder-form {
  display: grid;
  gap: 16px;
}

.builder-form select {
  min-height: 56px;
}

.builder-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--forest);
  font-weight: 600;
}

.builder-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.builder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.builder-preset-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.builder-preset-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  color: var(--forest);
  font-size: .94rem;
  font-weight: 600;
}

.builder-preset-links a:hover {
  border-color: rgba(23, 53, 46, 0.25);
  box-shadow: var(--shadow-sm);
}

.builder-output-shell {
  padding-top: 10px;
}

.swap-shell {
  gap: 28px;
}

.swap-form {
  display: grid;
  gap: 16px;
}

.swap-results-shell {
  padding-top: 10px;
}

.swap-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.swap-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
}

.swap-card-good {
  border-color: rgba(49, 102, 73, 0.22);
}

.swap-card-maybe {
  border-color: rgba(193, 143, 63, 0.28);
}

.swap-card-caution {
  border-color: rgba(173, 93, 65, 0.28);
}

.swap-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.swap-card-head .eyebrow,
.swap-card-head h3,
.swap-use,
.swap-block p {
  margin: 0;
}

.swap-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.swap-badge-good {
  background: rgba(41, 72, 61, 0.9);
  color: #f5ddab;
}

.swap-badge-maybe {
  background: rgba(182, 138, 52, 0.16);
  color: #815d19;
}

.swap-badge-caution {
  background: rgba(173, 93, 65, 0.14);
  color: #934724;
}

.swap-use {
  color: var(--forest);
}

.swap-category-summary,
.swap-browse-links,
.swap-goal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swap-category-summary {
  margin: 0 0 14px;
}

.swap-category-summary span,
.swap-browse-links a,
.swap-goal-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
  color: var(--forest);
  font-size: .9rem;
}

.swap-category-summary strong {
  margin-right: 6px;
}

.swap-browse-links {
  margin: 0 0 18px;
}

.swap-browse-links a:hover {
  border-color: rgba(23, 53, 46, 0.25);
  box-shadow: var(--shadow-sm);
}

.swap-goal-row span {
  color: var(--forest-soft);
  font-weight: 600;
}

.swap-block {
  display: grid;
  gap: 8px;
}

.swap-list {
  margin: 0;
  padding-left: 18px;
  color: var(--forest);
}

.swap-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swap-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
  color: var(--forest);
  font-size: .92rem;
  font-weight: 600;
}

.swap-link-row a:hover {
  border-color: rgba(23, 53, 46, 0.25);
  box-shadow: var(--shadow-sm);
}

.builder-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.builder-slot-card {
  display: grid;
  gap: 12px;
}

.builder-slot-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.builder-slot-head .eyebrow {
  margin: 0;
}

.builder-slot-meta {
  margin: 0;
  color: var(--forest-soft);
  font-size: .94rem;
}

.builder-recipe-card {
  grid-template-rows: auto auto 1fr;
}

.builder-recipe-card .tag-row {
  grid-template-columns: 1fr;
}

.builder-recipe-card .tag-row span:first-child {
  color: var(--forest-soft);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.builder-fallback-note {
  margin: 0;
  color: var(--forest-soft);
  font-size: .92rem;
}

.finder-section {
  padding: 12px 0 12px;
}

.finder-card {
  padding: 28px 30px 20px;
  border-radius: var(--radius-xl);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.search-row.single {
  display: block;
}

.search-input {
  display: block;
  min-width: 0;
}

label span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(23, 53, 46, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

input::placeholder {
  color: #8a948f;
}

.finder-index-button {
  min-width: 268px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 18px 0 16px;
}

.results-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.results-summary p {
  margin: 0;
}

.results-toolbar .chip-row {
  justify-content: flex-end;
}

.finder-shortcuts {
  margin: 2px 0 12px;
}

.clear-filters {
  min-height: 44px;
  padding: 8px 14px;
}

.clear-filters[hidden],
.active-filter-note[hidden] {
  display: none !important;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.recipe-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.recipe-card:hover,
.collection-card:hover,
.related-card:hover,
.cross-links a:hover,
.recipe-pager a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.recipe-card-featured {
  grid-column: span 2;
  grid-row: span 1;
  min-height: 320px;
}

.recipe-art {
  position: relative;
  min-height: 164px;
  background-color: #eadfce;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.recipe-card-featured .recipe-art {
  min-height: 100%;
}

.recipe-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.08));
}

.recipe-card-top,
.recipe-card .card-stat-row,
.recipe-card .tag-row {
  position: relative;
  z-index: 1;
}

.recipe-card-top {
  padding: 14px 14px 8px;
}

.recipe-card p {
  margin: 0;
}

.recipe-card-top > p:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-featured .recipe-card-top > p:last-child {
  -webkit-line-clamp: 3;
}

.recipe-meta {
  margin: 0 0 8px;
  color: var(--forest-soft);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.66rem;
  font-weight: 700;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(41, 72, 61, 0.88);
  color: #f5ddab !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.62rem;
  font-weight: 700;
}

.card-badge::before {
  content: '★';
  font-size: 0.8rem;
  line-height: 1;
}

.recipe-card h2,
.recipe-card h3 {
  font-size: clamp(1.54rem, 1.62vw, 1.95rem);
  margin-bottom: 6px;
}

.recipe-card:not(.recipe-card-featured) h2,
.recipe-card:not(.recipe-card-featured) h3 {
  font-size: clamp(1.14rem, 1.08vw, 1.42rem);
}

.recipe-card h3 a:hover,
.recipe-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.card-stat-row {
  padding: 0 14px 6px;
  color: var(--forest-soft);
  font-size: 0.82rem;
}

.tag-row {
  align-self: end;
  gap: 8px;
  padding: 0 14px 14px;
}

.tag-row span {
  min-height: 30px;
  padding: 5px 9px;
  background: rgba(244, 238, 228, 0.9);
  color: var(--forest-soft);
  font-size: 0.78rem;
}

.recipe-card-featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  grid-template-rows: auto auto auto;
  align-items: start;
}

.recipe-card-featured .recipe-card-top,
.recipe-card-featured .card-stat-row,
.recipe-card-featured .tag-row {
  grid-column: 2;
  padding-inline: 18px;
}

.recipe-card-featured .recipe-card-top {
  grid-row: 1;
  padding-top: 16px;
  padding-bottom: 8px;
}

.recipe-card-featured .card-stat-row {
  grid-row: 2;
}

.recipe-card-featured .tag-row {
  grid-row: 3;
  align-self: start;
  padding-top: 0;
}

.recipe-card-featured .recipe-art {
  grid-column: 1;
  grid-row: 1 / span 3;
  min-height: 100%;
  border-right: 1px solid rgba(23, 53, 46, 0.08);
}

.recipe-art-0 {
  background-image: url('/assets/scene-salmon-bowl.svg');
}

.recipe-art-1 {
  background-image: url('/assets/scene-mushroom-broth.svg');
}

.recipe-art-2 {
  background-image: url('/assets/scene-sardine-toast.svg');
}

.recipe-art-3 {
  background-image: url('/assets/scene-berry-oats.svg');
}

.recipe-art-4 {
  background-image: url('/assets/scene-tofu-greens.svg');
}

.recipe-art-5 {
  background-image: url('/assets/scene-porridge.svg');
}

.value-section,
.collections-section,
.faq-section {
  padding: 42px 0 10px;
}

.goal-rail {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(460px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.goal-intro {
  max-width: none;
  padding: 12px 8px 12px 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.goal-intro h2 {
  max-width: 10.8ch;
  font-size: clamp(3.15rem, 3.8vw, 4.4rem);
  line-height: 0.98;
}

.goal-intro h2 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.goal-intro p {
  margin: 0;
}

.goal-intro-copy {
  max-width: 36ch;
  margin-top: 18px !important;
  font-size: 1.04rem;
  line-height: 1.62;
}

.goal-divider-line {
  display: block;
  width: 44px;
  height: 2px;
  margin: 22px 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(189, 140, 71, 0.24));
}

.goal-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.goal-item {
  position: relative;
  min-height: 0;
  padding: 20px 56px 18px 78px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  border-left: 4px solid transparent;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 14px 32px rgba(23, 53, 46, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-left-color 0.22s ease, background 0.22s ease;
}

.goal-item::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(189, 140, 71, 0.18);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 240, 230, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.goal-item::after {
  content: '';
  position: absolute;
  top: 29px;
  left: 29px;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.84;
}

.goal-item:nth-child(1)::after {
  background-image: url('/assets/icon-balance.svg');
}

.goal-item:nth-child(2)::after {
  background-image: url('/assets/icon-brain-spark.svg');
}

.goal-item:nth-child(3)::after {
  background-image: url('/assets/icon-leaf.svg');
}

.goal-item:nth-child(4)::after {
  background-image: url('/assets/icon-strength.svg');
}

.goal-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  font-weight: 700;
}

.goal-item h3 {
  font-size: clamp(1.72rem, 1.6vw, 2.18rem);
  margin-bottom: 6px;
}

.goal-item p {
  max-width: 38ch;
  font-size: 0.96rem;
  line-height: 1.5;
}

.goal-item:hover,
.goal-item:focus-within {
  transform: translateY(-2px);
  border-left-color: var(--gold);
  box-shadow: 0 18px 38px rgba(23, 53, 46, 0.08);
  background: linear-gradient(180deg, rgba(255, 253, 248, 1), rgba(250, 244, 236, 0.98));
}

.goal-item:hover .goal-arrow,
.goal-item:focus-within .goal-arrow {
  color: rgba(189, 140, 71, 0.92);
}

.goal-arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: rgba(23, 53, 46, 0.46);
  font-size: 1.55rem;
  line-height: 1;
  transition: color 0.22s ease;
}

.proof-points-goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
}

.proof-points-goals span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest-soft);
  font-size: 0.98rem;
  font-weight: 500;
  justify-content: flex-start;
}

.proof-points-goals span::before {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 53, 46, 0.12);
  background: rgba(255, 252, 247, 0.84);
  color: var(--forest-soft);
  font-size: 1rem;
}

.proof-points-goals span:nth-child(1)::before {
  content: '◎';
}

.proof-points-goals span:nth-child(2)::before {
  content: '◌';
}

.proof-points-goals span:nth-child(3)::before {
  content: '♡';
}

.science-strip {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.1fr);
  gap: 22px;
  margin: 28px 0 10px;
  padding: 30px 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1f4e42, #163b34);
  align-items: stretch;
}

.science-strip::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: -16px;
  width: 260px;
  height: 210px;
  background: url('/assets/leaf-spray.svg') bottom right/contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.science-strip * {
  color: #f8f2e8;
}

.science-copy {
  max-width: 340px;
  position: relative;
  z-index: 1;
}

.science-copy .eyebrow {
  color: rgba(232, 216, 183, 0.86);
}

.science-copy .eyebrow::before {
  background: linear-gradient(90deg, rgba(232, 216, 183, 0.9), rgba(232, 216, 183, 0.18));
}

.science-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 3vw, 3.6rem);
  color: #fff7ed;
}

.science-copy p {
  margin: 0;
  color: rgba(248, 242, 232, 0.84);
  font-size: 1rem;
  line-height: 1.68;
}

.science-principles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: stretch;
}

.science-principle-card {
  position: relative;
  min-height: 0;
  padding: 22px 18px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.science-principle-card::before {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 216, 183, 0.96);
  font-size: 1rem;
}

.science-principle-card:nth-child(1)::before {
  content: '⚗';
}

.science-principle-card:nth-child(2)::before {
  content: '❦';
}

.science-principle-card:nth-child(3)::before {
  content: '⬡';
}

.science-principles strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.28rem;
  color: #fff7ed;
}

.science-principles p {
  margin: 0;
  color: rgba(248, 242, 232, 0.82);
  line-height: 1.6;
}

.faq-grid,
.collection-grid,
.mini-grid,
.note-strip,
.cross-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faq-card,
.mini-card,
.cross-links a {
  padding: 22px 22px 18px;
  border-radius: 22px;
}

.faq-card {
  min-height: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  background: rgba(255, 253, 248, 0.98);
}

.faq-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.48rem, 1.45vw, 1.9rem);
}

.faq-card p,
.mini-card p,
.cross-links p {
  margin: 0;
}

.faq-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 4px;
  color: var(--forest-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.faq-card a::after {
  content: '→';
  color: var(--gold);
}

.faq-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 252, 247, 0.9);
  color: var(--gold);
  font-size: 1rem;
}

.collections-heading {
  align-items: start;
  margin-bottom: 26px;
}

.collections-heading > p {
  max-width: 300px;
  justify-self: end;
  line-height: 1.64;
}

.collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  align-items: stretch;
}

.collection-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 248px;
  padding: 22px 22px 20px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(214px, 244px);
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(249, 243, 234, 0.96));
  border-color: rgba(226, 211, 188, 0.48);
  box-shadow: 0 20px 40px rgba(23, 53, 46, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.collection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 50%, rgba(231, 216, 192, 1) 0%, rgba(243, 236, 225, 0.72) 30%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.16) 36%, rgba(255, 255, 255, 0) 58%);
  z-index: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.collection-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%);
  z-index: 0;
  pointer-events: none;
}

.collection-card:hover,
.collection-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(216, 188, 145, 0.56);
  box-shadow: 0 24px 48px rgba(23, 53, 46, 0.08);
}

.collection-card:hover::before,
.collection-card:focus-visible::before {
  opacity: 1;
  transform: translateX(8px) scale(1.02);
}

.collection-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 8px;
  align-content: stretch;
  min-width: 0;
  min-height: 100%;
}

.collection-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(189, 140, 71, 0.18);
  background: rgba(255, 252, 247, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.collection-icon::before {
  display: block;
  width: 22px;
  height: 22px;
  content: '';
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.collection-copy h3 {
  display: -webkit-box;
  margin: 0;
  max-width: 11.4ch;
  font-size: clamp(1.82rem, 1.72vw, 2.24rem);
  line-height: 1;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-copy p {
  display: -webkit-box;
  margin: 0;
  max-width: 31ch;
  font-size: 0.94rem;
  line-height: 1.54;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 10px;
  align-self: end;
  color: var(--forest-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.collection-cta::after {
  content: '↗';
  color: var(--gold);
  font-size: 0.92rem;
  line-height: 1;
}

.collection-media {
  position: relative;
  z-index: 1;
  width: min(228px, 100%);
  min-height: auto;
  aspect-ratio: 1 / 1;
  justify-self: end;
  border-radius: 999px;
  border: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.92) 0%, rgba(247, 240, 228, 0.72) 58%, rgba(255, 255, 255, 0) 74%);
  box-shadow: none;
  transition: transform 0.24s ease;
}

.collection-media::after {
  content: '';
  position: absolute;
}

.collection-media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  filter: drop-shadow(0 12px 20px rgba(23, 53, 46, 0.12));
  z-index: 2;
}

.collection-media::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 24%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  z-index: 3;
  pointer-events: none;
}

.collection-card-metabolic .collection-icon::before,
.collection-card-heart .collection-icon::before {
  background-image: url('/assets/icon-balance.svg');
}

.collection-card-protein .collection-icon::before {
  background-image: url('/assets/icon-strength.svg');
}

.collection-card-brain .collection-icon::before {
  background-image: url('/assets/icon-brain-spark.svg');
}

.collection-card-gut .collection-icon::before,
.collection-card-inflammation .collection-icon::before {
  background-image: url('/assets/icon-leaf.svg');
}

.collection-card-metabolic,
.collection-card-heart {
  background: linear-gradient(135deg, rgba(255, 252, 246, 1) 0%, rgba(250, 242, 228, 0.98) 54%, rgba(242, 226, 199, 0.96) 100%);
}

.collection-card-protein,
.collection-card-inflammation {
  background: linear-gradient(135deg, rgba(255, 252, 246, 1) 0%, rgba(241, 245, 234, 0.98) 52%, rgba(221, 229, 209, 0.96) 100%);
}

.collection-card-brain,
.collection-card-gut {
  background: linear-gradient(135deg, rgba(255, 252, 248, 1) 0%, rgba(248, 239, 231, 0.98) 54%, rgba(239, 223, 210, 0.96) 100%);
}

.collection-card-metabolic::before,
.collection-card-heart::before {
  background:
    radial-gradient(circle at 84% 50%, rgba(236, 212, 174, 1) 0%, rgba(245, 232, 211, 0.86) 28%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0) 58%);
}

.collection-card-protein::before,
.collection-card-inflammation::before {
  background:
    radial-gradient(circle at 84% 50%, rgba(214, 230, 199, 1) 0%, rgba(233, 242, 225, 0.82) 28%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0) 58%);
}

.collection-card-brain::before,
.collection-card-gut::before {
  background:
    radial-gradient(circle at 84% 50%, rgba(242, 221, 205, 1) 0%, rgba(248, 234, 224, 0.82) 28%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0) 58%);
}

.collection-card:hover .collection-media,
.collection-card:focus-visible .collection-media {
  transform: translateX(-5px) scale(1.03);
}

.site-footer {
  position: relative;
  margin-top: 30px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(23, 53, 46, 0.06);
}

.footer-grid {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding: 30px 30px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(250, 245, 237, 0.84));
  border: 1px solid rgba(23, 53, 46, 0.06);
  box-shadow: 0 16px 36px rgba(23, 53, 46, 0.04);
}

.footer-grid::after {
  content: '';
  position: absolute;
  right: 6px;
  bottom: -10px;
  width: 160px;
  height: 180px;
  background: url('/assets/leaf-spray.svg') bottom right/contain no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.footer-section {
  position: relative;
  min-height: 100%;
  z-index: 1;
}

.footer-section strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.footer-section p {
  margin: 0;
  max-width: 42ch;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf7, #f5f0e5);
  border: 1px solid rgba(23, 53, 46, 0.08);
}

.footer-brand-copy {
  display: grid;
  gap: 4px;
}

.footer-brand-copy strong {
  margin: 0;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.footer-brand-copy small {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-note p,
.footer-brand-section p {
  line-height: 1.66;
}

.footer-approach-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  color: var(--forest-deep);
  font-weight: 600;
}

.footer-approach-link::after {
  content: '→';
  color: var(--gold);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 14px 6px 0;
  border-top: 1px solid rgba(23, 53, 46, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-base p {
  margin: 0;
}

.footer-links a:hover,
.footer-note a:hover,
.breadcrumbs a:hover,
.related-collection-note a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.page-hero.compact {
  position: relative;
  overflow: hidden;
  margin: 10px 0 10px;
  padding: 32px 38px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 14%, rgba(221, 208, 184, 0.42), transparent 18%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 242, 232, 0.96));
}

.page-hero.compact::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 260px;
  height: 180px;
  background: url('/assets/leaf-spray.svg') bottom right/contain no-repeat;
  opacity: 0.22;
}

.listing-shortcuts {
  margin-top: 20px;
}

.listing-page .finder-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 244, 235, 0.96));
}

.listing-hero-meta {
  margin-top: 18px;
}

.active-filter-note {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(223, 208, 178, 0.18);
  border: 1px solid rgba(189, 140, 71, 0.18);
  color: var(--forest);
  font-weight: 600;
}

.empty-state,
.noscript-fallback {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.84);
  border: 1px solid rgba(23, 53, 46, 0.1);
  box-shadow: var(--shadow);
}

.noscript-fallback strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.noscript-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.collection-layout {
  display: grid;
  gap: 22px;
  padding: 10px 0 50px;
}

.collection-intro,
.collection-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.collection-intro-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 24px;
  align-items: start;
}

.collection-principles {
  display: grid;
  gap: 12px;
}

.collection-principles div,
.mini-card {
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

.collection-principles div {
  padding: 18px 20px;
  border-radius: 22px;
}

.collection-principles strong,
.mini-card strong,
.cross-links strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.collection-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.cross-links a,
.recipe-pager a,
.related-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 53, 46, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cross-links small,
.recipe-pager small {
  display: block;
  margin-bottom: 8px;
  color: var(--forest-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
}

.recipe-layout {
  padding-top: 10px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 4px 0 6px;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb-sep {
  opacity: 0.55;
}

.recipe-detail-shell {
  display: grid;
  gap: 24px;
}

.recipe-hero-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(23, 53, 46, 0.08);
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 208, 184, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 242, 232, 0.98));
  box-shadow: 0 24px 60px rgba(19, 31, 26, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.recipe-hero-surface::before {
  content: '';
  position: absolute;
  inset: auto -40px -88px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(231, 219, 194, 0.42), transparent 68%);
  pointer-events: none;
}

.recipe-hero-copy,
.recipe-hero-media,
.recipe-main,
.recipe-sidebar {
  position: relative;
  z-index: 1;
}

.recipe-hero-copy {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 4px 10px 4px 0;
}

.recipe-hero-copy .eyebrow {
  margin-bottom: 16px;
}

.recipe-hero-copy .lede {
  max-width: 54ch;
}

.recipe-hero-media {
  display: grid;
  align-items: stretch;
}

.recipe-article {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: 24px;
}

.recipe-main,
.recipe-sidebar {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.recipe-detail-visual {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 396px;
  margin-bottom: 0;
  border-radius: 20px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  box-shadow: 0 24px 60px rgba(20, 31, 26, 0.12);
}

.recipe-hero-media .recipe-detail-visual {
  background-size: 92% auto;
  background-position: center 54%;
}

.recipe-detail-visual::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 252, 247, 0.44);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.06), rgba(23, 53, 46, 0.02));
  pointer-events: none;
  z-index: 1;
}

.recipe-title {
  max-width: 14ch;
  font-size: clamp(2.9rem, 3.55vw, 4.4rem);
  line-height: 0.95;
}

.recipe-title-compact {
  max-width: 15ch;
  font-size: clamp(2.5rem, 3.05vw, 3.85rem);
  line-height: 0.97;
}

.recipe-date-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0 0;
  color: var(--forest-soft);
  font-size: 0.9rem;
}

.recipe-date-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recipe-date-meta strong {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(23, 53, 46, 0.68);
}

.recipe-date-meta time {
  color: var(--text);
}

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

.recipe-hero-copy .recipe-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipe-hero-copy .recipe-facts div {
  padding: 14px 15px;
}

.recipe-hero-copy .recipe-facts strong {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.recipe-facts div {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.recipe-facts strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--forest-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.recipe-facts p {
  margin: 0;
  color: var(--text);
}

.recipe-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.recipe-jump-links::before {
  content: 'In this recipe';
  width: 100%;
  color: var(--forest-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.recipe-jump-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 252, 247, 0.78);
  color: var(--forest-soft);
  font-size: 0.92rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.recipe-jump-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 53, 46, 0.16);
  background: rgba(255, 252, 247, 0.94);
}

.ingredient-list,
.method-list,
.sidebar-list,
.nutrition-callout ul {
  margin: 0;
  padding-left: 20px;
}

.ingredient-list li,
.method-list li,
.sidebar-list li,
.nutrition-callout li {
  margin-bottom: 10px;
  color: var(--muted);
}

.recipe-hero-actions {
  margin-top: 18px;
}

.recipe-hero-actions .button {
  min-height: 54px;
}

.nutrition-callout {
  margin: 24px 0 10px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(189, 140, 71, 0.16);
  background: linear-gradient(180deg, rgba(246, 239, 225, 0.82), rgba(255, 251, 245, 0.84));
}

.nutrition-callout h3 {
  margin-bottom: 10px;
}

.related-recipes {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.semantic-related {
  display: grid;
  gap: 18px;
}

.related-intro {
  margin: 0;
  max-width: 60ch;
}

.related-recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  padding: 20px;
}

.related-card p:last-child {
  margin-bottom: 0;
}

.recommendation-reason {
  margin-top: 12px;
  color: var(--forest);
  font-size: 0.94rem;
}

.related-collection-note {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.46);
}

.related-collection-note p {
  margin: 8px 0 0;
}

.recipe-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.recipe-pager a {
  padding: 18px 20px;
}

.recipe-pager strong {
  display: block;
}

.recipe-sidebar h3 {
  margin-bottom: 12px;
}

.recipe-sidebar h3 + .sidebar-list {
  margin-bottom: 24px;
}

.footer-note {
  position: relative;
}

.footer-note::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 180px;
  height: 130px;
  background: url('/assets/leaf-spray.svg') bottom right/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

@media (max-width: 1260px) {
  .hero,
  .section-heading,
  .goal-rail,
  .science-strip,
  .collection-intro-grid,
  .recipe-article,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .recipe-grid,
  .collection-grid,
  .faq-grid,
  .mini-grid,
  .note-strip,
  .cross-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-card-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 980px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--container));
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px 16px 12px;
  }

  .brand-copy {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    gap: 24px;
    padding-top: 26px;
  }

  .hero-copy {
    padding: 8px 0 0;
  }

  .hero-panel-card {
    min-height: 420px;
  }

  .visual-caption {
    width: min(360px, 76%);
  }

  .filter-grid,
  .recipe-facts,
  .science-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-stack {
    grid-template-columns: 1fr;
  }

  .recipe-card-featured {
    grid-column: span 2;
  }

  .collection-card {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 18px;
  }

  .collection-copy p {
    max-width: 30ch;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.6rem, 10vw, 3.9rem);
  }

  h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .topbar {
    gap: 14px;
  }

  .main-nav {
    width: 100%;
    gap: 10px;
  }

  .main-nav a {
    padding: 10px 16px;
  }

  .hero-panel-card,
  .finder-card,
  .page-hero.compact,
  .recipe-main,
  .recipe-sidebar,
  .collection-intro,
  .collection-panel,
  .goal-intro,
  .science-strip {
    padding: 22px;
    border-radius: 18px;
  }

  .hero-actions,
  .results-toolbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .finder-index-button,
  .search-row .button,
  .button {
    width: 100%;
    min-width: 0;
  }

  .filter-grid,
  .recipe-grid,
  .collection-grid,
  .faq-grid,
  .mini-grid,
  .note-strip,
  .cross-links,
  .recipe-pager,
  .related-recipes-grid,
  .recipe-card-featured,
  .recipe-facts,
  .science-principles,
  .goal-stack {
    grid-template-columns: 1fr;
  }

  .recipe-card-featured {
    grid-column: span 1;
    min-height: unset;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .recipe-card-featured .recipe-card-top,
  .recipe-card-featured .card-stat-row,
  .recipe-card-featured .tag-row {
    grid-column: 1;
    padding-inline: 22px;
  }

  .recipe-card-featured .recipe-card-top {
    grid-row: 2;
  }

  .recipe-card-featured .card-stat-row {
    grid-row: 3;
  }

  .recipe-card-featured .tag-row {
    grid-row: 4;
  }

  .recipe-card-featured .recipe-art {
    grid-column: 1;
    grid-row: 1;
    min-height: 250px;
    border-right: 0;
  }

  .recipe-detail-visual {
    height: 260px;
  }

  .goal-item {
    padding-left: 78px;
  }

  .collection-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .collection-media {
    order: -1;
    min-height: 170px;
  }

  .collection-copy p {
    max-width: none;
  }

  .footer-grid {
    gap: 18px;
  }

  .footer-note::after,
  .page-hero.compact::after,
  .science-strip::after {
    width: 150px;
    height: 110px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(calc(100% - 16px), var(--container));
  }

  .skip-link {
    left: 10px;
    right: 10px;
    text-align: center;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .brand small {
    font-size: 0.9rem;
    white-space: normal;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: 9ch;
  }

  .visual-caption {
    width: 100%;
    margin-top: auto;
    padding: 22px;
  }

  .recipe-card-top,
  .card-stat-row,
  .tag-row {
    padding-inline: 18px;
  }

  .recipe-main,
  .recipe-sidebar,
  .collection-intro,
  .collection-panel {
    padding: 20px;
  }

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

  .collection-card {
    min-height: 0;
    padding: 18px;
    border-radius: 24px;
  }

  .collection-media {
    min-height: 152px;
    border-radius: 20px;
  }

  .collection-media::before {
    inset: 10px;
    border-radius: 16px;
  }

  .collection-copy h3 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .listing-hero-meta span,
  .proof-points span,
  .chip-row a,
  .finder-shortcuts a,
  .recipe-highlights span,
  .tag-row span,
  .card-stat-row span {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Strict homepage fidelity pass, 2026-04-27 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav {
  margin-left: auto;
  margin-right: 12px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 252, 247, 0.74);
  color: var(--forest-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.icon-button svg,
.button-icon svg,
.field-icon svg,
.meta-icon svg {
  width: 100%;
  height: 100%;
}

.button-icon,
.field-icon,
.meta-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.button-icon {
  width: 18px;
  height: 18px;
}

.header-cta {
  min-height: 46px;
  padding: 0 16px 0 18px;
  border-radius: 17px;
  gap: 9px;
}

.topbar {
  padding-top: 10px;
  padding-bottom: 8px;
}

.brand small {
  font-size: 0.88rem;
}

.main-nav a {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.9rem;
}

.hero-strict {
  grid-template-columns: minmax(0, 0.86fr) minmax(700px, 1.14fr);
  gap: 20px;
  padding: 12px 0 14px;
  align-items: center;
}

.hero-strict .hero-copy {
  padding: 0;
}

.hero-strict .hero-copy h1 {
  max-width: 10.9ch;
  font-size: clamp(3.85rem, 4.7vw, 5.15rem);
  line-height: 0.94;
}

.hero-divider {
  display: block;
  width: 34px;
  height: 2px;
  margin: 16px 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(189, 140, 71, 0.35));
}

.hero-strict .lede {
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.52;
}

.hero-strict .hero-actions {
  margin: 16px 0 0;
}

.hero-primary,
.hero-secondary,
.finder-index-button-strict,
.visual-cta {
  gap: 10px;
}

.hero-primary {
  min-width: 152px;
}

.hero-strict .hero-panel {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.hero-secondary {
  border-color: rgba(23, 53, 46, 0.1);
  background: rgba(255, 252, 247, 0.94);
  color: var(--forest-deep);
}

.hero-strict .hero-panel-card {
  width: 100%;
  min-height: clamp(470px, 38vw, 560px);
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(250, 247, 240, 0.08), rgba(34, 52, 46, 0.08));
  box-shadow: 0 18px 36px rgba(23, 53, 46, 0.1);
}

.hero-strict .plated-scene {
  inset: 0;
  background: none;
}

.hero-strict .plated-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.02) 0%, rgba(255, 253, 248, 0) 46%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-strict .visual-caption {
  width: 328px;
  margin: auto 26px 26px auto;
  padding: 20px 20px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(39, 76, 65, 0.96), rgba(46, 84, 72, 0.94));
  box-shadow: 0 24px 50px rgba(20, 32, 27, 0.22);
}

.hero-strict .panel-label {
  margin: 0 0 10px;
  color: #dcb578;
  letter-spacing: 0.17em;
  font-size: 0.68rem;
}

.hero-strict .visual-caption h2 {
  margin-bottom: 10px;
  font-size: clamp(2.12rem, 2.1vw, 2.58rem);
  line-height: 0.98;
}

.visual-summary {
  margin: 0 0 14px;
  color: rgba(247, 240, 228, 0.88);
  line-height: 1.5;
  font-size: 0.98rem;
}

.visual-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.visual-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(247, 240, 228, 0.96);
  font-size: 0.92rem;
}

.meta-icon {
  width: 16px;
  height: 16px;
  color: #dcb578;
}

.visual-cta {
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  padding: 0 16px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f7f0e4;
}

.finder-section-strict {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding: 0 0 8px;
}

.proof-points-hero-conversion {
  margin-top: 18px;
}

.homepage-conversion-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: center;
  margin: 12px 0 18px;
  padding: 24px 26px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 208, 184, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 241, 232, 0.94));
  box-shadow: 0 16px 30px rgba(23, 53, 46, 0.06);
}

.homepage-conversion-copy .eyebrow {
  margin-bottom: 14px;
}

.homepage-conversion-copy h2 {
  max-width: 18ch;
  margin-bottom: 12px;
}

.homepage-conversion-copy p:last-child,
.homepage-conversion-note {
  margin-bottom: 0;
}

.homepage-conversion-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.homepage-conversion-note {
  color: var(--forest-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.finder-card-strict {
  display: grid;
  gap: 12px;
  padding: 16px 18px 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 243, 234, 0.96));
  box-shadow: 0 12px 24px rgba(23, 53, 46, 0.05);
}

.search-row-strict {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.search-input-strict {
  min-width: 0;
}

.search-input-strict > span {
  margin-bottom: 0;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.field-icon {
  width: 18px;
  height: 18px;
  color: #65726d;
}

.search-input-strict input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-input-strict input:focus {
  outline: none;
}

.finder-index-button-strict {
  min-width: 214px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
}

.finder-index-button-strict .button-icon {
  width: 18px;
  height: 18px;
}

.filter-grid-strict {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.filter-grid-strict label span {
  margin-bottom: 4px;
  font-size: 0.74rem;
  color: #6a746f;
}

.filter-grid-strict select {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.popular-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 0;
}

.popular-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.popular-chip-row {
  gap: 8px;
}

.popular-chip-row a {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.82rem;
  background: rgba(255, 253, 248, 0.98);
}

.mini-chip-icon {
  display: inline-flex;
  width: 14px;
  justify-content: center;
  color: var(--forest-soft);
  margin-right: 4px;
}

.results-toolbar {
  margin: 18px 0 18px;
}

.results-toolbar[hidden] {
  display: none !important;
}

.finder-section-strict .recipe-grid {
  margin-top: 18px;
}

@media (max-width: 1240px) {
  .hero-strict {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-strict .hero-panel-card {
    min-height: 420px;
  }

  .goal-rail,
  .science-strip,
  .collections-heading {
    grid-template-columns: 1fr;
  }

  .science-copy {
    max-width: none;
  }

  .science-principles,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .recipe-card-featured {
    grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
  }

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

@media (max-width: 980px) {
  .topbar {
    gap: 14px;
  }

  .main-nav {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

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

  .main-nav a {
    flex: 0 0 auto;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
  }

  .header-profile,
  .header-cta {
    flex: 0 0 auto;
  }

  .goal-item,
  .collection-card {
    grid-template-columns: 1fr;
  }

  .collection-card {
    max-height: none;
  }

  .collection-media {
    order: -1;
    width: min(220px, 100%);
    aspect-ratio: 1 / 1;
    min-height: auto;
    justify-self: start;
  }

  .science-principles,
  .faq-grid,
  .collection-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-base {
    flex-direction: column;
  }

  .finder-index-button-strict {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .header-actions {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  .header-profile {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    flex: 0 0 44px;
  }

  .header-cta {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
  }

  .goal-intro h2,
  .science-copy h2,
  .collections-heading h2 {
    max-width: none;
  }

  .search-row-strict,
  .popular-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .recipe-card-featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .recipe-card-featured .recipe-art {
    width: 100%;
  }

  .hero-strict .visual-caption {
    width: calc(100% - 36px);
    margin: auto 18px 18px auto;
  }

  .proof-points-goals {
    grid-template-columns: 1fr;
  }

  .filter-grid-strict {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .filter-grid-strict {
    grid-template-columns: 1fr;
  }

  .popular-chip-row a {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Sub-page sweep, 2026-04-27 */
.page-hero.page-hero-utility {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.92fr);
  gap: 18px 24px;
  align-items: start;
  padding: 34px 36px;
}

.page-hero.page-hero-utility > .eyebrow,
.page-hero.page-hero-utility > h1,
.page-hero.page-hero-utility > .lede,
.page-hero.page-hero-utility > .listing-hero-meta,
.page-hero.page-hero-utility > .finder-shortcuts,
.page-hero.page-hero-utility > .listing-shortcuts,
.page-hero.page-hero-utility > .cta-inline {
  grid-column: 1;
}

.page-hero.page-hero-utility > .hero-sidecard {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
}

.page-hero.page-hero-utility > h1 {
  max-width: 12.6ch;
  font-size: clamp(3rem, 4.5vw, 4.95rem);
  line-height: 0.96;
}

.page-hero.page-hero-utility > .lede {
  max-width: 40ch;
}

.page-hero.page-hero-utility .listing-hero-meta {
  margin-top: 4px;
}

.page-hero.page-hero-utility .cta-inline {
  margin-top: 6px;
}

.page-hero.page-hero-utility.page-hero-account {
  grid-template-columns: minmax(0, 1.34fr) minmax(250px, 0.66fr);
  gap: 10px 18px;
  padding: 22px 24px;
}

.page-hero.page-hero-utility.page-hero-account > h1 {
  max-width: 22ch;
  font-size: clamp(2.35rem, 3.15vw, 3.7rem);
  line-height: 0.98;
}

.page-hero.page-hero-utility.page-hero-account > .lede {
  max-width: 52ch;
  font-size: 1rem;
}

.page-hero.page-hero-utility.page-hero-account .listing-hero-meta {
  margin-top: 0;
  gap: 8px;
}

.page-hero.page-hero-utility.page-hero-account .listing-hero-meta span {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.page-hero.page-hero-utility.page-hero-account > .hero-sidecard {
  grid-row: 1 / span 3;
  gap: 10px;
  max-width: 420px;
  justify-self: end;
  padding: 16px 16px 14px;
}

.page-hero.page-hero-utility.page-hero-account .hero-sidecard-label {
  margin-bottom: 0;
  padding: 8px 12px;
  font-size: 1.02rem;
}

.page-hero.page-hero-utility.page-hero-account .hero-sidecard-list {
  gap: 8px;
}

.page-hero.page-hero-utility.page-hero-account .hero-sidecard-list div {
  padding: 12px 14px;
}

.page-hero.page-hero-utility.page-hero-account .hero-sidecard-list p {
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-hero.page-hero-utility.page-hero-condensed {
  grid-template-columns: minmax(0, 1.16fr) minmax(250px, 0.84fr);
  gap: 12px 20px;
  padding: 24px 26px;
}

.page-hero.page-hero-utility.page-hero-condensed > h1 {
  max-width: 14.2ch;
  font-size: clamp(2.45rem, 3.8vw, 4.15rem);
  line-height: 0.97;
}

.page-hero.page-hero-utility.page-hero-condensed > .lede {
  max-width: 43ch;
  font-size: 1.02rem;
}

.page-hero.page-hero-utility.page-hero-condensed .listing-hero-meta,
.page-hero.page-hero-utility.page-hero-condensed .finder-shortcuts,
.page-hero.page-hero-utility.page-hero-condensed .listing-shortcuts {
  margin-top: 0;
  gap: 8px;
}

.page-hero.page-hero-utility.page-hero-condensed .listing-hero-meta span,
.page-hero.page-hero-utility.page-hero-condensed .finder-shortcuts a,
.page-hero.page-hero-utility.page-hero-condensed .listing-shortcuts a {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.hero-sidecard.hero-sidecard-compact {
  gap: 10px;
  max-width: 420px;
  justify-self: end;
  padding: 16px 16px 14px;
}

.hero-sidecard.hero-sidecard-compact .hero-sidecard-label {
  margin-bottom: 0;
  padding: 8px 12px;
  font-size: 1.02rem;
}

.hero-sidecard.hero-sidecard-compact .hero-sidecard-list {
  gap: 8px;
}

.hero-sidecard.hero-sidecard-compact .hero-sidecard-list div {
  padding: 12px 14px;
}

.hero-sidecard.hero-sidecard-compact .hero-sidecard-list p {
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-sidecard {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.09);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 240, 229, 0.98));
  box-shadow: 0 24px 56px rgba(20, 31, 26, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero-sidecard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(221, 208, 184, 0.12), rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.hero-sidecard-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 4px;
  padding: 10px 15px;
  border-radius: 13px;
  border: 1px solid rgba(188, 160, 118, 0.22);
  background:
    radial-gradient(circle at 14% 18%, rgba(231, 215, 190, 0.72), rgba(231, 215, 190, 0) 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 237, 223, 0.98));
  box-shadow:
    0 10px 24px rgba(23, 53, 46, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(214, 198, 171, 0.22);
  color: var(--forest-deep);
  white-space: normal;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 1.35vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.hero-sidecard-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.hero-sidecard-list div {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.hero-sidecard-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

.hero-sidecard-list p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.94rem;
}

.signup-surface {
  margin: 22px 0;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 238, 227, 0.96));
  box-shadow: var(--shadow);
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 20px 24px;
  align-items: start;
}

.signup-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.signup-copy > p:last-child,
.signup-copy p {
  max-width: 44ch;
}

.signup-form-stack {
  min-width: 0;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.signup-field,
.signup-field input {
  width: 100%;
}

.signup-field {
  display: grid;
  gap: 8px;
}

.signup-field-label {
  color: var(--forest-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-field input {
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 53, 46, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
}

.signup-field input:focus-visible {
  outline: 0;
  border-color: rgba(23, 53, 46, 0.28);
  box-shadow: 0 0 0 4px rgba(214, 194, 162, 0.22);
}

.signup-submit {
  width: 100%;
}

.signup-helper,
.signup-feedback,
.signup-download {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.signup-helper {
  color: var(--forest-soft);
}

.signup-feedback[data-tone='success'],
.signup-download {
  color: #234739;
}

.signup-feedback[data-tone='error'] {
  color: #8f2f2f;
}

.signup-download a {
  font-weight: 700;
}

.signup-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meal-plan-proof-points {
  margin-top: 12px;
}

.signup-trust-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.signup-trust-list span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--forest-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.signup-trust-list span::before {
  content: '•';
  color: var(--gold-deep);
  font-weight: 700;
  line-height: 1;
  transform: translateY(0.1em);
}

.signup-mini-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 252, 247, 0.82);
  color: var(--forest-soft);
  font-size: 0.8rem;
}

.signup-surface-home {
  margin: 34px 0 0;
  padding: 22px 24px;
  border-radius: 28px;
  border-color: rgba(23, 53, 46, 0.07);
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 208, 184, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 242, 232, 0.95));
  box-shadow: 0 18px 44px rgba(19, 31, 26, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.signup-surface-home .signup-shell {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 18px 26px;
}

.signup-surface-home .signup-copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.04;
}

.signup-surface-home .signup-copy > p:last-child,
.signup-surface-home .signup-copy p {
  max-width: 52ch;
}

.signup-surface-home .signup-mini-list {
  margin-top: 12px;
}

.signup-surface-home .signup-trust-list {
  margin-top: 14px;
}

.signup-surface-home .signup-form-stack {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.signup-surface-home .signup-helper,
.signup-surface-home .signup-feedback,
.signup-surface-home .signup-download {
  font-size: 0.9rem;
}

.signup-surface-recipe,
.signup-surface-collection,
.signup-surface-directory {
  margin-top: 26px;
}

.listing-page .finder-card,
.results-toolbar,
.collection-intro,
.collection-panel,
.recipe-main,
.recipe-sidebar,
.faq-card,
.mini-card,
.cross-links a,
.related-card,
.related-collection-note,
.recipe-pager a {
  box-shadow: 0 22px 56px rgba(19, 31, 26, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.listing-page .finder-card {
  padding: 30px 30px 22px;
}

.results-toolbar {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(249, 242, 231, 0.9));
}

.collection-layout {
  gap: 24px;
  padding-top: 22px;
}

.collection-intro,
.collection-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 208, 184, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(248, 242, 232, 0.97));
}

.collection-intro::before,
.collection-panel::before,
.recipe-main::before,
.recipe-sidebar::before {
  content: '';
  position: absolute;
  inset: auto -34px -64px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(231, 219, 194, 0.42), transparent 68%);
  pointer-events: none;
}

.collection-intro > *,
.collection-panel > *,
.recipe-main > *,
.recipe-sidebar > * {
  position: relative;
  z-index: 1;
}

.collection-intro-grid {
  gap: 28px;
}

.collection-principles {
  gap: 14px;
}

.collection-principles div,
.mini-card,
.faq-card,
.cross-links a,
.related-card,
.related-collection-note,
.recipe-pager a {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(23, 53, 46, 0.08);
}

.collection-principles div,
.mini-card,
.faq-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.faq-grid {
  counter-reset: faq-card;
  gap: 16px;
}

.faq-card {
  position: relative;
  padding-top: 52px;
}

.faq-card::before {
  counter-increment: faq-card;
  content: counter(faq-card, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 22px;
  color: rgba(66, 104, 94, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.faq-card h3 {
  max-width: 16ch;
}

.cross-links a {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding-bottom: 60px;
}

.cross-links a::before {
  content: '→';
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(32, 79, 67, 0.1);
  color: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease;
}

.cross-links a:hover::before,
.recipe-pager a:hover::before {
  transform: translateX(3px);
  background: rgba(32, 79, 67, 0.14);
}

.cross-links p {
  max-width: 34ch;
  color: var(--muted);
}

.recipe-main,
.recipe-sidebar {
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 208, 184, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 242, 232, 0.98));
}

.recipe-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.recipe-main h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.recipe-main h2:first-of-type {
  margin-top: 0;
}

.recipe-facts div {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.ingredient-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.ingredient-list li {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
}

.method-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
  counter-reset: recipe-step;
}

.method-list li {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 62px;
  border-radius: 22px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
}

.method-list li::before {
  counter-increment: recipe-step;
  content: counter(recipe-step);
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--forest);
  color: #f8f2e8;
  font-size: 0.88rem;
  font-weight: 700;
}

.recipe-sidebar h3 {
  margin: 0 0 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 53, 46, 0.09);
  font-size: clamp(1.32rem, 1.45vw, 1.72rem);
}

.recipe-sidebar h3:first-of-type {
  margin-top: 6px;
}

.recipe-sidebar .sidebar-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

.recipe-sidebar .sidebar-list li {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
}

.sidebar-utility {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 53, 46, 0.09);
}

.sidebar-utility-label {
  margin: 0;
  color: var(--forest-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-utility a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-utility a::after {
  content: '→';
  color: var(--gold);
}

.sidebar-utility a:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 53, 46, 0.14);
  box-shadow: 0 14px 28px rgba(20, 31, 26, 0.08);
}

.related-recipes {
  margin-top: 34px;
  padding-top: 32px;
}

.recipe-pager a {
  position: relative;
  padding-right: 54px;
}

.recipe-pager a::before {
  content: '→';
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(32, 79, 67, 0.1);
  color: var(--forest);
  transition: transform 0.22s ease, background 0.22s ease;
}

@media (max-width: 1180px) {
  .homepage-conversion-band {
    grid-template-columns: 1fr;
  }

  .homepage-conversion-copy h2 {
    max-width: none;
  }

  .page-hero.page-hero-utility,
  .page-hero.page-hero-utility.page-hero-condensed,
  .page-hero.page-hero-utility.page-hero-account,
  .signup-shell,
  .recipe-hero-surface,
  .recipe-article {
    grid-template-columns: 1fr;
  }

  .page-hero.page-hero-utility.page-hero-account {
    gap: 14px;
  }

  .page-hero.page-hero-utility.page-hero-condensed {
    gap: 14px;
  }

  .page-hero.page-hero-utility > .hero-sidecard,
  .page-hero.page-hero-utility > .eyebrow,
  .page-hero.page-hero-utility > h1,
  .page-hero.page-hero-utility > .lede,
  .page-hero.page-hero-utility > .listing-hero-meta,
  .page-hero.page-hero-utility > .finder-shortcuts,
  .page-hero.page-hero-utility > .listing-shortcuts,
  .page-hero.page-hero-utility > .cta-inline {
    grid-column: 1;
    grid-row: auto;
  }

  .page-hero.page-hero-utility > * {
    min-width: 0;
  }

  .page-hero.page-hero-utility > .hero-sidecard,
  .page-hero.page-hero-utility.page-hero-condensed > .hero-sidecard,
  .page-hero.page-hero-utility.page-hero-account > .hero-sidecard {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .page-hero.page-hero-utility > h1,
  .page-hero.page-hero-utility > .lede {
    width: 100%;
    max-width: none;
  }

  .recipe-hero-copy .recipe-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .ingredient-list,
  .recipe-hero-copy .recipe-facts {
    grid-template-columns: 1fr;
  }

  .recipe-hero-surface,
  .recipe-main,
  .recipe-sidebar {
    padding: 26px;
  }

  .recipe-detail-visual {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .homepage-conversion-band {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
    border-radius: 20px;
  }

  .homepage-conversion-band > * {
    width: 100%;
    min-width: 0;
  }

  .homepage-conversion-copy {
    display: grid;
    gap: 12px;
  }

  .homepage-conversion-copy .eyebrow {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
  }

  .homepage-conversion-copy h2,
  .homepage-conversion-copy p {
    width: 100%;
    max-width: none;
  }

  .homepage-conversion-actions {
    padding: 16px;
  }

  .homepage-conversion-actions .button {
    width: 100%;
    justify-content: space-between;
  }

  .breadcrumbs {
    width: 100%;
  }

  .signup-surface {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .signup-surface-home {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .signup-surface-home .signup-form-stack {
    padding: 16px;
  }

  .signup-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .signup-surface-home .signup-copy h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .recipe-jump-links a,
  .sidebar-utility a,
  .recipe-hero-actions .button {
    width: 100%;
    justify-content: space-between;
  }

  .recipe-detail-visual {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .recipe-card:hover,
  .collection-card:hover,
  .related-card:hover,
  .cross-links a:hover,
  .recipe-pager a:hover,
  .main-nav a:hover {
    transform: none;
  }
}

.header-actions-account {
  margin-left: auto;
}

.header-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(23, 53, 46, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(245, 238, 227, 0.96));
  color: var(--forest-deep);
  box-shadow: 0 14px 30px rgba(20, 31, 26, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  flex: 0 0 44px;
}

.header-profile svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header-profile-label {
  display: none;
}

.header-profile.is-authenticated {
  border-color: rgba(32, 79, 67, 0.28);
}

.header-profile[aria-current='page'] {
  border-color: rgba(32, 79, 67, 0.24);
  background: rgba(255, 252, 247, 0.96);
}

.header-profile.is-setup-pending {
  color: var(--forest-soft);
}

.account-surface {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 208, 184, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 242, 232, 0.98));
  box-shadow: 0 22px 56px rgba(19, 31, 26, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.account-surface::before {
  content: '';
  position: absolute;
  inset: auto -32px -72px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(231, 219, 194, 0.4), transparent 70%);
  pointer-events: none;
}

.is-hidden,
[hidden],
.account-auth-shell [hidden],
.collection-layout [hidden] {
  display: none !important;
}

body[data-account-state='guest'] [data-account-member-only] {
  display: none !important;
}

body[data-account-state='member'] [data-account-guest-only] {
  display: none !important;
}

.account-surface > * {
  position: relative;
  z-index: 1;
}

.account-surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-surface-header-compact {
  justify-content: flex-start;
}

.account-module-title {
  max-width: 16ch;
  font-size: clamp(1.9rem, 2.2vw, 2.5rem);
}

.recipe-account-module .account-module-title {
  max-width: 19ch;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  line-height: 1.04;
}

.account-inline-link {
  flex: 0 0 auto;
}

.account-auth-shell {
  display: grid;
  gap: 18px;
}

.account-member-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.account-auth-form-single,
.account-reset-request {
  max-width: 640px;
}

.account-inline-status,
.account-helper-copy,
.account-session-status,
.account-empty {
  margin: 14px 0 0;
  color: var(--text);
}

.account-form-feedback {
  margin: 12px 0 0;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 252, 247, 0.8);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.account-form-feedback.is-pending {
  border-color: rgba(188, 160, 118, 0.26);
  background: rgba(249, 243, 231, 0.88);
  color: var(--forest-deep);
}

.account-form-feedback.is-success {
  border-color: rgba(81, 122, 96, 0.24);
  background: rgba(232, 243, 236, 0.88);
  color: #1d4e33;
}

.account-form-feedback.is-error {
  border-color: rgba(168, 78, 56, 0.2);
  background: rgba(251, 239, 235, 0.92);
  color: #8a3f2f;
}

.account-inline-controls,
.account-auth-grid,
.account-inline-grid,
.account-session-row,
.account-note-card-head,
.account-auth-panels,
.account-auth-panel {
  display: grid;
  gap: 14px;
}

.account-inline-controls {
  grid-template-columns: repeat(3, minmax(0, max-content));
  align-items: center;
  margin-top: 18px;
}

.recipe-account-module .account-inline-controls {
  margin-top: 14px;
}

.account-inline-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.8fr);
  margin-top: 18px;
}

.account-field {
  display: grid;
  gap: 8px;
}

.account-field span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-soft);
}

.account-field input,
.account-field textarea,
.account-field select {
  width: 100%;
  min-height: 46px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.account-field textarea {
  min-height: 176px;
  resize: vertical;
}

.account-field small {
  color: var(--muted);
  line-height: 1.5;
}

.account-inline-meta {
  margin: 14px 0 0;
  color: var(--muted);
}

.account-auth-grid,
.account-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.account-auth-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 8px;
  margin-top: 6px;
}

.account-auth-switch-button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--forest-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.account-auth-switch-button.is-active {
  border-color: rgba(23, 53, 46, 0.16);
  background: rgba(23, 53, 46, 0.92);
  color: #f8f4ec;
}

.account-auth-panels {
  margin-top: 18px;
}

.account-auth-panel,
.account-member-card {
  max-width: 760px;
}

.account-auth-form {
  gap: 14px;
  padding: 24px;
}

.account-auth-form strong {
  font-size: 1rem;
  color: var(--text);
}

.account-form-intro {
  margin: -4px 0 2px;
  color: var(--muted);
  line-height: 1.55;
}

.account-auth-form .button[type='submit'] {
  min-height: 48px;
}

.account-signin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.account-text-link {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.account-reset-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.account-password-row {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.account-password-row > .button {
  justify-self: start;
}

.account-generated-password {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.1);
  background: rgba(255, 252, 247, 0.76);
}

.account-generated-password-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-soft);
}

.account-generated-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
}

.account-generated-password-row input {
  width: 100%;
  min-height: 46px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 46, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.account-password-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.account-session-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  margin-top: 18px;
}

.account-session-row-member {
  grid-template-columns: max-content;
  justify-content: start;
  margin-top: 0;
}

.account-list-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(23, 53, 46, 0.08);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.account-list-card h3 {
  font-size: clamp(1.5rem, 1.85vw, 2rem);
}

.account-list-card p {
  margin: 0;
}

.account-note-card-head {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
}

.account-note-link,
.account-note-private,
.shared-note-backlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 53, 46, 0.12);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  font-weight: 700;
}

.account-note-private {
  color: var(--muted);
}

.shared-note-shell {
  min-height: 280px;
}

.shared-note-shell.is-empty .shared-note-body {
  display: none;
}

.shared-note-body {
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.8;
}

@media (max-width: 1180px) {
  .account-inline-grid,
  .account-auth-grid,
  .account-list-grid,
  .account-note-card-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .account-surface-header,
  .account-inline-controls,
  .account-session-row,
  .account-generated-password-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .account-auth-switch {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-signin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-inline-controls .button,
  .account-session-row .button,
  .account-generated-password-row .button,
  .account-signin-actions .button,
  .account-inline-link {
    width: 100%;
    justify-content: center;
  }

  .builder-plan-grid,
  .builder-actions,
  .builder-slot-head,
  .swap-results-grid,
  .swap-card-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .builder-preset-links,
  .swap-link-row,
  .swap-browse-links,
  .swap-category-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .builder-preset-links a,
  .builder-actions .button,
  .swap-link-row a,
  .swap-browse-links a,
  .swap-category-summary span {
    width: 100%;
    justify-content: center;
  }
}
