/* GoBack — Guides: the hub (/guides), the article pages (/guides/…) and the strip of
   guides on the home page. The pages are written by tools/build_guides.py from
   content/guides/*.html. Colors are the theme tokens, so every theme works here too. */
:root { --prose: color-mix(in oklab, var(--text) 76%, var(--text-2)); }

/* ── Cards: the hub, "Keep reading" and the home page ──────────────────────── */
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-card { display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--card);
  text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.g-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 22px 44px -30px rgba(var(--accent-rgb), .7); }
.g-card .k { font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.g-card h3 { font-size: 19px; line-height: 1.24; font-weight: 680; letter-spacing: -.02em; text-wrap: balance; }
.g-card p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.g-card .m { font: 500 12px/1 var(--mono); color: var(--text-3); margin-top: 2px; }
@media (max-width: 960px) { .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-cards { grid-template-columns: 1fr; } .g-card { padding: 20px; } }

/* The home page's strip. */
.guides-home .g-cards { margin-top: 44px; }
.guides-home .more { margin-top: 30px; }

/* ── Hub ───────────────────────────────────────────────────────────────────── */
.g-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.g-jump a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line-2);
  color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.g-jump a:hover { color: var(--text); border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.g-jump a span { font: 600 11.5px/1 var(--mono); color: var(--text-3); }
.g-hub { padding-bottom: 100px; }
.g-sec { padding: 38px 0 14px; scroll-margin-top: 76px; }
.g-sec h2 { font-size: clamp(25px, 2.9vw, 34px); font-weight: 700; line-height: 1.1; }
.g-sec > p { color: var(--text-2); margin: 8px 0 22px; max-width: 66ch; }

/* ── Article ───────────────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none;
  font: 600 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .55; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-hi); }
.g-hero { padding: 126px 0 36px; }
.g-hero h1 { font-size: clamp(33px, 4.5vw, 54px); font-weight: 720; line-height: 1.06; margin-top: 20px; max-width: 21ch; text-wrap: balance; }
:root[data-family="tactical"] .g-hero h1 { text-transform: uppercase; letter-spacing: -.005em; font-size: clamp(30px, 4vw, 48px); }
.g-hero .lede { max-width: 64ch; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; font: 600 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.g-meta span { display: inline-flex; align-items: center; gap: 7px; }
.g-meta .ic { font-size: 14px; color: var(--accent-hi); }
.g-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 300px); justify-content: space-between; gap: 36px 64px; align-items: start; padding-bottom: 84px; }

.prose { color: var(--prose); font-size: 17px; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.16; letter-spacing: -.025em; color: var(--text); margin: 2.1em 0 .6em; scroll-margin-top: 92px; text-wrap: balance; }
.prose h3 { font-size: 19px; font-weight: 680; line-height: 1.3; letter-spacing: -.015em; color: var(--text); margin: 1.7em 0 .45em; }
.prose a { color: var(--accent-hi); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-hi) 40%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin: .42em 0; }
.prose li::marker { color: var(--accent-hi); }
.prose code { font: 500 .88em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--bg-3); color: var(--text); white-space: nowrap; }

/* Numbered steps. */
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 1.4em 0; }
.prose ol.steps > li { counter-increment: step; position: relative; margin: 0 0 16px; padding-left: 50px; min-height: 34px; }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px/1 var(--mono); color: var(--accent-hi); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .35); }

/* "In short", at the top of every article. */
.tldr { margin: 0 0 32px; padding: 20px 22px 18px; border-radius: 18px; border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .07); }
.tldr-h { font: 700 11.5px/1 var(--mono) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); margin: 0 0 10px !important; }
.tldr ul { margin: 0; }
.tldr li { margin: .35em 0; }
.tldr > :last-child { margin-bottom: 0; }

/* Tips and warnings. */
.prose .note { margin: 1.5em 0; padding: 15px 18px 15px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); font-size: 16px; line-height: 1.6; }
.prose .note.warn { border-left-color: var(--orange); }
.prose .note b:first-child { color: var(--text); }

