/* ==========================================================================
   Maxer Photonics — Interior/content pages
   Shared patterns for Products, Product detail, Technology, Applications,
   Partnership and legal pages — built on the same tokens/components as the
   homepage rather than a separate visual language.
   ========================================================================== */

/* ---------------------------------- Page hero ---------------------------- */
.page-hero {
  padding-block: calc(76px + var(--space-2xl)) var(--space-2xl);
  background: var(--ink-0);
  border-bottom: 1px solid var(--line-0);
}
.page-hero .eyebrow { margin-bottom: var(--space-sm); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--text-on-dark);
  font-size: var(--fs-hero);
  margin-bottom: var(--space-md);
}
.page-hero .lead { max-width: 62ch; }
.page-hero .product-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--text-on-dark-dim);
  margin: calc(-1 * var(--space-xs)) 0 var(--space-sm);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  color: var(--text-on-dark-faint);
  margin-bottom: var(--space-lg);
}
.breadcrumb a { color: var(--text-on-dark-dim); transition: color var(--dur-fast) var(--ease-standard); }
.breadcrumb a:hover { color: var(--accent-cyan); }
.breadcrumb span { color: var(--text-on-dark-dim); }

/* ---------------------------------- Product detail ------------------------ */
.product-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
/* Grid items default to min-width:auto, which refuses to shrink below a
   descendant's intrinsic min-content size (e.g. the model-table's
   min-width below) — min-width:0 lets the column actually shrink so the
   table's own overflow-x:auto scroller can do its job instead of forcing
   the whole column wide. */
.product-layout > * { min-width: 0; }
.product-layout .media-frame { margin-bottom: var(--space-lg); aspect-ratio: 4 / 3; }
.product-layout .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.product-description {
  font-size: var(--fs-body);
  color: var(--text-on-dark-dim);
  max-width: 60ch;
  margin: var(--space-sm) 0 var(--space-xl);
}

.spec-table { width: 100%; border-collapse: collapse; margin-top: var(--space-sm); }
.spec-table tr { border-bottom: 1px solid var(--line-0); }
.spec-table tr:first-child { border-top: 1px solid var(--line-0); }
.spec-table td {
  padding: 0.65rem 0;
  font-size: var(--fs-small);
  vertical-align: top;
}
.spec-table td:first-child {
  color: var(--text-on-dark-faint);
  width: 42%;
  padding-right: var(--space-md);
}
.spec-table td:last-child {
  font-family: var(--font-mono);
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
}
/* Model-comparison variant (multi-column, header row) overrides the plain
   label/value two-column layout above. */
.spec-table.model-table td:first-child,
.spec-table.model-table td:last-child { width: auto; color: var(--text-on-dark-dim); font-family: var(--font-body); font-variant-numeric: normal; }
.spec-table.model-table th {
  text-align: left;
  padding: 0.5rem 0.75rem 0.65rem 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  font-weight: 500;
}
.spec-table.model-table td { padding-right: var(--space-md); }
.subsection-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: var(--space-xl) 0 var(--space-sm);
}

.specs-sidebar {
  background: var(--ink-1);
  border: 1px solid var(--line-0);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.specs-sidebar h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: var(--space-sm);
}
.specs-sidebar h3:not(:first-child) { margin-top: var(--space-lg); }
.feature-list { display: flex; flex-direction: column; gap: 0.55rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--fs-small);
  color: var(--text-on-dark-dim);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent-cyan);
}
.app-tag-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.specs-actions { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-lg); }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent-cyan);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-btn);
  padding: 0.65rem 1.25rem;
  transition: border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.doc-link:hover { border-color: var(--accent-cyan); }
.doc-link svg { width: 16px; height: 16px; }

/* ---------------------------------- CTA band ------------------------------ */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-xl);
  border: 1px solid var(--line-0);
  border-radius: var(--radius-lg);
}
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: var(--space-2xs); }
.cta-band p { color: var(--text-on-dark-dim); }

