/* Page-specific styles. Added by the page tasks; shared components live in components.css. */

/* ---------- Language chooser (/) and 404: one ruled column per language ---------- */
.root-chooser h1, .not-found h1 { margin-bottom: var(--space-7); }
.root-languages, .not-found__list { display: grid; gap: var(--space-6); }
.root-languages > li, .not-found__list > section {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  justify-items: start;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-strong);
}
.not-found__list h2 { font-size: var(--text-h3); line-height: var(--leading-heading); letter-spacing: var(--tracking-h3); }
.root-languages p, .not-found__list p { color: var(--color-text-muted); }
.root-languages .btn, .not-found__list .btn { margin-top: var(--space-2); }
@media (min-width: 900px) {
  .root-languages, .not-found__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Shared catalogue pieces: reused by the catalogue, category and product pages ---------- */

/* Image mat: a fixed frame that shows any image whole, centred and never enlarged. Give the
   frame an aspect-ratio or a size; --mat-pad is the margin around the image. */
.media-mat {
  --mat-pad: var(--space-3);
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt);
  border: var(--border);
  border-radius: var(--radius);
}
.media-mat > img, .product-card__media > img {
  position: absolute;
  top: var(--mat-pad);
  left: var(--mat-pad);
  width: calc(100% - 2 * var(--mat-pad));
  height: calc(100% - 2 * var(--mat-pad));
  max-width: none;
  object-fit: scale-down;
}

/* Product grid: 2 columns on phones, 3 from 900px, 4 from 1200px. */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 640px) { .product-grid { gap: var(--space-5); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Product card (extends .card) */
.product-card { padding: 0; gap: 0; overflow: hidden; }
.product-card__media {
  --mat-pad: var(--space-3);
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-alt);
  border-bottom: var(--border);
}
.product-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-2); padding: var(--space-3); }
.product-card__category {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
/* Long compound words carry soft hyphens (common.hyphenation). They are used only where the
   column can be too narrow for the whole word; not in the wide two-column grid (640–899px). */
.product-card__title { font-size: 0.9375rem; hyphens: manual; overflow-wrap: break-word; text-wrap: wrap; }
.product-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}
/* Dot-separated items; the clip hides the dot of whichever item starts a line. */
.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
  margin-left: -1rem;
  padding-top: var(--space-2);
  clip-path: inset(0 0 0 1rem);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.5;
}
.product-card__meta li { position: relative; padding-left: 1rem; }
.product-card__meta li::before { content: "\00B7"; position: absolute; left: 0; width: 1rem; text-align: center; color: var(--color-text-muted); }
.product-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-1);
  padding-top: var(--space-3);
  border-top: var(--border);
}
.product-card__price { font-family: var(--font-heading); font-size: var(--text-md); font-weight: 600; line-height: 1.2; color: var(--color-navy); }
.product-card__cta { font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.product-card__cta::after { content: " \2192"; font-weight: 500; }
.product-card:hover .product-card__cta { color: var(--color-action); }
@media (min-width: 640px) {
  .product-card__media { --mat-pad: var(--space-4); }
  .product-card__body { padding: var(--space-5); }
  .product-card__category { font-size: var(--text-xs); }
  .product-card__title { font-size: var(--text-h4); }
  .product-card__summary { display: block; overflow: visible; }
  .product-card__meta { padding-top: var(--space-3); }
}

@media (min-width: 640px) and (max-width: 899.98px) { .product-card__title { hyphens: none; } }
/* English titles need a break only on small phones. */
@media (min-width: 370px) { :lang(en) .product-card__title { hyphens: none; } }
/* On the narrowest phones more words are too long; there the browser may hyphenate by itself. */
@media (max-width: 359.98px) { .product-card__title { hyphens: auto; } }

/* Closing tile of a product grid. --span-2/3/4 = cells left in the last row at 2, 3 and 4 columns. */
.product-grid__more {
  grid-column: span var(--span-2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 9rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  color: var(--color-navy);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}
.product-grid__more-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.product-grid__more-count::after { content: "\2192"; font-size: var(--text-lg); font-weight: 500; line-height: 1; letter-spacing: 0; color: var(--color-navy); transition: color var(--transition); }
.product-grid__more-label { font-family: var(--font-heading); font-size: var(--text-h3); font-weight: 600; line-height: var(--leading-heading); letter-spacing: var(--tracking-h3); hyphens: auto; }
.product-grid__more:hover { background: var(--color-navy); color: var(--color-white); }
.product-grid__more:hover .product-grid__more-count { color: var(--color-on-navy-muted); }
.product-grid__more:hover .product-grid__more-count::after { color: var(--color-white); }
.product-grid__more:focus-visible { border-radius: var(--radius-lg); }
@media (min-width: 640px) { .product-grid__more { padding: var(--space-5); } }
@media (min-width: 900px) { .product-grid__more { grid-column: span var(--span-3, 1); } }
@media (min-width: 1200px) { .product-grid__more { grid-column: span var(--span-4, 1); } }

/* Button for navy surfaces */
.btn--inverse { background: var(--color-white); border-color: var(--color-white); color: var(--color-navy); }
.btn--inverse:hover { background: var(--color-action); border-color: var(--color-action); color: var(--color-white); }

/* Heading beside content: 5 / 7 columns from 900px. */
.split { display: grid; gap: var(--space-6); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
}

/* Term / description rows separated by hairlines. */
.ruled-list__row { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-top: var(--border); }
.ruled-list__row:first-child { border-top-color: var(--color-border-strong); }
.ruled-list__row:last-child { border-bottom: var(--border); }
.ruled-list dt { font-family: var(--font-heading); font-size: var(--text-h4); font-weight: 600; line-height: 1.3; }
.ruled-list dd { color: var(--color-text-muted); }
@media (min-width: 640px) {
  .ruled-list__row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-6); align-items: baseline; }
}

