/* ==========================================================================
   LCMS Scientific — design system v2
   Light only. Serif display, hairlines, ink-black actions, generous air.
   The premium look comes from subtraction: no shadows, no filled colour,
   near-square corners, and a lot of whitespace.

   Work Order 1 Task A: the dark-mode block was removed deliberately. The
   approved design (design-direction.html) is light, and the site must stay
   light on a machine set to dark. Do not reintroduce a prefers-color-scheme
   block or a theme toggle.
   ========================================================================== */

:root {
  /* Keeps form controls, scrollbars and the like light regardless of the OS
     setting — without this the UA still paints them dark. */
  color-scheme: light;

  --paper:        #ffffff;
  --paper-warm:   #faf9f6;
  /* Work Order 1 Task J. These four are the text tokens and every one of them
     is contrast-checked against --paper and --paper-warm by npm run check.
     --muted and --faint were originally #767e86 (4.12:1) and #9aa2a9 (2.59:1),
     both of which fail WCAG AA. Do not nudge these by eye — that is how they
     got here. The check will fail the build if any drops below 4.5:1. */
  --ink:          #14171a;
  --ink-2:        #3d454c;
  --muted:        #565d65;
  --faint:        #6b727a;
  --rule:         #e8e6e0;
  --rule-soft:    #f0eee9;
  --accent:       #1f4e46;
  --accent-2:     #2c6b60;
  --accent-wash:  #eef3f1;
  --warn:         #8a5a12;
  --warn-wash:    #fdf6e8;
  --danger:       #9d2f2f;
  --on-ink:       #ffffff;

  --radius:       2px;
  --wrap:         1180px;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* -------------------------------------------------------------- baseline */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.09;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

.section { padding: 104px 0; }
.section--sunken,
.section--warm { background: var(--paper-warm); border-block: 1px solid var(--rule-soft); }
.section--tight { padding-top: 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.eyebrow {
  font-family: var(--sans);
  font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 1.1rem; display: block;
}
.lede { font-size: 1.16rem; line-height: 1.62; color: var(--ink-2); max-width: 58ch; }
.small { font-size: .9rem; color: var(--muted); }
.prose > *:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 14px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 18px; border-radius: var(--radius); transition: top .15s;
}
.skip-link:focus { top: 14px; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
/* Task M: the wordmark IS the logo, so it carries the header. 92px tall.
   Task T2: and it is full-bleed — .site-header__inner drops out of .wrap's
   1180px cap so the wordmark sits hard left and the nav hard right, while the
   page content below stays centred in .wrap. The contrast between a full-width
   header and a measured content column is the point; it is not misalignment.
   These declarations must stay after .wrap in this file to win on source order. */
.site-header__inner {
  display: flex; align-items: center; gap: 34px;
  min-height: 92px; max-width: none; padding: 0 40px;
}
@media (max-width: 640px) { .site-header__inner { padding: 0 22px; } }

/* Task T1: no image in the header — the wordmark stands alone. */
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: clamp(1.6rem, 2.2vw, 1.95rem); letter-spacing: -.02em; line-height: 1; }
.brand__name small {
  font-family: var(--sans); font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--faint); margin-left: 12px; font-weight: 500;
  white-space: nowrap;
}
/* At the enlarged size "SERVICE & SALES" no longer fits beside the wordmark and
   the Menu button on a 390px screen — it wrapped to a second line. The wordmark
   is the thing that has to survive, so the descriptor drops out on narrow
   phones rather than the header growing a second row. */
@media (max-width: 620px) { .brand__name small { display: none; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .92rem; font-weight: 450; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none; margin-left: auto; background: none;
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 9px 13px; cursor: pointer; color: var(--ink); font: inherit; font-size: .88rem;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    /* Tracks .site-header__inner min-height (Task M: 76px -> 92px). If these two
       drift apart the drawer overlaps the header. */
    position: absolute; inset: 92px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 22px 20px; margin-left: 0;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule-soft); }
  .cart-button { margin-top: 14px; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .93rem; font-weight: 500;
  padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--ink) 82%, var(--accent)); }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 17px; font-size: .87rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------------- hero */
.hero { padding: 112px 0 96px; border-bottom: 1px solid var(--rule-soft); }

/* Task P2: two columns, full lockup on the right. */
.hero__grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: 56px; align-items: center; }
/* The 24ch cap and the reduced clamp exist to hold the headline to exactly two
   lines — "Sales and service for LC/MS" / "instrumentation." — at 1440, 1280 and
   1100px. At 16ch it broke to three and looked cramped. There is deliberately no
   hard-coded <br>: if the copy changes, a forced break becomes a bug. */
.hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.05rem); max-width: 24ch; margin-bottom: .42em; }
.hero .lede { max-width: 52ch; }
.hero__logo { display: flex; justify-content: center; align-items: center; }
.hero__logo img { width: min(300px, 100%); height: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  /* Lockup above the headline on a phone, left-aligned with everything else. */
  .hero__logo { order: -1; justify-content: flex-start; }
  .hero__logo img { width: 170px; }
  /* Two lines is a desktop target, not a mobile one — let it use the width. */
  .hero h1 { max-width: none; }
}
.hero__stats {
  display: flex; gap: 56px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule);
}
.hero__stat { max-width: 23ch; }
.hero__stat strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: 2px;
}
.hero__stat span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 720px) { .hero { padding: 64px 0 56px; } .hero__stats { gap: 32px; } }

/* ---------------------------------------------------- numbered service rows */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 64px 1fr 1.15fr; gap: 32px;
  padding: 34px 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.row__n { font-family: var(--serif); font-size: 1.05rem; color: var(--faint); padding-top: 3px; }
.row h3 { margin: 0 0 .35em; }
.row p { color: var(--ink-2); font-size: .99rem; margin: 0; }
.row__tag {
  display: inline-block; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
@media (max-width: 800px) {
  .row { grid-template-columns: 34px 1fr; gap: 10px 16px; }
  /* The third child is the row's body — a <p> in the old markup, a <div> of
     sub-points in the services rows. Either way it must drop under the heading
     in column 2, not get squeezed into the 34px number column. */
  .row > p,
  .row > :nth-child(3) { grid-column: 2; }
}

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.grid--2 { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
@media (max-width: 940px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* Cells divided by hairlines rather than boxed cards. */
.card {
  display: flex; flex-direction: column;
  padding: 30px 30px 30px 0;
  border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule);
  background: transparent;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .93rem; }
.card__foot { margin-top: auto; padding-top: 16px; }
.grid--3 .card:nth-child(3n) { border-right: 0; }
.grid--2 .card:nth-child(2n) { border-right: 0; }
@media (max-width: 940px) {
  .grid--3 .card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .grid--3 .card:nth-child(2n) { border-right: 0; }
}
@media (max-width: 700px) { .card { border-right: 0 !important; padding-right: 0; } }

/* Standalone card (asides, quote boxes) keeps a hairline outline. */
.card--framed {
  border: 1px solid var(--rule); padding: 32px; background: var(--paper);
}

.instrument-card { padding: 0; border-right: 1px solid var(--rule); }
.instrument-card__body { padding: 26px 26px 26px 0; display: flex; flex-direction: column; flex: 1; }
.instrument-card__type {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: block; margin-bottom: 10px;
}
@media (max-width: 700px) { .instrument-card__body { padding-right: 0; } }

/* The three instrument photographs have different intrinsic ratios (the LCQ
   Advantage is portrait). Letterbox each inside an identical 4:3 box rather
   than cropping — cropping a photo of the specific machine being sold hides
   part of the goods — so every card's text starts on the same line. */
.thumb {
  aspect-ratio: 4 / 3; background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: .78rem; text-align: center;
  padding: 14px; overflow: hidden;
}
.thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
/* The detail photo is the listing's main evidence, so it runs full width of the
   prose column rather than being cropped into a fixed ratio. */
.instrument-detail__photo {
  width: 100%; height: auto; margin: 0 0 26px;
  border: 1px solid var(--rule-soft); background: var(--paper-warm);
}

/* ------------------------------------------------ expanded service bands */
/* Work Order 1 Task N — ported from svc-mock.html. Full-width alternating
   bands, one per service. "Expand" here is type and space only: the sentences
   are unchanged from §8 and npm run check asserts that.

   Banding follows the mock (svc-mock.png): 01 warm, 02 paper, 03 warm, 04
   paper. The work order prose says "odd = paper, even = paper-warm", which is
   the opposite; the mock is the stated target so the mock wins. */
.svc-bands { border-bottom: 1px solid var(--rule); }
.svc { border-top: 1px solid var(--rule); background: var(--paper); }
.svc-bands > .svc:nth-child(odd) { background: var(--paper-warm); }

.svc__in {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px;
  padding: 66px 0; align-items: start;
}
.svc__l { display: flex; gap: 26px; align-items: flex-start; }
.svc__num {
  font-family: var(--serif); font-size: 3.2rem; line-height: .9;
  color: var(--rule); letter-spacing: -.03em; flex: none; padding-top: 2px;
}
.svc h3 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); margin: 0 0 12px; }
.svc__note { color: var(--faint); font-size: .9rem; margin: 0; }

