/* ==========================================================================
   Tonelva — tonelva.com
   Direction: a well-kept paper health record. The readers here are largely
   between 50 and 75 and often anxious about the number in front of them, so
   legibility outranks fashion at every decision: large body type, generous
   line height, high contrast, and colour used only where it carries meaning.
   Atkinson Hyperlegible is a deliberate choice for that audience, not a style.
   ========================================================================== */

:root {
  --paper: #f2f6f5;
  --paper-2: #e7efec;
  --card: #ffffff;
  --ink: #16303d;
  --ink-2: #3d5563;
  --ink-3: #5b6c76;

  --sea: #0e7c66;        /* the brand green, from the app icon gradient */
  --sea-2: #43b89b;
  --sea-deep: #053a30;

  /* Category signals. These are data, never decoration — they appear only where
     a reading is being classified. */
  --cat-low: #4f7fa6;
  --cat-normal: #0e7c66;
  --cat-elevated: #956f00;
  --cat-stage1: #d97045;
  --cat-stage2: #c0392b;
  --cat-crisis: #8e1b12;

  --rule: rgba(22, 48, 61, 0.14);
  --rule-strong: rgba(22, 48, 61, 0.3);

  --font-display: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;

  --wrap: 1120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;          /* one step larger than a default site, on purpose */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--sea-2); color: #04211b; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 3px; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- type ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.032em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.42rem); font-weight: 700; }
p { margin: 0 0 1.15em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .65rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 3px; border-radius: 2px; flex: none;
  background: var(--sea);
}

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); }

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

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 246, 245, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; gap: 1.4rem; height: 70px; }
.brand {
  display: flex; align-items: center; gap: .65rem; margin-right: auto;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: -.02em; text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; }
.nav-links a {
  text-decoration: none; font-size: 1rem; font-weight: 400; color: var(--ink-2);
  transition: color .18s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem 1.25rem 1.25rem; transform: translateY(-12px); opacity: 0;
    pointer-events: none; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.08rem; }
  .nav-links .btn { margin-top: 1rem; border-bottom: 0; text-align: center; }
  body.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: transparent; border: 1px solid var(--rule-strong); color: var(--ink); cursor: pointer;
  }
}

/* ---------- buttons ------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .78rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  background: transparent; appearance: none; -webkit-appearance: none;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(22, 48, 61, .7); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(22, 48, 61, .04); }

/* ---------- store badges -------------------------------------------------- */

.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.7rem 0 0; }
.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .65rem 1.2rem; border-radius: 12px; text-decoration: none;
  background: var(--card); border: 1px solid var(--rule-strong);
  transition: border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.store-badge:hover { border-color: var(--ink); transform: translateY(-2px); }
.store-badge svg { width: 27px; height: 27px; flex: none; }
.sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.sb-small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sb-big { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

/* ==========================================================================
   HERO — the reading card
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, var(--paper) 70%);
  border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 4.5rem);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }

.hero h1 { margin-bottom: 1.2rem; }
.hero-sub { max-width: 34rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem;
  font-size: .85rem; color: var(--ink-3);
}
.hero-trust span { border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .85rem; background: var(--card); }

/* The card. Deliberately the same object as the app's home screen, so the site
   and the product read as one thing. */
.reading {
  border: 1px solid var(--rule-strong); border-radius: 22px; background: var(--card);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 26px 60px -40px rgba(22, 48, 61, .6);
}
.reading-label {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
  text-align: center; margin-bottom: 1.1rem;
}
.bp-entry { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.bp-entry input {
  width: 4.6ch; padding: .1rem .2rem; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 9vw, 5.4rem);
  line-height: 1; letter-spacing: -.04em; color: var(--ink);
  background: transparent; border: 0; border-bottom: 3px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.bp-entry input:focus { outline: none; border-bottom-color: var(--sea); }
.bp-entry .slash { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 7vw, 4rem); color: var(--ink-3); }
.bp-units { text-align: center; color: var(--ink-3); font-size: .92rem; margin: .5rem 0 0; }

.verdict-pair { display: grid; gap: .8rem; margin-top: 1.6rem; }
@media (min-width: 520px) { .verdict-pair { grid-template-columns: 1fr 1fr; } }
.verdict-card {
  border: 2px solid var(--rule); border-radius: 14px; padding: 1rem 1.1rem; text-align: left;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.verdict-card .scale {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: .3rem;
}
.verdict-card .cat {
  font-family: var(--font-display); font-weight: 800; font-size: 1.32rem;
  letter-spacing: -.02em; line-height: 1.2; display: block;
}
.verdict-card .where { font-size: .84rem; color: var(--ink-3); margin-top: .3rem; display: block; }

.reading-note {
  margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--rule);
  font-size: .92rem; color: var(--ink-2);
}
.reading-note b { color: var(--ink); }
.disagree {
  margin-top: .9rem; padding: .8rem 1rem; border-radius: 10px;
  background: var(--paper-2); font-size: .9rem; color: var(--ink-2);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--rule); }