/* One bordered panel divided into equal columns. */
.panel-columns { display: grid; background: var(--color-surface); border: var(--border); border-radius: var(--radius-lg); }
.panel-columns > li { padding: var(--space-5); }
.panel-columns > li + li { border-top: var(--border); }
.panel-columns h3 { margin-bottom: var(--space-3); }
.panel-columns p { color: var(--color-text-muted); }
@media (min-width: 900px) {
  .panel-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-columns > li { padding: var(--space-6); }
  .panel-columns > li + li { border-top: 0; border-left: var(--border); }
}

/* Navy call-to-action panel */
.cta-panel { display: grid; gap: var(--space-6); justify-items: start; padding: var(--space-6) var(--space-5); background: var(--color-navy); border-radius: var(--radius-lg); color: var(--color-on-navy); }
.cta-panel h2 { max-width: 16em; color: var(--color-on-navy); }
.cta-panel p { max-width: 36rem; margin-top: var(--space-4); font-size: var(--text-md); color: var(--color-on-navy-muted); }
.cta-panel :focus-visible { outline-color: var(--color-white); }
/* A long label wraps inside the panel instead of pushing past its edge. */
.cta-panel .btn { max-width: 100%; padding-block: var(--space-3); white-space: normal; text-align: center; }
@media (min-width: 900px) {
  .cta-panel { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; padding: var(--space-8); }
}

/* ---------- Home ---------- */
.split > h2, .section__header--stack > h2 { max-width: 18em; }

/* Hero: text left, overlapping sample pages right. */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero__inner { display: grid; gap: var(--space-7); }
.hero__text h1 { max-width: 13em; margin-bottom: var(--space-5); }
.hero__text .lead { margin-bottom: var(--space-6); }
/* Dark stage: navy ground, white type, the constellation as the one bright thing. */
.hero--dark { background: var(--color-navy); color: var(--color-white); overflow: hidden; }
.hero--dark h1 { color: var(--color-white); }
.hero--dark .lead { color: rgb(255 255 255 / 0.78); }
.hero--dark .eyebrow { color: rgb(255 255 255 / 0.72); }
.hero--dark .btn--secondary { background: transparent; border-color: rgb(255 255 255 / 0.55); color: var(--color-white); }
.hero--dark .btn--secondary:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-navy); }
.hero--dark :focus-visible { outline-color: var(--color-white); }
.hero__visual { position: relative; aspect-ratio: 10 / 9; max-height: 70vh; margin-inline: auto; width: 100%; }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(79 70 229 / 0.28), rgb(79 70 229 / 0));
}
.hero__still, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The padding matches PADDING in hero-particles.js, so still and canvas line up. */
.hero__still { object-fit: contain; padding: 8%; }
.hero__visual.is-live .hero__still { visibility: hidden; }
@media (min-width: 900px) {
  .hero { padding-block: var(--space-8) var(--space-9); }
  .hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; }
}

