:root {
  --ink: #18252a;
  --muted: #4f6168;
  --bg: #f9fbfb;
  --panel: #ffffff;
  --line: #d9e3e5;
  --brand: #0e4a5a;
  --brand-dark: #0a3642;
  --accent: #b5452a; /* white text on it is 5.5:1 */
  --tint: #eaf5f7;
  --warn: #fff4e0;
  --danger: #fdecea;
  --radius: 10px;
  --wrap: 72rem;
  --text: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 2rem 0 .75rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-top: 1.25rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
code { font-size: .95em; background: var(--tint); padding: .05rem .3rem; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main > *:not(.full) { max-width: var(--text); }
main { padding-bottom: 3rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* header */
.site-head { background: var(--brand); color: #fff; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .5rem; }
.brand-mark { display: block; width: 32px; height: 32px; flex: none; }
.brand:hover { color: #fff; }
.site-head nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-head nav li { margin: 0; }
.site-head nav a { color: #e3f1f4; text-decoration: none; font-size: .95rem; }
.site-head nav a:hover { color: #fff; text-decoration: underline; }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: .7rem 1.2rem; border-radius: 999px; border: 0; text-decoration: none;
  font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: #973820; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }

.lead { font-size: 1.15rem; color: var(--muted); }
.answer { background: var(--tint); border-left: 4px solid var(--brand); padding: .9rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.answer p:last-child { margin-bottom: 0; }
.disclosure { font-size: .9rem; color: var(--muted); border: 1px dashed var(--line); padding: .5rem .75rem; border-radius: var(--radius); }
.byline { font-size: .875rem; color: var(--muted); margin-top: -.25rem; }
.note { background: var(--warn); padding: .8rem 1rem; border-radius: var(--radius); font-size: .97rem; }
.safety { background: var(--danger); border-left: 4px solid #a1301e; padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; }
.safety p:last-child, .note p:last-child { margin-bottom: 0; }
.source, .checked { font-size: .9rem; color: var(--muted); }
.sources li { font-size: .92rem; color: var(--muted); }
.formula { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; overflow-x: auto; }

/* cards (home page) */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; max-width: none !important; }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0; }
.cards h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.cards p { margin: 0; color: var(--muted); font-size: .97rem; }

/* tables: scroll inside their box on phones, never the page */
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
main > .table-wrap.full { max-width: none; }
table { border-collapse: collapse; width: 100%; background: var(--panel); font-size: .95rem; }
caption { text-align: left; font-size: .9rem; color: var(--muted); padding-bottom: .4rem; }
th, td { text-align: left; padding: .5rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--tint); white-space: nowrap; }
.specs td:first-child, .specs th[scope=row] { font-weight: 600; }

/* product blocks */
.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.25rem 0; }
.product h3 { margin-top: 0; }
.product ul { padding-left: 1.2rem; }
.product .why { font-weight: 600; }
.buy {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--accent); color: #fff; text-decoration: none; line-height: 1.2;
}
a.buy:hover { background: #973820; color: #fff; }
.buy-pending { background: #eef1f2; color: var(--muted); border: 1px dashed #b9c4c8; }

/* faqs */
.faqs details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.faqs summary { font-weight: 600; cursor: pointer; }
.faqs details > div { padding-top: .5rem; }
.faqs details > div p:last-child { margin-bottom: 0; }

/* calculators */
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1rem; margin: 1.5rem 0; }
.calc h2 { margin-top: 0; font-size: 1.25rem; }
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
input[type=number], input[type=text], select {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #a9b8bd; border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px;
}
.unit { display: flex; align-items: center; gap: .4rem; }
.unit input { flex: 1; min-width: 0; }
.unit span { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #a9b8bd; border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-weight: 400; min-height: 44px; background: #fff; }
.choices input { margin: 0; }
.choices label:has(input:checked) { border-color: var(--brand); background: var(--tint); font-weight: 600; }
input:focus, select:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #7fc3d1; outline-offset: 2px; }
.hint { font-size: .9rem; color: var(--muted); margin: .3rem 0 0; }
.calc-out { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.calc-out:empty { display: none; }
.big { font-size: 1.6rem; font-weight: 700; color: var(--brand); margin: 0 0 .25rem; line-height: 1.2; }
.calc-error { background: var(--warn); color: #8a2a17; font-weight: 600; padding: .6rem .8rem; border-radius: var(--radius); }
.calc-out dl { margin: .5rem 0; }
.calc-row { display: grid; grid-template-columns: 1fr; gap: .05rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.calc-row dt { font-size: .9rem; color: var(--muted); }
.calc-row dd { margin: 0; font-weight: 600; }
.mini { background: var(--tint); border-radius: var(--radius); padding: .8rem .9rem; margin: 0 0 1rem; }
.mini summary { cursor: pointer; font-weight: 600; }
@media (min-width: 40rem) {
  .calc { padding: 1.5rem 1.75rem; }
  .calc-row { grid-template-columns: 16rem 1fr; gap: 1rem; align-items: baseline; }
}
[hidden] { display: none !important; }

/* related */
.related { margin-top: 2rem; }
.related ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.related li { margin: 0; }
.related a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; font-size: .95rem; }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0 0; font-size: .875rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "\203A"; padding: 0 .45rem; }
.crumbs a { color: var(--muted); }

/* footer */
.site-foot { background: #10262d; color: #cddadd; padding: 2rem 0 1.5rem; font-size: .95rem; }
.site-foot a { color: #e8f3f5; }
.foot-cols { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0 0 1.5rem; }
.foot-cols h2 { font-size: 1rem; margin: 0 0 .5rem; color: #fff; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-small { font-size: .875rem; color: #a9bcc1; margin: 0 0 .5rem; max-width: var(--text); }

@media print {
  .site-head, .site-foot, .skip, .related, .crumbs { display: none !important; }
}
