/* The how-to guide. Tokens, fonts and the starry void come from /landing.css; this lays out a long
   page to read: a contents list beside the text on a wide screen, folded above it on a phone. */
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { height: auto; }
body { display: block; padding: 0 16px 32px; font-size: 17px; line-height: 1.6; }

.top {
  max-width: 1080px; margin: 0 auto; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand img { width: 40px; height: 40px; padding: 6px; border-radius: 10px; background: var(--navy); object-fit: contain; }
.brand span { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.2em; }
.brand .tm { font-size: .4em; vertical-align: super; letter-spacing: 0; }
.top .signin { min-height: 40px; padding: 0 20px; font-size: 15px; }

.wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
main { display: block; text-align: left; padding: 0; min-width: 0; }

.toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 16px 18px; background: var(--hull); border: 1px solid var(--hairline); border-radius: 14px; font-size: 15px; }
.toc summary { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; }
.toc a { display: block; padding: 5px 0; color: var(--cream); text-decoration: none; }
.toc a:hover { color: var(--red); }
.toc ol ol { margin: 0 0 4px; padding-left: 12px; border-left: 1px solid var(--hairline-strong); }
.toc ol ol a { padding: 3px 0; color: var(--text-2); font-size: 14px; }

.hero, section { background: var(--hull); border: 1px solid var(--hairline); border-radius: 18px; padding: 28px 30px; margin: 0 0 18px; }
h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: 0.12em; text-indent: 0; line-height: 1.15; }
.hero p { margin: 0; color: var(--text-2); max-width: 60ch; }
h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: 0.1em; line-height: 1.25; }
h2 + .what { margin: 0 0 18px; color: var(--text-2); }
h3 { margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid var(--hairline); font-family: var(--font-body); font-weight: 400; font-size: 20px; letter-spacing: 0.01em; }
h4 { margin: 18px 0 4px; font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
p { margin: 0 0 12px; max-width: 68ch; }
ol, ul { margin: 0 0 14px; padding-left: 24px; max-width: 68ch; }
li { margin: 0 0 5px; }
li::marker { color: var(--text-2); }
a { color: var(--cream); text-underline-offset: 3px; }
a:hover { color: var(--red); }

/* A label as it reads on the screen. */
b { font-weight: 400; padding: 1px 7px; border: 1px solid var(--hairline-strong); border-radius: 7px; background: var(--deck); white-space: nowrap; font-size: .94em; }
.note { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--red); border-radius: 0 10px 10px 0; background: var(--deck); max-width: 68ch; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note strong { font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; color: var(--text-2); display: block; margin-bottom: 2px; }
dl { margin: 0 0 14px; max-width: 68ch; }
dt { margin-top: 8px; }
dd { margin: 0 0 0 0; color: var(--text-2); }
.table { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; max-width: 68ch; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--hairline); }
th { font-weight: 400; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }

/* The index under the title: every section one tap away, on any width. */
.index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.index a { padding: 6px 14px; border: 1px solid var(--hairline-strong); border-radius: 999px; color: var(--cream); text-decoration: none; font-size: 15px; }
.index a:hover { border-color: var(--cream); color: var(--cream); background: var(--deck); }
.index a.new { border-color: var(--red); }

/* What's new: a release is a date and a short list. */
.release h2 { font-family: var(--font-body); font-size: 20px; letter-spacing: 0.01em; margin-bottom: 10px; }
.release li strong { font-weight: 400; border-bottom: 1px solid var(--hairline-strong); }
.back { display: inline-block; margin-top: 14px; }

footer { max-width: 1080px; margin: 8px auto 0; padding: 0 8px; }

@media (max-width: 860px) {
  body { padding: 0 12px 24px; font-size: 16px; }
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .toc { display: none; }
  .toc summary::after { content: " +"; }
  .toc[open] summary::after { content: " \2212"; }
  .hero, section { padding: 22px 18px; border-radius: 14px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  h3 { font-size: 18px; }
}
@media print {
  .toc, .top .signin { display: none; }
  .wrap { display: block; }
  body::before { display: none; }
  .hero, section { border: 0; padding: 0 0 12px; break-inside: auto; }
}