/* Category index: one ruled row per category. */
.category-index { border-top: 1px solid var(--color-border-strong); }
.category-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--space-1) var(--space-4);
  align-items: start;
  padding-block: var(--space-5);
  border-bottom: var(--border);
}
.category-row__media { --mat-pad: 6px; grid-row: 1 / span 3; width: 72px; aspect-ratio: 1; }
.category-row__name { font-size: var(--text-h4); line-height: 1.3; letter-spacing: -0.005em; }
.category-row__link { text-decoration: none; }
.category-row__link::after { content: ""; position: absolute; inset: 0; }
/* The row shows the focus ring; browsers without :has() keep the ring on the link itself. */
@supports selector(:has(a)) { .category-row__link:focus-visible { outline: none; } }
.category-row:has(.category-row__link:focus-visible) { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: 4px; }
.category-row__text { font-size: var(--text-sm); color: var(--color-text-muted); }
.category-row__count { margin-top: var(--space-1); font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.category-row:hover .category-row__link { color: var(--color-action); }
@media (min-width: 900px) {
  .category-row { grid-template-columns: 96px minmax(0, 4fr) minmax(0, 6fr) 8rem 1.5rem; gap: var(--space-6); align-items: center; }
  .category-row__media { --mat-pad: var(--space-2); grid-row: auto; width: 96px; }
  .category-row__name { font-size: var(--text-h3); line-height: var(--leading-heading); letter-spacing: var(--tracking-h3); }
  .category-row__text { font-size: var(--text-base); }
  .category-row__count { margin-top: 0; text-align: right; white-space: nowrap; }
  .category-row::after { content: "\2192"; font-weight: 500; text-align: right; transition: transform var(--transition), color var(--transition); }
  .category-row:hover::after { color: var(--color-action); transform: translateX(3px); }
}

/* Steps: numbered columns under a navy rule. */
.steps { display: grid; gap: var(--space-6); }
.steps__item { padding-top: var(--space-5); border-top: 1px solid var(--color-border-strong); }
.steps__number { display: block; margin-bottom: var(--space-5); font-family: var(--font-heading); font-size: var(--text-h2); font-weight: 600; line-height: 1; letter-spacing: var(--tracking-h2); }
.steps__item h3 { margin-bottom: var(--space-2); }
.steps__item p { max-width: 32ch; color: var(--color-text-muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .steps__number { margin-bottom: var(--space-7); }
}

/* Why: photograph beside the statement. */
.why { display: grid; gap: var(--space-6); }
.why__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border: var(--border); border-radius: var(--radius-lg); }
.why__text h2 { margin-bottom: var(--space-5); }
.why__points { display: grid; column-gap: var(--space-6); margin-top: var(--space-6); border-bottom: var(--border); }
.why__points li { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-4); border-top: var(--border); font-weight: 500; }
.why__points li::before { content: ""; flex: none; width: 12px; height: 2px; background: var(--color-lime); }
@media (min-width: 640px) { .why__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .why { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: center; }
  .why--text { grid-template-columns: minmax(0, 1fr); }
}

/* Sample pages: mats of equal height; landscape pages take two columns. */
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
.preview-grid__item--wide { grid-column: span 2; }
.preview { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; text-decoration: none; }
.preview__frame { flex: 1; aspect-ratio: 3 / 4; background: var(--color-surface); transition: border-color var(--transition); }
.preview-grid__item--wide .preview__frame { aspect-ratio: 3 / 2; }
.preview__caption { font-size: var(--text-sm); font-weight: 500; line-height: 1.4; }
.preview:hover .preview__frame { border-color: var(--color-border-strong); }
@media (min-width: 900px) {
  .preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
  .preview__frame { --mat-pad: var(--space-4); }
}

/* ---------- Inner pages: breadcrumbs, then a left-aligned head ---------- */
.page { padding-bottom: var(--section-y); }
.page-head { display: grid; gap: var(--space-4); padding-block: var(--space-4) var(--space-7); }
.page-head h1 { max-width: 16em; }
.page-head .eyebrow { margin-bottom: 0; }
@media (min-width: 900px) { .page-head { padding-block: var(--space-5) var(--space-8); } }

