/* Scoped to the updated Mediterranean diet article. */
[data-diet-page] .post-text > .row:first-child .v-image { max-height: 220px !important; }
.run-code.diet-article { min-width: 0; color: #243c31; font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.run-code.diet-article h2 { margin: 36px 0 14px; color: #254b38; font-size: 27px; line-height: 1.3; }
.run-code.diet-article h3 { margin: 22px 0 8px; color: #254b38; font-size: 20px; line-height: 1.4; }
.run-code.diet-article p { margin: 0 0 16px; }
.run-code.diet-article ul { margin: 0 0 16px; padding-left: 22px; }
.run-code.diet-article li { margin: 0 0 6px; }
.diet-article :is(section, h2, h3) { scroll-margin-top: 24px; }
.diet-article .diet-lead { font-size: 19px; }
.diet-article a { color: #365f44; text-underline-offset: 3px; }
.diet-article a:focus-visible { outline: 3px solid #a36b27; outline-offset: 3px; }
.diet-article .diet-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 4px 0 18px; }
.diet-article .diet-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Pyramid: tiers narrow toward the top on wide screens, stack as cards on phones. */
#app .run-code.diet-article .diet-pyramid { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px 0 10px; padding: 0; list-style: none; }
#app .run-code.diet-article .diet-tier { width: var(--tier-width, 100%); margin: 0; padding: 12px 18px; border: 1px solid #d1daca; border-radius: 12px; background: var(--tier-bg, #f8faf5); text-align: center; }
#app .run-code.diet-article .diet-pyramid > .diet-tier::before { content: none; display: none; }
.diet-article .diet-tier-when { display: block; color: #254b38; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
#app .run-code.diet-article .diet-tier-items { margin: 6px 0 0; padding: 0; list-style: none; }
#app .run-code.diet-article .diet-tier-items > li { margin: 2px 0 0; padding: 0; font-size: 16px; line-height: 1.5; }
#app .run-code.diet-article .diet-tier-items > li::before { content: none; display: none; }
.diet-article .diet-tier--1 { --tier-width: 36%; --tier-bg: #fbf1e6; }
.diet-article .diet-tier--2 { --tier-width: 52%; --tier-bg: #f8f0e0; }
.diet-article .diet-tier--3 { --tier-width: 68%; --tier-bg: #f4f3e2; }
.diet-article .diet-tier--4 { --tier-width: 84%; --tier-bg: #eef4e4; }
.diet-article .diet-tier--5 { --tier-width: 100%; --tier-bg: #e6f0df; }
.diet-article .diet-tier--base { --tier-width: 100%; --tier-bg: #fff; border-style: dashed; }
#app .run-code.diet-article .diet-aside { margin: 12px 0 6px; color: #3f5446; font-size: 15px; line-height: 1.5; text-align: center; }
#app .run-code.diet-article .diet-caption { color: #58675c; font-size: 14px; line-height: 1.5; text-align: center; }

.diet-article .diet-table-wrap { max-width: 100%; margin: 20px 0 24px; overflow-x: auto; }
.run-code.diet-article .diet-table { display: table; width: 100%; margin: 0; border: 1px solid #d1daca; border-collapse: collapse; background: #fff; font-size: 16px; }
.run-code.diet-article .diet-table :is(th, td) { padding: 10px 14px; border: 0; border-bottom: 1px solid #e0e6db; text-align: left; line-height: 1.5; vertical-align: top; }
.run-code.diet-article .diet-table thead th { color: #58675c; background: #f2f5ec; font-size: 14px; font-weight: 500; }
.run-code.diet-article .diet-table tbody th { font-weight: 500; }
.diet-article .diet-note { padding: 16px 18px; border-left: 3px solid #8a9c70; background: #f3f6ee; }
.run-code.diet-article .diet-sources { margin-top: 36px; padding-top: 8px; border-top: 1px solid #d1daca; color: #58675c; font-size: 14px; }
.run-code.diet-article .diet-sources h2 { margin-top: 20px; font-size: 21px; }
@media (max-width: 600px) {
  [data-diet-page] .post-text > .row:first-child .v-image { max-height: 140px !important; }
  .run-code.diet-article { font-size: 16px; }
  .diet-article .diet-lead { font-size: 17px; }
  .run-code.diet-article h2 { font-size: 24px; }
  .diet-article .diet-nav { gap: 12px 18px; }
  .diet-article :is(.diet-tier--1, .diet-tier--2, .diet-tier--3, .diet-tier--4) { --tier-width: 100%; }
  #app .run-code.diet-article .diet-tier { padding: 12px 14px; text-align: left; }
  .run-code.diet-article .diet-table { font-size: 14px; }
  .run-code.diet-article .diet-table :is(th, td) { padding: 9px 7px; }
}
@media print {
  .diet-article .diet-nav { display: none !important; }
  .diet-article .diet-table-wrap { overflow: visible; }
  #app .run-code.diet-article .diet-tier { break-inside: avoid; }
}
