:root {
  color-scheme: light;
  --ink: #333;
  --muted: #647169;
  --paper: #fffdf8;
  --panel: #ffffff;
  --sage: #dce8d4;
  --leaf: #2f6f4e;
  --leaf-dark: #111;
  --tomato: #d85f47;
  --corn: #eee;
  --sky: #d9edf2;
  --shadow: 0 16px 40px rgba(54, 72, 58, 0.12);
  --line: #d0d0d0;
  --night: #000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.shopping-info-page {
  background: #fbfdfb;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar {
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand.signed-in-wide-brand {
  display: none;
}

.recipe-static-header {
  min-height: 73px;
  position: relative;
  border-bottom: 1px solid transparent !important;
  visibility: hidden;
}

.recipe-static-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #eee;
  content: "";
  opacity: 0;
}

.recipe-static-header.is-header-ready {
  visibility: visible;
}

.recipe-static-header.is-header-ready::after {
  animation: recipe-header-line-reveal 1200ms ease forwards;
  animation-delay: 900ms;
}

.recipe-static-header:not(.is-header-ready) * {
  pointer-events: none;
}

.recipe-static-header .brand,
.recipe-static-header nav > *,
.recipe-static-header .account-icon-link {
  opacity: 0;
  transform: translateY(-4px);
}

.recipe-static-header.is-header-ready .brand,
.recipe-static-header.is-header-ready nav > *,
.recipe-static-header.is-header-ready .account-icon-link {
  animation: recipe-header-item-reveal 420ms ease forwards;
}

.recipe-static-header.is-header-ready .brand {
  animation-delay: 0ms;
}

.recipe-static-header.is-header-ready nav > :nth-child(1) {
  animation-delay: 200ms;
}

.recipe-static-header.is-header-ready nav > :nth-child(2) {
  animation-delay: 400ms;
}

.recipe-static-header.is-header-ready nav > :nth-child(3) {
  animation-delay: 600ms;
}

.recipe-static-header.is-header-ready .account-icon-link {
  animation-delay: 684ms;
}

@keyframes recipe-header-item-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes recipe-header-line-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recipe-static-header.is-header-ready .brand,
  .recipe-static-header.is-header-ready nav > *,
  .recipe-static-header.is-header-ready .account-icon-link {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }

  .recipe-static-header.is-header-ready::after {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 58%, rgba(255, 255, 255, 0.65) 59%),
    conic-gradient(from 50deg, var(--leaf), var(--corn), var(--tomato), var(--leaf));
  box-shadow: inset 0 0 0 2px rgba(36, 48, 43, 0.1);
}

nav {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
nav .nav-current {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

@media (min-width: 721px) {
  nav a:hover,
  nav a:focus-visible {
    background: var(--sky);
    color: var(--leaf-dark);
    outline: none;
  }
}

nav .nav-current {
  position: relative;
  color: var(--leaf-dark);
}

nav .nav-current::after {
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 3px;
  border-radius: 999px;
  background: #d6d6d6;
  content: "";
}

.account-aware-header.is-account-signed-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
}

.account-aware-header.is-account-signed-in nav {
  justify-content: flex-start;
  justify-self: start;
}

.account-aware-header.is-account-signed-in .account-icon-link {
  justify-self: end;
}

@media (min-width: 1024px) {
  .brand.signed-in-wide-brand {
    display: flex;
  }

  .account-aware-header.is-account-signed-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .account-aware-header.is-account-signed-in nav {
    justify-content: flex-end;
    justify-self: auto;
    margin-left: auto;
  }

  .account-aware-header.is-account-signed-in .account-icon-link {
    justify-self: auto;
  }
}

.account-icon-link {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--leaf-dark);
  text-decoration: none;
}

.account-icon-link:hover,
.account-icon-link:focus-visible {
  background: var(--sage);
  outline: none;
}

.account-icon-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

main {
  overflow: hidden;
}

.page-hero {
  padding: clamp(46px, 7vw, 96px) clamp(18px, 4vw, 56px) clamp(34px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 7vw, 5.1rem);
}

.recipes-hero.page-hero {
  border-bottom: none;
}

.recipes-hero {
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(36px, 6vw, 82px) clamp(18px, 4vw, 56px) 28px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 740px;
}

#page-recept section.recipe-library { 
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: #222;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.mobile-only {
  display: none;
}

.line-fit-word {
  display: inline-block;
  width: 0;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  text-decoration: none;
}

.button.primary {
  background: var(--night);
  border: 1px solid var(--night);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--leaf-dark);
}

.button:disabled,
.button[disabled] {
  cursor: default;
  opacity: 0.58;
}

img {
  border-radius: 5px; 
}

.hero-photo figcaption {
  min-height: 48px;
  padding: 12px 16px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-panel,
.section {
  padding-inline: clamp(18px, 4vw, 56px);
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-block: 22px;
  background: var(--leaf-dark);
  color: #fff;
}

.quick-panel article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 3px 12px;
  align-items: center;
}

.panel-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--corn);
  color: var(--ink);
  font-weight: 900;
}

.quick-panel h2 {
  font-size: 1rem;
}

.quick-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.section {
  padding-block: clamp(52px, 7vw, 92px);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-bottom: 26px;
}

.section-heading p {
  margin: 0;
}

.week-grid,
.recipe-grid,
.tool-list {
  display: grid;
  gap: 14px;
}

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

.day-card,
.recipe-card,
.shopping-board article,
.save-box,
.tool-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(54, 72, 58, 0.07);
}

.day-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.day-card.weekend {
  background: var(--sky);
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-page .day-head {
  justify-content: center;
  text-align: center;
}

.home-page .week-grid .meal {
  text-align: center;
}

.home-page .week-grid .day-card {
  min-height: 190px;
  gap: 12px;
  padding: 16px;
}

.home-page .week-grid .day-head {
  margin-top: 8px;
}

.home-page #schema .button {
  min-width: 232px;
}

.day-head span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.meal {
  margin: 0;
  color: var(--leaf-dark);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.25;
}

ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.recipes {
  border-block: 1px solid var(--line);
}

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

.recipe-card {
  overflow: hidden;
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.recipe-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

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

.recipe-card .tag {
  justify-self: start;
  color: var(--ink);
  background: var(--corn);
}

.recipe-library.alt-band {
  background: #f4f8ef;
  border-block: 1px solid var(--line);
}

.recipe-filter {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(54, 72, 58, 0.08);
}

.recipe-controls {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
}

.recipe-controls #filter {
  min-width: 0;
}

.filter-top {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: end;
}

.filter-top h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.filter-search {
  display: grid;
  gap: 7px;
  min-height: auto;
  color: var(--leaf-dark);
  font-weight: 850;
}

.filter-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.filter-search input::placeholder {
  color: #8b968f;
  font-weight: 200;
}

.filter-groups {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
}

.recipe-filter fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.recipe-filter legend {
  padding: 0 6px;
  color: var(--leaf-dark);
  font-weight: 900;
}

.filter-chips,
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: default;
}

.filter-chip span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--leaf-dark);
  font-size: 0.8rem;
  line-height: 1;
}

.filter-chip.is-included {
  border-color: rgba(47, 111, 78, 0.35);
  background: var(--leaf-dark);
  color: #fff;
}

.filter-chip.is-included span {
  background: var(--corn);
  color: var(--ink);
}

.filter-chip.is-excluded {
  border-color: rgba(216, 95, 71, 0.42);
  background: #fff4f1;
  color: #8c3729;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(216, 95, 71, 0.55);
}

.filter-chip.is-excluded span {
  background: var(--tomato);
  color: #fff;
}

.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.active-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--corn);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.filter-footer p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.all-recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.full-recipe-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(54, 72, 58, 0.07);
  margin-bottom: 13px;
}

