/* MQBone static pages: help, release notes, privacy notice and terms.
   Deliberately small and self-contained — these pages need no JavaScript and no
   build step, so they can't share the Vue app's hashed stylesheet. Same tokens,
   same Apple system type, same single blue. */

:root {
  --bg: #f5f5f7;
  --white: #fff;
  --label: #1d1d1f;
  --secondary: #6e6e73;
  --blue: #0071e3;
  --blue-text: #0066cc;
  --orange-text: #8a4a00;
  --separator: rgb(60 60 67 / 0.13);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(46rem + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Header and footer, the same on every static page. */

.doc-header {
  border-bottom: 1px solid var(--separator);
  background: var(--white);
}

.doc-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-block: 6px;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--label);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.doc-brand img {
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgb(60 60 67 / 0.12);
}

.doc-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The prose rule `li + li { margin-top: 6px }` would otherwise nudge every link
   after the first out of line in these wrapped rows. */
.doc-nav li,
.doc-footer li {
  margin-top: 0;
}

.doc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
}

.doc-nav [aria-current="page"] {
  color: var(--label);
  font-weight: 600;
}

.doc-footer {
  margin-top: 56px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--separator);
  color: var(--secondary);
  font-size: 0.875rem;
}

.doc-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Prose */

main {
  padding-block: clamp(28px, 5vw, 48px) 8px;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  margin: 44px 0 0;
  font-family: var(--display);
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin: 28px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

p,
ul,
ol,
dl {
  margin: 12px 0 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 6px;
}

dt {
  margin-top: 12px;
  font-weight: 600;
}

dd {
  margin: 2px 0 0;
  color: var(--secondary);
}

.lead {
  margin-top: 14px;
  color: var(--secondary);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}

.small {
  color: var(--secondary);
  font-size: 0.875rem;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
}

/* Contents list at the top of a long page. */
.toc {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--white);
}

.toc h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary);
}

.toc ul {
  columns: 16rem auto;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.toc li {
  margin-top: 0;
  break-inside: avoid;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9375rem;
}

/* A section on a white card, so long pages stay readable. */
.card {
  margin-top: 20px;
  padding: 4px 24px 24px;
  border-radius: 16px;
  background: var(--white);
}

.card h2:first-child {
  margin-top: 20px;
}

/* Notices. The word in the text carries the meaning; the border only reinforces it. */
.note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgb(0 113 227 / 0.05);
  box-shadow: inset 0 0 0 1px var(--separator);
  font-size: 0.9375rem;
}

.note > :first-child {
  margin-top: 0;
}

.note--warn {
  background: rgb(138 74 0 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(138 74 0 / 0.35);
}

.note--warn b {
  color: var(--orange-text);
}

/* A long flat list (the languages) in columns instead of one tall run. */
.cols {
  columns: 11rem auto;
}

.cols li {
  margin-top: 0;
  break-inside: avoid;
}

/* Screenshot pairs. Tall phone shots, so each one is capped by height and the
   intrinsic width/height on the <img> reserves the space before it loads. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.shots figure {
  margin: 0;
}

.shots img {
  width: auto;
  max-width: 100%;
  max-height: 26rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--separator);
}

.shots figcaption {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 0.8125rem;
}

.shots figcaption b {
  display: block;
  color: var(--label);
}

@media (forced-colors: active) {
  .shots img {
    border: 1px solid CanvasText;
  }
}

/* Release notes */

.release {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
}

.release h2 {
  margin-top: 0;
}

.status-line {
  margin-top: 6px;
  color: var(--secondary);
  font-size: 0.875rem;
}

/* Tables */

.table-scroll {
  margin-top: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

caption {
  padding-bottom: 10px;
  color: var(--secondary);
  font-size: 0.875rem;
  text-align: left;
}

th,
td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--separator);
  vertical-align: top;
}

thead th {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (forced-colors: active) {
  .card,
  .note,
  .toc,
  .doc-brand img {
    border: 1px solid CanvasText;
  }
}
