/* theme.css - the builder's tokens, from this site's own site.css (hand-tuned; the
   scaffold keeps this file on a re-run unless --retheme is passed).
   Every token points at a host variable so the builder reads as part of the page. */
.nb {
  --nb-bg: var(--paper);          /* body background */
  --nb-ink: var(--ink);           /* body text */
  --nb-surface: #F7F8FA;          /* the service-row grey: cards sit one step under the page */
  --nb-surface-2: var(--mist);    /* the studio grey the plates are shown on (.tile) */
  --nb-line: var(--rule);         /* hairlines */
  --nb-line-2: #C3C9D2;           /* input borders, one step darker than --rule */
  --nb-muted: var(--steel);       /* secondary text */
  --nb-dim: #8A909B;              /* hints */
  --nb-accent: var(--accent);     /* breaker blue: the site's primary CTA colour */
  --nb-accent-ink: var(--ink);    /* black text on the blue button, as in the header */
  --nb-font: var(--f-body);
  --nb-font-head: var(--f-display);
  --nb-font-mono: var(--f-mono);
  --nb-radius: 12px;              /* cards (.adv, .quote-card) */
  --nb-radius-sm: 8px;            /* inputs */
  --nb-max: var(--wrap);
  --nb-gutter: 0px;               /* the page's .wrap already pads the sides */
}

/* the site's buttons are pills; the builder's follow */
.nb .btn { border-radius: 999px; font-weight: 600; }
.nb .btn-s { border-radius: 999px; }
.nb .nb-card legend, .nb .nb-card h3 { font-family: var(--f-display); }
.nb .nb-stage { background: var(--mist); }
.nb .nb-stage svg { filter: drop-shadow(0 18px 16px rgba(20,24,32,.22)) drop-shadow(0 3px 4px rgba(20,24,32,.14)); }
.nb .nb-price { font-family: var(--f-display); }

/* swatches are tiny lamacoids: the plate colour, with the core colour showing as a rim */
.nb .nb-chip { display: inline-block; flex: none; width: 20px; height: 14px; margin-right: 8px; border-radius: 3px; vertical-align: -2px;
  box-shadow: inset 0 0 0 1.5px currentColor, 0 1px 1px rgba(0,0,0,.18); }
.nb .nb-seg button { display: inline-flex; align-items: center; }
.nb .nb-seg button[aria-pressed=true] .nb-chip { box-shadow: inset 0 0 0 1.5px currentColor, 0 0 0 1.5px rgba(255,255,255,.55); }
.nb .nb-plates { gap: 10px; }
.nb .nb-plates button { border-radius: 8px; padding: 3px; border: 2px solid transparent; }
.nb .nb-plates button:hover { border-color: var(--nb-line-2); }
.nb .nb-plates button[aria-pressed=true] { border-color: var(--nb-ink); }
.nb .nb-plates i { width: 46px; height: 30px; border-radius: 5px; font: 800 .8rem/1 var(--nb-font-head); letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px currentColor, 0 1px 2px rgba(0,0,0,.2); }
/* step titles sit inside their card instead of on its border */
.nb .nb-card.nb-step { padding-top: 16px; }
.nb .nb-step > legend { float: left; width: 100%; margin: 0 0 14px; }
.nb .nb-step > legend + * { clear: both; }
.nb .nb-custom input { font-variant-numeric: tabular-nums; }

/* inputs read like the site's quote form: calm grey fields, ink border and a yellow ring on focus */
.nb .nb-field input, .nb .nb-field select, .nb textarea { min-height: 46px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff;
  font: 400 15px/1.35 var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.nb textarea { width: 100%; min-height: 96px; resize: vertical; }
.nb .nb-field input:hover, .nb .nb-field select:hover, .nb textarea:hover { border-color: #B9C0CA; }
.nb .nb-field input:focus, .nb .nb-field select:focus, .nb textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,199,44,.45); }
.nb .nb-field > span { font: 600 13px/1.3 var(--f-body); color: var(--ink); }
.nb .nb-checkout { gap: 24px; }
.nb .nb-co-head h2 { font-stretch: 104%; text-transform: uppercase; letter-spacing: 0; }
.nb .nb-checkout .nb-side { top: calc(var(--nav-h) + 16px); }
.nb .nb-summary { background: var(--paper); box-shadow: 0 18px 40px -28px rgba(20,24,32,.45); }
.nb .nb-summary .btn-p { min-height: 50px; font-size: 15px; }
/* text links inside the builder stay ink, not yellow on white */
.nb button.link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.nb button.link:hover { color: var(--steel); }

