/* skystaapp.com, the reading pages: the privacy policy, the terms, the
   guidelines, support, the press kit, the share landing, verified and 404.
   Loaded after home.css and spots.css on every page site/build-legal.mjs and
   site/build-pages.mjs write, so the tokens, the header, the footer and the
   crumbs are theirs. Only the long-form reading layout and these pages' own
   shapes live here.

   The measure is --measure, which home.css sets once for the whole site: about
   68 characters of the serif at 18px, the app's own reading width. Body copy is
   set at 0.88 of the paper on the night, which measures over 13:1 against the
   ground; the quieter lines use --text-2, which still clears 10:1. Nothing in a
   long read drops to --text-3. Every other size, corner and colour here is a
   token from home.css too, so these pages can never drift from the home page. */

:root {
  --read: rgba(255, 252, 247, 0.88);
  --read-2: rgba(255, 252, 247, 0.78);
}

/* ---------------------------------------------------------- masthead */
.doc-mast { padding: 52px 0 32px; border-bottom: 1px solid var(--line); }
.doc-mast h1 {
  font-family: var(--serif); font-weight: 600; font-variation-settings: "wght" 600;
  font-size: var(--t-page); line-height: 1.05; letter-spacing: -0.5px;
  margin-top: var(--gap-eyebrow); text-wrap: balance; max-width: 22ch;
}
.doc-standfirst { margin-top: 14px; color: var(--text-2); font-size: 17px; max-width: 64ch; }
.doc-standfirst strong { color: var(--text); font-weight: 650; }
.doc-standfirst a { color: var(--gold); font-weight: 600; text-decoration: none; }
.doc-standfirst a:hover { text-decoration: underline; }

/* ------------------------------------------------------ the reading */
.doc-main { padding: 36px 0 88px; }
/* <section> inside a document is structure, not a band: home.css's 96px goes. */
.doc-main section { padding: 0; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.doc-rail { display: none; }

/* The jump list on a phone: closed until asked, one <nav> in the tree at any
   width (the rail below 1024 is display:none, this above it). */
.toc-drawer { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--night-2); padding: 0 18px; margin-bottom: 32px; }
.toc-drawer summary {
  list-style: none; cursor: pointer; min-height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 700; font-size: 15px;
}
.toc-drawer summary::-webkit-details-marker { display: none; }
.toc-drawer summary::after { content: "+"; color: var(--text-3); font-size: 22px; line-height: 1; }
/* A minus sign, never a dash: the voice rule holds for glyphs too. */
.toc-drawer[open] summary::after { content: "\2212"; }
.toc-list { list-style: none; padding: 0; margin: 0 0 12px; }
.toc-list a {
  display: flex; gap: 10px; align-items: baseline; min-height: 40px; padding: 6px 0;
  color: var(--text-2); text-decoration: none; font-size: 14.5px; line-height: 1.35; font-weight: 600;
}
.toc-list a:hover { color: var(--text); }
.toc-list .sec-num { color: var(--gold); font-variant-numeric: tabular-nums; flex: none; min-width: 1.6em; }

/* the body */
.doc-body { font-family: var(--serif); font-size: 17.5px; line-height: 1.7; color: var(--read); min-width: 0; }
.doc-body > *, .doc-sec > * { max-width: var(--measure); }
.doc-body > .wide, .doc-sec > .wide { max-width: none; }
.doc-body p, .doc-body ul, .doc-body ol { margin: 0 0 18px; }
.doc-body ul, .doc-body ol { padding-left: 1.4em; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--text-3); }
.doc-body strong { color: var(--text); font-weight: 650; }
.doc-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(235, 168, 53, 0.45); }
.doc-body a:hover { text-decoration-color: currentColor; }
.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em;
  background: rgba(255, 252, 247, 0.08); padding: 1px 6px; border-radius: 6px; color: var(--text);
}
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.doc-lead { font-size: 20px; line-height: 1.55; color: var(--text); margin-bottom: 40px; }
.doc-lead p:last-child { margin-bottom: 0; }

/* a section: the rule above it is the boundary the markdown's --- used to draw */
/* section.doc-sec, not .doc-sec: home.css's `section[id]` rule ties at one class
   otherwise and its 66px would put a landed heading flush under the header. */
.doc-main section.doc-sec { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 44px; scroll-margin-top: 84px; }
.doc-sec > h2 {
  font-family: var(--serif); font-weight: 640; font-size: var(--t-sub); line-height: 1.2;
  margin: 0 0 18px; color: var(--text); text-wrap: balance;
}
.doc-sec > h2 .sec-num { color: var(--gold); font-variant-numeric: tabular-nums; }
.doc-body h3 {
  font-family: var(--serif); font-weight: 640; font-size: var(--t-card); line-height: 1.25;
  margin: 30px 0 10px; color: var(--text); scroll-margin-top: 84px;
}
.doc-body h4 {
  font-family: var(--sans); font-weight: 800; font-size: var(--t-eyebrow); letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--text-2); margin: 24px 0 8px;
}
.doc-sec:target > h2, .doc-body h3:target { color: var(--gold-soft); }

/* privacy's "The short version": the document's standfirst, on its own plate */
.doc-main section.doc-sec--unnumbered {
  border-top: 0; padding: 26px 28px; background: var(--night-2);
  /* Gold, not coral: coral is for an action and the score arc, and this is a mark. */
  border-left: 3px solid var(--gold); border-radius: 0 var(--r-card) var(--r-card) 0;
}
.doc-sec--unnumbered > h2 { font-size: var(--t-card); }
.doc-sec--unnumbered ul { list-style: none; padding: 0; margin: 0; }
.doc-sec--unnumbered li { margin-bottom: 14px; }
.doc-sec--unnumbered li:last-child { margin-bottom: 0; }

