/* Quotehoard — mobile-first, large touch targets, readable type. */
:root {
  --paper: #faf7f1;
  --card: #ffffff;
  --ink: #1d2433;
  --ink-2: #4a5468;
  --ink-3: #7a8394;
  --line: #e4ddd0;
  --accent: #1f3a5f;
  --accent-ink: #ffffff;
  --accent-soft: #e6edf6;
  --heart: #b4233c;
  --ok: #1d7a4a;
  --warn-bg: #fff6dc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 16px rgba(20, 30, 50, .06);
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14171d;
    --card: #1c2029;
    --ink: #eceef2;
    --ink-2: #b9c0cc;
    --ink-3: #8a93a3;
    --line: #2d3340;
    --accent: #8fb4e8;
    --accent-ink: #0f1a2b;
    --accent-soft: #233149;
    --heart: #ff7088;
    --ok: #5fd39a;
    --warn-bg: #3a3220;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--card); padding: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 700 1.15rem var(--serif); }
.topnav { display: none; gap: 4px; }
.topnav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.topnav a.active { background: var(--accent-soft); color: var(--accent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .btn-add-top { display: none; }
.brand span { white-space: nowrap; }
@media (max-width: 420px) { .brand span { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.style-pick { margin: 0; }
.style-pick select, select.style-select {
  min-height: 36px; width: auto; padding: 4px 30px 4px 12px; border-radius: 999px; font: 600 .85rem var(--sans);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%237a8394' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 8px center / 16px;
  appearance: none; -webkit-appearance: none; color: var(--accent); border-color: var(--line); max-width: 46vw;
}
.style-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.style-toggle button { border: 0; background: none; color: var(--ink-2); font: 600 .8rem var(--sans); padding: 6px 10px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.style-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .72rem; font-weight: 600; }
.tabbar a.active { color: var(--accent); }
.ti { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab-add .ti { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); margin-top: -14px; box-shadow: var(--shadow); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--heart); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; font-weight: 700; }
.tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .topbar .btn-add-top { display: inline-flex; }
}

/* ---------- layout ---------- */
main { max-width: 760px; margin: 0 auto; padding: 16px; outline: none; }
.wide main, main.wide { max-width: 1040px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-ghost { background: none; border-color: transparent; color: var(--ink-2); }
.btn-danger { color: var(--heart); }
.btn-big { min-height: 64px; font-size: 1.05rem; width: 100%; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn .ti { width: 20px; height: 20px; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--ink-2); }
.hint { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
  font: 17px/1.4 var(--sans); /* >=16px stops iOS zooming on focus */
}
textarea { min-height: 140px; resize: vertical; font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.field { margin-bottom: 14px; }
.searchbar { position: relative; }
.searchbar input { padding-left: 44px; min-height: 52px; border-radius: 999px; font-size: 1.05rem; }
.searchbar .ti { position: absolute; left: 14px; top: 14px; color: var(--ink-3); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 600 .9rem var(--sans); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.quote-card { position: relative; }
.quote-card blockquote { margin: 0 0 10px; font: 1.12rem/1.6 var(--serif); white-space: pre-line; }
.quote-card blockquote::before { content: "“"; color: var(--ink-3); }
.quote-card blockquote::after { content: "”"; color: var(--ink-3); }
.quote-card .attrib { color: var(--ink-2); font-size: .92rem; }
.quote-card .attrib a { color: inherit; }
.quote-card .meta { margin-top: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.quote-card .note { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--line); color: var(--ink-2); font-size: .9rem; }
.quote-card.is-new { border-color: var(--accent); }
.new-pill { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-2); font: 600 .85rem var(--sans); cursor: pointer; text-decoration: none; }
.icon-btn .ti { width: 18px; height: 18px; }
.icon-btn.liked { color: var(--heart); border-color: color-mix(in srgb, var(--heart) 40%, var(--line)); }
.icon-btn.liked .ti { fill: currentColor; }
.cite-box { margin-top: 12px; padding: 12px; background: var(--paper); border-radius: 10px; font-size: .92rem; }
.cite-box .lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.cite-box .ref { padding-left: 2em; text-indent: -2em; margin: 4px 0 10px; font-family: var(--serif); }
.cite-box .qt { margin: 4px 0 10px; font-family: var(--serif); }

.source-card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); }
.cover { width: 56px; height: 84px; flex: none; border-radius: 4px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: var(--accent-ink); display: grid; place-items: center; font: 700 1.3rem var(--serif); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.source-card .t { font: 600 1.05rem var(--serif); }
.count-pill { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }

.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); }
.empty .big { font: 600 1.2rem var(--serif); color: var(--ink); margin-bottom: 6px; }
.callout { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.callout.info { background: var(--accent-soft); }

.hero { padding: 18px 0 8px; }
.hero h1 { font: 700 clamp(1.7rem, 5vw, 2.4rem)/1.15 var(--serif); }
.hero p { color: var(--ink-2); font-size: 1.05rem; }
.features { display: grid; gap: 10px; margin: 18px 0; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.feature b { display: block; margin-bottom: 2px; }

/* ---------- add-a-quote wizard ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.done { background: var(--accent); }
.step-title { font: 700 1.4rem var(--serif); margin-bottom: 4px; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; min-height: 84px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: 600 1rem var(--sans); text-align: left; cursor: pointer; }
.choice small { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .85rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.person-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
details.more { margin: 8px 0 14px; }
details.more summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 8px 0; }
.autocomplete { position: relative; }
.ac-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.ac-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 12px; color: var(--ink); font: 15px var(--sans); cursor: pointer; border-bottom: 1px solid var(--line); }
.ac-list button:hover, .ac-list button:focus { background: var(--accent-soft); }

/* photo cropper */
.cropper { position: relative; user-select: none; touch-action: none; border-radius: 12px; overflow: hidden; background: #000; }
.cropper img { display: block; width: 100%; height: auto; pointer-events: none; }
.cropper .sel { position: absolute; border: 3px solid #ffd54a; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); border-radius: 4px; }
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------- toast & sheet ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow);
  max-width: calc(100vw - 32px); font-weight: 500;
}
@media (min-width: 860px) { .toast { bottom: 24px; } }
.sheet { border: 0; padding: 0; border-radius: 18px 18px 0 0; width: 100%; max-width: 560px; margin: auto auto 0; background: var(--card); color: var(--ink); max-height: 90vh; }
@media (min-width: 600px) { .sheet { border-radius: 18px; margin: auto; } }
.sheet::backdrop { background: rgba(10, 15, 25, .5); }
.sheet .sheet-body { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.list-gap > * + * { margin-top: 12px; }
.auth-card { max-width: 420px; margin: 24px auto; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.pad { padding: 24px 0; }

/* sharing */
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 14px 0; }
.share-grid .btn { justify-content: center; }
.qr-box { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 12px; max-width: 260px; margin: 0 auto; }
.qr-box svg { width: 100%; height: auto; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 2px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.5; }
.tag:hover { filter: brightness(.95); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.tag-input { position: relative; }
.tag-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card, #fff); min-height: 48px; cursor: text; }
.tag-box:focus-within { border-color: var(--accent); }
.tag-box input[data-tag-typing] { flex: 1; min-width: 140px; border: 0; outline: 0; padding: 6px 4px; min-height: 0; background: transparent; box-shadow: none; }
.tag-pill button { border: 0; background: none; color: inherit; font-size: 1.05rem; line-height: 1; padding: 0 0 0 4px; cursor: pointer; }
.tag-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tag-cloud .n { font-weight: 400; opacity: .7; margin-left: 4px; }
/* projects */
.course-head { margin: 22px 0 8px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.due { font-size: .8rem; color: var(--ink-3); }
.due.soon { color: #b4532a; font-weight: 600; }
.pick-card { position: relative; }
.pick-card .pick-btn { position: absolute; top: 10px; right: 10px; z-index: 1; }
.pick-card .quote-card { padding-right: 104px; }
@media (max-width: 520px) { .pick-card .quote-card { padding-right: 18px; padding-bottom: 64px; } .pick-card .pick-btn { top: auto; bottom: 12px; right: 12px; } }
.pick-card.added { border-color: var(--accent); }
.tag.tag-on { background: var(--accent); color: var(--accent-ink); }
.tag.tag-private { background: transparent; border: 1.5px dashed var(--accent); padding: 2px 9px; }

/* accuracy badges */
.vbadge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; font: 700 .75rem var(--sans); letter-spacing: .01em; background: var(--accent-soft); color: var(--ink-2); vertical-align: middle; white-space: nowrap; text-decoration: none; font-style: normal; }
.vbadge .ti { width: 1em; height: 1em; stroke-width: 3; }
.vbadge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.vbadge.warn { background: var(--warn-bg); color: #8a5a00; }
.vbadge.bad { background: color-mix(in srgb, var(--heart) 12%, transparent); color: var(--heart); }
.check-row { margin: 8px 0 2px; }
.icon-btn.checked { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.check-quote { font-family: var(--serif); border-left: 3px solid var(--line); margin: 8px 0; padding: 4px 0 4px 12px; }
.source-status { display: flex; gap: 10px; align-items: flex-start; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vbadge.warn { color: #ffd479; background: rgba(255, 212, 121, .12); } }

/* live counter + popup (website landing page) */
.live-counter { text-align: center; padding: 26px 12px 18px; margin-bottom: 16px; border-radius: var(--radius); background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); color: #fff; box-shadow: var(--shadow); }
.lc-num { font: 700 clamp(3rem, 12vw, 5.5rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lc-num.bump { animation: lc-bump .6s ease; }
@keyframes lc-bump { 30% { transform: scale(1.08); color: #ffe7a3; } }
.lc-label { margin-top: 8px; font-size: 1rem; opacity: .92; display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: live-pulse 2s infinite; flex: none; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.live-pop { position: fixed; left: 16px; bottom: calc(var(--tabbar-h) + 16px); z-index: 60; max-width: min(380px, calc(100vw - 32px)); display: flex; gap: 10px; align-items: flex-start;
  background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 34px 12px 14px; box-shadow: 0 10px 30px rgba(10,20,40,.18);
  transform: translateY(20px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.live-pop.in { transform: none; opacity: 1; }
.live-pop .live-dot { margin-top: 6px; }
.live-pop b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.lp-q { display: block; font-family: var(--serif); margin: 2px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-s { display: block; font-size: .85rem; color: var(--ink-3); }
.lp-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.3rem; color: var(--ink-3); cursor: pointer; }
@media (min-width: 860px) { .live-pop { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .live-dot, .lc-num.bump { animation: none; } .live-pop { transition: none; } }
/* profile + network */
fieldset.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
fieldset.seg legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
fieldset.seg label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.people-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.person { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; margin: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-line input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }
.quote-card blockquote.para { font-style: normal; }
.quote-card blockquote.para::before, .quote-card blockquote.para::after { content: none; }
.alter-tools .btn { min-height: 36px; padding: 4px 10px; font-size: .85rem; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.matrix { border-collapse: collapse; width: 100%; font-size: .9rem; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.matrix th { background: var(--accent-soft); text-align: left; font-size: .8rem; }

/* legal pages + footer */
.legal h2 { font-size: 1.1rem; margin-top: 22px; }
.legal p, .legal li { line-height: 1.6; }
.legal .caps { font-size: .85rem; }
.site-footer { text-align: center; font-size: .8rem; color: var(--ink-3); padding: 18px 16px calc(var(--tabbar-h) + 18px); }
.site-footer a { color: inherit; }
@media (min-width: 860px) { .site-footer { padding-bottom: 24px; } }
.report-details { white-space: pre-wrap; font: inherit; background: var(--accent-soft); padding: 8px; border-radius: 8px; margin: 8px 0; }
summary.btn-danger { color: var(--heart); }
