
:root{
  --bg:#ffffff; 
  --surface:#f6f7fb; 
  --card:#ffffff;
  --text:#111827; 
  --muted:#4b5563;
  --border:#e5e7eb; 
  --accent:#2563eb; 
  --accent2:#7c3aed;
  --shadow:0 12px 30px rgba(17,24,39,.12); 
  --radius:18px; 
  --max:1100px;
  --font:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:linear-gradient(180deg, #ffffff, #f3f4f6);
}
img{max-width:100%; height:auto}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.skip-link{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip-link:focus{left:18px; top:18px; width:auto; height:auto; padding:10px 12px; background:#fff; color:#000; border-radius:10px; z-index:9999}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,.88);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-mark{
  font-weight:800;
  letter-spacing:.2px;
  font-size:20px;
  color:var(--text);
}
.brand img{display:none}
.nav{display:flex; align-items:center; gap:12px}
.nav a, .nav-item>button{
  font-size:14px;
  color:var(--text);
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
}
.nav a:hover, .nav-item>button:hover{
  background:var(--surface);
  border-color:var(--border);
  color:var(--text);
}
.nav a.active{background:var(--surface); border-color:var(--border); font-weight:750}
.nav-item{position:relative}
.dropdown{
  position:absolute;
  margin-top:10px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  min-width:220px;
  padding:10px;
  display:none;
}
.nav-item.open .dropdown{display:block}
.nav-item:hover .dropdown,.nav-item:focus-within .dropdown{display:block}
.dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
}
.dropdown a:hover{background:var(--surface); color:var(--text)}

.menu-btn{
  display:none;
  border:1px solid var(--border);
  background:var(--card);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  color:var(--text);
}

.hero{padding:28px 0 10px}
.hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow);
}
.hero-inner{display:grid; grid-template-columns:1.35fr .65fr; gap:18px; padding:22px}
.hero h1{margin:0 0 8px; font-size:clamp(26px, 4vw, 44px); line-height:1.05; letter-spacing:-.4px}
.hero p{margin:0 0 14px; color:var(--muted); font-size:16px; line-height:1.6}
.badges{display:flex; flex-wrap:wrap; gap:10px}
.badge{
  font-size:13px; padding:8px 10px; border-radius:999px;
  border:1px solid var(--border); background:rgba(255,255,255,.05);
}
.main{padding:10px 0 46px}
.card{background:rgba(255,255,255,.06); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px}
.content p,.content li,.content td,.content th{color:var(--text); line-height:1.7}
.content a{color:var(--accent)}
.content a:hover{color:var(--accent)}
.content table{width:100%; border-collapse:collapse}
.content td,.content th{border:1px solid rgba(255,255,255,.12); padding:10px; vertical-align:top}
.content hr{border:none; border-top:1px solid rgba(255,255,255,.14); margin:18px 0}

.site-footer{border-top:1px solid rgba(255,255,255,.12); padding:26px 0 38px; color:var(--muted)}
.footer-inner{display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between}
.footer-inner a{color:var(--muted); text-decoration:none}
.footer-inner a:hover{color:var(--accent)}

@media (max-width:980px){
  .nav{display:none}
  .menu-btn{display:inline-flex}
  .hero-inner{grid-template-columns:1fr}
  .brand img{width:min(360px, 78vw)}
}

/* mobile drawer */
.mobile-drawer{display:none; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:80}
.mobile-drawer.open{display:block}
.drawer-panel{position:absolute; right:0; top:0; bottom:0; width:min(92vw, 380px); background:rgba(15,26,46,.98); border-left:1px solid var(--border); padding:14px; box-shadow:var(--shadow)}
.drawer-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 6px 14px}
.drawer-close{
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}
.drawer-nav a{display:block; text-decoration:none; padding:12px 12px; border-radius:14px; color:var(--text); border:1px solid transparent}
.drawer-nav a:hover{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.10)}
.drawer-nav details{border:1px solid rgba(255,255,255,.10); border-radius:16px; padding:8px; margin:10px 0; background:rgba(255,255,255,.03)}
.drawer-nav summary{cursor:pointer; font-weight:800; padding:10px 10px; border-radius:12px}
.drawer-nav summary:hover{background:rgba(255,255,255,.06)}


/* Page header (simple, no "Explore" box) */
.page-header{ padding: 26px 0 10px; }
.page-header-card{
  background: linear-gradient(180deg, rgba(37,99,235,.08), rgba(124,58,237,.06));
  border: 1px solid rgba(17,24,39,.06);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: var(--shadow);
}
.page-header-card h1{ margin:0 0 6px; letter-spacing:-.4px; }
.page-header-card p{ margin:0 0 12px; color: var(--muted); line-height:1.6; }


/* Typography normalization for legacy content */
.content { line-height: 1.7; font-size: 1.02rem; }
.page-title{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 .6rem; letter-spacing: -.02em; }
.section-title{ font-size: 1.25rem; margin: 1.2rem 0 .6rem; }
.content .style5, .content .style6, .content .style7 { font-family: inherit !important; font-size: inherit !important; color: inherit; }

/* Tables: keep content intact, make mobile-safe */
.table-wrap{ width:100%; overflow:auto; -webkit-overflow-scrolling: touch; margin: .8rem 0 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.data-table{ width:100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td{ padding: .65rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td{ border-bottom: none; }
.data-table strong{ color: var(--text); }

/* Make images and embeds behave */
.content img, .content object, .content embed { max-width: 100%; height: auto; }

.dropdown-label{padding:8px 10px; font-weight:850; color:var(--muted)}

.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-logo{width:56px; height:56px; flex:0 0 56px}
.brand-name{font-weight:900; letter-spacing:.2px; font-size:30px; color:var(--text); line-height:1}
.brand-sub{font-size:14px; color:var(--muted); line-height:1.2}


/* Updates page components */
.figure{margin:18px 0;}
.figure img{width:100%;height:auto;display:block;border-radius:14px;border:1px solid var(--border);box-shadow:0 10px 24px rgba(17,24,39,.08)}
.figure figcaption{margin-top:10px;color:var(--muted);font-size:.95rem}
.timeline{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:12px}
.timeline li{border:1px solid var(--border);border-radius:14px;padding:14px 14px; background:var(--surface)}
.timeline-date{font-weight:800;color:var(--text)}
.timeline-text{margin-top:6px;color:var(--muted)}
.timeline-text a{color:var(--accent);text-decoration:none;font-weight:700}
.timeline-text a:hover{text-decoration:underline}


/* Video embed */
.video{width:100%;max-width:720px;height:auto;display:block;border-radius:12px;}
.video-block{padding:8px 0;}
.muted{color:#64748b;font-size:.95rem;}


/* Search page */
.search-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px;}
.search-input{flex:1;min-width:220px;max-width:520px;padding:10px 12px;border:1px solid rgba(15,23,42,.18);border-radius:12px;font-size:1rem;}
.btn{padding:10px 14px;border-radius:12px;border:1px solid rgba(15,23,42,.18);background:#0f172a;color:#fff;cursor:pointer;}
.btn:hover{filter:brightness(1.05);} 
