/* =====================================================================================
   RK Pharma — Product catalogue (catalog.rkpharma.in)
   -------------------------------------------------------------------------------------
   The token block, the chrome (header / footer / buttons) and the document-record rules
   are copied verbatim from site/src/styles/global.css, which is governed by
   site/DESIGN.md. Nothing here invents a new colour, radius or type step: the catalogue
   is the same controlled document, one section longer.

   When this prototype becomes the Astro project, this file collapses into the shared
   stylesheet — until then the duplication is deliberate and the values must stay equal.
   ===================================================================================== */

/* ---------------------------------------------------------------- tokens (pinned) */
:root {
  --paper: #FAF8F2;
  --mint: #E4F1EA;
  --ink: #0F241C;
  --mute: #5B6E64;
  --line: #DCE4DE;
  --ev900: #07271D;
  --ev800: #0B3B2C;
  --ev700: #11543E;
  --ev500: #2E8B68;
  --gold: #C2A053;
  --gold-300: #DECA8E;
  --gold-100: #F7EFDA;
  --error: #C2453B;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --sans: "Onest", system-ui, -apple-system, sans-serif;

  --radius-card: 12px;
  --radius-btn: 5px;
  --shadow-card: 0 10px 30px -12px rgba(7, 39, 29, 0.10);
  --shadow-lift: 0 18px 44px -16px rgba(7, 39, 29, 0.16);
  --focus-ring: 0 0 0 3px rgba(194, 160, 83, 0.35);
  --maxw: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-300); color: var(--ev900); }
html { scrollbar-color: var(--ev700) var(--mint); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--mint); }
::-webkit-scrollbar-thumb { background: var(--ev700); border-radius: 6px; border: 3px solid var(--mint); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--ev700); text-decoration-color: var(--gold-300); text-underline-offset: 3px; }
a:hover { color: var(--ev500); }
strong { font-weight: 600; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(var(--maxw), 100% - 3rem); margin-inline: auto; }

/* A jump link for keyboard users: the search and the results are the two places to be. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--ev700); padding: 0.75rem 1rem;
  border: 1px solid var(--line); border-radius: 0 0 var(--radius-btn) 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
/* No header CTA any more: the header carries the return link and the search band owns the
   only gold element on the first screen. */
.btn-gold { background: var(--gold); color: var(--ev900); }
.btn-gold:hover { background: var(--gold-300); color: var(--ev900); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(194,160,83,0.5); }
.btn-outline { border-color: var(--ev700); color: var(--ev700); background: transparent; }
.btn-outline:hover { border-color: var(--ev500); color: var(--ev500); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -14px rgba(7,39,29,0.18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1rem; }

.wordmark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.wordmark__mark { height: 1.9rem; width: auto; display: block; }
.wordmark .sub { font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.wordmark .sub--catalog { color: var(--ev700); }

/* The single way back to the corporate site: an outline control in the header, the same
   shape the site's own header CTA uses, so the catalogue never grows a second navigation. */
.site-back {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--ev700); text-decoration: none;
  border: 1px solid var(--ev700); border-radius: var(--radius-btn); padding: 0.65rem 1rem;
  transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}
.site-back:hover { color: var(--ev500); border-color: var(--ev500); transform: translateY(-2px); }
.site-back svg { width: 16px; height: 16px; flex: none; }
.site-back__host {
  color: var(--mute); font-weight: 500; font-size: 0.8125rem;
  border-left: 1px solid var(--line); padding-left: 0.6rem;
}

/* =====================================================================================
   The search band
   -------------------------------------------------------------------------------------
   Dark evergreen owns the band, exactly as the home hero does, and the engraved column
   rules are drawn over it — the controlled-document margin. The one gold element in this
   viewport is the index figure: the number is the claim the catalogue makes.
   ===================================================================================== */
.cat-hero {
  position: relative; overflow: hidden;
  background: var(--ev900); color: var(--paper);
  padding-block: clamp(2.75rem, 5vw, 4.25rem) clamp(3rem, 6vw, 4.5rem);
}
.cat-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(to right, rgba(222,202,142,0.055) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
}
.cat-hero .wrap { position: relative; z-index: 1; }
.cat-hero h1 { color: var(--paper); max-width: 22ch; margin-bottom: 1rem; }
.cat-hero .eyebrow {
  margin: 0 0 1rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-300);
}
.cat-hero .lede { color: rgba(250, 248, 242, 0.82); font-size: 1.125rem; max-width: 46rem; margin-bottom: 2rem; }

