/* Acidus — an ISO 17025 testing laboratory on Marcus Garvey Drive, Kingston.
 *
 * Idiom: the datasheet. A lab is not sold on photographs; it is sold on three
 * numbers a client actually asks for — is this test inside your accredited
 * scope, how long does it take, and what does it cost. So the page is the
 * board that answers them: the four disciplines with their turnaround, then
 * every test with its method, its accreditation mark, standard and rush time,
 * price and what to send. No stock photograph of a beaker: the only pictures
 * are of the material the lab actually tests — Kingston's concrete.
 *
 * Composition: the board is the first screen. Not a headline over a photograph
 * and not a hero — a poster of the lab's operating state, the four disciplines
 * and their turnaround typeset as the thing you came to read, the way a lab
 * pins its turnaround on the wall by the sample window.
 *
 * Palette: cool steel grey, graphite ink, and one cobalt. A testing lab spends
 * its authority on one distinction — what is inside its accredited scope and
 * what is not — so cobalt, a reagent blue, marks exactly that and nothing else:
 * an accredited method, an in-scope figure. Everything else is ink on steel.
 * No warm tone anywhere; a lab that looks reassuring is hiding something.
 *
 * Type: Golos Text, a neutral grotesque, for every word, and Spline Sans Mono
 * for every figure — a method number, a turnaround, a price, a job reference —
 * so the page reads as the instrument printout it is.
 */

:root {
  --paper: #e9ecf0;
  --panel: #f5f6f8;
  --white: #fdfdfe;
  --ink: #191c22;
  --ink-2: #454b55;
  --mute: #79808b;
  --line: #d0d5db;
  --line-2: #bcc2cb;
  --cobalt: #1f47d6;
  --cobalt-deep: #1536a6;
  --cobalt-tint: #e6ebfb;
  --grid: #dbdfe4;

  --gutter: clamp(1.2rem, 5vw, 5.5rem);
  --max: 80rem;
  --shell: min(100% - 2 * var(--gutter), var(--max));
  --measure: 40rem;
  --step: clamp(2.8rem, 2rem + 3.6vw, 5rem);

  --sans: 'Golos Text', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(1rem, 0.97rem + 0.16vw, 1.06rem)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.08; letter-spacing: -0.017em; margin: 0; }
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.3rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.15rem); letter-spacing: -0.022em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
::selection { background: var(--cobalt); color: #fff; }

.ac-mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
.ac-prose { max-width: var(--measure); color: var(--ink-2); }
.ac-prose p { margin-bottom: 1rem; }
.ac-prose strong { color: var(--ink); }

.ac-shell { width: var(--shell); margin-inline: auto; }
.ac-skip { position: absolute; left: -9999px; }
.ac-skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--ink); color: #fff; padding: 0.6rem 1rem; }

.ac-kicker { font: 600 0.7rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 0.9rem; }
.ac-kicker--mute { color: var(--mute); }

