/* Shared styles for Cookbo's document pages (support, privacy, compatible sites).
   Matches the home page's palette and type, and the doc layout of jonbobrow.com's other app sites. */

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

:root {
  --bg: #F4F3F1;
  --ink: #16171B;
  --muted: #8D8E94;
  --line: rgba(22, 23, 27, 0.08);
  --amber: #FFAA00;
  --font: ui-rounded, "SF Pro Rounded", Nunito, system-ui, -apple-system, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.back img {
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
  box-shadow: 0 2px 6px rgba(22, 23, 27, 0.14);
}

h1 {
  margin: 36px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.64px;
}

h2 {
  margin: 32px 0 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

p { margin: 12px 0 0; }
h2 + p { margin-top: 6px; }

.updated { margin-top: 6px; font-size: 15px; color: var(--muted); }
.lede { margin-top: 18px; }
.muted { color: var(--muted); }

ul { margin: 12px 0 0; padding-left: 22px; }
li { margin-top: 8px; }
li::marker { color: var(--muted); }

a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(22, 23, 27, 0.25);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

footer {
  max-width: 640px;
  margin: 64px auto 0;
  padding: 0 20px 32px;
  text-align: center;
  font-size: 12.5px;
  color: #A9A8A5;
}

footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
footer a { font-weight: 400; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer a[aria-current="page"] { color: var(--ink); }
footer p { margin: 4px 0 0; }
/* "App by Jon Bobrow", the same signature as in the app */
.by-jon { display: inline-block; margin-top: 14px; transition: color 0.15s; }
.by-jon:hover { color: var(--ink); }
.by-jon svg { display: block; width: 150px; height: auto; }

/* ─── Compatible sites ─── */

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  vertical-align: middle;
}

.dot.works { background: #5BA83A; }
.dot.partial { background: #E8A13A; }
.dot.no { background: #B9B8B3; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 600;
}

.sites {
  margin-top: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.site { padding: 14px 16px; border-top: 1px solid var(--line); }
.site:first-child { border-top: 0; }
.site-name { font-weight: 700; }
.site-note { margin-top: 2px; font-size: 15px; color: #55565C; }
