.drlo-magazine-page {
  margin: 0;
  background: #f7f6f0;
}

.drlo-mag {
  --mag-ink: #1f332e;
  --mag-deep: #18372e;
  --mag-paper: #f7f6f0;
  --mag-cream: #fff3d5;
  --mag-muted: #506057;
  --mag-rule: #bfcabc;
  --mag-accent: #8c3826;
  --mag-sage: #e8eee0;
  --mag-warm: #f0e6da;
  --mag-serif: "Songti TC", "Noto Serif CJK TC", "PMingLiU", Georgia, serif;
  --mag-sans: "DM Sans", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  width: min(76rem, calc(100% - 3rem));
  margin: clamp(1rem, 3vw, 3rem) auto 4rem;
  color: var(--mag-ink);
  font: 1.0625rem/1.92 var(--mag-sans);
}

.drlo-mag *,
.drlo-mag *::before,
.drlo-mag *::after { box-sizing: border-box; }
.drlo-mag figure { margin: 0; }
.drlo-mag h1,
.drlo-mag h2,
.drlo-mag h3 { margin: 0; }
.drlo-mag a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.drlo-mag a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: .22em;
}

.mag-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border-bottom: .3rem solid #a84b32;
  color: var(--mag-cream);
  background: var(--mag-deep);
}
.mag-cover {
  align-self: center;
  padding: clamp(1.7rem, 4vw, 3.4rem);
}
.mag-masthead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  margin: 0 0 clamp(1.2rem, 3vw, 2.6rem);
  font-size: .875rem;
}
.mag-masthead strong {
  font: 700 1.6rem/1 Georgia, serif;
  letter-spacing: -.04em;
}
.mag-masthead span {
  border-left: 1px solid #92a499;
  padding-left: .85rem;
}
.mag-cover h1 {
  color: inherit;
  font: 700 clamp(2.15rem, 4.1vw, 3.5rem)/1.24 var(--mag-serif);
  letter-spacing: -.025em;
}
.mag-dek {
  max-inline-size: 23em;
  margin: 1.2rem 0 0;
  font-size: clamp(.98rem, 1.45vw, 1.15rem);
  line-height: 1.8;
}
.mag-hero-photo { position: relative; min-height: 22rem; }
.mag-hero-photo img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 59%;
}
.mag-hero-photo figcaption {
  position: absolute;
  right: .8rem;
  bottom: .75rem;
  margin: 0;
  padding: .18rem .52rem;
  background: #16211de8;
  color: #fff;
  font-size: .75rem;
}

.mag-reading {
  display: grid;
  grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 41.5rem);
  justify-content: center;
  gap: clamp(1.4rem, 5.5vw, 5rem);
  margin: clamp(2.2rem, 5vw, 4rem) auto 0;
}
.mag-contents {
  position: sticky;
  top: 7rem;
  align-self: start;
  display: grid;
  border-top: 1px solid var(--mag-rule);
  padding-top: .5rem;
  font-size: .88rem;
  line-height: 1.6;
}
.mag-contents a {
  padding: .52rem 0;
  text-decoration: none;
}
.mag-contents a:hover { color: var(--mag-accent); text-decoration: underline; }
.mag-prose section,
.mag-sources,
.mag-sources li { scroll-margin-top: .65rem; }
.mag-prose p { margin: 0 0 1rem; }
.mag-prose .mag-lead {
  margin: 0 0 2.6rem;
  font-size: clamp(1.12rem, 2vw, 1.29rem);
  line-height: 1.88;
}
.mag-prose section + section { margin-top: 3.4rem; }
.mag-prose h2 {
  margin: 0 0 1rem;
  font: 700 clamp(1.52rem, 3vw, 2.06rem)/1.3 var(--mag-serif);
  color: var(--mag-deep);
  text-wrap: balance;
}
.mag-cite {
  margin-inline-start: .2em;
  color: var(--mag-accent) !important;
  white-space: nowrap;
  font-size: .76em;
  font-variant-numeric: tabular-nums;
}
.mag-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  text-align: center;
  background: var(--mag-sage);
  border-top: 2px solid var(--mag-deep);
}
.mag-timeline li { padding: .78rem .28rem; font-weight: 700; }
.mag-timeline li + li { border-left: 1px solid var(--mag-rule); }

.drlo-mag .mag-stroop {
  display: grid;
  grid-template-columns: 6.3rem minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
  margin: 1.5rem 0;
  padding: 1.3rem;
  background: var(--mag-sage);
}
.mag-ink-word {
  color: #184b81;
  text-align: center;
  font: 700 3.6rem/1.25 var(--mag-serif);
}
.mag-stroop strong { display: block; }
.mag-stroop dl { margin: .4rem 0 0; font-size: .95rem; }
.mag-stroop dt { font-weight: 700; }
.mag-stroop dd { margin: 0; }
.mag-stroop dl div + div { margin-top: .3rem; }