/* ── masthead ─────────────────────────────────────────────────────────── */
.ac-top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.3) blur(8px); border-bottom: 1px solid var(--line); }
.ac-top__in { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.3rem; min-height: 4rem; }
.ac-mark { display: inline-flex; align-items: baseline; gap: 0.55rem; text-decoration: none; }
.ac-mark b { font: 800 1.32rem/1 var(--sans); letter-spacing: -0.03em; }
.ac-mark span { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.ac-nav { display: flex; gap: clamp(0.8rem, 1.8vw, 1.7rem); justify-self: center; }
.ac-nav a { font: 500 0.9rem/1 var(--sans); text-decoration: none; color: var(--ink-2); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.ac-nav a:hover { color: var(--ink); }
.ac-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.ac-top__cta { justify-self: end; }
.ac-burger { display: none; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.ac-btn { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.9rem/1 var(--sans); text-decoration: none; cursor: pointer; padding: 0.72rem 1.15rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 3px; transition: background .15s, color .15s, border-color .15s; }
.ac-btn:hover { background: var(--ink); color: var(--white); }
.ac-btn--cobalt { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.ac-btn--cobalt:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.ac-btn--ghost { border-color: var(--line-2); color: var(--ink-2); }
.ac-btn--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.ac-btn--sm { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
.ac-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* ── sections ─────────────────────────────────────────────────────────── */
.ac-sec { padding-block: var(--step); border-top: 1px solid var(--line); }
.ac-sec--open { border-top: 0; padding-top: clamp(1.8rem, 1.4rem + 2vw, 3rem); }
.ac-sec--panel { background: var(--panel); }
.ac-head { max-width: 48rem; margin-bottom: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); }
.ac-head h2 { margin-bottom: 0.7rem; }
.ac-head p { color: var(--ink-2); max-width: var(--measure); }

/* ── the accreditation ribbon ─────────────────────────────────────────── */
.ac-ribbon { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; align-items: center; font: 500 0.82rem/1.3 var(--sans); color: var(--ink-2); margin-bottom: 1.6rem; }
.ac-ribbon b { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); }
.ac-tick { width: 1rem; height: 1rem; border-radius: 50%; background: var(--cobalt); color: #fff; display: inline-grid; place-items: center; font-size: 0.64rem; font-weight: 700; flex: none; }

/* ── the board (the hero device) ──────────────────────────────────────── */
.ac-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ac-disc { background: var(--white); border: 0; text-align: left; cursor: pointer; padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.3rem; font: inherit; transition: background .12s; position: relative; }
.ac-disc:hover { background: var(--panel); }
.ac-disc[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.ac-disc[aria-pressed="true"] .ac-disc__n, .ac-disc[aria-pressed="true"] .ac-disc__tat small { color: #aeb6c4; }
.ac-disc[aria-pressed="true"] .ac-disc__acc { color: #fff; }
.ac-disc__name { font: 600 1.06rem/1.2 var(--sans); }
.ac-disc__n { font: 400 0.8rem/1 var(--mono); color: var(--mute); }
.ac-disc__tat { margin-top: 0.7rem; }
.ac-disc__tat b { font: 500 1.7rem/1 var(--mono); letter-spacing: -0.02em; }
.ac-disc__tat small { display: block; font: 400 0.74rem/1.3 var(--sans); color: var(--mute); margin-top: 0.2rem; }
.ac-disc__acc { margin-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.ac-disc__acc[data-acc="part"] { color: var(--mute); }

/* ── the method finder (tests table) ──────────────────────────────────── */
.ac-finder { margin-top: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }
.ac-finder__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--ink); }
.ac-finder__title { font: 600 0.95rem/1 var(--sans); margin-right: auto; }
.ac-finder__title b { font-family: var(--mono); font-weight: 500; color: var(--cobalt); }
.ac-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.ac-toggle button { font: 500 0.78rem/1 var(--sans); background: var(--white); border: 0; cursor: pointer; padding: 0.5rem 0.8rem; color: var(--ink-2); }
.ac-toggle button[aria-pressed="true"] { background: var(--cobalt); color: #fff; }

.ac-tests { list-style: none; margin: 0; padding: 0; }
.ac-test { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1.4rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.ac-test__main { min-width: 0; }
.ac-test__name { font: 600 1.06rem/1.25 var(--sans); }
.ac-test__name a { text-decoration: none; }
.ac-test__name a:hover { border-bottom: 1px solid var(--cobalt); }
.ac-test__meta { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin-top: 0.35rem; font-size: 0.86rem; color: var(--ink-2); }
.ac-test__method { font-family: var(--mono); font-size: 0.8rem; color: var(--cobalt); }
.ac-test__disc { color: var(--mute); }
.ac-test__sample { color: var(--mute); }
.ac-test__acc { display: inline-flex; align-items: center; gap: 0.35rem; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.ac-test__acc[data-acc="yes"] { color: var(--cobalt); }
.ac-test__acc[data-acc="sub"], .ac-test__acc[data-acc="no"] { color: var(--mute); }
.ac-test__acc .ac-tick { width: 0.85rem; height: 0.85rem; font-size: 0.56rem; }
.ac-test__acc[data-acc="sub"] .ac-tick, .ac-test__acc[data-acc="no"] .ac-tick { background: var(--mute); }
.ac-test__right { text-align: right; white-space: nowrap; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-end; }
.ac-test__tat { font: 500 0.95rem/1.2 var(--mono); }
.ac-test__tat small { display: block; font: 400 0.72rem/1.3 var(--sans); color: var(--mute); white-space: nowrap; }
.ac-test__price { font: 400 0.95rem/1.2 var(--mono); color: var(--ink); }
.ac-tests__empty { padding: 1.8rem 0; color: var(--mute); }
.ac-finder__foot { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; align-items: center; }
.ac-finder__note { font-size: 0.84rem; color: var(--mute); max-width: 36rem; }

/* ── spec rows / facts ────────────────────────────────────────────────── */
.ac-facts { list-style: none; margin: 0; padding: 0; }
.ac-facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ac-facts .k { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--mute); }
.ac-facts .v { color: var(--ink); }
.ac-facts .v b { font-weight: 600; }
.ac-facts .v .ac-mono { font-size: 0.94rem; }

.ac-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: clamp(1.6rem, 4vw, 3.2rem); }

/* ── steps ────────────────────────────────────────────────────────────── */
.ac-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0.9rem; }
.ac-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.2rem 0.9rem; align-items: baseline; }
.ac-steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 0.85rem/1.4 var(--mono); color: var(--cobalt); grid-row: 1; }
.ac-steps b { font-weight: 600; grid-column: 2; }
.ac-steps span { color: var(--ink-2); grid-column: 2; }

/* ── scope list (accreditation) ───────────────────────────────────────── */
.ac-scope { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.4rem; }
.ac-scope li { break-inside: avoid; display: grid; grid-template-columns: 1rem 1fr; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.92rem; }
.ac-scope li .ac-tick { width: 0.85rem; height: 0.85rem; font-size: 0.56rem; margin-top: 0.2rem; }

/* ── band (relevant photograph) ───────────────────────────────────────── */
.ac-band { margin: 0; }
.ac-band img { width: 100%; height: clamp(16rem, 38vh, 26rem); object-fit: cover; filter: grayscale(0.25) contrast(1.02); }
.ac-band figcaption { width: var(--shell); margin-inline: auto; padding: 0.8rem 0 0; font-size: 0.85rem; color: var(--mute); }
.ac-band figcaption b { color: var(--ink-2); font-weight: 600; }

/* ── people ───────────────────────────────────────────────────────────── */
.ac-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.ac-person { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.ac-person h3 { font-size: 1.1rem; }
.ac-person .role { font: 500 0.78rem/1.3 var(--mono); color: var(--cobalt); margin: 0.25rem 0 0.5rem; }
.ac-person p { font-size: 0.9rem; color: var(--ink-2); }
.ac-person .sig { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.6rem; font: 600 0.66rem/1 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--cobalt); }
.ac-person .sig .ac-tick { width: 0.8rem; height: 0.8rem; font-size: 0.52rem; }

/* ── q&a / quotes ─────────────────────────────────────────────────────── */
.ac-qa { border-top: 1px solid var(--line); max-width: 52rem; }
.ac-qa details { border-bottom: 1px solid var(--line); }
.ac-qa summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; position: relative; font: 600 1.02rem/1.35 var(--sans); }
.ac-qa summary::-webkit-details-marker { display: none; }
.ac-qa summary::after { content: '+'; position: absolute; right: 0.2rem; top: 0.95rem; font: 400 1.3rem/1 var(--sans); color: var(--cobalt); }
.ac-qa details[open] summary::after { content: '\2013'; }
.ac-qa__a { padding: 0 0 1.2rem; color: var(--ink-2); max-width: var(--measure); }

.ac-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); }
.ac-quote { margin: 0; border-left: 2px solid var(--cobalt); padding-left: 1.1rem; }
.ac-quote blockquote { margin: 0; font: 500 1.06rem/1.5 var(--sans); }
.ac-quote figcaption { margin-top: 0.6rem; font: 500 0.8rem/1.3 var(--mono); color: var(--mute); }
.ac-quote figcaption b { color: var(--ink); font-weight: 600; }

/* ── forms ────────────────────────────────────────────────────────────── */
.ac-formwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.ac-form { display: grid; gap: 1rem; }
.ac-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ac-field { display: flex; flex-direction: column; gap: 0.35rem; }
.ac-field label { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.ac-field input, .ac-field select, .ac-field textarea { font: 400 0.98rem/1.4 var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--line-2); border-radius: 3px; padding: 0.7rem 0.8rem; width: 100%; }
.ac-field textarea { resize: vertical; min-height: 6rem; }
.ac-field input:focus, .ac-field select:focus, .ac-field textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.ac-field small { font-size: 0.8rem; color: var(--mute); }
.ac-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ac-send { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.ac-send small { color: var(--mute); font-size: 0.82rem; }
.ac-msg { font-size: 0.9rem; color: var(--cobalt-deep); }
.ac-fromtest { border: 1px solid var(--cobalt); background: var(--cobalt-tint); padding: 0.6rem 0.8rem; font-size: 0.9rem; color: var(--cobalt-deep); border-radius: 3px; }
.ac-aside { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.2rem, 3vw, 1.8rem); }

.ac-sent { border: 1px solid var(--ink); background: var(--white); padding: clamp(1.4rem, 3vw, 2.1rem); border-radius: 4px; }
.ac-sent h2 { margin-bottom: 1rem; }
.ac-sent__what { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.5rem; }
.ac-sent__what li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.ac-sent__what b { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--mute); align-self: center; }
.ac-sent__what span { color: var(--ink); }
.ac-reset { background: none; border: 0; color: var(--cobalt-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: 500 0.9rem var(--sans); padding: 0; }

/* ── detail ───────────────────────────────────────────────────────────── */
.ac-crumbs { font: 500 0.82rem/1.4 var(--sans); color: var(--mute); margin-bottom: 1.1rem; }
.ac-crumbs a { text-decoration: none; color: var(--ink-2); }
.ac-crumbs a:hover { color: var(--cobalt); }
.ac-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.4rem 0; }
.ac-spec div { background: var(--white); padding: 0.9rem 1rem; }
.ac-spec b { display: block; font: 600 0.68rem/1.3 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--mute); margin-bottom: 0.3rem; }
.ac-spec span { font-family: var(--mono); font-size: 0.98rem; }
.ac-spec span.acc { color: var(--cobalt); font-family: var(--sans); font-weight: 600; }

