/* THE USER GUIDE (guide.html), now the "How to use" page of the website: light, in the board's green. Built for a phone first: one column, big tap targets, videos full width. */
:root { --bg: #f6f7f2; --panel: #ffffff; --panel2: #f0f3ee; --line: #dfe4dc; --ink: #15211b; --mute: #56635c; --gold: #14804f; --gold-d: #0e6a40; --good: #14804f; --bad: #b42318; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
a { color: inherit; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); background: rgba(8, 12, 18, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.word { font-weight: 650; font-size: 18px; line-height: 1; } .word small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.home { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.home:hover { border-color: var(--gold); }

main { width: min(1120px, 100%); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 60px; }
.hero { padding: 26px 0 8px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -.01em; }
.hero p { margin: 0; color: var(--mute); font-size: 16px; line-height: 1.55; max-width: 46em; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 12px; max-width: 560px; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1; cursor: pointer; }
.tab.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.blurb { color: var(--mute) !important; font-size: 15px !important; }

.contents { margin: 14px 0 18px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); color: var(--mute); }
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; min-height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 16px inherit; font-family: inherit; }
.toc { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink); background: #fff; }
.toc a:hover { background: #e4f2e9; }
.toc a span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e4f2e9; color: var(--gold); font-size: 13px; }
.toc li[hidden] { display: none; }

.topics { display: flex; flex-direction: column; gap: 10px; }
.topic { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.topic[hidden] { display: none; }
.topic header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.topic .num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: #fff; font-weight: 600; }
.topic h2 { margin: 0; font-size: 20px; line-height: 1.25; } .topic h2 a { text-decoration: none; } .topic h2 a:hover { color: var(--gold); }
.cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .topic.textonly .cols { grid-template-columns: 1fr; } }
.media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shot { margin: 0; } .shot video, .shot img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 432; border-radius: 12px; border: 1px solid var(--line); background: #0a2459; object-fit: contain; }
.shot figcaption { margin-top: 5px; font-size: 13px; color: var(--mute); }
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.body { min-width: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.body strong { color: var(--ink); }
.intro { margin: 0 0 10px; }
.steps, .points { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.steps { counter-reset: s; } .steps li { counter-increment: s; position: relative; padding-left: 38px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-weight: 650; font-size: 13.5px; }
.points li { position: relative; padding-left: 22px; } .points li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.steps + .points { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.note.tip { background: rgba(94, 208, 138, .08); border: 1px solid rgba(94, 208, 138, .35); } .note.tip b { color: var(--good); }
.note.warn { background: rgba(255, 138, 128, .07); border: 1px solid rgba(255, 138, 128, .35); } .note.warn b { color: var(--bad); }
.none { padding: 18px; border-radius: 16px; background: var(--panel); border: 1px dashed var(--line); color: var(--mute); }
.foot { margin: 26px 0 0; color: var(--mute); font-size: 14px; text-align: center; }

.to-top { position: fixed; z-index: 20; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--gold); background: #fff; color: var(--gold); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.to-top[hidden] { display: none; }
.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 50; display: grid; place-items: center; padding: 14px; background: rgba(4, 6, 10, .92); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; } .lightbox img { display: block; max-width: 100%; max-height: 82vh; max-height: 82dvh; border-radius: 10px; } .lightbox p { margin: 8px 0 0; color: var(--mute); text-align: center; }
.lightbox button { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #141c28; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
@media (max-width: 520px) { .home { padding: 8px 10px; font-size: 13px; } .topic { padding: 12px; } .topic h2 { font-size: 18px; } .body { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* the full student video (js/tutorial.js), as on the homepage */
:root { --gold: #14804f; }
.tut-video { display: block; width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); border-radius: 12px; background: #000; }
.tut-video::cue { font-size: 1.15em; line-height: 1.35; background: rgba(0, 0, 0, .78); color: #fff; }
.tut-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 10px 0 4px; } .tut-group { display: flex; flex-wrap: wrap; gap: 10px; }
.tut-cc { min-height: 46px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--gold, #14804f); background: transparent; color: var(--ink); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; }
.tut-cc[aria-pressed="true"] { background: var(--gold, #14804f); color: #fff; }
.tut-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tut-chapters button { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; }
.tut-chapters .n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e4f2e9; color: var(--green-d); font-size: 13px; } .tut-chapters .t { flex: 1; } .tut-chapters .at { opacity: .6; font-size: 12.5px; }
.shot.tutorial { grid-column: 1 / -1; } .topic#s-video .cols { grid-template-columns: minmax(0, 1fr); }

.tab[hidden] { display: none !important; }
.tabs[hidden] { display: none; }