.full-recipe-card.has-photo {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.full-recipe-card[hidden] {
  display: none;
}

.recipe-photo-link {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.recipe-photo-link:empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.recipe-photo-link:empty::before {
  content: "";
  width: calc(100% - 22px);
  height: calc(100% - 14px);
  border: 1px dashed var(--line);
  border-radius: 8px;
  position: relative;
  top: 6px;
}

.recipe-photo-link:not(:has(img)) {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.recipe-photo-link:not(:has(img))::before {
  content: "";
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.recipe-photo-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  object-fit: cover;
}

.full-recipe-card-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.full-recipe-card p {
  margin: 0;
  color: var(--muted);
}

.full-recipe-card-content .shared-recipe-add-button {
  justify-self: start;
  min-height: 38px;
  margin-top: 4px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.shared-recipe-card-status {
  min-height: 1.2em;
  color: var(--leaf-dark);
  font-size: 0.86rem;
  font-weight: 750;
}

.full-recipe-card .tag {
  justify-self: start;
  color: var(--ink);
  background: var(--corn);
}

.recipe-add-own-action {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.shared-recipes-panel {
  width: auto;
  margin: clamp(48px, 7vw, 86px) calc(-1 * clamp(18px, 4vw, 56px)) 0;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 56px);
  border-block: 1px solid rgba(47, 111, 78, 0.24);
  background: #faf2eb;
}

.shared-recipes-panel .shared-recipes-layout {
  max-width: 1780px;
  margin: 0 auto;
}

.shared-recipes-copy h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.shared-recipes-copy p {
  margin: 18px 0 24px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.48;
}

.shared-recipes-illustration {
  position: relative;
  display: grid;
  min-height: 330px;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff9f2;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 78, 0.08);
}

.shared-recipe-preview,
.shared-recipe-note {
  overflow: hidden;
  border: 1px solid rgba(47, 111, 78, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(54, 72, 58, 0.13);
}

.shared-recipe-preview {
  display: grid;
  width: min(58%, 310px);
}

.shared-recipe-preview-main {
  transform: translate(-17%, 4%);
}

.shared-recipe-preview-side {
  position: absolute;
  right: clamp(22px, 6vw, 78px);
  bottom: clamp(24px, 5vw, 54px);
  width: min(38%, 210px);
}

.shared-recipe-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.shared-recipe-preview div {
  display: grid;
  gap: 2px;
  padding: 12px 14px 14px;
}

.shared-recipe-preview span,
.shared-recipe-note span {
  display: inline-block;
  color: var(--tomato);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.shared-recipe-preview strong,
.shared-recipe-note strong {
  display: inline-block;
  color: var(--ink);
  font-size: 1.05rem;
}

.shared-recipe-note {
  position: absolute;
  top: clamp(24px, 5vw, 58px);
  right: clamp(28px, 7vw, 100px);
  min-width: 150px;
}

.shared-recipe-note-content {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.recipe-type-filter {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin: 0;
}

.recipe-type-filter-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.recipe-type-filter label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  color: var(--leaf-dark);
  cursor: pointer;
}

.recipe-type-filter input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.recipe-type-filter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-weight: 300;
  font-size: .94rem;
}

.recipe-type-filter input:checked + span {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: #fff;
}

.recipe-type-filter input:focus-visible + span {
  outline: 3px solid rgba(47, 111, 78, 0.26);
  outline-offset: 2px;
}

.full-recipe-card dl {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}

.full-recipe-card dl div {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.full-recipe-card dt {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.full-recipe-card dd {
  margin: 0;
  color: var(--muted);
}

.recipe-link,
.back-link {
  color: inherit;
  text-decoration-color: rgba(47, 111, 78, 0.35);
  text-underline-offset: 3px;
}

.full-recipe-card h3 a {
  color: inherit;
  text-decoration: none;
}

.porridge-recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
}

.porridge-recipe-grid .full-recipe-card {
  min-height: 220px;
}

.porridge-inspiration {
  background: #fff;
}

.recipe-link,
.back-link {
  color: var(--leaf-dark);
  font-weight: 850;
}

.recipe-detail {
  --recipe-content-width: 920px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 82px) clamp(18px, 4vw, 56px);
}

.recipe-detail-hero {
  position: relative;
  left: 2px;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: var(--recipe-content-width);
  margin-inline: auto;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.recipe-detail-hero-copy {
  display: grid;
  gap: 14px;
}

.recipe-detail-hero > p:not(.eyebrow),
.recipe-detail-hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.recipe-hero-polaroid {
  width: min(100%, 500px);
  margin: 0;
}

.recipe-hero-polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  padding: 12px;
  border: 1px solid rgba(35, 35, 35, 0.12);
  background: #fff;
}

.recipe-detail-hero.has-recipe-hero-image {
  max-width: 1120px;
  gap: clamp(20px, 4vw, 48px);
}

.recipe-detail-hero.has-short-recipe-title {
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1fr);
  align-items: center;
}

.recipe-detail-hero.has-long-recipe-title {
  justify-items: start;
}

.recipe-detail-hero.has-long-recipe-title .recipe-hero-polaroid {
  width: min(100%, var(--recipe-content-width));
}

@media (max-width: 720px) {
  .recipe-detail-hero.has-short-recipe-title {
    grid-template-columns: 1fr;
  }
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.recipe-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--leaf-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.recipe-detail-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.ingredients-panel,
.method-panel,
.recipe-notes article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(54, 72, 58, 0.07);
}

.ingredients-panel h2,
.method-panel h2,
.recipe-notes h2 {
  font-size: 1.25rem;
}

.ingredient-list,
.method-list {
  margin: 16px 0 0;
  color: var(--muted);
}

.method-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.recipe-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recipe-notes p {
  margin: 10px 0 0;
  color: var(--muted);
}

.imported-recipe-content {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: var(--recipe-content-width);
  margin-inline: auto;
}

.imported-recipe-content h2,
.imported-recipe-content h3,
.imported-recipe-content h4 {
  margin: 12px 0 0;
  color: var(--leaf-dark);
  line-height: 1.15;
}

.imported-recipe-content h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.imported-recipe-content h3,
.imported-recipe-content h4 {
  font-size: 1.15rem;
}

.imported-recipe-content p,
.imported-recipe-content ul,
.imported-recipe-content ol {
  margin: 0;
  color: var(--muted);
}

.recipe-ingredients,
.recipe-steps,
.imported-recipe-content ul,
.imported-recipe-content ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 26px) clamp(18px, 3vw, 24px) calc(clamp(18px, 3vw, 26px) + 18px);
}

.recipe-ingredients,
.imported-recipe-content ul,
.imported-recipe-content ol {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(54, 72, 58, 0.06);
  background: #fffdf8;
}

.imported-recipe-content ol {
  --recipe-step-done-size: 1rem;
  --recipe-step-active-size: 1.08rem;
  background: #f7fbfc;
}

.recipe-ingredients ul,
.recipe-steps ol {
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}


.recipe-steps ol,
.imported-recipe-content > ol {
  list-style: none;
}

.recipe-steps ol {
  padding-left: 0;
}

.recipe-steps > ol > li,
.recipe-substeps > li,
.imported-recipe-content > ol > li {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: var(--recipe-step-active-size);
}

.recipe-steps > ol > li::before,
.recipe-substeps > li::before,
.imported-recipe-content > ol > li::before {
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1.5px solid #9aa6a0;
  border-radius: 3px;
  background: #fff;
  content: "";
}

.recipe-steps > ol > li::after,
.recipe-substeps > li::after,
.imported-recipe-content > ol > li::after {
  position: absolute;
  top: calc(0.4em + 2px);
  left: 4px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  opacity: 0;
  transform: rotate(42deg);
}

.recipe-steps > ol > li:focus-visible,
.recipe-substeps > li:focus-visible,
.imported-recipe-content > ol > li:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--leaf);
  outline-offset: 4px;
}

.recipe-steps > ol > li.is-step-done,
.recipe-substeps > li.is-step-done,
.imported-recipe-content > ol > li.is-step-done {
  color: #8a938f;
  font-size: var(--recipe-step-done-size);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: #b4bbb7;
}

.recipe-steps > ol > li.is-step-done::before,
.recipe-substeps > li.is-step-done::before,
.imported-recipe-content > ol > li.is-step-done::before {
  border-color: var(--leaf);
  background: var(--leaf);
}

.recipe-steps > ol > li.is-step-done::after,
.recipe-substeps > li.is-step-done::after,
.imported-recipe-content > ol > li.is-step-done::after {
  opacity: 1;
}

.recipe-step-label {
  display: block;
}

.recipe-substeps {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 11px 0 13px 2px!important;
  border: 0!important;
  border-radius: 0;
  background: transparent;
  box-shadow: none!important;
  color: var(--muted);
  font-size: 0.95em;
  list-style: none;
}

.recipe-substeps li {
  cursor: pointer;
}

.recipe-steps > ol > li.is-step-done .recipe-substeps {
  display: none;
}

.recipe-ingredients p {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.recipe-polaroid {
  width: min(100%, 500px);
  margin: 14px auto 0;
}

.recipe-polaroid img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 2px;
  padding: 12px;
  border: 1px solid rgba(35, 35, 35, 0.12);
  background: #fff;
}

.recipe-polaroid-standalone {
  position: static;
  width: min(100%, var(--recipe-content-width));
  max-width: var(--recipe-content-width);
  margin: 22px auto 0;
}

@media (min-width: 984px) {
  .recipe-polaroid {
    z-index: 13;
    position: absolute;
    top: -30px;
    right: -22px;
    width: auto;
    height: calc(100% + 26px);
    max-width: 500px;
    margin: 0;
  }

  .recipe-polaroid img {
    width: auto;
    max-height: 100%;
    max-width: 100%;
  }

  .recipe-polaroid-standalone {
    position: static;
    width: min(100%, var(--recipe-content-width));
    max-width: var(--recipe-content-width);
    height: auto;
    margin: 22px auto 0;
  }

  .recipe-polaroid-standalone img {
    width: 100%;
    max-height: 620px;
  }
}

.imported-recipe-content a {
  color: var(--leaf-dark);
  font-weight: 750;
  text-underline-offset: 3px;
}

