/* LocalHub docs. Self-contained: this folder can become the root of docs.trylocalhub.com as it is.
   The tokens match the main site's site.css. Dark only for now, like the main site. No script. */

@font-face { font-family: Inter; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e;
  --label: #ffffff; --label-2: rgba(235, 235, 245, .8);
  --sep: rgba(84, 84, 88, .6); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .32);
  --blue: #0a84ff; --orange: #ff9f0a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px;
  --side: 248px;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; color: var(--label); font: 17px/1.45 var(--font); letter-spacing: -0.016em; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 5; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--label); }
.skip:focus { top: 12px; }

/* The frame: sidebar on desktop, a plain menu on phones. */
.frame { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: calc(var(--side) + 820px + 3 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--label); font-size: 15px; font-weight: 600; letter-spacing: -0.006em; text-decoration: none; }
.brand img { border-radius: 5px; }
.brand span { color: var(--label-2); font-weight: 500; }

.side { display: none; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-title { margin-bottom: 4px; padding-inline: 10px; color: var(--label-2); font-size: 13px; font-weight: 600; letter-spacing: -0.006em; }
.nav-list a { display: flex; align-items: center; min-height: 34px; padding: 5px 10px; border-radius: 8px; color: var(--label); font-size: 15px; line-height: 1.25; text-decoration: none; }
.nav-list a:hover { background: var(--fill); }
.nav-list a[aria-current="page"] { background: var(--fill-2); font-weight: 600; }

.menu { margin-top: 2px; border-radius: 12px; background: var(--surface); }
.menu summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-inline: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 8px; height: 8px; margin-right: 3px; border-right: 1.5px solid var(--label-2); border-bottom: 1.5px solid var(--label-2); transform: translateY(-2px) rotate(45deg); }
.menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.menu .nav { padding: 6px 4px 14px; }
.menu .nav-list a { min-height: 44px; font-size: 17px; }

@media (min-width: 900px) {
  .frame { grid-template-columns: var(--side) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 64px); }
  .phone-top { display: none; }
  .side { display: block; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding-block: 14px 28px; margin-inline: -10px 0; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side .brand { margin-bottom: 18px; padding-inline: 10px; }
}

/* The page. */
.doc { min-width: 0; padding-top: clamp(26px, 6vw, 58px); }
.doc-wide { max-width: 760px; }
.doc a { color: var(--label); text-decoration: underline 1px rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc b { font-weight: 600; }
.doc code { padding: .08em .34em .1em; border-radius: .26em; background: var(--fill-2); font: 500 .86em/1.2 var(--mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.doc p { max-width: 38em; text-wrap: pretty; }
.doc p + p { margin-top: 10px; }
.doc h1, .doc h2, .doc h3 { text-wrap: balance; }

.doc-head h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -0.038em; }
.doc-head .lede { margin-top: 12px; color: var(--label-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.36; }
.for-phone { display: none; }
@media (max-width: 639px), (hover: none) and (pointer: coarse) and (max-width: 1024px) { .for-phone { display: block; } }

.part { margin-top: clamp(38px, 6vw, 56px); scroll-margin-top: 20px; }
.part > h2 { margin-bottom: 10px; font-size: clamp(23px, 3vw, 28px); font-weight: 600; line-height: 1.14; letter-spacing: -0.028em; }
.part h3 { margin-top: 24px; margin-bottom: 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.part .aside { margin-top: 16px; color: var(--label-2); font-size: 15px; line-height: 1.42; }

.how { margin-top: 14px; max-width: 38em; counter-reset: how; }
.how li { position: relative; padding-left: 36px; counter-increment: how; }
.how li + li { margin-top: 12px; }
.how li::before { content: counter(how); position: absolute; left: 0; top: .08em; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sep); color: var(--label-2); font: 600 12px/1 var(--mono); letter-spacing: 0; }

.dots { margin-top: 12px; max-width: 38em; }
.dots li { position: relative; padding-left: 18px; }
.dots li + li { margin-top: 8px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--label-2); }

.list { margin-top: 14px; max-width: 38em; }
.list div { padding: 10px 0; box-shadow: 0 .5px 0 var(--sep); }
.list div:last-child { box-shadow: none; }
.list dt { font-weight: 600; }
.list dd { margin-top: 2px; color: var(--label-2); }

/* Keys stay readable on one line, and wrap as a group. */
kbd { display: inline-block; min-width: 1.7em; padding: .1em .42em; border-radius: .34em; background: var(--fill-2); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12); font: 500 .84em/1.4 var(--font); letter-spacing: -0.01em; text-align: center; white-space: nowrap; }

.note { margin-top: 22px; padding: clamp(16px, 2.4vw, 20px); max-width: 42em; border-radius: 16px; background: var(--surface); }
.note h2, .note h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.note p { margin-top: 6px; color: var(--label-2); }
.note p:first-child { margin-top: 0; }
.warn { background: color-mix(in srgb, var(--orange) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 45%, transparent); }
.warn p { color: var(--label); }

.coming { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.018em; }

.shot { margin: 20px 0 0; }
.shot img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 .5px var(--sep); }
.shot.small img { max-width: 380px; box-shadow: none; border-radius: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 18px; }
.split h3:first-child { margin-top: 0; }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; } }

.problem { padding-block: 16px; box-shadow: 0 .5px 0 var(--sep); }
.problem:last-child { box-shadow: none; }
.problem h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }

.starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 18px; }
.doc .starts a { display: block; min-height: 44px; padding: 14px 16px; border-radius: 14px; background: var(--surface); text-decoration: none; }
.doc .starts a:hover { background: var(--surface-2); }
.starts b { display: block; }
.starts span { display: block; margin-top: 2px; color: var(--label-2); font-size: 15px; line-height: 1.35; }

.licence { margin-top: 14px; max-width: 42em; padding: 14px 16px; border-radius: 12px; background: var(--surface); color: var(--label-2); font-size: 13px; line-height: 1.45; letter-spacing: -0.006em; white-space: pre-line; overflow-wrap: anywhere; }

.next { margin-top: clamp(40px, 6vw, 60px); padding-top: 16px; box-shadow: 0 -.5px 0 var(--sep); }
.doc .next a { display: inline-block; padding-block: 10px; font-weight: 500; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 8px; padding-block: 28px max(32px, env(safe-area-inset-bottom)); color: var(--label-2); font-size: 13px; letter-spacing: -0.006em; }
.doc .foot a { color: var(--label-2); }
.foot-name { font-size: 15px; font-weight: 600; color: var(--label); }