/* ---------- Form controls ---------- */
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field__label {
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
/* The control's edge is cool gray, not the hairline colour: it has to be visible on white (3:1). */
.field__control {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius);
  font-size: var(--text-base);
  line-height: 1.4;
  appearance: none;
  transition: border-color var(--transition);
}
.field__control:hover, .field__control:focus { border-color: var(--color-border-strong); }
.field__control:focus-visible { border-radius: var(--radius); }
.field__control::placeholder { color: var(--color-text-muted); opacity: 1; }
select.field__control {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230B1F46' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  cursor: pointer;
  text-overflow: ellipsis;
}
input[type="search"].field__control {
  padding-left: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364748B' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.25'/%3E%3Cpath d='m12 12 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left var(--space-4) center;
}
.field--inline { grid-auto-flow: column; align-items: center; gap: var(--space-3); }
.field--inline .field__control { width: auto; min-height: 40px; font-size: var(--text-sm); font-weight: 500; }

/* Option rows (radio, checkbox or link): label left, product count right, hairlines between. */
.choice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding-block: var(--space-2);
  border-top: var(--border);
  font-size: var(--text-sm);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--color-navy); cursor: pointer; }
.choice__label { flex: 1; min-width: 0; transition: color var(--transition); }
.choice__count { font-size: var(--text-xs); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.choice:hover .choice__label { color: var(--color-action); }
.choice:has(input:checked) .choice__label { font-weight: 600; }

/* ---------- All Products: filter sidebar beside the result grid ---------- */
.catalogue { display: grid; gap: var(--space-5); }
.catalogue__results { min-width: 0; }

.filters { display: grid; gap: var(--space-4); }
.filters__panel { display: grid; gap: var(--space-6); padding-top: var(--space-2); }
.filters__group { min-width: 0; padding: 0; border: 0; }
.filters__group > legend { margin-bottom: var(--space-3); }
.filters__group > legend + .choice, .catalogue__browse li:first-child > .choice { border-top-color: var(--color-border-strong); }
.filters__group > .choice:last-child, .catalogue__browse li:last-child > .choice { border-bottom: var(--border); }
.filters__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
}
.filters__toggle:focus-visible { border-radius: var(--radius); }
.filters__toggle::after { content: "+"; font-size: var(--text-lg); font-weight: 500; line-height: 1; }
.filters__toggle[aria-expanded="true"]::after { content: "\2212"; }
.filters__toggle[aria-expanded="false"] + .filters__panel { display: none; }
.filters__clear {
  justify-self: start;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}
.filters__clear:hover { color: var(--color-action); }

.catalogue__browse ul { margin-top: var(--space-3); padding: 0; list-style: none; }
/* The filter form and the sort control are shown only once catalog-filter.js has set them up
   (.is-filterable). When scripts do not run (no js-nav on <html>) or the module fails
   (data-module-failed), the sidebar lists the categories as links instead. While the module is
   still loading neither is shown; on phones the sidebar keeps the height the closed form will
   take, so the grid below does not move. */
.catalogue:not(.is-filterable) .filters, .catalogue:not(.is-filterable) .catalogue__sort { display: none; }
.catalogue.is-filterable .catalogue__browse, html.js-nav .catalogue:not([data-module-failed]) .catalogue__browse { display: none; }
@media (max-width: 899px) {
  html.js-nav .catalogue:not([data-module-failed]) .catalogue__sidebar { min-height: 8.5625rem; }
}

.catalogue__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  min-height: 56px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-strong);
}
.catalogue__count { font-family: var(--font-heading); font-size: var(--text-h4); font-weight: 600; line-height: 1.3; }