/* A quiet link, not a button — a button would make the band shout. */
.svc__act {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: .92rem; font-weight: 500; color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding-bottom: 3px;
}
.svc__act:hover { text-decoration: none; border-bottom-color: var(--accent); }

.svc__intro { font-size: 1.06rem; color: var(--ink); margin: 0 0 6px; font-weight: 450; }
.svc__list { list-style: none; margin: 10px 0 0; padding: 0; }
.svc__list li {
  font-size: 1.08rem; color: var(--ink-2); padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: flex; gap: 16px; align-items: baseline;
}
.svc__list li:last-child { border-bottom: 0; }
/* The tabular index is what makes a four-item list read as substantial. */
.svc__list i {
  font-style: normal; color: var(--faint); font-size: .78rem;
  font-family: var(--sans); font-variant-numeric: tabular-nums; min-width: 18px;
}
.svc__single { font-size: 1.08rem; color: var(--ink-2); margin: 10px 0 0; max-width: 44ch; }

.svc-head { padding: 96px 0 8px; }
/* h1 on services.html, h2 on the homepage — same treatment either way, or the
   page-level heading falls back to the much larger base h1 size. */
.svc-head h1,
.svc-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 20px; max-width: 20ch; }
.svc-head p { color: var(--ink-2); font-size: 1.16rem; max-width: 60ch; margin: 0; }

@media (max-width: 860px) {
  .svc__in { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .svc__num { font-size: 2.4rem; }
  .svc-head { padding: 64px 0 8px; }
}

/* ------------------------------------------------- credibility band (U) */
.clients {
  background: var(--paper-warm);
  border-block: 1px solid var(--rule);
  padding: 84px 0;
}
.clients__heading { margin-bottom: 44px; }
.clients__quotes { display: grid; grid-template-columns: 1fr 1fr; }
.clients__quote { margin: 0; padding-right: 48px; }
/* Vertical hairline between the two, not around them. */
.clients__quote + .clients__quote {
  padding-right: 0; padding-left: 48px; border-left: 1px solid var(--rule);
}
.clients__quote blockquote {
  margin: 0 0 20px;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5; letter-spacing: -.005em; color: var(--ink);
}
.clients__quote figcaption b {
  display: block; font-family: var(--sans); font-weight: 500; font-size: .95rem; color: var(--ink);
}
.clients__quote figcaption span { font-size: .88rem; color: var(--muted); }

/* Set in type, not logos: sourcing and licensing university marks is a separate
   problem, and names in type read as a client list rather than a sponsor wall. */
.clients__orgs {
  list-style: none; margin: 44px 0 0; padding: 32px 0 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 48px;
}
.clients__orgs li {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}

@media (max-width: 760px) {
  .clients { padding: 56px 0; }
  .clients__quotes { grid-template-columns: 1fr; }
  .clients__quote { padding-right: 0; }
  .clients__quote + .clients__quote {
    padding-left: 0; border-left: 0;
    margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule);
  }
  .clients__orgs { gap: 20px 32px; }
}

/* ------------------------------------------------------- platforms list */
/* Task S2. A list of facts, so it reads quietly — dense four-column grid, no
   alternating bands, no action links. The band treatment is for the services. */
.platforms__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px;
  border-top: 1px solid var(--rule); margin-top: 44px;
}
.platforms__col { padding: 28px 0; }
.platforms__col h3 {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
  /* "Ionics / interface configurations" wraps to two lines while the other
     three headings do not; reserving both lines keeps all four model lists
     starting on the same baseline. */
  line-height: 1.4; min-height: 2.8em;
}
.platforms__col ul { list-style: none; margin: 0; padding: 0; }
.platforms__col li { font-size: .95rem; color: var(--ink-2); padding: 5px 0; list-style: none; }
@media (max-width: 900px) { .platforms__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .platforms__grid { grid-template-columns: 1fr; } }

/* Task Q3 — the single attribution line under the services bands. */
.svc-attribution { padding: 34px 0 0; }
.svc-attribution p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Sub-points under a service row — the four bullets John lists per service.
   Task J: these ARE the content of the page, not secondary text, so they sit at
   --ink-2. Only the '·' markers stay faint; they are decoration and should not
   compete with the words. */
.row-points { list-style: none; margin: .6em 0 0; padding: 0; }
.row-points li { font-size: .93rem; color: var(--ink-2); padding: 3px 0; }
.row-points li::before { content: '·'; color: var(--faint); margin-right: 9px; }
/* The "Up to 3 people training including:" line introduces the list it sits
   above — full ink, not the --ink-2 that .row p would otherwise give it. */
