/* ==========================================================================
   Dosyne — dosyne.com
   Direction: a measuring instrument, not a health app. Cool paper, ink navy,
   a single teal taken from the app icon, and typography that behaves like
   equipment labelling. Numbers are always monospaced and always tabular,
   because on this site a misread digit is the whole failure mode.
   ========================================================================== */

:root {
  --paper: #eef2f4;
  --paper-2: #e4eaee;
  --card: #ffffff;
  --ink: #0b2545;
  --ink-2: #33465e;
  --ink-3: #5a697e;
  --teal: #5eead4;
  --teal-deep: #0c7a70;
  --teal-ink: #0a3b39;
  --signal: #d97706;   /* caution, used only where something can go wrong */
  --danger: #b91c1c;
  --rule: rgba(11, 37, 69, 0.13);
  --rule-strong: rgba(11, 37, 69, 0.28);

  --font-display: 'Chivo', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Karla', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1140px;
  --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: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--teal); color: var(--teal-ink); }
:focus-visible { outline: 2px solid var(--teal-deep); 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: var(--paper); padding: .7rem 1.1rem; font-weight: 700;
}
.skip:focus { left: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1.1em; }

/* Equipment labelling: the eyebrow is a stamped part number, not decoration. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ''; width: 22px; height: 6px; flex: none;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px);
}

.lede { font-size: clamp(1.06rem, 1.6vw, 1.26rem); color: var(--ink-2); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 242, 244, .88);
  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: 66px; }
.brand {
  display: flex; align-items: center; gap: .6rem; margin-right: auto;
  font-family: var(--font-display); font-weight: 900; font-size: 1.16rem;
  letter-spacing: -.03em; text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; }
.nav-links a {
  text-decoration: none; font-size: .93rem; font-weight: 500; 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: var(--paper); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 66px 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: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .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: 40px; height: 40px; border-radius: 8px;
    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-body); font-weight: 700; font-size: .95rem;
  padding: .7rem 1.3rem; border-radius: 6px; 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: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(11, 37, 69, .6); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(11, 37, 69, .04); }

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

.stores { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 0; }
.store-badge {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .58rem 1.1rem .6rem; border-radius: 8px; 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: 25px; height: 25px; flex: none; }
.sb-text { display: flex; flex-direction: column; line-height: 1.1; }
.sb-small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font-mono); }
.sb-big { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }

/* ==========================================================================
   HERO — the instrument
   ========================================================================== */

.hero {
  position: relative;
  background:
    linear-gradient(180deg, var(--card) 0%, var(--paper) 62%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 4.5rem);
  overflow: hidden;
}
/* Millimetre paper, very faint — the surface a calculation belongs on. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(11, 37, 69, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 69, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 1.1rem; }
.hero-sub { max-width: 36rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem;
  font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3);
}
.hero-trust span { border: 1px solid var(--rule); border-radius: 4px; padding: .26rem .6rem; background: var(--card); }

/* ---------- the syringe: the signature element ---------------------------- */

.rig {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 22px 50px -34px rgba(11, 37, 69, .55);
  overflow: hidden;
}
.rig-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .6rem 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.rig-body { padding: clamp(1.1rem, 3vw, 1.8rem); }