/* ---------------------------------- Nav dropdowns -------------------------- */
.nav-primary li { position: relative; list-style: none; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--ink-1);
  border: 1px solid var(--line-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), visibility var(--dur-fast);
  z-index: 150;
}
.nav-primary li:hover .dropdown,
.nav-primary li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.3rem 0.75rem 0.4rem;
  display: block;
}
.dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-on-dark-dim);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.dropdown a:hover { background: var(--ink-2); color: var(--accent-cyan); }
.dropdown.dropdown-products { width: 460px; min-width: 460px; max-width: 90vw; left: 0; transform: translateY(6px); }
.nav-primary li:hover .dropdown.dropdown-products,
.nav-primary li:focus-within .dropdown.dropdown-products { transform: translateY(0); }
.dropdown-mega-all { font-weight: 600; margin-bottom: 0.4rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-0); color: var(--text-on-dark); }
.dropdown-mega-cols { display: flex; gap: var(--space-md); }
.dropdown-mega-col { flex: 1; min-width: 0; }
.dropdown-mega-cat { padding-top: 0.5rem; margin-top: 0.5rem; border-top: 1px solid var(--line-0); }
.dropdown-mega-col .dropdown-mega-cat:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.dropdown-cat-heading { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan); }
.dropdown-mega-cat a:not(.dropdown-cat-heading) { font-size: 0.8rem; }

/* Mobile: dropdowns become plain accordions inside the nav-overlay */
.nav-overlay-item { border-bottom: 1px solid var(--line-0); }
.nav-overlay-item:last-child { border-bottom: none; }
.nav-overlay-item__row { display: flex; align-items: center; justify-content: space-between; }
.nav-overlay-item__row > a { flex: 1; border-bottom: none !important; padding-block: var(--space-xs) !important; }
.dropdown-toggle {
  background: none; border: none; color: var(--text-on-dark-dim); cursor: pointer;
  padding: var(--space-sm); display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-standard);
}
.nav-overlay-item.is-open .dropdown-toggle { transform: rotate(180deg); color: var(--accent-cyan); }
.nav-overlay .dropdown {
  position: static; transform: none; opacity: 1; visibility: visible;
  background: none; border: none; box-shadow: none; padding: 0 0 var(--space-sm) 0;
  display: none;
}
.nav-overlay-item.is-open .dropdown { display: block; }
.nav-overlay .dropdown-mega-cols { flex-direction: column; gap: 0; }
.nav-overlay .dropdown a { font-size: 1rem; padding: 0.4rem 0; border-bottom: none; opacity: 1; transform: none; }
.nav-overlay .dropdown-label { padding-left: 0; }

/* ---------------------------------- Site search ---------------------------- */
.site-search { position: relative; }
.search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line-1);
  background: transparent;
  color: var(--text-on-dark-dim);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.search-toggle:hover, .site-search.open .search-toggle { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.search-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.search-form {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; max-width: 84vw;
  background: var(--ink-1); border: 1px solid var(--line-0); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: var(--space-sm);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), visibility var(--dur-fast);
  z-index: 200;
}
.site-search.open .search-form { opacity: 1; visibility: visible; transform: translateY(0); }
.search-input {
  width: 100%; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-1); background: var(--ink-0); color: var(--text-on-dark);
  font-family: var(--font-body); font-size: 0.9rem;
}
.search-input:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(69, 230, 207, 0.16); }
.search-results { margin-top: 0.5rem; max-height: 300px; overflow-y: auto; }
.search-results[hidden] { display: none; }
.search-result { display: block; padding: 0.55rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-on-dark-dim); transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.search-result:hover, .search-result.is-active { background: var(--ink-2); color: var(--accent-cyan); }
.search-empty { padding: 0.6rem; font-size: 0.85rem; color: var(--text-on-dark-faint); text-align: center; }
@media (max-width: 420px) {
  .search-form { position: fixed; top: 76px; left: 12px; right: 12px; width: auto; max-width: none; }
}

/* ---------------------------------- Catalog filter pills ------------------ */
.catalog-filters-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.catalog-count { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.04em; color: var(--text-on-dark-faint); white-space: nowrap; }
.catalog-filter {
  appearance: none;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  color: var(--text-on-dark-dim);
  background: transparent;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.catalog-filter:hover { border-color: var(--accent-cyan); color: var(--text-on-dark); }
.catalog-filter:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
.catalog-filter.is-active { background: var(--accent-cyan); border-color: var(--accent-cyan); color: var(--ink-0); }

/* ---------------------------------- Content grid (Technology/Applications) */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.content-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line-0);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.content-card:hover { border-color: var(--line-1); transform: translateY(-4px); }
.content-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #050608; }
.content-card__media img { width: 100%; height: 100%; object-fit: cover; }
.content-card__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.content-card__body h3 { font-size: var(--fs-h3); color: var(--text-on-dark); }
.content-card__body p { font-size: var(--fs-small); color: var(--text-on-dark-dim); }