/* The search itself: a paper field on the dark band. It is the tool, so it is the
   brightest object in the viewport. */
.search { position: relative; max-width: 46rem; }
.search__field {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--paper); border: 1px solid var(--paper); border-radius: var(--radius-btn);
  padding: 0 1rem; box-shadow: 0 18px 40px -20px rgba(3,20,14,0.7);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search__field:focus-within { border-color: var(--gold); box-shadow: var(--focus-ring), 0 18px 40px -20px rgba(3,20,14,0.7); }
.search__field > svg { width: 20px; height: 20px; color: var(--ev700); flex: none; }
.search input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: none; border: 0; padding: 1.05rem 0;
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--mute); opacity: 1; }
.search__hint {
  flex: none; font-size: 0.75rem; color: var(--mute); letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.55rem;
}
.search__clear {
  flex: none; background: none; border: 0; cursor: pointer; padding: 0.4rem;
  color: var(--mute); font: inherit; font-size: 0.8125rem; font-weight: 600;
}
.search__clear:hover { color: var(--ev700); }
.search__clear[hidden] { display: none; }

/* Suggestions: white card, ruled rows — the same ruled list the site uses elsewhere. */
.suggest {
  position: absolute; z-index: 40; inset-inline: 0; margin: 0.5rem 0 0; padding: 0.35rem 0;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift); max-height: min(60vh, 30rem); overflow: auto;
}
.suggest[hidden] { display: none; }
.suggest li { border-bottom: 1px solid var(--line); }
.suggest li:last-child { border-bottom: 0; }
.suggest__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: center;
  padding: 0.75rem 1rem; color: var(--ink);
}
.suggest__row:hover, .suggest__row.is-active { background: var(--mint); }
/* The record link covers the name, the composition and the chips; the chat link stands
   beside it. Two siblings, never an anchor inside an anchor. */
.suggest__open { display: grid; gap: 0.1rem; min-width: 0; text-decoration: none; color: inherit; }
.suggest__open:hover { color: inherit; }
.suggest__name { font-family: var(--display); font-weight: 640; font-size: 1.0625rem; letter-spacing: -0.01em; }
.suggest__comp { color: var(--mute); font-size: 0.875rem; }
.suggest__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.suggest__go { display: flex; align-items: center; gap: 0.75rem; }
.suggest__go svg { width: 16px; height: 16px; }
.suggest__empty { padding: 0.9rem 1rem; color: var(--mute); font-size: 0.9375rem; }
.suggest__foot {
  padding: 0.6rem 1rem; border-top: 1px solid var(--line);
  color: var(--mute); font-size: 0.8125rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* Quick searches under the field: the substances a buyer actually types. */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.quick__label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,248,242,0.6); }
.quick button {
  font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  color: var(--paper); background: rgba(250,248,242,0.06);
  border: 1px solid rgba(222,202,142,0.32); border-radius: 999px; padding: 0.4rem 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.quick button:hover { border-color: var(--gold-300); background: rgba(250,248,242,0.12); }

/* The index figures. One gold number: the size of the index is the claim. */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  margin: clamp(2rem, 4vw, 2.75rem) 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(222, 202, 142, 0.28);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats .num {
  font-family: var(--display); font-stretch: 115%; font-weight: 640;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; color: var(--paper);
}
.hero-stats .num--gold { color: var(--gold); }
.hero-stats .lbl { margin-top: 0.4rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,248,242,0.66); }

/* =====================================================================================
   Results band
   ===================================================================================== */
