/* /guides/ pages: linked after site.css (the shell). Content typography, the server table, the app box.
   The pages are generated by scripts/gen-guides.mjs; bump CSS_V there after a change here. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink);
  padding: 8px 16px; border-radius: 6px; font: 600 14px var(--sans); }
.skip:focus { left: 16px; z-index: 10; }

.wrap { width: 100%; max-width: 780px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
main.wrap { padding-bottom: 32px; }

.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0;
  font-size: 14px; color: var(--muted-c); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #2B3E57; }
.crumbs a { color: var(--muted-c); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

.doc-head { margin-bottom: 36px; }
.doc-head h1 { margin: 16px 0 10px; font-size: clamp(30px, 5vw, 46px); }
.doc-head .updated { margin: 0; font-size: 13px; color: var(--text-subtle); letter-spacing: .03em; }

.legal h2 { margin: 48px 0 12px; font-size: 24px; }
.legal h3 { margin: 30px 0 8px; font: 600 18px/1.35 var(--sans); color: var(--white); }
.legal p, .legal li { color: var(--soft); }
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { margin: 0 0 18px; padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--ring); }
.legal a { text-decoration: none; border-bottom: 1px solid #7DD3FC66; }
.legal a:hover { border-bottom-color: var(--link); }
.legal code { font: 400 0.9em/1 var(--mono); background: var(--raised); color: var(--white);
  padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.legal .lede { font-size: 19px; color: var(--soft); margin-bottom: 28px; }
.legal .note { background: var(--card); border: 2px solid var(--raised); border-left: 6px solid var(--amber);
  border-radius: 12px; padding: 14px 18px; }
.legal .small { font-size: 14px; color: var(--muted-c); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tables scroll inside their own box on phones, never the page. */
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 24px; border: 2px solid var(--raised); border-radius: 14px; background: var(--card); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.legal caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 13px; color: var(--muted-c); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--raised); }
.legal thead th { font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-c); }
.legal tbody th { color: var(--white); font-weight: 600; }
.legal tbody tr:last-child > * { border-bottom: 0; }
.legal td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.srv code { white-space: nowrap; }
.srv .tag { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--amber); padding: 3px 6px; border-radius: 4px; vertical-align: 2px; }
.srv a.open { white-space: nowrap; }

.shot { margin: 8px 0 28px; display: flex; gap: 18px; align-items: center; }
.shot img { width: 200px; height: auto; border-radius: 18px; border: 2px solid var(--raised); flex: none; }
.shot figcaption { font-size: 15px; color: var(--muted-c); }
@media (max-width: 520px) { .shot { flex-direction: column; align-items: flex-start; } .shot img { width: 60%; } }

/* Get-the-app box */
.appbox { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin: 32px 0;
  background: var(--card); border: 2px solid var(--raised); border-radius: 18px; padding: 20px 22px; }
.appbox .icon { border-radius: 14px; }
.appbox .txt p { margin: 0; font-size: 15px; color: var(--soft); }
.appbox .txt .t { font: 400 22px/1.2 var(--pixel); color: var(--white); margin-bottom: 4px; }
.appbox .badges { grid-column: 1 / -1; margin: 8px 0 0; }
.legal .appbox .badges a { border-bottom: 0; }

/* Server page card */
.srv-card { background: var(--card); border: 2px solid var(--raised); border-radius: 18px; padding: 20px 22px; margin: 0 0 28px; }
.srv-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; margin: 0 0 18px; }
.srv-card dt { font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-c); }
.srv-card dd { margin: 4px 0 0; color: var(--white); }
.srv-card p { margin: 0 0 8px; }
.legal .srv-card a.btn { border-bottom: 0; color: var(--ink); }

/* Hub */
.cards { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.legal .cards li { margin: 0; }
.legal .cards a { display: block; border: 2px solid var(--raised); border-radius: 14px; background: var(--card);
  padding: 16px 18px; border-bottom-width: 2px; }
.legal .cards a:hover { border-color: #2B3E57; }
.cards .h { display: block; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.cards .d { display: block; font-size: 15px; color: var(--muted-c); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legal .chips li { margin: 0; }
.legal .chips a { display: inline-block; border: 2px solid var(--raised); border-radius: 10px; padding: 6px 12px; background: var(--card); }

.related { margin-top: 48px; border-top: 2px solid var(--raised); padding-top: 8px; }
.disclaimer { margin: 40px 0 0; font-size: 13px; color: var(--muted-c); }