.imported-recipe-content a.recipe-stealth-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .imported-recipe-content {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    column-gap: clamp(28px, 4vw, 52px);
  }

  .imported-recipe-content > :not(.recipe-ingredients):not(.recipe-steps):not(ul):not(ol) {
    grid-column: 1 / -1;
  }

  .imported-recipe-content > .recipe-ingredients,
  .imported-recipe-content > ul {
    grid-column: 1;
  }

  .imported-recipe-content > .recipe-steps,
  .imported-recipe-content > ol {
    grid-column: 2;
  }

  .recipe-kids ul {
    font-size: 1.14rem;
  }
}

.recipe-kids {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: var(--recipe-content-width);
  margin: 18px auto 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(54, 72, 58, 0.07);
}

.recipe-kids h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.recipe-kids p,
.recipe-kids ul {
  margin: 0;
  color: var(--muted);
}

.recipe-kids ul {
  gap: 8px;
  padding-left: 22px;
}

.custom-recipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  width: 100%;
  max-width: var(--recipe-content-width);
  margin: 22px auto 0;
}

.custom-recipe-actions span {
  color: var(--muted);
  font-weight: 800;
}

.custom-recipe-fallback-detail .recipe-detail-hero {
  gap: 20px;
  align-items: start;
}

.shopping-section {
  background:
    linear-gradient(90deg, rgba(216, 95, 71, 0.07), transparent 42%),
    var(--paper);
}

.shopping-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shopping-board article,
.save-box {
  padding: 18px;
}

.shopping-board h3,
.save-box h3 {
  margin-bottom: 14px;
}

label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--leaf);
}

.save-box {
  background: var(--leaf-dark);
  color: #fff;
}

.save-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.tool-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-list article {
  padding: 20px;
  border-top: 6px solid var(--tomato);
}

.tool-list article:nth-child(2) {
  border-top-color: var(--leaf);
}

.tool-list article:nth-child(3) {
  border-top-color: var(--corn);
}

.tool-list article:nth-child(4) {
  border-top-color: #5ca6b8;
}

.tool-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tips-page .quick-panel,
.tips-page .tool-list,
.tips-page .week-grid,
.tips-page .shopping-board {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
}

.tips-page .quick-panel article,
.tips-page .tool-list article,
.tips-page .day-card,
.tips-page .shopping-board article,
.tips-page .save-box {
  max-width: 820px;
}

.tips-list-section .section-heading {
  margin-inline: auto;
  text-align: center;
}

.meal-tips-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 660px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
  box-shadow: none;
}

.meal-tips-list li {
  position: relative;
  min-height: 100%;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.meal-tips-list h3 {
  margin: 0;
  font-size: 1.06rem;
}

.meal-tips-list p {
  margin: 7px 0 0;
  color: var(--muted);
}

.planner-shell {
  margin-top: 5vh;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px) clamp(44px, 7vw, 90px);
}

.planner-heading {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-bottom: 22px;
}

.planner-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.planner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.planner-week-toolbar {
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.planner-view-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.planner-view-options label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.planner-view-options label:has(input[type="radio"]:checked) {
  border-color: rgba(47, 111, 78, 0.42);
  background: var(--sage);
}

.planner-view-options input[type="radio"] {
  margin: 0 7px 0 0;
}

.planner-view-options span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.planner-view-options input[type="number"] {
  width: 3.4rem;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.planner-guest-view-options {
  justify-content: center;
}

.planner-setting-toggle {
  display: grid;
  grid-template-columns: 44px minmax(0, max-content);
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 0;
  padding: 14px;
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
  font-weight: 700;
}

.planner-setting-toggle input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 28px;
  margin: 0;
  border: 1px solid rgba(47, 111, 78, 0.2);
  border-radius: 999px;
  background: #dfe8e2;
  cursor: pointer;
  transition: background 160ms ease;
}

.planner-setting-toggle input[type="checkbox"]::before {
  display: block;
  width: 22px;
  height: 22px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(54, 72, 58, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.planner-setting-toggle input[type="checkbox"]:checked {
  background: #2f6f4e;
}

.planner-setting-toggle input[type="checkbox"]:checked::before {
  transform: translateX(16px);
}

.planner-setting-toggle span {
  display: grid;
  gap: 3px;
}

.planner-setting-toggle strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
}

.planner-actions button,
.recipe-add-button {
  font: inherit;
}

.custom-recipe-detail {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 8px;
  background: #fbfdfb;
}

.custom-recipe-detail > .button {
  justify-self: start;
}

.custom-recipe-detail-head {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 26px);
  align-items: center;
}

.custom-recipe-detail-head img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.custom-recipe-detail-head h1,
.custom-recipe-detail-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.custom-recipe-detail-head p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.custom-recipe-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 18px;
}

.custom-recipe-share span {
  color: var(--muted);
  font-weight: 800;
}

.custom-recipe-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 32px);
}

.custom-recipe-detail h3,
.custom-recipe-detail h4 {
  margin: 0 0 8px;
  color: var(--ink);
}

.custom-recipe-detail ul,
.custom-recipe-detail ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--muted);
}

.custom-recipe-detail li + li {
  margin-top: 6px;
}

.planner-actions button:not(:disabled) {
  cursor: pointer;
}

.planner-actions button:disabled {
  border-color: #dedede;
  background: #f7f7f7;
  color: #9a9a9a;
  cursor: default;
  opacity: 0.55;
}

.planner-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.account-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.5vw, 22px);
  border-top: 1px solid rgba(47, 111, 78, 0.24);
  background: #fff;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.account-panel h2 {
  max-width: 100%;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.account-panel h1 {
  max-width: 100%;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.sync-info-panel {
  max-width: 1040px;
  margin: 0 auto 5rem;
  border-top: 0;
}

.sync-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: center;
}

.sync-info-copy {
  max-width: 560px;
}

.sync-info-illustration {
  display: block;
}

.sync-info-illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .sync-info-panel {
    margin-bottom: 3rem;
  }

  .sync-info-layout {
    grid-template-columns: 1fr;
  }

  .sync-info-illustration {
    order: -1;
  }
}

.account-page .account-panel > section {
  margin-top: clamp(18px, 4vw, 34px);
}

.account-status {
  min-width: max-content;
  margin: 4px 0 0;
  color: var(--leaf-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.account-plan-settings-form {
  grid-template-columns: 1fr;
  justify-items: start;
}

.account-settings-details {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.account-settings-details[open] {
  padding: 12px;
  border: 1px solid var(--line);
}

.account-settings-details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
}

.account-settings-details[open] summary {
  margin-bottom: 12px;
}

.account-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-form span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.account-form input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.account-form .planner-view-options input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
}

.account-form .planner-view-options label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0;
  min-height: 40px;
  padding: 7px 10px;
}

.account-form .planner-view-options span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.account-form .planner-view-options input[type="number"] {
  width: 3.4rem;
  min-height: 28px;
  padding: 3px 6px;
}

.account-form .planner-setting-toggle input[type="checkbox"] {
  width: 44px;
  height: 28px;
  min-height: 0;
  padding: 0;
}

.account-actions,
.account-signed-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.account-actions {
  justify-content: flex-end;
}

.account-logout-actions {
  justify-content: flex-start;
  margin-top: 15vh;
}

@media (min-width: 721px) {
  .account-logout-actions {
    position: fixed;
    left: clamp(18px, 4vw, 56px);
    bottom: clamp(18px, 4vw, 56px);
    z-index: 20;
    margin-top: 0;
  }
}

.account-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-inline p {
  margin: 0;
  color: var(--muted);
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-signed-in {
  justify-content: space-between;
}

.account-signed-in p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.account-shell {
  display: grid;
  min-height: calc(100vh - 84px);
  padding: clamp(28px, 6vw, 76px) clamp(18px, 4vw, 56px);
  place-items: start center;
}

.account-shell .account-panel {
  width: min(100%, 720px);
}

.account-form-page {
  grid-template-columns: 1fr;
}

.account-form-page .account-actions {
  justify-content: flex-start;
}

.account-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.account-detail-list div {
  display: grid;
  gap: 3px;
}

.account-detail-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.account-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.settings-empty {
  margin: 0;
  color: var(--muted);
}

.recipe-picker {
  margin-top: 1.3rem;
}

#recipe-search {
  margin-bottom: .84rem;
}

.recipe-picker,
.account-panel,
.week-panel,
.shopping-list {
  grid-column: 1 / -1;
}

.planner-panel,
.planner-day,
.shopping-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(54, 72, 58, 0.07);
}

.planner-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.5vw, 22px);
}

.recipe-picker {
  min-height: 280px;
  overflow: visible;
}

