/* ── Vital Systems site: shared look for every new page ──
   Dark, like the home page. Each page's <body class="line-..."> sets --glow:
   CNC pages teal, conveyor pages yellow. The home page links this file first and
   keeps its own styles for the scroll show; the header and footer come from here. */
:root {
  --bg: #04070b;
  --bg2: #0a1017;
  --card: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.12);
  --ink: #eef5ff;
  --soft: #c5d2e0;
  --muted: #8fa1b3;
  --teal: #1ee6c8;
  --yellow: #ffd23f;
  --glow: var(--teal);
  --glow-ink: #03110f;
  --radius: 18px;
  --gutter: max(18px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
.line-conveyor { --glow: var(--yellow); --glow-ink: #1a1400; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over a class's display */
/* --bar-h is the header's height, measured by assets/site.js: anchor jumps stop just below it */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h, 60px) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* ── Header ── */
.bar {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(4,7,11,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bar .logo img { height: 42px; width: auto; }
.bar nav { margin-left: auto; display: flex; gap: clamp(6px, 1.4vw, 18px); align-items: center; font-size: 14.5px; }
.bar nav > a.plain, .drop > button {
  color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
  padding: 8px 6px; transition: color .2s;
}
.bar nav > a.plain:hover, .drop > button:hover, .drop[aria-current] > button { color: var(--ink); }
.drop > button::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.drop { position: relative; }
.drop .panel {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: 340px;
  display: grid; gap: 2px; padding: 8px; border-radius: 14px;
  background: #0b121a; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px #000;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.drop .panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.drop:hover .panel, .drop:focus-within .panel, .drop.open .panel { opacity: 1; visibility: visible; transform: none; }
.drop .panel a { display: grid; padding: 9px 12px; border-radius: 9px; text-decoration: none; }
.drop .panel a:hover { background: rgba(255,255,255,.06); }
.drop .panel b { font-weight: 600; color: var(--ink); }
.drop .panel span { font-size: 13px; color: var(--muted); }
.pill {
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 18px; margin-left: 4px;
  color: var(--ink); text-decoration: none; background: rgba(255,255,255,.04); white-space: nowrap;
}
.pill:hover { border-color: var(--glow); box-shadow: 0 0 18px -4px var(--glow); }
/* Sections inside a menu panel (the CNC menu): <div class="sub"><a>Section</a><button class="subbtn"></button>
   <div class="flyout">..links..</div></div>. The section's list flies out to the right on hover or focus.
   It hides a moment after the pointer leaves, so a diagonal move into the list does not lose it. */
.drop .panel.wide { width: 360px; }
.drop .panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 6px; }
/* Featured products keep their menu's colour on every page: CNC teal, Conveyor yellow */
.drop .panel a.feat b { color: var(--teal); }
.drop[data-line="conveyor"] .panel a.feat b { color: var(--yellow); }
.drop .sub { position: relative; display: flex; }
.drop .sub > a { flex: 1; position: relative; padding-right: 34px; }
.drop .sub > a::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-50%) rotate(-45deg);
}
.drop .sub:hover > a, .drop .sub:focus-within > a { background: rgba(255,255,255,.06); }
.drop .subbtn { display: none; }
.drop .flyout {
  position: absolute; left: calc(100% + 9px); top: -9px; width: 310px;
  display: grid; gap: 2px; padding: 8px; border-radius: 14px;
  background: #0b121a; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px #000;
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity .15s .12s, transform .15s .12s, visibility 0s .27s;
}
.drop .flyout::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; }
.drop .sub:hover > .flyout, .drop .sub:focus-within > .flyout { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 2; }
/* A menu near the right edge (Conveyor) opens its lists to the left, so they stay on screen */
@media (min-width: 901px) {
  .drop .panel.flipout .flyout { left: auto; right: calc(100% + 9px); transform: translateX(6px); }
  .drop .panel.flipout .flyout::before { left: auto; right: -12px; }
  .drop .panel.flipout .sub:hover > .flyout, .drop .panel.flipout .sub:focus-within > .flyout { transform: none; }
  .drop .panel.flipout .sub > a::after { transform: translateY(-50%) rotate(135deg); }
}
.menubtn { display: none; margin-left: auto; font: inherit; font-size: 14px; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; }
@media (max-width: 900px) {
  .menubtn { display: block; }
  .bar nav {
    position: fixed; top: 55px; left: 0; right: 0; max-height: calc(100vh - 55px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: #070c12; border-bottom: 1px solid var(--line); display: none;
  }
  .bar.open nav { display: flex; }
  .bar nav > a.plain, .drop > button { padding: 12px 4px; text-align: left; width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .drop .panel { position: static; translate: none; width: auto; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 4px 0 8px; }
  .drop:hover .panel, .drop:focus-within .panel { display: none; }
  .drop.open .panel { display: grid; }
  .drop .panel.wide { width: auto; }
  /* Menu sections open and close with their arrow button, as a list under the section */
  .drop .sub { flex-wrap: wrap; }
  .drop .sub > a { padding-right: 12px; }
  .drop .sub > a::after { display: none; }
  .drop .sub:hover > a, .drop .sub:focus-within > a { background: none; }
  .drop .subbtn { display: block; flex: none; width: 46px; background: none; border: 0; border-radius: 9px; cursor: pointer; color: var(--muted); }
  .drop .subbtn::after { content: ""; display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .drop .sub.open > .subbtn::after { transform: translateY(1px) rotate(-135deg); }
  .drop .flyout {
    position: static; flex-basis: 100%; width: auto; display: none; opacity: 1; visibility: visible; transform: none; transition: none;
    margin: 0 0 6px 12px; padding: 2px 0 2px 10px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none;
  }
  .drop .sub:hover > .flyout, .drop .sub:focus-within > .flyout { display: none; }
  .drop .sub.open > .flyout { display: grid; }
  .pill { margin: 14px 0 0; text-align: center; }
}

/* ── Page building blocks ── */
.wrap { width: min(1200px, 100%); margin: 0 auto; }
.sect { position: relative; padding: clamp(36px, 5vh, 60px) var(--gutter); }
.sect.alt { background: var(--bg2); border-block: 1px solid rgba(255,255,255,.05); }
.eyebrow { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--glow); margin: 0 0 12px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.08; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 20px; letter-spacing: 0; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); max-width: 36em; }
.head { max-width: 44rem; margin-bottom: 28px; }
.head p { color: var(--soft); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  /* so <button class="btn"> and <input type="submit" class="btn"> look the same as links */
  font-family: inherit; line-height: 1.6; color: inherit; background: transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); border-color: var(--glow); box-shadow: 0 8px 30px -10px var(--glow); }
