/* Module 10 v9.0 | Editorial Science Journal + Connected SVG Reading-Path Milestones + Circular Scroll Progress Ring + Profile Sync */

.mrb .mrb-hero { padding-bottom: 24px; }

/* Single Post E-E-A-T Scientific Review Bar */
.mgas-eeat {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--mr-border, rgba(255, 255, 255, .10));
  background: var(--mr-surface, #151a23);
  font-family: var(--mr-font-sans, "Dana", "MrGym", system-ui, sans-serif);
  direction: rtl;
  text-align: start;
}
html[data-theme="light"] .mgas-eeat,
body[data-theme="light"] .mgas-eeat,
body[data-lqd-page-color-scheme="light"] .mgas-eeat { background: #ffffff; border-color: rgba(15, 23, 42, .10); box-shadow: 0 10px 28px -22px rgba(15, 23, 42, .14); }
.mgas-eeat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .82rem; color: var(--mr-text-2, #9aa6b6); font-weight: 700; }
html[data-theme="light"] .mgas-eeat__meta,
body[data-theme="light"] .mgas-eeat__meta,
body[data-lqd-page-color-scheme="light"] .mgas-eeat__meta { color: var(--mr-text-2, #51607a); }
.mgas-eeat__trust { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(34, 197, 94, .11); border: 1px solid rgba(34, 197, 94, .30); color: #22c55e; font-size: .76rem; font-weight: 800; }
html[data-theme="light"] .mgas-eeat__trust,
body[data-theme="light"] .mgas-eeat__trust,
body[data-lqd-page-color-scheme="light"] .mgas-eeat__trust { background: rgba(21, 128, 61, .08); border-color: rgba(21, 128, 61, .28); color: #166534; }

/* Mobile-only Collapsible TOC */
.mgas-toc {
  box-sizing: border-box;
  display: none;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--mr-border, rgba(255, 255, 255, .10));
  background: var(--mr-surface, #151a23);
  direction: rtl;
  text-align: start;
  font-family: var(--mr-font-sans, "Dana", "MrGym", system-ui, sans-serif);
}
@media (max-width: 1080px) { .mgas-toc { display: block; } }
html[data-theme="light"] .mgas-toc,
body[data-theme="light"] .mgas-toc,
body[data-lqd-page-color-scheme="light"] .mgas-toc { background: #f8fafc; border-color: rgba(15, 23, 42, .10); }
.mgas-toc summary { cursor: pointer; font-size: .9rem; font-weight: 900; color: var(--mr-gold-text, #f0c14b); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.mgas-toc summary::-webkit-details-marker { display: none; }
.mgas-toc__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; text-align: start; }
html body .mrs-content .mgas-toc__link,
.mgas-toc__link { display: block; padding: 6px 10px; border-radius: 10px; font-size: .84rem; font-weight: 700; color: var(--mr-text-2, #9aa6b6); text-decoration: none; text-align: start; }
html body .mrs-content .mgas-toc__link:hover,
html body .mrs-content .mgas-toc__link.is-active,
.mgas-toc__link:hover,
.mgas-toc__link.is-active { background: rgba(240, 193, 75, .12); color: var(--mr-gold-text, #f0c14b); }
html[data-theme="light"] .mgas-toc__link,
body[data-theme="light"] .mgas-toc__link,
body[data-lqd-page-color-scheme="light"] .mgas-toc__link { color: var(--mr-text-2, #51607a); }
html[data-theme="light"] .mgas-toc__link:hover,
html[data-theme="light"] .mgas-toc__link.is-active,
body[data-theme="light"] .mgas-toc__link:hover,
body[data-theme="light"] .mgas-toc__link.is-active,
body[data-lqd-page-color-scheme="light"] .mgas-toc__link:hover,
body[data-lqd-page-color-scheme="light"] .mgas-toc__link.is-active { color: var(--mr-gold-text, #946606); }
.mgas-toc__link--sub { padding-inline-start: 22px; font-size: .8rem; }

/* Contextual Embedded Micro-Tool */
.mgas-calc-box {
  box-sizing: border-box;
  --ctrl-bd: rgba(255, 255, 255, .38);
  --bg2: var(--mr-surface-2, #1c222e);
  --tx: var(--mr-text, #eef2f7);
  width: 100%;
  max-width: 100%;
  margin: 26px 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(240, 193, 75, .32);
  background: radial-gradient(120% 90% at 50% 0, rgba(240, 193, 75, .10), transparent 65%), var(--mr-surface, #151a23);
  direction: rtl;
  text-align: start;
  font-family: var(--mr-font-sans, "Dana", "MrGym", system-ui, sans-serif);
}
html[data-theme="light"] .mgas-calc-box,
body[data-theme="light"] .mgas-calc-box,
body[data-lqd-page-color-scheme="light"] .mgas-calc-box {
  --ctrl-bd: rgba(15, 23, 42, .48);
  --bg2: #f3f6fb;
  --tx: #101722;
  background: radial-gradient(120% 90% at 50% 0, rgba(240, 193, 75, .12), transparent 65%), #ffffff;
  border-color: rgba(148, 102, 6, .28);
  box-shadow: 0 14px 36px -24px rgba(15, 23, 42, .16);
}
html[data-theme="light"] .mgas-calc-box .mgas-btn--ghost,
body[data-theme="light"] .mgas-calc-box .mgas-btn--ghost,
body[data-lqd-page-color-scheme="light"] .mgas-calc-box .mgas-btn--ghost {
  background: #f3f6fb;
  border-color: rgba(15, 23, 42, .48);
  color: #101722 !important;
}
.mgas-calc-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.mgas-calc-in {
  box-sizing: border-box;
  width: 108px;
  max-width: 100%;
  height: 44px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--ctrl-bd, rgba(255, 255, 255, .38));
  background: var(--mr-surface-2, #1c222e);
  color: var(--mr-gold-text, #f0c14b);
  font: inherit;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  appearance: textfield;
}
html[data-theme="light"] .mgas-calc-in,
body[data-theme="light"] .mgas-calc-in,
body[data-lqd-page-color-scheme="light"] .mgas-calc-in { background: #f3f6fb; border-color: var(--ctrl-bd, rgba(15, 23, 42, .48)); color: #946606; }
.mgas-calc-res { box-sizing: border-box; flex: 1; min-width: min(220px, 100%); max-width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(240, 193, 75, .28); background: rgba(240, 193, 75, .08); font-size: .88rem; font-weight: 800; line-height: 1.75; }
.mgas-calc-note { margin: 10px 0 0; font-size: .76rem; color: var(--mr-text-2, #9aa6b6); line-height: 1.65; }
html[data-theme="light"] .mgas-calc-note,
body[data-theme="light"] .mgas-calc-note,
body[data-lqd-page-color-scheme="light"] .mgas-calc-note { color: var(--mr-text-2, #51607a); }

/* Gym Inspection Interactive Checklist */
.mgas-chk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (max-width: 600px) { .mgas-chk-list { grid-template-columns: 1fr; } }
.mgas-chk-btn { box-sizing: border-box; max-width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ctrl-bd, rgba(255, 255, 255, .38)); background: var(--mr-surface-2, #1c222e); color: inherit; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; text-align: start; }
html[data-theme="light"] .mgas-chk-btn,
body[data-theme="light"] .mgas-chk-btn,
body[data-lqd-page-color-scheme="light"] .mgas-chk-btn { background: #f3f6fb; border-color: var(--ctrl-bd, rgba(15, 23, 42, .48)); color: #101722; }
.mgas-chk-btn.is-done { border-color: rgba(34, 197, 94, .46); background: rgba(34, 197, 94, .12); color: #22c55e; }
html[data-theme="light"] .mgas-chk-btn.is-done,
body[data-theme="light"] .mgas-chk-btn.is-done,
body[data-lqd-page-color-scheme="light"] .mgas-chk-btn.is-done { background: rgba(21, 128, 61, .09); border-color: rgba(21, 128, 61, .34); color: #166534; }

.mgas-article-lg p, .mgas-article-lg li { font-size: 1.12rem !important; line-height: 2.08 !important; }

/* Floating Circular Scroll-Scrubbed Reading Ring (single articles | opposite TITAN-X so zero overlap!) */
.mgas-read-ring {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 20px;
  z-index: 88;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(240, 193, 75, .42);
  background: rgba(14, 17, 22, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, .65);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .2s ease;
}
.mgas-read-ring.is-vis { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  .mgas-read-ring:hover { transform: translateY(-2px); }
}
.mgas-read-ring:focus-visible { outline: 2px solid var(--mr-gold-text, #f0c14b); outline-offset: 3px; }
html[data-theme="light"] .mgas-read-ring,
body[data-theme="light"] .mgas-read-ring,
body[data-lqd-page-color-scheme="light"] .mgas-read-ring { background: rgba(255, 255, 255, .96); border-color: rgba(148, 102, 6, .36); box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .22); }
html[data-theme="light"] .mgas-ring-bg,
body[data-theme="light"] .mgas-ring-bg,
body[data-lqd-page-color-scheme="light"] .mgas-ring-bg { stroke: rgba(15, 23, 42, .14); }
html[data-theme="light"] #mgas-ring-fg,
body[data-theme="light"] #mgas-ring-fg,
body[data-lqd-page-color-scheme="light"] #mgas-ring-fg { stroke: #b57b0c; }
html[data-theme="light"] #mgas-ring-txt,
body[data-theme="light"] #mgas-ring-txt,
body[data-lqd-page-color-scheme="light"] #mgas-ring-txt { fill: #946606; }
@media (max-width: 768px) { .mgas-read-ring { inset-block-end: 84px; inset-inline-end: 14px; width: 46px; height: 46px; } }

/* Connected SVG Reading-Path Milestone Track (/blog/) */
.mgas-path-track {
  width: 100%;
  max-width: 540px;
  height: 44px;
  min-height: 44px;
  display: block;
  overflow: visible;
  margin: 14px auto 4px;
}
html[data-theme="light"] .mgas-bp-rail,
body[data-theme="light"] .mgas-bp-rail,
body[data-lqd-page-color-scheme="light"] .mgas-bp-rail { stroke: rgba(15, 23, 42, .16); }
html[data-theme="light"] .mgas-bp-rail-dash,
body[data-theme="light"] .mgas-bp-rail-dash,
body[data-lqd-page-color-scheme="light"] .mgas-bp-rail-dash { stroke: rgba(148, 102, 6, .32); }
html[data-theme="light"] .mgas-bp-halo,
body[data-theme="light"] .mgas-bp-halo,
body[data-lqd-page-color-scheme="light"] .mgas-bp-halo { stroke: rgba(148, 102, 6, .34); }
html[data-theme="light"] .mgas-bp-halo.is-done,
body[data-theme="light"] .mgas-bp-halo.is-done,
body[data-lqd-page-color-scheme="light"] .mgas-bp-halo.is-done { stroke: rgba(21, 128, 61, .42); }
html[data-theme="light"] .mgas-bp-rail--done,
body[data-theme="light"] .mgas-bp-rail--done,
body[data-lqd-page-color-scheme="light"] .mgas-bp-rail--done { stroke: #15803d; }
html[data-theme="light"] .mgas-bp-node,
body[data-theme="light"] .mgas-bp-node,
body[data-lqd-page-color-scheme="light"] .mgas-bp-node { fill: #ffffff; stroke: #b57b0c; }
html[data-theme="light"] .mgas-bp-node.is-done,
body[data-theme="light"] .mgas-bp-node.is-done,
body[data-lqd-page-color-scheme="light"] .mgas-bp-node.is-done { fill: #15803d; stroke: #15803d; }
html[data-theme="light"] .mgas-bp-txt,
body[data-theme="light"] .mgas-bp-txt,
body[data-lqd-page-color-scheme="light"] .mgas-bp-txt { fill: #946606; }
html[data-theme="light"] .mgas-bp-txt.is-done,
body[data-theme="light"] .mgas-bp-txt.is-done,
body[data-lqd-page-color-scheme="light"] .mgas-bp-txt.is-done { fill: #ffffff; }

/* Inline Exercise Link Hovercard */
.mgas-ex-pop { box-sizing: border-box; position: fixed; z-index: 98; width: min(300px, calc(100vw - 24px)); max-width: 100%; padding: 14px; border-radius: 14px; border: 1px solid rgba(240, 193, 75, .40); background: rgba(14, 17, 22, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #eef2f7; box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .72); direction: rtl; font-family: var(--mr-font-sans, "Dana", "MrGym", system-ui, sans-serif); pointer-events: auto; display: none; }
html[data-theme="light"] .mgas-ex-pop,
body[data-theme="light"] .mgas-ex-pop,
body[data-lqd-page-color-scheme="light"] .mgas-ex-pop { background: #ffffff; color: #101722; border-color: rgba(148, 102, 6, .32); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .24); }
.mgas-ex-pop.is-open { display: block; }
.mgas-ex-pop__t { margin: 0 0 6px; font-size: .92rem; font-weight: 900; color: var(--mr-gold-text, #f0c14b); }
html[data-theme="light"] .mgas-ex-pop__t,
body[data-theme="light"] .mgas-ex-pop__t,
body[data-lqd-page-color-scheme="light"] .mgas-ex-pop__t { color: var(--mr-gold-text, #946606); }
.mgas-ex-pop__m { font-size: .78rem; color: #9aa6b6; line-height: 1.6; margin: 0 0 10px; }
html[data-theme="light"] .mgas-ex-pop__m,
body[data-theme="light"] .mgas-ex-pop__m,
body[data-lqd-page-color-scheme="light"] .mgas-ex-pop__m { color: var(--mr-text-2, #51607a); }

/* Blog Archive Personalized Reading Path Cards */
.mgas-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
@media (max-width: 820px) { .mgas-path-grid { grid-template-columns: 1fr; } }
.mgas-path-card { box-sizing: border-box; max-width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--mr-border, var(--bd, rgba(255, 255, 255, .10))); background: var(--mr-surface, var(--bg2, #151a23)); display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
html[data-theme="light"] .mgas-path-card,
body[data-theme="light"] .mgas-path-card,
body[data-lqd-page-color-scheme="light"] .mgas-path-card { background: var(--mr-surface, #ffffff); border-color: rgba(15, 23, 42, .10); box-shadow: 0 10px 26px -18px rgba(15, 23, 42, .12); }
.mgas-path-card.is-read { border-color: rgba(34, 197, 94, .42); }
.mgas-path-card b { font-size: .9rem; font-weight: 900; color: var(--mr-text, var(--tx, #eef2f7)); line-height: 1.5; }
.mgas-path-card small { font-size: .78rem; color: var(--mr-text-2, var(--tx2, #9aa6b6)); line-height: 1.65; }
html[data-theme="light"] .mgas-path-card b,
body[data-theme="light"] .mgas-path-card b,
body[data-lqd-page-color-scheme="light"] .mgas-path-card b { color: var(--mr-text, #101722); }
html[data-theme="light"] .mgas-path-card small,
body[data-theme="light"] .mgas-path-card small,
body[data-lqd-page-color-scheme="light"] .mgas-path-card small { color: var(--mr-text-2, #51607a); }

/* v10.0 SOTY: Top Hairline Kinetic Gold-Cyan Reading Progress Laser (suppressed whenever native .mrs-progress / .mr-readbar exists) */
.mgas-top-laser {
  position: fixed;
  inset-block-start: var(--wp-admin--admin-bar--height, 0px);
  inset-inline: 0;
  height: 2.5px;
  z-index: 99;
  background: linear-gradient(90deg, #38bdf8, #f6d36b 55%, #22c55e);
  transform-origin: right center;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(240, 193, 75, .65);
}
body:has(.mrs-progress, .mr-readbar) .mgas-top-laser,
body:has(.mrs-progress, .mr-readbar) #mgas-top-laser {
  display: none !important;
}