.drlo-mag .mag-result {
  margin: 1rem 0 1.35rem;
  border-top: 2px solid var(--mag-deep);
  border-bottom: 1px solid var(--mag-rule);
}
.mag-result table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.mag-result caption {
  padding: .65rem 0;
  text-align: left;
  font-size: .95rem;
  font-weight: 700;
}
.mag-result th,
.mag-result td {
  padding: .7rem .45rem;
  text-align: center;
  vertical-align: middle;
}
.mag-result th:first-child { padding-inline-start: .8rem; text-align: left; }
.mag-result thead th { font-size: .85rem; }
.mag-result tbody td { font-size: 1.2rem; font-weight: 700; }
.mag-result tbody tr:first-child { background: var(--mag-warm); }
.mag-result tbody tr + tr { background: var(--mag-sage); }
.mag-result small {
  display: block;
  color: var(--mag-muted);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
}
.mag-result figcaption {
  color: var(--mag-muted);
  padding: .68rem 0;
  font-size: .88rem;
  line-height: 1.65;
}
.mag-trials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.45rem 0;
  border-block: 1px solid var(--mag-rule);
}
.mag-trials > div { padding: 1.05rem 1rem 1.18rem 0; }
.mag-trials > div + div { padding-inline: 1rem 0; border-left: 1px solid var(--mag-rule); }
.mag-trials h3 { color: var(--mag-accent); font-size: 1.03rem; }
.mag-trials p { margin: .32rem 0 0; font-size: .94rem; }
.mag-prose .mag-closing {
  margin: 1.8rem 0 0;
  padding: .6rem 0 .6rem 1rem;
  border-left: 3px solid var(--mag-accent);
  color: var(--mag-deep);
  font-size: 1.12rem;
}
.mag-sources {
  margin-top: 3.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--mag-rule);
}
.mag-sources ol { margin: 0; padding-inline-start: 1.55rem; }
.mag-sources li {
  padding-inline-start: .22rem;
  margin-bottom: .68rem;
  font-size: .93rem;
  line-height: 1.6;
}
.mag-sources li span {
  display: block;
  color: var(--mag-muted);
  overflow-wrap: anywhere;
  font-size: .82rem;
}

.food-feature { --food-pale-rule: #d5ddd0; }
.food-feature .food-title-line { display: inline-block; white-space: nowrap; }
.food-feature .mag-hero-photo img { object-position: 58% 66%; }
.food-feature .mag-dek { max-inline-size: 25em; }
.food-feature .food-comparisons {
  margin: 1.5rem 0;
  padding: .8rem 0;
  border-block: 1px solid var(--mag-rule);
}
.food-comparisons summary {
  cursor: pointer;
  color: var(--mag-deep);
  font-size: .94rem;
  font-weight: 700;
  padding-block: .2rem;
}
.food-feature .food-comparisons .mag-result { border: 0; margin: .7rem 0 0; }
.food-comparisons .mag-result tbody td {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.65;
}
.food-comparisons .mag-result th:first-child { white-space: nowrap; }
.food-feature .food-comparisons .mag-result tbody tr { background: transparent; border-top: 1px solid var(--food-pale-rule); }
.food-feature .food-dose { max-width: 32rem; margin: 1.7rem auto; }
.food-dose img { display: block; width: 100%; height: auto; }
.food-dose figcaption { color: var(--mag-muted); font-size: .86rem; line-height: 1.7; margin-top: .6rem; }
.food-feature .food-day { margin: 1.5rem 0; border-top: 2px solid var(--mag-deep); }
.food-day > div { display: grid; grid-template-columns: 9.8rem minmax(0, 1fr); gap: 1.1rem; padding: .9rem .8rem; border-bottom: 1px solid var(--mag-rule); }
.food-day > div:nth-child(2n + 1) { background: var(--mag-sage); }
.food-day h3 { font-size: 1rem; font-weight: 700; }
.food-day p { margin: 0; }
.food-feature .food-subhead { margin: 1.7rem 0 .65rem; color: var(--mag-deep); font-size: 1.18rem; }
.food-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.6rem 0; border-block: 1px solid var(--mag-rule); }
.food-lists > div { padding-block: 1rem; }
.food-lists > div + div { padding-left: 1.2rem; border-left: 1px solid var(--mag-rule); }
.food-lists h3 { font: 700 1.4rem/1.4 var(--mag-serif); }
.food-lists p { margin-top: .35rem; color: var(--mag-muted); font-size: .88rem; }
.food-lists ul { padding: 0; margin: 0; list-style: none; }
.food-lists li { padding: .6rem 0; border-top: 1px solid var(--food-pale-rule); font-size: .93rem; line-height: 1.75; }
.food-download a { color: var(--mag-deep); font-weight: 700; }