.section-deep { background: var(--sea-deep); color: #eaf6ef; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: rgba(234, 246, 239, .82); }
.section-deep .eyebrow { color: var(--sea-2); }
.section-deep .eyebrow::before { background: var(--sea-2); }
.section-deep .card { background: rgba(255, 255, 255, .06); border-color: rgba(234, 246, 239, .2); }
.section-deep .card p { color: rgba(234, 246, 239, .8); }
.section-deep .card-num { color: var(--sea-2); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4.5vw, 3rem); }
.section-head p { color: var(--ink-2); margin-top: 1rem; }

.grid-3 { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem;
  background: var(--card);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.card-num {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  color: var(--sea); display: block; margin-bottom: .8rem; text-transform: uppercase;
}

.screens { display: flex; gap: 1.2rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.screens img { width: 236px; flex: none; scroll-snap-align: center; border-radius: 18px; }
@media (min-width: 1080px) { .screens { justify-content: center; overflow: visible; } }

.tool-card { display: grid; grid-template-rows: auto 1fr auto; gap: .7rem; }
.tool-card .go { font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--sea); }

.price-grid { display: grid; gap: 1.2rem; max-width: 780px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price { border: 1px solid var(--rule); border-radius: 18px; padding: 1.7rem; background: var(--card); }
.price.featured { border-color: var(--sea); border-width: 2px; }
.price h3 { margin-bottom: .3rem; }
.price .amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price .per { color: var(--ink-3); font-size: .9rem; }
.price ul { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.price li { padding: .4rem 0 .4rem 1.6rem; position: relative; font-size: .98rem; color: var(--ink-2); }
.price li::before { content: ''; position: absolute; left: 0; top: .95em; width: 9px; height: 9px; border-radius: 50%; background: var(--sea); }

.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.6rem 1.2rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: .4rem; top: 1.7rem; width: 11px; height: 11px;
  border-right: 3px solid var(--sea); border-bottom: 3px solid var(--sea);
  transform: rotate(45deg); transition: transform .22s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 64ch; }

footer {
  padding: 3rem 0 2.6rem; border-top: 1px solid var(--rule);
  background: var(--paper-2); font-size: .92rem; color: var(--ink-3);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--sea); }
.foot-note { margin: 1.6rem 0 0; max-width: 62rem; font-size: .86rem; line-height: 1.65; }

/* Form fields — shared by the hero card and the tool pages. */
.field label {
  display: block; font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .45rem;
}
.field input, .field select {
  width: 100%; padding: .8rem .95rem; font-family: var(--font-display); font-size: 1.15rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: 10px; font-variant-numeric: tabular-nums;
}
.field input:focus, .field select:focus { border-color: var(--sea); outline: none; background: var(--card); }
.field .hint { font-size: .84rem; color: var(--ink-3); margin-top: .4rem; }

[data-anim] { opacity: 0; transform: translateY(16px); }
body.ready [data-anim] { animation: rise .7s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
body.no-js [data-anim] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-anim] { opacity: 1; transform: none; }
}


/* ==========================================================================
   Review fixes — 2026-07-31
   ========================================================================== */

/* 1. Dark sections lost their text colour: `.card p` and `.section-head p` are
   declared later at equal specificity, so they overrode the section override and
   painted dark ink on a dark ground. Restate them with more specificity. */
.section-deep .section-head p,
.section-deep .card p,
.section-deep .price li,
.section-deep .lede,
.section-deep p { color: rgba(234, 246, 239, .85); }
.section-deep .card h3, .section-deep h2, .section-deep h3 { color: #ffffff; }
.section-deep a { color: var(--sea-2); }

/* 2. A two-line label ("Target concentration (mg/mL)") pushed its own input below its
   neighbours'. Reserving two lines was the wrong fix: `em` resolves against the label's
   own 0.68rem size, so 2.5em fell short of two lines, and it wasted space on every
   single-line label anyway.

   Instead make each field a grid whose first row absorbs the slack. Grid items already
   stretch to the tallest field in the row, so pinning the label to the bottom of a 1fr
   row lines up every control — and costs nothing when all the labels are short. */
.field label {
  /* Two lines, measured against the label's own size. The first attempt used
     `min-height: 2.5em` while line-height was still inherited at 1.62, so two lines
     needed ~3.2em and the reserve fell short — which is why the input still dropped.
     Pinning line-height here makes 2.6em exactly two lines at any of the three sites'
     label sizes. A nested grid cannot do this: sibling fields are separate grids and
     cannot share a row height, so the second row of a wrapping field set broke. */
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
}

/* 3. Readouts must never wrap: "5.00 mg/mL" breaking across two lines made one cell
   taller than the rest and broke the row. Shrink the type instead of wrapping. */
.rig-cell .v, .readout .cell .v {
  white-space: nowrap;
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
}

/* 4. Mobile install bar. The store badges sit at the top of the page only, so on a
   phone the fastest route to an install disappears the moment someone scrolls. */
.install-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 48, 61, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(234,246,239,.18);
}
.install-bar span { color: rgba(234, 246, 239, .85); font-size: 13px; line-height: 1.35; min-width: 0; }
.install-bar a {
  flex: none; display: inline-flex; align-items: center; gap: .4rem;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  white-space: nowrap; background: var(--sea-2); color: #04211b;
}
@media (max-width: 860px) {
  .install-bar { display: flex; }
  body { padding-bottom: 76px; }
}
@media print { .install-bar { display: none !important; } }

