/* Modern green/white docs theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');
:root{
  --green: #16A34A;
  --green-600: #16A34A;
  --green-500: #22C55E;
  --text: #111827;
  --muted: #475569;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --border: #E5E7EB;
}
.md-typeset{scroll-behavior:smooth; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif}
body{background-color:var(--surface-2); color:var(--text)}
.md-main{background:none}
.md-main::before,.md-main::after{content:none}

/* Headings */
.md-typeset h1,.md-typeset h2,.md-typeset h3,.md-typeset h4{color:#065F46}

/* Links */
.md-typeset a{color:var(--green-600); text-decoration:none}
.md-typeset a:hover{text-decoration:underline}

/* Admonitions */
.md-typeset .admonition{border-radius:12px;border:1px solid var(--border);background:var(--surface)}

/* Tables */
.md-typeset table{border:1px solid var(--border);border-radius:8px;overflow:hidden}

/* Code blocks */
.md-typeset pre>code{border-radius:10px}

/* Header */
.md-header{backdrop-filter:none; background:var(--surface); border-bottom:1px solid var(--border)}
.md-header__inner{padding-block:10px}
.md-header__title{font-weight:800;letter-spacing:.2px}
.md-header a,
.md-header .md-tabs__link,
.md-tabs__link{color:var(--muted) !important}
.md-tabs{background:transparent}
.md-tabs__item{margin-inline:2px}
.md-tabs__link{position:relative}
.md-tabs__link:hover{color:var(--green-600) !important}
.md-tabs__link:visited{color:var(--muted) !important}
.md-tabs__link--active{color:var(--text) !important}
.md-tabs__link--active::after{content:""; position:absolute; left:8px; right:8px; bottom:-6px; height:2px; background:var(--green-600); border-radius:2px}

/* Sidebar (primary nav) and ToC (secondary) */
.md-sidebar--primary .md-nav,
.md-sidebar--secondary .md-nav{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 8px;
}
.md-sidebar--secondary .md-nav{position:sticky; top:80px}
.md-nav__title{color:var(--text); font-weight:700; background:transparent !important; box-shadow:none !important}
.md-sidebar--primary .md-nav__title,
.md-sidebar--primary .md-nav__title[for],
.md-sidebar--primary .md-nav__item--section > label.md-nav__link,
.md-sidebar--primary .md-nav__item--section > .md-nav__link,
.md-sidebar--primary .md-nav__item--section > .md-nav__link[for]{
  background:transparent !important;
  box-shadow:none !important;
  color:var(--text) !important;
}
.md-sidebar--primary .md-nav__item--section > .md-nav__link:hover{background:rgba(22,163,74,.06)}
.md-sidebar--primary .md-nav__item--section,
.md-sidebar--primary .md-nav__item--section > .md-nav__link,
.md-sidebar--primary .md-nav__item--section > label.md-nav__link{
  background:transparent !important;
  border-color:transparent !important;
}
.md-sidebar--primary .md-nav__item--section > .md-nav__link::before,
.md-sidebar--primary .md-nav__item--section > .md-nav__link::after,
.md-nav__title::before,
.md-nav__title::after{background:transparent !important; box-shadow:none !important}
.md-nav__link:focus{outline:none !important; box-shadow:none !important}
.md-sidebar, .md-sidebar__scrollwrap, .md-sidebar__inner{background:transparent !important; box-shadow:none !important}
.md-sidebar--primary .md-nav, .md-sidebar--secondary .md-nav, .md-nav, .md-nav__list{background:transparent !important}
.md-nav__link{color:var(--muted); border-radius:8px; padding:6px 10px}
.md-nav__link:hover{color:var(--green-600); background:rgba(22,163,74,.06)}
/* unify visited/passed colors */
.md-nav__link:visited{color:var(--muted)}
.md-nav__link--passed{color:var(--muted); background:transparent}
/* Active indicator in sidebar */
.md-nav__item--active > .md-nav__link{color:var(--text); background:transparent; position:relative}
.md-nav__item--active > .md-nav__link::after{content:""; position:absolute; left:8px; right:8px; bottom:2px; height:2px; background:var(--green-600); border-radius:2px}
