/* store.css — BQT-Store. Light theme on the BQT-Mobile-UI tokens
   (BQT-Products/BQT-Mobile-UI/tokens/tokens.css), the same look as the platform web console and apps:
   light ground, white surfaces, navy ink and headings, gold #f1b621 as a fill with navy text on it,
   and the darkened gold roles (accent-text, accent-border) wherever gold has to read on white.
   The values below are a copy of the roles this store uses, under the same names; no other hex
   value appears outside this block. Inter (SIL OFL 1.1, assets/fonts/OFL.txt) as in BQT-Mobile-UI. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }

:root {
  color-scheme: light;
  --bq-navy: #0d1b2a;
  --bq-gold: #f1b621;
  --bq-bg: #eef2f8;
  --bq-surface: #f9fafd;
  --bq-surface-raised: #ffffff;
  --bq-surface-sunken: #e4e9f2;
  --bq-border: #d5dded;
  --bq-border-strong: #76839c;
  --bq-focus-ring: #a87e14;
  --bq-ink: #0d1b2a;
  --bq-ink-secondary: #223349;
  --bq-ink-muted: #55647c;
  --bq-ink-subtle: #727f95;
  --bq-accent: #f1b621;
  --bq-accent-hover: #d69f16;
  --bq-accent-ink: #0d1b2a;
  --bq-accent-text: #7d5f11;
  --bq-accent-border: #a87e14;
  --bq-accent-soft: #fdf3d7;
  --bq-accent-on-soft: #6b4f0e;
  --bq-state-ok: #248f60;
  --bq-state-ok-ink: #1e7750;
  --bq-state-ok-fill: #e7f3ee;
  --bq-state-warning: #b8720a;
  --bq-state-warning-ink: #955c08;
  --bq-state-warning-fill: #f7efe4;
  --bq-state-alarm: #821717;
  --bq-state-alarm-ink: #821717;
  --bq-state-alarm-fill: #f5ecec;
  --bq-state-info: #0559c7;
  --bq-state-info-ink: #0559c7;
  --bq-state-info-fill: #e8f0fa;
  --bq-state-offline: #5f6e84;
  --bq-state-offline-ink: #5b6a7f;
  --bq-state-offline-fill: #edeff1;
  --bq-shadow-1: 0 1px 2px rgba(13, 27, 42, 0.06), 0 1px 3px rgba(13, 27, 42, 0.04);
  --bq-shadow-2: 0 6px 16px rgba(13, 27, 42, 0.10);
  --bq-shadow-3: 0 16px 32px rgba(13, 27, 42, 0.14);
  --bq-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bq-radius-sm: 8px;
  --bq-radius-md: 12px;
  --bq-radius-pill: 999px;
  --radius: var(--bq-radius-md);
  --gutter: 16px;
  /* A gold fill is 1.63:1 against the light ground, so a gold button keeps a darker gold edge
     (inset, so the box size does not change), as .bq-btn does in the web console. */
  --bq-accent-edge: inset 0 0 0 1px var(--bq-accent-border);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bq-bg);
  color: var(--bq-ink);
  font: 15px/1.55 var(--bq-font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--bq-accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--bq-ink); }
