:root {
  /* Style guide colors */
  --blue: #1D72B9;        /* Primary Blue: logo, headlines, accents */
  --blue-30: #BBD4EA;     /* Primary Blue 30 % tint: areas, backgrounds, info boxes */
  --text: #3B3B3B;        /* Dark Grey: body text, captions */
  --grey: #DADADA;        /* Light Grey: background boxes, rules */
  --grad-top: #80B9E5;    /* light-blue gradient, sampled from the style guide */
  --grad-bottom: #547DB2;

  /* Derived for the web (hover, small tints) */
  --blue-dark: #155A94;   /* hover, links on tinted boxes */
  --blue-10: #EAF2F9;     /* very light blue for diagram medium and table rows */
  --muted: #5E5E5E;       /* secondary text, still 6:1 on white */
  --paper: #FFFFFF;
  --on-blue: #FFFFFF;

  /* Type: Myriad Pro is the corporate face. Source Sans 3 (Adobe, open licence) is the
     self-hosted web stand-in; Myriad Pro is used when installed on the visitor's computer. */
  --font: "Source Sans 3", "Myriad Pro", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  --fs-h3: 1.2rem;
  --fs-h2: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.2vw, 3.6rem);

  /* Layout */
  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --section: clamp(3rem, 7vw, 5.5rem);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue-30); color: var(--text); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--fs-h1); color: var(--blue); letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: var(--fs-h2); color: var(--blue); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); color: var(--text); }
p, ul, ol, dl { margin: 0; }
p, li { max-width: var(--measure); }
small, .small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--text); max-width: 40ch; }
.num { font-variant-numeric: tabular-nums; }
sub, sup { line-height: 0; }

/* The short blue line: under headings only */
.rule-under::after, .section-head h2::after, .page-head h1::after {
  content: ""; display: block; width: 3.5rem; height: 3px; background: var(--blue); margin-top: 0.75rem;
}
/* Subheadline: bold, uppercase (style guide) – for short labels only */
.subhead { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--grey); }
.section-head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 2.25rem; max-width: 46rem; }
.section-head p { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: var(--on-blue); padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; color: var(--on-blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: var(--radius); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-dark); color: var(--on-blue); }
.btn-secondary { background: var(--paper); color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-10); color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--grey); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--blue); }
.brand img { height: 42px; width: auto; }
.brand-text { font-weight: 700; font-style: italic; font-size: 1.5rem; color: var(--blue); }
.brand:hover { color: var(--blue); }

.nav-toggle {
  display: none; font: 600 1rem var(--font); color: var(--blue); background: var(--paper);
  border: 1.5px solid var(--blue); border-radius: var(--radius); padding: 0.45rem 0.8rem; cursor: pointer;
}
.site-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.4rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--text); padding-block: 0.3rem; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.site-nav .btn { padding: 0.5rem 0.9rem; }
.site-nav .btn-primary, .site-nav .btn-primary:hover, .site-nav .btn-primary[aria-current="page"] { color: var(--on-blue); box-shadow: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .brand img { height: 36px; }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-block: 0.5rem 0.75rem; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding-block: 0.55rem; }
  .site-nav .btn { margin-top: 0.5rem; display: inline-flex; }
}
@media (min-width: 981px) and (max-width: 1099px) {
  .site-nav ul { gap: 0.25rem 1rem; }
  .site-nav a { font-size: 0.97rem; }
  .site-nav .btn { padding: 0.45rem 0.75rem; }
}
/* Without JavaScript the menu stays visible. */
.no-js .site-nav { display: block; }
.no-js .nav-toggle { display: none; }

/* ---------- Hero (front cover) ---------- */
.hero { --hero-pad: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; padding-block: var(--hero-pad); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); }
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; align-self: center; }
.hero-copy h1 { max-width: 14ch; }
.hero-visual { position: relative; display: flex; align-items: center; min-width: 0; padding-block: 1rem; }
/* Gradient and wave, bleeding to the right edge of the window */
.hero-bleed {
  position: absolute; z-index: 0; overflow: hidden;
  top: calc(-1 * var(--hero-pad)); bottom: calc(-1 * var(--hero-pad));
  left: 16%; right: calc(-1 * (max(0px, (100vw - 72rem) / 2) + var(--gutter)));
  background: linear-gradient(180deg, var(--grad-top), var(--grad-bottom));
}
.hero-bleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { padding: 1.25rem 0 0; }
  .hero-bleed { top: 0; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
}