.week-panel,
.shopping-list {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

  
.shopping-list {
  margin-top: 13vh;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-title-row h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.planner-count {
  min-width: max-content;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.recipe-button-list,
.shopping-list-groups {
  display: grid;
  gap: 10px;
}

.recipe-search {
  margin: 8px auto 4px;
}

.recipe-picker .recipe-search {
  display: block !important;
  width: min(100%, 360px);
  margin-inline: auto;
}

.recipe-search span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.recipe-search input {
  width: 100%;
  min-height: 42px;
  max-width: 360px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.recipe-button-list {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
  transition: opacity 140ms ease, transform 140ms ease;
}

.recipe-button-list.is-filtering {
  opacity: 0.55;
  transform: translateY(3px);
}

.recipe-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.recipe-pagination button {
  min-width: 8.5rem;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.recipe-pagination span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.recipe-pagination button:hover,
.recipe-pagination button:focus-visible,
.recipe-pagination button.is-current {
  border-color: rgba(47, 111, 78, 0.45);
  background: var(--sage);
  outline: none;
}

.recipe-pagination button:disabled {
  cursor: default;
  opacity: 0.48;
}

.recipe-pagination button:disabled:hover,
.recipe-pagination button:disabled:focus-visible {
  border-color: var(--line);
  background: #fff;
}

.planner-day {
  position: relative;
  cursor: grab;
  overflow: hidden;
}

.planner-day.has-day-state {
  border-color: rgba(47, 111, 78, 0.28);
  background: #f8fbf4;
  cursor: default;
  text-align: center;
}

.planner-day .day-head {
  justify-content: flex-end;
}

.planner-day:not(.is-empty) {
  padding-top: 0;
}

.planner-day:not(.is-empty) .day-head {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  justify-content: flex-end;
}

.planner-day:not(.is-empty) .planner-day-name {
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(54, 72, 58, 0.12);
}

.planner-day-name {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.planner-day:active {
  cursor: grabbing;
}

.planner-day.is-empty {
  border-style: dashed;
  cursor: default;
  justify-content: center;
  text-align: center;
}

.planner-day.is-empty .day-head {
  justify-content: center;
}

.planner-day.is-empty .planner-day-name {
  color: var(--leaf-dark);
  font-size: 1.05rem;
}

.day-state-label {
  align-self: center;
  justify-self: center;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(47, 111, 78, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--leaf-dark);
  font-size: 1rem;
  font-weight: 750;
  box-shadow: 0 6px 14px rgba(54, 72, 58, 0.08);
}

.day-state-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.day-state-trigger {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(47, 111, 78, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--leaf-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease, background 160ms ease, border-color 160ms ease;
}

.planner-day:hover .day-state-trigger,
.planner-day:focus-within .day-state-trigger {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 5s, 5s, 0s, 0s;
}

.planner-day:focus-within .day-state-trigger {
  transition-delay: 0s;
}

@media (hover: none) {
  .day-state-trigger {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.day-state-trigger:hover,
.day-state-trigger:focus-visible,
.day-state-trigger[aria-expanded="true"] {
  border-color: rgba(47, 111, 78, 0.48);
  background: var(--sage);
  outline: none;
}

.day-state-menu {
  display: grid;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(54, 72, 58, 0.16);
}

.day-state-menu[hidden] {
  display: none;
}

.day-state-menu button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.day-state-menu button:hover,
.day-state-menu button:focus-visible {
  background: var(--sage);
  outline: none;
}

.day-state-menu .day-state-clear {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  color: #8c3729;
}

.day-random-button {
  align-self: center;
  width: 100%;
  max-width: 13rem;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 111, 78, 0.35);
  border-radius: 8px;
  background: #fff;
  color: var(--leaf-dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.day-random-button:hover,
.day-random-button:focus-visible {
  background: var(--sage);
  outline: none;
}

.planner-day.is-drop-target {
  border-color: var(--leaf);
  background: var(--sage);
  outline: 3px solid rgba(47, 111, 78, 0.16);
}

.planner-day.is-remove-pending {
  border-color: rgba(216, 95, 71, 0.64);
  background: #fff4f1;
  outline: 3px solid rgba(216, 95, 71, 0.18);
  opacity: 0.78;
}

.planner-day.is-remove-pending::after {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: #8c3729;
  color: #fff;
  content: "Släpp för att ta bort";
  font-size: 0.76rem;
  font-weight: 750;
}

.planner-day .meal a {
  color: #555;
  font-size: 1.084rem;
  font-weight: 300;
  text-decoration: none;
}

.planner-day .meal a:hover,
.planner-day .meal a:focus-visible {
  text-decoration-color: rgba(47, 111, 78, 0.35);
  text-decoration-line: underline;
  text-underline-offset: 3px;
}

.empty-list {
  margin: 0;
  color: var(--muted);
}

.recipe-add-button {
  position: relative;
  display: grid;
  min-height: 112px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: grab;
  text-align: left;
  overflow: hidden;
}

.recipe-button-image {
  width: 100%;
  height: 100%;
  min-height: 112px;
  max-width: none;
  background: #fff;
  object-fit: cover;
}

.recipe-button-image.is-empty {
  display: block;
  border: 1px dashed var(--line);
}

.recipe-add-button:active {
  cursor: grabbing;
}

.recipe-add-button:hover,
.recipe-add-button:focus-visible {
  border-color: rgba(47, 111, 78, 0.45);
  background: var(--sage);
  outline: none;
}

.recipe-add-button span {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: calc(100% - 14px);
  min-width: 0;
  padding: 7px 11px;
  border-radius: 0 8px 0 0;
  background: #fff;
  box-shadow: 0 6px 14px rgba(54, 72, 58, 0.12);
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  font-weight: 900;
  line-height: 1.18;
}

.meal-card-image {
  width: calc(100% + 36px);
  height: 144px;
  max-width: none;
  margin: 0 -18px;
  border-radius: 8px 8px 0 0;
  background: #fff;
  object-fit: cover;
}

.shopping-group {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.shopping-group h3 {
  margin-bottom: 4px;
  color: var(--leaf-dark);
}

.shopping-group label {
  min-height: 30px;
}

footer {
  padding: 28px clamp(18px, 4vw, 56px);
  background: #fff;
}

footer p {
  margin: 0;
}

[hidden],
.hidden {
  display: none !important;
}

.mat-week-list {
  display: grid;
  gap: 8px;
}

.mat-week-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 8px;
  border: 1px solid rgba(47, 111, 78, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.mat-week-item.is-today {
  border-color: rgba(216, 95, 71, 0.42);
  background: #fff8f2;
}

.mat-week-item img,
.mat-empty-dot {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.mat-empty-dot {
  display: block;
  border: 1px dashed rgba(47, 111, 78, 0.28);
  background: #f7f2e8;
}

.mat-week-item h3 {
  margin: 2px 0 0;
  font-size: 1.04rem;
  line-height: 1.14;
}

.mat-week-item h3 a {
  text-decoration: none;
}

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

.mat-recipe-form label {
  display: grid;
  gap: 7px;
}

.mat-recipe-form span {
  color: #5f6368;
  font-size: 0.9rem;
  font-weight: 850;
}

.mat-recipe-form input,
.mat-recipe-form select,
.mat-recipe-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 111, 78, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #121714;
  font: inherit;
  font-weight: 700;
  outline: 0;
}

.mat-recipe-form textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.35;
}

.mat-recipe-image-field {
  padding: 12px;
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #fbfdfb;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mat-recipe-image-field input[type="file"] {
  padding: 9px;
  background: #fff;
  cursor: pointer;
}

.mat-recipe-image-field small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.mat-recipe-image-field img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.mat-recipe-image-field.is-dragging {
  border-color: rgba(47, 111, 78, 0.58);
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(47, 111, 78, 0.12);
}

.mat-recipe-form input:focus,
.mat-recipe-form select:focus,
.mat-recipe-form textarea:focus {
  border-color: rgba(47, 111, 78, 0.44);
  box-shadow: 0 0 0 4px rgba(47, 111, 78, 0.1);
}

.mat-recipe-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mat-app-status {
  padding: 12px 2px 0;
  color: #6a766f;
  font-size: 0.9rem;
}

.mat-app-status p {
  margin: 0;
}

.mat-info-hero,
.mat-info-section,
.mat-install-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.mat-info-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(28px, 7vw, 86px);
  min-height: calc(100vh - 74px);
  padding: 40px 0 56px;
}

.mat-info-hero p,
.mat-install-lead {
  max-width: 620px;
  margin: 0 0 22px;
  color: #536159;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.mat-info-app-icon {
  width: 104px;
  height: 104px;
  margin-bottom: 20px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(54, 72, 58, 0.16);
}

.mat-phone-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(47, 111, 78, 0.12);
  border-radius: 34px;
  background: #161916;
  box-shadow: 0 24px 60px rgba(54, 72, 58, 0.18);
}

.mat-phone-screen {
  min-height: 560px;
  padding: 28px 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f7f2e8, #fff);
}

.mat-phone-screen h2 {
  margin: 6px 0 16px;
  font-size: 2rem;
  line-height: 1;
}

.mat-phone-screen img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.mat-demo-screen p {
  margin: 0;
  color: #617168;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mat-demo-screen img + p {
  margin-top: 24px;
}

.mat-demo-screen ul {
  display: grid;
  gap: 4px;
  margin: 9px 0 0;
  padding: 0;
  color: #536159;
  list-style: none;
}

.mat-demo-screen li {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 4px 0;
  border-radius: 8px;
  background: transparent;
  font-size: 1rem;
  font-weight: 400;
}

.mat-phone-screen span {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 850;
}

.mat-info-section {
  padding: 18px 0 70px;
}

.mat-info-grid,
.mat-install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mat-info-grid article,
.mat-install-steps article {
  padding: 18px;
  border: 1px solid rgba(47, 111, 78, 0.12);
  border-radius: 8px;
  background: #fff;
}

.mat-info-grid h3 {
  margin: 0 0 8px;
}

.mat-info-grid p,
.mat-install-steps li {
  color: #536159;
}

.apps-overview-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) 0 clamp(46px, 7vw, 76px);
}

.apps-overview-copy h1 {
  font-size: clamp(2.55rem, 7vw, 5.2rem);
  margin-bottom: 22px;
  position: relative;
  left: -2px;
}

.apps-overview-copy p {
  max-width: 750px;
  margin: 0;
  color: #536159;
  font-size: clamp(1.06rem, 2vw, 1.24rem);
}

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

.apps-overview-card {
  overflow: hidden;
  border: 1px solid rgba(47, 111, 78, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(54, 72, 58, 0.12);
}

.apps-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 220px);
  align-items: end;
  gap: 20px;
  min-height: 360px;
  padding: clamp(18px, 3vw, 28px);
  color: inherit;
  text-decoration: none;
}

.apps-card-link:hover,
.apps-card-link:focus-visible {
  outline: none;
}

.apps-card-link:hover .apps-card-cta,
.apps-card-link:focus-visible .apps-card-cta {
  background: #111;
  color: #fff;
}

.apps-card-copy {
  display: grid;
  align-self: stretch;
  align-content: start;
  gap: 12px;
}

.apps-card-copy h2 {
  color: #121714;
  font-size: clamp(2.05rem, 4.6vw, 3.3rem);
}

.apps-card-copy p:not(.eyebrow) {
  max-width: 370px;
  margin: 0;
  color: #536159;
  font-size: 1.04rem;
}

.apps-card-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 13px;
  border: 1px solid #111;
  border-radius: 8px;
  color: #111;
  font-weight: 850;
  transition: background 160ms ease, color 160ms ease;
}

.apps-overview-card-mat .mat-demo-phone {
  align-self: end;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(54, 72, 58, 0.16);
}

.apps-overview-card-mat .mat-demo-screen {
  min-height: 292px;
  padding: 18px 13px;
  border-radius: 22px;
}

.apps-overview-card-mat .mat-demo-screen p {
  font-size: 0.68rem;
}

.apps-overview-card-mat .mat-demo-screen img + p {
  margin-top: 18px;
}

.apps-overview-card-mat .mat-demo-screen h2 {
  margin: 6px 0 12px;
  color: #121714;
  font-size: 1.35rem;
  line-height: 1;
}

.apps-overview-card-mat .mat-demo-screen li {
  padding: 3px 0;
  font-size: 0.92rem;
}

.apps-mini-phone {
  align-self: end;
  padding: 8px;
  border-radius: 28px;
  background: #161916;
  box-shadow: 0 18px 44px rgba(54, 72, 58, 0.16);
}

.apps-mini-phone-shopping {
  background: #17211b;
}

.apps-mini-screen {
  min-height: 292px;
  padding: 18px 13px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f2e8, #fff);
}

.apps-mini-phone-shopping .apps-mini-screen {
  background: linear-gradient(180deg, #eef5f1, #fff);
}

.apps-mini-screen p {
  margin: 0;
  color: #617168;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.apps-mini-screen h3 {
  margin: 6px 0 12px;
  color: #121714;
  font-size: 1.35rem;
  line-height: 1;
}

.apps-mini-screen img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.apps-mini-screen > span {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 850;
}

.apps-mini-screen ul {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
  padding: 0;
  color: #536159;
  list-style: none;
}

.apps-mini-screen li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 780;
}

.apps-mini-screen li span {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(47, 111, 78, 0.35);
  border-radius: 50%;
}

.mat-install-shell {
  padding: clamp(40px, 9vw, 92px) 0 70px;
}

.install-page .mat-install-shell {
  width: min(920px, calc(100% - 32px));
  padding-top: clamp(44px, 7vw, 72px);
}

.install-hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.install-hero .eyebrow {
  margin-bottom: 12px;
  color: #555;
  font-size: 0.84rem;
}

.install-hero h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(4.1rem, 10vw, 5.8rem);
  line-height: 0.92;
}

.install-card-icon {
  position: absolute;
  top: -13px;
  right: -9px;
  display: block;
  width: 74px;
  height: 74px;
  border: 4px solid #fff;
  border-radius: 19px;
  box-shadow: 0 8px 18px rgba(54, 72, 58, 0.12), 0 1px 3px rgba(18, 23, 20, 0.05);
}

.ios-safari-warning {
  display: none;
  max-width: 620px;
  margin: 22px auto 0;
  padding: 16px;
  border: 1px solid rgba(47, 111, 78, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(54, 72, 58, 0.08);
}

.show-safari-install-note .ios-safari-warning {
  display: block;
}

.mac-safari-install-step {
  display: none;
}

.show-mac-safari-install-step .mac-safari-install-step {
  display: list-item;
}

.android-firefox-install-steps {
  display: none;
}

.show-android-firefox-install-steps .android-chrome-install-steps {
  display: none;
}

.show-android-firefox-install-steps .android-firefox-install-steps {
  display: block;
}

.ios-safari-warning p {
  margin: 0;
  color: #536159;
}

.ios-safari-warning label {
  display: block;
  margin-top: 12px;
  color: #121714;
  font-weight: 850;
}

.install-url-copy {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.install-url-copy input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 111, 78, 0.22);
  border-radius: 8px;
  color: #121714;
  font: inherit;
}

.install-url-copy button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.install-url-copy-status {
  min-height: 1.4em;
  margin-top: 8px !important;
  font-size: 0.94rem;
}

.install-close-link {
  display: none;
}

.mobile-line-break {
  display: none;
}

.mat-install-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  margin-bottom: 24px;
}

.mat-install-steps article {
  position: relative;
  min-height: 210px;
  padding: 24px;
}

.mat-install-steps h2 {
  padding-right: 82px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.mat-install-steps ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.mat-install-steps li + li {
  margin-top: 8px;
}

.install-final-step {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .mobile-line-break {
    display: block;
  }

  .install-page .mat-install-shell {
    width: min(100% - 28px, 560px);
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .install-page .topbar {
    display: none;
  }

  .install-close-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #777;
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: background 160ms ease;
  }

  .install-close-link:hover,
  .install-close-link:focus-visible {
    background: rgba(18, 23, 20, 0.08);
    outline: none;
  }

  .install-hero .eyebrow {
    margin-bottom: 10px;
    font-size: 0.78rem;
  }

  .install-hero h1 {
    font-size: clamp(4rem, 18vw, 5.3rem);
  }

  .mat-install-steps {
    gap: 22px;
    margin-top: 30px;
  }

  .mat-install-steps article {
    min-height: 0;
    padding: 28px 20px 22px;
  }

  .install-card-icon {
    top: auto;
    right: -8px;
    bottom: -10px;
    width: 62px;
    height: 62px;
    border-width: 4px;
    border-radius: 17px;
  }

  .mat-install-steps h2 {
    padding-right: 0;
    font-size: clamp(1.65rem, 8.2vw, 2.35rem);
    white-space: nowrap;
  }

  .install-final-step {
    white-space: normal;
  }

  .mat-info-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mat-phone-preview {
    max-width: 360px;
  }

  .mat-info-grid,
  .mat-install-steps {
    grid-template-columns: 1fr;
  }

  .install-url-copy {
    flex-direction: column;
  }

  .apps-overview-hero {
    min-height: auto;
    padding-top: 34px;
  }

  .apps-overview-grid,
  .apps-card-link {
    grid-template-columns: 1fr;
  }

  .apps-card-link {
    min-height: 0;
  }

  .apps-mini-phone {
    width: min(100%, 270px);
  }

  .apps-overview-card-mat .mat-demo-phone {
    width: min(100%, 270px);
  }

}

@media (display-mode: standalone) {
  .mat-app-nav {
    display: none;
  }
}

/* responsive.css */
@media (max-width: 980px) {
  .recipes .recipe-card:nth-child(n + 3) {
    display: none;
  }

  .week-grid,
  .recipe-grid,
  .all-recipes-grid,
  .porridge-recipe-grid,
  .recipe-notes,
  .filter-groups,
  .shopping-board,
  .tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

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

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

  .recipe-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .recipe-type-filter,
  .recipe-type-filter-options {
    justify-content: flex-start;
  }

  .planner-layout {
    grid-template-columns: 1fr;
  }

  .planner-days,
  .recipe-button-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 720px) {
  .line-fit-word {
    margin-right: 0;
  }

  .topbar {
    position: static;
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .recipe-static-header {
    min-height: 71px;
  }

  .recipe-steps,
  .recipe-steps ol,
  .imported-recipe-content > ol {
    --recipe-step-done-size: 1.18rem;
    --recipe-step-active-size: 1.34rem;
  }

  .recipe-steps ol,
  .imported-recipe-content > ol {
    gap: 12px;
  }

  .recipe-steps > ol > li,
  .recipe-substeps > li,
  .imported-recipe-content > ol > li {
    padding-left: 34px;
  }

  .recipe-steps > ol > li::before,
  .recipe-substeps > li::before,
  .imported-recipe-content > ol > li::before {
    top: 0.34em;
    width: 17px;
    height: 17px;
  }

  .recipe-steps > ol > li::after,
  .recipe-substeps > li::after,
  .imported-recipe-content > ol > li::after {
    top: calc(0.34em + 3px);
    left: 5px;
    width: 7px;
    height: 10px;
  }

  nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
  }

  .account-aware-header.is-account-signed-in nav {
    justify-content: flex-start;
    margin-left: 0;
  }

  nav a[href="/tips"],
  nav a[href="/tips/"] {
    padding-right: 0;
  }

  nav .nav-current {
    display: none;
  }

  body:not(.home-page) .topbar .brand > span {
    font-size: 1.55rem !important;
  }

  .home-page .topbar {
    border-bottom: 0 !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero,
  .quick-panel,
  .week-grid,
  .recipe-grid,
  .all-recipes-grid,
  .porridge-recipe-grid,
  .recipe-notes,
  .filter-groups,
  .shopping-board,
  .tool-list {
    grid-template-columns: 1fr;
  }

  .tips-list-section .section-heading {
    margin-inline: 0;
    text-align: left;
  }

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

  .tips-list-section .meal-tips-list {
    grid-template-columns: 1fr;
    margin-inline: 0;
  }

  .tips-page .page-hero {
    border-bottom: 0;
  }

  .tips-page .tips-list-section {
    padding-top: 34px;
  }

  .meal-tips-list {
    gap: 10px;
  }

  .meal-tips-list li {
    background: #fff;
    box-shadow: none;
    margin-bottom: 24px;
  }

  .hero {
    padding-top: 30px;
  }

  #page-recept #recipes-title {
    font-size: clamp(1.8rem, 7.8vw, 2.85rem);
    line-height: 1;
    white-space: nowrap;
  }

  #page-recept .recipes-hero .eyebrow {
    display: none;
  }

  #page-recept .recipe-photo-link img {
    aspect-ratio: 20 / 9;
  }

  #page-recept .full-recipe-card {
    min-height: 0;
  }

  #page-recept .full-recipe-card-content {
    gap: 0;
    padding: 10px 12px 11px;
  }

  #page-recept .full-recipe-card-content h3 {
    line-height: 1.15;
    text-align: center;
  }

  #page-recept .full-recipe-card-content p {
    display: none;
  }

  #page-recept .custom-recipe-detail-head,
  #page-recept .custom-recipe-detail-grid {
    grid-template-columns: 1fr;
  }

  .home-page .hero {
    position: relative;
    gap: 18px;
    align-content: start;
    min-height: calc(100svh - 56px);
    padding-top: 0;
    padding-bottom: clamp(18px, 5svh, 44px);
    border-bottom: 0;
  }

  .home-page .hero-copy {
    padding-top: 0;
  }

  .home-page .hero > img {
    order: -1;
    width: calc(100% + (clamp(18px, 4vw, 56px) * 2));
    height: clamp(140px, 24svh, 230px);
    max-width: none;
    margin-inline: calc(clamp(18px, 4vw, 56px) * -1);
    border-radius: 0;
    object-fit: cover;
    object-position: center 42%;
  }

  .home-page .hero h1 {
    line-height: 1.04;
  }

  .home-page .hero h1 + p {
    margin-top: 8px;
  }

  .mobile-hide {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mobile-uppercase {
    display: none;
  }

  .mobile-ampersand {
    font-size: 0;
  }

  .mobile-ampersand::after {
    content: "&";
    font-size: 1rem;
  }

  .home-page .hero .eyebrow {
    display: none;
  }

  @media (min-height: 760px) {
    .home-page .topbar {
      padding-top: 14px;
      padding-bottom: 14px;
    }

    .home-page .hero {
      min-height: auto;
      padding-bottom: 28px;
    }

    .home-page .hero > img {
      height: clamp(230px, 31svh, 360px);
    }
  }

  .hero-photo {
    min-height: 340px;
  }

  .hero-photo img {
    min-height: 292px;
  }

  .quick-panel article {
    grid-template-columns: 42px 1fr;
  }

  .panel-icon {
    width: 42px;
    height: 42px;
  }

  .filter-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-footer p {
    text-align: left;
  }

  .planner-shell {
    padding-top: 28px;
  }

  .account-panel-head,
  .account-form,
  .account-signed-in {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .account-panel-head,
  .account-inline,
  .account-signed-in {
    flex-direction: column;
  }

  .account-status {
    min-width: 0;
  }

  .account-actions .button,
  .account-links .button,
  .account-signed-in .button {
    width: 100%;
  }

  .planner-actions .button {
    width: auto;
  }

  .week-panel > .panel-title-row {
    display: grid;
    gap: 10px;
    justify-items: stretch;
  }

  .planner-view-options,
  .week-panel .planner-actions {
    justify-content: stretch;
  }

  .planner-view-options label {
    flex: 1 1 100%;
    justify-content: center;
  }

  #fill-week {
    order: 1;
    justify-self: end;
  }

  .planner-days {
    order: 2;
  }

  #clear-week,
  #print-plan {
    order: 3;
    justify-self: stretch;
  }

  #fill-week.is-mobile-hidden,
  #clear-week.is-mobile-hidden,
  #print-plan.is-mobile-hidden {
    display: none;
  }

  .planner-days,
  .recipe-button-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .planner-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .recipe-picker {
    min-height: 320px;
  }

  .recipe-button-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .planner-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
 
  .move-me-if-larger {
  padding: 4vh 0 0 8.4rem;
  max-width: 740px;
}

}

