/* AxlMint Learn — Dark Mint (soft) theme
   Light remains the default. Dark mode only activates with html[data-theme="dark"]. */

.theme-toggle{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:inline-grid;
  place-items:center;
  border:1px solid var(--line,#e5e7eb);
  border-radius:11px;
  background:#fff;
  color:#465563;
  font:700 21px/1 Georgia,"Times New Roman",serif;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
  box-shadow:0 5px 15px rgba(15,23,42,.035);
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.theme-toggle:hover{
  color:var(--mint-dark,#0fbec2);
  border-color:rgba(15,190,194,.34);
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(15,190,194,.09);
}
.theme-toggle:focus-visible{
  outline:3px solid rgba(25,238,209,.20);
  outline-offset:2px;
}

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#16282d;
  --bg-soft:#1b3036;
  --panel:#20383e;
  --text:#f4fbfa;
  --text-2:#d0dfdd;
  --muted:#a2b6b3;
  --muted-2:#8fa6a3;
  --line:rgba(174,225,219,.15);
  --line-strong:rgba(174,225,219,.24);
  --mint:#19eed1;
  --mint-dark:#28d9ca;
  --mint-deep:#65e6d8;
  --mint-soft:rgba(25,238,209,.105);
  --shadow:0 20px 52px rgba(4,13,16,.20);
  --white:#20383e;
  --soft:#1b3036;
}

html[data-theme="dark"] body{
  background:var(--bg)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .site-header{
  background:rgba(22,40,45,.94)!important;
  border-color:var(--line)!important;
  box-shadow:0 8px 28px rgba(4,13,16,.08);
}
html[data-theme="dark"] .brand-logo{
  filter:brightness(1.38) saturate(.94);
}
html[data-theme="dark"] .brand-divider{background:var(--line-strong)!important}
html[data-theme="dark"] .theme-toggle{
  background:#20383e;
  color:#e9f8f5;
  border-color:var(--line-strong);
  box-shadow:0 5px 16px rgba(4,13,16,.12);
}
html[data-theme="dark"] .theme-toggle:hover{
  color:var(--mint);
  background:#254248;
  border-color:rgba(25,238,209,.28);
}

/* Header + controls */
html[data-theme="dark"] .header-search input,
html[data-theme="dark"] .search-shell input,
html[data-theme="dark"] .back-link,
html[data-theme="dark"] .language-switcher summary,
html[data-theme="dark"] .header-search-toggle,
html[data-theme="dark"] .load-more-btn{
  background:#20383e!important;
  color:var(--text-2)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .header-search input::placeholder,
html[data-theme="dark"] .search-shell input::placeholder{color:#8fa6a3!important}
html[data-theme="dark"] .nav-center{color:var(--text-2)!important}
html[data-theme="dark"] .nav-center a{color:var(--text-2)!important}
html[data-theme="dark"] .nav-center a:hover,
html[data-theme="dark"] .nav-center a:focus-visible{color:var(--mint)!important}
html[data-theme="dark"] .language-menu{
  background:#20383e!important;
  border-color:var(--line)!important;
  box-shadow:0 20px 48px rgba(4,13,16,.28)!important;
}
html[data-theme="dark"] .language-option{color:var(--text-2)!important}
html[data-theme="dark"] .language-option:hover{background:#254248!important;color:var(--mint)!important}
html[data-theme="dark"] .language-option.active{background:rgba(25,238,209,.11)!important;color:var(--mint)!important}

/* Home */
html[data-theme="dark"] .hero{
  background:linear-gradient(180deg,#16282d 0%,#193037 100%)!important;
}
html[data-theme="dark"] .hero-featured:before{
  background:linear-gradient(90deg,rgba(32,56,62,.05) 0%,rgba(32,56,62,.25) 13%,rgba(32,56,62,.72) 39%,rgba(32,56,62,.94) 67%,rgba(32,56,62,.98) 100%)!important;
  border-color:var(--line)!important;
  box-shadow:0 18px 42px rgba(4,13,16,.10)!important;
}
html[data-theme="dark"] .hero-featured-badge,
html[data-theme="dark"] .thumb-label{
  background:rgba(32,56,62,.94)!important;
  color:var(--text-2)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .article-card{
  background:rgba(32,56,62,.90)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .latest-rail-item:hover{background:#1f393f!important}
html[data-theme="dark"] .section.soft{
  background:#1b3036!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .cta{
  background:linear-gradient(135deg,#1d393e,#203c41)!important;
  border-color:rgba(25,238,209,.22)!important;
}
html[data-theme="dark"] .cta p{color:var(--muted)!important}
html[data-theme="dark"] .featured-kicker,
html[data-theme="dark"] .search-hint{color:var(--muted)!important}

/* Article */
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .article-meta{color:var(--muted-2)!important}
html[data-theme="dark"] .article-deck{color:#b7c9c6!important}
html[data-theme="dark"] .article-body{color:#c8d8d5!important}
html[data-theme="dark"] .article-body h2,
html[data-theme="dark"] .article-body h3{color:var(--text)!important}
html[data-theme="dark"] .share-btn{
  background:#20383e!important;
  color:#b8ccc9!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .share-btn:hover{background:#254248!important;color:var(--mint)!important}
html[data-theme="dark"] .inline-media{
  background:linear-gradient(135deg,#1c3439,#203b40)!important;
  border-color:var(--line)!important;
  color:#a5b9b6!important;
}
html[data-theme="dark"] .inline-media strong{color:var(--text)!important}
html[data-theme="dark"] .callout{
  background:#1d3a3d!important;
  border-color:rgba(25,238,209,.20)!important;
}
html[data-theme="dark"] .callout strong{color:var(--mint)!important}
html[data-theme="dark"] .callout p{color:#b3c9c5!important}
html[data-theme="dark"] .warning{
  background:#3a3528!important;
  border-color:rgba(245,190,76,.25)!important;
}
html[data-theme="dark"] .warning strong{color:#f2c76d!important}
html[data-theme="dark"] .warning p{color:#d8c9a6!important}
html[data-theme="dark"] .warning .callout-icon{background:#4b412b!important;color:#f2c76d!important}
html[data-theme="dark"] .tool-cta{
  background:linear-gradient(135deg,#1c383d,#203b40)!important;
  border-color:rgba(25,238,209,.22)!important;
}
html[data-theme="dark"] .tool-cta p{color:#aac0bc!important}
html[data-theme="dark"] .related{
  background:#1b3036!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .related-card p{color:var(--muted)!important}
html[data-theme="dark"] .footer-col h4{color:var(--text-2)!important}
html[data-theme="dark"] footer{border-color:var(--line)!important}
html[data-theme="dark"] .copyright{border-color:var(--line)!important;color:var(--muted-2)!important}

/* Newsletter — same mint identity, softer dark surfaces */
html[data-theme="dark"] .newsletter-section{background:var(--bg)!important}
html[data-theme="dark"] .newsletter-card{
  background:
    radial-gradient(circle at 96% 3%,rgba(25,238,209,.12),transparent 28%),
    radial-gradient(circle at 1% 100%,rgba(71,190,230,.07),transparent 28%),
    linear-gradient(135deg,#1b3237 0%,#203a3f 58%,#1d353a 100%)!important;
  border-color:rgba(25,238,209,.20)!important;
  box-shadow:0 24px 60px rgba(4,13,16,.18),0 8px 22px rgba(15,190,194,.04)!important;
}
html[data-theme="dark"] .newsletter-copy p{color:#adc1be!important}
html[data-theme="dark"] .newsletter-form{
  background:#213b40!important;
  border-color:rgba(174,225,219,.16)!important;
  box-shadow:0 16px 38px rgba(4,13,16,.16)!important;
}
html[data-theme="dark"] .newsletter-interest legend{color:var(--text-2)!important}
html[data-theme="dark"] .newsletter-option span{
  background:#1b3036!important;
  border-color:var(--line)!important;
  color:#b6c9c6!important;
}
html[data-theme="dark"] .newsletter-option input:checked + span{
  background:rgba(25,238,209,.12)!important;
  border-color:rgba(25,238,209,.34)!important;
  color:var(--mint)!important;
}
html[data-theme="dark"] .newsletter-email{
  background:#182d32!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .newsletter-email::placeholder{color:#829b98!important}
html[data-theme="dark"] .newsletter-privacy{color:#90a8a5!important}
html[data-theme="dark"] .newsletter-toast{background:#20383e!important;color:var(--text)!important;border-color:var(--line)!important}

/* Support */
html[data-theme="dark"] .support-section{background:var(--bg)!important}
html[data-theme="dark"] .support-head p,
html[data-theme="dark"] .response-time{color:var(--muted)!important}
html[data-theme="dark"] .eyebrow{background:rgba(25,238,209,.10)!important;color:var(--mint)!important}
html[data-theme="dark"] .support-card{
  background:#20383e!important;
  border-color:var(--line)!important;
  box-shadow:0 18px 48px rgba(4,13,16,.18)!important;
}
html[data-theme="dark"] .icon-box{background:rgba(25,238,209,.10)!important;color:var(--mint)!important}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea{
  background:#1b3036;
  color:var(--text);
  border-color:var(--line);
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus{background:#20383e!important}
html[data-theme="dark"] .privacy-note{background:#1b3036!important;border-color:var(--line)!important;color:var(--muted)!important}
html[data-theme="dark"] .privacy-note strong{color:var(--text-2)!important}
html[data-theme="dark"] .back-link{color:var(--text-2)!important}

/* Mobile header parity */
@media(max-width:680px){
  .theme-toggle{width:38px;height:38px;flex-basis:38px;border-radius:11px;font-size:19px}
  html[data-theme="dark"] .nav-center{
    background:#1b3036!important;
    border-color:var(--line)!important;
  }
  html[data-theme="dark"] .nav-center a:hover,
  html[data-theme="dark"] .nav-center a:focus-visible{background:#20383e!important}
  .nav.search-open .theme-toggle{display:none}
}

/* v44 — Helpful feedback: keep text readable on the white feedback card in Dark Mint mode. */
html[data-theme="dark"] .post-feedback{
  background:#fff!important;
  border-color:#e8eeec!important;
}
html[data-theme="dark"] .post-feedback-copy strong{
  color:#334155!important;
}
html[data-theme="dark"] .post-feedback-copy span{
  color:#74808b!important;
}
html[data-theme="dark"] .post-feedback-copy span::before{
  background:#dfe7e5!important;
}
