/* =========================================================================
   Shared styles for the standalone static pages served from public/.
   Used by: privacy-policy.html, faqs.html

   Page-specific rules (e.g. the FAQ accordion) stay in that page's own
   <style> block, which is loaded after this file.
   ========================================================================= */

/* ---------- Theme tokens (matched to spell.bangla.gov.bd) ---------- */
:root{
  --bg:#eff3f8;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --primary:#009cdc;
  --primary-light:#44c1ea;
  --accent:#e98b2c;
  --text:#212529;
  --text-soft:#495057;
  --muted:#8799b2;
  --border:#dee2e6;
  --border-soft:#e9ecef;
  --link:#0b7fbe;
  --shadow:0 1px 2px rgba(27,27,34,.04), 0 8px 28px rgba(27,27,34,.07);
  --radius:14px;
  --maxw:960px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#1b1b22;
    --surface:#23272a;
    --surface-2:#2b2f33;
    --text:#e6e9ee;
    --text-soft:#c8c8c8;
    --muted:#8d8d8d;
    --border:#3a3f45;
    --border-soft:#32323a;
    --link:#5cc8ee;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"]{
  --bg:#1b1b22;
  --surface:#23272a;
  --surface-2:#2b2f33;
  --text:#e6e9ee;
  --text-soft:#c8c8c8;
  --muted:#8d8d8d;
  --border:#3a3f45;
  --border-soft:#32323a;
  --link:#5cc8ee;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Hind Siliguri",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans Bengali","Noto Sans",sans-serif;
  font-size:clamp(15px,.55rem + .55vw,17px);
  line-height:1.75;
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--link);text-decoration:none;overflow-wrap:anywhere}
a:hover,a:focus-visible{color:var(--primary-light);text-decoration:underline}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}

/* ---------- Layout ---------- */
main{max-width:var(--maxw);margin:0 auto;padding:clamp(1.1rem,4vw,2.5rem) clamp(.75rem,4vw,2rem)}
.card{
  background:var(--surface);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:clamp(1.15rem,4vw,2.75rem);
}

/* ---------- Page title ---------- */
.page-title{
  margin:0 0 .15rem;
  font-size:clamp(1.7rem,1.1rem + 2.4vw,2.5rem);
  font-weight:700;line-height:1.2;letter-spacing:-.01em;
}
.page-title__bn{
  display:block;margin-bottom:1.15rem;
  color:var(--primary);font-size:clamp(1rem,.9rem + .5vw,1.2rem);font-weight:500;
}
.lead{margin:0 0 1.4rem;color:var(--text-soft);font-size:1.02em}

/* ---------- Meta panel ---------- */
.meta{
  margin:0 0 1.6rem;padding:1rem 1.15rem;
  background:var(--surface-2);
  border:1px solid var(--border-soft);
  border-radius:10px;
  display:grid;grid-template-columns:auto 1fr;gap:.4rem 1rem;
  font-size:.94rem;
}
.meta dt{color:var(--muted);font-weight:600;white-space:nowrap}
.meta dd{margin:0;min-width:0;overflow-wrap:anywhere}
@media (max-width:560px){
  .meta{grid-template-columns:1fr;gap:.1rem}
  .meta dt{margin-top:.55rem}
  .meta dt:first-child{margin-top:0}
}

/* ---------- Callout ---------- */
.callout{
  margin:0 0 1.75rem;padding:.95rem 1.15rem;
  background:var(--surface-2);
  border:1px solid var(--border-soft);
  border-left:4px solid var(--primary);
  border-radius:0 10px 10px 0;
  font-weight:600;color:var(--text);
}

/* ---------- Headings ---------- */
h2{
  margin:2.25rem 0 .85rem;
  font-size:clamp(1.15rem,1rem + .7vw,1.4rem);
  font-weight:700;line-height:1.3;
  padding-left:.7rem;border-left:4px solid var(--primary-light);
}
p{margin:0 0 1rem}
p:last-child{margin-bottom:0}
strong{font-weight:600}

/* ---------- Lists ---------- */
.policy{list-style:none;margin:0;padding:0}
.policy li{position:relative;padding-left:1.55rem;margin:0 0 .7rem}
.policy li::before{
  content:"";position:absolute;left:.25rem;top:.62em;
  width:8px;height:8px;border-radius:50%;
  background:var(--primary);
}
.policy ul{list-style:none;margin:.7rem 0 .9rem;padding:0}
.policy ul li::before{
  width:7px;height:7px;top:.66em;
  background:transparent;border:2px solid var(--primary-light);
}
.policy ul ul li::before{
  width:7px;height:7px;top:.68em;border-radius:2px;
  background:var(--muted);border:0;
}
.policy > li:last-child{margin-bottom:0}
.policy ul li:last-child{margin-bottom:0}
@media (max-width:480px){
  .policy li{padding-left:1.3rem}
  .policy li::before{left:.1rem}
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--surface);
  border-top:1px solid var(--border);
  padding:1.35rem clamp(1rem,4vw,2rem);
  margin-top:clamp(1.5rem,5vw,3rem);
}
.site-footer__inner{
  max-width:var(--maxw);margin:0 auto;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:.6rem 1.25rem;
  font-size:.88rem;color:var(--muted);
}
.site-footer__links{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;margin:0;padding:0;list-style:none}
.copyright{white-space:nowrap}
@media (max-width:600px){
  .site-footer__inner{flex-direction:column;align-items:flex-start;text-align:left}
}

/* ---------- Print ---------- */
@media print{
  :root{--bg:#fff;--surface:#fff;--shadow:none}
  .site-footer{display:none}
  main{padding:0;max-width:none}
  .card{border:0;box-shadow:none;padding:0}
  a{color:#000;text-decoration:underline}
}
@media (prefers-reduced-motion: reduce){
  *{transition:none !important;animation:none !important;scroll-behavior:auto !important}
}