@media (max-height: 879px), (min-width: 1180px) {

  .planner-day:not(.is-empty) {
    gap: 0;
    min-height: 144px;
    padding: 0;
  }

  .planner-day.is-empty {
    min-height: 144px;
  }

  .planner-day:not(.is-empty) .meal-card-image {
    width: 100%;
    margin: 0;
  }

  .planner-day .meal {
    position: absolute;
    top: 144px;
    left: 0;
    z-index: 1;
    max-width: calc(100% - 18px);
    padding: 7px 12px;
    border-radius: 0 8px 0 0;
    background: #fff;
    box-shadow: 0 6px 14px rgba(54, 72, 58, 0.12);
    transform: translateY(-100%);
  }

  .planner-day ul {
    display: none;
  }

  .planner-day-name {
    font-size: .84rem;
    font-weight: 400;
    border-radius: 8px 0 0 8px;
    display: block;
  }
}


@media (min-width: 1180px) and (max-height: 1500px) {
  .planner-day:not(.is-empty) .day-head {
    top: -5px;
  }
}


@media (min-width: 1180px) and (min-height: 1501px) {

  .week-panel {
  margin-top: 3vh;
}

  .recipe-picker {
    margin-top: 5vh;
  }

  .planner-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .planner-day:not(.is-empty),
  .planner-day.is-empty {
    min-height: 180px;
  }

  .planner-day:not(.is-empty) .meal-card-image {
    height: 180px;
  }

  .planner-day .meal {
    top: 172px;
    border-radius: 0 3px 3px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recipe-button-list {
    transition: none;
  }

  .recipe-button-list.is-filtering {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 430px) {
  .button {
    width: 100%;
  }

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

  .planner-day .day-head {
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
  }

  .planner-day.is-empty .day-head {
    justify-content: center;
 }

  .planner-actions .button {
    width: 100%;
  }
}

.account-logout-actions .button {
  flex: 0 0 auto;
  width: auto;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  .topbar,
  .planner-heading,
  .planner-actions,
  .recipe-picker,
  footer {
    display: none;
  }

  .planner-shell {
    padding: 0;
  }

  .planner-layout {
    grid-template-columns: 1fr;
  }

  .planner-panel,
  .planner-day,
  .shopping-group {
    box-shadow: none;
  }

  .home-page {
    background: #fff;
  }

  .home-page .hero,
  .home-page #recept,
  .home-page footer {
    display: none;
  }

  .home-page main {
    overflow: visible;
  }

  .home-page #schema {
    padding: 0;
    border: 0;
  }

  .home-page #schema > div:first-child {
    margin-bottom: 5mm;
  }

  .home-page #schema h2 {
    font-size: 20pt !important;
  }

  .home-page #schema button {
    display: none;
  }

  .home-page .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5mm;
  }

  .home-page .week-grid > p {
    display: none;
  }

  .home-page .day-card {
    min-height: 0;
    break-inside: avoid;
    page-break-inside: avoid;
    gap: 3.5mm;
    padding: 5mm;
    border-color: #bdbdbd;
    box-shadow: none;
  }

  .home-page .day-head {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
  }

  .home-page .day-head h3 {
    font-size: 13pt;
  }

  .home-page .day-head span,
  .home-page .tag {
    min-height: 0;
    padding: 1.5mm 3mm;
    font-size: 8pt;
  }

  .home-page .meal {
    font-size: 11pt;
    line-height: 1.2;
  }

  .home-page ul {
    gap: 1.5mm;
    margin: 0;
    padding-left: 5mm;
    font-size: 9pt;
    line-height: 1.25;
  }

  .planner-page .planner-shell {
    margin-top: 0;
  }

  .planner-page .shopping-list {
    display: none;
  }

  .planner-page .planner-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
  }

  .planner-page .planner-day {
    min-height: 0;
    gap: 3mm;
    padding: 4mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .planner-page .meal-card-image {
    display: none;
  }

  .planner-page .meal {
    font-size: 10.5pt;
  }

  .planner-page .planner-day ul {
    gap: 1mm;
    margin: 0;
    font-size: 8.5pt;
    line-height: 1.2;
  }
}