blockquote.wide {
  background: var(--night-2); border-left: 3px solid var(--gold); border-radius: 0 var(--r-card) var(--r-card) 0;
  padding: 20px 24px; margin: 22px 0; color: var(--read-2);
}
blockquote.wide > :last-child { margin-bottom: 0; }

/* tables: sans, on a card, scrolling inside their own box when the window is
   narrower than the table, so the page itself never scrolls sideways */
.table-scroll {
  overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--night-2);
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 600px; font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--read); }
.table-scroll th {
  text-align: left; font-size: var(--t-micro); font-weight: 800; letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--text-2); padding: 12px 16px; background: var(--night-3); vertical-align: bottom; white-space: nowrap;
}
.table-scroll td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table-scroll code { white-space: nowrap; }

/* wide: the contents rail beside the text, sticking under the header */
@media (min-width: 1024px) {
  .doc-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc-drawer { display: none; }
  .doc-rail { display: block; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
  .rail-head { font-size: var(--t-eyebrow); font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
  .doc-rail .toc-list { margin: 0; }
  .doc-rail .toc-list a { min-height: 32px; padding: 4px 0; font-size: 14px; }
  .doc-body { font-size: 18px; }
}

/* ------------------------------------------------------------ support */
.contact-card { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.contact-card p:last-child { margin-bottom: 0; }
.doc--support .doc-sec > h2 { margin-bottom: 0; }
.doc--support .qa > h3 { margin-top: 0; }

/* -------------------------------------------------------------- press */
/* Side-headed: the department label on the left, the copy on the right. */
.press-sec { display: grid; gap: 10px 40px; border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 40px; }
.press-sec > h2 {
  font-family: var(--sans); font-weight: 800; font-size: var(--t-eyebrow); line-height: 1.4; letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.press-sec .sec-body { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--read); max-width: var(--measure); min-width: 0; }
.press-sec .sec-body p { margin: 0 0 18px; }
.press-sec .sec-body p:last-child { margin-bottom: 0; }
.press-sec .sec-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(235, 168, 53, 0.45); }
.press-sec.press-wide .sec-body { max-width: none; }
.pull {
  font-size: clamp(24px, 3vw, 32px); line-height: 1.3; font-weight: 600; font-variation-settings: "wght" 600;
  color: var(--text); text-wrap: balance;
}
.dropcap::first-letter {
  float: left; font-size: 3.2em; line-height: 0.8; padding: 8px 10px 0 0;
  color: var(--gold-soft); font-weight: 600; font-variation-settings: "wght" 600;
}
.press-card { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 28px; }
.factlist { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 15.5px; line-height: 1.55; }
.factlist li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--read); }
.factlist li:first-child { border-top: 0; }
.colophon-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.colophon-item { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 28px; box-shadow: var(--shadow); }
.colophon-item h2 { font-family: var(--serif); font-weight: 640; font-size: var(--t-sub); line-height: 1.2; margin: 0 0 8px; }
.colophon-item p { color: var(--text-2); font-size: 15.5px; }
.colophon-item a { color: var(--gold); font-weight: 600; text-decoration: none; }
.colophon-item a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .press-sec { grid-template-columns: 200px minmax(0, 1fr); }
  .press-sec > h2 { padding-top: 6px; }
}

/* ---------------------------------------------------- the short pages */
/* /verified/ and 404: one title, one paragraph, the way back. */
.lost { min-height: 56vh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 80px 0; }
.lost .kicker { text-align: center; }
.lost h1 {
  font-family: var(--serif); font-weight: 600; font-variation-settings: "wght" 600;
  font-size: var(--t-page); line-height: 1.05; letter-spacing: -0.5px; margin-top: var(--gap-eyebrow); text-wrap: balance; max-width: 18ch;
}
.lost .muted { color: var(--text-2); font-size: 18px; line-height: 1.6; max-width: 46ch; margin-top: 16px; text-wrap: pretty; }
.lost .muted a { color: var(--gold); font-weight: 600; text-decoration: none; }
.lost .muted a:hover { text-decoration: underline; }
.lost .ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.lost .also { margin-top: 26px; font-size: 15px; }

/* ---------------------------------------------------- the shared sky */
/* The landing for a link somebody sent: the dock from the home page, then
   two plain sections saying what was sent and what was not. */
.share-hero { padding: 40px 0 0; }
.dock h1 { font-family: var(--serif); font-weight: 640; font-size: var(--t-sec); line-height: 1.12; margin: var(--gap-eyebrow) 0 var(--gap-lede); text-wrap: balance; }
.dock .aside { margin-top: 6px; font-size: 14.5px; color: rgba(255, 252, 247, 0.8); }
.share-sec .lede { margin-top: 6px; }
.share-sec .lede + .lede { margin-top: 16px; }
.share-sec .lede a { color: var(--gold); font-weight: 600; text-decoration: none; }
.share-sec .lede a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 800px) {
  .colophon-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .doc-mast { padding: 36px 0 24px; }
  .doc-main { padding: 28px 0 64px; }
  .doc-body { font-size: 17px; }
  .doc-sec--unnumbered { padding: 20px 20px; }
  .contact-card, .press-card { padding-left: 20px; padding-right: 20px; }
  .lost { min-height: 48vh; padding: 56px 0; }
  .lost .ways .btn { flex: 1 1 auto; }
  .share-hero { padding-top: 24px; }
}
