:root{
  --maxw: 920px;
  --font: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  line-height:1.6;
  color:#111;
  background:#fafafa;
}
header.topbar{
  position:sticky; top:0; z-index:20;
  background:#ffffffcc;
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid #e6e6e6;
}
header.topbar .inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex; flex-direction:column;
}
.brand .title{
  font-family:var(--sans);
  font-weight:700;
  font-size:14px;
  letter-spacing:.2px;
}
.brand .sub{
  font-family:var(--sans);
  font-size:12px;
  color:#444;
}
.navbtns{
  display:flex; gap:8px; flex-wrap:wrap;
}
button, a.btn{
  font-family:var(--sans);
  border:1px solid #d8d8d8;
  background:#fff;
  color:#111;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  text-decoration:none;
  font-size:13px;
}
button:hover, a.btn:hover{border-color:#bfbfbf}
main{
  max-width:var(--maxw);
  margin:0 auto;
  padding:24px 16px 60px;
}
.card{
  background:#fff;
  border:1px solid #ececec;
  border-radius:16px;
  padding:18px 18px;
  box-shadow:0 1px 1px rgba(0,0,0,.03);
  margin:14px 0;
}
h1,h2,h3{
  line-height:1.25;
  margin:0.6em 0 0.35em;
}
h1{font-size:30px}
h2{font-size:22px}
h3{font-size:18px}
.muted{color:#444}
.toc a{color:#0b57d0; text-decoration:none}
.toc a:hover{text-decoration:underline}
.kicker{
  font-family:var(--sans);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#555;
}
hr.sep{border:none;border-top:1px solid #eaeaea;margin:18px 0}
.box{
  border-left:4px solid #111;
  padding:10px 12px;
  background:#f7f7f7;
  border-radius:12px;
  margin:12px 0;
}
.box .boxtitle{
  font-family:var(--sans);
  font-weight:700;
  margin-bottom:6px;
}
.callout{
  border:1px dashed #cfcfcf;
  padding:12px;
  border-radius:12px;
  background:#fff;
  margin:12px 0;
}
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 820px){
  .grid2{grid-template-columns:1fr}
}

/* Print / PDF */
@media print{
  header.topbar{display:none}
  body{background:#fff}
  main{max-width:none; padding:0}
  .card{border:none; box-shadow:none; padding:0; margin:0}
  a{color:#000; text-decoration:none}
  .pagebreak{break-before:page; page-break-before:always}
  .noprint{display:none !important}
}

/* Page setup (works in Chromium-based browsers) */
@page{
  size: A4;
  margin: 18mm 16mm 18mm 16mm;
}

/* Full-bleed cover/back cover images */
.fullbleed{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.fullbleed img{
  display:block;
  width:100%;
  height:auto;
  border-radius: 16px;
}

@media print{
  body{ background:#fff; }
  .card{ box-shadow:none; border:none; border-radius:0; padding:0; margin:0; }
  .fullbleed img{ border-radius:0; }
  main{ padding:0; }
}
