.renal-recipe-detail-page {
  --detail-ink: #143b3a;
  --detail-deep: #064e4b;
  --detail-teal: #008b79;
  --detail-green: #258f48;
  --detail-line: #e4ece9;
  margin: 0;
  background: #fbfcfb;
  color: var(--detail-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.recipe-site-header {
  position: relative;
  z-index: 20;
  background: #064e4b;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 40, 37, .16);
}

.recipe-header-inner {
  display: flex;
  width: min(1200px, calc(100% - 40px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.recipe-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.recipe-brand img {
  display: block;
  width: 174px;
  height: auto;
  filter: brightness(0) invert(1);
}

.recipe-site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.recipe-site-nav a,
.recipe-header-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #f2fbf9;
  font: inherit;
  font-size: .83rem;
  text-decoration: none;
  white-space: nowrap;
}

.recipe-site-nav a { min-height: 58px; }
.recipe-site-nav a:hover,
.recipe-site-nav a[aria-current="page"] { color: #fff; }
.recipe-site-nav a[aria-current="page"] { box-shadow: inset 0 -3px #8bd1bb; }

.recipe-header-search {
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  font-size: .95rem;
  text-decoration: none;
}

.recipe-header-search:hover { background: rgba(255,255,255,.12); }
.recipe-nav-toggle { display: none; }

.recipe-detail-main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 32px;
}

.recipe-detail-hero {
  position: relative;
  display: flex;
  min-height: 255px;
  align-items: center;
  overflow: hidden;
  margin: 0 -20px;
  padding: 22px 32px;
  background:
    radial-gradient(ellipse at 74% 40%, rgba(251, 197, 100, .25), transparent 35%),
    linear-gradient(105deg, #fff 0%, #fbf8ef 43%, #e8f2e6 100%);
}

.recipe-detail-copy {
  position: relative;
  z-index: 2;
  width: min(53%, 580px);
}

.recipe-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #55706d;
  font-size: .76rem;
}

.recipe-breadcrumb a { color: #176f65; text-decoration: none; }
.recipe-breadcrumb a:hover { text-decoration: underline; }
.recipe-breadcrumb i { color: #93a6a2; font-size: .65rem; }

.recipe-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #d9f0e2;
  color: #176d53;
  font-size: .72rem;
  font-weight: 800;
}

.recipe-detail-copy h1 {
  max-width: 500px;
  margin: 0 0 7px;
  color: #064e4b;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.recipe-detail-description {
  max-width: 490px;
  margin: 0;
  color: #425955;
  font-size: .96rem;
  line-height: 1.5;
}

.recipe-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 21px;
}

.recipe-fact {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #087c6e;
}

.recipe-fact > i { font-size: 1.35rem; }
.recipe-fact strong,
.recipe-fact small { display: block; }
.recipe-fact strong { color: #18514c; font-size: .82rem; }
.recipe-fact small { margin-top: 2px; color: #61736f; font-size: .68rem; }

.recipe-hero-art {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 52%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(ellipse at 83% 18%, rgba(252, 205, 97, .68) 0 3%, transparent 3.5%),
    radial-gradient(ellipse at 17% 83%, rgba(70, 135, 80, .36) 0 10%, transparent 10.5%),
    radial-gradient(ellipse at 75% 90%, rgba(227, 120, 55, .28) 0 12%, transparent 12.5%);
}

.recipe-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-art-soup { background-color: #e8f1df; }
.recipe-art-fish { background-color: #e8f2ed; }
.recipe-art-cake { background-color: #f5e9dd; }

.recipe-hero-plate {
  position: relative;
  display: grid;
  width: clamp(190px, 27vw, 310px);
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(-8deg);
  border: 13px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle, #f8edcf 0 56%, #fefdf9 57% 100%);
  box-shadow: 0 18px 35px rgba(43, 71, 48, .2);
}

.recipe-hero-plate::before {
  position: absolute;
  inset: 14%;
  border: 2px dashed rgba(9, 94, 75, .16);
  border-radius: 50%;
  content: "";
}

.recipe-hero-food {
  z-index: 1;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
  filter: drop-shadow(0 6px 6px rgba(78, 59, 25, .16));
}

.recipe-attributes-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 11px 15px;
  border: 1px solid #e1eee6;
  border-radius: 12px;
  background: #eff8f1;
}

.recipe-attributes-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 5px;
  color: #155249;
  font-size: .79rem;
  font-weight: 800;
}

.recipe-attribute-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(19, 112, 84, .09);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #42645b;
  font-size: .69rem;
  font-weight: 650;
}

.recipe-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(270px, .95fr);
  align-items: start;
  gap: 16px;
}

.recipe-detail-primary,
.recipe-detail-aside { display: grid; gap: 14px; }

.recipe-panel {
  min-width: 0;
  padding: 17px 19px;
  border: 1px solid var(--detail-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(21, 64, 54, .035);
}

.recipe-panel-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 11px;
  color: #07534e;
}

.recipe-panel-heading > i { width: 25px; color: #087c6e; font-size: 1.35rem; text-align: center; }
.recipe-panel-heading h2 { margin: 0; font-size: 1.14rem; font-weight: 800; }

.servings-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #42625c;
  font-size: .73rem;
  font-weight: 700;
}

.servings-control select {
  max-width: 120px;
  padding: 5px 20px 5px 8px;
  border: 0;
  background: transparent;
  color: #164a44;
  font: inherit;
}

.ingredient-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-row {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  border-bottom: 1px solid #edf1ef;
  color: #334641;
  font-size: .79rem;
}

.ingredient-row:last-child { border-bottom: 0; }
.ingredient-row input { width: 15px; height: 15px; margin: 0; accent-color: #078570; }
.ingredient-row > span:nth-of-type(1) { min-width: 0; }
.ingredient-name { display: block; }
a.ingredient-name {
  color: #176f65;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.ingredient-name:hover { color: #07534e; }
a.ingredient-name:focus-visible { outline: 2px solid #176f65; outline-offset: 2px; }
.ingredient-row > span:last-child { color: #384b46; text-align: right; white-space: nowrap; }
.ingredient-row:has(input:checked) .ingredient-name { color: #82928d; text-decoration: line-through; }

.recipe-steps { display: grid; gap: 0; }

.recipe-step {
  display: grid;
  grid-template-columns: 27px 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eeeb;
}

.recipe-step:last-child { padding-bottom: 0; border-bottom: 0; }
.recipe-step-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #07534e;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}

.recipe-step-art {
  display: grid;
  width: 70px;
  height: 54px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, #f4e3bf, #dba76b);
  color: #fff;
  font-size: 1.45rem;
}

.recipe-step:nth-child(2) .recipe-step-art { background: linear-gradient(140deg, #a2c980, #4d996a); }
.recipe-step:nth-child(3) .recipe-step-art { background: linear-gradient(140deg, #e8bc66, #cb713c); }
.recipe-step:nth-child(4) .recipe-step-art { background: linear-gradient(140deg, #86b5a2, #357a68); }
.recipe-step-copy h3 { margin: 0 0 3px; color: #203d39; font-size: .87rem; }
.recipe-step-copy p { margin: 0; color: #4b5e59; font-size: .76rem; line-height: 1.48; }

.recipe-info-panel {
  overflow: hidden;
  padding: 0;
  border-radius: 13px;
}

.recipe-info-header {
  padding: 13px 15px 11px;
  background: #07534e;
  color: #fff;
}

.recipe-info-header h2 { margin: 0; font-size: 1rem; }
.recipe-info-header p { margin: 3px 0 0; color: rgba(255,255,255,.82); font-size: .72rem; }
.recipe-info-body { padding: 13px; }

.recipe-nutrition-complete,
.recipe-ingredient-nutrition { margin-top: 14px; }

.nutrition-serving-caption {
  margin: -2px 0 12px;
  color: #647671;
  font-size: .75rem;
  line-height: 1.5;
}

.nutrition-basis-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid #dce8e3;
  border-radius: 999px;
  background: #f5f9f7;
}

.nutrition-basis-toggle button {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #42625c;
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}

.nutrition-basis-toggle button[aria-pressed="true"] {
  background: #07534e;
  color: #fff;
}

.nutrition-basis-toggle button:focus-visible {
  outline: 3px solid #f2bb4d;
  outline-offset: 2px;
}

.nutrition-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.nutrition-card {
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 11px;
  border: 1px solid #e1ece7;
  border-radius: 10px;
  background: #f8fbf9;
}

.nutrition-card > span {
  color: #526a63;
  font-size: .7rem;
  font-weight: 700;
}

.nutrition-card > strong {
  color: #07534e;
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nutrition-card > small {
  color: #566d64;
  font-size: .64rem;
  line-height: 1.35;
}

.nutrition-details {
  overflow: hidden;
  border: 1px solid #e2ece7;
  border-radius: 9px;
}

.nutrition-details > summary {
  padding: 11px 13px;
  background: #f4f8f6;
  color: #15574e;
  font-size: .79rem;
  font-weight: 800;
  cursor: pointer;
}

.nutrition-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  color: #3d5751;
  font-size: .74rem;
  text-align: left;
}

.nutrition-table th,
.nutrition-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #e8efeb;
  vertical-align: top;
}

.nutrition-table thead th {
  background: #f8fbf9;
  color: #31574e;
  font-weight: 800;
  white-space: nowrap;
}

.nutrition-table tbody th { font-weight: 700; }
.nutrition-table tbody tr:last-child th,
.nutrition-table tbody tr:last-child td { border-bottom: 0; }
.nutrition-table td { min-width: 115px; }
.nutrition-table td:last-child { min-width: 165px; }
.ingredient-nutrition-table { min-width: 1120px; }
.ingredient-nutrition-table th:first-child { min-width: 190px; }
.ingredient-nutrition-table td { min-width: 105px; white-space: nowrap; }
.ingredient-nutrition-table tbody th span,
.ingredient-nutrition-table tbody th small { display: block; }
.ingredient-nutrition-table tbody th small {
  margin-top: 4px;
  color: #73827d;
  font-size: .62rem;
  font-weight: 500;
  line-height: 1.35;
}

.nutrient-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.nutrient-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #3d5751;
  font-size: .75rem;
}

.recipe-aside-note { margin: 11px 0 0; color: #61736e; font-size: .68rem; line-height: 1.45; }
.nutrient-value { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; text-align: right; }
.nutrient-classification { padding: 2px 6px; border-radius: 999px; background: #e8f4e9; color: #2b7044; font-size: .63rem; font-weight: 700; }
.nutrient-estimate { padding: 2px 6px; border-radius: 999px; background: #fff1d2; color: #805d1f; font-size: .6rem; font-weight: 700; }

.recipe-side-card {
  padding: 14px 15px;
  border: 1px solid #dfece3;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f8ef, #e2f3e7);
}

.recipe-side-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: #1d4e42;
  font-size: .88rem;
}

.recipe-side-card h2 i { color: #168d65; }
.recipe-side-card p { margin: 0; color: #3d5a50; font-size: .76rem; line-height: 1.48; }
.recipe-side-card--tip { border-color: #f2e3bf; background: linear-gradient(135deg, #fff8e9, #fff0cc); }
.recipe-side-card--tip h2 { color: #674723; }
.recipe-side-card--tip h2 i { color: #d7982f; }
.recipe-side-card--tip p { color: #665238; }

.renal-criteria-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.renal-criteria-list li { display: flex; justify-content: space-between; gap: 10px; color: #425b53; font-size: .75rem; }
.renal-criteria-list strong { color: #1c5145; }

.recipe-professional-note {
  position: relative;
  max-width: 760px;
  margin: 18px auto 0;
  padding: 13px 18px 13px 46px;
  border: 1px solid #f0d7d9;
  border-left: 4px solid #c85861;
  border-radius: 9px;
  background: #fff5f5;
  color: #714449;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
}

.recipe-professional-note::before {
  position: absolute;
  top: 50%;
  left: 16px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #dca4a8;
  border-radius: 50%;
  color: #a63e49;
  content: "i";
  font-size: .72rem;
  font-weight: 800;
}

.recipe-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.recipe-action-group { display: flex; flex-wrap: wrap; gap: 8px; }

.recipe-action {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #c9d9d4;
  border-radius: 999px;
  background: #fff;
  color: #24574e;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.recipe-action--primary { border-color: #07534e; background: #07534e; color: #fff; }
.recipe-action:hover { border-color: #087c6e; }
.recipe-action--primary:hover { background: #087064; color: #fff; }
.recipe-action.is-favorite { border-color: #e5a9ae; color: #bd4d59; }
.recipe-action:focus-visible,
.recipe-nav-toggle:focus-visible,
.recipe-site-nav a:focus-visible { outline: 3px solid #f2bb4d; outline-offset: 3px; }

.recipe-return-link { color: #126d60; font-size: .77rem; font-weight: 750; text-decoration: none; }
.recipe-return-link:hover { text-decoration: underline; }

.recipe-detail-page #footer-placeholder { margin-top: 12px; }

@media (max-width: 780px) {
  .recipe-header-inner { width: min(100% - 28px, 680px); min-height: 54px; }
  .recipe-brand img { width: 154px; }
  .recipe-nav-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-size: 1.05rem;
  }
  .recipe-site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 7px 18px 12px;
    background: #064e4b;
  }
  .recipe-site-nav.is-open { display: grid; }
  .recipe-site-nav a { min-height: 42px; }
  .recipe-site-nav a[aria-current="page"] { box-shadow: none; }
  .recipe-header-search { justify-self: start; }
  .recipe-detail-main { width: min(100% - 24px, 700px); padding-top: 0; }
  .recipe-detail-hero { min-height: 245px; margin: 0 -12px 0; padding: 20px 18px; }
  .recipe-detail-copy { width: 70%; }
  .recipe-hero-art { right: -14%; width: 52%; opacity: .48; }
  .recipe-detail-layout { grid-template-columns: 1fr; }
  .recipe-detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-info-panel { grid-row: span 2; }
  .nutrition-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .recipe-detail-main { width: calc(100% - 20px); }
  .recipe-detail-hero { min-height: 275px; margin-right: -10px; margin-left: -10px; padding: 16px 14px; }
  .recipe-detail-copy { width: 100%; }
  .recipe-detail-copy h1 { max-width: 310px; font-size: 2.05rem; }
  .recipe-detail-description { max-width: 300px; font-size: .86rem; }
  .recipe-breadcrumb { gap: 6px; margin-bottom: 14px; font-size: .68rem; }
  .recipe-facts { gap: 15px; margin-top: 17px; }
  .recipe-fact > i { font-size: 1.1rem; }
  .recipe-hero-art { right: -35%; width: 75%; opacity: .26; }
  .recipe-attributes-strip { gap: 6px; padding: 9px; }
  .recipe-attributes-title { flex-basis: 100%; }
  .recipe-attribute-chip { font-size: .64rem; }
  .recipe-panel { padding: 14px 13px; }
  .recipe-panel-heading { gap: 8px; }
  .recipe-panel-heading h2 { font-size: 1rem; }
  .servings-control { gap: 2px; font-size: .67rem; }
  .servings-control select { max-width: 78px; padding-right: 16px; }
  .ingredient-row { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; font-size: .72rem; }
  .recipe-step { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start; }
  .recipe-step-number { grid-row: span 2; margin-top: 2px; }
  .recipe-step-art { display: none; }
  .recipe-step-copy p { font-size: .74rem; }
  .recipe-detail-aside { grid-template-columns: 1fr; }
  .recipe-info-panel { grid-row: auto; }
  .recipe-nutrition-complete .recipe-panel-heading { flex-wrap: wrap; }
  .nutrition-basis-toggle { flex-basis: 100%; margin-left: 0; }
  .nutrition-basis-toggle button { flex: 1; }
  .nutrition-card { min-height: 78px; padding: 9px; }
  .nutrition-card > strong { font-size: .92rem; }
  .recipe-detail-actions { align-items: stretch; }
  .recipe-action-group { flex: 1 1 100%; }
  .recipe-action-group .recipe-action { flex: 1; }
}

@media print {
  .recipe-site-header,
  .recipe-attributes-strip,
  .recipe-detail-actions,
  #footer-placeholder { display: none !important; }
  .recipe-detail-main { width: 100%; }
  .recipe-detail-hero { margin: 0; }
  .recipe-detail-layout { grid-template-columns: 1.7fr 1fr; }
  .recipe-panel,
  .recipe-side-card,
  .recipe-info-panel { break-inside: avoid; box-shadow: none; }
}