/* ── footer ───────────────────────────────────────────────────────────── */
.ac-foot { border-top: 1px solid var(--line); background: var(--panel); padding-block: clamp(2.2rem, 2rem + 2vw, 3.4rem); margin-top: var(--step); }
.ac-foot__in { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem 3rem; }
.ac-foot__mark { font: 800 1.32rem/1 var(--sans); letter-spacing: -0.03em; }
.ac-foot__mark span { display: block; margin-top: 0.6rem; font: 400 0.9rem/1.55 var(--sans); color: var(--ink-2); max-width: 26rem; }
.ac-foot__status { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem; font: 500 0.82rem/1 var(--sans); color: var(--ink-2); }
.ac-foot__status i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--mute); }
.ac-foot__status[data-open="1"] i { background: var(--cobalt); }
.ac-foot h2 { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 0.9rem; }
.ac-foot dl { margin: 0; font-size: 0.9rem; }
.ac-foot dt { color: var(--ink); margin-top: 0.4rem; }
.ac-foot dd { margin: 0; color: var(--mute); }
.ac-foot__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.ac-foot__nav a { font-size: 0.9rem; text-decoration: none; color: var(--ink-2); }
.ac-foot__nav a:hover { color: var(--cobalt); }
.ac-foot__fine { width: var(--shell); margin: 2rem auto 0; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--mute); }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .ac-top__in { grid-template-columns: auto auto; }
  .ac-nav { position: fixed; inset: 4rem 0 auto 0; z-index: 39; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.4rem var(--gutter) 1.1rem; display: none; }
  .ac-top[data-menu] .ac-nav { display: flex; }
  .ac-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .ac-top__cta { display: none; }
  .ac-burger { display: inline-flex; align-items: center; gap: 0.45rem; justify-self: end; background: none; border: 1px solid var(--line-2); border-radius: 3px; padding: 0.5rem 0.7rem; cursor: pointer; font: 600 0.8rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
  .ac-burger i { width: 16px; height: 10px; display: inline-flex; flex-direction: column; justify-content: space-between; }
  .ac-burger i span { height: 1.5px; background: var(--ink); display: block; }
  .ac-formwrap { grid-template-columns: 1fr; }
  .ac-foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ac-test { grid-template-columns: 1fr; }
  .ac-test__right { text-align: left; flex-direction: row; gap: 1.4rem; align-items: baseline; margin-top: 0.4rem; }
  .ac-scope { columns: 1; }
  .ac-two { grid-template-columns: 1fr; }
  .ac-foot__in { grid-template-columns: 1fr; }
  .ac-facts li { grid-template-columns: 7.5rem 1fr; }
  .ac-spec { grid-template-columns: 1fr 1fr; }
}
