/* VOVO Baby website · the reading pages (Privacy Policy, Terms of Use, Support, Legal notice, Page not found).
   Same tokens, header and footer as the home page (base.css); one readable column; prints cleanly. */

.doc { background: var(--bg); }

/* ---------- Header ---------- */
.hdr--doc {
  max-width: calc(44rem + 2 * var(--gutter)); margin: 0 auto;
  height: auto; min-height: var(--hdr-h);
  padding-top: 10px; padding-bottom: 6px;
}
.hdr__get {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: .875rem; font-weight: 600; text-decoration: none;
}
.hdr__get:hover { background: var(--ink-pressed); text-decoration: none; }

.docnav {
  max-width: calc(44rem + 2 * var(--gutter)); margin: 0 auto;
  padding: 0 var(--gutter);
}
.docnav ul {
  display: flex; flex-wrap: wrap; gap: 0 22px;
  margin: 0; padding: 0 0 2px;
  list-style: none;
  border-bottom: 1px solid var(--border);
}
.docnav a {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-2); font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.docnav a:hover { color: var(--text); border-bottom-color: var(--border-2); }
.docnav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--ink); }

/* ---------- Reading column ---------- */
.doc__main {
  max-width: calc(44rem + 2 * var(--gutter)); margin: 0 auto;
  padding: 8px var(--gutter) 56px;
  font-size: 1rem; line-height: 1.6;
  color: var(--text);
}
.doc__main > :first-child { margin-top: 40px; }

.doc__main h1 {
  margin: 40px 0 8px;
  font: 400 clamp(2.25rem, 1.6rem + 2.4vw, 3rem)/1.08 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.doc__main h1 em { font-style: italic; color: var(--info); }
.doc__main h2 {
  margin: 2.5rem 0 .5rem;
  font: 600 1.25rem/1.3 var(--sans);
  letter-spacing: -.005em;
  scroll-margin-top: 16px;
}
.doc__main h3 { margin: 1.6rem 0 .3rem; font: 600 1.0625rem/1.35 var(--sans); scroll-margin-top: 16px; }
.doc__main p, .doc__main ul, .doc__main ol { margin: 0 0 1rem; }
.doc__main li { margin: 0 0 .4rem; }
.doc__main ul, .doc__main ol { padding-left: 1.3rem; }
.doc__main strong { font-weight: 600; }
.doc__main a { overflow-wrap: anywhere; }
.doc__main code { font: .9em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); }

.updated, .lead { color: var(--muted-readable); }
.updated { margin-bottom: 1.5rem !important; font-size: .9375rem; }
.lead { font-size: 1.125rem; }

.summary {
  margin: 1.5rem 0 2rem;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  box-shadow: var(--shadow-1);
}
.summary p:last-child { margin-bottom: 0; }

.toc {
  margin: 0 0 2rem;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: .9375rem;
}
.toc h2 { margin: 0 0 .4rem !important; font-size: .75rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-readable); }
.toc ol { margin: 0 !important; padding-left: 1.2rem; columns: 2 14rem; column-gap: 28px; }
.toc li { margin: 0 0 .2rem; break-inside: avoid; }

/* Contact details and other label / value lists */
.facts {
  display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 6px 18px;
  margin: 0 0 1.25rem; padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.facts dt { color: var(--muted-readable); font-weight: 500; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .facts dd:last-child { margin-bottom: 0; }
}

/* Tables */
.table-wrap { margin: .75rem 0 1.25rem; overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-1); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.5; }
caption { caption-side: top; text-align: left; padding: 12px 14px 4px; color: var(--muted-readable); font-size: .875rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--border); }
thead th { border-top: 0; color: var(--muted-readable); font-weight: 600; font-size: .8125rem; letter-spacing: .02em; }

/* Questions and answers (Support) */
details {
  margin: .6rem 0;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
summary {
  position: relative;
  display: block;
  padding: 14px 48px 14px 18px;
  cursor: pointer;
  font-weight: 600; line-height: 1.4;
  list-style: none;
  border-radius: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover { background: color-mix(in srgb, var(--surface-3) 60%, transparent); }
/* .doc__main in front: otherwise ".doc__main p, .doc__main ul" (more specific) sets the side margins to 0 and the
   answers touch the card's edge. */
.doc__main details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.doc__main details > :last-child { margin-bottom: 16px; }
details[open] > summary { padding-bottom: 8px; }

.group-title { display: flex; align-items: center; gap: 10px; }
.group-title .tag { font-size: .625rem; }

.note { font-size: .9375rem; color: var(--text-2); }
.back { margin-top: 2.5rem; }
.back a { font-weight: 600; text-decoration: none; }
.back a:hover { text-decoration: underline; }

/* Page not found */
.nf { text-align: center; padding-top: 6vh; }
.nf .nf__icon { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--ring), var(--shadow-3); display: block; }
.nf ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }

@media (max-width: 30rem) {
  table { font-size: .875rem; }
  th, td { padding: 9px 10px; }
  td { overflow-wrap: anywhere; }
  .hdr__get { padding: 0 14px; }
}

/* ---------- Print: just the text ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --text-2: #222; --muted-readable: #444; --info: #000; --border: #bbb; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hdr__get, .docnav, .skip { display: none !important; }
  .hdr--doc { padding: 0; min-height: 0; }
  .doc__main { max-width: none; padding: 0; }
  .doc__main h1 { margin-top: 12pt; }
  .summary, .toc, .facts, .table-wrap, details { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  details > summary::after { display: none; }
  /* Every answer prints, even without JavaScript (legal.js opens them where ::details-content is not supported). */
  details::details-content { content-visibility: visible; display: block; }
  a { color: #000; }
  .doc__main a[href^="http"]::after, .doc__main a[href^="mailto:"]::after { content: " <" attr(href) ">"; font-size: .85em; word-break: break-all; }
  .foot { padding-bottom: 0; }
}

/* A value the owner still has to fill in (README.md › Placeholders). Remove the span when filling it in. */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn-text);
  box-shadow: inset 0 0 0 1px var(--warn-line);
  font-weight: 600;
}