.rig-inputs { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
@media (min-width: 700px) { .rig-inputs { grid-template-columns: repeat(3, 1fr); } }

.syringe { width: 100%; overflow-x: auto; }
.syringe svg { width: 100%; min-width: 560px; height: auto; }

.rig-out { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .rig-out { grid-template-columns: repeat(4, 1fr); } }
.rig-cell { border: 1px solid var(--rule); border-radius: 8px; padding: .85rem 1rem; background: var(--paper); }
.rig-cell .k {
  display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem;
}
.rig-cell .v { font-family: var(--font-mono); font-weight: 600; font-size: 1.55rem; letter-spacing: -.02em; }
.rig-cell.primary { background: var(--teal); border-color: var(--teal-deep); }
.rig-cell.primary .k { color: var(--teal-ink); }
.rig-cell.primary .v { color: var(--teal-ink); }

.rig-note {
  margin: 1.3rem 0 0; padding-top: 1.1rem; border-top: 1px dashed var(--rule-strong);
  font-size: .88rem; color: var(--ink-3);
}
.rig-note b { color: var(--ink); }
.rig-warn { color: var(--danger); font-weight: 700; }

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

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--rule); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink p { color: rgba(238, 242, 244, .78); }
.section-ink .eyebrow { color: var(--teal); }
.section-ink .eyebrow::before { background: repeating-linear-gradient(90deg, var(--teal) 0 2px, transparent 2px 4px); }
.section-ink .card { background: rgba(255, 255, 255, .05); border-color: rgba(238, 242, 244, .18); }

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

.grid-3 { display: grid; gap: 1.1rem; }
@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: 10px; padding: 1.4rem;
  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: .5rem; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.card-num {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em;
  color: var(--teal-deep); display: block; margin-bottom: .8rem; text-transform: uppercase;
}
.section-ink .card-num { color: var(--teal); }

.screens { display: flex; gap: 1.1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.screens img { width: 228px; flex: none; scroll-snap-align: center; border-radius: 16px; }
@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-mono); font-size: .74rem; color: var(--teal-deep); }

.price-grid { display: grid; gap: 1.1rem; max-width: 780px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price { border: 1px solid var(--rule); border-radius: 12px; padding: 1.6rem; background: var(--card); }
.price.featured { border-color: var(--ink); border-width: 2px; }
.price h3 { margin-bottom: .3rem; }
/* Display face, not mono: a monospace period sits in its own cell and "$49.99"
   reads as "$49 . 99". */
.price .amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 900; letter-spacing: -.035em; }
.price .per { color: var(--ink-3); font-size: .88rem; }
.price ul { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.price li { padding: .35rem 0 .35rem 1.4rem; position: relative; font-size: .94rem; color: var(--ink-2); }
.price li::before { content: ''; position: absolute; left: 0; top: .92em; width: 8px; height: 2px; background: var(--teal-deep); }

.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: .4rem; top: 1.55rem; width: 10px; height: 10px;
  border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep);
  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.1rem; max-width: 62ch; }

footer {
  padding: 2.8rem 0 2.4rem; border-top: 1px solid var(--rule);
  background: var(--paper-2); font-size: .87rem; 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.1rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--teal-deep); }
.foot-note { margin: 1.5rem 0 0; max-width: 62rem; font-size: .8rem; line-height: 1.6; }

[data-anim] { opacity: 0; transform: translateY(16px); }
body.ready [data-anim] { animation: rise .7s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 65ms); }
@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; }
}

/* Form fields — shared by the hero rig and the calculator pages. */
.field label {
  display: block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .4rem;
}
.field input, .field select {
  width: 100%; padding: .7rem .85rem; font-family: var(--font-mono); font-size: 1.05rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: 6px; font-variant-numeric: tabular-nums;
}
.field input:focus, .field select:focus { border-color: var(--teal-deep); outline: none; background: var(--card); }
.field .hint { font-size: .77rem; color: var(--ink-3); margin-top: .35rem; }


/* ==========================================================================
   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-ink .section-head p,
.section-ink .card p,
.section-ink .price li,
.section-ink .lede,
.section-ink p { color: rgba(238, 242, 244, .82); }
.section-ink .card h3, .section-ink h2, .section-ink h3 { color: #ffffff; }
.section-ink a { color: var(--teal); }

/* 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(11, 37, 69, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(238,242,244,.16);
}
.install-bar span { color: rgba(238, 242, 244, .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(--teal); color: #0a3b39;
}
@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-ink .store-badge, .section-ink .store-badge:hover,
.section-ink .store-badge .sb-big { color: var(--ink); }
.section-ink .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(--teal-deep); 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(--teal-deep); }
.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; }
