:root{
  --bg:#fbfbfc;
  --panel:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --border:#e5e7eb;
  --accent:#2563eb;
  --accent-2:#1d4ed8;
  --radius:14px;
  --shadow:0 1px 0 rgba(17,24,39,.04);
  --container: 1040px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:3px solid rgba(37,99,235,.25);
  outline-offset:2px;
  border-radius:10px;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:12px;
  background:var(--panel);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:10px;
  box-shadow:var(--shadow);
}
.skip-link:focus{left:12px; z-index:9999}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}
.container.narrow{
  width:min(760px, calc(100% - 40px));
}

.nowrap{white-space:nowrap}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(251,251,252,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{display:flex; flex-direction:column; gap:2px}
.brand-link{
  font-weight:800;
  letter-spacing:.2px;
  color:var(--text);
}
.brand-link:hover{text-decoration:none}
.brand-tag{
  font-size:12.5px;
  color:var(--muted);
}

.site-nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.site-nav a{
  color:var(--text);
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
}
.site-nav a[aria-current="page"]{
  background:rgba(37,99,235,.09);
  color:var(--text);
}
.site-nav a:hover{
  background:rgba(17,24,39,.04);
  text-decoration:none;
}

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:12px;
  padding:10px;
  box-shadow:var(--shadow);
}
.nav-toggle-line{
  display:block;
  width:20px;
  height:2px;
  background:var(--text);
  margin:4px 0;
  border-radius:2px;
}

.section{padding:44px 0}
.section-wide .container{width:min(1160px, calc(100% - 40px))}
.section-head{margin-bottom:18px}
.section-sub{color:var(--muted); max-width:80ch; margin:8px 0 0}

.hero{
  padding:44px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:22px;
  align-items:start;
}
.hero-main{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}
.kicker{
  margin:0 0 10px;
  color:var(--muted);
  font-size:13.5px;
}
h1{
  margin:0 0 10px;
  font-size:32px;
  line-height:1.15;
  letter-spacing:-.2px;
}
.lede{
  color:var(--muted);
  margin:0 0 16px;
  max-width:82ch;
}
.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 10px;
}
.btn{
  display:inline-block;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
  font-size:14px;
  border:1px solid var(--border);
  background:var(--panel);
  color:var(--text);
  box-shadow:var(--shadow);
}
.btn:hover{ text-decoration:none; border-color:rgba(37,99,235,.35) }
.btn-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.btn-primary:hover{background:var(--accent-2); border-color:var(--accent-2)}
.btn-ghost{
  background:transparent;
}
.anchor-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  border-top:1px solid var(--border);
  margin-top:14px;
  padding-top:12px;
}
.anchor-row a{
  color:var(--text);
  font-weight:650;
  font-size:13.5px;
  background:rgba(17,24,39,.03);
  border:1px solid rgba(17,24,39,.06);
  padding:6px 10px;
  border-radius:999px;
}
.anchor-row a:hover{ text-decoration:none; border-color:rgba(37,99,235,.30) }

.hero-aside .aside-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.aside-title{
  margin:0 0 10px;
  font-size:16px;
}
.checklist{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}
.small-note{
  color:var(--muted);
  font-size:13.5px;
  margin-top:10px;
}

h2{
  font-size:22px;
  line-height:1.25;
  margin:0 0 10px;
  letter-spacing:-.15px;
}
h3{
  font-size:16.5px;
  margin:0 0 6px;
}

.problem-groups{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.problem-group{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.problem-group p{margin:0; color:var(--muted)}

.paths{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:14px;
}
.path{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.path-intro{margin:0 0 10px; color:var(--muted)}
.link-list{
  margin:0;
  padding-left:18px;
}
.link-list li{margin:7px 0}
.link-list a{font-weight:650}

.category-blocks{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.category{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.category p{margin:0; color:var(--muted)}

.featured{
  background:linear-gradient(180deg, rgba(37,99,235,.05), rgba(37,99,235,0));
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.featured-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
.featured-card{
  margin-top:12px;
  background:var(--panel);
  border:1px solid rgba(37,99,235,.25);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.takeaways{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}
.takeaways li{margin:8px 0}

.archive{
  list-style:none;
  padding:0;
  margin:0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  box-shadow:var(--shadow);
}
.archive-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px;
  border-top:1px solid var(--border);
}
.archive-item:first-child{border-top:none}
.archive-text h3{margin:0 0 4px}
.archive-text p{margin:0; color:var(--muted)}
.archive-link{
  white-space:nowrap;
  font-weight:750;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(17,24,39,.02);
  color:var(--text);
}
.archive-link:hover{text-decoration:none; border-color:rgba(37,99,235,.35)}

.contact-note .contact-lines{margin-top:12px}
.contact-lines p{margin:6px 0}
.contact-cta{margin-top:14px}

.site-footer{
  border-top:1px solid var(--border);
  background:var(--panel);
  padding:26px 0 14px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .6fr .9fr;
  gap:16px;
  align-items:start;
}
.footer-brand{font-weight:900; margin-bottom:6px}
.footer-desc{margin:0; color:var(--muted)}
.footer-links{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.footer-links a{color:var(--text); font-weight:650}
.footer-links a:hover{text-decoration:underline}
.footer-contact p{margin:6px 0; color:var(--muted)}
.footer-contact a{color:var(--accent)}
.footer-bottom{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:13.5px;
}

.crumbs{
  font-size:13.5px;
  color:var(--muted);
  margin-bottom:10px;
}
.crumbs a{color:var(--text); font-weight:650}
.article-head{margin-bottom:18px}
.article-sub{color:var(--muted); margin:10px 0 0}
.rule{
  border:0;
  border-top:1px solid var(--border);
  margin:18px 0;
}

.form{
  margin-top:10px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.form-row{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
label{font-weight:700; font-size:14px}
input, textarea, select{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
  color:var(--text);
}
textarea{resize:vertical}
.form-actions{display:flex; gap:10px; flex-wrap:wrap}
.draft{
  margin-top:14px;
  border-top:1px solid var(--border);
  padding-top:14px;
}
.draft-box{
  margin:10px 0 0;
  background:#0b1220;
  color:#e5e7eb;
  border-radius:12px;
  padding:12px;
  overflow:auto;
  white-space:pre-wrap;
}

.related{
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid var(--border);
}

@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr}
  .featured-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .paths{grid-template-columns:1fr}
  .problem-groups{grid-template-columns:1fr}
  .category-blocks{grid-template-columns:1fr}
  .archive-item{flex-direction:column; align-items:flex-start}
  .archive-link{margin-top:8px}
}

@media (max-width: 780px){
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
  .site-nav{
    display:none;
    width:100%;
    padding:10px 0 2px;
    border-top:1px solid var(--border);
    margin-top:10px;
  }
  .site-nav.is-open{display:flex}
  .header-row{flex-wrap:wrap}
}