h1 { font-size: clamp(26px, 4.2vw, 40px); }
h2 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 8px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.muted { color: var(--bq-ink-muted); }
.faint { color: var(--bq-ink-muted); }
.small { font-size: 13px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header / footer ---- */
.site-header { border-bottom: 1px solid var(--bq-border); background: var(--bq-surface-raised); box-shadow: var(--bq-shadow-1); position: sticky; top: 0; z-index: 10; }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bq-ink); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--bq-accent); color: var(--bq-accent-ink); box-shadow: var(--bq-accent-edge); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.brand small { color: var(--bq-ink-muted); font-weight: 500; margin-left: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--bq-ink-secondary); padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.nav a:hover { background: var(--bq-surface-sunken); color: var(--bq-ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bq-accent-soft); color: var(--bq-accent-on-soft); font-weight: 600; text-decoration: none; }
.nav a.btn-primary { color: var(--bq-accent-ink); }
.nav a.btn-primary:hover { background: var(--bq-accent-hover); }
.cart-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--bq-accent); color: var(--bq-accent-ink); box-shadow: var(--bq-accent-edge); font-size: 12px; font-weight: 700; text-align: center; }
.site-footer { border-top: 1px solid var(--bq-border); margin-top: 48px; padding: 24px 0 32px; color: var(--bq-ink-muted); font-size: 13px; }
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: var(--bq-ink); }
html.embed .site-footer, html.embed .brand small { display: none; }
html.embed .site-header { position: static; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--bq-border-strong); background: var(--bq-surface-raised); color: var(--bq-ink-secondary); font: 600 14px/1 var(--bq-font-sans); cursor: pointer; text-align: center; transition: background-color .12s, border-color .12s, color .12s; }
.btn:hover { text-decoration: none; border-color: var(--bq-accent-border); color: var(--bq-accent-text); }
.btn-primary { background: var(--bq-accent); border-color: var(--bq-accent-border); color: var(--bq-accent-ink); }
.btn-primary:hover { background: var(--bq-accent-hover); border-color: var(--bq-accent-border); color: var(--bq-accent-ink); }
.btn-ghost { background: var(--bq-surface-raised); border-color: var(--bq-accent-border); color: var(--bq-accent-text); }
.btn-ghost:hover { background: var(--bq-accent-soft); color: var(--bq-accent-on-soft); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .nav a:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--bq-focus-ring); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }

/* ---- chips ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--bq-border); background: var(--bq-surface-raised); color: var(--bq-ink-muted); white-space: nowrap; }
.chip-pilot { border-color: var(--bq-accent-border); background: var(--bq-accent-soft); color: var(--bq-accent-on-soft); }
.chip-rnd { border-color: var(--bq-state-offline); background: var(--bq-state-offline-fill); color: var(--bq-state-offline-ink); }
.chip-tp { border-color: var(--bq-state-info); background: var(--bq-state-info-fill); color: var(--bq-state-info-ink); }
.chip-ok { border-color: var(--bq-state-ok); background: var(--bq-state-ok-fill); color: var(--bq-state-ok-ink); }
.chip-system { background: var(--bq-surface-raised); color: var(--bq-ink-secondary); border-color: var(--bq-border-strong); font-weight: 500; }
.chip-system:hover { border-color: var(--bq-accent-border); background: var(--bq-accent-soft); color: var(--bq-accent-on-soft); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- hero / notices ---- */
.hero { padding: 40px 0 16px; }
.eyebrow { color: var(--bq-accent-text); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.lede { font-size: 17px; color: var(--bq-ink-muted); max-width: 760px; }
.notice { border: 1px solid var(--bq-border); border-left: 4px solid var(--bq-accent); background: var(--bq-surface-raised); color: var(--bq-ink-secondary); border-radius: 10px; padding: 12px 14px; margin: 16px 0; font-size: 14px; }
.notice.warn { border-left-color: var(--bq-state-warning); background: var(--bq-state-warning-fill); }
.notice.error { border-left-color: var(--bq-state-alarm); background: var(--bq-state-alarm-fill); }
.notice.ok { border-left-color: var(--bq-state-ok); background: var(--bq-state-ok-fill); }
.notice strong { color: var(--bq-ink); }

/* ---- sections / cards ---- */
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: var(--radius); box-shadow: var(--bq-shadow-1); padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card h3 a { color: var(--bq-ink); }
.card .system { color: var(--bq-accent-text); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card .devices { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--bq-ink-muted); }
.card .devices li { padding: 2px 0; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card.featured { border-color: var(--bq-accent-border); box-shadow: var(--bq-accent-edge), var(--bq-shadow-1); }
.panel { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); box-shadow: var(--bq-shadow-1); border-radius: var(--radius); padding: 18px; }

/* ---- rows (devices, modules, cart lines) ---- */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); box-shadow: var(--bq-shadow-1); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 8px 16px; align-items: center; }
.row .title { font-weight: 600; }
.row .sub { color: var(--bq-ink-muted); font-size: 13px; }
.row .end { justify-self: end; text-align: right; }
.price { font-weight: 600; white-space: nowrap; }
.price.on-request { color: var(--bq-ink-muted); font-weight: 500; }