/* handla-site.css */
.handla-home {
  background: #fbfcfb;
  color: #142017;
}

.handla-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 12px;
}

.handla-wordmark {
  color: #142017;
  font-size: 1.02rem;
  font-weight: 900;
  text-decoration: none;
}

.handla-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.handla-nav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #566158;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.handla-nav a:hover,
.handla-nav a:focus-visible {
  background: #eef5f1;
  color: #142017;
  outline: none;
}

.handla-hero,
.handla-family,
.handla-steps,
.handla-key-callout,
.handla-web-app-callout,
.handla-account-callout {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
}

.handla-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(34px, 8vw, 110px);
  min-height: 490px;
  padding: clamp(58px, 9vw, 104px) 0 52px;
}

.handla-hero-copy h1 {
  max-width: 680px;
  margin: 0 0 24px;
  color: #142017;
  font-size: clamp(3.5rem, 8vw, 6.7rem);
  line-height: 0.96;
}

.handla-hero-copy > p:not(.handla-small-note) {
  max-width: 650px;
  margin: 0;
  color: #4f5751;
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  line-height: 1.55;
}

.handla-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.handla-actions .button,
.handla-key-copy .button {
  border-radius: 8px;
}

.handla-small-note {
  max-width: 420px;
  margin: 14px 0 0;
  color: #6a716b;
  font-size: 0.88rem;
  line-height: 1.4;
}