/* ---------------------------------- Applications: coverflow carousel ------
   Scoped entirely to .acsl-* classes and #appCarousel/#appCardsSection
   (applications.html only) — nothing shared is touched. Light "paper"
   section (reusing the site's existing .section--paper/.on-paper tokens,
   the same pattern used elsewhere) so the carousel reads as a deliberate
   change of register from the dark hero above and the dark detail sections
   below, not a mismatch. One active card is centered and scaled up;
   neighbors fan out behind it via a per-card --tx/--scale/--dim custom
   property set in js/home.js, clipped by the viewport's overflow. Gold is
   this section's one accent (defined here since it's not part of the
   site's shared blue/cyan token pair) — the color of the yellow fiber
   patch cables already visible in the application photos themselves. */
:root { --accent-gold: #e0a75c; }
/* Tighter, more deliberate vertical rhythm than the generic .section
   padding-block — this section is a compact headline+carousel composition,
   not a long-form content block, so it gets its own scoped spacing rather
   than inheriting --space-section's larger top/bottom gaps. */
#appCardsSection { padding-block: clamp(3rem, 5vw, 4.5rem) clamp(3.5rem, 6vw, 5rem); }
.acsl-head { max-width: 46rem; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.acsl-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.acsl-viewport {
  position: relative;
  height: clamp(252px, 32.2vw, 420px); /* 70% of the original clamp(360px, 46vw, 600px) */
  overflow: hidden;
}
.acsl-viewport:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -2px; }
.acsl-track {
  position: absolute;
  inset: 0;
}

.acsl-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(126px, 15.4vw, 224px); /* 70% of the original clamp(180px, 22vw, 320px) */
  aspect-ratio: 4 / 5;
  border-radius: 14px; /* 70% of the original 20px, same proportions at the smaller size */
  overflow: hidden;
  transform: translate(-50%, -50%) translateX(var(--tx, 0px)) scale(var(--scale, 1));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease;
  box-shadow: 0 24px 48px -20px rgba(20, 23, 28, 0.35);
  display: block;
}
.acsl-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.acsl-card.is-active:hover .acsl-card__img { transform: scale(1.045); }
/* Bottom gradient for label/title legibility over any photo. */
.acsl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 14, 0.85) 0%, rgba(8, 9, 14, 0.15) 46%, transparent 68%);
  pointer-events: none;
}
/* Recede-into-background dimming for non-active cards — a dark tint layered
   over the image rather than fading the whole card's opacity toward the
   light paper background, which would otherwise look washed out. */
.acsl-card__tint {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 9, 14, var(--dim, 0));
  transition: background-color 500ms ease;
  pointer-events: none;
}
.acsl-card__label {
  position: absolute;
  top: 0.7rem; /* 70% of the original var(--space-sm) = 1rem */
  left: 0.7rem;
  right: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.462rem; /* 70% of the original 0.66rem */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.acsl-card__title {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.665rem, 0.91vw, 0.805rem); /* 70% of the original clamp(0.95rem, 1.3vw, 1.15rem) */
  line-height: 1.2;
  color: #fff;
}
.acsl-card__arrow {
  flex: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.acsl-card.is-active .acsl-card__arrow { opacity: 1; transform: translateX(0); }

.acsl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--paper-line);
  background: var(--paper-1);
  color: var(--text-on-paper);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.acsl-nav:hover:not(:disabled) { border-color: var(--accent-gold); color: var(--accent-gold); }
.acsl-nav:disabled { opacity: 0.35; cursor: default; }
.acsl-nav--prev { left: var(--container-pad); }
.acsl-nav--next { right: var(--container-pad); }

@media (prefers-reduced-motion: reduce) {
  .acsl-card, .acsl-card__img, .acsl-card__tint, .acsl-card__arrow { transition: none; }
}

@media (max-width: 900px) {
  .acsl-card { width: clamp(112px, 22.4vw, 168px); } /* 70% of clamp(160px, 32vw, 240px) */
  .acsl-viewport { height: clamp(224px, 42vw, 308px); } /* 70% of clamp(320px, 60vw, 440px) */
  #appCardsSection { padding-block: clamp(2.5rem, 6vw, 3.5rem) clamp(3rem, 7vw, 4rem); }
  .acsl-head { margin-bottom: clamp(1.25rem, 4vw, 1.75rem); }
}
@media (max-width: 640px) {
  .acsl-card { width: 43.4vw; } /* 70% of the original 62vw */
  /* Active card = card height (aspect 4/5 → 1.25×width) × 1.28 scale
     ≈ 1.6×width, so the viewport must be taller than the card width
     itself by a wide margin or the scaled-up active card's title clips.
     (Same 1.6× relationship holds at 70% scale, so this stays 70% of the
     original 112vw too.) */
  .acsl-viewport { height: 78.4vw; }
  .acsl-nav { width: 38px; height: 38px; }
  #appCardsSection { padding-block: 2.25rem 3rem; }
  .acsl-head { margin-bottom: 1.25rem; }
}

