/* Searchy website. Colors match the app (src/constants/theme.ts): warm cream light mode,
   neutral near-black dark mode, deep teal accent. No external fonts or scripts. */
:root {
  --text: #2a2723;
  --text-2: #6b655c;
  --bg: #f6f3ec;
  --card: #fffdf8;
  --border: #e6e0d4;
  --accent: #1f6f6b;
  --accent-soft: #dceeea;
  --accent-ink: #174f4c;
  --warn-bg: #f6ead2;
  --warn-ink: #7a5410;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f2;
    --text-2: #9e9e9e;
    --bg: #0f0f0f;
    --card: #1f1f1f;
    --border: #2e2e2e;
    --accent: #4fb3ac;
    --accent-soft: #15302e;
    --accent-ink: #7fd1ca;
    --warn-bg: #33290f;
    --warn-ink: #e2b65c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; gap: 18px; align-items: center; font-size: 15px; }
nav.site a { text-decoration: none; }
nav.site a:hover { text-decoration: underline; }
main { padding: 36px 0 56px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 20px; color: var(--text-2); margin-bottom: 24px; }
.meta { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 18px 0; }
.card h3 { margin-top: 0; }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 12px 16px; margin: 18px 0; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 20px 0; }
.grid .card { margin: 0; }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
footer.site { border-top: 1px solid var(--border); color: var(--text-2); font-size: 15px; padding: 24px 0 40px; }
footer.site p { margin: 0 0 6px; }
.toc { columns: 2; column-gap: 24px; font-size: 16px; }
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .toc { columns: 1; }
  /* Data table: each row becomes a small card on phones, so no sideways scrolling. */
  .table-wrap { border: 0; background: none; overflow: visible; }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody, tr, td { display: block; }
  tr { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; }
  td { border-bottom: 0; padding: 8px 0; }
  td::before { content: attr(data-label); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); margin-bottom: 2px; }
}
