/* =====================================================================
   MEGAGEN — Content-surface redesign (rd-content.css)
   Loads AFTER redesign.css. Elevates ONLY the content surfaces:
     1. Articles hub /articles/  (.mg-news-*, .mg-blog-*, .mg-arthub__*)
     2. Single article           (.mg-post__*)
     3. Research inserts         (.mg-rstats, .mg-rfig, .mg-rsvg, .mg-refs)
     4. PDF catalog /catalog/    (.mg-cat-*)
   Rules: design tokens with literal fallbacks · logical properties only
   (RTL Persian) · no letter-spacing on Persian glyph runs · calm motion
   (≤300ms, tokenised ease) · dark-mode parity · 44px+ tap targets.
   NOTE: never touches .mg-pdp-headwrap, #site-header, .mg-nav position,
   html/body overflow, or [data-reveal] opacity/transform.
   ===================================================================== */

/* =====================================================================
   0 · SHARED EDITORIAL PRIMITIVES
   ===================================================================== */

/* Dates, read-times and citation strings never jitter */
.mg-blog-card__meta,
.mg-news-feature__meta,
.mg-news-row__date,
.mg-news-row__read,
.mg-post__meta,
.mg-news-pdfcard__foot,
.mg-blog-pager {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
}


































/* Save-for-later button on each card. */
.mg-blog-card { position: relative; }
.mg-blog-card__save {
  display: grid;
  position: absolute;
  z-index: 4;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 9px;
  background: rgba(255, 255, 255, .92);
  color: var(--mg-muted, #56677b);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.mg-blog-card__save svg { width: 17px; height: 17px; }
.mg-blog-card__save:hover { color: var(--mg-accent, #0067b1); transform: translateY(-1px); }
.mg-blog-card__save.is-saved { background: var(--mg-accent, #0067b1); border-color: var(--mg-accent, #0067b1); color: #fff; }
.mg-blog-card__save.is-saved svg { fill: currentColor; }
[data-theme="dark"] .mg-blog-card__save { background: rgba(19, 29, 44, .92); border-color: rgba(255,255,255,.18); color: #b6c6d4; }


















































































.mg-blog-card__read { color: var(--mg-faint, #8496a8); font-variant-numeric: tabular-nums; }
.mg-blog-card__read::before { content: "·"; margin-inline-end: 7px; }



















































































/* Latin citations inside an RTL page read in their own direction */
.mg-post__source,
.mg-blog-card__src,
.mg-news-pdfcard__src,
.mg-refs li {
  unicode-bidi: plaintext;
  text-align: start;
}

/* Section titles get a calm editorial spine (works on light + dark bands) */
.mg-news-sec__title {
  position: relative;
  padding-inline-start: 18px;
}
.mg-news-sec__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.16em;
  inset-block-end: 0.16em;
  width: 4px;
  border-radius: var(--mg-r-pill, 999px);
  background: linear-gradient(180deg, var(--mg-accent, #0067b1), var(--mg-accent-deep, #024e86));
}

/* =====================================================================
   1 · ARTICLES HUB — DARK HERO
   ===================================================================== */

.mg-news-hero__head { margin-block: 14px 46px; }

.mg-news-hero__eyebrow {
  font-size: var(--mg-fs-xs, .8125rem);
  font-weight: 700;
  color: #9fd2f8;
  background: rgba(0, 103, 177, .22);
  border: 1px solid rgba(124, 192, 242, .30);
  padding: 8px 18px;
  border-radius: var(--mg-r-pill, 999px);
}

.mg-news-hero__title {
  font-size: clamp(2.25rem, 5.4vw, 3.9rem);
  line-height: 1.12;
  margin-block: 20px 16px;
  text-wrap: balance;
}

.mg-news-hero__lead {
  font-size: clamp(.9688rem, 1.5vw, 1.0938rem);
  line-height: 2;
  color: rgba(255, 255, 255, .78);
  max-width: 62ch;
  margin-inline: auto;
}

/* ---- Featured article (hero card) ---- */
.mg-news-feature {
  border-radius: var(--mg-r-lg, 22px);
  transition: transform var(--mg-dur, .24s) var(--mg-ease, cubic-bezier(.23, 1, .32, 1)),
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease);
}
.mg-news-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 42px 84px -36px rgba(0, 0, 0, .8);
}
/* Deeper veil floor keeps the headline ≥ 4.5:1 over any photo */
.mg-news-feature__veil {
  background: linear-gradient(180deg,
    rgba(6, 14, 25, .04) 0%,
    rgba(6, 14, 25, .46) 46%,
    rgba(6, 14, 25, .94) 100%);
}
.mg-news-feature__cat {
  font-size: var(--mg-fs-xs, .8125rem);
  font-weight: 700;
  color: #aed9fb;
  margin-block-end: 12px;
}
.mg-news-feature__title {
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  line-height: 1.42;
  text-wrap: balance;
  margin-block-end: 12px;
}
.mg-news-feature__ex {
  font-size: var(--mg-fs-sm, .9375rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, .84);
  max-width: 58ch;
}
.mg-news-feature__meta {
  gap: 14px;
  font-size: var(--mg-fs-xs, .8125rem);
  color: rgba(255, 255, 255, .74);
}
/* dot separator between plain meta items (never inside the PDF badge) */
.mg-news-feature__meta > span:not(.mg-news-feature__pdf)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  margin-inline-end: 12px;
  vertical-align: 2px;
}

/* ---- Recent-articles side list ---- */
.mg-news-list {
  border-radius: var(--mg-r-lg, 22px);
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .11);
}
.mg-news-row {
  position: relative;
  padding-block: 19px;
  min-height: 44px;
  transition: padding-inline-start var(--mg-dur, .24s) var(--mg-ease, ease);
}
.mg-news-row::before {
  content: "";
  position: absolute;
  inset-inline-start: -24px;
  inset-block-start: 22px;
  inset-block-end: 22px;
  width: 3px;
  border-radius: var(--mg-r-pill, 999px);
  background: var(--mg-accent, #0067b1);
  opacity: 0;
  transition: opacity var(--mg-dur, .24s) ease;
}
.mg-news-row:hover::before,
.mg-news-row:focus-visible::before { opacity: 1; }
.mg-news-row__date { color: rgba(255, 255, 255, .56); }
.mg-news-row__title {
  font-size: 1rem;
  line-height: 1.65;
  margin-block: 7px 11px;
}
.mg-news-row:hover .mg-news-row__title { color: #8fc9f5; }
.mg-news-row__read { color: rgba(255, 255, 255, .56); }

/* ---- Search + category chips ---- */
.mg-news-search input {
  height: 58px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}
.mg-news-search input:focus {
  border-color: #6db6ec;
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 4px rgba(109, 182, 236, .18);
}
.mg-news-chip {
  min-height: 44px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: var(--mg-fs-sm, .9375rem);
  color: rgba(255, 255, 255, .84);
  transition: background-color var(--mg-dur, .24s) ease,
              border-color var(--mg-dur, .24s) ease,
              color var(--mg-dur, .24s) ease;
}

/* ---- Section heads ---- */
.mg-news-sec { padding-block: 78px; }
.mg-news-sec__head { margin-block-end: 34px; align-items: baseline; }
.mg-news-sec__note { font-size: var(--mg-fs-sm, .9375rem); color: var(--mg-muted, #56677b); }
.mg-news-viewall {
  min-height: 44px;
  font-size: var(--mg-fs-sm, .9375rem);
  padding: 10px 22px;
  transition: transform var(--mg-dur, .24s) var(--mg-ease, ease),
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease),
              background-color var(--mg-dur, .24s) ease;
}
.mg-news-viewall:hover { background: var(--mg-accent-deep, #024e86); }

/* =====================================================================
   2 · ARTICLE CARDS (hub grid · related · big variant)
   ===================================================================== */

.mg-blog-grid { gap: 26px; }

.mg-blog-card {
  background: var(--mg-bg, #fff);
  border: 1px solid var(--mg-border, #e5eaf1);
  border-radius: var(--mg-r-lg, 22px);
  box-shadow: var(--mg-shadow-xs, 0 1px 2px rgba(11, 19, 32, .06));
  transition: transform var(--mg-dur, .24s) var(--mg-ease, cubic-bezier(.23, 1, .32, 1)),
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease),
              border-color var(--mg-dur, .24s) ease;
}
.mg-blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--mg-border-strong, #d4dce7);
  box-shadow: var(--mg-shadow, 0 10px 34px -14px rgba(11, 19, 32, .16));
}

.mg-blog-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--mg-accent-soft, #e9f1fa), var(--mg-surface-2, #eef3f9));
}
.mg-blog-card__media img { transition: transform .3s var(--mg-ease, ease); }
.mg-blog-card:hover .mg-blog-card__media img { transform: scale(1.04); }
.mg-blog-card__ph {
  letter-spacing: .16em; /* Latin wordmark only */
  font-size: var(--mg-fs-sm, .9375rem);
  color: var(--mg-accent, #0067b1);
  opacity: .45;
}
.mg-blog-card__pdf {
  font-size: .6875rem;
  letter-spacing: .08em; /* Latin only */
  padding: 5px 10px;
  border-radius: var(--mg-r-sm, 8px);
  box-shadow: 0 6px 16px -6px rgba(210, 59, 46, .55);
}

.mg-blog-card__body { padding: 22px 24px 24px; gap: 10px; }
.mg-blog-card__meta {
  gap: 0 12px;
  font-size: var(--mg-fs-xs, .8125rem);
  color: var(--mg-muted, #56677b);
}
.mg-blog-card__cat {
  font-size: var(--mg-fs-xs, .8125rem);
  font-weight: 700;
  color: var(--mg-accent-deep, #024e86);
  background: var(--mg-accent-soft, #e9f1fa);
  border-radius: var(--mg-r-pill, 999px);
  padding: 4px 12px;
}
/* dot between category chip and date */
.mg-blog-card__cat + time::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mg-faint, #8496a8);
  margin-inline-end: 10px;
  vertical-align: 3px;
}
.mg-blog-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border: 1px solid var(--mg-border, #e5eaf1);
  border-radius: 8px;
  background: #fff;
}
.mg-blog-card__icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.mg-blog-card__body h3 {
  font-size: 1.1875rem;
  line-height: 1.55;
  letter-spacing: 0; /* keep Persian joining intact */
}
.mg-blog-card__body h3 a {
  color: var(--mg-heading, #0a1626);
  transition: color var(--mg-dur, .24s) ease;
}
.mg-blog-card__body h3 a:hover { color: var(--mg-accent, #0067b1); }

.mg-blog-card__body p {
  font-size: var(--mg-fs-sm, .9375rem);
  line-height: 1.95;
  color: var(--mg-muted, #56677b);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mg-blog-card__src {
  font-size: .75rem;
  line-height: 1.7;
  color: var(--mg-faint, #8496a8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mg-blog-card__act { margin-block-start: 6px; gap: 8px 16px; }
.mg-blog-card__more {
  min-height: 44px;
  align-items: center;
  font-size: var(--mg-fs-sm, .9375rem);
  color: var(--mg-accent, #0067b1);
}
.mg-blog-card__more svg { transition: transform var(--mg-dur, .24s) var(--mg-ease, ease); }
.mg-blog-card__more:hover { color: var(--mg-accent-deep, #024e86); }
.mg-blog-card__more:hover svg { transform: translateX(-4px); } /* arrow points forward (left) in RTL */
.mg-blog-card__dl {
  min-height: 44px;
  padding: 8px 16px;
  font-size: var(--mg-fs-xs, .8125rem);
  transition: background-color var(--mg-dur, .24s) ease, color var(--mg-dur, .24s) ease;
}

/* Big (featured-in-grid) variant: give the text side breathing room */
@media (min-width: 760px) {
  .mg-blog-card--big .mg-blog-card__body { padding: 36px 38px; gap: 12px; }
  .mg-blog-card--big .mg-blog-card__body h3 { font-size: 1.625rem; line-height: 1.45; }
  .mg-blog-card--big .mg-blog-card__body p { -webkit-line-clamp: 4; }
}

/* ---- Pager: comfortable targets, quiet chrome ---- */
.mg-blog-pager { margin-block-start: 44px; }
.mg-blog-pager a,
.mg-blog-pager span {
  min-width: 44px;
  height: 44px;
  border-radius: var(--mg-r, 14px);
  border: 1px solid var(--mg-border, #e5eaf1);
  background: var(--mg-bg, #fff);
  color: var(--mg-heading, #0a1626);
  transition: border-color var(--mg-dur, .24s) ease, color var(--mg-dur, .24s) ease,
              background-color var(--mg-dur, .24s) ease;
}
.mg-blog-pager a:hover {
  border-color: var(--mg-accent, #0067b1);
  color: var(--mg-accent, #0067b1);
  background: var(--mg-accent-soft, #e9f1fa);
}
.mg-blog-pager .current {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}

/* ---- Legacy hub toolbar (kept in sync with the chips above) ---- */
.mg-arthub__search input { font-family: inherit; }
.mg-arthub__chip {
  min-height: 44px;
  padding: 10px 20px;
  transition: background-color var(--mg-dur, .24s) ease,
              border-color var(--mg-dur, .24s) ease,
              color var(--mg-dur, .24s) ease;
}

/* =====================================================================
   3 · WHITEPAPER / PDF WALL (dark band)
   ===================================================================== */

.mg-news-pdfgrid { gap: 24px; }
.mg-news-pdfcard {
  border-radius: var(--mg-r-lg, 22px);
  padding: 30px 32px;
  transition: transform var(--mg-dur, .24s) var(--mg-ease, ease),
              border-color var(--mg-dur, .24s) ease,
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease);
}
.mg-news-pdfcard__badge { letter-spacing: .08em; } /* Latin "PDF" */
.mg-news-pdfcard__brand { letter-spacing: .18em; font-size: .75rem; } /* Latin wordmark */
.mg-news-pdfcard__title {
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: balance;
}
.mg-news-pdfcard__title a:hover { color: #8fc9f5; }
.mg-news-pdfcard__src { font-size: .75rem; color: rgba(255, 255, 255, .6); line-height: 1.7; }
.mg-news-pdfcard__cat { color: #aed9fb; }
.mg-news-pdfcard__foot time { color: rgba(255, 255, 255, .58); }
.mg-news-pdfcard__dl {
  min-height: 44px;
  padding: 9px 18px;
  font-size: var(--mg-fs-xs, .8125rem);
  transition: background-color var(--mg-dur, .24s) ease, border-color var(--mg-dur, .24s) ease;
}

/* =====================================================================
   4 · EVENTS EMPTY-STATE + CLOSING CTA
   ===================================================================== */

.mg-news-events {
  border-radius: var(--mg-r-lg, 22px);
  border: 1.5px dashed var(--mg-border-strong, #d4dce7);
  background: var(--mg-surface, #f5f8fc);
  padding-block: 56px;
}
.mg-news-events__title { color: var(--mg-heading, #0a1626); font-size: 1.25rem; }
.mg-news-events__sub {
  color: var(--mg-muted, #56677b);
  max-width: 46ch;
  margin-inline: auto;
  line-height: 1.95;
}
.mg-news-events__cta {
  min-height: 46px;
  border-color: var(--mg-border-strong, #d4dce7);
  transition: background-color var(--mg-dur, .24s) ease,
              border-color var(--mg-dur, .24s) ease,
              color var(--mg-dur, .24s) ease;
}

.mg-news-cta__card { border-radius: var(--mg-r-lg, 22px); }
.mg-news-cta__title { text-wrap: balance; }
.mg-news-cta__sub { font-size: var(--mg-fs-base, 1rem); line-height: 1.95; }
.mg-news-cta__btn {
  min-height: 50px;
  transition: transform var(--mg-dur, .24s) var(--mg-ease, ease),
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease);
}

/* =====================================================================
   5 · SINGLE ARTICLE — HEADER
   ===================================================================== */

.mg-post__head { padding-block: 126px 12px; }

.mg-post__meta {
  gap: 0 14px;
  font-size: var(--mg-fs-xs, .8125rem);
  color: var(--mg-muted, #56677b);
  margin-block-end: 18px;
}
.mg-post__cat {
  font-weight: 700;
  color: var(--mg-accent-deep, #024e86);
  background: var(--mg-accent-soft, #e9f1fa);
  padding: 5px 14px;
  border-radius: var(--mg-r-pill, 999px);
}
/* dot between date and read-time */
.mg-post__read::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mg-faint, #8496a8);
  margin-inline-end: 12px;
  vertical-align: 3px;
}

.mg-post__title {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.25;
  color: var(--mg-heading, #0a1626);
  text-wrap: balance;
}

/* Citation line under the title — quiet, hairline-framed, LTR-aware */
.mg-post__source {
  margin-block-start: 18px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--mg-border, #e5eaf1);
  max-width: 72ch;
  font-size: var(--mg-fs-xs, .8125rem);
  line-height: 1.9;
  color: var(--mg-muted, #56677b);
}
.mg-post__article-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  margin-block: 18px 2px;
  overflow: hidden;
  border: 1px solid var(--mg-border, #e5eaf1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(11, 19, 32, .08);
}
.mg-post__article-icon img { width: 100%; height: 100%; object-fit: contain; padding: 9px; }

.mg-post__pdf {
  min-height: 46px;
  margin-block-start: 20px;
  transition: transform var(--mg-dur, .24s) var(--mg-ease, ease),
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease),
              background-color var(--mg-dur, .24s) ease;
}
.mg-post__pdf:hover { background: #b92f23; }

/* ---- Featured image ---- */
.mg-post__hero { margin-block-start: 34px; }
.mg-post__hero img { border: 0; box-shadow: none; }

/* =====================================================================
   6 · SINGLE ARTICLE — READING EXPERIENCE
   ===================================================================== */

.mg-post__body { padding-block: 46px 76px; }

.mg-post__content {
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 2.05;
  color: var(--mg-text, #0b1320);
  overflow-wrap: break-word;
}
.mg-post__content > * { margin-block: 0 1.35em; }

.mg-post__meta > .mg-post__author::before {
	content: "•";
	margin-inline-end: 12px;
	opacity: .5;
	font-size: 8px;
	vertical-align: 2px;
}

.mg-post__content .mg-post__notice {
	margin-block: 2rem;
	padding: 22px 24px;
	border: 1px solid rgba(0, 103, 177, .2);
	border-inline-start: 4px solid var(--mg-accent, #0067b1);
	border-radius: 6px 18px 18px 6px;
	background: rgba(0, 103, 177, .055);
	color: #24455a;
	font-size: .95em;
	line-height: 1.95;
}

.mg-post__content .mg-post__table-wrap {
	max-width: 100%;
	overflow-x: auto;
	margin-block: 2rem;
	border-radius: 16px;
	-webkit-overflow-scrolling: touch;
}

.mg-post__content .mg-post__table-wrap table {
	min-width: 650px;
	margin: 0;
}

.mg-post__content .mg-post__cta-inline {
	margin-block: 2.7rem 1rem;
	padding: 26px 28px;
	border-radius: 22px 8px 22px 22px;
	background: #0a2d43;
	color: #d8e8ef;
	box-shadow: 0 22px 50px -36px rgba(4, 35, 54, .75);
}

.mg-post__content .mg-post__cta-inline strong {
	display: block;
	margin-bottom: 8px;
	color: #fff;
	font-size: 1.14em;
}

.mg-post__content .mg-post__cta-inline p { margin: 0; }
.mg-post__content .mg-post__cta-inline a { color: #8fd6f7; }

/* Opening paragraph reads as a deck/lede */
.mg-post__content > p:first-of-type {
  font-size: 1.14em;
  line-height: 2;
  color: var(--mg-heading, #0a1626);
}

.mg-post__content h2 {
  font-size: 1.5625rem;
  line-height: 1.4;
  margin-block: 2.3em .75em;
  color: var(--mg-heading, #0a1626);
}
/* short accent overline gives each section a typographic anchor */
.mg-post__content h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: var(--mg-r-pill, 999px);
  background: linear-gradient(90deg, var(--mg-accent, #0067b1), var(--mg-accent-deep, #024e86));
  margin-block-end: 14px;
}
.mg-post__content h3 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-block: 1.8em .55em;
  color: var(--mg-heading, #0a1626);
}

.mg-post__content a {
  color: var(--mg-accent-deep, #024e86);
  text-decoration-color: rgba(0, 103, 177, .35);
  text-underline-offset: 4px;
  transition: color var(--mg-dur, .24s) ease, text-decoration-color var(--mg-dur, .24s) ease;
}
.mg-post__content a:hover {
  color: var(--mg-accent, #0067b1);
  text-decoration-color: currentColor;
}

/* Editorial pull-quote: hairline spine, no boxy pill */
.mg-post__content blockquote {
  margin-block: 2em;
  margin-inline: 0;
  padding-block: 6px;
  padding-inline: 26px 8px;
  background: transparent;
  border-radius: 0;
  border-inline-start: 3px solid var(--mg-accent, #0067b1);
  font-size: 1.12em;
  font-weight: 600;
  line-height: 1.95;
  color: var(--mg-heading, #0a1626);
}
.mg-post__content blockquote p:last-child { margin-block-end: 0; }
.mg-post__content blockquote cite {
  display: block;
  margin-block-start: .6em;
  font-style: normal;
  font-weight: 400;
  font-size: var(--mg-fs-xs, .8125rem);
  color: var(--mg-muted, #56677b);
}

/* Lists: accent markers, calm indent */
.mg-post__content ul,
.mg-post__content ol { padding-inline-start: 1.4em; }
.mg-post__content li { margin-block: .45em; }
.mg-post__content li::marker {
  color: var(--mg-accent, #0067b1);
  font-weight: 700;
}

/* Figures + captions (native inserts and .mg-rfig share the grammar) */
.mg-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mg-r, 14px);
}
.mg-post__content figure { margin-block: 2em; margin-inline: 0; }
.mg-post__content figcaption {
  margin-block-start: 12px;
  font-size: var(--mg-fs-xs, .8125rem);
  line-height: 1.9;
  color: var(--mg-muted, #56677b);
  text-align: center;
}

/* In-article tables: bordered, scannable, numerals aligned */
.mg-post__content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mg-border, #e5eaf1);
  border-radius: var(--mg-r, 14px);
  overflow: hidden;
  font-size: .92em;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}
.mg-post__content th {
  background: var(--mg-surface-2, #eef3f9);
  color: var(--mg-heading, #0a1626);
  font-size: var(--mg-fs-xs, .8125rem);
  font-weight: 700;
  text-align: start;
  padding: 11px 14px;
  border-block-end: 1px solid var(--mg-border, #e5eaf1);
}
.mg-post__content td {
  padding: 11px 14px;
  border-block-end: 1px solid var(--mg-border, #e5eaf1);
  vertical-align: top;
}
.mg-post__content tr:last-child td { border-block-end: 0; }

/* Thematic break: short centred rule, a breath between movements */
.mg-post__content hr {
  border: 0;
  width: 72px;
  height: 3px;
  border-radius: var(--mg-r-pill, 999px);
  background: var(--mg-border-strong, #d4dce7);
  margin-block: 3em;
  margin-inline: auto;
}

/* Paginated posts */
.mg-post__pages {
  margin-block-start: 2em;
  padding-block-start: 1.2em;
  border-block-start: 1px solid var(--mg-border, #e5eaf1);
  font-weight: 700;
  color: var(--mg-muted, #56677b);
}
.mg-post__pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  margin-inline: 3px;
  border: 1px solid var(--mg-border, #e5eaf1);
  border-radius: var(--mg-r-sm, 8px);
  text-decoration: none;
}

/* =====================================================================
   7 · RESEARCH INSERTS (key numbers · figures · references)
   ===================================================================== */

.mg-rstats { gap: 14px; margin-block: 8px 34px; }
.mg-rstat {
  background: var(--mg-surface, #f5f8fc);
  border: 1px solid var(--mg-border, #e5eaf1);
  border-radius: var(--mg-r, 14px);
  padding: 20px 16px;
  transition: transform var(--mg-dur, .24s) var(--mg-ease, ease),
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease),
              border-color var(--mg-dur, .24s) ease;
}
.mg-rstat:hover {
  transform: translateY(-3px);
  border-color: var(--mg-border-strong, #d4dce7);
  box-shadow: var(--mg-shadow, 0 10px 34px -14px rgba(11, 19, 32, .16));
}
.mg-rstat b {
  font-variant-numeric: tabular-nums;
  color: var(--mg-accent-deep, #024e86);
}
.mg-rstat span {
  font-size: var(--mg-fs-xs, .8125rem);
  color: var(--mg-muted, #56677b);
  line-height: 1.7;
}

.mg-rfig { margin-block: 2.2em; }
.mg-rfig img,
.mg-rsvg { border-radius: var(--mg-r, 14px); }
.mg-rsvg {
  background: linear-gradient(180deg, var(--mg-bg, #fff), var(--mg-surface, #f5f8fc));
  border: 1px solid var(--mg-border, #e5eaf1);
  padding: 24px 20px;
}
.mg-rfig figcaption {
  font-size: var(--mg-fs-xs, .8125rem);
  color: var(--mg-muted, #56677b);
}
.mg-rfig__credit { color: var(--mg-faint, #8496a8); }

.mg-refs {
  margin-block: 44px 8px;
  padding: 24px 26px;
  background: var(--mg-surface, #f5f8fc);
  border: 1px solid var(--mg-border, #e5eaf1);
  border-inline-start: 3px solid var(--mg-accent, #0067b1);
  border-radius: var(--mg-r, 14px);
}
.mg-refs h3 {
  margin-block: 0 12px;
  font-size: var(--mg-fs-sm, .9375rem);
  color: var(--mg-heading, #0a1626);
}
.mg-refs li {
  font-size: var(--mg-fs-xs, .8125rem);
  line-height: 2;
  color: var(--mg-muted, #56677b);
}
.mg-refs__links { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-inline-start: 10px; }
.mg-refs__links a {
  display: inline-flex; align-items: center; min-block-size: 30px; padding-inline: 9px;
  border: 1px solid var(--mg-border, #e5eaf1); color: var(--mg-accent, #0067b1);
  background: var(--mg-bg, #fff); font-weight: 800; line-height: 1; text-decoration: none;
}
.mg-refs__links a:hover { border-color: var(--mg-accent, #0067b1); }
.mg-refs__links a:focus-visible { outline: 3px solid rgba(0, 103, 177, .25); outline-offset: 2px; }
.mg-research-method-note {
  margin-block: 34px 0; padding: 16px 18px; border-inline-start: 3px solid var(--mg-accent, #0067b1);
  background: var(--mg-surface-2, #eef3f9); color: var(--mg-muted, #56677b); font-size: var(--mg-fs-xs, .8125rem); line-height: 2;
}
.mg-research-method-note strong { color: var(--mg-heading, #0a1626); }
.mg-research-lens { margin-block: 46px; padding-block: 34px; border-block: 1px solid var(--mg-border, #dfe7ef); }
.mg-research-lens > h2 { margin-block-start: 0; }
.mg-research-lens__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--mg-border, #dfe7ef); background: var(--mg-border, #dfe7ef); }
.mg-research-lens__grid article { padding: 22px; background: var(--mg-bg, #fff); }
.mg-research-lens__grid strong { display: block; margin-block-end: 8px; color: var(--mg-heading, #0a1626); font-size: 14px; }
.mg-research-lens__grid p { margin: 0; color: var(--mg-muted, #5a6b7e); font-size: 14px; line-height: 1.95; }
@media (max-width: 720px) { .mg-research-lens__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   8 · SINGLE ARTICLE — FOOT (share · tags · CTA · related)
   ===================================================================== */

/* --- "Cite this article" -------------------------------------------------
   A ready-made citation carrying the canonical URL. No code can create a
   backlink; this just makes citing the page effortless for someone who
   already wants to. --- */
.mg-post__cite {
  margin-block-start: 38px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--mg-border, #e5eaf1);
  border-radius: 16px;
  background: var(--mg-surface, #f5f8fc);
}

.mg-post__cite h2 {
  margin: 0 0 6px;
  font-size: var(--mg-fs-md, 1.0625rem);
  font-weight: 800;
  color: var(--mg-heading, #0b1320);
}

.mg-post__cite-note {
  margin: 0 0 14px;
  font-size: var(--mg-fs-xs, .8125rem);
  line-height: 1.85;
  color: var(--mg-muted, #56677b);
}

.mg-post__cite-box {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 0;
  border-inline-start: 3px solid var(--mg-accent, #0067b1);
  border-radius: 10px;
  background: var(--mg-bg, #fff);
  color: var(--mg-text, #0b1320);
  font-size: var(--mg-fs-xs, .8125rem);
  line-height: 2;
  /* A citation is copied and pasted, so it must never be silently truncated. */
  overflow-wrap: anywhere;
}

.mg-post__cite-act { display: flex; flex-wrap: wrap; gap: 9px; }

.mg-post__share-btn.is-copied {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}

.mg-post__share { margin-block-start: 34px; padding-block-start: 26px; }
.mg-post__share-lbl { font-size: var(--mg-fs-xs, .8125rem); }
.mg-post__share-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: var(--mg-fs-xs, .8125rem);
  background: var(--mg-surface, #f5f8fc);
  border: 1px solid var(--mg-border, #e5eaf1);
  color: var(--mg-heading, #0a1626);
  transition: background-color var(--mg-dur, .24s) ease,
              border-color var(--mg-dur, .24s) ease,
              color var(--mg-dur, .24s) ease;
}
.mg-post__share-btn:hover {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}

.mg-post__tags { margin-block-start: 28px; }
.mg-post__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  font-size: var(--mg-fs-xs, .8125rem);
  transition: color var(--mg-dur, .24s) ease, border-color var(--mg-dur, .24s) ease;
}

.mg-post__cta { margin-block-start: 40px; }

.mg-post__related { padding-block: 34px 10px; }
.mg-post__related .mg-arw-h2 {
  position: relative;
  padding-inline-start: 18px;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
}
.mg-post__related .mg-arw-h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .16em;
  inset-block-end: .16em;
  width: 4px;
  border-radius: var(--mg-r-pill, 999px);
  background: linear-gradient(180deg, var(--mg-accent, #0067b1), var(--mg-accent-deep, #024e86));
}

/* =====================================================================
   9 · PDF CATALOG /catalog/
   ===================================================================== */

/* Full-bleed catalog hero: keep text and controls inside a safe gutter. */
.mg-cat-hero {
  padding-inline: clamp(18px, 4vw, 32px);
}

.mg-cat-hero .mg-arw-eyebrow {
  display: inline-block;
  font-size: var(--mg-fs-xs, .8125rem);
  font-weight: 700;
  color: var(--mg-accent-deep, #024e86);
  background: var(--mg-accent-soft, #e9f1fa);
  border: 1px solid var(--mg-border, #e5eaf1);
  padding: 7px 16px;
  border-radius: var(--mg-r-pill, 999px);
}
.mg-cat-title {
  font-size: clamp(2.125rem, 4.6vw, 3.375rem);
  line-height: 1.14;
  color: var(--mg-heading, #0a1626);
  margin-block: 14px 12px;
  text-wrap: balance;
}
.mg-cat-hero .mg-arw-lead {
  font-size: var(--mg-fs-md, 1.125rem);
  line-height: 2;
  color: var(--mg-muted, #56677b);
  max-width: 62ch;
}

/* Toolbar */
.mg-cat-tools { margin-block-start: 30px; gap: 14px 18px; }
.mg-cat-search {
  height: 54px;
  background: var(--mg-bg, #fff);
  border: 1px solid var(--mg-border-strong, #d4dce7);
  box-shadow: var(--mg-shadow-xs, 0 1px 2px rgba(11, 19, 32, .06));
  font-size: 1rem;
  transition: border-color var(--mg-dur, .24s) ease, box-shadow var(--mg-dur, .24s) ease;
}
.mg-cat-search::placeholder { color: var(--mg-faint, #8496a8); }
.mg-cat-search:focus {
  border-color: var(--mg-accent, #0067b1);
  box-shadow: var(--mg-ring, 0 0 0 3px rgba(0, 103, 177, .30));
}
.mg-cat-chip {
  min-height: 44px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: var(--mg-fs-sm, .9375rem);
  background: var(--mg-bg, #fff);
  color: var(--mg-muted, #56677b);
  transition: background-color var(--mg-dur, .24s) ease,
              border-color var(--mg-dur, .24s) ease,
              color var(--mg-dur, .24s) ease;
}
.mg-cat-chip:hover { background: var(--mg-accent-soft, #e9f1fa); }
.mg-cat-chip.is-active {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}

/* Catalog cards: crisp document rows with an unmissable download affordance */
.mg-cat-grid { gap: 26px; }
.mg-cat-card {
  background: var(--mg-bg, #fff);
  border-radius: var(--mg-r-lg, 22px);
  box-shadow: var(--mg-shadow-xs, 0 1px 2px rgba(11, 19, 32, .06));
  transition: transform var(--mg-dur, .24s) var(--mg-ease, cubic-bezier(.23, 1, .32, 1)),
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease),
              border-color var(--mg-dur, .24s) ease;
}
.mg-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--mg-border-strong, #d4dce7);
  box-shadow: var(--mg-shadow, 0 10px 34px -14px rgba(11, 19, 32, .16));
}
.mg-cat-card__thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--mg-accent-soft, #e9f1fa), var(--mg-surface-2, #eef3f9));
}
.mg-cat-card__thumb img { transition: transform .3s var(--mg-ease, ease); }
.mg-cat-card:hover .mg-cat-card__thumb img { transform: scale(1.04); }
.mg-cat-card__pdf { opacity: .8; }

.mg-cat-card__body { padding: 22px 24px 24px; gap: 9px; }
.mg-cat-card__cat {
  font-size: var(--mg-fs-xs, .8125rem);
  font-weight: 700;
  color: var(--mg-accent-deep, #024e86);
  background: var(--mg-accent-soft, #e9f1fa);
}
.mg-cat-card__body :is(h2,h3) {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--mg-heading, #0a1626);
}
.mg-cat-card__body p {
  font-size: var(--mg-fs-sm, .9375rem);
  line-height: 1.95;
  color: var(--mg-muted, #56677b);
}

/* Download = the card's terminal action: full-width, centred, 48px tall */
.mg-cat-card__dl {
  align-self: stretch;
  justify-content: center;
  min-height: 48px;
  margin-block-start: 10px;
  font-size: var(--mg-fs-sm, .9375rem);
  box-shadow: 0 10px 24px -12px rgba(0, 103, 177, .6);
  transition: transform var(--mg-dur, .24s) var(--mg-ease, ease),
              box-shadow var(--mg-dur, .24s) var(--mg-ease, ease),
              background-color var(--mg-dur, .24s) ease,
              color var(--mg-dur, .24s) ease,
              border-color var(--mg-dur, .24s) ease;
}
.mg-cat-card__dl:hover {
  background: var(--mg-accent-deep, #024e86);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(0, 103, 177, .55);
}
/* Members-only state: quiet, bordered, still clearly actionable */
.mg-cat-card__dl--lock {
  background: var(--mg-surface-2, #eef3f9);
  border: 1px solid var(--mg-border-strong, #d4dce7);
  color: var(--mg-accent-deep, #024e86);
  box-shadow: none;
}
.mg-cat-card__dl--lock:hover {
  background: var(--mg-accent-soft, #e9f1fa);
  border-color: var(--mg-accent, #0067b1);
  color: var(--mg-accent-deep, #024e86);
  box-shadow: none;
}
.mg-cat-card__soon {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-block-start: 10px;
  color: var(--mg-muted, #56677b);
  border: 1px dashed var(--mg-border-strong, #d4dce7);
}

.mg-cat-empty {
  color: var(--mg-muted, #56677b);
  font-size: var(--mg-fs-md, 1.125rem);
  padding-block: 36px;
}

/* =====================================================================
   10 · DARK MODE
   (dark tokens override --mg-bg/surface/text/muted/border only, so the
    derived tokens — heading / surface-2 / accent-soft / border-strong /
    faint — must be re-mapped here by hand.)
   ===================================================================== */

/* -- article cards -- */
[data-theme="dark"] .mg-blog-card {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
  box-shadow: none;
}
[data-theme="dark"] .mg-blog-card:hover {
  border-color: rgba(124, 192, 242, .38);
  box-shadow: var(--mg-shadow, 0 10px 40px -14px rgba(0, 0, 0, .55));
}
[data-theme="dark"] .mg-blog-card__media { background: linear-gradient(135deg, #16233a, #0e1828); }
[data-theme="dark"] .mg-blog-card__body h3 a { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] .mg-blog-card__body h3 a:hover { color: #8fc9f5; }
[data-theme="dark"] .mg-blog-card__cat {
  background: rgba(84, 170, 230, .16);
  color: #9fd2f8;
}
[data-theme="dark"] .mg-blog-card__cat + time::before,
[data-theme="dark"] .mg-post__read::before { background: rgba(159, 177, 197, .6); }
[data-theme="dark"] .mg-blog-card__src { color: var(--mg-muted, #9fb1c5); }
[data-theme="dark"] .mg-blog-card__more { color: #8fc9f5; }
[data-theme="dark"] .mg-blog-card__more:hover { color: #b5dcfa; }
[data-theme="dark"] .mg-blog-card__ph { color: #6db6ec; }

/* -- pager -- */
[data-theme="dark"] .mg-blog-pager a,
[data-theme="dark"] .mg-blog-pager span {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
  color: var(--mg-text, #e8eef6);
}
[data-theme="dark"] .mg-blog-pager a:hover {
  background: rgba(84, 170, 230, .14);
  border-color: rgba(124, 192, 242, .45);
  color: #b5dcfa;
}
[data-theme="dark"] .mg-blog-pager .current {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}

/* -- events + light-band furniture on the hub -- */
[data-theme="dark"] .mg-news-events {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
}
[data-theme="dark"] .mg-news-events__title { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] .mg-news-events__icon { background: rgba(84, 170, 230, .14); color: #8fc9f5; box-shadow: none; }
[data-theme="dark"] .mg-news-events__cta {
  color: #8fc9f5;
  border-color: var(--mg-border, #26354b);
}
[data-theme="dark"] .mg-news-events__cta:hover {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}

/* -- single post -- */
[data-theme="dark"] .mg-post__title { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] .mg-post__cat {
  background: rgba(84, 170, 230, .16);
  color: #9fd2f8;
}
[data-theme="dark"] .mg-post__source { border-color: var(--mg-border, #26354b); }
[data-theme="dark"] .mg-post__hero img { border-color: var(--mg-border, #26354b); }

[data-theme="dark"] .mg-post__content { color: #c6d3e2; }
[data-theme="dark"] .mg-post__content .mg-post__notice {
	border-color: rgba(111, 193, 235, .24);
	background: rgba(78, 164, 211, .09);
	color: #c8d8e1;
}
[data-theme="dark"] .mg-post__content .mg-post__cta-inline { background: #031725; }
[data-theme="dark"] .mg-post__content > p:first-of-type,
[data-theme="dark"] .mg-post__content h2,
[data-theme="dark"] .mg-post__content h3,
[data-theme="dark"] .mg-post__content blockquote { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] .mg-post__content a { color: #8fc9f5; text-decoration-color: rgba(143, 201, 245, .4); }
[data-theme="dark"] .mg-post__content a:hover { color: #b5dcfa; }
[data-theme="dark"] .mg-post__content blockquote { border-color: #54aae6; }
[data-theme="dark"] .mg-post__content li::marker { color: #6db6ec; }
[data-theme="dark"] .mg-post__content table { border-color: var(--mg-border, #26354b); }
[data-theme="dark"] .mg-post__content th {
  background: var(--mg-surface, #131d2c);
  color: var(--mg-text, #e8eef6);
  border-color: var(--mg-border, #26354b);
}
[data-theme="dark"] .mg-post__content td { border-color: var(--mg-border, #26354b); }
[data-theme="dark"] .mg-post__content hr { background: var(--mg-border, #26354b); }
[data-theme="dark"] .mg-post__content figcaption { color: var(--mg-muted, #9fb1c5); }

.mg-post__video { width: min(1100px, calc(100% - 48px)); margin: 30px auto 0; overflow: hidden; border-radius: 16px; background: #071d2d; aspect-ratio: 16 / 9; }
.mg-post__video iframe,
.mg-post__video video,
.mg-post__video .wp-video,
.mg-post__video .wp-video-shortcode { width: 100% !important; height: 100% !important; display: block; }

@media (max-width: 680px) {
	.mg-post__video { width: calc(100% - 28px); margin-block-start: 18px; border-radius: 12px; }
}
[data-theme="dark"] .mg-post__pages { border-color: var(--mg-border, #26354b); }
[data-theme="dark"] .mg-post__pages a { border-color: var(--mg-border, #26354b); color: #8fc9f5; }

/* -- research inserts -- */
[data-theme="dark"] .mg-rstat {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
}
[data-theme="dark"] .mg-rstat:hover { border-color: rgba(124, 192, 242, .4); }
[data-theme="dark"] .mg-rstat b { color: #8fc9f5; }
[data-theme="dark"] .mg-rstat span { color: var(--mg-muted, #9fb1c5); }
[data-theme="dark"] .mg-rsvg {
  background: linear-gradient(180deg, #101b2b, #0d1624);
  border-color: var(--mg-border, #26354b);
}
[data-theme="dark"] .mg-rfig img { border-color: var(--mg-border, #26354b); background: #0f1a29; }
[data-theme="dark"] .mg-refs {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
  border-inline-start-color: #54aae6;
}
[data-theme="dark"] .mg-refs h3 { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] .mg-refs li { color: var(--mg-muted, #9fb1c5); }
[data-theme="dark"] .mg-refs__links a { background: var(--mg-bg, #0b1320); border-color: var(--mg-border, #26354b); color: #8fc9f5; }
[data-theme="dark"] .mg-research-method-note { background: var(--mg-surface, #131d2c); color: var(--mg-muted, #9fb1c5); }
[data-theme="dark"] .mg-research-method-note strong { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] .mg-research-lens__grid article { background: var(--mg-surface, #131d2c); }
[data-theme="dark"] .mg-research-lens__grid strong { color: var(--mg-text, #e8eef6); }

/* -- share / tags -- */
[data-theme="dark"] .mg-post__cite {
  background: var(--mg-surface-2, #0c1522);
  border-color: var(--mg-border, #26354b);
}
[data-theme="dark"] .mg-post__cite-box { background: var(--mg-surface, #131d2c); }
[data-theme="dark"] .mg-post__share { border-color: var(--mg-border, #26354b); }
[data-theme="dark"] .mg-post__share-btn {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
  color: var(--mg-text, #e8eef6);
}
[data-theme="dark"] .mg-post__share-btn:hover {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}
[data-theme="dark"] .mg-post__tags a {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
  color: var(--mg-muted, #9fb1c5);
}
[data-theme="dark"] .mg-post__tags a:hover { color: #8fc9f5; border-color: rgba(124, 192, 242, .45); }

/* -- catalog -- */
[data-theme="dark"] .mg-cat-hero .mg-arw-eyebrow {
  background: rgba(84, 170, 230, .16);
  border-color: rgba(124, 192, 242, .3);
  color: #9fd2f8;
}
[data-theme="dark"] .mg-cat-title { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] .mg-cat-search {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
  color: var(--mg-text, #e8eef6);
  box-shadow: none;
}
[data-theme="dark"] .mg-cat-search::placeholder { color: var(--mg-muted, #9fb1c5); }
[data-theme="dark"] .mg-cat-chip {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
  color: var(--mg-muted, #9fb1c5);
}
[data-theme="dark"] .mg-cat-chip:hover { background: rgba(84, 170, 230, .14); color: #b5dcfa; }
[data-theme="dark"] .mg-cat-chip.is-active {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}
[data-theme="dark"] .mg-cat-card {
  background: var(--mg-surface, #131d2c);
  border-color: var(--mg-border, #26354b);
  box-shadow: none;
}
[data-theme="dark"] .mg-cat-card:hover {
  border-color: rgba(124, 192, 242, .38);
  box-shadow: var(--mg-shadow, 0 10px 40px -14px rgba(0, 0, 0, .55));
}
[data-theme="dark"] .mg-cat-card__thumb { background: linear-gradient(135deg, #16233a, #0e1828); }
[data-theme="dark"] .mg-cat-card__body :is(h2,h3) { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] .mg-cat-card__cat {
  background: rgba(84, 170, 230, .16);
  color: #9fd2f8;
}
[data-theme="dark"] .mg-cat-card__dl--lock {
  background: rgba(84, 170, 230, .12);
  border-color: var(--mg-border, #26354b);
  color: #9fd2f8;
}
[data-theme="dark"] .mg-cat-card__dl--lock:hover {
  background: rgba(84, 170, 230, .2);
  border-color: rgba(124, 192, 242, .45);
  color: #b5dcfa;
}
[data-theme="dark"] .mg-cat-card__soon {
  color: var(--mg-muted, #9fb1c5);
  border-color: var(--mg-border, #26354b);
}

/* =====================================================================
   11 · SMALL SCREENS — keep the reading rhythm, drop the ornament
   ===================================================================== */

@media (max-width: 720px) {
  .mg-news-sec { padding-block: 56px; }
  .mg-news-feature__body { padding: 26px 24px 24px; }
  .mg-news-list { padding-inline: 20px; }
  .mg-post__head { padding-block-start: 116px; }
  .mg-post__content { font-size: 1rem; }
  .mg-post__content h2 { font-size: 1.375rem; }
  .mg-post__content h3 { font-size: 1.155rem; }
  .mg-post__content blockquote { padding-inline: 20px 4px; }
  .mg-blog-card__body { padding: 20px; }
  .mg-cat-card__body { padding: 20px; }
}

/* =====================================================================
   12 · MOTION DISCIPLINE
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  .mg-news-feature,
  .mg-news-row,
  .mg-news-row::before,
  .mg-news-chip,
  .mg-news-viewall,
  .mg-news-events__cta,
  .mg-news-cta__btn,
  .mg-news-pdfcard,
  .mg-news-pdfcard__dl,
  .mg-blog-card,
  .mg-blog-card__media img,
  .mg-blog-card__more svg,
  .mg-blog-card__dl,
  .mg-blog-pager a,
  .mg-arthub__chip,
  .mg-post__pdf,
  .mg-post__share-btn,
  .mg-post__tags a,
  .mg-post__content a,
  .mg-rstat,
  .mg-cat-search,
  .mg-cat-chip,
  .mg-cat-card,
  .mg-cat-card__thumb img,
  .mg-cat-card__dl,
  .mg-science__tile,
  .mg-science__lead,
  .mg-science__side,
  .mg-science__rail-item > a,
  .mg-science__journal-link,
  .mg-science__herosearch button,
  .mg-science__cta-btn,
  .mg-science__facet-reset,
  .mg-science__views button,
  .mg-science__grid.is-list .mg-blog-card {
    transition: none !important;
  }
  .mg-news-feature:hover,
  .mg-news-viewall:hover,
  .mg-news-cta__btn:hover,
  .mg-news-pdfcard:hover,
  .mg-blog-card:hover,
  .mg-blog-card:hover .mg-blog-card__media img,
  .mg-blog-card__more:hover svg,
  .mg-post__pdf:hover,
  .mg-rstat:hover,
  .mg-cat-card:hover,
  .mg-cat-card:hover .mg-cat-card__thumb img,
  .mg-cat-card__dl:hover,
  .mg-science__tile:hover,
  .mg-science__lead:hover,
  .mg-science__side:hover,
  .mg-science__herosearch button:hover,
  .mg-science__cta-btn:hover {
    transform: none !important;
  }
}
