/* The Adhesive Library - public stylesheet.
   One file, no framework, no web fonts. Core Web Vitals are part of the SEO
   requirement, and the fastest stylesheet is the one you did not download. */

:root {
  --ink: #16202b;
  --ink-soft: #4a5b6d;
  --ink-faint: #7b8b9d;
  --line: #dfe5ec;
  --line-soft: #eef2f6;
  --paper: #ffffff;
  --paper-soft: #f7f9fb;
  --brand: #1f5f8b;
  --brand-dark: #164863;
  --brand-tint: #e8f1f7;
  --good: #1c7a4a;
  --good-tint: #e6f4ec;
  --warn: #9a6100;
  --warn-tint: #fdf2e0;
  --bad: #a32f2f;
  --bad-tint: #fbeceb;
  --radius: 10px;
  --wrap: 68rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { max-width: 44rem; }

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 7px;
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.brand-text { font-size: 1.05rem; }
.brand-text strong { font-weight: 700; }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
.site-nav a:hover { color: var(--brand); text-decoration: underline; }

/* Breadcrumbs */
.breadcrumbs { padding-top: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; font-size: .85rem; color: var(--ink-faint); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-faint); }

/* Typography */
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -0.015em; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.2rem 0 .7rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint); font-weight: 600; margin-bottom: .35rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.prose > ul, .prose > ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.section { padding: 2.5rem 0; }
.section-tight { padding: 1.5rem 0; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-tint), var(--paper)); border-bottom: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 55ch; }

/* Selector card */
.selector-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 1px 3px rgba(22, 32, 43, .07); margin-top: 1.8rem; max-width: 40rem;
}
.selector-row { display: grid; gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 40rem) { .selector-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; color: var(--ink-soft); }
select, input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: .95rem; background: var(--paper); color: var(--ink);
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

.button, button {
  display: inline-block; padding: .65rem 1.2rem; border-radius: 7px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.button:hover, button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary, button.secondary { background: transparent; color: var(--brand); }
.button.secondary:hover, button.secondary:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* Cards and grids */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
  background: var(--paper); text-decoration: none; color: inherit; display: block;
}
a.card:hover { border-color: var(--brand); background: var(--paper-soft); }
.card h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.chip-list { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-block; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 100px;
  font-size: .85rem; text-decoration: none; color: var(--ink-soft); background: var(--paper);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* Verdict blocks: the core of a pair guide */
.verdict { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 1rem; background: var(--paper); }
.verdict.best { border-left-color: var(--good); background: var(--good-tint); }
.verdict.alternative { border-left-color: var(--brand); }
.verdict.situational { border-left-color: var(--warn); background: var(--warn-tint); }
.verdict.avoid, .verdict.unsuitable { border-left-color: var(--bad); background: var(--bad-tint); }
.verdict h3 { margin: 0 0 .35rem; }
.verdict-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

.answer-box {
  border: 1px solid var(--brand); background: var(--brand-tint); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; margin: 1.5rem 0;
}
.answer-box p:last-child { margin-bottom: 0; }
.answer-box .eyebrow { color: var(--brand-dark); }

.callout { border-left: 3px solid var(--warn); background: var(--warn-tint); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0; }
.callout.danger { border-left-color: var(--bad); background: var(--bad-tint); }
.callout p:last-child { margin-bottom: 0; }

/* Badges */
.badge { display: inline-block; padding: .15rem .5rem; border-radius: 5px; font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
.badge-a { background: var(--good-tint); color: var(--good); }
.badge-b { background: var(--brand-tint); color: var(--brand-dark); }
.badge-c { background: var(--warn-tint); color: var(--warn); }
.badge-d { background: var(--bad-tint); color: var(--bad); }
.badge-neutral { background: var(--line-soft); color: var(--ink-soft); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); border-bottom-color: var(--line); }
tbody tr:hover { background: var(--paper-soft); }

.spec-list { display: grid; gap: .1rem; margin: 1rem 0; }
.spec-row { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.spec-row dt { color: var(--ink-soft); font-size: .9rem; }
.spec-row dd { margin: 0; }

/* Product cards */
.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: .9rem; }
.product-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.product h3 { margin: 0; font-size: 1.02rem; }
.buy-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.disclosure { font-size: .8rem; color: var(--ink-faint); border-top: 1px solid var(--line-soft); padding-top: .7rem; margin-top: 1rem; }

/* Evidence note */
.evidence { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .88rem; color: var(--ink-soft); margin: 2rem 0 0; }
.evidence h2 { font-size: 1rem; margin: 0 0 .5rem; }
.evidence ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; background: var(--paper-soft); padding: 2.5rem 0 1.5rem; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin: 0 0 .6rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .3rem 0; }
.footer-col a { font-size: .92rem; text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }
.footer-brand { margin: 0 0 .4rem; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; }

/* Consent */
.consent {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 28rem; z-index: 20;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25); font-size: .9rem;
}
.consent p { margin: 0 0 .8rem; }
.consent-actions { display: flex; gap: .5rem; }
.consent button { padding: .45rem .9rem; font-size: .85rem; }
.consent button.secondary { color: #fff; border-color: rgba(255, 255, 255, .4); }

.debug { border: 1px solid var(--bad); background: var(--bad-tint); padding: 1rem; border-radius: var(--radius); }
.debug pre { overflow-x: auto; font-size: .78rem; }

.empty-state { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--ink-soft); }

/* Selector */
.conditions { border: 0; padding: 0; margin: 0 0 1.2rem; }
.conditions legend { font-size: .85rem; font-weight: 600; color: var(--ink-soft); padding: 0 0 .5rem; }
.condition-group { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin: .8rem 0 .4rem; font-weight: 600; }
.chip-check { cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; user-select: none; }
.chip-check input { width: auto; margin: 0; }
.chip-check:has(input:checked) { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.chip-check:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Result basis banner: says where the answer came from before anything else */
.basis { border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .93rem; margin: 0 0 1.5rem; border: 1px solid; }
.basis-researched { background: var(--good-tint); border-color: var(--good); color: #12502f; }
.basis-derived { background: var(--warn-tint); border-color: var(--warn); color: #6d4400; }
.basis-none { background: var(--bad-tint); border-color: var(--bad); color: #7d2323; }
.basis a { color: inherit; }

.verdict-label .badge { margin-left: .4rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.reasons { margin: .6rem 0 0; padding-left: 1.2rem; font-size: .92rem; color: var(--ink-soft); }
.reasons li { margin: .2rem 0; }

/* Comparison table */
.compare-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 1.5rem 0; }
@media (max-width: 42rem) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.compare-col h3 { margin-top: 0; }
.compare-table th:first-child { width: 30%; }
.compare-table td.win { background: var(--good-tint); font-weight: 600; }

/* Search */
.search-form { display: flex; gap: .5rem; margin: 1.5rem 0; max-width: 34rem; }
.search-form input { flex: 1; }
.search-result { border-bottom: 1px solid var(--line-soft); padding: .9rem 0; }
.search-result h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.search-result p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.search-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); font-weight: 600; }
