/* Tutorial guide articles (guides/*.php). Generated pages share this sheet.
   Same tokens as index.php / tutorials.php. */
:root{
  --navy:#000066; --navy-deep:#03021f; --cyan:#00ccff; --maroon:#9a0019;
  --ink:#f5f7ff; --muted:#aeb3d9; --line:rgba(255,255,255,0.1); --panel:rgba(255,255,255,0.04);
  --body:#dfe2f5;
}
*{box-sizing:border-box;}
html{scroll-padding-top:96px;}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--navy-deep);color:var(--ink);}
h1,h2,h3{font-family:"Nunito",system-ui,sans-serif;margin:0;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1200px;margin:0 auto;padding:0 clamp(16px,5vw,40px);}
.btn{display:inline-flex;align-items:center;gap:8px;padding:15px 26px;border-radius:100px;font-weight:800;font-size:15px;font-family:system-ui,sans-serif;white-space:nowrap;}
.nav-links{display:flex;gap:32px;}
@media (max-width:760px){ .nav-links{display:none;} }

/* ---- header ---- */
.g-head{padding-top:44px;padding-bottom:28px;}
.crumbs{font-size:13px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;}
.crumbs a{color:var(--cyan);}
.g-kicker{color:var(--cyan);font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin:26px 0 10px;}
.g-head h1{font-size:clamp(32px,5.5vw,50px);font-weight:900;color:#fff;letter-spacing:-.02em;line-height:1.1;}
.g-sub{font-size:18px;color:var(--muted);line-height:1.55;margin:16px 0 0;max-width:720px;}
.g-meta{font-size:13px;color:var(--muted);margin:16px 0 0;}

/* ---- layout: TOC + article ---- */
.g-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:48px;align-items:start;padding-bottom:48px;}
.g-toc-in{position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:auto;border-left:1px solid var(--line);padding-left:16px;}
.g-toc-h{font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;margin-bottom:10px;}
.g-toc ol{list-style:none;margin:0;padding:0;}
.g-toc li{margin:0;}
.g-toc a{display:block;font-size:13.5px;line-height:1.4;color:var(--muted);padding:5px 0;}
.g-toc a:hover{color:#fff;}
.g-toc a.on{color:var(--cyan);font-weight:700;}
@media (max-width:960px){
  .g-layout{grid-template-columns:1fr;gap:8px;}
  .g-toc-in{position:static;max-height:none;border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:var(--panel);}
  .g-toc ol{columns:2;column-gap:24px;}
}
@media (max-width:560px){ .g-toc ol{columns:1;} }

/* ---- article body ---- */
.g-body{max-width:780px;font-size:16.5px;line-height:1.7;color:var(--body);min-width:0;}
.g-body > *:first-child{margin-top:0;}
.g-body p{margin:0 0 16px;}
.g-body h2{font-size:clamp(22px,3vw,27px);font-weight:900;color:#fff;margin:52px 0 16px;padding-top:4px;line-height:1.25;}
.g-body h3{font-size:18.5px;font-weight:800;color:#fff;margin:30px 0 10px;}
.g-body b,.g-body strong{color:#fff;}
.g-body a{color:var(--cyan);text-decoration:underline;text-underline-offset:2px;}
.g-body ul,.g-body ol{margin:0 0 18px;padding-left:24px;}
.g-body li{margin-bottom:8px;}
.g-body code{background:rgba(255,255,255,.08);border:1px solid var(--line);padding:1px 6px;border-radius:5px;font-size:.88em;color:#fff;}
.g-body .note{font-style:italic;color:var(--muted);}
.g-body .new{display:inline-block;background:#2e9e5b;color:#fff;font-size:11px;font-weight:700;border-radius:4px;padding:1px 7px;margin-left:6px;vertical-align:middle;}

.g-body .callout,.g-body .warn,.g-body .tip,.g-body .card{border-radius:12px;padding:14px 18px;margin:18px 0;}
.g-body .callout{background:rgba(0,204,255,.07);border:1px solid rgba(0,204,255,.28);}
.g-body .warn{background:rgba(255,92,92,.07);border:1px solid rgba(255,110,110,.35);}
.g-body .tip{background:rgba(46,158,91,.08);border:1px solid rgba(46,158,91,.4);}
.g-body .card{background:var(--panel);border:1px solid var(--line);}
.g-body .callout p:last-child,.g-body .warn p:last-child{margin-bottom:0;}

/* tables scroll sideways on phones instead of pushing the page wider */
.g-body table{display:block;overflow-x:auto;border-collapse:collapse;width:100%;margin:14px 0 22px;font-size:14.5px;line-height:1.5;}
.g-body th,.g-body td{border:1px solid var(--line);padding:9px 12px;text-align:left;vertical-align:top;min-width:120px;}
.g-body th{background:rgba(0,204,255,.08);color:#fff;font-weight:800;}
.g-body tr:nth-child(even) td{background:rgba(255,255,255,.02);}

.g-body figure{margin:22px 0 28px;}
.g-body figure img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);background:#fff;box-shadow:0 10px 32px rgba(0,0,0,.35);}
.g-body figure figcaption{font-size:13.5px;color:var(--muted);margin-top:10px;text-align:center;line-height:1.5;}
/* phone screenshots are tall - don't let one fill the whole screen */
.g-body figure img[height]{max-height:760px;object-fit:contain;}
.g-body figure.phone img,.g-body figure.shot img.phone{width:auto;max-width:100%;margin:0 auto;}
.g-body img{max-width:100%;height:auto;}

/* ---- prev / next ---- */
.g-nav{display:flex;justify-content:space-between;gap:16px;margin-top:56px;padding-top:24px;border-top:1px solid var(--line);}
.g-nav a{display:flex;flex-direction:column;gap:4px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:#fff;font-weight:800;text-decoration:none;max-width:48%;}
.g-nav a span{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em;}
.g-nav a:hover{border-color:var(--cyan);}
.g-next{margin-left:auto;text-align:right;}

/* ---- more guides ---- */
.g-more-h{font-size:clamp(22px,3vw,28px);font-weight:900;color:#fff;text-align:center;margin-bottom:24px;}
.g-more{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;}
.g-card{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--panel);}
.g-card strong{color:#fff;font-size:15px;}
.g-card span{color:var(--muted);font-size:13.5px;line-height:1.5;}
.g-card:hover{border-color:var(--cyan);}

/* ---- optional walkthrough video under the header ---- */
.g-video{margin-top:28px;max-width:880px;}
.g-video video{display:block;width:100%;aspect-ratio:1360/900;border-radius:14px;border:1px solid var(--line);background:#000;box-shadow:0 10px 32px rgba(0,0,0,.35);}
.g-video p{font-size:13.5px;color:var(--muted);margin:10px 0 0;}