/* On phones the sort label is kept for assistive technology only, so the count and the control share a line. */
@media (max-width: 639px) {
  .catalogue__sort .field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.catalogue__state {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  padding: var(--space-6) var(--space-5);
  background: var(--color-surface-alt);
  border: var(--border);
  border-radius: var(--radius-lg);
}
.catalogue__state p { max-width: 48ch; color: var(--color-text-muted); }
.catalogue__state .btn { margin-top: var(--space-3); }
.catalogue__state[data-catalogue-error] { margin-bottom: var(--space-5); }

@media (min-width: 900px) {
  .catalogue { grid-template-columns: 232px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
  .filters { gap: var(--space-6); }
  .filters__panel { padding-top: 0; }
  .filters__toggle { display: none; }
  .filters__toggle[aria-expanded="false"] + .filters__panel { display: grid; }
  .catalogue .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue__state { padding: var(--space-7) var(--space-6); }
}
@media (min-width: 1200px) {
  .catalogue { grid-template-columns: 264px minmax(0, 1fr); gap: var(--space-7); }
  .catalogue .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Categories index ---------- */
.category-grid { display: grid; gap: var(--space-5); }
.category-grid .product-grid__more { grid-column: auto; }
.category-card { padding: 0; gap: 0; overflow: hidden; }
.category-card__media { --mat-pad: var(--space-4); aspect-ratio: 3 / 2; border-width: 0 0 1px; border-radius: 0; }
.category-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
.category-card__title { font-size: var(--text-h3); line-height: var(--leading-heading); letter-spacing: var(--tracking-h3); hyphens: auto; }
.category-card__text { color: var(--color-text-muted); }
.category-card__count, .category-list__count {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.category-card__count { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--space-4); border-top: var(--border); }
.category-card__count::after { content: "\2192"; font-size: var(--text-md); font-weight: 500; line-height: 1; letter-spacing: 0; color: var(--color-navy); transition: color var(--transition), transform var(--transition); }
.category-card:hover .category-card__count::after { color: var(--color-action); transform: translateX(3px); }
@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid .product-grid__more { grid-column: span var(--span-2, 1); }
}
@media (min-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .category-grid .product-grid__more { grid-column: span var(--span-3, 1); }
  .category-card__body { padding: var(--space-6); }
}

/* ---------- Category page ---------- */
.category-head__text { display: grid; gap: var(--space-4); }
.category-head__intro { max-width: 60ch; margin-top: var(--space-3); padding-top: var(--space-4); border-top: var(--border); font-size: var(--text-sm); color: var(--color-text-muted); }
.category-head__media { --mat-pad: var(--space-4); aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .category-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; }
  .category-head__media { --mat-pad: var(--space-5); }
}
.category-list__head { display: grid; gap: var(--space-3); justify-items: start; }
.category-list__head .btn { margin-top: var(--space-4); }
/* Two columns at every width, for a grid that sits in the wide column of .split. */
.product-grid.product-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) {
  .product-grid--pair > :only-child { grid-column: 1 / -1; }
}

/* ---------- Product page ---------- */
/* Gallery and long description on the left; title and purchase panel on the right. In the
   markup the right column comes second, so on phones it follows the gallery directly. */
.product-top { display: grid; gap: var(--space-6); padding-bottom: var(--section-y); }
.product-aside { display: grid; gap: var(--space-5); align-content: start; min-width: 0; }
.product-body { display: grid; gap: var(--space-7); min-width: 0; }
@media (min-width: 900px) {
  .product-top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "gallery aside" "body aside";
    gap: var(--space-8) var(--space-7);
    align-items: start;
  }
  .product-gallery { grid-area: gallery; }
  .product-body { grid-area: body; }
  /* Full height of both rows, so the panel has room to travel. */
  .product-aside { grid-area: aside; align-self: stretch; grid-template-rows: auto 1fr; gap: var(--space-6); }
}
@media (min-width: 1200px) { .product-top { column-gap: var(--space-8); } }
/* The panel follows the reader. In a window too short to show all of it, it scrolls inside
   its own frame, so its last rows stay reachable; in a very short window it does not stick. */
@media (min-width: 900px) and (min-height: 600px) {
  .product-panel {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 2 * var(--space-5));
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* Gallery: the cover on a mat, the other images as thumbnails. Every image links to its full file. */
.product-gallery { display: grid; gap: var(--space-3); min-width: 0; }
.product-gallery a, .preview[data-lightbox] { cursor: zoom-in; }
.product-gallery__main { --mat-pad: var(--space-4); display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); transition: border-color var(--transition); }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.product-gallery__thumb { --mat-pad: 6px; display: block; aspect-ratio: 1; background: var(--color-surface); transition: border-color var(--transition); }
.product-gallery a:hover { border-color: var(--color-border-strong); }
.product-gallery__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(11 31 70 / 0.78);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
}
@media (min-width: 640px) {
  .product-gallery__main { --mat-pad: var(--space-5); }
  .product-gallery__thumbs { gap: var(--space-3); }
  .product-gallery__thumb { --mat-pad: var(--space-2); }
}

