/* favoritesfile.com — one stylesheet, no external requests, no webfonts.
   System font stack keeps CLS at zero with no font files to preload. */

:root {
  --paper: #fbfaf8;
  --paper-2: #f3f0ea;
  --card: #ffffff;
  --ink: #1a1815;
  --ink-2: #57514a;
  --ink-3: #8b8379;
  --rule: #e2ddd4;
  --gold: #9a6510;
  --gold-bg: #fdf4e3;
  --good: #1f6f43;
  --good-bg: #e8f5ee;
  --bad: #a32b2b;
  --bad-bg: #fbeceb;
  --warn: #8a5d00;
  --warn-bg: #fdf3df;
  --shadow: 0 1px 2px rgba(26, 24, 21, .06), 0 8px 24px -12px rgba(26, 24, 21, .18);
  --radius: 10px;
  --wrap: 1080px;
  --prose: 68ch;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131211;
    --paper-2: #1c1a18;
    --card: #1e1c19;
    --ink: #ece8e2;
    --ink-2: #b3aca3;
    --ink-3: #857e75;
    --rule: #302d29;
    --gold: #e0a63c;
    --gold-bg: #2a2113;
    --good: #6cc494;
    --good-bg: #14261d;
    --bad: #e88b83;
    --bad-bg: #2a1817;
    --warn: #d9ac52;
    --warn-bg: #271f10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  }
}

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

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

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); margin-top: 2em; }
h3 { font-size: 1.12rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
small { font-size: .85rem; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
code {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .1em .35em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; }
kbd {
  background: var(--card);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: .1em .4em;
  font-size: .8em;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--prose); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- header / nav ---------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand svg { flex: none; }
.brand b { color: var(--gold); font-weight: 700; }
.site-nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- breadcrumbs ---------- */

.crumbs {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: .82rem;
}
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: .4rem; margin: 0; padding: .55rem 0;
}
.crumbs li { display: flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-3); }

/* ---------- semantic content blocks ---------- */

/* The direct answer to the page's question, before any elaboration. */
.answer {
  font-size: 1.06rem;
  border-left: 3px solid var(--gold);
  padding: .1rem 0 .1rem 1rem;
  margin: 0 0 1.5rem;
}
.answer strong { color: var(--ink); }

/* Key facts as real definition pairs. */
dl.facts { margin: 1.5rem 0; }
dl.facts div {
  display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: .25rem 1rem; padding: .55rem 0; border-top: 1px solid var(--rule);
}
dl.facts div:last-child { border-bottom: 1px solid var(--rule); }
dl.facts dt { font-weight: 650; font-size: .9rem; }
dl.facts dd { margin: 0; color: var(--ink-2); font-size: .93rem; overflow-wrap: anywhere; }

.faq dl { margin: 1.25rem 0 0; }
.faq dt {
  font-weight: 650; margin-top: 1.4rem; font-size: 1.02rem;
  padding-top: 1.4rem; border-top: 1px solid var(--rule);
}
.faq dt:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.faq dd { margin: .45rem 0 0; color: var(--ink-2); }

@media (max-width: 560px) {
  dl.facts div { grid-template-columns: 1fr; }
  dl.facts dd { padding-bottom: .3rem; }
}

/* ---------- generic blocks ---------- */

.hero { padding: 3.5rem 0 2.5rem; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  font-weight: 700; color: var(--gold); margin: 0 0 .75rem;
}
section { padding: 1rem 0 2.5rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--gold); transform: translateY(-1px); }
a.card { transition: border-color .12s ease, transform .12s ease; }
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.card .tag {
  display: inline-block; margin-top: .8rem; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3);
}

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--gold); color: var(--paper);
  border: 1px solid var(--gold); border-radius: 8px;
  padding: .6rem 1.05rem; font: inherit; font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); color: var(--paper); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--rule); }
.btn.secondary:hover { border-color: var(--gold); color: var(--ink); filter: none; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }

.note {
  border-left: 3px solid var(--gold);
  background: var(--gold-bg);
  padding: .9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .93rem;
  margin: 1.5rem 0;
}
.note strong { color: var(--ink); }
.note.plain { border-left-color: var(--rule); background: var(--paper-2); }

.privacy-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--good-bg); color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent);
  border-radius: 999px; padding: .3rem .8rem;
  font-size: .8rem; font-weight: 600;
}

/* ---------- dropzone ---------- */

/* The dropzone is a <label>, so clicking or activating it opens the file
   picker natively and the <input> stays in the tab order — visually hidden
   rather than display:none, which would take it out. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.drop {
  display: block;
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 2.25rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-bg); }
.drop.over { border-style: solid; }
.drop strong { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.drop span { color: var(--ink-2); font-size: .9rem; }
.drop:focus-within { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 2px; }

.stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.stat {
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  padding: .55rem .9rem; min-width: 96px;
}
.stat b { display: block; font-size: 1.3rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { font-size: .75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

input[type=search], input[type=text], select {
  font: inherit; font-size: .95rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: .55rem .75rem;
  max-width: 100%;
}
input[type=search] { width: min(420px, 100%); }
label.check { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--ink-2); }

/* ---------- results ---------- */

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
td.u { overflow-wrap: anywhere; }

.tree { font-size: .93rem; }
.tree details { margin: 0 0 .15rem; }
.tree summary {
  cursor: pointer; font-weight: 600; padding: .2rem 0;
  list-style: none; display: flex; align-items: center; gap: .4rem;
}
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: "▸"; color: var(--ink-3); font-size: .8em; }
.tree details[open] > summary::before { content: "▾"; }
.tree summary em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: .8em; }
.tree .kids { padding-left: 1.1rem; border-left: 1px solid var(--rule); margin-left: .35rem; }
.tree .bm { padding: .18rem 0; overflow-wrap: anywhere; }
.tree .bm a { text-decoration: none; }
.tree .bm a:hover { text-decoration: underline; }
.tree .bm i { font-style: normal; color: var(--ink-3); font-size: .8em; margin-left: .4rem; }

.pill {
  display: inline-block; border-radius: 999px; padding: .1rem .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.pill.ok { background: var(--good-bg); color: var(--good); }
.pill.dead { background: var(--bad-bg); color: var(--bad); }
.pill.unknown { background: var(--warn-bg); color: var(--warn); }
.pill.n { background: var(--paper-2); color: var(--ink-2); }

.bar { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 1rem 0; }
.bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .2s ease; }

.hide { display: none !important; }
.muted { color: var(--ink-2); }
.tiny { font-size: .82rem; }

/* ---------- The Favorites File (editorial) ---------- */

.issue-head { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.issue-meta { color: var(--ink-3); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.pick {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  max-width: var(--prose);
}
.pick:last-child { border-bottom: 1px solid var(--rule); }
.pick h3 { margin: 0 0 .1rem; font-size: 1.2rem; }
.pick .kicker {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--gold); margin-bottom: .5rem;
}
.pick .why { color: var(--ink-2); }
.pick .verdict { font-size: .9rem; color: var(--ink-3); }
.pick .buy { margin-top: .75rem; }

.sample-banner {
  background: var(--warn-bg); color: var(--warn);
  border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: var(--radius);
  padding: .75rem 1rem; font-size: .88rem; font-weight: 600;
  margin: 1.5rem 0;
}

.disclosure {
  font-size: .82rem; color: var(--ink-3);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .75rem 1rem; margin: 1.5rem 0; background: var(--paper-2);
}

.issue-list { list-style: none; padding: 0; margin: 0; }
.issue-list li { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
.issue-list a { font-weight: 650; font-size: 1.08rem; text-decoration: none; }
.issue-list p { margin: .2rem 0 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem; padding: 2.5rem 0;
  color: var(--ink-3); font-size: .88rem;
}
.site-footer .cols { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.site-footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 2.25rem 0 1.5rem; }
  .site-header .wrap { min-height: 56px; padding-top: .5rem; padding-bottom: .5rem; }
  .site-nav { margin-left: 0; width: 100%; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
