/* =========================================================================
   The Brain Health Journal — public magazine (publications.php, article.php)
   2026-11-26. Self-contained: every rule is scoped under .mag / .mag-article.
   Pixel units on purpose (the site's root font size is not 16px).
   ========================================================================= */

.mag, .mag-article {
  --paper: #faf8f4;
  --paper-2: #f3efe7;
  --ink: #1b1f24;
  --ink-2: #3b434d;
  --muted: #66707b;
  --rule: #e3ddd2;
  --navy: #13283b;
  --navy-2: #1d3a54;
  --accent: #9c5a00;       /* kicker on light — AA on paper */
  --gold: #f2b134;         /* kicker on dark */
  --serif-d: "Fraunces", Georgia, "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.mag *, .mag-article * { box-sizing: border-box; }
.mag h1, .mag h2, .mag h3, .mag h4,
.mag-article h1, .mag-article h2, .mag-article h3, .mag-article h4 {
  font-family: var(--serif-d);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
  color: inherit;
}
.mag a, .mag-article a { color: inherit; text-decoration: none; }
.mag img { display: block; max-width: 100%; }
.mag p { margin: 0; }
.mag ol, .mag ul { margin: 0; padding: 0; list-style: none; }

.mag-wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .mag-wrap { padding: 0 32px; } }
@media (min-width: 1200px) { .mag-wrap { padding: 0 48px; } }