/* Title block */
/* minmax(0, 1fr): a long title word wraps inside the column instead of widening the page. */
.product-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.product-head__category { font-size: var(--text-xs); font-weight: 600; line-height: 1.4; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.product-head__category a { text-decoration: none; }
.product-head__category a:hover { text-decoration: underline; }
.product-head h1 { font-size: clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem); line-height: 1.12; letter-spacing: var(--tracking-h2); hyphens: manual; overflow-wrap: break-word; }
/* Where the title column fits the longest title word, soft hyphens stay unused. */
@media (min-width: 480px) and (max-width: 899.98px) { .product-head h1 { hyphens: none; } }
:lang(en) .product-head h1 { hyphens: none; }
.product-head__tagline { font-size: var(--text-md); line-height: 1.55; color: var(--color-text-muted); }
/* Shown when the material is in another language than the page. */
.product-head__notice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.4;
}
.product-head__notice::before { content: ""; flex: none; width: 12px; height: 2px; background: var(--color-lime); }

/* Purchase panel */
.product-panel { display: grid; gap: var(--space-3); padding: var(--space-5); background: var(--color-surface); border: var(--border); border-radius: var(--radius-lg); }
.product-panel__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.product-panel__amount { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: var(--tracking-h2); }
.product-panel__price-note { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }
.product-panel__policies { font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.product-panel__policies a { color: var(--color-navy); }
.product-panel__policies a:hover { color: var(--color-action); }
.product-panel__specs-title {
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.product-specs { font-size: 0.8125rem; line-height: 1.5; }
.product-specs__row { display: grid; gap: 2px; padding-block: 10px; border-top: var(--border); }
.product-specs__row:first-child { border-top-color: var(--color-border-strong); }
.product-specs__row:last-child { padding-bottom: 0; }
.product-specs dt { font-weight: 600; }
.product-specs dd { color: var(--color-text-muted); }
@media (min-width: 400px) {
  .product-specs__row { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-4); }
}

/* Description blocks in the long column */
.product-block { padding-top: var(--space-6); border-top: var(--border); }
.product-block:first-child { border-top-color: var(--color-border-strong); }
.product-block > h2 { margin-bottom: var(--space-5); font-size: var(--text-h3); line-height: var(--leading-heading); letter-spacing: var(--tracking-h3); }
.product-block .ruled-list__row:first-child { border-top-color: var(--color-border); }

/* Plain list with a lime tick and hairlines */
.tick-list { border-bottom: var(--border); }
.tick-list li { position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-6); border-top: var(--border); }
.tick-list li::before { content: ""; position: absolute; top: calc(var(--space-3) + 0.8em - 1px); left: 0; width: 12px; height: 2px; background: var(--color-lime); }
.split > .tick-list li { padding-block: var(--space-4); font-weight: 500; }
.split > .tick-list li::before { top: calc(var(--space-4) + 0.8em - 1px); }
.split > .tick-list li:first-child { border-top-color: var(--color-border-strong); }

/* Sample pages: a short set sits beside its heading. */
.product-preview__head { display: grid; gap: var(--space-4); }
.product-preview__head p { max-width: 40ch; font-size: var(--text-md); color: var(--color-text-muted); }
@media (min-width: 900px) {
  .preview-grid--few, .preview-grid--landscape { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-grid--few { gap: var(--space-5); }
  .preview-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* In a set of landscape pages every tile is one column wide. */
  .preview-grid--landscape .preview-grid__item--wide { grid-column: auto; }
}

/* Access text of this product, under the three steps */
.product-access-note { display: grid; gap: var(--space-2); margin-top: var(--space-7); padding: var(--space-5); background: var(--color-surface); border: var(--border); border-radius: var(--radius-lg); }
.product-access-note h3 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1.4; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.product-access-note p { max-width: var(--measure); }
@media (min-width: 900px) {
  .product-access-note { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-6); align-items: baseline; padding: var(--space-6); }
}

/* Questions as native disclosure rows */
.faq-list { border-top: 1px solid var(--color-border-strong); }
.faq-list__item { border-bottom: var(--border); }
.faq-list__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-list__item summary::-webkit-details-marker { display: none; }
.faq-list__item summary::after { content: "+"; flex: none; font-family: var(--font-body); font-size: var(--text-lg); font-weight: 500; line-height: 1; }
.faq-list__item[open] summary::after { content: "\2212"; }
.faq-list__item summary:hover { color: var(--color-action); }
.faq-list__item p { max-width: 60ch; padding-bottom: var(--space-5); color: var(--color-text-muted); }

