/* MG - dark/light, shared between the landing page and member area. */
:root{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;--bg:#f8faf5;--bg2:#edf2e9;--paper:#eef2eb;--ink:#101a12;--dark:#111a13;--muted:#566559;--muted-dark:#69776b;--line:rgba(12,29,14,.13);--line-soft:rgba(12,29,14,.085);--line-dark:rgba(12,29,14,.14);--card:#fff;--soft:#4c5b50}
.theme-toggle{width:40px;height:40px;min-width:40px;display:inline-grid;place-items:center;position:relative;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;color:#eaf0e9;cursor:pointer;transition:color .24s ease,transform .24s ease}
.theme-toggle:hover{color:#7DFF16;border-color:transparent;background:transparent;transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:2px solid #7DFF16;outline-offset:3px}
.theme-icon{width:17px;height:17px;position:absolute;transition:transform .23s ease,opacity .23s ease}
.theme-icon-sun{opacity:1;transform:rotate(0deg) scale(1)}
.theme-icon-moon{opacity:0;transform:rotate(-50deg) scale(.65)}
html[data-theme="light"] .theme-icon-sun{opacity:0;transform:rotate(50deg) scale(.65)}
html[data-theme="light"] .theme-icon-moon{opacity:1;transform:rotate(0) scale(1)}
html[data-theme="light"] .theme-toggle{background:transparent;color:#1b2b1e;border-color:transparent}
html[data-theme="light"] .theme-toggle:hover{color:#398b0f;background:transparent;border-color:transparent}
/* The mobile switch lives next to the hamburger, independent of hidden CTAs. */
.nav-theme-mobile{display:none}
@media(max-width:760px){
  .nav-actions .theme-toggle{display:none!important}
  .nav-theme-mobile{display:inline-grid;grid-column:3;justify-self:end}
  .nav-shell,.site-nav.is-scrolled .nav-shell{grid-template-columns:auto minmax(0,1fr) auto auto!important}
  .menu-toggle{grid-column:4!important}
}
@media(min-width:761px){.nav-theme-mobile{display:none!important}}
@media(max-width:390px){.nav-theme-mobile{width:38px;height:38px;min-width:38px}}
/* Landing page light mode. Preserve the MG green brand as the primary CTA fill. */
html[data-theme="light"],html[data-theme="light"] body{background:#f8faf5;color:#101a12}
html[data-theme="light"] .green{color:#2c7711}
html[data-theme="light"] .eyebrow{color:#4d6852}
html[data-theme="light"] .eyebrow:before{background:#469b13}
html[data-theme="light"] .lead{color:#4d6050}
html[data-theme="light"] .nav-shell{background:rgba(255,255,255,.76);border-color:rgba(25,56,23,.12);box-shadow:0 15px 45px rgba(25,54,25,.065)}
html[data-theme="light"] .site-nav.is-scrolled .nav-shell{background:rgba(255,255,255,.93);border-color:rgba(20,40,18,.14);box-shadow:0 10px 34px rgba(24,53,22,.12)}
html[data-theme="light"] .brand img,html[data-theme="light"] .footer-logo img,html[data-theme="light"] .header-logo img,html[data-theme="light"] .mg-logo img{filter:brightness(0) saturate(100%)}
html[data-theme="light"] .nav-links a{color:#334a37}
html[data-theme="light"] .nav-links a:hover{color:#123919}
html[data-theme="light"] .nav-access{color:#203422;background:rgba(255,255,255,.82);border-color:rgba(26,62,22,.22)}
html[data-theme="light"] .nav-access:hover{color:#286f0c;background:#f0f8eb}
html[data-theme="light"] .menu-toggle{color:#182a1c}
html[data-theme="light"] .mobile-menu{background:rgba(248,250,245,.985)}
html[data-theme="light"] .mobile-menu a:not(.btn){color:#263e2b;border-color:rgba(14,40,15,.10)}
html[data-theme="light"] .mobile-menu a.mobile-access{color:#24552a!important}
html[data-theme="light"] .mobile-menu a.mobile-access .user-icon{color:#338d12}
html[data-theme="light"] .hero{background:#f8faf5!important}
html[data-theme="light"] .frosted-bg{background:radial-gradient(ellipse at 50% 46%,rgba(125,255,22,.075),transparent 47%),linear-gradient(180deg,#f8faf5,#eef5e9 60%,#fafcf7)!important}
html[data-theme="light"] .frosted-colors{opacity:.5}
html[data-theme="light"] .frosted-glass{border-color:rgba(20,52,20,.045);background:linear-gradient(120deg,rgba(255,255,255,.13),rgba(255,255,255,.04));opacity:.32}
html[data-theme="light"] .frosted-veil{background:radial-gradient(ellipse at center,rgba(255,255,255,.24),transparent 45%,rgba(245,250,242,.56) 100%);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
html[data-theme="light"] .hero-shade{background:linear-gradient(180deg,rgba(255,255,255,.24),transparent 28%,transparent 70%,rgba(248,250,245,.55))}
html[data-theme="light"] .hero h1{color:#0d1c10}
html[data-theme="light"] .hero h1 .green,html[data-theme="light"] .hero h1 em{color:#398b0f}
html[data-theme="light"] .hero-sub{color:#465a48}
html[data-theme="light"] .hero-method-btn-v13{color:#243b29!important;border-color:rgba(16,50,18,.32)!important;background:rgba(255,255,255,.62)!important}
html[data-theme="light"] .hero-method-btn-v13:hover,html[data-theme="light"] .hero-method-btn-v13:hover .arrow{color:#286a0e!important;border-color:#398f16!important}
html[data-theme="light"] .hero-scroll-cue{color:#536e54}
html[data-theme="light"] .scroll-cue-icon{background:rgba(255,255,255,.6);border-color:rgba(12,40,14,.20)}
html[data-theme="light"] .hero-bottom-ticker{background:#7DFF16!important}
html[data-theme="light"] .diagnosis{background:#eef3ea;color:#142018}
html[data-theme="light"] .diagnosis-copy{color:#4c5d51}
html[data-theme="light"] .diagnosis .eyebrow{color:#52695a}
html[data-theme="light"] .symptom h3,html[data-theme="light"] .diagnosis-close strong{color:#13261a}
html[data-theme="light"] .symptom p{color:#526353}
html[data-theme="light"] .capabilities{background:#fbfcf9;color:#111f13}
html[data-theme="light"] .capabilities:before{opacity:.4}
html[data-theme="light"] .capability h3{color:#112013}
html[data-theme="light"] .capability p{color:#536555}
html[data-theme="light"] .capability b{color:#233929}
html[data-theme="light"] .capability .n{color:#26760e}
html[data-theme="light"] .method{background:#f0f5ed;color:#142018}
html[data-theme="light"] .stack-step{border-color:rgba(18,52,22,.16);background:linear-gradient(180deg,#fff,#f5faf2)}
html[data-theme="light"] .stack-step.active,html[data-theme="light"] .stack-step:hover{border-color:rgba(57,151,25,.42);background:linear-gradient(180deg,#f0fce7,#fff);box-shadow:0 15px 40px rgba(40,90,30,.07)}
html[data-theme="light"] .stack-letter{color:#a2b6a4}
html[data-theme="light"] .stack-step.active .stack-letter,html[data-theme="light"] .stack-step:hover .stack-letter{color:#2b7e0c}
html[data-theme="light"] .stack-level{color:#617965}
html[data-theme="light"] .stack-name{color:#526956}
html[data-theme="light"] .stack-micro{color:#68786a}
html[data-theme="light"] .stack-step.active .stack-name,html[data-theme="light"] .stack-step:hover .stack-name{color:#1d4a21}
html[data-theme="light"] .stack-detail-kicker{color:#2b7e0c}
html[data-theme="light"] .stack-detail-main p,html[data-theme="light"] .stack-detail-main strong{color:#415d45}
html[data-theme="light"] .stack-outcome span{color:#627365}
html[data-theme="light"] .stack-outcome strong{color:#18381e}
html[data-theme="light"] .acceleration{background:#fff;color:#122017}
html[data-theme="light"] .acceleration-copy{color:#506353}
html[data-theme="light"] .stage .label{color:#267a0e}
html[data-theme="light"] .stage h3{color:#122417}
html[data-theme="light"] .stage p,html[data-theme="light"] .flow{color:#526755}
html[data-theme="light"] .accel-close strong{color:#122619}
html[data-theme="light"] .accel-close p{color:#5b6c5d}
html[data-theme="light"] .accel-kicker{color:#2c7211;border-color:rgba(56,139,20,.25)}
html[data-theme="light"] .proof-showcase{border-color:rgba(18,50,20,.12)}
html[data-theme="light"] .proof-divider{background:linear-gradient(180deg,transparent,rgba(18,55,20,.16),transparent)}
html[data-theme="light"] .proof-editorial-card strong,html[data-theme="light"] .proof-card strong{color:#15251a}
html[data-theme="light"] .proof-editorial-card small,html[data-theme="light"] .proof-card small{color:#5c6d5d}
html[data-theme="light"] .about{background:#eef3e9;color:#17241a}
html[data-theme="light"] .about-copy h2{color:#172a1c}
html[data-theme="light"] .about-copy p{color:#4b5e4f}
html[data-theme="light"] .about-copy p strong{color:#193c22}
html[data-theme="light"] .about-photo{background:#0a0d0a}
html[data-theme="light"] .instagram-link{color:#173d20}
html[data-theme="light"] .signature-social a{color:#21492b!important;background:rgba(255,255,255,.82)!important;border-color:rgba(22,69,25,.23)!important}
html[data-theme="light"] .signature-social a:hover{color:#277309!important;border-color:#5cac2c!important;background:#f0f9eb!important}
html[data-theme="light"] .signature-social .instagram-arrow{color:#526a53!important}
html[data-theme="light"] .apply{background:#f9fbf7;color:#15251a}
html[data-theme="light"] .form-wizard-head span,html[data-theme="light"] .form-note{color:#5e6d60}
html[data-theme="light"] .form-section-title{color:#276f0e}
html[data-theme="light"] .field label{color:#334b39}
html[data-theme="light"] .field input{color:#142919;border-bottom-color:rgba(18,52,20,.26)}
html[data-theme="light"] .field input::placeholder{color:#839286}
html[data-theme="light"] .choice label{background:#fff;color:#455b49;border-color:rgba(23,60,24,.20)}
html[data-theme="light"] .choice label:before{box-shadow:inset 0 0 0 4px #fff}
html[data-theme="light"] .choice input:checked+label{background:#effbe9;color:#173d21;border-color:#61a441}
html[data-theme="light"] .form-error{background:#e8fae0;color:#245021;border-color:rgba(62,139,27,.25)}
html[data-theme="light"] .status{color:#37553c}
html[data-theme="light"] .footer{background:#ecf2e8;color:#142618}
html[data-theme="light"] .footer-copy{color:#5c6f5e}
html[data-theme="light"] .footer a:not(.btn){color:#2c4d31}
/* Auth portal and admin - same preference, no dark island in light mode */
html[data-theme="light"] .auth-screen{background:radial-gradient(ellipse 620px 310px at 50% -14%,rgba(125,255,22,.16),transparent 75%),#f8faf5}
html[data-theme="light"] .auth-screen::before{opacity:.2}
html[data-theme="light"] .auth-card{background:#fff;color:#132519;border-color:rgba(25,60,25,.14);box-shadow:0 24px 75px rgba(31,67,33,.10)}
html[data-theme="light"] .auth-heading p{color:#5d7161}
html[data-theme="light"] .auth-heading .dot{color:#398b11}
html[data-theme="light"] .form-field label{color:#324b37}
html[data-theme="light"] .input-shell{background:#f8faf5;border-color:rgba(16,50,20,.19)}
html[data-theme="light"] .input-shell:hover{border-color:rgba(16,50,20,.33)}
html[data-theme="light"] .input-shell:focus-within{background:#fff;border-color:#4b951b}
html[data-theme="light"] .input-shell input{color:#162f1b}
html[data-theme="light"] .input-shell input::placeholder{color:#7c907e}
html[data-theme="light"] .input-shell input:-webkit-autofill{-webkit-text-fill-color:#132719;-webkit-box-shadow:0 0 0 1000px #f8faf5 inset;caret-color:#16331c}
html[data-theme="light"] .input-shell .input-icon{stroke:#647a65}
html[data-theme="light"] .password-toggle{color:#596f5e}
html[data-theme="light"] .auth-assist,html[data-theme="light"] .auth-below p{color:#647766}
html[data-theme="light"] .auth-below strong{color:#28452e}
html[data-theme="light"] .back-home{color:#4c6851}
html[data-theme="light"] .auth-error{color:#2a5528;background:#f2fbe9}
html[data-theme="light"] .header{background:#fff;color:#233a27;border-color:rgba(20,50,20,.12)}
html[data-theme="light"] .header-actions a{color:#2a4c30}
html[data-theme="light"] .header-actions .border-link{border-color:rgba(30,72,27,.22)}
html[data-theme="light"] .panel-wrapper,html[data-theme="light"] .layout{color:#172b1c}
html[data-theme="light"] .panel-desc,html[data-theme="light"] .panel-card p,html[data-theme="light"] .left p{color:#546d5a}
html[data-theme="light"] .panel-card,html[data-theme="light"] .card{background:#fff;color:#152a19;border-color:rgba(30,60,30,.17);box-shadow:0 22px 60px rgba(20,50,20,.055)}
html[data-theme="light"] .panel-card h2,html[data-theme="light"] .card h2{color:#182e1d}
html[data-theme="light"] .field input,html[data-theme="light"] .field select{color:#18311d}
html[data-theme="light"] .panel-card .field input,html[data-theme="light"] .panel-card .field select,html[data-theme="light"] .card .field input{background:#f8faf5;border-color:rgba(23,53,23,.18)}
html[data-theme="light"] .panel-card label,html[data-theme="light"] .card label{color:#2b4831}
html[data-theme="light"] .management-table{color:#263e2a}
html[data-theme="light"] .panel-link{color:#256c13}
/* Separate portal toggle placement. */
.auth-theme-toggle{position:fixed;top:20px;right:clamp(18px,4vw,44px);z-index:20}
.header-actions .theme-toggle{width:40px;height:40px;min-width:40px}
@media(max-width:520px){.auth-theme-toggle{top:14px;right:14px}.theme-toggle{width:40px;height:40px;min-width:40px}}
@media(prefers-reduced-motion:reduce){.theme-icon,.theme-toggle{transition:none!important}}

/* Compact fixes for the original, working MG archive. */
html[data-theme="light"] .btn:not(.secondary){background:var(--green);color:#061006;border-color:var(--green)}
html[data-theme="light"] .btn.secondary{color:#26432a}
html[data-theme="light"] .btn.secondary:hover{color:#286b0c;border-color:#4b991f}
html[data-theme="light"] .mobile-menu .btn{color:#061006}
html[data-theme="light"] .nav-shell .menu-toggle span{background:#1d331f}
html[data-theme="light"] .hero-sub strong{color:#28472d}
html[data-theme="light"] .hero-bottom-ticker .ticker-track-bottom span{color:#061006!important}
html[data-theme="light"] .stage .flow i,html[data-theme="light"] .flow i{color:#428719}
html[data-theme="light"] .about-copy .signature strong{color:#1c3823}
html[data-theme="light"] .about .eyebrow{color:#56705b}
html[data-theme="light"] .footer .brand img{filter:brightness(0)}
@media (max-width:1180px) and (min-width:761px){
  .nav-actions .theme-toggle{height:40px;width:40px;min-width:40px}
}