.row .row-intro { color: var(--ink); }

/* ------------------------------------------------------------------- tags */
.tag {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.tag--ok     { color: var(--accent); }
.tag--warn   { color: var(--warn); }
.tag--accent { color: var(--accent); }
.sku { font-family: var(--mono); font-size: .74rem; color: var(--faint); letter-spacing: .02em; }

/* ------------------------------------------------------------------ store */
.store-layout { display: grid; grid-template-columns: 210px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .store-layout { grid-template-columns: 1fr; gap: 24px; } }

.filters { position: sticky; top: 100px; }
@media (max-width: 900px) { .filters { position: static; } }
.filters h2 {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px;
}
.filters__list { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 1px; }
@media (max-width: 900px) { .filters__list { flex-direction: row; flex-wrap: wrap; gap: 6px; } }
.filters__list button {
  width: 100%; text-align: left; font: inherit; font-size: .9rem;
  background: none; border: 0; border-left: 2px solid transparent;
  color: var(--ink-2); padding: 8px 0 8px 12px; cursor: pointer;
}
@media (max-width: 900px) {
  .filters__list button { width: auto; border-left: 0; border: 1px solid var(--rule); padding: 7px 13px; }
}
.filters__list button:hover { color: var(--ink); }
.filters__list button[aria-pressed="true"] {
  border-left-color: var(--accent); color: var(--ink); font-weight: 500;
}
@media (max-width: 900px) { .filters__list button[aria-pressed="true"] { border-color: var(--ink); } }

.search {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: 11px 0; border: 0; border-bottom: 1px solid var(--rule);
  border-radius: 0; background: transparent;
}
.search:focus { border-bottom-color: var(--ink); outline: none; }
.search::placeholder { color: var(--faint); }

.store-bar { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.store-bar .search { max-width: 380px; }
.store-count { font-size: .85rem; color: var(--faint); margin-left: auto; }

.part-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
@media (max-width: 1080px) { .part-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .part-grid { grid-template-columns: 1fr; } }

.part {
  display: flex; flex-direction: column; gap: 9px;
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule);
}
.part-grid > .part:nth-child(3n) { border-right: 0; }
@media (max-width: 1080px) {
  .part-grid > .part:nth-child(3n) { border-right: 1px solid var(--rule); }
  .part-grid > .part:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) { .part { border-right: 0 !important; padding-right: 0; } }

/* Photographs are the listing's evidence — these are specific used modules, so
   the picture carries more weight than any description. Contain, never crop:
   cropping hides part of the goods being sold. */
.part__photo {
  display: block; position: relative;
  aspect-ratio: 4 / 3; background: var(--paper-warm);
  border: 1px solid var(--rule-soft); margin-bottom: 4px;
  overflow: hidden;
}
.part__photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.part__photo-count {
  position: absolute; bottom: 6px; right: 6px;
  background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--on-ink);
  font-size: .68rem; letter-spacing: .04em; padding: 3px 7px; border-radius: var(--radius);
}

/* Task AE — the condition badge sits above the fold on every card. Untested is
   the honest default for this inventory, so it is stated plainly rather than
   tucked into small print. */
.part__cond {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid currentColor; border-radius: var(--radius);
}
.part__cond--new  { color: var(--accent); }
.part__cond--used { color: var(--ink-2); }
.part__cond--asis { color: var(--warn); }

/* The as-is disclosure, in two forms (Task AM).

   Short form, on the grid: one line, same amber accent, no block. Twenty-one
   identical paragraphs stopped being read after the second one, which made the
   store look like a hazard notice while reducing the disclosure's actual effect.

   Full form, on the part page: the whole paragraph, directly above the buy
   button. Never hidden behind a <details> — a buyer must not have to click to
   find out the item is untested. */
.part__asis-short {
  font-size: .78rem; font-weight: 500; color: var(--warn);
  margin: 0; padding-left: 10px; border-left: 2px solid var(--warn);
}
.part__asis {
  font-size: .82rem; line-height: 1.55; color: var(--ink-2);
  background: var(--warn-wash); border-left: 2px solid var(--warn);
  padding: 12px 14px; margin: 0 0 18px;
}

/* ------------------------------------------------------ part detail page */
.pd-gallery__main {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain;
  background: var(--paper-warm); border: 1px solid var(--rule-soft); padding: 12px;
}
.pd-gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pd-gallery__thumb {
  width: 72px; height: 60px; padding: 3px; cursor: pointer;
  background: var(--paper-warm); border: 1px solid var(--rule);
}
.pd-gallery__thumb.is-active { border-color: var(--ink); }
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* The buy block is where the decision happens, so it is set apart from the
   specification table above it. */
