:root {
  --recipe-ink: #143b3a;
  --recipe-deep: #004d46;
  --recipe-green: #12843d;
  --recipe-mint: #e4f4e9;
  --recipe-muted: #607071;
  --recipe-line: #e6eeeb;
  --recipe-surface: #fff;
  --recipe-shadow: 0 8px 26px rgba(13, 61, 55, .08);
}

.renal-recipes-page {
  background: #fbfcfb;
  color: var(--recipe-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.recipes-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 205px;
  max-width: 1440px;
  margin: 14px auto 10px;
  padding: 28px clamp(22px, 4vw, 48px);
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(248, 250, 245, .94) 0%, rgba(248, 250, 245, .86) 42%, rgba(248, 250, 245, .22) 100%),
    url("/receitas-renais/images/receitas-renais.webp") center 52% / cover no-repeat;
}

.recipes-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.recipes-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #1b9b42;
  color: #fff;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recipes-hero h1 {
  margin: 0 0 4px;
  color: var(--recipe-deep);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.recipes-hero p {
  max-width: 510px;
  margin: 0 0 13px;
  color: #314d4b;
  font-size: .98rem;
  line-height: 1.45;
}

.recipe-search {
  display: flex;
  align-items: center;
  max-width: 590px;
  min-height: 43px;
  padding: 4px 5px 4px 16px;
  border: 1px solid rgba(20, 59, 58, .08);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(28, 63, 54, .08);
}

.recipe-search > i {
  flex: 0 0 auto;
  margin-right: 12px;
  color: #245c57;
}

.recipe-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--recipe-ink);
  font: inherit;
  font-size: .84rem;
}

