.site-search {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(280px, 1.55fr);
  align-items: center;
  gap: 12px 22px;
  max-width: none;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line, #d9ded2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(34, 43, 41, 0.07);
}

.site-search label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-search input {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px 14px 48px;
  border: 1px solid var(--line, #d9ded2);
  border-radius: 999px;
  background-color: var(--paper, #f7f4ed);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23255449' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 18px center;
  color: var(--ink, #222b29);
  font-size: 15px;
}

.site-search input:focus-visible {
  outline: 3px solid var(--green, #255449);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.home-search {
  padding-top: 22px;
  padding-bottom: 0;
}

.search-results {
  display: none;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.site-search:focus-within .search-results {
  display: flex;
}

.search-results a {
  padding: 9px 14px;
  border: 1px solid var(--line, #d9ded2);
  border-radius: 999px;
  color: var(--green, #255449);
  font-size: 14px;
}

.search-results a:hover {
  border-color: var(--green, #255449);
  background: #e8ecdf;
}

.social-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  position: relative;
  display: grid !important;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.7);
  color: var(--green, #255449);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.social-links a:hover {
  transform: translateY(-4px);
  background: var(--green, #255449);
  color: #f7f4ed;
}

.social-links svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links .icon-fill {
  fill: currentColor;
  stroke: none;
}

.social-links a::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 8px;
  background: #222b29;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.social-links a:hover::after,
.social-links a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.canonical-socials {
  margin: 14px 0 16px;
}

.maria-footer-note {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted, #69716b);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .site-search {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .search-results {
    grid-column: 1;
  }
}

.latest-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.latest-story img,
.portal-photo,
.editorial-figure img {
  height: auto;
  aspect-ratio: var(--media-ratio, 16 / 9);
}

.linked-card {
  position: relative;
  border-radius: 16px;
  padding: 20px;
}

.linked-card .read::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.linked-card:focus-within {
  outline: 3px solid var(--orange, #b97958);
  outline-offset: 5px;
}

.latest-story,
.portal,
.product,
.banner {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.latest-story:hover,
.latest-story:focus-visible,
.portal:hover,
.portal:focus-visible,
.product:hover,
.product:focus-within,
.banner:hover,
.banner:focus-within {
  transform: translateY(-4px);
  border-color: rgba(200, 90, 66, 0.55);
  box-shadow: 0 20px 46px rgba(106, 75, 60, 0.12);
}

.latest-story:focus-visible,
.portal:focus-visible {
  outline: 3px solid var(--orange, #c85a42);
  outline-offset: 5px;
}

.top nav a[aria-current="page"] {
  color: var(--green, #255449);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.chapter-nav {
  position: sticky;
  top: 12px;
  z-index: 2;
  padding: 10px 0;
  background: var(--paper, #f7f4ed);
}

.recipe-filters,
.preset-simulations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.recipe-filters button,
.preset-simulations button,
.coupon-code button {
  border: 1px solid var(--green, #255449);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--green, #255449);
  cursor: pointer;
}

.recipe-filters button[aria-pressed="true"],
.preset-simulations button:hover,
.coupon-code button {
  background: var(--green, #255449);
  color: #fff;
}

.recipe-filters button:focus-visible,
.preset-simulations button:focus-visible,
.coupon-code button:focus-visible {
  outline: 3px solid var(--orange, #b97958);
  outline-offset: 3px;
}

.filter-status,
.copy-status {
  min-height: 1.5em;
  color: var(--muted, #69716b);
  font-size: 13px;
}

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

.result-card {
  padding: 18px;
  border: 1px solid var(--line, #d9ded2);
  border-radius: 14px;
  background: var(--paper, #f7f4ed);
}

.result-card.is-lower {
  border: 2px solid var(--green, #255449);
  background: #e8ecdf;
}

.result-card.is-higher {
  opacity: 0.78;
}

.result-card p {
  color: var(--muted, #69716b);
}

.living-home {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.living-home-copy {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, #e9eee5 0%, #f4e8da 100%);
}

.living-home-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.living-home-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.living-home-notes span {
  display: flex;
  align-items: flex-end;
  min-height: 120px;
  padding: 18px;
  border-radius: 22px;
  background: #255449;
  color: #f7f4ed;
  font: 600 15px/1.25 Georgia, serif;
}

.living-home-notes span:nth-child(2) { background: #824636; }
.living-home-notes span:nth-child(3) { background: #575c33; }
.living-home-notes span:nth-child(4) { background: #6a4b3c; }

.host-intro {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.host-intro-photo {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 160px 160px 28px 28px;
  background: #d8dfd0;
  box-shadow: 0 26px 70px rgba(34, 43, 41, .16);
}

.host-intro-photo img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.host-intro-photo span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(247, 244, 237, .9);
  color: var(--ink, #222b29);
  font-size: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.host-intro-copy { max-width: 650px; }
.host-intro-copy h2 { font-size: clamp(38px, 5vw, 66px); }
.host-intro-copy p { color: var(--muted, #69716b); font-size: 17px; }
.host-intro-copy .host-lead { color: var(--ink, #222b29); font: 600 clamp(20px, 2.4vw, 28px)/1.35 Georgia, serif; }

.host-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 30px;
}

.host-promises span {
  padding: 9px 13px;
  border: 1px solid var(--line, #d9ded2);
  border-radius: 999px;
  color: var(--green, #255449);
  font-size: 13px;
}

@media (max-width: 700px) {
  .living-home { grid-template-columns: 1fr; }
  .living-home-copy { padding: 28px; }
  .living-home-notes span { min-height: 92px; }
  .host-intro { grid-template-columns: 1fr; }
  .host-intro-photo,
  .host-intro-photo img { min-height: 520px; }
}

.coupon-box {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line, #d9ded2);
  border-radius: 18px;
  background: #e8ecdf;
}

.coupon-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.coupon-code code {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #222b29);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.coupon-steps {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.coupon-steps li {
  margin: 0;
}

.program-terms {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--orange, #b97958);
  background: #f7f4ed;
}

.program-terms summary {
  cursor: pointer;
  font-weight: 700;
}

.ingredient-checklist {
  padding-left: 0 !important;
  list-style: none;
}

.ingredient-checklist li {
  margin: 0 !important;
  border-bottom: 1px solid var(--line, #d9ded2);
}

.ingredient-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 4px;
  cursor: pointer;
}

.ingredient-checklist input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  accent-color: var(--green, #255449);
}

.ingredient-checklist input:checked + span {
  color: var(--muted, #69716b);
  text-decoration: line-through;
}

@media (max-width: 650px) {
  .chapter-nav {
    position: static;
  }

  .recipe-filters {
    gap: 8px;
  }

  .recipe-filters button {
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-story,
  .portal,
  .product,
  .banner,
  .product-image {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .top {
    display: block;
  }

  .top .brand {
    margin-bottom: 14px;
  }

  .top nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-inline: -22px;
    padding: 4px 22px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .top nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 42px;
    padding-inline: 4px;
  }
}