/* site navbar on magazine pages: solid navy once scrolled (set by js/magazine.js) */
.navbar-custom.mag-nav-solid { background: rgba(19, 40, 59, .97) !important; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
@media (min-width: 992px) {
  .navbar-custom.mag-nav-solid .navbar-brand img.logo { height: 40px; transition: height .2s; }
  .navbar-custom.mag-nav-solid .container { padding-top: 0; padding-bottom: 0; }
}

/* ---------- small type ---------- */
.mag-kicker {
  display: block;
  font: 700 11.5px/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.mag-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }
.mag-byline { display: block; font-size: 14px; color: var(--muted); margin-top: 16px; }
.mag-rail-title {
  font: 700 12px/1 var(--sans) !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px !important;
}

/* ---------- masthead ---------- */
.mag-masthead { background: var(--navy); color: #fff; padding-top: 80px; }
.mag-masthead__top {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 10px;
}
.mag-nameplate { display: block; text-align: center; padding: 28px 0 6px; color: #fff !important; }
.mag-nameplate__over {
  display: block; font: 700 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.mag-nameplate__name {
  display: block; font-family: var(--serif-d); font-weight: 600;
  font-size: clamp(36px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin-top: 10px;
}
.mag-masthead__tag {
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.78); margin: 10px auto 22px !important; max-width: 620px;
}
.mag-search {
  display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 0 auto 26px;
  background: #fff; border-radius: 999px; padding: 5px 5px 5px 16px;
}
.mag-search .mdi { color: var(--muted); font-size: 20px; }
.mag-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 16px/1.2 var(--sans); padding: 8px 0;
}
.mag-search button {
  border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 14px/1 var(--sans);
  padding: 11px 18px; cursor: pointer;
}
.mag-search button:hover { background: var(--navy-2); }
.mag-search:focus-within { box-shadow: 0 0 0 3px rgba(242,177,52,.6); }

.mag-sections { background: var(--paper); border-bottom: 1px solid var(--rule); color: var(--ink); }
.mag-sections ul {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}
.mag-sections ul::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .mag-sections ul { justify-content: center; } }
.mag-sections a {
  display: block; white-space: nowrap; padding: 15px 12px 13px; font: 600 14px/1 var(--sans);
  color: var(--ink-2); border-bottom: 3px solid transparent;
}
.mag-sections a:hover { color: var(--ink); }
.mag-sections a.is-on { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- cover ---------- */
.mag-main { padding-bottom: 40px; }
.mag-cover { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 992px) { .mag-cover { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 44px; padding-top: 44px; } }
.mag-lead__link { display: block; }
.mag-lead__fig { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; background: var(--paper-2); }
.mag-lead__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mag-lead__link:hover img { transform: scale(1.02); }
.mag-lead__body { padding-top: 20px; }
.mag-lead__title { font-size: clamp(30px, 4.4vw, 50px) !important; line-height: 1.06 !important; font-weight: 600; }
.mag-lead__link:hover .mag-lead__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mag-lead__dek { font-family: var(--serif); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--ink-2); margin-top: 14px !important; max-width: 760px; }

.mag-latest ol, .mag-popular ol { counter-reset: mag; }
.mag-latest li, .mag-popular li { border-bottom: 1px solid var(--rule); }
.mag-latest a, .mag-popular a { display: block; padding: 16px 0; }
.mag-latest__title { display: block; font: 600 19px/1.25 var(--serif-d); color: var(--ink); }
.mag-latest a:hover .mag-latest__title, .mag-popular a:hover .mag-latest__title { color: var(--accent); }
.mag-popular li a { position: relative; padding-left: 46px; }
.mag-popular li a::before {
  counter-increment: mag; content: counter(mag);
  position: absolute; left: 0; top: 12px; font: 600 34px/1 var(--serif-d); color: var(--accent);
}

/* ---------- section bands ---------- */
.mag-band { padding: 48px 0; }
.mag-band--rule { border-top: 1px solid var(--rule); }
.mag-band--cream { background: var(--paper-2); }
.mag-band--ink { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mag-band--navy { background: var(--navy); color: #fff; }
.mag-band--navy .mag-kicker, .mag-band--navy .mag-sechead__over { color: var(--gold); }
.mag-band--navy .mag-sechead p, .mag-band--navy .mag-meta { color: rgba(255,255,255,.72); }
.mag-band--navy .mag-more { color: #fff; border-color: rgba(255,255,255,.45); }
@media (min-width: 768px) { .mag-band { padding: 64px 0; } }

.mag-sechead {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.mag-sechead > div { max-width: 680px; }
.mag-sechead__over {
  display: block; font: 700 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.mag-sechead h2 { font-size: clamp(28px, 3.6vw, 40px) !important; }
.mag-sechead p { font-family: var(--serif); font-size: 17px; color: var(--ink-2); margin-top: 10px !important; line-height: 1.5; }
.mag-more {
  display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px; padding: 10px 16px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.mag-more:hover { background: var(--ink); color: #fff !important; }
.mag-band--navy .mag-more:hover { background: #fff; color: var(--navy) !important; }
.mag-more--below { margin-top: 24px; }

/* ---------- grids ---------- */
.mag-grid { display: grid; gap: 28px; }
.mag-grid--2, .mag-grid--3, .mag-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .mag-grid--2, .mag-grid--3, .mag-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .mag-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mag-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mag-grid--feature { grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .mag-grid--feature { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
  .mag-grid--flip > :first-child { order: 2; }
}
.mag-stack { display: flex; flex-direction: column; }
.mag-stack .mag-card--row { border-bottom: 1px solid var(--rule); }
.mag-stack .mag-card--row:first-child { padding-top: 0; }
.mag-split { display: grid; gap: 40px; }
@media (min-width: 992px) { .mag-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; } }

/* ---------- cards ---------- */
.mag-card__link { display: block; height: 100%; }
.mag-card__fig { position: relative; margin: 0 0 14px; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; background: var(--paper-2); }
.mag-card__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.mag-card__link:hover .mag-card__fig img { transform: scale(1.03); }
.mag-card__title { font-size: 21px !important; line-height: 1.22 !important; }
.mag-card__link:hover .mag-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mag-card__dek { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-2); margin-top: 8px !important; }

.mag-card--lg .mag-card__fig { aspect-ratio: 16 / 10; }
.mag-card--lg .mag-card__title { font-size: clamp(26px, 3vw, 36px) !important; line-height: 1.12 !important; }
.mag-card--lg .mag-card__dek { font-size: 18px; }

.mag-card--row { padding: 18px 0; }
.mag-card--row .mag-card__link { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; align-items: start; }
.mag-card--row .mag-card__fig { order: 2; aspect-ratio: 1 / 1; margin: 0; }
.mag-card--row .mag-card__title { font-size: 19px !important; }
.mag-card--row .mag-card__dek { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .mag-card--row .mag-card__link { grid-template-columns: minmax(0, 1fr) 140px; } }

.mag-badge-audio {
  position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(19,40,59,.85); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px;
}

/* ---------- author column ---------- */
.mag-quotes { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .mag-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mag-quotes--page { grid-template-columns: 1fr; }
@media (min-width: 768px) { .mag-quotes--page { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mag-quote { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 6px; transition: box-shadow .2s, transform .2s; }
.mag-quote:hover { box-shadow: 0 10px 30px rgba(27,31,36,.08); transform: translateY(-2px); }
.mag-quote a { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 22px; }
.mag-quote blockquote {
  position: relative; margin: 0; padding: 26px 0 0; border: 0;
  font: italic 400 18px/1.55 var(--serif); color: var(--ink); flex: 1;
}
.mag-quote blockquote::before {
  content: "\201C"; position: absolute; top: -14px; left: -4px; font: 600 64px/1 var(--serif-d); color: var(--accent);
}
.mag-quote figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.mag-quote__on { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--accent); }
.mag-quote__title { font-family: var(--serif-d); font-weight: 600; color: var(--ink); font-size: 16px; }
.mag-stars { display: inline-flex; gap: 2px; vertical-align: -2px; margin-right: 10px; }
.mag-stars i { width: 14px; height: 14px; display: inline-block; background: var(--rule);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.6 7.2.9-5.3 4.9 1.4 7.1L12 18l-6.4 3.5 1.4-7.1L1.7 9.5l7.2-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.6 7.2.9-5.3 4.9 1.4 7.1L12 18l-6.4 3.5 1.4-7.1L1.7 9.5l7.2-.9z'/%3E%3C/svg%3E") center/contain no-repeat; }
.mag-stars i.on { background: #d08a00; }
.mag-stars i.half { background: linear-gradient(90deg, #d08a00 50%, var(--rule) 50%); }

/* ---------- listen ---------- */
.mag-listen--grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mag-listen--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mag-listen--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mag-listen__item {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 10px;
}
.mag-listen--light .mag-listen__item { background: #fff; border-color: var(--rule); }
.mag-listen__item .mag-kicker { margin-bottom: 4px; }
.mag-listen__item .mag-meta { margin-top: 4px; }
.mag-listen__title { display: block; font: 600 17px/1.25 var(--serif-d); }
.mag-listen__title:hover { text-decoration: underline; }
.mag-play {
  position: relative; width: 84px; height: 84px; border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer;
  background: var(--navy-2);
}
.mag-play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.mag-play__icon {
  position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--navy); font-size: 24px; display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.mag-play:hover .mag-play__icon { transform: scale(1.08); }

.mag-player {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1050;
  width: min(640px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 10px 8px 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3); font-family: var(--sans);
}
.mag-player[hidden] { display: none; }
.mag-player button {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.mag-player__toggle { background: var(--gold); color: var(--navy); }
.mag-player__close { background: transparent; color: rgba(255,255,255,.8); }
.mag-player__title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #fff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mag-player__time { font-size: 13px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }

/* ---------- section + search pages ---------- */
.mag-sectionpage { padding-top: 36px; padding-bottom: 24px; }
.mag-sectionhead { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.mag-sectionhead h1 { font-size: clamp(36px, 6vw, 60px) !important; line-height: 1.05 !important; }
.mag-sectionhead p { font-family: var(--serif); font-size: 19px; color: var(--ink-2); margin-top: 14px !important; }
.mag-sectionlead { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); }
@media (min-width: 992px) {
  .mag-sectionlead .mag-card--lg .mag-card__link { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .mag-sectionlead .mag-card--lg .mag-card__fig { margin: 0; }
}
.mag-results { max-width: 860px; margin: 0 auto; }
.mag-results .mag-card--row { border-bottom: 1px solid var(--rule); }
.mag-loadmore { text-align: center; margin-top: 36px; }
.mag-loadmore button {
  font: 600 15px/1 var(--sans); padding: 14px 28px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.mag-loadmore button:hover { background: var(--ink); color: #fff; }
.mag [data-paged] > .is-paged-out { display: none; }

.mag-note {
  margin-top: 28px; padding: 18px 20px; background: var(--paper-2); border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.mag-note a { display: block; margin-top: 8px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--accent); }

/* =========================================================================
   ARTICLE READING PAGE
   ========================================================================= */
.mag-article { padding-bottom: 60px; }
.mag-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold, #f2b134); z-index: 1100; }

.mag-art-top { background: var(--navy); color: #fff; padding: 80px 0 0; }
.mag-art-top .mag-crumbs { font-size: 13px; color: rgba(255,255,255,.7); padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.mag-art-top .mag-crumbs a { color: #fff; }
.mag-art-top .mag-crumbs a:hover { text-decoration: underline; }

.mag-art-head { max-width: 860px; margin: 0 auto; padding: 40px 16px 0; text-align: center; }
.mag-art-head .mag-kicker { color: var(--accent); font-size: 12.5px; }
.mag-art-head h1 { font-size: clamp(32px, 5.4vw, 58px) !important; line-height: 1.06 !important; font-weight: 600; }
.mag-art-dek { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--ink-2); margin: 18px auto 0; max-width: 720px; }
@media (max-width: 600px) {
  .mag-art-head { text-align: left; padding-top: 28px; }
  .mag-art-dek { font-size: 18px; }
  .mag-art-byline, .mag-art-tools { justify-content: flex-start; }
}
.mag-art-head h1 + .mag-art-dek { margin-top: 20px; }
.mag-art-byline {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px;
  margin-top: 22px; font-size: 14px; color: var(--muted);
}
.mag-art-byline strong { color: var(--ink); font-weight: 600; }
.mag-art-tools { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.mag-tool {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink) !important; font: 600 13.5px/1 var(--sans); cursor: pointer;
}
.mag-tool:hover { border-color: var(--ink); }
.mag-tool .mdi { font-size: 18px; }

.mag-art-hero { max-width: 1100px; margin: 34px auto 0; padding: 0 16px; }
.mag-art-hero img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 4px; display: block; }

/* (article audio player styles: see 'ARTICLE AUDIO PLAYER' at the end) */

/* the prose */
.mag-prose {
  max-width: 700px; margin: 40px auto 0; padding: 0 16px;
  font-family: var(--serif); font-size: 19px; line-height: 1.72; color: #22272d;
  overflow-wrap: break-word;
}
@media (max-width: 600px) { .mag-prose { font-size: 18px; line-height: 1.68; } }
.mag-prose > *:first-child { margin-top: 0 !important; }
.mag-prose p { margin: 0 0 1.1em; }
.mag-prose > p:first-of-type::first-letter {
  float: left; font-family: var(--serif-d); font-weight: 600; font-size: 4.1em; line-height: .82; padding: .06em .1em 0 0; color: var(--navy);
}
.mag-prose h1, .mag-prose h2, .mag-prose h3, .mag-prose h4 {
  font-family: var(--serif-d) !important; text-transform: none !important; letter-spacing: -0.01em !important; color: var(--ink);
  margin: 1.8em 0 .55em !important; line-height: 1.2 !important;
}
.mag-prose h1, .mag-prose h2 { font-size: 30px !important; }
.mag-prose h3 { font-size: 25px !important; }
.mag-prose h4, .mag-prose h5, .mag-prose h6 { font-size: 20px !important; font-family: var(--sans) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; }
.mag-prose h1 strong, .mag-prose h2 strong, .mag-prose h3 strong { font-weight: inherit; }
.mag-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mag-prose ul, .mag-prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.mag-prose ul { list-style: disc; }
.mag-prose ol { list-style: decimal; }
.mag-prose ul ul { list-style: circle; margin: .4em 0 .2em; }
.mag-prose li { margin-bottom: .45em; }
.mag-prose ul li::marker { color: var(--accent); }
.mag-prose hr { border: 0; text-align: center; margin: 2.2em 0; }
.mag-prose hr::after { content: "\2022  \2022  \2022"; letter-spacing: .6em; color: var(--muted); }
.mag-prose blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent);
  font-style: italic; font-size: 1.05em; color: var(--ink-2);
}
/* site main.css adds FontAwesome quote glyphs + 18px padding to every blockquote */
.mag-prose blockquote::before, .mag-prose blockquote::after { content: none !important; display: none !important; }
.mag-prose blockquote > :last-child { margin-bottom: 0; }
.mag-prose blockquote ul, .mag-prose blockquote ol { padding-left: 1.1em; }

/* "Key points" summary card (Lesson Studio articles) */
.mag-prose .mag-keypoints {
  margin: 0 0 2em; padding: 20px 22px 18px; background: #fff; border: 1px solid var(--rule);
  border-top: 3px solid var(--accent); border-radius: 0 0 10px 10px;
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink-2);
}
.mag-prose .mag-keypoints > p:first-child {
  margin: 0 0 10px; font: 700 11.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.mag-prose .mag-keypoints > p:first-child strong { font-weight: inherit; }
.mag-prose .mag-keypoints ul { list-style: none; margin: 0; padding: 0; }
.mag-prose .mag-keypoints li { position: relative; margin: 0; padding: 8px 0 8px 22px; border-top: 1px solid var(--rule); }
.mag-prose .mag-keypoints li:first-child { border-top: 0; padding-top: 2px; }
.mag-prose .mag-keypoints li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.mag-prose .mag-keypoints li:first-child::before { top: 10px; }
@media (max-width: 600px) { .mag-prose .mag-keypoints { padding: 16px 16px 14px; font-size: 15.5px; } }
.mag-prose img { max-width: 100%; height: auto; border-radius: 4px; margin: 1em 0; }
.mag-prose figure { margin: 1.6em 0; }
.mag-prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; }
.mag-prose table {
  display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0;
  font-family: var(--sans); font-size: 15px; line-height: 1.45;
}
.mag-prose th, .mag-prose td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 120px; }
.mag-prose th { background: var(--paper-2); font-weight: 700; }
.mag-prose iframe, .mag-prose video { max-width: 100%; }
.mag-prose pre, .mag-prose code { white-space: pre-wrap; font-size: .85em; }

/* author's take + source */
.mag-take {
  max-width: 760px; margin: 48px auto 0; padding: 30px 28px; background: var(--paper-2); border-radius: 8px; position: relative;
}
@media (max-width: 600px) { .mag-take { margin-left: 12px; margin-right: 12px; padding: 24px 18px; } }
.mag-take .mag-sechead__over { margin-bottom: 6px; }
.mag-take h2 { font-size: 26px !important; margin-bottom: 14px !important; }
.mag-take p { font: italic 400 18px/1.65 var(--serif); color: var(--ink); margin: 0; }
.mag-take .mag-stars i { width: 18px; height: 18px; }
.mag-take__foot { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.mag-source {
  max-width: 700px; margin: 36px auto 0; padding: 16px 16px 0; border-top: 1px solid var(--rule);
  font-size: 15px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start;
}
.mag-source .mdi { font-size: 20px; color: var(--accent); }
.mag-source a { color: var(--accent); font-weight: 600; text-decoration: underline; word-break: break-word; }

.mag-disclaimer { max-width: 700px; margin: 28px auto 0; padding: 0 16px; font-size: 13.5px; color: var(--muted); font-style: italic; }

.mag-related { margin-top: 64px; padding: 48px 0 8px; border-top: 1px solid var(--rule); background: var(--paper); }

@media print {
  .navbar, .mag-art-top, .mag-art-tools, .mag-related, .mag-progress, .mag-player, footer, .footer, #preloader { display: none !important; }
  .mag-article { background: #fff; }
  .mag-prose { max-width: none; font-size: 12pt; }
}

/* =========================================================================
   ARTICLE AUDIO PLAYER (2026-11-26) — inline card, docked mini bar, and a
   full-screen "now playing" sheet. Markup: section_article_mag.php (card);
   the sheet + dock are built by js/magazine.js and live under <body>.
   ========================================================================= */
.mag-aud {
  --aud-navy: #13283b; --aud-gold: #f2b134; --aud-accent: #9c5a00; --aud-rule: #e3ddd2;
  max-width: 668px; margin: 30px auto 0; padding: 16px 18px; position: relative;
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--aud-rule); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(27,31,36,.04), 0 8px 24px rgba(27,31,36,.06);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1b1f24;
}
@media (max-width: 700px) { .mag-aud { margin-left: 16px; margin-right: 16px; padding: 14px; gap: 12px; } }
.mag-aud__play {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--aud-navy); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(19,40,59,.28); transition: transform .15s, background .15s;
}
.mag-aud__play[hidden] { display: none; }
.mag-aud__play:hover { transform: scale(1.05); background: #1d3a54; }
.mag-aud button:focus-visible, .mag-audfs button:focus-visible, .mag-auddock button:focus-visible { outline: 3px solid #f2b134; outline-offset: 2px; }
.mag-aud.is-playing .mag-aud__play { background: var(--aud-gold); color: var(--aud-navy); }
.mag-aud__body { flex: 1; min-width: 0; }
.mag-aud__head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.mag-aud__kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 11.5px/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--aud-accent);
}
.mag-aud__kicker .mdi { font-size: 16px; }
.mag-aud__title { font: 600 18px/1.25 "Fraunces", Georgia, serif; margin-top: 2px; color: #1b1f24; }
.mag-aud__len { font: 500 13px/1 "Inter", sans-serif; color: #66707b; margin-left: 4px; }
.mag-aud__expand {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px;
  border: 1px solid var(--aud-rule); border-radius: 999px; background: #faf8f4; color: #1b1f24;
  font: 600 12.5px/1 "Inter", sans-serif; cursor: pointer;
}
.mag-aud__expand[hidden] { display: none; }
.mag-aud__expand:hover { border-color: #1b1f24; }
.mag-aud__expand .mdi { font-size: 16px; }
@media (max-width: 420px) { .mag-aud__expand-txt { display: none; } .mag-aud__expand { width: 32px; padding: 0; justify-content: center; } }
.mag-aud__native { display: block; width: 100%; height: 40px; margin-top: 10px; }
.mag-aud__native[hidden] { display: none; }
.mag-aud__ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mag-aud__ctrl[hidden] { display: none; }
.mag-aud__btn {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #3b434d;
  font-size: 21px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mag-aud__btn:hover { background: #f3efe7; color: #1b1f24; }
.mag-aud__time { flex: 0 0 auto; font: 500 12.5px/1 "Inter", sans-serif; color: #66707b; font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.mag-aud__rate {
  flex: 0 0 auto; min-width: 46px; height: 28px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--aud-rule);
  background: #fff; color: #1b1f24; font: 700 12px/1 "Inter", sans-serif; cursor: pointer; font-variant-numeric: tabular-nums;
}
.mag-aud__rate:hover { border-color: #1b1f24; }
@media (max-width: 520px) {
  .mag-aud { align-items: flex-start; }
  .mag-aud__play { width: 50px; height: 50px; font-size: 26px; }
  .mag-aud__ctrl { flex-wrap: wrap; gap: 2px 4px; }
  .mag-aud .mag-aud__ctrl .mag-aud__seek { order: -1; flex: 1 0 100%; margin-bottom: 2px; }
  .mag-aud__ctrl .mag-aud__time { min-width: 0; }
  .mag-aud__ctrl .mag-aud__time[data-aud-dur] { margin-right: auto; }
  .mag-aud__ctrl .mag-aud__time[data-aud-dur]::before { content: "/ "; }
  .mag-aud__kicker { white-space: nowrap; font-size: 10.5px; letter-spacing: .12em; }
}

/* animated level meter, only while playing */
.mag-aud__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; opacity: 0; transition: opacity .2s; }
.mag-aud__eq i { width: 3px; height: 100%; background: #f2b134; border-radius: 1px; transform-origin: bottom; transform: scaleY(.3); }
.is-playing .mag-aud__eq { opacity: 1; }
.is-playing .mag-aud__eq i { animation: mag-eq 1s ease-in-out infinite; }
.is-playing .mag-aud__eq i:nth-child(2) { animation-delay: -.3s; }
.is-playing .mag-aud__eq i:nth-child(3) { animation-delay: -.6s; }
.is-playing .mag-aud__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes mag-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .is-playing .mag-aud__eq i { animation: none; transform: scaleY(.7); } }

/* seek bar (card + sheet) — --p is the played fraction, set by JS */
.mag-aud__seek {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 60px; height: 22px; margin: 0; padding: 0; background: transparent; cursor: pointer;
  --p: 0%; --trk: #e3ddd2; --fill: #9c5a00; --thumb: #13283b;
}
.mag-aud__seek::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--fill) var(--p), var(--trk) var(--p)); }
.mag-aud__seek::-moz-range-track { height: 5px; border-radius: 999px; background: var(--trk); }
.mag-aud__seek::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--fill); }
.mag-aud__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -5px; border-radius: 50%; background: var(--thumb); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.mag-aud__seek::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--thumb); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.mag-aud__seek:focus-visible { outline: none; }
.mag-aud__seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(242,177,52,.55); }

/* ---------- docked mini bar (while playing and the card is scrolled away) ---------- */
.mag-auddock {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 1060; width: min(560px, calc(100% - 20px));
  transform: translate(-50%, 160%); transition: transform .25s ease; visibility: hidden;
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 7px; border-radius: 999px;
  background: rgba(19,40,59,.97); color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.3);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overflow: hidden;
}
.mag-auddock.is-on { transform: translate(-50%, 0); visibility: visible; }
.mag-auddock::after { /* progress hairline */
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: #f2b134;
}
.mag-auddock button {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font-size: 21px;
  display: flex; align-items: center; justify-content: center; background: transparent; color: rgba(255,255,255,.85);
}
.mag-auddock button:hover { background: rgba(255,255,255,.1); color: #fff; }
.mag-auddock .mag-auddock__toggle { background: #f2b134; color: #13283b; }
.mag-auddock .mag-auddock__toggle:hover { background: #f5c25c; color: #13283b; }
.mag-auddock__txt { flex: 1; min-width: 0; cursor: pointer; text-align: left; background: none; border: 0; color: #fff; padding: 0; font: inherit; }
.mag-auddock__title { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mag-auddock__time { display: block; font-size: 12px; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; margin-top: 2px; }
@media print { .mag-aud, .mag-auddock, .mag-audfs { display: none !important; } }

/* ---------- full-screen "now playing" sheet ---------- */
html.mag-audfs-open, html.mag-audfs-open body { overflow: hidden !important; }
/* iPhone Safari paints the page background behind the status bar / toolbars, outside the fixed sheet → was white */
html.mag-audfs-open, html.mag-audfs-open body { background: #0e1f2e !important; }
.mag-audfs {
  position: fixed; inset: 0; z-index: 1200; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; color: #fff; background: #0e1f2e;
  box-shadow: 0 0 0 100vmax #0e1f2e; /* paints past the sheet's edges (toolbar gaps, rubber-band) */
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, calc(env(safe-area-inset-bottom) + 10px)) max(16px, env(safe-area-inset-left));
  opacity: 0; transform: translateY(28px); transition: opacity .22s ease, transform .22s ease;
}
.mag-audfs.is-in { opacity: 1; transform: none; }
.mag-audfs[hidden] { display: none; }
.mag-audfs__bg { /* blurred cover wash */
  position: absolute; inset: -60px; z-index: -2; background-size: cover; background-position: center;
  filter: blur(48px) saturate(1.15); opacity: .55;
}
.mag-audfs::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,31,46,.45) 0%, rgba(14,31,46,.8) 50%, rgba(14,31,46,.96) 100%);
}
.mag-audfs__top { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; height: 52px; }
.mag-audfs__brand {
  flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font: 700 11px/1.2 "Inter", sans-serif; letter-spacing: .26em; text-transform: uppercase; color: #f2b134;
}
.mag-audfs__icon {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; flex: 0 0 42px;
  padding: 0; margin: 0; line-height: 1; box-sizing: border-box; overflow: visible;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff;
}
.mag-audfs__icon:hover { background: rgba(255,255,255,.18); }
.mag-audfs__main {
  flex: 1; min-height: 0; width: 100%; max-width: 460px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.mag-audfs__art {
  position: relative; width: min(100%, 42vh, 420px); aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #1d3a54, #13283b); box-shadow: 0 24px 60px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; cursor: pointer;
  transition: transform .5s ease, box-shadow .5s ease;
}
.mag-audfs:not(.is-playing) .mag-audfs__art { transform: scale(.94); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.mag-audfs__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-audfs__art > .mdi { font-size: 96px; color: rgba(255,255,255,.35); }
.mag-audfs__tap {
  position: absolute; top: 50%; width: 64px; height: 64px; margin-top: -32px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.mag-audfs__tap--l { left: 16px; } .mag-audfs__tap--r { right: 16px; }
.mag-audfs__tap.is-on { animation: mag-tap .6s ease; }
@keyframes mag-tap { 0% { opacity: 0; transform: scale(.8); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.mag-audfs__kicker { display: flex; align-items: center; gap: 10px; font: 700 11.5px/1.2 "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #f2b134; }
.mag-audfs__title {
  margin: 8px 0 0; font: 600 clamp(22px, 3.2vw, 32px)/1.15 "Fraunces", Georgia, serif; letter-spacing: -.01em; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mag-audfs__by { margin-top: 8px; font: italic 400 16px/1.4 "Source Serif 4", Georgia, serif; color: rgba(255,255,255,.74); }
.mag-audfs .mag-aud__seek { width: 100%; height: 26px; --trk: rgba(255,255,255,.22); --fill: #f2b134; --thumb: #fff; }
.mag-audfs .mag-aud__seek::-webkit-slider-thumb { border-color: #f2b134; }
.mag-audfs .mag-aud__seek::-moz-range-thumb { border-color: #f2b134; }
.mag-audfs__times { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12.5px; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.mag-audfs__ctrl { display: flex; align-items: center; justify-content: space-between; max-width: 400px; width: 100%; margin: 0 auto; }
.mag-audfs__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 30px; line-height: 1;
}
.mag-audfs__btn small { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.6); margin-top: 1px; }
.mag-audfs__btn:hover { background: rgba(255,255,255,.1); }
.mag-audfs__play {
  width: 78px; height: 78px; border-radius: 50%; border: 0; cursor: pointer; font-size: 44px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; background: #f2b134; color: #13283b;
  box-shadow: 0 10px 30px rgba(242,177,52,.35); transition: transform .15s;
}
.mag-audfs__play:hover { transform: scale(1.05); }
.mag-audfs__extra { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mag-audfs__chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  color: #fff; font: 600 13px/1 "Inter", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.mag-audfs__chip:hover { background: rgba(255,255,255,.14); }
.mag-audfs__chip.is-on { background: #f2b134; border-color: #f2b134; color: #13283b; }
.mag-audfs__chip .mdi { font-size: 17px; }
.mag-audfs__chip--rate { min-width: 58px; justify-content: center; }
.mag-audfs__hint { text-align: center; font-size: 12px; color: rgba(255,255,255,.45); }
@media (pointer: fine) { .mag-audfs__hint--touch { display: none; } }
@media (pointer: coarse) { .mag-audfs__hint--keys { display: none; } }

/* tablets (landscape) + desktop: art left, details and controls right */
@media (min-width: 900px) and (min-height: 540px) {
  .mag-audfs { padding-left: 40px; padding-right: 40px; }
  .mag-audfs__main {
    max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 26px 64px;
    align-content: center;
  }
  .mag-audfs__art { grid-row: 1 / span 5; width: min(100%, 64vh, 520px); }
  .mag-audfs__title { font-size: clamp(28px, 3vw, 42px); -webkit-line-clamp: 4; }
  .mag-audfs__ctrl { margin: 0; max-width: none; justify-content: flex-start; gap: 18px; }
  .mag-audfs__extra { justify-content: flex-start; }
  .mag-audfs__hint { text-align: left; }
}
/* phones in landscape */
@media (max-height: 539px) and (orientation: landscape) {
  .mag-audfs__top { height: 42px; }
  .mag-audfs__main { max-width: 900px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; align-content: center; }
  .mag-audfs__art { grid-row: 1 / span 4; width: min(36vw, calc(100vh - 100px)); }
  .mag-audfs__title { font-size: 20px; -webkit-line-clamp: 2; }
  .mag-audfs__by, .mag-audfs__hint, .mag-audfs__extra .mag-audfs__chip--jump { display: none; }
  .mag-audfs__ctrl { margin: 0; justify-content: flex-start; gap: 6px; }
  .mag-audfs__extra { justify-content: flex-start; }
  .mag-audfs__play { width: 60px; height: 60px; font-size: 34px; }
  .mag-audfs__btn { width: 44px; height: 44px; font-size: 26px; }
}
/* the site's icon CSS pins .mdi::before to 18px — let the player size its icons */
.mag-aud .mdi::before, .mag-audfs .mdi::before, .mag-auddock .mdi::before { font-size: inherit; line-height: inherit; }
.mag-audfs h2.mag-audfs__title { text-transform: none !important; letter-spacing: -.01em !important; font-family: "Fraunces", Georgia, serif !important; font-weight: 600 !important; }
/* portrait phones: size to the VISIBLE height (dvh, i.e. minus Safari's bars) so nothing overflows —
   centred overflow used to push the artwork over the top row (share icon) and clip the bottom */
.mag-audfs__top { position: relative; z-index: 2; }
.mag-audfs__main { justify-content: safe center; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.mag-audfs__main::-webkit-scrollbar { display: none; }
@supports (height: 1dvh) { .mag-audfs__art { width: min(100%, 42dvh, 420px); } }
@media (max-height: 940px) and (orientation: portrait) {
  .mag-audfs__main { gap: 16px; }
  .mag-audfs__art { width: min(100%, 33vh, 420px); width: min(100%, 33dvh, 420px); }
}
@media (max-height: 760px) and (orientation: portrait) {
  .mag-audfs__main { gap: 14px; }
  .mag-audfs__art { width: min(100%, 32vh, 420px); width: min(100%, 32dvh, 420px); }
  .mag-audfs__title { font-size: 21px; -webkit-line-clamp: 2; }
  .mag-audfs__by { font-size: 14px; margin-top: 4px; }
  .mag-audfs__play { width: 68px; height: 68px; font-size: 38px; }
  .mag-audfs__btn { width: 46px; height: 46px; font-size: 27px; }
}
@media (max-height: 640px) and (orientation: portrait) {
  .mag-audfs__top { height: 44px; }
  .mag-audfs__main { gap: 10px; }
  .mag-audfs__art { width: min(100%, 26vh, 420px); width: min(100%, 26dvh, 420px); }
  .mag-audfs__hint { display: none; }
}
@media (max-width: 420px) { .mag-audfs__chip--jump { display: none; } .mag-audfs__brand { letter-spacing: .18em; font-size: 10.5px; } }
.mag-auddock button.mag-auddock__txt { flex: 1 1 auto; width: auto; height: auto; min-width: 0; display: block; border-radius: 8px; padding: 2px 6px; background: none; color: #fff; text-align: left; font-size: inherit; }
.mag-auddock button.mag-auddock__txt:hover { background: rgba(255,255,255,.06); }

/* =========================================================================
   Tighter spacing pass (2026-11-26) — less dead space, wider reading column.
   Revert: restore _backup/spacing_20261126/magazine.css
   ========================================================================= */
.mag-band { padding: 32px 0; }
@media (min-width: 768px) { .mag-band { padding: 44px 0; } }
.mag-sechead { margin-bottom: 20px; }
.mag-cover { gap: 24px; padding-top: 24px; padding-bottom: 28px; }
@media (min-width: 992px) { .mag-cover { gap: 32px; padding-top: 32px; } }
.mag-main { padding-bottom: 24px; }

/* article */
.mag-article { padding-bottom: 36px; }
.mag-art-head { max-width: 1000px; padding-top: 28px; }
.mag-art-head h1 + .mag-art-dek, .mag-art-dek { margin-top: 12px; max-width: 860px; }
.mag-art-byline { margin-top: 14px; }
.mag-art-tools { margin-top: 12px; }
.mag-art-hero { max-width: 960px; margin-top: 22px; }
.mag-art-hero img { max-height: 440px; }
.mag-aud { margin-top: 20px; max-width: 828px; }
.mag-prose { max-width: 860px; margin-top: 26px; font-size: 18.5px; line-height: 1.62; }
.mag-prose p { margin-bottom: .85em; }
.mag-prose h1, .mag-prose h2, .mag-prose h3, .mag-prose h4 { margin: 1.25em 0 .4em !important; }
.mag-prose ul, .mag-prose ol { margin-bottom: .9em; }
.mag-prose li { margin-bottom: .3em; }
.mag-prose hr { margin: 1.4em 0; }
.mag-prose blockquote, .mag-prose figure, .mag-prose table { margin-top: 1.1em; margin-bottom: 1.1em; }
.mag-prose .mag-keypoints { margin-bottom: 1.4em; }
.mag-take { max-width: 860px; margin-top: 30px; padding: 24px 26px; }
.mag-source, .mag-disclaimer { max-width: 860px; margin-top: 22px; }
.mag-related { margin-top: 36px; padding-top: 32px; }

/* Reading-frame rules (2026-11-26): hairline verticals either side of the article column,
   fading in under the header and out at the end, with a small gold diamond at the head. */
@media (min-width: 1180px) {
  .mag-article > article { position: relative; }
  .mag-article > article::before,
  .mag-article > article::after {
    content: ""; position: absolute; top: 28px; bottom: 0; width: 1px; pointer-events: none;
    background: linear-gradient(to bottom,
      rgba(27,31,36,0) 0, rgba(27,31,36,.13) 140px, rgba(27,31,36,.13) calc(100% - 200px), rgba(27,31,36,0) 100%);
  }
  .mag-article > article::before { left: calc(50% - 520px); }
  .mag-article > article::after  { left: calc(50% + 520px); }
  .mag-art-head::before, .mag-art-head::after {
    content: ""; position: absolute; top: 24px; width: 7px; height: 7px; transform: rotate(45deg);
    border: 1px solid var(--gold, #f2b134); background: var(--paper, #faf8f4); pointer-events: none;
  }
  .mag-art-head::before { left: calc(50% - 524px); }
  .mag-art-head::after  { left: calc(50% + 516px); }
}
@media print { .mag-article > article::before, .mag-article > article::after, .mag-art-head::before, .mag-art-head::after { display: none !important; } }
/* Frame rules moved out to the middle of the side margin (halfway between the hero edge and the
   window edge), capped at 720px from centre so they don't drift off on ultra-wide screens. */
@media (min-width: 1180px) {
  .mag-article > article::before { left: max(calc(25% - 240px), calc(50% - 720px)); }
  .mag-article > article::after  { left: min(calc(75% + 240px), calc(50% + 720px)); }
  .mag-art-head::before { left: calc(max(calc(25% - 240px), calc(50% - 720px)) - 4px); }
  .mag-art-head::after  { left: calc(min(calc(75% + 240px), calc(50% + 720px)) - 4px); }
}
/* `.mag p { margin:0 }` outranks a bare .mag-disclaimer, so the auto margins never applied
   and the box sat flush left. Higher specificity centres the box under the article column. */
.mag .mag-disclaimer, .mag-disclaimer { text-align: center; margin-left: auto; margin-right: auto; }

/* Dateline moved from above the nameplate to close the masthead, under the search (2026-11-26). */
.mag-masthead .mag-nameplate { padding-top: 34px; }
.mag-masthead .mag-search { margin-bottom: 18px; }
.mag-dateline {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
  margin: 0 auto !important; padding: 0 0 18px; text-align: center;
  font: 600 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.mag-dateline span { color: var(--gold); opacity: .7; letter-spacing: 0; }
@media (max-width: 480px) { .mag-dateline { letter-spacing: .14em; font-size: 10.5px; gap: 2px 8px; } }
.mag-dateline span { color: inherit; opacity: 1; letter-spacing: inherit; white-space: nowrap; }
.mag-dateline time { white-space: nowrap; }
.mag-dateline span::before { content: "\00B7"; color: var(--gold); opacity: .75; margin-right: 12px; letter-spacing: 0; }
@media (max-width: 480px) { .mag-dateline span::before { margin-right: 8px; } }
@media (max-width: 480px) {
  .mag-dateline time { flex-basis: 100%; }
  .mag-dateline time + span::before { content: none; }
}

/* ---- 2026-11-27: article tables + inline figures, matched to the eLearning reader (CORTEXT css/elearn_theme.php) ----
   Tables: full grid (vertical + horizontal lines), not just row rules.
   Figures: Lesson Studio / Content editor markup <figure class="el-fig el-fig-sm|md|lg el-fig-pos-* el-fig-frame-*">. */
.mag-prose th, .mag-prose td { border: 1px solid var(--rule); }
.mag-prose { isolation: isolate; }
.mag-prose::after { content: ""; display: table; clear: both; }
.mag-prose h2 { clear: both; }
.mag-prose figure.el-fig { margin: 1.4em auto; text-align: center; }
.mag-prose figure.el-fig-sm { max-width: 340px; }
.mag-prose figure.el-fig-md { max-width: 560px; }
.mag-prose figure.el-fig-lg { max-width: 100%; }
.mag-prose figure.el-fig img { display: block; width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--rule); border-radius: 0; }
.mag-prose figure.el-fig figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; }
.mag-prose figure.el-fig figcaption:empty { display: none; }
.mag-prose figure.el-fig:not([class*="el-fig-pos-"]) { display: table; width: auto; }
.mag-prose figure.el-fig:not([class*="el-fig-pos-"]) figcaption { display: table-caption; caption-side: bottom; }
.mag-prose figure.el-fig:not([class*="el-fig-pos-"]) img { width: auto; max-width: min(100%, 720px); max-height: min(55vh, 420px); }
.mag-prose figure.el-fig-sm:not([class*="el-fig-pos-"]) img { max-width: min(100%, 280px); }
.mag-prose figure.el-fig-md:not([class*="el-fig-pos-"]) img { max-width: min(100%, 400px); }
.mag-prose figure.el-fig-pos-left, .mag-prose figure.el-fig-pos-round { float: left; margin: .35em 1.4em .8em 0; }
.mag-prose figure.el-fig-pos-right { float: right; margin: .35em 0 .8em 1.4em; }
.mag-prose figure.el-fig-pos-left.el-fig-sm, .mag-prose figure.el-fig-pos-right.el-fig-sm { width: 28%; max-width: 220px; }
.mag-prose figure.el-fig-pos-left.el-fig-md, .mag-prose figure.el-fig-pos-right.el-fig-md { width: 38%; max-width: 320px; }
.mag-prose figure.el-fig-pos-left.el-fig-lg, .mag-prose figure.el-fig-pos-right.el-fig-lg { width: 50%; max-width: 420px; }
.mag-prose figure.el-fig-pos-left figcaption, .mag-prose figure.el-fig-pos-right figcaption { text-align: left; font-style: italic; }
.mag-prose figure.el-fig-pos-round { width: 26%; max-width: 200px; shape-outside: circle(50%); shape-margin: 12px; }
.mag-prose figure.el-fig-pos-round.el-fig-md { width: 34%; max-width: 260px; }
.mag-prose figure.el-fig-pos-round.el-fig-lg { width: 44%; max-width: 340px; }
.mag-prose figure.el-fig-pos-round img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.mag-prose figure.el-fig-pos-round figcaption, .mag-prose figure.el-fig-pos-behind figcaption { display: none; }
.mag-prose figure.el-fig-pos-behind { position: relative; height: 0; margin: 0 auto; }
.mag-prose figure.el-fig-pos-behind img { position: absolute; top: .4em; left: 0; z-index: -1; opacity: .16; border: 0; pointer-events: none; box-shadow: none !important; }
.mag-prose figure.el-fig-frame-plain img { border: 0; }
.mag-prose figure.el-fig-frame-shadow img { border: 0; border-radius: 10px; box-shadow: 0 8px 22px rgba(20, 40, 70, .16), 0 1px 3px rgba(20, 40, 70, .10); }
.mag-prose figure.el-fig-frame-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 8px 8px 6px; box-shadow: 0 4px 14px rgba(20, 40, 70, .08); }
.mag-prose figure.el-fig-frame-card img { border: 0; border-radius: 7px; }
.mag-prose figure.el-fig-frame-card figcaption { margin-top: 6px; padding: 0 4px 2px; }
.mag-prose figure.el-fig-pos-round.el-fig-frame-card { background: none; border: 0; padding: 0; box-shadow: none; }
.mag-prose figure.el-fig-pos-round.el-fig-frame-shadow img { border-radius: 50%; }
@media (max-width: 600px) {
  .mag-prose figure.el-fig-pos-left, .mag-prose figure.el-fig-pos-right { float: none; width: auto; max-width: 340px; margin: 1.2em auto; }
  .mag-prose figure.el-fig-pos-left figcaption, .mag-prose figure.el-fig-pos-right figcaption { text-align: center; }
  .mag-prose figure.el-fig-pos-round { width: 34%; }
}
@media print { .mag-prose figure.el-fig { break-inside: avoid; } }