.catalog { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.catalog__grid { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

/* ---------------------------------------------------------------- facet rail */
.facets { position: sticky; top: 5.5rem; }
/* The rail carries three groups of up to twenty values each; on a laptop that is taller
   than the window, so it scrolls inside itself and the results keep their own column. */
@media (min-width: 1021px) {
  .facets { max-height: calc(100vh - 8rem); overflow-y: auto; overscroll-behavior: contain; padding-right: 0.5rem; }
}
/* An open record is a document, not a result: it takes the whole container, drops the
   rail it no longer filters, and drops the sort control it cannot use. */
body.route-record .catalog__grid { grid-template-columns: minmax(0, 1fr); }
body.route-record .facets,
body.route-record .sort { display: none; }
.facets__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.facets__title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0; }
.facets__clear { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--ev700); cursor: pointer; }
.facets__clear[hidden] { display: none; }
.facets__clear:hover { color: var(--ev500); }
.facet { border-top: 1px solid var(--line); padding-block: 0.9rem; }
.facet:last-of-type { border-bottom: 1px solid var(--line); }
.facet > summary {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer; list-style: none;
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary::after {
  content: ""; margin-inline-start: auto; width: 0.5rem; height: 0.5rem; flex: none;
  border-inline-end: 1.5px solid var(--ev700); border-block-end: 1.5px solid var(--ev700);
  transform: rotate(45deg) translateY(-0.15rem); transition: transform 0.25s var(--ease-out);
}
.facet[open] > summary::after { transform: rotate(225deg) translateY(-0.15rem); }
.facet__list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.1rem; }
.facet__opt {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-size: 0.9375rem; color: var(--ink); padding: 0.35rem 0;
}
.facet__opt input { flex: none; width: 1rem; height: 1rem; accent-color: var(--ev700); margin: 0; }
.facet__opt span { flex: 1 1 auto; }
.facet__opt:hover { color: var(--ev700); }
.facet__count { color: var(--mute); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.facet__note { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--mute); }
.facets__mobile { display: none; }

/* ---------------------------------------------------------------- toolbar */
.results__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.results__count { margin: 0; font-size: 0.9375rem; color: var(--ink); }
.results__count strong { font-variant-numeric: tabular-nums; }
.results__count em { color: var(--mute); font-style: normal; }
.results__tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--mute); }
.sort select {
  font: inherit; font-size: 0.875rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0.45rem 0.6rem;
}
.sort select:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.source-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute);
}
.source-badge .dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ev500); flex: none; }
.source-badge--live .dot { background: var(--gold); }

/* ---------------------------------------------------------------- record list */
.record-list { list-style: none; margin: 0; padding: 0; }
.rec { border-bottom: 1px solid var(--line); }
.rec__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 2rem;
  align-items: start; padding: 1.15rem 0;
}
.rec__main { text-decoration: none; color: inherit; display: block; min-width: 0; }
.rec__main:hover { color: inherit; }
.rec__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem;
  font-family: var(--display); font-stretch: 112%; font-weight: 640;
  font-size: 1.1875rem; line-height: 1.2; letter-spacing: -0.012em; color: var(--ink);
}
.rec__main:hover .rec__title { color: var(--ev700); }
.rec__comp { margin-top: 0.3rem; color: var(--mute); font-size: 0.9375rem; }
.rec__meta { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.8125rem; color: var(--mute); }
.rec__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.rec__side { display: flex; align-items: center; gap: 0.75rem; }
.rec__price {
  text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rec__price .cur { color: var(--mute); font-weight: 500; font-size: 0.875rem; }
.rec__price .per { display: block; font-weight: 400; font-size: 0.75rem; color: var(--mute); }

/* Chips: outline pills on white, Evergreen 700 text (design system rule). */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--line); background: #fff; color: var(--ev700);
  padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip--mint { background: var(--mint); border-color: transparent; }