.handla-family {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 9vw, 120px);
  margin-top: 46px;
  padding: 20px 0 78px;
}

.handla-list-tiles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 24%;
  box-shadow: 0 16px 34px rgba(32, 55, 38, 0.15);
}

.handla-list-tiles span:first-child img {
  background: #f6c45f;
}

.handla-kicker {
  margin: 0 0 8px;
  color: #9a721d;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.handla-family h2,
.handla-steps h2,
.handla-key-callout h2 {
  margin: 0 0 18px;
  color: #142017;
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  line-height: 1;
}

.handla-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #3f4b43;
  list-style: none;
}

.handla-check-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 740;
}

.handla-check-list li::before {
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f6f4e;
  box-shadow: 0 0 0 4px rgba(47, 111, 78, 0.12);
  content: "";
}

.handla-steps {
  padding: 10px 0 92px;
}

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

.handla-step-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #fff;
}

.handla-step-grid article span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #2f6f4e;
  color: #fff;
  font-weight: 900;
}

.handla-step-grid h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.handla-step-grid p {
  margin: 0;
  color: #536159;
}

.handla-key-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  align-items: center;
  gap: clamp(36px, 8vw, 100px);
  padding: 34px 0 44px;
}

.handla-web-app-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 96px;
  margin-bottom: 100px;
  padding: 28px;
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #f7f7f7;
}

.handla-web-app-callout h2 {
  margin: 0 0 10px;
  color: #142017;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.handla-web-app-callout p:not(.handla-kicker) {
  max-width: 720px;
  margin: 0;
  color: #536159;
}

.handla-web-app-callout .handla-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.handla-online-button {
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #111;
}

.handla-key-page,
.handla-swish-panel {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
}

.handla-key-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: clamp(36px, 9vw, 110px);
  min-height: calc(100vh - 90px);
  padding: clamp(52px, 8vw, 96px) 0 76px;
}

.handla-key-page-copy h1 {
  margin: 0 0 22px;
  color: #142017;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
}

.handla-key-page-copy > p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #4f5751;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.handla-swish-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  justify-items: stretch;
  max-width: 760px;
  margin-bottom: 90px;
  padding: 28px;
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #fff;
}

.handla-account-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #f4faf6;
}

.handla-account-callout h2 {
  margin: 0 0 10px;
  color: #142017;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.handla-account-callout p:not(.handla-kicker) {
  max-width: 720px;
  margin: 0;
  color: #536159;
}

.handla-account-callout .handla-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.handla-swish-panel h2 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.handla-swish-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.handla-swish-text {
  min-width: 0;
}

.handla-swish-logo {
  width: 86px;
  height: auto;
  margin: 2px 0 0;
  border-radius: 0;
}

.handla-swish-logo-mobile {
  display: none;
}

.handla-swish-panel p:not(.handla-kicker) {
  max-width: 720px;
  margin: 0;
  color: #536159;
}

.handla-swish-form {
  display: grid;
  gap: 0;
  padding: 18px;
  border: 1px solid rgba(47, 111, 78, 0.12);
  border-radius: 8px;
  background: #fff;
}

.handla-swish-form label {
  color: #5f6368;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 6px;
  margin-left: 14px;
}

.handla-swish-form input {
  min-height: 48px;
  width: calc(100% - 27px);
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(47, 111, 78, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #1f2823;
  font: inherit;
  margin-bottom: 18px;
  margin-left: 13px;
}

.handla-swish-form .button {
  justify-self: start;
  margin-left: 14px;
  margin-top: 6px;
}

.handla-swish-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
}

.handla-swish-price span {
  color: #536159;
  font-weight: 800;
}

.handla-swish-product-name {
  color: #333;
  font-size: 1.42rem;
}

.handla-swish-price strong {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #142017;
  font-size: 1.35rem;
}

.handla-swish-price-amount {
  display: grid;
  justify-items: end;
  line-height: 1.15;
}

.handla-swish-vat {
  margin-top: 3px;
  color: #9aa0a6;
  font-size: 0.78rem;
  font-weight: 500;
}

.handla-swish-price del {
  color: #7a837d;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration-thickness: 2px;
}

.handla-swish-campaign {
  margin: 0;
  color: #2f6f4e !important;
  font-size: 0.92rem;
  font-weight: 850;
}

.handla-swish-status {
  min-height: 1.4em;
  color: #7a372b !important;
  font-size: 0.92rem;
  font-weight: 750;
}

.handla-key-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 32, 23, 0.42);
  opacity: 0;
}

.handla-key-modal[hidden] {
  display: none;
}

.handla-key-modal.is-visible {
  animation: handla-key-modal-reveal 240ms ease forwards;
}

.handla-key-modal .handla-swish-result {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.handla-key-modal.is-visible .handla-swish-result {
  animation: handla-swish-result-reveal 520ms cubic-bezier(0.2, 0.85, 0.24, 1) forwards;
}

@keyframes handla-key-modal-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes handla-swish-result-reveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .handla-key-modal.is-visible,
  .handla-key-modal.is-visible .handla-swish-result {
    animation-duration: 1ms;
  }
}

.handla-swish-result {
  position: relative;
  display: grid;
  width: min(100%, 440px);
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(154, 114, 29, 0.22);
  border-radius: 8px;
  background: #fff7e7;
  box-shadow: 0 24px 70px rgba(20, 32, 23, 0.24);
}

.handla-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(154, 114, 29, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #3b2c12;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.handla-modal-close:focus-visible,
.handla-modal-close:hover {
  outline: 2px solid rgba(154, 114, 29, 0.32);
  outline-offset: 2px;
}

.handla-swish-result h3 {
  margin: 0;
  color: #142017;
  font-size: 1.35rem;
}

.handla-swish-result output {
  display: block;
  padding: 14px;
  border: 1px solid rgba(154, 114, 29, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #3b2c12;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
}

.handla-purchased-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1060px, calc(100% - 36px));
  margin: -40px auto 90px;
  padding: 24px;
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 8px;
  background: #f4faf6;
}

.handla-purchased-next[hidden] {
  display: none;
}

.handla-purchased-next h2 {
  margin: 0 0 10px;
  color: #142017;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.handla-purchased-next p:not(.handla-kicker) {
  max-width: 650px;
  margin: 0;
  color: #536159;
  font-size: 1rem;
}

.handla-swish-email-note {
  margin: 0;
  color: #536159 !important;
  font-size: 0.94rem;
  font-weight: 750;
}

.handla-key-copy p:not(.handla-kicker) {
  max-width: 620px;
  margin: 0 0 24px;
  color: #536159;
  font-size: 1.06rem;
}

.handla-key-product,
.handla-key-product-link {
  position: relative;
  margin: 0;
}

.handla-key-product img,
.handla-key-product-link img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 24px 44px rgba(92, 73, 38, 0.15));
}