.price-note { margin: 1.3rem 0 0; font-size: .95rem; color: var(--ink-3, var(--ink-faint)); }

/* Store badges must not inherit their section's text colour: the badge keeps its own
   light background everywhere, so inheriting a dark section's near-white ink made the
   wordmark disappear. */
.store-badge, .store-badge:hover { color: var(--ink); }
.store-badge .sb-big { color: var(--ink); }
.store-badge .sb-small { color: var(--ink-3); }
.section-deep .store-badge, .section-deep .store-badge:hover,
.section-deep .store-badge .sb-big { color: var(--ink); }
.section-deep .store-badge .sb-small { color: var(--ink-3); }

/* tabular-nums belongs on numbers, not on the whole document: inherited globally it also
   swaps the comma and full stop for their tabular variants, which are digit-width, and
   every heading ends up with a visible gap before its punctuation. Scope it. */
.num, table, .schedule, .readout, .rig-out, .rig-cell, .kp-value, .kp-scale, .kp-ticks,
.forecast-strip, .month-grid, .bp-entry, .bp-entry input, .verdict-pair, .reading-note,
.logsheet, .reading-row, .field input, .field select, .cmp-table {
  font-variant-numeric: tabular-nums;
}

/* ---------- /get/ flow: desktop modal + QR ---------- */
.get-modal {
  border: 1px solid var(--rule-strong); border-radius: 18px; padding: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 420px; width: calc(100% - 2.5rem); background: var(--card); color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55); text-align: center;
}
.get-modal::backdrop { background: rgba(4, 8, 16, .62); backdrop-filter: blur(3px); }
.get-modal h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.get-modal p { color: var(--ink-3); font-size: .95rem; }
.get-modal .stores { justify-content: center; }
/* A modal <dialog> is placed in the top layer by the UA. Giving it position:relative
   drops it back into normal flow at the end of the document, so opening it yanked the
   page instead of centring the dialog. The close button therefore sits in a flex row
   rather than being absolutely positioned. */
.get-top { display: flex; justify-content: flex-end; margin: -.4rem -.4rem .2rem 0; }
.get-close {
  width: 34px; height: 34px;
  border: 0; background: transparent; color: var(--ink-3); font-size: 1.6rem; line-height: 1;
  cursor: pointer; border-radius: 8px;
}
.get-close:hover { color: var(--ink); }
.get-qr { display: flex; justify-content: center; margin: 1.2rem 0 .6rem; }
.get-qr svg { width: 170px; height: 170px; }
.get-qr-note { font-size: .84rem; color: var(--ink-3); }

/* ---------- single CTA ---------- */
.cta-row { display: flex; align-items: center; gap: 1rem 1.2rem; flex-wrap: wrap; margin-top: 1.7rem; }
.cta-center { justify-content: center; }
.btn-lg { padding: .95rem 2rem; font-size: 1.04rem; }
.cta-note { font-size: .88rem; color: var(--ink-3); }

/* ---------- QR needs a light plate ----------
   A dark-on-dark QR is invisible, and inverting the modules breaks a lot of scanners.
   Always render the code dark on white, whatever the surrounding surface. */
.get-qr { background: #fff; border-radius: 14px; padding: 14px; width: max-content; margin: 1.2rem auto .7rem; }
.get-qr svg { width: 160px; height: 160px; display: block; }

/* ---------- footer ---------- */
.foot-note { max-width: none; }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--rule); padding: clamp(2.2rem, 5vw, 3.2rem) 0; background: var(--paper-2); }
.trust-h {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 1.6rem;
}
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem 2rem; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; }
.trust-item svg { width: 22px; height: 22px; color: var(--sea); margin-top: .15rem; }
.trust-item a {
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  letter-spacing: -.01em; color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.trust-item a:hover { color: var(--sea); }
.trust-item p { margin: .35rem 0 0; font-size: .87rem; line-height: 1.5; color: var(--ink-3); }

/* Four short fields should sit on one row: without min-width:0 a <select> with long
   option text sets a huge min-content and forces the track wider than its 180px floor. */
.field-grid > .field, .rig-inputs > .field { min-width: 0; }
.field input, .field select { min-width: 0; max-width: 100%; }

/* The locate button has no label of its own, so it needs the same reserved label box to
   line up with the inputs beside it. */
.field-locate { display: flex; flex-direction: column; }
.field-locate::before {
  content: ''; display: block; font-size: .7rem; line-height: 1.3;
  min-height: 2.6em; margin-bottom: .45rem;
}
.field-locate .btn { width: 100%; }

/* Readout values: a unit belongs under the number, not trailing it inline, and a text
   verdict ("Beyond Kp 9") must be allowed to wrap rather than overflow into the next cell. */
.readout .cell .v, .rig-cell .v {
  display: block;
  white-space: normal;
  overflow-wrap: break-word;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}
.readout .cell .u { display: block; margin-top: .25rem; }