.chip--gold { background: var(--gold-100); border-color: var(--gold-300); }
.chip--warn { background: #fff; border-color: var(--error); color: var(--error); }

/* An icon-sized WhatsApp control, so the per-row chat affordance stays quiet. */
.icon-btn {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  border-radius: var(--radius-btn); border: 1px solid var(--line); background: #fff; color: var(--ev700);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.icon-btn:hover { border-color: var(--ev500); color: var(--ev500); transform: translateY(-2px); }

/* ---------------------------------------------------------------- empty state */
.empty {
  margin-top: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--mint); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.empty h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.empty p { color: var(--mute); font-size: 0.9375rem; margin-bottom: 1rem; max-width: 56ch; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.empty__terms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.empty__terms button {
  font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  color: var(--ev700); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.35rem 0.85rem;
}
.empty__terms button:hover { border-color: var(--ev500); color: var(--ev500); }

/* =====================================================================================
   The record — the site's Dossier Table, carried into the catalogue.
   White card, ruled rows, 15rem label column, a Gold-100 specimen tag in the head and the
   1px Gold-300 inner frame inset 10px: the signature of the design system, and the reason
   a catalogue entry here is a document rather than a tile.
   ===================================================================================== */
.record { margin-top: 1.5rem; }
.record__back {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem;
  font-size: 0.875rem; font-weight: 600; color: var(--ev700); text-decoration: none;
}
.record__back svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease-out); }
.record__back:hover svg { transform: translateX(-3px); }

.dossier {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 10px;
}
.dossier::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-300);
  border-radius: 6px; pointer-events: none; opacity: 0.75;
}
.dossier > * { position: relative; }
.dossier-head { padding: 1.75rem 1.75rem 1.25rem; }
.dossier-head .rule { height: 1px; background: var(--gold-300); width: 3.5rem; margin-bottom: 1.1rem; }
.dossier-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dossier-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); margin-bottom: 0.4rem; }
.dossier-sub { margin: 0; color: var(--mute); font-size: 1rem; }
.dossier-tag {
  background: var(--gold-100); border: 1px solid var(--gold-300);
  color: var(--ev700); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap;
}
.dossier-media { margin: 0.5rem 1.75rem 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; }
.dossier-media img { border: 1px solid var(--line); border-radius: 8px; max-width: min(100%, 26rem); height: auto; }
/* No photograph on file: a ruled plate that says so, rather than a stock image that lies. */
.photo-absent {
  width: min(100%, 26rem); aspect-ratio: 16 / 7;
  display: grid; place-items: center; gap: 0.5rem; text-align: center;
  background: var(--mint); border: 1px solid var(--line); border-radius: 8px;
  color: var(--mute); font-size: 0.8125rem; padding: 1rem;
}
.photo-absent svg { width: 26px; height: 26px; color: var(--ev500); }

.dossier-fields { margin: 0; padding: 0 1.75rem; }
/* A fieldset only groups rows and names them; the browser's own box must not interfere
   with the grid inside it. */
.dossier-group { margin: 0; padding: 1.25rem 0 0; border: 0; min-inline-size: 0; }
.dossier-group > legend {
  display: block; width: 100%; padding: 0 1.75rem; margin: 0 0 0.35rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ev700);
}
.dossier-row {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 0.35rem 1.5rem;
  padding: 0.8rem 0; border-top: 1px solid var(--line); align-items: baseline;
}
.dossier-row dt {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute);
}
.dossier-row dd { margin: 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.dossier-row dd .sub { display: block; font-weight: 400; font-size: 0.875rem; color: var(--mute); margin-top: 0.2rem; }
.dossier-row dd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.dossier-row dd li { display: flex; gap: 0.6rem; align-items: baseline; }
.dossier-row dd li::before { content: ""; width: 0.35rem; height: 1px; background: var(--gold-300); flex: none; transform: translateY(-0.3rem); }
.dossier-row dd.unset { color: var(--mute); font-weight: 400; }
.dossier-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* The ATC path: a monograph's classification line, not a breadcrumb. */
.atc-path { display: grid; gap: 0.3rem; }
.atc-path span { display: flex; flex-wrap: wrap; gap: 0.1rem 0.6rem; align-items: baseline; }
.atc-path__name { font-weight: 500; }
.atc-path .sub { display: inline; margin: 0; }
.atc-path code {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ev700); background: var(--mint); border-radius: 3px; padding: 0.1rem 0.35rem;
  font-variant-numeric: tabular-nums;
}
.dossier-foot {
  margin: 1.5rem 1.75rem 0; padding: 1.1rem 0 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--mute); max-width: none;
}
.dossier-foot ol { margin: 0 0 0.75rem; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.dossier-foot p { max-width: none; margin: 0; }
.dossier-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  padding: 0 1.75rem 1.75rem;
}
.dossier-actions .note { font-size: 0.8125rem; color: var(--mute); }

