/* Base style inspired by clean WP themes (Astra-ish), but fully custom.
   Keep it lightweight: no frameworks, minimal JS.
*/

:root{
  --bg:#0b1220;
  --card:#101a2f;
  --text:#e7eefc;
  --muted:#a9b6d3;
  --border:rgba(255,255,255,0.10);
  --radius:18px;
  --link:#ffffff;
  --shadow:0 18px 48px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, Apple Color Emoji, Segoe UI Emoji);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:var(--link);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{opacity:.9}

.container{max-width:1100px;margin:0 auto;padding:0 18px}

.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(11,18,32,.85);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;
  gap:12px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:800;
  letter-spacing:.2px;
  text-decoration:none;
}
.brand img{width:28px;height:28px;border-radius:8px}

.navlinks{display:flex;flex-wrap:wrap;gap:12px;font-size:14px}
.navlinks a{color:var(--muted);text-decoration:none}
.navlinks a:hover{color:var(--text)}

.hero{
  padding:28px 0 18px;
}

.heroCard{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(135deg,var(--primary),var(--accent));
}
.heroCardImg{
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}
.heroInner{
  padding:26px;
  background:rgba(0,0,0,.15);
}
.heroCardImg .heroInner{background:rgba(0,0,0,.55)}
.heroCardImg h1{color:#fff;}
.heroCardImg .subtitle{color:rgba(255,255,255,.92);}
.heroCardImg .btn{color:#fff; border-color:rgba(255,255,255,.28);}
.heroCardImg .btnPrimary{color:#111;}
.hero h1{margin:0;font-size:40px;line-height:1.15}
.subtitle{color:var(--text);opacity:.92;margin:10px 0 0;max-width:70ch}

.ctaRow{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;
  padding:11px 14px;
  background:rgba(255,255,255,.14);
  color:var(--text);
  border:1px solid rgba(255,255,255,.22);
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
}
.btn:hover{background:rgba(255,255,255,.18)}
.btnPrimary{background:rgba(255,255,255,.92); color:#111; border-color:rgba(255,255,255,.85)}
.btnPrimary:hover{background:#fff}

.grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:16px;
  margin-top:16px;
}
@media (max-width: 900px){.grid{grid-template-columns:1fr}}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  padding:18px;
}

.kbullets{margin:0;padding-left:18px}
.kbullets li{margin:6px 0;color:var(--text)}

.mini{color:var(--muted);font-size:14px}

.tableWrap{overflow:auto;border-radius:14px;border:1px solid var(--border)}
table{width:100%;border-collapse:collapse;min-width:560px}
th,td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top}
th{background:rgba(255,255,255,.06);text-align:left}

.imgRow{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
@media (max-width: 900px){.imgRow{grid-template-columns:1fr}}
.imgCard{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:rgba(255,255,255,.02)}
.imgCard img{display:block;width:100%;height:auto}
.imgCard .cap{padding:10px 12px;color:var(--muted);font-size:14px}

/* Masonry-like mosaic (used by layout l2) */
.mosaic{display:grid;grid-template-columns:2fr 1fr;grid-auto-rows:180px;gap:12px}
.mosaicItem{height:100%;display:flex;flex-direction:column}
.mosaicItem img{height:100%;object-fit:cover}
.mosaicItem-1{grid-row:span 2}
.mosaicItem-1 img{height:100%}
.mosaicItem figcaption{padding:10px 12px;border-top:1px solid var(--border)}

@media (max-width: 900px){
  .mosaic{grid-template-columns:1fr;grid-auto-rows:auto}
  .mosaicItem-1{grid-row:span 1}
  .mosaicItem img{height:auto;object-fit:contain}
}

.section{padding:16px 0}
.section h2{margin:0 0 10px;font-size:26px}
.section h3{margin:18px 0 8px;font-size:18px;color:var(--text)}
.section p{margin:0 0 10px;color:var(--text)}
.section ul{margin:0;padding-left:18px}
.section li{margin:6px 0;color:var(--text)}

.warn{
  border-left:4px solid rgba(255,255,255,.7);
  background:rgba(255,255,255,.06);
  padding:12px 12px;
  border-radius:12px;
}

.video{
  position:relative;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:rgba(0,0,0,.25);
  padding-top:56.25%;
}
.video iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
.videoBtn{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
}
.videoBtn img{width:100%;height:100%;object-fit:cover;filter:saturate(1.05) contrast(1.02)}
.videoBtn .play{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:76px;
  height:76px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.55);
  color:var(--text);
  font-size:30px;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}
.videoBtn:hover .play{background:rgba(0,0,0,.65)}

.footer{
  margin-top:26px;
  border-top:1px solid var(--border);
  padding:18px 0 30px;
  color:var(--muted);
  font-size:14px;
}
.footer a{color:var(--muted)}

/* --- Layout helpers (used by different page compositions) --- */
.layoutWrap{display:grid;grid-template-columns:1fr;gap:16px}
.layoutTwoCol{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}
@media (max-width: 980px){.layoutTwoCol{grid-template-columns:1fr}}

.toc{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  padding:14px;
}
.toc .t{font-weight:900;margin-bottom:8px}
.toc a{display:block;text-decoration:none;color:var(--muted);padding:6px 0}
.toc a:hover{color:var(--text)}

/* For layout l3 we move key takeaways/table into the sidebar, so the hero becomes single-column */
.layout-l3 .heroInner .grid{grid-template-columns:1fr}
.layout-l3 .heroInner .grid > div:nth-child(2){display:none}

.pillRow{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.pill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  font-size:13px;
  color:var(--text);
}

.statGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width: 900px){.statGrid{grid-template-columns:1fr}}
.stat{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  padding:14px;
}
.stat .k{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.stat .v{font-size:18px;font-weight:900;margin-top:6px}

.sectionAlt{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
  padding:14px;
}

/* FAQ accordion */
.faqItem{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  padding:12px 14px;
  margin:10px 0;
}
.faqItem summary{cursor:pointer;font-weight:900}
.faqItem summary::-webkit-details-marker{display:none}
.faqItem p{margin-top:10px}
.faqA{margin-top:10px;color:var(--text)}

/* Sticky social links (site-wide). */
.socialDock{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:70;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.socialLink{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.08);
  text-decoration:none;
  color:var(--text);
  font-weight:900;
  letter-spacing:.2px;
}
.socialLink:hover{background:rgba(255,255,255,.12)}
.socialLink span{font-size:13px;line-height:1}

@media (max-width: 700px){
  .socialDock{
    right:10px;
    bottom:10px;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:flex-end;
    max-width:calc(100vw - 20px);
  }
  .socialLink{width:40px;height:40px;border-radius:12px}
  .socialLink span{font-size:12px}
}