/* ---------- Lightbox (lightbox.js): a full-window dialog on navy ---------- */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-navy);
  color: var(--color-on-navy);
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: transparent; }
.lightbox :focus-visible { outline-color: var(--color-white); }
.lightbox__bar { display: flex; flex: none; align-items: center; gap: var(--space-4); min-height: 72px; padding-inline: var(--space-4); }
.lightbox__counter { font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border-on-navy);
  border-radius: var(--radius);
  color: var(--color-white);
  transition: background-color var(--transition), color var(--transition);
}
.lightbox__btn:hover { background: var(--color-white); color: var(--color-navy); }
.lightbox__btn:focus-visible { border-radius: var(--radius); }
.lightbox__close { margin-left: auto; }
.lightbox__stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "figure figure" "previous next";
  gap: var(--space-3);
  min-height: 0;
  padding: 0 var(--space-4) var(--space-4);
}
.lightbox__figure { grid-area: figure; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); min-width: 0; min-height: 0; }
.lightbox__image { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 15rem); max-height: calc(100dvh - 15rem); background: var(--color-white); border-radius: var(--radius); }
.lightbox__caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 64ch;
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: center;
  color: var(--color-on-navy-muted);
}
.lightbox__nav--previous { grid-area: previous; justify-self: start; }
.lightbox__nav--next { grid-area: next; justify-self: end; }
@media (min-width: 900px) {
  .lightbox__bar { padding-inline: var(--space-5); }
  .lightbox__stage {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "previous figure next";
    align-items: center;
    gap: var(--space-5);
    padding: 0 var(--space-5) var(--space-5);
  }
  .lightbox__image { max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem); }
}

/* ---------- Company details (About, Contact): the legal entity as label / value rows ---------- */
.company-details { padding-inline: var(--space-4); background: var(--color-surface); border: var(--border); border-radius: var(--radius-lg); }
.company-details__row { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-top: var(--border); }
.company-details__row:first-child { border-top: 0; }
.company-details dt { font-size: var(--text-xs); font-weight: 600; line-height: 1.4; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.company-details dd { font-size: 0.9375rem; font-weight: 500; overflow-wrap: anywhere; }
.company-details address { font-style: normal; }
@media (min-width: 640px) {
  .company-details { padding-inline: var(--space-6); }
  .company-details__row { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-5); align-items: baseline; padding-block: var(--space-5); }
  .company-details--stacked { padding-inline: var(--space-5); }
  .company-details--stacked .company-details__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding-block: var(--space-4); }
}
/* The contact page puts the box in a narrow side column; the email address stays on one line. */
@media (min-width: 900px) and (max-width: 1023.98px) { .company-details--stacked dd a { font-size: 0.8125rem; } }
/* Beside its section heading (900–1199px) the box is too narrow for label and value side by side. */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .company-details__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding-block: var(--space-4); }
}
.company-intro { display: grid; gap: var(--space-4); }
.company-intro p { max-width: 44ch; }
.company-intro__note { padding-top: var(--space-4); border-top: var(--border); font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- About: four ruled rows, heading left and text right ---------- */
.about-rows { border-bottom: var(--border); }
.about-row { display: grid; gap: var(--space-3); padding-block: var(--space-6); border-top: var(--border); }
.about-row:first-child { border-top-color: var(--color-border-strong); }
.about-row h2 { font-size: var(--text-h3); line-height: var(--leading-heading); letter-spacing: var(--tracking-h3); }
.about-row__index { display: block; margin-bottom: var(--space-3); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1.4; letter-spacing: var(--tracking-label); color: var(--color-text-muted); }
.about-row p { max-width: 60ch; font-size: var(--text-md); color: var(--color-text-muted); }
@media (min-width: 900px) {
  .about-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); padding-block: var(--space-7); }
  .about-row p { padding-top: calc(var(--text-xs) * 1.4 + var(--space-3)); }
}

/* ---------- Contact: form beside the company details ---------- */
.contact-email { display: grid; gap: var(--space-1); justify-items: start; margin-top: var(--space-3); padding-top: var(--space-5); border-top: var(--border); }
.contact-email a { font-family: var(--font-heading); font-size: clamp(0.9375rem, 4.1vw, 1.25rem); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.contact { display: grid; gap: var(--space-7); }
.contact__form { padding: var(--space-5); background: var(--color-surface); border: var(--border); border-radius: var(--radius-lg); }
.contact__form h2, .contact__company h2 { font-size: var(--text-h3); line-height: var(--leading-heading); letter-spacing: var(--tracking-h3); }
.contact__required { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.contact__company { display: grid; gap: var(--space-4); }
.contact__company > p { color: var(--color-text-muted); }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: start; }
  .contact__form { padding: var(--space-6); }
  .contact__company { padding-top: var(--space-6); }
}