/* ---- kit page layout ---- */
.kit-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-top: 28px; }
.sticky-box { position: sticky; top: 80px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--bq-ink-muted); }
.kv dd { margin: 0; }
.list { margin: 0; padding-left: 18px; }
.list li { margin: 4px 0; }
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); box-shadow: var(--bq-shadow-1); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tier h3 { font-size: 20px; }
.tier .unit { color: var(--bq-ink-muted); font-size: 13px; }
.tier.selected { border-color: var(--bq-accent-border); box-shadow: var(--bq-accent-edge), var(--bq-shadow-1); }
.split { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
details.detail { background: var(--bq-surface-raised); border: 1px solid var(--bq-border); border-radius: 10px; padding: 12px 14px; }
details.detail summary { cursor: pointer; color: var(--bq-ink-muted); }
details.detail pre, .order-json { white-space: pre-wrap; word-break: break-word; font-size: 12px; color: var(--bq-ink-secondary); margin: 10px 0 0; }
.demo-note { font-size: 13px; color: var(--bq-ink-muted); margin-top: -6px; }

/* ---- forms ---- */
form .fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; color: var(--bq-ink-muted); }
input, select, textarea { width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--bq-border-strong); background: var(--bq-surface-raised); color: var(--bq-ink); font: 15px var(--bq-font-sans); }
input::placeholder, textarea::placeholder { color: var(--bq-ink-subtle); }
input:focus, select:focus, textarea:focus { border-color: var(--bq-accent-border); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--bq-navy); }
textarea { min-height: 90px; resize: vertical; }
.qty { width: 76px; min-height: 36px; }
.err { color: var(--bq-state-alarm-ink); font-size: 12px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--bq-ink); }
.check input { width: 18px; min-height: 18px; margin-top: 3px; }
.summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 860px) {
  .kit-head { grid-template-columns: 1fr; }
  .sticky-box { position: static; }
  .tiers, .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .row { grid-template-columns: 1fr; }
  .row .end { justify-self: start; text-align: left; }
  form .fields { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 8px; }
  .hero { padding-top: 24px; }
  .actions .btn { flex: 1 1 auto; }
}

