/* MG013 — WordPress article-only styles; deliberately NO page background. */
.mg013-article { background:transparent!important; color:inherit!important; font:inherit; line-height:1.9; max-width:100%; padding:0; margin:0; --mg013-ink:currentColor; --mg013-line:color-mix(in srgb, currentColor 17%, transparent); --mg013-surface:color-mix(in srgb,currentColor 5%,transparent); --mg013-green:var(--martgain-primary, #17965b); }
.mg013-article * {box-sizing:border-box}
.mg013-article h2,.mg013-article h3{ color:inherit; line-height:1.45; font-weight:800; letter-spacing:normal; }
.mg013-article p{color:inherit; line-height:1.95; margin:0 0 1em}
.mg013-article h2{font-size:clamp(1.23rem,2.2vw,1.65rem); margin:2.35em 0 .9em; border-inline-start:4px solid var(--mg013-green); padding-inline-start:.75em; }
.mg013-article .mg013-lead{font-size:clamp(1.06rem,1.5vw,1.19rem); font-weight:550; line-height:2.05;}
.mg013-article .mg013-note,.mg013-article .mg013-key,.mg013-article .mg013-toc,.mg013-article .mg013-cta{background:var(--mg013-surface);color:inherit;border:1px solid var(--mg013-line);border-radius:16px;padding:clamp(15px,2.8vw,24px);margin:1.4em 0}
.mg013-article .mg013-key{border-inline-start:4px solid var(--mg013-green)}
.mg013-article .mg013-note strong,.mg013-article .mg013-key b,.mg013-article .mg013-toc strong{color:inherit;font-weight:850}
.mg013-article .mg013-note p,.mg013-article .mg013-key p{margin:.35em 0 0}
.mg013-article .mg013-toc ol{columns:2;column-gap:2rem;padding-inline-start:1.6em;margin:.75rem 0 0}
.mg013-article .mg013-toc li{break-inside:avoid;padding:0 0 .42em}
.mg013-article a{color:var(--mg013-green);text-decoration:underline;text-underline-offset:3px}
.mg013-article a:focus-visible{outline:2px solid var(--mg013-green);outline-offset:3px}
.mg013-article .mg013-section{scroll-margin-top:100px}
.mg013-article .mg013-visual{margin:1.4em 0 1.6em;padding:0;max-width:100%;background:transparent}
.mg013-article .mg013-visual img{width:100%;height:auto;display:block;border-radius:14px}
.mg013-article figcaption{margin-top:.5em;font-size:.84em;opacity:.78;text-align:center}
.mg013-article .mg013-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:1.1rem 0}
.mg013-article .mg013-four>div{border:1px solid var(--mg013-line);border-radius:12px;padding:12px;background:var(--mg013-surface);min-width:0}
.mg013-article .mg013-four small{display:block;font-size:.82em;opacity:.82}
.mg013-article .mg013-four b{display:block;font-size:.85em;color:inherit}
.mg013-article .mg013-tablewrap{overflow-x:auto;max-width:100%;width:100%;margin:1.2em 0;border:1px solid var(--mg013-line);border-radius:12px}
.mg013-article table{width:100%;min-width:660px;table-layout:auto;border-collapse:collapse;color:inherit;background:transparent}
.mg013-article th,.mg013-article td{border-bottom:1px solid var(--mg013-line);text-align:start;vertical-align:top;padding:12px 13px;line-height:1.75}
.mg013-article th{font-weight:800;background:var(--mg013-surface)}
.mg013-article tr:last-child td{border-bottom:0}
.mg013-article .mg013-sourceref{font-size:.8em;opacity:.65}
.mg013-article .mg013-resources ol{padding-inline-start:1.5rem}
.mg013-article .mg013-resources li{overflow-wrap:anywhere;line-height:1.6;margin-bottom:.3em}
.mg013-article .mg013-cta a{display:inline-block;padding:8px 13px;border-radius:9px;border:1px solid var(--mg013-green);text-decoration:none;font-weight:700;margin-top:6px}
@media(max-width:700px){.mg013-article .mg013-toc ol{columns:1}.mg013-article .mg013-four{grid-template-columns:repeat(2,minmax(0,1fr))}.mg013-article .mg013-tablewrap{overscroll-behavior-x:contain}.mg013-article h2{margin-top:1.9em}}
@media(prefers-reduced-motion:reduce){.mg013-article *{scroll-behavior:auto!important}}
/* Theme-aware link hue only; cards and article continue inheriting host surface/foreground. */
html[data-theme="dark"] .mg013-article,html.dark .mg013-article,body.dark-mode .mg013-article,body.theme-dark .mg013-article {--mg013-green:var(--martgain-primary, #92e487)}
@media (prefers-color-scheme:dark){.mg013-article {--mg013-green:var(--martgain-primary, #92e487)}}

/* Respect explicit site Light Mode even if the operating system prefers dark. */
html[data-theme="light"] .mg013-article,html.light .mg013-article,body.light-mode .mg013-article,body.theme-light .mg013-article {--mg013-green:var(--martgain-primary, #17965b)}