.btn.go { background: var(--glow); color: var(--glow-ink); border-color: transparent; }

/* Hero: words on the left, the product on a white plate on the right */
.hero { padding: clamp(110px, 16vh, 150px) var(--gutter) clamp(40px, 6vh, 70px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 22%, transparent), transparent);
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 5vw, 70px); align-items: center; }
.plate {
  background: radial-gradient(circle at 50% 40%, #fff 60%, #e3e9ef 100%); border-radius: 26px;
  padding: clamp(14px, 3vw, 34px); box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 40px 110px -40px var(--glow);
}
.plate img { width: 100%; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Quick facts under the hero */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 28px; }
.stats div { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card); }
.stats b { display: block; font-size: 24px; color: var(--glow); line-height: 1.2; }
.stats span { font-size: 14px; color: var(--muted); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.features article { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); }
.features h3 { font-size: 17px; margin-bottom: 6px; }
.features p { color: var(--soft); font-size: 15px; margin: 0; }
/* "lists": feature cards that hold long lists (<ul class="ticks">), in smaller type */
.features.lists .ticks { gap: 7px; }
.features.lists .ticks li { font-size: 15px; }

/* Two columns: words and a picture */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { padding-left: 26px; position: relative; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .66em; width: 14px; height: 2px; background: var(--glow); }
.ticks b { color: var(--ink); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }

/* Picture gallery: click to enlarge */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
dialog.lightbox::backdrop { background: rgba(0,0,0,.86); }
dialog.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: 12px; background: #fff; }
dialog.lightbox p { text-align: center; color: var(--soft); margin: 10px 0 0; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.videos figure { margin: 0; }
.videos .frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.videos iframe, .videos video { width: 100%; height: 100%; border: 0; display: block; }
.videos figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Related products */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.related a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--card); transition: border-color .2s, transform .2s; }
.related a:hover { border-color: var(--glow); transform: translateY(-3px); }
.related img { width: 84px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; }
.related b { display: block; }
.related span { font-size: 14px; color: var(--muted); }

/* Downloads */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.docs section { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--card); min-width: 0; }
.docs h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.docs ul { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.07); }
.docs li:first-child { border-top: 0; }
.docs a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.docs a:hover { color: var(--glow); }
.docs .meta { color: var(--muted); font-size: 13px; }

/* Ordering band */
.order { border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, color-mix(in srgb, var(--glow) 14%, transparent), transparent 60%), var(--card); }
.order h2 { margin: 0 0 6px; }
.order p { margin: 0; color: var(--soft); }
.order .cta { margin: 0; }

