:root{
  --deep:#06192f; --navy:#0b2a4a; --blue:#1d6fb8; --ice:#cfeaff; --glass:rgba(255,255,255,.86);
  --text:#1b2a3a; --muted:#5f7286; --line:#dbe7f2; --accent:#19a7c9; --radius:14px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font:17px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--text);
  /* Silica background: SiO₄ tetrahedral network + deep-blue gradient */
  background:
    url("../images/silica-bg.svg") repeat,
    radial-gradient(1200px 600px at 80% -10%, rgba(120,190,255,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(25,167,201,.25), transparent 60%),
    linear-gradient(180deg,var(--deep) 0%,var(--navy) 45%,#0e3560 100%);
  background-attachment:fixed;
  min-height:100vh;
}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(6,25,47,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(207,234,255,.15)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:20px;letter-spacing:.5px}
.brand:hover{text-decoration:none}
.brand-mark{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(135deg,#e9f6ff,#6fb6ea);color:var(--navy);font-size:13px;font-weight:800}
.nav a{color:#d6ebff;margin-left:22px;font-size:15px}
.nav a:hover{color:#fff;text-decoration:none}

/* Hero: quartz crystal cluster */
.hero{position:relative;padding:46px 0 120px;color:#fff;overflow:hidden}
.hero::after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(900px,100%);height:220px;background:url("../images/quartz-crystal.svg") no-repeat center bottom/contain;opacity:.55;pointer-events:none}
.crumb{font-size:13px;color:#a9cbe9;margin-bottom:18px}
.crumb a{color:#cfe6ff}
.crumb span{margin:0 6px;opacity:.6}
.article-title{font-size:clamp(24px,3.4vw,38px);line-height:1.35;font-weight:800;max-width:900px;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.meta{display:flex;flex-wrap:wrap;gap:18px;margin-top:16px;color:#bcd8f2;font-size:14px}
.meta b{color:#fff;font-weight:600}

/* Main */
.main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;margin-top:-90px;position:relative;z-index:2;padding-bottom:60px}
.card{background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.6);border-radius:var(--radius);box-shadow:0 18px 50px rgba(3,18,36,.35)}
article.card{padding:36px 40px}

/* GEO: key takeaways */
.geo-summary{background:linear-gradient(135deg,#eef8ff,#f7fbff);border:1px solid #cfe4f6;border-left:4px solid var(--accent);border-radius:10px;padding:18px 20px;margin-bottom:26px}
.geo-summary h2{font-size:16px;color:var(--navy);margin-bottom:8px}
.geo-summary ul{padding-left:20px;color:#2b4157;font-size:15px}
.geo-summary li{margin:3px 0}

.tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.tag{font-size:13px;padding:3px 12px;border-radius:999px;background:#e6f2fc;color:#1b5f99;border:1px solid #cfe2f3}

/* Auto TOC */
.toc{border:1px dashed var(--line);border-radius:10px;padding:14px 18px;margin-bottom:26px;font-size:14px;display:none}
.toc strong{display:block;margin-bottom:6px;color:var(--navy)}
.toc ol{padding-left:20px}
.toc .lv3{margin-left:16px;list-style:circle}

/* Body */
.content{font-size:17px;word-wrap:break-word}
.content p{margin:0 0 1.15em}
.content h2{font-size:22px;color:var(--navy);margin:1.8em 0 .8em;padding-left:12px;border-left:4px solid var(--blue);line-height:1.4}
.content h3{font-size:19px;color:#13406b;margin:1.5em 0 .6em}
.content img{max-width:100%;height:auto;border-radius:10px;display:block;margin:18px auto}
.content table{width:100%;border-collapse:collapse;margin:18px 0;font-size:15px;display:block;overflow-x:auto}
.content th,.content td{border:1px solid var(--line);padding:9px 12px;text-align:left;white-space:nowrap}
.content th{background:#eaf4fd;color:var(--navy)}
.content tr:nth-child(even) td{background:#f8fbfe}
.content blockquote{margin:18px 0;padding:12px 18px;background:#f3f8fd;border-left:4px solid #8fc3ea;color:#3d5268;border-radius:0 8px 8px 0}
.content ul,.content ol{padding-left:1.6em;margin:0 0 1.1em}

/* Glossary, FAQ, disclaimer */
.block{margin-top:34px;padding-top:24px;border-top:1px solid var(--line)}
.block h2{font-size:19px;color:var(--navy);margin-bottom:12px}
dl.terms dt{font-weight:700;color:#13406b;margin-top:10px}
dl.terms dd{color:#3b4f63;font-size:15px;margin-left:0}
details.faq{border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin-bottom:10px;background:#fbfdff}
details.faq summary{cursor:pointer;font-weight:600;color:#14406a}
details.faq p{margin-top:8px;color:#3b4f63;font-size:15px}
.cite{font-size:13px;color:var(--muted);background:#f5f8fb;border-radius:10px;padding:14px 16px;margin-top:26px;line-height:1.75}
.cite code{background:#e7eef5;padding:1px 6px;border-radius:4px;font-size:12px;word-break:break-all}

/* Sidebar */
aside{display:flex;flex-direction:column;gap:20px}
aside .card{padding:22px}
aside h3{font-size:16px;color:var(--navy);margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #e2eef9}
.side-list{list-style:none}
.side-list li{padding:7px 0;border-bottom:1px dashed #e3ecf4;font-size:14px}
.side-list li:last-child{border:0}
.mol{display:flex;align-items:center;gap:14px}
.mol svg{flex:0 0 86px}
.mol p{font-size:13px;color:#3b4f63;line-height:1.7}
.spec td{font-size:13px;padding:5px 0;border-bottom:1px dashed #e3ecf4}
.spec td:first-child{color:var(--muted);width:46%}
.spec{width:100%;border-collapse:collapse}

/* Footer */
footer{color:#9fc0de;font-size:13px;text-align:center;padding:28px 0 40px;border-top:1px solid rgba(207,234,255,.12)}
footer a{color:#cfe6ff}

#toTop{position:fixed;right:20px;bottom:24px;width:44px;height:44px;border-radius:50%;border:0;background:var(--blue);color:#fff;font-size:20px;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.3);opacity:0;transition:.3s;pointer-events:none}
#toTop.show{opacity:1;pointer-events:auto}

@media (max-width:960px){
  .main{grid-template-columns:1fr}
  article.card{padding:24px 20px}
  .nav{display:none}
  .hero{padding:30px 0 110px}
}
@media print{
  body{background:#fff}
  .site-header,aside,#toTop,.hero::after{display:none}
  .main{margin-top:0;grid-template-columns:1fr}
  .card{box-shadow:none;border:0;background:#fff}
  .hero{color:#000;padding:10px 0}
}