.handla-key-product-link {
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.handla-key-product-link:hover,
.handla-key-product-link:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.handla-key-product-link:focus-visible img {
  outline: 3px solid rgba(47, 111, 78, 0.28);
  outline-offset: 5px;
}

.handla-key-card {
  position: relative;
  display: grid;
  min-height: 430px;
  justify-items: center;
  align-content: start;
  padding: 34px 26px 28px;
  border: 1px solid rgba(154, 114, 29, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.42)),
    #f8f0df;
  box-shadow: 0 22px 54px rgba(93, 74, 38, 0.16);
  color: #3b2c12;
  text-align: center;
  text-decoration: none;
}

.handla-key-card::before {
  position: absolute;
  top: 14px;
  width: 48px;
  height: 16px;
  border-radius: 0 0 999px 999px;
  background: #fbfcfb;
  content: "";
}

.handla-key-price {
  justify-self: end;
  padding: 8px 11px;
  border-radius: 8px;
  background: #f5d68f;
  font-size: 1.12rem;
  font-weight: 950;
}

.handla-key-card strong {
  margin: 28px 0 4px;
  font-size: 2.45rem;
  line-height: 1;
}

.handla-key-card > span:not(.handla-key-price) {
  color: #73591f;
  font-weight: 850;
}

.handla-key-card i {
  position: relative;
  width: 86px;
  height: 150px;
  margin: 42px 0 36px;
  border: 10px solid #c6922c;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.handla-key-card i::before {
  position: absolute;
  right: -20px;
  bottom: -78px;
  width: 26px;
  height: 92px;
  border-radius: 10px;
  background: #c6922c;
  content: "";
}

.handla-key-card i::after {
  position: absolute;
  right: -52px;
  bottom: -78px;
  width: 48px;
  height: 22px;
  border-radius: 0 8px 8px 0;
  background: #c6922c;
  box-shadow: 0 30px 0 #c6922c;
  content: "";
}

.handla-key-card small {
  align-self: end;
  width: 100%;
  padding: 14px 10px;
  border: 1px solid rgba(154, 114, 29, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: #8b742f;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

@media (max-width: 860px) {
  .handla-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .handla-hero,
  .handla-family,
  .handla-key-callout,
  .handla-web-app-callout,
  .handla-account-callout {
    grid-template-columns: 1fr;
  }

  .handla-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .handla-family {
    margin-top: 0;
    padding-bottom: 62px;
  }

  .handla-list-tiles {
    display: none;
  }

  .handla-key-callout {
    justify-items: center;
  }

  .handla-key-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .handla-key-copy {
    justify-self: stretch;
  }

  .handla-web-app-callout .handla-actions {
    justify-content: flex-start;
  }

  .handla-account-callout .handla-actions {
    justify-content: flex-start;
  }

  .handla-swish-panel {
    grid-template-columns: 1fr;
  }

  .handla-purchased-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .handla-swish-copy {
    display: block;
  }

  .handla-swish-logo-desktop {
    display: none;
  }

  .handla-swish-logo-mobile {
    display: block;
    position: absolute;
    top: -18px;
    right: 18px;
    width: 112px;
    padding: 10px;
    border: 1px solid rgba(47, 111, 78, 0.14);
    border-radius: 8px;
    background: #fff;
  }
}

@media (max-width: 620px) {
  .handla-nav {
    gap: 2px;
    width: 100%;
  }

  .handla-nav a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.84rem;
  }

  .handla-hero-copy h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .handla-step-grid {
    grid-template-columns: 1fr;
  }

  .handla-key-card {
    width: min(100%, 310px);
  }
}

.handla-guide-page main {
  padding-bottom: 70px;
}

.handla-guide-hero,
.handla-guide-quick,
.handla-guide-section {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
}

.handla-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(34px, 8vw, 100px);
  padding: clamp(58px, 9vw, 106px) 0 42px;
}

.handla-guide-hero-copy h1 {
  max-width: 860px;
  margin: 0 0 22px;
  color: #142017;
  font-size: clamp(2.85rem, 7vw, 5.9rem);
  line-height: 0.97;
}

.handla-guide-hero-copy > p:not(.handla-kicker) {
  max-width: 690px;
  margin: 0;
  color: #4f5751;
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  line-height: 1.55;
}

.handla-guide-icon-stack {
  display: grid;
  justify-items: center;
  margin: 0;
  gap: 18px;
  color: #68736b;
  font-size: 0.95rem;
  font-weight: 750;
  text-align: center;
}

.handla-guide-icon-stack img {
  width: min(100%, 210px);
  border: 8px solid #fff;
  border-radius: 24%;
  box-shadow: 0 22px 48px rgba(32, 55, 38, 0.16);
}

.handla-guide-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 0 48px;
}

.handla-guide-quick article,
.handla-guide-card {
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #fff;
}

.handla-guide-quick article {
  min-height: 158px;
  padding: 20px;
}

.handla-guide-quick span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #2f6f4e;
  color: #fff;
  font-weight: 900;
}

.handla-guide-quick strong {
  display: block;
  margin-bottom: 7px;
  color: #142017;
  font-size: 1.12rem;
}

.handla-guide-quick p,
.handla-guide-card p,
.handla-guide-section > div:first-child p {
  margin: 0;
  color: #536159;
}

.handla-guide-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  padding: clamp(34px, 7vw, 72px) 0;
  border-top: 1px solid rgba(47, 111, 78, 0.14);
}

.handla-guide-section h2 {
  margin: 0 0 16px;
  color: #142017;
  font-size: clamp(1.85rem, 4.8vw, 3.45rem);
  line-height: 1.02;
}

.handla-guide-section > div:first-child p {
  max-width: 420px;
  font-size: 1.06rem;
  line-height: 1.58;
}

.handla-guide-card {
  padding: clamp(20px, 4vw, 32px);
}

.handla-guide-card h3 {
  margin: 0 0 16px;
  color: #142017;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.handla-guide-card ol,
.handla-guide-card ul:not(.handla-check-list) {
  display: block;
  margin: 0;
  padding-left: 1.35rem;
  color: #3f4b43;
}

.handla-guide-card li {
  margin-bottom: 12px;
}

.handla-guide-card li:last-child {
  margin-bottom: 0;
}

.handla-guide-card .handla-actions {
  margin-top: 22px;
}

.handla-guide-note {
  margin-top: 18px !important;
  padding: 14px 16px;
  border-left: 4px solid #2f6f4e;
  background: #eef5f1;
  color: #245b3f !important;
  font-weight: 800;
}

.handla-guide-done {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.handla-guide-done img {
  width: 92px;
  border-radius: 24%;
}

@media (max-width: 860px) {
  .handla-guide-hero,
  .handla-guide-section {
    grid-template-columns: 1fr;
  }

  .handla-guide-hero {
    padding-top: 42px;
  }

  .handla-guide-icon-stack {
    justify-items: start;
    text-align: left;
  }

  .handla-guide-quick {
    grid-template-columns: 1fr;
  }

  .handla-guide-section > div:first-child p {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  .handla-guide-hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 4.25rem);
  }

  .handla-guide-done {
    grid-template-columns: 1fr;
  }
}

.handla-terms-page main {
  padding-bottom: 78px;
}

.handla-terms-hero,
.handla-terms-layout {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
}

.handla-terms-hero {
  padding: clamp(54px, 9vw, 102px) 0 clamp(30px, 5vw, 56px);
}

.handla-terms-hero h1 {
  max-width: 860px;
  margin: 0 0 22px;
  color: #142017;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.97;
}

.handla-terms-hero > p:not(.handla-kicker) {
  max-width: 690px;
  margin: 0;
  color: #4f5751;
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  line-height: 1.55;
}

.handla-terms-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
}

.handla-terms-summary {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #fff;
}

.handla-terms-summary h2 {
  margin: 0;
  color: #142017;
  font-size: 1.45rem;
  line-height: 1.1;
}

.handla-terms-summary .button {
  justify-self: start;
  margin-top: 4px;
}

.handla-terms-content {
  display: grid;
  gap: 14px;
}

.handla-terms-content article {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 8px;
  background: #fff;
}

.handla-terms-content h2 {
  margin: 0 0 12px;
  color: #142017;
  font-size: clamp(1.28rem, 2.5vw, 1.78rem);
  line-height: 1.12;
}

.handla-terms-content p {
  max-width: 740px;
  margin: 0;
  color: #536159;
  line-height: 1.68;
}

.handla-terms-content p + p {
  margin-top: 12px;
}

.handla-terms-content a {
  color: #142017;
  font-weight: 850;
  text-decoration-color: rgba(47, 111, 78, 0.35);
  text-underline-offset: 3px;
}

.handla-terms-updated {
  padding: 4px 2px 0;
  color: #6a716b !important;
  font-size: 0.94rem;
  font-weight: 750;
}

@media (max-width: 860px) {
  .handla-terms-layout {
    grid-template-columns: 1fr;
  }

  .handla-terms-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .handla-terms-hero h1 {
    font-size: clamp(2.45rem, 12vw, 4.15rem);
  }
}