/* ---------------------------------- Legal / prose pages -------------------- */
.prose {
  max-width: 72ch;
  color: var(--text-on-dark-dim);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--text-on-dark);
  margin: var(--space-xl) 0 var(--space-sm);
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--space-sm); line-height: var(--lh-body); }
.prose ul { margin: var(--space-sm) 0 var(--space-sm) 1.2rem; }
.prose li { margin-bottom: 0.4rem; line-height: var(--lh-body); }
.prose a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text-on-dark); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-md); font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.75rem; border: 1px solid var(--line-0); color: var(--text-on-dark-dim); }
.prose th { color: var(--text-on-dark); font-family: var(--font-mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .prose table, .prose thead, .prose tbody, .prose tr { display: block; }
  .prose th { display: none; }
  .prose tr { margin-bottom: var(--space-sm); border: 1px solid var(--line-0); border-radius: var(--radius-sm); overflow: hidden; }
  .prose td { display: flex; gap: 0.5rem; border: none; border-bottom: 1px solid var(--line-0); }
  .prose td:last-child { border-bottom: none; }
  .prose td::before { content: attr(data-label); flex-shrink: 0; width: 40%; color: var(--text-on-dark); font-weight: 600; }
}

/* ---------------------------------- GDPR consent banner + modal ----------- */
.mx-consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: var(--ink-1);
  border-top: 1px solid var(--line-1);
  box-shadow: var(--shadow-card);
  padding: var(--space-md) 0;
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-standard);
}
.mx-consent-banner.is-visible { transform: translateY(0); }
.mx-consent-banner[hidden] { display: none; }
.mx-consent-banner-inner {
  width: 100%; max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad);
  display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap;
}
.mx-consent-text { flex: 1 1 420px; min-width: 240px; }
.mx-consent-text strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text-on-dark); margin-bottom: 0.2rem; }
.mx-consent-text p { margin: 0; font-size: var(--fs-small); color: var(--text-on-dark-dim); line-height: var(--lh-body); }
.mx-consent-text a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.mx-consent-actions { display: flex; align-items: center; gap: var(--space-2xs); flex-wrap: wrap; flex-shrink: 0; }
.mx-consent-actions .btn { padding: 0.65rem 1.1rem; font-size: var(--fs-mono); white-space: nowrap; }
.mx-consent-link-btn {
  background: none; border: none; padding: 0.5rem 0.25rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  color: var(--text-on-dark-dim); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.mx-consent-link-btn:hover { color: var(--accent-cyan); }
.mx-consent-link-btn:focus-visible, .mx-consent-close:focus-visible {
  outline: 2px solid var(--accent-cyan); outline-offset: 2px;
}

.mx-consent-overlay { position: fixed; inset: 0; z-index: 2100; background: rgba(5, 6, 9, 0.72); display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.mx-consent-overlay[hidden] { display: none; }
.mx-consent-modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--ink-1); border: 1px solid var(--line-0); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: var(--space-lg);
}
.mx-consent-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); margin-bottom: 0.4rem; }
.mx-consent-modal-head h2 { margin: 0; font-size: var(--fs-h3); color: var(--text-on-dark); }
.mx-consent-close {
  flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-0); border-radius: var(--radius-sm);
  color: var(--text-on-dark-dim); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.mx-consent-close:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.mx-consent-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.mx-consent-modal-intro { color: var(--text-on-dark-dim); font-size: var(--fs-small); line-height: var(--lh-body); margin: 0 0 var(--space-lg); }
.mx-consent-category { border: 1px solid var(--line-0); border-radius: var(--radius-md); padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-sm); }
.mx-consent-category:last-of-type { margin-bottom: 0; }
.mx-consent-category-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.mx-consent-category-title { font-family: var(--font-display); font-weight: 700; font-size: 0.96rem; color: var(--text-on-dark); }
.mx-consent-category-desc { margin: 0.5rem 0 0; font-size: var(--fs-small); color: var(--text-on-dark-dim); line-height: var(--lh-body); }
.mx-consent-always-on { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-cyan); white-space: nowrap; }
.mx-consent-switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; }
.mx-consent-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mx-consent-switch input:disabled { cursor: default; }
.mx-consent-switch-track { position: absolute; inset: 0; background: var(--line-1); border-radius: 999px; transition: background var(--dur-fast) var(--ease-standard); pointer-events: none; }
.mx-consent-switch-track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform var(--dur-fast) var(--ease-standard); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.mx-consent-switch input:checked + .mx-consent-switch-track { background: var(--accent-cyan); }
.mx-consent-switch input:checked + .mx-consent-switch-track::before { transform: translateX(19px); }
.mx-consent-switch input:disabled + .mx-consent-switch-track { background: var(--accent-cyan); opacity: 0.55; }
.mx-consent-switch input:focus-visible + .mx-consent-switch-track { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
.mx-consent-modal-actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--line-0); }
.mx-consent-modal-actions .btn { flex: 1 1 auto; justify-content: center; }