/* Reference values list on a kit page (js/page-kit.js) */
.ref-values li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.ref-values strong { color: var(--bq-ink); }
/* ---- SourceTip (js/sourcetip.js, copied from the Demo Lab): the (i) next to a sourced value ---- */
.bq-tip-wrap { display: inline; position: static; }
.bq-tip-btn {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 24px; height: 24px; margin: -4px 0 -4px 2px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--bq-ink-muted); cursor: pointer; font: inherit; line-height: 1;
  text-transform: none; letter-spacing: 0;
}
.bq-tip-btn span {
  display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid currentColor; font: italic 700 10px/1 Georgia, "Times New Roman", serif;
}
.bq-tip-btn:hover, .bq-tip-btn[aria-expanded="true"] { color: var(--bq-accent-text); }
.bq-tip-btn:focus-visible { outline: 2px solid var(--bq-focus-ring); outline-offset: 1px; color: var(--bq-accent-text); }
.bq-tip {
  position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 5px;
  width: max-content; max-width: min(320px, calc(100vw - 16px)); box-sizing: border-box;
  padding: 10px 12px; border-radius: 10px; background: var(--bq-surface-raised); color: var(--bq-ink);
  border: 1px solid var(--bq-accent-border); box-shadow: var(--bq-shadow-3);
  font: 400 12px/1.45 var(--bq-font-sans); text-align: left; text-transform: none; letter-spacing: 0; white-space: normal;
}
.bq-tip[hidden] { display: none; }
.bq-tip-head { font-weight: 700; font-size: 12px; color: var(--bq-ink); }
.bq-tip-value { font-size: 15px; font-weight: 700; color: var(--bq-accent-text); font-variant-numeric: tabular-nums; }
.bq-tip-row { color: var(--bq-ink-muted); overflow-wrap: anywhere; }
.bq-tip-row b { color: var(--bq-ink); font-weight: 600; margin-right: 4px; }
.bq-tip-note { color: var(--bq-ink-secondary); }
.bq-tip-link { color: var(--bq-accent-text); font-weight: 600; text-decoration: none; }
.bq-tip-link:hover, .bq-tip-link:focus-visible { text-decoration: underline; outline: none; }
.bq-tip-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bq-tip-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--bq-ink-muted); flex: 0 0 auto; }
.bq-tip-status.st-verified { color: var(--bq-state-ok-ink); } .bq-tip-status.st-verified i { background: var(--bq-state-ok); }
.bq-tip-status.st-secondary { color: var(--bq-state-info-ink); } .bq-tip-status.st-secondary i { background: var(--bq-state-info); transform: rotate(45deg); border-radius: 1px; }
.bq-tip-status.st-owner-default { color: var(--bq-ink-muted); } .bq-tip-status.st-owner-default i { background: transparent; border: 1.5px solid var(--bq-ink-muted); }
.bq-tip-status.st-sample { color: var(--bq-state-warning-ink); } .bq-tip-status.st-sample i { background: var(--bq-state-warning); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bq-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- "Values and sources" footnote ---- */
.bq-values { font: 400 12px/1.5 var(--bq-font-sans); color: var(--bq-ink-muted); border-top: 1px solid var(--bq-border); padding-top: 10px; }
.bq-values summary { cursor: pointer; color: var(--bq-ink); list-style-position: inside; }
.bq-values summary:focus-visible { outline: 2px solid var(--bq-focus-ring); outline-offset: 2px; border-radius: 4px; }
.bq-values-title { font-weight: 700; }
.bq-values-count { color: var(--bq-ink-muted); font-size: 11px; }
.bq-values-lead { margin: 8px 0; }
.bq-values-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bq-values table { border-collapse: collapse; width: 100%; min-width: 760px; }
.bq-values th, .bq-values td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--bq-border); }
.bq-values th { color: var(--bq-ink-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.bq-values td { color: var(--bq-ink-muted); overflow-wrap: anywhere; }
.bq-values td.v { color: var(--bq-ink); font-weight: 600; min-width: 7em; max-width: 16em; font-variant-numeric: tabular-nums; }
.bq-values td .c { color: var(--bq-ink-muted); font-size: 11px; margin-top: 2px; }
.bq-values a { color: var(--bq-accent-text); text-decoration: none; font-weight: 600; }
.bq-values a:hover { text-decoration: underline; }

/* checkout result: reference, sales contact and order summary are plain selectable text */
.selectable { user-select: all; -webkit-user-select: all; }
.contact-line { margin: 12px 0 0; font-size: 14px; }
.contact-line .selectable { color: var(--bq-accent-text); font-weight: 600; }
.order-summary { width: 100%; min-height: 160px; resize: vertical; background: var(--bq-surface); color: var(--bq-ink);
  border: 1px solid var(--bq-border); border-radius: 10px; padding: 10px 12px; margin-top: 6px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }

/* ---- quick-start guides and product sheets (guide.html, sheet.html) ---- */
.guide-head { padding-top: 24px; max-width: 860px; }
.guide-head .actions { margin-top: 4px; }
.steps { padding-left: 22px; }
.steps li { margin: 8px 0; padding-left: 4px; }
.steps li::marker { color: var(--bq-accent-text); font-weight: 700; }
.panel h3 + .list { margin-bottom: 12px; }
.sheet-kv { grid-template-columns: 200px minmax(0, 1fr); }
.sheet-kv dd.unmeasured { color: var(--bq-state-warning-ink); }
@media (max-width: 600px) {
  .sheet-kv { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .no-print, .bq-tip-wrap { display: none !important; }
  body { background: none; color: var(--bq-ink); font-size: 11pt; }
  .panel, .notice, .row, details.detail { background: none; border-color: var(--bq-border-strong); box-shadow: none; }
  .lede, .muted, .kv dt, .row .sub, details.detail pre { color: var(--bq-ink-muted); }
  .notice strong, .chip { color: var(--bq-ink); background: none; }
  a { color: var(--bq-ink); }
  .section { margin-top: 14px; break-inside: avoid; }
}