@media (max-width: 50rem) {
  .food-feature .mag-hero-photo { aspect-ratio: 4 / 3; }
  .food-feature .mag-hero-photo img { object-position: 60% 65%; }
}

@media (max-width: 35rem) {
  .food-feature .mag-hero-photo figcaption { font-size: .68rem; }
  .food-lists { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .food-lists > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--mag-rule); }
  .food-day > div { grid-template-columns: minmax(0, 1fr); gap: .18rem; }
  .food-comparisons .mag-result th, .food-comparisons .mag-result td { padding: .5rem .22rem; font-size: .76rem; }
  .food-comparisons .mag-result small { font-size: .67rem; }
}

@media (max-width: 50rem) {
  .drlo-mag { width: min(42rem, calc(100% - 2rem)); }
  .mag-hero { grid-template-columns: minmax(0, 1fr); }
  .mag-cover h1 { font-size: clamp(1.96rem, 6.9vw, 3.4rem); }
  .mag-cover { padding: 1.55rem; }
  .mag-hero-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .mag-reading { grid-template-columns: minmax(0, 1fr); margin-top: 1.3rem; }
  .mag-contents {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    padding: .38rem 0;
    border-bottom: 1px solid var(--mag-rule);
  }
  .mag-contents a { padding: .38rem 0; }
  .mag-prose section + section { margin-top: 2.7rem; }
  .mag-prose .mag-lead { margin-bottom: 2.2rem; }
}

@media (max-width: 27rem) {
  .drlo-mag { font-size: 1rem; }
  .mag-cover { padding: 1.15rem 1rem 1.4rem; }
  .mag-cover h1 { font-size: clamp(1.85rem, 7.2vw, 2.2rem); }
  .mag-hero-photo figcaption { right: .45rem; bottom: .4rem; }
  .mag-timeline { font-size: .9rem; }
  .drlo-mag .mag-stroop {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: .68rem;
    padding: .8rem;
  }
  .mag-ink-word { font-size: 2.8rem; }
  .mag-result th,
  .mag-result td { padding-inline: .3rem; }
  .mag-result th:first-child { padding-inline-start: .43rem; }
  .mag-result tbody th { font-size: .88rem; }
  .mag-result tbody td { font-size: 1.06rem; }
  .mag-result small { font-size: .69rem; }
  .mag-trials { grid-template-columns: minmax(0, 1fr); }
  .mag-trials > div { padding: .84rem 0; }
  .mag-trials > div + div { padding: .84rem 0; border-left: 0; border-top: 1px solid var(--mag-rule); }
}

/* Low-carbohydrate feature: shared magazine layout, topic-specific tables and portrait crop. */

.bone-feature .mag-cover h1 { font-size:clamp(1.9rem,3.2vw,2.65rem); line-height:1.38; }
.bone-feature .mag-hero-photo { min-height:38rem; }
.bone-feature .mag-hero-photo img { object-position:50% 8%; }
.bone-feature .mag-result th:first-child { width:auto; }
.bone-feature .bone-diets td { font-size:1.05rem; }
.bone-feature .bone-diets tbody tr:nth-child(2), .bone-feature .bone-methods tbody tr:nth-child(2) { background:#f8ede6; }
.bone-feature .bone-diets tbody tr:nth-child(3), .bone-feature .bone-methods tbody tr:nth-child(3) { background:#e8f3f7; }
.bone-feature .bone-methods { margin:1.3rem 0 1.7rem; border-top:1px solid var(--mag-rule); border-bottom:1px solid var(--mag-rule); padding:.7rem 0; }
.bone-feature .bone-methods summary { cursor:pointer; font-weight:700; color:var(--mag-deep); }
.bone-feature .bone-methods .mag-result { border:0; margin-bottom:0; }
.bone-feature .bone-photo-note { font-size:.85rem; line-height:1.7; color:var(--mag-muted); margin-top:1.5rem; }
@media(max-width:50rem) {
 .bone-feature .mag-hero-photo { min-height:0; aspect-ratio:4/5; }
 .bone-feature .mag-cover h1 { font-size:clamp(1.85rem,5.1vw,2.5rem); }
 .bone-feature .bone-diets th, .bone-feature .bone-diets td { padding:.65rem .24rem; }
 .bone-feature .bone-diets tbody td { font-size:.95rem; }
 .bone-feature .bone-diets thead th { font-size:.76rem; }
 .bone-feature .bone-diets tbody th { font-size:.84rem; }
 .bone-feature .bone-diets small { font-size:.65rem; }
 .bone-feature .mag-hero-photo figcaption { font-size:.65rem; }
}
