/* Shared styles for the guide and FAQ pages (guide.html, faq.html). Same look as index.html. */
@font-face { font-family: 'Orbitron'; src: url('fonts/Orbitron-VariableFont_wght.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
:root { --amber: #f5a623; --blue: #7ec8e3; --text: #f2f4f8; --muted: #9ba0ab; --bg: #0f1115; --card: #1a1d26; --line: #272b36; --deep: #0b0c10; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--amber); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; z-index: 10; background: rgba(15, 17, 21, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', system-ui, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.04em; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; margin-left: 18px; }
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a[aria-current] { border-bottom: 2px solid var(--amber); padding-bottom: 2px; }

.doc-hero { background: radial-gradient(circle at 85% 0%, rgba(245, 166, 35, 0.16), transparent 55%), linear-gradient(180deg, #1b1f2a, var(--bg)); padding: 48px 0 36px; }
.doc-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
.doc-hero h1 em { font-style: normal; color: var(--amber); }
.doc-hero p { margin: 0; font-size: 18px; color: #d3d7e0; max-width: 40em; }

main .wrap { padding-top: 8px; }
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; padding-top: 28px; padding-bottom: 56px; }
.toc { position: sticky; top: 80px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 14px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc li a { display: block; padding: 5px 0; color: #d3d7e0; text-decoration: none; }
.toc li a::before { content: counter(toc) ". "; color: var(--muted); }
.toc li a:hover { color: var(--amber); }

.doc section { padding: 0 0 18px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: clamp(24px, 3.2vw, 31px); margin: 0 0 8px; letter-spacing: -0.01em; }
.doc h2 .num { color: var(--amber); margin-right: 6px; }
.doc h3 { font-size: 19px; margin: 30px 0 6px; color: var(--amber); }
.doc p { margin: 0 0 14px; color: #d3d7e0; }
.doc p.lead { font-size: 17px; color: var(--muted); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; color: #d3d7e0; }
.doc li { margin-bottom: 6px; }
.doc code { background: #232733; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.btn { display: inline-block; background: #232733; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-weight: 700; font-size: 0.92em; white-space: nowrap; color: var(--text); }
.btn.go { background: var(--amber); border-color: var(--amber); color: #1a1205; }

.note { border-left: 4px solid var(--amber); background: rgba(245, 166, 35, 0.08); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 16px; color: #e8e2d4; }
.note strong { color: var(--amber); }
.note.blue { border-left-color: var(--blue); background: rgba(126, 200, 227, 0.08); }
.note.blue strong { color: var(--blue); }

/* a step: words on one side, a phone screen on the other */
.cols { display: grid; grid-template-columns: 1fr 250px; gap: 28px; align-items: start; margin-bottom: 8px; }
.cols.flip { grid-template-columns: 250px 1fr; }
.cols.flip > .shot { order: -1; }
figure { margin: 0; }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.shot img { display: block; width: 100%; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.crop { margin: 0 0 18px; max-width: 520px; }
.crop img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 6px 0 18px; align-items: start; }
.pair .shot { max-width: 270px; }
.pair .shot img { border-radius: 18px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 18px; }
.strip .shot img { border-radius: 14px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
td:first-child { font-weight: 700; white-space: nowrap; }

/* FAQ */
.faq-group { margin-bottom: 34px; }
.faq-group h2 { margin-bottom: 14px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
details[open] { border-color: #3a4052; }
summary { cursor: pointer; font-weight: 700; }
details p, details ul, details ol { color: #b6bbc7; margin: 10px 0 0; }
details ul, details ol { padding-left: 22px; }
details li { margin-bottom: 4px; }
details .crop { margin: 12px 0 0; }
.more { margin-top: 28px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.more p { margin: 0 0 6px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 18px; }
  .toc { position: static; }
  nav { display: none; }
}
@media (max-width: 640px) {
  .cols, .cols.flip { grid-template-columns: 1fr; }
  .cols .shot, .cols.flip .shot { order: 2; max-width: 260px; margin: 4px auto 14px; }
  .strip { grid-template-columns: 1fr 1fr; }
  td:first-child { white-space: normal; }
}