/* Tables scroll sideways on a phone rather than squeezing. */
.prose .tbl { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; background: var(--bg-2); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* Screenshots, in the site's phone and watch frames. */
.prose figure { margin: 2em 0; padding: 34px 20px 22px; display: grid; justify-items: center; gap: 18px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(90% 70% at 50% 0%, rgba(var(--accent-rgb), .13), transparent 70%), var(--bg-2); }
.prose figure .phone { --w: min(250px, 62vw); }
.prose figure .watch { --w: min(190px, 50vw); }
.prose figure .watch .face > img { opacity: 1; object-fit: cover; }
.prose figure.plain img { width: auto; max-width: 100%; height: auto; max-height: 540px; border-radius: 16px; border: 1px solid var(--line-2); }
.prose figcaption { max-width: 54ch; font-size: 14px; line-height: 1.5; color: var(--text-3); text-align: center; }

/* Questions and answers, as on the Support page. */
.prose .faq { margin-top: 2.4em; }
.prose .faq summary { color: var(--text); font-size: 16.5px; line-height: 1.4; }
.prose .faq details p { font-size: 16px; line-height: 1.65; color: var(--prose); }

/* The download box that closes each article. */
.g-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 48px 0 0; padding: 24px; border-radius: 22px;
  border: 1px solid rgba(var(--accent-rgb), .4); background: radial-gradient(120% 150% at 0% 0%, rgba(var(--accent-rgb), .17), transparent 62%), var(--card); }
.g-cta > img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), .8); }
.g-cta > div > b { display: block; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; color: var(--text); }
.g-cta > div > p { margin: 5px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.prose .g-cta a.store { color: var(--bg); text-decoration: none; }
@media (max-width: 700px) { .g-cta { grid-template-columns: auto minmax(0, 1fr); } .g-cta .store { grid-column: 1 / -1; justify-self: start; } }

/* Side column: what's on this page, and the app. */
.g-side { position: sticky; top: 92px; display: grid; gap: 14px; max-height: calc(100vh - 112px); overflow: auto; scrollbar-width: none; }
.g-side::-webkit-scrollbar { display: none; }
.toc { border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; cursor: default; list-style: none;
  font: 700 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0 8px 10px; }
.toc a { display: block; padding: 7px 10px; border-radius: 0 9px 9px 0; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--text-2); text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
.toc a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.toc a.on { color: var(--text); border-left-color: var(--accent); background: rgba(var(--accent-rgb), .09); }
.side-app { display: grid; gap: 12px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.side-app .who { display: flex; align-items: center; gap: 12px; }
.side-app img { width: 46px; height: 46px; border-radius: 11px; }
.side-app b { display: block; font-size: 16px; line-height: 1.2; }
.side-app small { color: var(--text-3); font-size: 12.5px; }
.side-app p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.side-app .btn { height: 44px; justify-content: center; font-size: 14.5px; }

/* Keep reading. */
.g-related { padding-bottom: 100px; }
.g-related > h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; margin-bottom: 20px; }
.g-related .all { margin-top: 26px; }

@media (max-width: 1000px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: 64px; }
  .g-side { position: static; order: -1; max-height: none; overflow: visible; }
  .side-app { display: none; }
  .toc summary { padding: 15px 18px; cursor: pointer; }
  .toc summary::after { content: "+"; color: var(--accent-hi); font: 400 20px/1 var(--font); letter-spacing: 0; transition: transform .25s; }
  .toc[open] summary::after { transform: rotate(45deg); }
}
@media (max-width: 620px) {
  .g-hero { padding: 108px 0 28px; }
  .prose { font-size: 16.5px; }
  .prose figure { padding: 26px 14px 18px; }
}
@media print {
  .nav, .g-side, .g-cta, .g-related, .footer, .to-top, .theme-pop { display: none !important; }
  .g-layout { display: block; }
  .g-hero { padding-top: 0; }
}