.mx-consent-embed { display: block; width: 100%; height: 100%; }
/* The embed script only sets iframe.src — without this the injected
   iframe falls back to the browser's intrinsic 300x150 default size,
   regardless of how large the parent container is. */
.mx-consent-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------------------------------- Contact page: address + map -------- */
.contact-map-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  gap: var(--space-xl);
  align-items: stretch;
  margin-top: var(--space-xl);
}
.contact-map-info { display: flex; flex-direction: column; justify-content: center; gap: var(--space-sm); }
.contact-map-info p { margin: 0; font-size: var(--fs-small); color: var(--text-on-dark-dim); line-height: var(--lh-body); }
.contact-map {
  position: relative;
  width: 100%;
  height: clamp(320px, 32vw, 480px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-0);
}
.contact-map .mx-consent-embed,
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 900px) {
  .contact-map-grid { grid-template-columns: 1fr; margin-top: var(--space-lg); }
  .contact-map { height: clamp(280px, 70vw, 380px); }
}
.mx-consent-embed-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm);
  text-align: center; padding: var(--space-xl) var(--space-md); width: 100%; height: 100%; min-height: 320px;
  background: var(--ink-1);
}
.mx-consent-embed-placeholder p { margin: 0; max-width: 420px; color: var(--text-on-dark-dim); font-size: var(--fs-small); line-height: var(--lh-body); }
.mx-consent-embed-placeholder .btn { padding: 0.65rem 1.35rem; font-size: var(--fs-small); }
.map-embed:not(.is-mx-embed-loaded) .map-pin { display: none; }

.form-privacy-note { font-size: 0.8rem; line-height: var(--lh-body); color: var(--text-on-dark-faint); margin: 0.25rem 0 var(--space-md); }
.form-privacy-note a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .mx-consent-banner-inner { flex-direction: column; align-items: stretch; text-align: left; }
  /* .mx-consent-text's 420px flex-basis is meant for the row layout's width;
     in this column-direction flex container flex-basis sizes the main axis
     (height), so left unset it forces a 420px-tall text block regardless of
     actual content height, ballooning the fixed banner over most of the
     viewport on short phones. */
  .mx-consent-text { flex-basis: auto; min-width: 0; }
  .mx-consent-actions { width: 100%; }
  .mx-consent-actions .btn, .mx-consent-link-btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .mx-consent-modal { padding: var(--space-md) var(--space-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .mx-consent-banner, .mx-consent-switch-track, .mx-consent-switch-track::before { transition: none; }
}

.footer-legal-links {
  font-size: var(--fs-mono);
  color: var(--text-on-dark-faint);
  display: flex;
  gap: var(--space-sm);
}
.footer-legal-links a { color: inherit; transition: color var(--dur-fast) var(--ease-standard); }
.footer-legal-links a:hover { color: var(--text-on-dark); }

.stat-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

/* About page — "Who We Are" only, scoped by #who-we-are (unique to this
   page). Compact vertical rhythm so the whole section fits under the
   fold on a 1440px desktop viewport, without touching the shared
   .section/.split-block/.stat-grid-2x2 rules used elsewhere on the site.
   The left column's heading + two paragraphs already sit with zero
   margin between them (base.css resets h2/p margins to 0) — their height
   is real content (font-size/line-height/wrap), not excess spacing, so
   the padding-block reduction below is what actually reclaims the room. */
#who-we-are { padding-block: 36px; }
#who-we-are .split-block { align-items: start; }
#who-we-are .stat-grid-2x2 { gap: 24px var(--space-lg); }

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .content-grid { grid-template-columns: 1fr; }
  .spec-table td:first-child { width: 50%; }
  .stat-grid-2x2 { grid-template-columns: 1fr; }
  /* Multi-column model-comparison table (e.g. LumiCore) doesn't fit a
     narrow phone width — scroll it horizontally in its own box instead
     of squeezing every column or breaking the page layout. */
  .model-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .model-table-wrap .model-table { min-width: 480px; }
}