/* ---- sign maker: header wording, message lines, type controls ---- */
.nb .nb-words button { gap: 0; }
.nb .nb-hdr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 14px; }
.nb .nb-tog { min-height: 46px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; font: 700 12px/1 var(--f-mono); letter-spacing: .04em; cursor: pointer; white-space: nowrap; }
.nb .nb-tog:hover { border-color: var(--ink); }
.nb .nb-tog[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.nb .nb-lines { display: grid; gap: 8px; }
.nb .nb-line { display: grid; grid-template-columns: 22px minmax(0, 1fr) 118px auto; gap: 8px; align-items: center; }
.nb .nb-ln { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); color: var(--steel); font: 600 11px/1 var(--f-mono); }
.nb .nb-line input, .nb .nb-line select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; font: 400 15px/1.3 var(--f-body); color: var(--ink); }
.nb .nb-line select { padding-right: 8px; font-size: 14px; }
.nb .nb-line input:focus, .nb .nb-line select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,199,44,.45); }
.nb .nb-lbtns { display: inline-flex; gap: 2px; }
.nb .nb-lbtns button { display: grid; place-items: center; width: 32px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--steel); cursor: pointer; }
.nb .nb-lbtns button:hover:not([disabled]) { background: var(--mist); color: var(--ink); }
.nb .nb-lbtns button[disabled] { opacity: .3; cursor: default; }
.nb .nb-addline { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px 8px 10px; border: 1px dashed #B9C0CA; border-radius: 999px; background: none; color: var(--ink); font: 600 13px/1 var(--f-body); cursor: pointer; }
.nb .nb-addline:hover { border-color: var(--ink); border-style: solid; }
.nb .nb-type { margin-top: 14px; align-items: start; }
.nb .nb-type .nb-seg button { min-height: 40px; }
.nb .nb-icons button { width: 44px; justify-content: center; padding: 0; }
.nb .nb-series { margin-top: 16px; flex-wrap: wrap; }
.nb .nb-check small { color: var(--nb-dim); font-size: 12px; }
@media (max-width: 560px) {
  .nb .nb-line { grid-template-columns: minmax(0, 1fr) 96px; }
  .nb .nb-ln { display: none; }
  .nb .nb-lbtns { grid-column: 1 / -1; justify-content: flex-end; margin-top: -4px; }
}

/* ---- sign maker: the symbol picker ---- */
.nb .nb-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.nb .nb-pics button { display: grid; place-items: center; aspect-ratio: 1; padding: 8px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.nb .nb-pics button:hover { border-color: #9AA2AE; }
.nb .nb-pics button[aria-pressed=true] { border-color: var(--ink); background: var(--accent); box-shadow: 0 0 0 2px var(--ink) inset; }
.nb .nb-pics svg { width: 100%; height: 100%; fill: currentColor; }
.nb .nb-pics .nb-pic-none { font: 600 11px/1 var(--f-body); color: var(--steel); }
.nb .nb-pics .nb-pic-none[aria-pressed=true] { color: var(--ink); }

/* ---- sign maker: colour, toolbar, checkout ---- */
.nb .nb-colour-now { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; font-weight: 600; }
.nb .nb-colour-now .link { margin-left: 8px; font-size: 13px; font-weight: 500; }
.nb .nb-more { margin-top: 12px; }
.nb .nb-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 600 13px/1 var(--f-body); color: var(--ink); }
.nb .nb-more summary small { padding: 3px 7px; border-radius: 999px; background: var(--mist); color: var(--steel); font-size: 11px; }
.nb .nb-tools { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 10px; }
.nb .nb-tool { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 999px; background: none; color: var(--steel); font: 500 12.5px/1 var(--f-body); cursor: pointer; text-decoration: none; }
.nb .nb-tool:hover:not([disabled]) { background: var(--mist); color: var(--ink); }
.nb .nb-tool[disabled] { opacity: .35; cursor: default; }
.nb .nb-tool-link { margin-left: auto; color: var(--ink); }
.nb .nb-who { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #F7F8FA; font-size: 13px; color: var(--steel); }
.nb .nb-who b { color: var(--ink); font-weight: 600; }
.nb .nb-mini { gap: 12px; }
@media (max-width: 900px) {
  .nb .nb-builder .nb-preview { top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
  .nb .nb-builder .nb-stage svg { max-height: 24vh; width: auto; }
  .nb .nb-tools { margin: -2px 0 6px; }
  .nb .nb-tool span { display: none; }
  .nb .nb-tool-link span { display: inline; }
}

/* ---- the builder's cart reminder and "added" note ---- */
.nb .nb-added { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #EAF7EE; color: #17602F; font: 600 13.5px/1.3 var(--f-body); }
.nb .nb-added a { margin-left: auto; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.nb .nb-cartmini { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--nb-radius);
  background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.nb .nb-cartmini:hover { border-color: var(--ink); box-shadow: 0 12px 28px -22px rgba(20,24,32,.5); }
.nb .nb-cartmini span { display: grid; gap: 2px; }
.nb .nb-cartmini b { font: 700 15px/1.2 var(--f-display); }
.nb .nb-cartmini small { font-size: 13px; color: var(--steel); }
.nb .nb-cartmini em { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 var(--f-body); font-style: normal; }

/* ---- the cart page ---- */
.cart-page { padding-block: 32px 88px; display: grid; gap: 18px; }
.nb .nb-cart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 32px; align-items: start; }
@media (max-width: 900px) { .nb .nb-cart { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.nb .nb-cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.nb .nb-cart-head h2 { font: 800 clamp(28px, 3.4vw, 40px)/1 var(--f-display); font-stretch: 104%; text-transform: uppercase; letter-spacing: 0; }
.nb .nb-cart-head span { font-size: 14px; color: var(--steel); }
.nb .nb-cart-list { list-style: none; margin: 0; padding: 0; }
.nb .nb-cart-item { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto 96px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.nb .nb-cart-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px; border-radius: 12px;
  background: radial-gradient(ellipse 70% 62% at 50% 46%, #fff, rgba(255,255,255,0) 72%), linear-gradient(180deg, #F3F5F8, #E7EAEF); }
.nb .nb-cart-thumb svg { width: 100%; height: auto; max-height: 100%; filter: drop-shadow(0 6px 7px rgba(20,24,32,.2)); }
.nb .nb-cart-info { display: grid; gap: 4px; min-width: 0; }
.nb .nb-cart-info .t { font: 700 15px/1.3 var(--f-display); overflow-wrap: anywhere; }
.nb .nb-cart-info .s { font-size: 13px; color: var(--steel); }
.nb .nb-cart-info .nb-mini { margin-top: 6px; font-size: 13px; }
.nb .nb-cart-qty { display: grid; justify-items: center; gap: 6px; }
.nb .nb-cart-qty small { font-size: 12px; color: var(--steel); white-space: nowrap; }
.nb .nb-cart-qty .nb-qty button { width: 34px; height: 34px; }
.nb .nb-cart-qty .nb-qty button[disabled] { opacity: .35; cursor: default; }
.nb .nb-cart-qty .nb-qty input { min-height: 34px !important; width: 48px !important; }
.nb .nb-cart-line { justify-self: end; font: 700 17px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.nb .nb-cart-more { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 16px; font: 600 14px/1.3 var(--f-body); }
.nb .nb-cart-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nb .nb-cart-empty { display: grid; gap: 10px; justify-items: start; padding: 40px 28px; margin-top: 16px; border-radius: var(--nb-radius); background: var(--mist); }
.nb .nb-cart-empty h3 { font: 800 24px/1.1 var(--f-display); }
.nb .nb-cart-empty p { color: var(--steel); }
.nb .nb-cart-empty .btn { text-decoration: none; }
.nb .nb-cart .nb-side { position: sticky; top: calc(var(--nav-h) + 18px); }
.nb .nb-summary > h3 { font: 800 18px/1.2 var(--f-display); text-transform: uppercase; }
.nb .nb-free { display: grid; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--steel); }
.nb .nb-free i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--mist) var(--p)); }
.nb .nb-free.ok { color: #17602F; font-weight: 600; }
.nb .nb-free.ok i { background: #2E9E55; }
@media (max-width: 640px) {
  .nb .nb-cart-item { grid-template-columns: 104px minmax(0, 1fr); gap: 10px 14px; align-items: start; }
  .nb .nb-cart-thumb { grid-row: span 2; padding: 8px; }
  .nb .nb-cart-qty { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
  .nb .nb-cart-line { grid-column: 2; justify-self: start; }
  .nb .nb-cart .nb-side { position: static; }
}