.pd-buy {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule);
}
.pd-buy__price {
  font-family: var(--serif); font-size: 2rem; letter-spacing: -.02em; margin-bottom: 16px;
}
/* The part name on a card is a link, but it should read as a heading. */
.part h3 a { color: var(--ink); }
.part h3 a:hover { color: var(--accent); text-decoration: none; }

.part__head { display: flex; flex-direction: column-reverse; gap: 7px; }
.part h3 { font-size: 1.08rem; margin: 0; }
.part__fits { font-size: .82rem; color: var(--faint); margin: 0; }
.part__fits strong { font-weight: 500; }
.part__blurb { font-size: .89rem; color: var(--muted); margin: 0; flex: 1; }
.part__meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.part__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-top: 12px; }
.part__price { font-family: var(--serif); font-size: 1.42rem; letter-spacing: -.02em; }
.part__lead { font-size: .77rem; color: var(--faint); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 72px 20px; color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

/* ------------------------------------------------------------------- cart */
.cart-button { position: relative; }
.cart-count {
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font-size: .66rem; font-weight: 600; display: grid; place-items: center; padding: 0 5px;
}
.cart-count[hidden] { display: none; }

.drawer-scrim {
  position: fixed; inset: 0; background: rgba(12, 14, 16, .42);
  z-index: 150; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: var(--paper); border-left: 1px solid var(--rule); z-index: 160;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; border-bottom: 1px solid var(--rule);
}
.drawer__head h2 { margin: 0; font-size: 1.3rem; }
.drawer__close {
  background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer;
  color: var(--muted); padding: 4px 8px;
}
.drawer__close:hover { color: var(--ink); }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 28px; }
.drawer__foot { border-top: 1px solid var(--rule); padding: 22px 28px; }

.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 20px 0; border-bottom: 1px solid var(--rule-soft); }
.line__name { font-weight: 500; font-size: .94rem; }
.line__price { font-family: var(--serif); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.line__ctl { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--radius); }
.qty button {
  width: 30px; height: 30px; border: 0; background: none; color: var(--ink);
  font: inherit; cursor: pointer; line-height: 1;
}
.qty button:hover { background: var(--paper-warm); }
.qty span { min-width: 32px; text-align: center; font-size: .88rem; font-variant-numeric: tabular-nums; }
.line__remove { background: none; border: 0; color: var(--faint); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.line__remove:hover { color: var(--danger); }

.totals { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: 7px; }
.totals--grand {
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
  margin: 14px 0 20px; padding-top: 14px; border-top: 1px solid var(--rule);
}
.cart-note { font-size: .78rem; color: var(--faint); margin: 14px 0 0; text-align: center; }

/* ------------------------------------------------------------------ misc */
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table th { width: 210px; color: var(--faint); font-weight: 450; }

.banner {
  background: var(--warn-wash); color: var(--warn);
  font-size: .85rem; font-weight: 500; text-align: center; padding: 10px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
}
.notice {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 20px;
  font-size: .93rem; color: var(--ink-2);
}

.breadcrumb { font-size: .84rem; color: var(--faint); margin-bottom: 26px; }
.breadcrumb a { color: var(--faint); }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contact-list li { display: flex; flex-direction: column; gap: 3px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact-list b { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

.quote { max-width: 74ch; }
.quote p { font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 1.95rem); line-height: 1.42; letter-spacing: -.01em; margin-bottom: 22px; }
.quote cite { font-style: normal; font-size: .89rem; color: var(--muted); }
.quote cite b { display: block; color: var(--ink); font-weight: 500; font-family: var(--sans); }
/* Two testimonials side by side need to sit down a size from a solo pull-quote. */
.quote--sm p { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.5; margin-bottom: 18px; }

.endcta { text-align: center; padding: 120px 0; }
.endcta .lede { margin-left: auto; margin-right: auto; }
.endcta .hero__actions { justify-content: center; }

.field { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule-soft); font-size: .92rem; }
.field b { width: 112px; flex: none; color: var(--faint); font-weight: 450; font-size: .85rem; }
.field span { color: var(--ink-2); }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--paper-warm); border-top: 1px solid var(--rule); padding: 64px 0 40px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h3 {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 15px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-2); font-size: .92rem; }
.site-footer a:hover { color: var(--accent); }
/* Four addresses routed by purpose need the purpose stated, but the label must
   not compete with the address itself. */
.site-footer__hint { display: block; font-size: .78rem; color: var(--faint); margin-top: 2px; }
.site-footer__base {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--faint);
}

@media print { .site-header, .site-footer, .drawer, .drawer-scrim, .banner { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