/* Price list inside the ordering band (template/order.twig) */
.order .prices { flex-basis: 100%; min-width: 0; }
.prices h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 22px 0 8px; }
.prices h3:first-child { margin-top: 4px; }
.prices ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(4,7,11,.45); }
.prices li { display: grid; grid-template-columns: 1fr auto 140px; gap: 6px 18px; align-items: center; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.prices li:first-child { border-top: 0; }
.prices .what { min-width: 0; }
.prices .what b { display: block; }
.prices .what span { display: block; color: var(--soft); font-size: 14.5px; overflow-wrap: anywhere; }
.prices .price { font-weight: 700; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prices .btn { padding: 8px 14px; font-size: 14px; text-align: center; }
.prices .out { color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 640px) {
  .prices li { grid-template-columns: 1fr auto; }
  .prices .what { grid-column: 1 / -1; }
  .prices .price { text-align: left; }
}

/* ── Footer ── */
.foot { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.07); padding: 44px var(--gutter) 30px; background: #03060a; color: var(--muted); font-size: 14px; }
.foot .cols { width: min(1200px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.foot img { height: 34px; width: auto; margin-bottom: 12px; }
.foot h4 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.foot a { display: block; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--ink); }
.foot .social { display: flex; gap: 16px; margin-top: 10px; }
.foot .social a { display: inline; color: var(--soft); }
.foot .social a:hover { color: var(--glow); }
.foot .copy { width: min(1200px, 100%); margin: 30px auto 0; font-size: 13px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

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

/* Specification table: <div class="spec"><table>...</table></div> (scrolls sideways on a phone) */
.spec { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.spec table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 10px 16px; border-top: 1px solid rgba(255,255,255,.07); vertical-align: top; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.spec thead th { color: var(--ink); background: rgba(255,255,255,.04); }

/* Product grid for a section's landing page: <div class="tiles"><a href=""><img><b></b><span></span></a></div> */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tiles a { display: grid; gap: 4px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--card); transition: border-color .2s, transform .2s; }
.tiles a:hover { border-color: var(--glow); transform: translateY(-3px); }
.tiles img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; border-radius: 12px; margin-bottom: 8px; }
.tiles b { font-size: 18px; }
.tiles span { color: var(--muted); font-size: 14px; }

/* A plain note box */
.note { border-left: 3px solid var(--glow); background: var(--card); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--soft); }

/* ════════════════════════════════════════════════════════════════════════════
   Store, account and other "working" pages, and the older product pages
   ════════════════════════════════════════════════════════════════════════════ */

/* Header extras: the number of items in the cart, and the free-shipping strip */
.cartlink .count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--glow); color: var(--glow-ink); font-size: 12px; font-weight: 700; line-height: 1;
}
.bar .shipnote {
  position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 6px var(--gutter);
  text-align: center; font-size: 14px; font-weight: 600; background: var(--glow); color: var(--glow-ink);
}

/* A plain page: <section class="page"><div class="wrap"><h1>..</h1> ... </div></section>
   (clears the fixed header). Add "narrow" for a single small form such as a login. */
.page { padding: clamp(100px, 14vh, 130px) var(--gutter) clamp(40px, 6vh, 70px); }
.page.narrow .wrap { width: min(560px, 100%); }
.page h1 { font-size: clamp(32px, 4vw, 48px); }
.page h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 34px; }
.page .lead { margin-bottom: 26px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back::before { content: "\2190  "; }
.back:hover { color: var(--ink); }

/* Box: a card around a form or a group of details. "boxes" puts several side by side. */
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); background: var(--card); min-width: 0; }
.box > :last-child { margin-bottom: 0; }
.box h2, .box h3 { margin-top: 0; }
.box h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.box hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; align-items: start; }
.boxes.main-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .boxes.main-side { grid-template-columns: 1fr; } }

