html, body { overflow-x: clip; }

.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 * { min-width: 0; }
.drlo-mag h1,
.drlo-mag h2,
.drlo-mag h3 { font-style: normal; overflow-wrap: anywhere; }
.drlo-mag figure { margin: 0; }
.drlo-mag h1,
.drlo-mag h2,
.drlo-mag h3 { margin: 0; }
.drlo-mag a {
  color: inherit;
  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: 50% 50%;
}
.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: 2rem;
  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: 6.5rem; }
.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;
}

.mag-dose {
  margin: 1.5rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--mag-deep);
  color: var(--mag-cream);
}
.mag-dose .mag-dose-label { margin-bottom: .4rem; font-size: .9rem; }
.mag-dose .mag-dose-number {
  margin: 0 0 .8rem;
  font: 700 clamp(2.6rem, 5vw, 3.6rem)/1.25 var(--mag-serif);
  font-variant-numeric: tabular-nums;
}
.mag-dose-number span {
  display: block;
  margin-top: .4rem;
  font: 600 1.1rem/1.5 var(--mag-sans);
}
.mag-dose p:last-child { margin: 0; }
.mag-sources a { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@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); }
  .mag-dose { padding: 1.1rem; }
  .mag-hero-photo figcaption { max-width: calc(100% - .9rem); font-size: .65rem; }
}

/* Longer approved title and the three case-study subheadings. */
.mag-wellbeing-hero .mag-cover h1 { font-size: clamp(2.05rem, 3.35vw, 3.05rem); }
.mag-prose h3 { margin: 1.75rem 0 .55rem; color: var(--mag-accent); font-size: 1.13rem; line-height: 1.5; }
.mag-result tbody td:last-child { font-size: 1.05rem; font-weight: 600; }
@media (max-width: 27rem) {
 .mag-wellbeing-hero .mag-cover h1 { font-size: 1.86rem; }
 .mag-result tbody td:last-child { font-size: .91rem; }
 .mag-result thead th { font-size: .75rem; }
}

.mag-wellbeing-hero h1 span { display: block; line-height: 1.3; }
.mag-title-first { font-size: clamp(1.45rem, 2.85vw, 2.5rem); }
.mag-title-second { margin-top: .4rem; font-size: clamp(1.25rem, 2.4vw, 2.2rem); }
.mag-title-payoff { margin-top: .3rem; font-size: clamp(2.35rem, 4.4vw, 3.85rem); }
@media (max-width: 50rem) {
 .mag-title-first { font-size: clamp(1.35rem, 7.9vw, 2.15rem); }
 .mag-title-second { font-size: clamp(1.2rem, 7.1vw, 2rem); }
 .mag-title-payoff { font-size: clamp(2.5rem, 11vw, 4rem); }
}
