/* Shared by the support, privacy and join pages. The landing page has its own, home.css; both carry the app's "Trail blaze" tokens. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.woff2) format("woff2"); }

:root {
  --spruce: #12302A; --blaze: #FFC93C; --blaze-dark: #D9A100; --moss: #2E9B5F; --deep: #1B5E4B;
  --fog: #F2F5EF; --fog-dark: #E4EADF; --paper: #FFFFFF; --hair: #CBD6C8; --ink: #12302A; --ink-soft: #4D655B; --link: #1F7A47;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root { --fog: #0E1F1A; --fog-dark: #1E3A32; --paper: #16302A; --hair: #264239; --ink: #EAF2EC; --ink-soft: #B5C6BC; --link: #6FD49A; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fog); color: var(--ink); font: 1.125rem/1.6 var(--body); font-size-adjust: from-font; }

/* Pages cross-fade into each other where the browser can (a progressive enhancement; others just navigate). */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* Skip link: hidden until a keyboard user tabs to it. */
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--blaze); color: var(--spruce); font-weight: 700; padding: 10px 16px; border-radius: 12px; }
.skip:focus-visible { top: 12px; }
main:focus { outline: none; }

a { color: var(--link); }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---- header: the app's welcome-screen spruce with its contour lines ---- */
.top { background: var(--spruce) url(/contours-spruce.svg) right top / min(1100px, 160%) auto no-repeat; color: #EAF2EC; padding-bottom: 48px; }
.top a { color: #EAF2EC; }
.bar { display: flex; align-items: center; gap: 12px; padding: 24px 0 0; }
.bar img { width: 44px; height: 44px; border-radius: 12px; }
.bar .name { font: 700 1.375rem/1 var(--logo); text-decoration: none; }
.bar nav { margin-left: auto; display: flex; gap: 20px; font-size: 1rem; }
.bar nav a { text-decoration: none; font-weight: 700; padding: 4px 0; border-bottom: 3px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current] { border-bottom-color: var(--blaze); }
.top-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 48px; }
.top h1 { font-size: clamp(2.6rem, 1rem + 6vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.top .lead { font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.25rem); max-width: 30em; margin: 18px 0 0; color: #B5C6BC; }
.top-walker { width: 150px; height: auto; flex: none; margin-bottom: -48px; display: none; }
@media (min-width: 47.5em) { .top-walker { display: block; } }

main { padding: 24px 20px 72px; }
main.wrap { padding: 40px 20px 72px; }

/* Section titles carry the app's blaze mark, as on its Home screen. */
.faq h2, .help h2 { display: flex; align-items: center; gap: 12px; }
.faq h2::before, .help h2::before { content: ""; flex: none; width: 10px; height: 1.1em; border-radius: 5px; background: var(--blaze); }

/* ---- support ---- */
.contact-card { background: var(--deep); color: #fff; border-radius: 24px; padding: 28px 28px 8px; margin: 0 0 40px; }
.contact-card h2 { font-size: 1.5rem; color: var(--blaze); margin-bottom: 4px; }
.contact-card .big-email { font: 800 clamp(1.5rem, 0.9rem + 2vw, 2.4rem)/1.15 var(--display); margin: 0 0 14px; word-break: break-all; }
.contact-card a { color: #fff; text-decoration-thickness: 3px; text-decoration-color: var(--blaze); text-underline-offset: 5px; }
.contact-card p { color: #D4E8DE; max-width: 38em; }
.faq h2 { font-size: clamp(1.7rem, 1.2rem + 2.5vw, 2.4rem); margin-bottom: 16px; }
details { background: var(--paper); border: 1.5px solid var(--hair); border-radius: 16px; margin: 0 0 10px; }
details[open] { border-color: var(--ink-soft); }
summary { list-style: none; cursor: pointer; padding: 16px 56px 16px 20px; font: 700 1.15rem/1.3 var(--display); position: relative; border-radius: 15px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--fog-dark); color: var(--ink); text-align: center; font: 800 20px/28px var(--display); }
details[open] summary::after { content: "–"; background: var(--blaze); color: var(--spruce); }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); max-width: 40em; }

/* ---- privacy: a contents list beside the text ---- */
.doc { display: block; }
@media (min-width: 61.25em) { .doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.toc { display: none; }
@media (min-width: 61.25em) { .toc { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; font-size: 0.9375rem; line-height: 1.35; padding-bottom: 24px; } }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--hair); scroll-target-group: auto; }
.toc li a { display: block; padding: 6px 0 6px 16px; margin-left: -3px; border-left: 3px solid transparent; border-radius: 0; color: var(--ink-soft); text-decoration: none; }
.toc li a:hover { color: var(--ink); border-left-color: var(--hair); }
/* The section being read: CSS where the browser can (scroll-target-group), else a class set by the page script. */
.toc li a:is(:target-current, .\:target-current) { color: var(--ink); border-left-color: var(--blaze); font-weight: 700; }
.doc-body { max-width: 42rem; min-width: 0; }
.doc-body section { padding: 28px 0 8px; scroll-margin-top: 16px; }
.doc-body section + section { border-top: 1.5px solid var(--hair); }
.doc-body h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem); margin-bottom: 12px; }
.doc-body p { color: var(--ink-soft); }
.doc-body section.short { background: var(--paper); border: 1.5px solid var(--hair); border-radius: 24px; padding: 20px 24px 8px; margin: 0 0 12px; }
.doc-body section.short + section { border-top: 0; }

/* ---- join ---- */
.card { background: var(--paper); border: 1.5px solid var(--hair); border-radius: 24px; padding: 24px 24px 10px; margin: 0 0 24px; }
.card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.card p { color: var(--ink-soft); max-width: 36em; }
.card .code { font: 800 clamp(2.4rem, 0.5rem + 9vw, 4rem)/1.1 var(--display); letter-spacing: 0.06em; margin: 8px 0 18px; word-break: break-all; color: var(--ink); max-width: none; }
/* The app's buttons: the primary action is blaze yellow, the secondary an outlined plate. */
.btn { display: inline-block; font: 800 1.125rem/1.2 var(--display); color: var(--spruce); background: var(--blaze); border: 0; border-bottom: 4px solid var(--blaze-dark); border-radius: 999px; padding: 13px 26px 11px; text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn.alt { background: var(--paper); color: var(--ink); border: 1.5px solid var(--hair); border-bottom-width: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.help h2 { font-size: 1.5rem; margin-bottom: 10px; }
.help p { color: var(--ink-soft); max-width: 36em; }
[hidden] { display: none !important; }

/* ---- footer ---- */
.foot { background: var(--spruce); color: #B5C6BC; padding: 32px 0; font-size: 1rem; border-top: 1.5px solid var(--hair); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot a { color: #EAF2EC; }