.contact-form { display: grid; gap: var(--space-5); align-items: start; margin-top: var(--space-6); }
@media (min-width: 640px) {
  .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form > .field--wide { grid-column: 1 / -1; }
}
textarea.field__control { min-height: 10rem; padding-block: var(--space-3); line-height: 1.5; resize: vertical; }
/* The palette has no alarm colour: an invalid control gets a navy edge twice as heavy, and its
   message a navy rule, so the state never depends on colour alone. */
.field__control[aria-invalid="true"] { border-color: var(--color-navy); box-shadow: inset 0 0 0 1px var(--color-navy); }
.field__error { padding-left: var(--space-3); border-left: 2px solid var(--color-navy); font-size: var(--text-sm); font-weight: 500; line-height: 1.4; }
.contact-form__note { max-width: 60ch; font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-form__actions + .contact-form__note { margin-top: calc(var(--space-2) * -1); }
.form-status { padding: var(--space-4); background: var(--color-surface-alt); border: var(--border); border-radius: var(--radius); font-size: var(--text-sm); overflow-wrap: anywhere; }
/* Empty, the live region stays rendered (so later text is announced) but takes no room and is not seen. */
.form-status:empty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
.form-status.is-error { border-color: var(--color-navy); font-weight: 500; }

/* ---------- FAQ: questions beside a short pointer to support ---------- */
.faq-layout { display: grid; gap: var(--space-7); }
.faq-help { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-5); background: var(--color-surface-alt); border: var(--border); border-radius: var(--radius-lg); }
.faq-help h2 { font-size: var(--text-h3); line-height: var(--leading-heading); letter-spacing: var(--tracking-h3); }
.faq-help p { color: var(--color-text-muted); }
.faq-help .btn { margin-top: var(--space-3); }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8); align-items: start; }
  .faq-help { padding: var(--space-6); }
}

/* ---------- Legal documents: contents beside the text from 900px ---------- */
/* Document titles are single long words in German and Dutch: smaller on phones, and allowed to break. */
.legal-head h1 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 639.98px) { .legal-head h1 { font-size: var(--text-h2); } }
.legal-updated { font-size: var(--text-sm); color: var(--color-text-muted); }
.legal-layout { display: grid; gap: var(--space-7); }
.legal-toc { padding: var(--space-5); background: var(--color-surface-alt); border: var(--border); border-radius: var(--radius-lg); }
.legal-toc h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1.4; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.legal-toc ol { margin-top: var(--space-3); padding-left: 1.75em; font-size: var(--text-sm); line-height: 1.45; }
.legal-toc li + li { margin-top: var(--space-2); }
.legal-toc li::marker { color: var(--color-text-muted); }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
/* 68ch of Inter holds about 86 characters; legal text reads better at about 72. */
.legal-doc { max-width: 36rem; overflow-wrap: break-word; }
.legal-doc > .lead { color: var(--color-text); }
.legal-doc > h2:first-of-type { margin-top: var(--space-6); }
.legal-doc code { font-size: 0.9375em; }
.legal-form { padding: var(--space-5); border: 1px solid var(--color-border-strong); border-radius: var(--radius); }
.legal-form > * + * { margin-top: var(--space-3); }
@media (min-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
  /* The header is sticky, so the contents box sits below it. */
  .legal-toc { position: sticky; top: calc(var(--header-h) + var(--space-5)); max-height: calc(100vh - var(--header-h) - var(--space-7)); overflow-y: auto; }
  .legal-doc > .lead { margin-top: 0; }
}

/* Cookie table: a table from 640px; below that each item is a labelled block. */
.legal-table { border: var(--border); border-radius: var(--radius); font-size: var(--text-sm); line-height: 1.5; }
.legal-table table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; }
.legal-table thead th { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.legal-table tbody tr { border-top: var(--border); }
.legal-table tbody th { font-weight: 600; white-space: nowrap; }
@media (max-width: 639.98px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table tbody tr:first-child { border-top: 0; }
  .legal-table tbody tr { padding-block: var(--space-2); }
  .legal-table th, .legal-table td { padding-block: var(--space-2); }
  .legal-table td::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
}