/* Notices: <div class="notice ok|bad|info">...</div> */
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 0 10px 10px 0;
  padding: 12px 16px; margin: 0 0 16px; background: var(--card); color: var(--soft);
}
.notice.ok { border-left-color: #4ade80; }
.notice.bad { border-left-color: #ff6b6b; }
.notice.info { border-left-color: var(--glow); }
.notice b, .notice strong { color: var(--ink); }
.notice a { color: var(--glow); }
.notice .btn { margin: 0 6px; padding: 5px 14px; font-size: 14px; }

/* Forms */
.form { display: grid; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px 18px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--soft); }
.hint { font-size: 13px; font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; }
select option { background: #0b121a; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 25%, transparent); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--glow); }
.check { display: flex; align-items: center; gap: 8px; }
.form .cta { margin-top: 4px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Data tables: <div class="data"><table>...</table></div> (scrolls sideways on a phone) */
.data { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 18px; }
.data table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th, .data td { text-align: left; padding: 10px 16px; border-top: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.data thead th { border-top: 0; color: var(--muted); font-weight: 600; background: rgba(255,255,255,.04); white-space: nowrap; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data .total td { font-weight: 700; color: var(--ink); border-top-color: var(--line); }
.data a { color: var(--ink); }
.data a:hover { color: var(--glow); }
.data input[type="number"] { width: 90px; padding: 6px 8px; }
.data .btn { padding: 6px 14px; font-size: 14px; }
@media (max-width: 640px) { .data .wide-only { display: none; } }

/* Label and value pairs: <dl class="pairs"><dt>Name</dt><dd>..</dd>...</dl> */
.pairs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.pairs dt { color: var(--muted); font-weight: 600; }
.pairs dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.pairs dd[onclick] { cursor: copy; }
.pairs dd[onclick]:hover { color: var(--glow); }

/* Account pages: a side menu beside the content */
.with-side { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 800px) { .with-side { grid-template-columns: 1fr; } }
.sidenav { display: grid; gap: 4px; }
.sidenav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--soft); border: 1px solid transparent; }
.sidenav a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.sidenav a[aria-current] { color: var(--ink); border-color: var(--line); background: var(--card); }

/* Jump links along the top of a long page: <nav class="chips"><a href="#..">..</a></nav> */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.chips a, .chips button { text-decoration: none; font: inherit; font-size: 14px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--card); cursor: pointer; }
.chips a:hover, .chips button:hover { color: var(--ink); border-color: var(--glow); }
.chips a[aria-current], .chips button[aria-pressed="true"] { color: var(--glow-ink); background: var(--glow); border-color: transparent; }

/* A sticky menu of the sections on a long page (the store's categories, the knowledge base's topics):
   <nav class="sidemenu"><p class="label">..</p><a href="#id">Name <span class="n">3</span></a>..</nav>
   assets/site.js marks the section in view with aria-current. The page places the menu in a column
   beside its content (see store.css, support/support.css). On narrow screens it becomes a strip of
   buttons under the header, scrolled sideways. */
.sidemenu {
  position: sticky; top: calc(var(--bar-h, 60px) + 20px);
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #0f1720, #0a1017);
  max-height: calc(100vh - var(--bar-h, 60px) - 40px); overflow-y: auto; scrollbar-width: thin;
}
.sidemenu .label { margin: 0 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sidemenu a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; line-height: 1.35; color: var(--soft);
  transition: color .15s, background-color .15s;
}
.sidemenu a::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: var(--glow); opacity: 0; transform: scaleY(.4); transition: opacity .2s, transform .2s;
}
.sidemenu a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.sidemenu a[aria-current] { color: var(--ink); background: rgba(255,255,255,.07); }
.sidemenu a[aria-current]::before { opacity: 1; transform: none; }
.sidemenu .n { flex: none; min-width: 26px; padding: 1px 7px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.06); }
.sidemenu a[aria-current] .n { color: var(--glow-ink); background: var(--glow); }
@media (max-width: 900px) {
  html:has(.sidemenu) { scroll-padding-top: calc(var(--bar-h, 60px) + 76px); }
  .sidemenu {
    top: var(--bar-h, 60px); z-index: 5; min-width: 0; flex-direction: row; gap: 6px; max-height: none;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 10px var(--gutter);
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: rgba(4,7,11,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .sidemenu::-webkit-scrollbar { display: none; }
  .sidemenu .label { display: none; }
  .sidemenu a { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .sidemenu a::before { display: none; }
  .sidemenu a[aria-current] { border-color: var(--glow); }
}

/* Store: a grid of product cards */
.shopgroup { margin-bottom: 44px; scroll-margin-top: 90px; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.product { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--card); }
.product .pic { display: grid; place-items: center; height: 150px; background: #fff; border-radius: 12px; overflow: hidden; }
.product .pic img { max-height: 130px; width: auto; object-fit: contain; }
.product p { margin: 0 0 6px; color: var(--soft); font-size: 15px; }
.product p a { text-decoration: none; }
.product p a:hover { color: var(--glow); }
.product b { color: var(--ink); }
.product .stock { color: var(--muted); font-size: 14px; }
.product .btn { text-align: center; }

/* A product picture on a white plate, with optional thumbnails to switch it (template/banner.twig) */
.thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.thumbs button { padding: 0; width: 64px; height: 52px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.thumbs button:hover { border-color: var(--glow); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumbs .play { display: grid; place-items: center; width: 100%; height: 100%; background: #000; color: #fff; font-size: 18px; }
.plate video { width: 100%; display: block; }

/* A picture or drawing shown at full width, white behind it (dimension drawings, spec sheets) */
.figure { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.figure img { width: 100%; }
a.figure:hover { border-color: var(--glow); }
.figure + .figure { margin-top: 16px; }

/* Ordinary running text with lists and links */
.prose { max-width: 52rem; color: var(--soft); }
.prose b, .prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; display: grid; gap: 6px; }
.prose a { color: var(--glow); }
.prose mark { background: color-mix(in srgb, var(--glow) 30%, transparent); color: var(--ink); padding: 0 3px; border-radius: 3px; }