.recipe-search input::placeholder { color: #889392; }

.recipe-search button,
.apply-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--recipe-deep);
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.recipe-search button { min-width: 92px; padding: 9px 18px; }
.recipe-search button:hover,
.apply-filters:hover { background: #087166; transform: translateY(-1px); }

.recipes-hero-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.recipes-hero-art > * { display: none; }

.hero-plate {
  position: absolute;
  top: 50%;
  right: 13%;
  display: grid;
  width: clamp(155px, 19vw, 255px);
  aspect-ratio: 1;
  place-items: center;
  transform: translateY(-50%) rotate(-9deg);
  border: 12px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: radial-gradient(circle, #f3d9a6 0 25%, #f8f4e9 26% 62%, #fff 63%);
  box-shadow: 0 17px 32px rgba(42, 75, 49, .19);
}

.hero-plate i {
  display: grid;
  width: 66%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px dashed rgba(0, 77, 70, .2);
  border-radius: 50%;
  color: #368848;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-plate span {
  position: absolute;
  top: 25%;
  right: 26%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d84c32;
  box-shadow: -38px 48px #e6aa36, 36px 68px #76a653, 24px -35px #d84c32;
}

.hero-leaf {
  position: absolute;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #7aaf4b, #277447);
  opacity: .8;
}

.hero-leaf-one { top: -25px; right: 2%; width: 110px; height: 54px; transform: rotate(30deg); }
.hero-leaf-two { bottom: -30px; right: 4%; width: 140px; height: 70px; transform: rotate(-15deg); }
.hero-tomato { position: absolute; right: 4%; bottom: 20%; width: 32px; height: 32px; border-radius: 50%; background: #d84c32; box-shadow: -45px 28px 0 -7px #e9b23c; }
.hero-herb { position: absolute; top: 19%; right: 43%; color: #438951; font-size: 2rem; transform: rotate(-25deg); }

.library-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 18px 30px;
}

.recipe-filters {
  align-self: start;
  padding: 14px 13px 13px;
  border: 1px solid var(--recipe-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(13, 61, 55, .045);
}

.filters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.filters-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--recipe-deep);
  font-size: .88rem;
  font-weight: 800;
}

.filters-heading h2 i { color: #138b78; }

.clear-filters {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #16834a;
  font: inherit;
  font-size: .7rem;
  white-space: nowrap;
  cursor: pointer;
}

.clear-filters:hover { text-decoration: underline; }

.filter-group {
  min-width: 0;
  margin: 0;
  padding: 10px 0 11px;
  border: 0;
  border-top: 1px solid #eef2f0;
}

.filter-group legend {
  width: 100%;
  margin-bottom: 7px;
  color: #253f3c;
  font-size: .75rem;
  font-weight: 800;
}

.filter-group legend i {
  margin-left: 3px;
  color: #8b9b98;
  font-size: .7rem;
}

.filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.filter-options-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.filter-options label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  color: #445653;
  font-size: .67rem;
  line-height: 1.2;
  cursor: pointer;
}

.filter-options label span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-options input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #087968;
}

.filter-options input:disabled { cursor: not-allowed; }
.filter-options label:has(input:disabled) { color: #99a4a2; cursor: not-allowed; }
.filter-note { display: block; margin-top: 6px; color: #83918f; font-size: .63rem; line-height: 1.35; }

.apply-filters {
  width: 100%;
  min-height: 38px;
  margin-top: 5px;
  font-size: .75rem;
}

.mobile-filter-bar { display: none; }
.recipes-content { min-width: 0; }
.section-heading { margin: 5px 0 10px; }
.section-heading h2,
.recipes-list-heading h2 {
  margin: 0;
  color: #1c3735;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.section-heading p,
.recipes-list-heading p {
  margin: 3px 0 0;
  color: #647370;
  font-size: .77rem;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 9px;
}

.category-tile {
  overflow: hidden;
  padding: 0 0 8px;
  border: 1px solid #e8eeeb;
  border-radius: 11px;
  background: #fff;
  color: #1e3835;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.035);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.category-tile:hover,
.category-tile.is-active {
  transform: translateY(-2px);
  border-color: #69b487;
  box-shadow: 0 6px 15px rgba(20, 104, 67, .12);
}

.category-tile strong {
  display: block;
  padding: 6px 4px 0;
  font-size: .7rem;
  line-height: 1.2;
}

.category-art {
  position: relative;
  display: grid;
  height: 78px;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.category-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-art:has(img) .category-emoji { display: none; }

.category-emoji {
  font-size: 2.35rem;
  line-height: 1;
  text-shadow: none;
}

.pasta-art { background: linear-gradient(135deg, #edb15c, #c45d34); }
.rice-art { background: linear-gradient(135deg, #e6d7b5, #9d8c65); }
.soup-art { background: linear-gradient(135deg, #f2c568, #dd7734); }
.protein-art { background: linear-gradient(135deg, #67a978, #d99557); }
.salad-art { background: linear-gradient(135deg, #9cc86f, #438b52); }
.dessert-art { background: linear-gradient(135deg, #d49f83, #8b5a48); }

.occasion-section {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  margin: 13px 0 14px;
  padding: 9px 11px 9px 14px;
  border-radius: 12px;
  background: linear-gradient(100deg, #e5f4e8, #d8f0df);
}

.occasion-copy {
  display: flex;
  flex: 1 1 330px;
  align-items: center;
  gap: 12px;
  min-width: 205px;
}

.occasion-icon { color: #07695e; font-size: 1.55rem; }
.occasion-copy h2 { margin: 0; color: #164743; font-size: .83rem; font-weight: 800; }
.occasion-copy p { margin: 2px 0 0; color: #45635e; font-size: .67rem; line-height: 1.3; }

.occasion-list {
  display: flex;
  flex: 0 1 auto;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.occasion-list::-webkit-scrollbar { display: none; }

.occasion-chip {
  position: relative;
  display: flex;
  flex: 0 0 94px;
  height: 44px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0 4px 3px;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 9px;
  color: #fff;
  font: inherit;
  font-size: .64rem;
  font-weight: 800;
  cursor: pointer;
  text-shadow: 0 1px 5px rgba(0,0,0,.62);
}

.occasion-chip i { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 1.25rem; opacity: .85; }
.occasion-christmas { background: linear-gradient(140deg, #1d754c, #ae342d); }
.occasion-easter { background: linear-gradient(140deg, #73a4cd, #e9c678); }
.occasion-june { background: linear-gradient(140deg, #d18a3d, #387b4c); }
.occasion-chip.is-active { outline: 3px solid #11775c; outline-offset: 1px; }

.occasion-next {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0,77,70,.15);
  border-radius: 50%;
  background: #fff;
  color: #075d54;
  cursor: pointer;
}

.recipes-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 9px;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #e5ebe8;
  border-radius: 999px;
  background: #fff;
  color: #5b6d69;
  font-size: .68rem;
  white-space: nowrap;
}

.sort-control select {
  max-width: 125px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273f3b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recipe-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7ecea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(18, 54, 46, .06);
  transition: transform .2s, box-shadow .2s;
}

.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--recipe-shadow); }

.recipe-card-art {
  position: relative;
  display: grid;
  height: 104px;
  place-items: center;
  overflow: hidden;
  color: rgba(255,255,255,.95);
}

.recipe-card-art::before,
.recipe-card-art::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.recipe-card-art::before { width: 125px; height: 125px; border: 8px solid rgba(255,255,255,.55); background: rgba(255,255,255,.17); }
.recipe-card-art::after { top: 14px; right: 18%; width: 17px; height: 17px; background: #e9b749; box-shadow: 25px 20px #d4563a, -37px 39px #73a857, 9px 51px #f1e2bb; }
.recipe-card-art i { z-index: 1; font-size: 2.55rem; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); }
.recipe-card-art.pasta { background: linear-gradient(135deg, #e3a442, #ba5637); }
.recipe-card-art.soup { background: linear-gradient(135deg, #edc266, #c97c37); }
.recipe-card-art.fish { background: linear-gradient(135deg, #70a989, #3c796c); }
.recipe-card-art.cake { background: linear-gradient(135deg, #d1a185, #8c5947); }
.recipe-card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-card-art:has(img)::before,
.recipe-card-art:has(img)::after { display: none; }
.recipe-card-art:has(img) > i { display: none; }

.recipe-badge {
  position: absolute;
  z-index: 2;
  bottom: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 50px);
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #35524b;
  font-size: .58rem;
  font-weight: 750;
  line-height: 1.15;
}

.recipe-badge i { color: #248a52; font-size: .62rem; }

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #455955;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,.12);
}

.favorite-button.is-favorite { color: #d84c5b; }
.favorite-button:focus-visible,
.recipe-card button:focus-visible,
.category-tile:focus-visible,
.occasion-chip:focus-visible { outline: 3px solid #11836d; outline-offset: 2px; }

.recipe-card-body { padding: 9px 10px 10px; }
.recipe-card h3 { margin: 0 0 4px; color: #1e3835; font-size: .82rem; font-weight: 800; line-height: 1.25; }
.recipe-card-description { margin: 0 0 7px; color: #60716d; font-size: .67rem; line-height: 1.4; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 4px 9px; color: #62726e; font-size: .62rem; }
.recipe-meta span { display: inline-flex; align-items: center; gap: 4px; }
.recipe-meta i { color: #19824b; }
.recipe-feature-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.recipe-feature-list span { padding: 3px 6px; border-radius: 999px; background: #edf6ef; color: #31734a; font-size: .59rem; font-weight: 700; }

.recipe-open {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #08735e;
  font: inherit;
  font-size: .71rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.recipe-open:hover { color: #1b9b42; }
.recipe-open i { margin-left: 4px; }

.nutrition-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(100deg, #004d46, #036356);
  color: #fff;
}

.callout-light { flex: 0 0 auto; color: #ffce45; font-size: 1.8rem; }
.nutrition-callout h2 { margin: 0 0 2px; font-size: .82rem; font-weight: 800; }
.nutrition-callout p { margin: 0; color: rgba(255,255,255,.86); font-size: .68rem; line-height: 1.4; }
.nutrition-callout a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; margin-left: auto; padding: 7px 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #fff; font-size: .68rem; font-weight: 750; text-decoration: none; }
.nutrition-callout a:hover { background: rgba(255,255,255,.12); }

.empty-results {
  grid-column: 1 / -1;
  padding: 44px 20px;
  border: 1px dashed #cbd9d4;
  border-radius: 12px;
  background: #fff;
  color: #60716d;
  text-align: center;
}

.empty-results i { display: block; margin-bottom: 10px; color: #72a58e; font-size: 1.8rem; }
.empty-results h3 { margin: 0 0 5px; color: #294641; font-size: 1rem; }
.empty-results p { margin: 0; font-size: .83rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .recipes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .occasion-copy { flex-basis: 240px; }
}

@media (max-width: 760px) {
  .recipes-hero { min-height: 230px; margin: 8px 10px 12px; padding: 23px 18px; }
  .recipes-hero-copy { max-width: 100%; }
  .recipes-hero p { max-width: 430px; font-size: .9rem; }
  .recipes-hero-art { right: -24%; width: 60%; opacity: .38; }
  .hero-plate { right: 13%; }
  .recipe-search { max-width: 520px; }
  .library-layout { display: block; padding: 0 12px 24px; }
  .mobile-filter-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }
  .mobile-filter-bar button { padding: 8px 12px; border: 1px solid #dbe8e2; border-radius: 9px; background: #fff; color: #125d51; font: inherit; font-size: .82rem; font-weight: 750; }
  .mobile-filter-bar span { color: #60716d; font-size: .78rem; }
  .recipe-filters { display: none; margin-bottom: 15px; }
  .recipe-filters.is-open { display: block; }
  .occasion-section { flex-wrap: wrap; gap: 8px; }
  .occasion-copy { flex: 1 1 100%; min-width: 0; }
  .occasion-list { flex: 1 1 auto; }
  .occasion-chip { flex-basis: 86px; }
  .occasion-next { margin-left: auto; }
}

@media (max-width: 480px) {
  .recipes-hero { min-height: 246px; }
  .recipes-hero h1 { max-width: 300px; font-size: 1.62rem; }
  .recipes-hero-art { right: -40%; width: 76%; opacity: .25; }
  .recipe-search { min-height: 42px; padding-left: 12px; }
  .recipe-search > i { margin-right: 8px; }
  .recipe-search input { font-size: .73rem; }
  .recipe-search button { min-width: 70px; padding: 8px 12px; font-size: .74rem; }
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-art { height: 67px; }
  .category-tile strong { font-size: .68rem; }
  .recipes-list-heading { align-items: flex-start; flex-direction: column; }
  .sort-control { align-self: flex-end; }
  .recipes-grid { gap: 9px; }
  .recipe-card-art { height: 86px; }
  .recipe-card-body { padding: 8px; }
  .recipe-card h3 { font-size: .76rem; }
  .recipe-badge { font-size: .53rem; }
  .nutrition-callout { align-items: flex-start; padding: 12px; }
  .callout-light { font-size: 1.4rem; }
  .nutrition-callout a { padding: 6px 8px; font-size: .61rem; }
  .nutrition-callout p { max-width: 230px; }
}
