/* Shared presentation for product documents. Their original text stays intact. */
:root {
  color-scheme: light;
  --paper: #f6f2ea;
  --surface: #fcfaf6;
  --ink: #272727;
  --muted: #6b665e;
  --accent: #a54132;
  --line: #dcd6cc;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/24px Manrope, system-ui, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }

.docs-site-header {
  width: min(1100px, calc(100% - 80px));
  margin: 0 auto 48px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.docs-home { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-decoration: none; }
.docs-home img { width: 80px; mix-blend-mode: multiply; }
.docs-home > span { font-size: 14px; line-height: 20px; font-weight: 600; }
.docs-home > span > span { margin-right: 8px; }

main,
body > header:not(.docs-site-header),
body > footer {
  width: min(800px, calc(100% - 80px));
  margin-inline: auto;
}
main { padding-bottom: 64px; }
body > header:not(.docs-site-header) { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; }
body > header:not(.docs-site-header) nav { margin-left: auto; }
main > header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.mark { width: 48px; height: 28px; flex: none; }
.brand { color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.035em; text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
body > header:not(.docs-site-header) nav { margin-top: 0; }
nav a { padding: 12px 16px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; }
nav a:hover { background: #eae4da; }

h1, h2, h3 { color: var(--ink); font-weight: 500; text-wrap: balance; }
h1 { font-size: 48px; line-height: 1; letter-spacing: -.045em; margin: 24px 0 16px; }
h2 { font-size: 24px; line-height: 32px; letter-spacing: -.025em; margin: 32px 0 12px; }
h3 { font-size: 20px; line-height: 28px; letter-spacing: -.02em; margin: 32px 0 12px; }
p, li { color: var(--muted); margin: 0 0 16px; text-wrap: pretty; }
ul, ol { padding-left: 24px; }
.meta { color: var(--muted); font-size: 14px; line-height: 20px; margin-bottom: 24px; }
.card, .policy { padding: 40px 0; }
.card:first-child { padding-top: 8px; }
.card h1 { margin-top: 0; }
.policy > h2 { font-size: 30px; line-height: 36px; margin: 0 0 24px; }
.contact { margin: 32px 0; padding: 24px 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact h2 { margin-top: 0; }
.contact p:last-child { margin-bottom: 0; }
footer { color: var(--muted); font-size: 12px; line-height: 16px; padding-top: 24px; }
body > footer { margin-top: -48px; padding-bottom: 48px; }
main > footer { margin-top: 4px; }

@media (max-width: 600px) {
  .docs-site-header,
  main,
  body > header:not(.docs-site-header),
  body > footer { width: calc(100% - 40px); }
  .docs-site-header { padding: 24px 0; margin-bottom: 32px; }
  .docs-home img { width: 64px; }
  .docs-home > span { font-size: 12px; line-height: 16px; }
  body > header:not(.docs-site-header) nav { width: 100%; margin-left: 0; }
  nav a { padding: 12px 16px; }
  h1 { font-size: 36px; line-height: 40px; }
  main { padding-bottom: 48px; }
  .card, .policy { padding-block: 32px; }
  .contact { padding: 24px; }
  body > footer { margin-top: -24px; padding-bottom: 32px; }
}

@media print {
  body { background: #fff; color: #000; font: 11pt/1.6 sans-serif; }
  .docs-site-header, nav { display: none; }
  main, body > header:not(.docs-site-header), body > footer { width: 100%; max-width: none; }
  main { padding: 0; }
  p, li, .meta, footer, a { color: #000; }
  .card, .policy { break-before: page; border: 0; }
  .card:first-child, .policy:first-of-type { break-before: auto; }
  .contact { background: none; }
}