/* Force recording card */
.recording {
  position: relative; z-index: 1; width: 100%; margin: 0;
  background: var(--paper); border-radius: var(--radius); padding: 1rem 1rem 0.85rem;
  box-shadow: 0 10px 30px rgba(23, 58, 99, 0.22);
}
.recording-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.recording-head strong { font-weight: 700; color: var(--text); }
.recording-head span { color: var(--muted); font-size: var(--fs-small); }
.recording svg { width: 100%; height: auto; display: block; overflow: visible; }
.recording figcaption { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 0.6rem; font-size: var(--fs-small); color: var(--muted); }
.recording figcaption b { color: var(--text); font-weight: 700; }
.tr-grid { stroke: #ECECEC; stroke-width: 1; }
.tr-axis { stroke: #9A9A9A; stroke-width: 1; }
.tr-label { fill: var(--muted); font: 400 12px var(--font); }
.tr-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tr-base { stroke: #8C8C8C; stroke-width: 1; stroke-dasharray: 3 4; }
.tr-stim { stroke: var(--text); stroke-width: 1.5; }
.tr-sweep { stroke: var(--blue); stroke-opacity: 0.45; stroke-width: 1; }

/* ---------- Chamber diagram ---------- */
.principle { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .principle { grid-template-columns: minmax(0, 1fr); } }
.diagram { margin: 0; min-width: 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 0.5rem; }
.dg-bath { fill: var(--blue-10); stroke: var(--blue-30); stroke-width: 1.5; }
.dg-surface { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.6; }
.dg-lid { fill: #F2F2F2; stroke: #9A9A9A; stroke-width: 1.5; }
.dg-wire { stroke: var(--text); stroke-width: 3; fill: none; stroke-linecap: round; }
.dg-spring { stroke: var(--text); stroke-width: 2; fill: none; stroke-linecap: round; }
.dg-holder { fill: var(--text); }
.dg-slice { fill: var(--blue); }
.dg-electrode { fill: #6E6E6E; }
.dg-magnet { fill: var(--text); }
.dg-sensor { fill: var(--paper); stroke: var(--text); stroke-width: 1.5; }
.dg-rocker { stroke: #9A9A9A; stroke-width: 1.5; fill: none; }
.dg-arrow { stroke: #8C8C8C; stroke-width: 1.5; fill: none; }
.dg-arrowhead { fill: #8C8C8C; }
.dg-leader { stroke: #9A9A9A; stroke-width: 1; }
.dg-key { fill: var(--paper); stroke: var(--blue); stroke-width: 1.5; }
.dg-key-text { fill: var(--blue); font: 700 14px var(--font); }
.dg-note { fill: var(--muted); font: 400 13.5px var(--font); }

.keyed { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.35rem; }
.keyed li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; }
.key {
  width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; line-height: 1;
}
.keyed h3 { font-size: 1.0625rem; margin-bottom: 0.2rem; }
.keyed p { color: var(--muted); }

/* ---------- Application areas ---------- */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 760px) { .areas { grid-template-columns: minmax(0, 1fr); } }
.area { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--grey); min-width: 0; }
.area h3 { font-size: 1.125rem; }
.area p { color: var(--muted); }
.area .refs { font-size: var(--fs-small); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 980px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .products { grid-template-columns: minmax(0, 1fr); } }
.product { display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; color: var(--text); min-width: 0; }
.product:hover { color: var(--text); }
.product h3 { color: var(--text); }
.product:hover h3 { color: var(--blue); }
.product p { color: var(--muted); font-size: 0.975rem; }

.media { margin: 0; background: var(--paper); border: 1px solid var(--grey); border-radius: var(--radius); overflow: hidden; }
.media img, .media video { width: 100%; height: 100%; object-fit: contain; }
.media video { height: auto; background: #F4F4F4; }
.media.ratio-4x3 { aspect-ratio: 4 / 3; max-width: 100%; }
.media.ratio-16x9 { aspect-ratio: 16 / 9; max-width: 100%; }
.media figcaption { padding: 0.5rem 0.75rem; font-size: var(--fs-small); color: var(--muted); border-top: 1px solid var(--grey); background: var(--paper); }
/* Shown when a photo or video file is not available (e.g. in the preview). */
.media-missing { display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--muted); font-size: var(--fs-small); height: 100%; min-height: 8rem; background: #F4F4F4; }

.product-block { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .product-block { grid-template-columns: minmax(0, 1fr); } }
.product-block .gallery { display: grid; gap: 1rem; min-width: 0; }
.product-block .gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-copy { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.product-copy h2::after { content: ""; display: block; width: 3.5rem; height: 3px; background: var(--blue); margin-top: 0.75rem; }
.ticks { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.ticks li::marker { color: var(--blue); }
.spec { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: 0.5rem 1.25rem; font-size: 0.975rem; border-top: 1px solid var(--grey); padding-top: 1rem; }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; }

.subnav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.975rem; padding-block: 1rem; border-bottom: 1px solid var(--grey); }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .wrap { display: flex; flex-direction: column; gap: 1rem; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); max-width: 22ch; }
.page-head .applications-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.applications-copy { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.applications-video { width: 100%; max-width: 21rem; }
@media (max-width: 760px) {
  .page-head .applications-intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .applications-video { justify-self: center; }
}

/* ---------- Publications ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  font: 600 0.9375rem var(--font); color: var(--text); background: var(--paper); cursor: pointer;
  border: 1.5px solid var(--grey); border-radius: 999px; padding: 0.35rem 0.85rem;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.pub-year { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--grey); }
.pub-year > h2 { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--blue); }
.pub-year .area-title { font-size: 1.3rem; color: var(--blue); }
@media (max-width: 640px) { .pub-year { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; } }
.pubs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.pub { display: flex; flex-direction: column; gap: 0.2rem; }
.pub a.pub-title { font-weight: 600; text-decoration: none; line-height: 1.35; color: var(--text); }
.pub a.pub-title:hover { color: var(--blue); text-decoration: underline; }
.pub .cite { color: var(--muted); font-size: 0.95rem; }
.pub .tags { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; font-size: 0.8rem; }
.pub .tags span { background: var(--blue-10); color: var(--blue-dark); border-radius: 3px; padding: 0.05rem 0.45rem; }
.pub-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.recent { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .recent { grid-template-columns: minmax(0, 1fr); } }
.recent li { border-top: 1px solid var(--grey); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.recent .pub-title { font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.35; }
.recent .pub-title:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Downloads ---------- */
.downloads { list-style: none; padding: 0; border-top: 1px solid var(--grey); }
.downloads li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--grey); flex-wrap: wrap; max-width: none; }
.downloads a { font-weight: 600; }
.downloads span { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Two-column text ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split h2::after { content: ""; display: block; width: 3.5rem; height: 3px; background: var(--blue); margin-top: 0.75rem; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 700px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { display: flex; flex-direction: column; gap: 0.35rem; border-top: 1px solid var(--grey); padding-top: 0.9rem; }
.person .role { color: var(--blue); font-weight: 600; }
/* Info box: 30 % tint (style guide) */
.notice { background: var(--blue-30); padding: 1.25rem 1.5rem; border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.5rem; }
.notice h2 { color: var(--text); }
.notice a { color: var(--blue-dark); }

/* Team photo: intentionally small (720 px source) */
.team-photo { margin: 0; max-width: 40rem; align-self: start; display: flex; flex-direction: column; gap: 0.5rem; }
.team-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.team-photo figcaption { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field .hint { color: var(--muted); font-size: var(--fs-small); }
input[type="text"], input[type="email"], select, textarea {
  font: 400 1rem/1.4 var(--font); color: var(--text); background: var(--paper);
  border: 1.5px solid var(--grey); border-radius: var(--radius); padding: 0.6rem 0.7rem; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
input[type="checkbox"] { accent-color: var(--blue); }
textarea { min-height: 8rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1rem; margin-top: 0.35rem; }
@media (max-width: 520px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.checks label, .check-label { display: flex; gap: 0.5rem; align-items: baseline; font-weight: 400; }
.form-status { grid-column: 1 / -1; font-size: 0.95rem; color: var(--muted); }
.form-status.is-error { color: #B3261E; }

.address { font-style: normal; display: flex; flex-direction: column; gap: 0.15rem; }
.copy-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-weight: 600; }
.copy-btn { font: 600 0.85rem var(--font); background: var(--paper); color: var(--blue); border: 1.5px solid var(--grey); border-radius: var(--radius); padding: 0.15rem 0.5rem; cursor: pointer; }
.copy-btn:hover { border-color: var(--blue); }

/* ---------- Legal pages ---------- */
.legal { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.legal h2 { font-size: 1.4rem; margin-top: 1.5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 0.75rem; }
.legal ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.lang-switch { display: flex; gap: 1rem; font-size: 0.975rem; }

/* ---------- CTA band: info area in 30 % tint ---------- */
.cta-band { background: var(--blue-30); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { color: var(--text); }
.cta-band p { color: var(--text); }
.cta-band a:not(.btn) { color: var(--blue-dark); }
.cta-band .actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Server message page (subscribe.php) ---------- */
.message-page { padding-block: var(--section); }
.message-page .wrap { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; margin-inline: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--grey); font-size: 0.95rem; color: var(--text); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 2.5rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.lockup { display: inline-flex; flex-direction: column; align-items: stretch; width: 12.75rem; max-width: 100%; gap: 0.15rem; align-self: flex-start; }
.lockup img { width: 100%; height: auto; }
.lockup span { width: 81%; margin-left: 14%; font-size: 0.65rem; line-height: 1.35; color: var(--text); letter-spacing: 0.01em; text-align: center; white-space: nowrap; }
.footer-base { border-top: 1px solid var(--grey); color: var(--muted); }
.footer-base .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-block: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* Additions use the existing corporate palette, type and spacing. */
.scheme-label { fill: var(--text); font: 400 17px var(--font); }
.section-compact { padding-top: 1rem; }
.application-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 3rem; }
.resource-card h2 { font-size: var(--fs-h3); color: var(--text); }
.resource-status { color: var(--blue-dark); font-size: var(--fs-small); }
.resource-card p:last-child { margin-top: auto; padding-top: 0.6rem; }
.faq-list { border-top: 1px solid var(--grey); }
.faq-list details { padding: 1.1rem 0; border-bottom: 1px solid var(--grey); }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq-list details p { margin-top: 0.75rem; color: var(--muted); }
.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; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .application-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
@media (max-width: 420px) { .spec { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } .spec dd { margin-bottom: 0.7rem; } }

/* Research access and the expanded catalogue, using the existing design. */
.evidence-band { border-bottom: 1px solid var(--grey); background: var(--blue-10); padding-block: 2rem; }
.evidence-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 2rem 3.5rem; }
.evidence-grid h2 { font-size: 1.5rem; }
.evidence-grid > .stack:last-child { align-items: flex-start; }
.catalogue-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
.catalogue-item { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; border-top: 1px solid var(--grey); padding-top: 1rem; }
.catalogue-item .btn-row { margin-top: auto; }
.catalogue-code { color: var(--muted); font-size: var(--fs-small); }
.catalogue-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.catalogue-table th, .catalogue-table td { text-align: left; padding: 0.7rem; border-bottom: 1px solid var(--grey); vertical-align: top; }
.catalogue-table th { background: var(--blue-10); font-weight: 600; }
.catalogue-table caption { text-align: left; font-weight: 600; padding-bottom: 0.65rem; }
.table-scroll { overflow-x: auto; }
.product-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; min-height: 12rem; padding: 1.5rem; background: var(--blue-10); color: var(--muted); text-align: center; }
.product-placeholder span { font-size: var(--fs-small); }
@media (max-width: 760px) { .evidence-grid, .catalogue-grid { grid-template-columns: minmax(0,1fr); } }

.catalogue-item > .product-placeholder { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
.table-hint { display: none; }
@media (max-width: 760px) { .table-hint { display: block; } }

.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.notice-spaced { margin-top: 2rem; }

/* Home: event teaser */
.news-teaser { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 1rem 2.5rem; align-items: center; background: var(--blue-10); border-radius: var(--radius); padding: 1.5rem clamp(1.25rem, 3vw, 2rem); }
.news-teaser h2 { font-size: 1.5rem; }
@media (max-width: 760px) { .news-teaser { grid-template-columns: minmax(0, 1fr); } }

/* Numbered workflow steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 1.1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.75rem; max-width: none; }
.steps li::before {
  content: counter(step); grid-row: 1 / span 2; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; line-height: 1;
}
.steps h3 { font-size: 1.0625rem; margin-bottom: 0.15rem; }
.steps p { color: var(--muted); }

/* Technical overview */
.spec-table th[scope="row"] { width: 13rem; }
@media (max-width: 640px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th[scope="row"] { width: auto; border-bottom: 0; padding-bottom: 0.25rem; }
  .spec-table td { padding-top: 0.35rem; }
}

/* Charts: inline SVG, colours from the corporate blue */
.chart { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-title { font-weight: 700; color: var(--text); font-size: 1.0625rem; line-height: 1.3; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; font-size: var(--fs-small); color: var(--text); }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.key-line { display: inline-block; width: 1.5rem; height: 0; border-top: 2px solid; }
.key-a { border-color: #155A94; }
.key-b { border-color: #4FA3E0; }
.ch-grid { stroke: #ECECEC; stroke-width: 1; }
.ch-axis { stroke: #A6A6A6; stroke-width: 1; }
.ch-ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.ch-tick, .ch-note { fill: var(--muted); font: 400 13px var(--font); }
.ch-lab { fill: var(--text); font: 600 13.5px var(--font); }
.ch-sig { fill: var(--text); font: 700 14px var(--font); }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-a { stroke: #155A94; }
.ch-b { stroke: #4FA3E0; }
.ch-dot { stroke: var(--paper); stroke-width: 2; }
.ch-a-dot { fill: #155A94; }
.ch-b-dot { fill: #4FA3E0; }
.ch-err { stroke: #155A94; stroke-width: 1.5; }
.ch-dim { stroke: var(--text); stroke-width: 1; }
.ch-stim { stroke: var(--text); stroke-width: 2; }
.chart circle:hover { stroke: var(--text); }
.chart-table summary { cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--blue); }
.chart-table .table-scroll { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 0.75rem; }
.chart-table table { width: auto; min-width: 14rem; font-size: var(--fs-small); }
.chart-table td, .chart-table th { padding: 0.35rem 0.7rem; }
.chart-wrap { margin-top: 2.5rem; }
.chart-wrap .chart { max-width: 48rem; }
@media (max-width: 560px) {
  .ch-tick, .ch-note { font-size: 20px; }
  .ch-lab { font-size: 17px; }
  .ch-sig { font-size: 18px; }
}

/* Data and analysis */
.analysis-row { margin-top: 2.5rem; align-items: start; }

/* Cardiac safety page */
.readouts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .readouts { grid-template-columns: minmax(0, 1fr); } }
.evidence-list { display: flex; flex-direction: column; gap: 2rem; }
.evidence-item { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--grey); padding-top: 1.25rem; align-items: start; }
.evidence-item.evidence-text { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .evidence-item { grid-template-columns: minmax(0, 1fr); } }

/* News and events */
.news-list { list-style: none; padding: 0; border-top: 1px solid var(--grey); }
.news-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.4rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--grey); max-width: none; }
.news-item h3 { margin-bottom: 0.1rem; }
.news-date { color: var(--blue-dark); font-weight: 600; }
@media (max-width: 640px) { .news-item { grid-template-columns: minmax(0, 1fr); } }

/* About: small founder portraits and job advert */
.portrait { width: 120px; height: 150px; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.4rem; }
#careers h2 { font-size: 1.35rem; }
.job { background: var(--paper); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.job h3 { color: var(--blue-dark); }

/* Customer area */
.login { display: flex; flex-direction: column; gap: 1rem; max-width: 24rem; }
.login input[type="password"], .login input[type="text"] { font: 400 1rem/1.4 var(--font); color: var(--text); background: var(--paper); border: 1.5px solid var(--grey); border-radius: var(--radius); padding: 0.6rem 0.7rem; width: 100%; }
.login input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.login .btn { align-self: flex-start; }

/* Footer base text may wrap */
.footer-base .wrap > span:first-child { max-width: 46rem; }
.ch-guide { stroke: #B5B5B5; stroke-width: 1; stroke-dasharray: 2 3; }
.ch-dim-end { stroke: var(--text); stroke-width: 1; }
.notice a.btn-primary, .notice a.btn-primary:hover { color: var(--on-blue); }
.notice a.btn-secondary { color: var(--blue); }
.media.media-captioned img { height: auto; }