/* =====================================================================================
   Footer + floating chat (same chrome as the corporate site)
   ===================================================================================== */
.site-footer { background: var(--ev900); color: rgba(250,248,242,0.75); padding-block: 3.25rem 2rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: 2.5rem; border-bottom: 1px solid rgba(222,202,142,0.18); }
.footer-logo { display: block; height: 2.4rem; width: auto; }
.site-footer .tag { color: var(--gold-300); margin-top: 0.9rem; font-size: 0.9375rem; font-weight: 500; }
.site-footer h4 { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,248,242,0.5); margin: 0 0 1rem; font-family: var(--sans); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9375rem; }
.site-footer a { color: rgba(250,248,242,0.85); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer .legal { padding-top: 1.75rem; font-size: 0.8125rem; color: rgba(250,248,242,0.58); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .legal a { color: rgba(250,248,242,0.7); }
.site-footer .legal a + a { margin-left: 1.25rem; }
.site-footer .statutory { margin: 0.9rem 0 0; font-size: 0.8125rem; color: rgba(250,248,242,0.55); font-variant-numeric: tabular-nums; cursor: pointer; }
.sample-note {
  margin: 1.75rem 0 0; padding: 1rem 1.25rem;
  background: var(--gold-100); border: 1px solid var(--gold-300); border-radius: var(--radius-card);
}
.sample-note p { margin: 0; color: var(--ink); font-size: 0.875rem; max-width: none; }

.wa-float {
  position: fixed; inset-block-end: 1.25rem; inset-inline-end: 1.25rem; z-index: 60;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ev700); color: var(--paper);
  box-shadow: 0 14px 30px -12px rgba(7, 39, 29, 0.6);
  transition: transform 0.25s var(--ease-out), background 0.2s;
}
.wa-float:hover { background: var(--ev500); transform: translateY(-2px); }
.wa-float svg { width: 1.6rem; height: 1.6rem; }

/* ---------------------------------------------------------------- reveal motion */
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  /* `minmax(0, 1fr)`, not `1fr`: a single auto-sized track takes its floor from the widest
     unbreakable thing inside it — a long product name here — and pushes the page sideways. */
  .catalog__grid { grid-template-columns: minmax(0, 1fr); }
  .facets { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  /* Two items and 372 px: the wordmark keeps the mark, the return link keeps its label,
     and the lines the header cannot afford step out — the host here, the wordmark's
     sub-line below (the hero says "Product catalogue" one line further down anyway). */
  .site-header .wrap { gap: 0.75rem; }
  .site-back { padding: 0.55rem 0.8rem; font-size: 0.875rem; white-space: nowrap; }
  .site-back__host { display: none; }
  .wordmark .sub { display: none; }
  .cat-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  /* On a phone the keyboard hint is noise inside the field, and the rail's groups start
     collapsed (app.js) so the results are one short scroll away. */
  .search__hint { display: none; }
  .rec__row { grid-template-columns: 1fr; }
  .rec__side { justify-content: space-between; }
  .rec__price { text-align: left; }
  .dossier-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .dossier-head, .dossier-fields { padding-inline: 1.25rem; }
  .dossier-media { margin-inline: 1.25rem; }
  .dossier-actions { padding-inline: 1.25rem; }
  .dossier-foot { margin-inline: 1.25rem; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 2rem; }
  .suggest__row { grid-template-columns: 1fr; }
  .suggest__go { grid-column: 1; grid-row: auto; margin-top: 0.5rem; }
  /* Stacked rows leave the class name little width: the level marker takes its own line. */
  .atc-path span { row-gap: 0.15rem; }
  .atc-path .sub { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- print */
@media print {
  .site-header, .wa-float, .facets, .search, .quick, .results__bar, .site-footer { display: none !important; }
  .dossier { box-shadow: none; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}
