:root {
  --bg: #f6f7f5; --surface: #fff; --text: #1b1d1c; --muted: #646a67;
  --border: #e0e3df; --accent: #0b6e5f; --accent-strong: #08594d; --accent-soft: #e3f1ee;
  --bar: #9fd1c6; --ok: #1e7a46; --warn: #b3261e;
  --radius: 10px; --width: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131615; --surface: #1b1f1e; --text: #e9ecea; --muted: #9aa29e;
    --border: #2f3533; --accent: #5cc5b0; --accent-strong: #7fd6c4; --accent-soft: #19302b;
    --bar: #2f6b5f; --ok: #6cc28f; --warn: #f2948c;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 20px; }
.muted, .small { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; white-space: nowrap; }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--accent); }
/* Phones: brand and button on the first row, the menu as one full-width row below. */
@media (max-width: 720px) {
  .site-header .wrap { gap: 8px 12px; padding-top: 10px; padding-bottom: 6px; }
  .site-header .btn { margin-left: auto; padding: 6px 12px; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; gap: 4px; overflow-x: auto;
         margin: 0 -8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 6px; white-space: nowrap; font-size: 15px; }
  .nav .long { display: none; }
}
@media (min-width: 721px) { .nav .short { display: none; } }
@media (max-width: 359px) { .nav a { font-size: 14px; padding: 8px 4px; } }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
       padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 0; }
.btn:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0d1514; } }
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 0 40px;
               font-size: 13px; color: var(--muted); }
.site-footer p { margin: 4px 0; }

/* Page structure */
main { padding: 20px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-head { margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin: 0; }
.page-head .sub .mono { font-size: inherit; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
         padding: 18px 20px; margin-bottom: 20px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
        margin-bottom: 20px; }
.cols > .panel { margin-bottom: 0; }
.see-all { font-size: 13px; margin: 10px 0 0; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
         margin: 0 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        padding: 12px 16px; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

/* Ranked lists with bars */
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 5px 0;
           font-size: 14px; }
.bars .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--bar); }

/* Key/value summary list */
.summary-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.summary-list dt { color: var(--muted); font-size: 14px; }
.summary-list dd { margin: 0; }
@media (max-width: 560px) { .summary-list { grid-template-columns: 1fr; gap: 2px; }
                            .summary-list dd { margin-bottom: 8px; } }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border);
              border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted);
     background: var(--surface); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--accent-soft); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px;
         border: 1px solid currentColor; white-space: nowrap; }
.ok { color: var(--ok); } .warn { color: var(--warn); }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap;
         margin: 12px 0 20px; font-size: 14px; }
.pager a, .pager span { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px;
                        background: var(--surface); text-decoration: none; }
.pager .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Index pages */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.letters a, .letters span { min-width: 34px; text-align: center; padding: 4px 8px;
                            border: 1px solid var(--border); border-radius: 6px;
                            background: var(--surface); text-decoration: none; font-size: 14px; }
.letters .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.link-columns { columns: 3 260px; column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.link-columns li { break-inside: avoid; padding: 3px 0; font-size: 14px; }
.link-columns .n { color: var(--muted); font-size: 12px; }

/* Calls to action */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
       background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius);
       padding: 18px 20px; margin: 24px 0; }
.cta p { margin: 0; max-width: 720px; }
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: 34px; max-width: 820px; }
.hero p { font-size: 17px; color: var(--muted); max-width: 720px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 20px 0 28px; }

/* Forms (search page) */
input, select, button { font: inherit; color: var(--text); background: var(--surface);
                        border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search-form input { flex: 1; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
.controls { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; margin: 0 0 12px; }
@media (max-width: 720px) { .controls { grid-template-columns: 1fr 1fr; }
                            .controls input { grid-column: 1 / -1; } }
.empty { padding: 32px; text-align: center; color: var(--muted); }

/* Facet filters (device-type, holder and manufacturer pages) */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; }
.chip { padding: 3px 10px; border-radius: 99px; background: var(--accent-soft);
        border: 1px solid var(--border); color: var(--accent-strong); font-size: 13px;
        text-decoration: none; }
.chip:hover { border-color: var(--accent); }
.facet li > span:first-child { min-width: 0; }
.facet .go { margin-left: 6px; color: var(--muted); text-decoration: none; font-size: 12px; }
.facet .go:hover { color: var(--accent); }
.facet li.on { background: var(--accent-soft); border: 1px solid var(--border);
               border-radius: var(--radius); padding: 5px 8px; margin: 0 -9px; }
.facet label { cursor: pointer; }
.facet input[type=checkbox] { width: 15px; height: 15px; margin: 0 6px 0 0; padding: 0;
                              vertical-align: -2px; accent-color: var(--accent); cursor: pointer; }
.facet li.on label { font-weight: 600; color: var(--accent-strong); }
.facets noscript { grid-column: 1 / -1; }
.facet li.on .bar { background: var(--accent); }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px;
                  align-items: start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-layout > .panel { margin-bottom: 0; }
.contact-form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; }
textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
           border-radius: 8px; padding: 9px 12px; resize: vertical; }
textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--warn); }
.field-error, .form-error { color: var(--warn); font-size: 13px; margin: 0; }
.form-error { margin-bottom: 12px; }
.contact-form .btn { justify-self: start; padding: 10px 22px; font-size: 15px; }
.contact-aside h2 { font-size: 16px; }
.contact-aside h2:not(:first-child) { margin-top: 20px; }
.contact-aside ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.contact-aside li { margin-bottom: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Long-form text (privacy notice) */
.prose { max-width: 780px; }
.prose h2 { font-size: 17px; margin: 24px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 15px; margin: 16px 0 6px; }
.prose p, .prose li { line-height: 1.6; }
.prose ul { padding-left: 20px; }
