/* Surcam Prosthetic Finder: GENERATED by wp/finder/build.mjs from prosthetics/finder/assets/finder.css. Do not edit here. */
/* Surcam prosthetic finder: one stylesheet for the mock (finder/index.html) and the WordPress widget (wp/finder/style.css,
   built by wp/finder/build.mjs). Everything is scoped under .spf: no :root, body or element IDs.
   Layout: surcamdental.com 2026 system (widget 6485 tokens) on white. A sticky implant bar with the two modes; the finder or
   the kit in the main column; the parts list in a sticky side column (a bottom sheet on phones). One light look, as on the site. */
.spf {
  --ink: #0e1213; --ink-2: #4b5458; --muted: #5d696e;
  --paper: #f1f3f3; --plate: #f6f8f8; --bg: #ffffff; --tile: #e9eeee; --tint: #e8eeee;
  --line: rgba(14, 18, 19, .1); --rule: #d3dbdb; --rule-strong: #b9c4c4;
  --accent: #03695e; --accent-hover: #025a51; --teal: #04b9a4; --wash: #def4f0;
  --gap-bg: #fff8e6; --gap-line: #c8952c; --gap-ink: #6b4a0b;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
  position: relative; display: block; width: 100%; max-width: 100%; color: var(--ink); background: var(--bg);
  font: 400 1rem/1.5 var(--sans); text-align: left; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.spf *, .spf *::before, .spf *::after { box-sizing: border-box; }
.spf [hidden] { display: none !important; }
.spf h1, .spf h2, .spf h3, .spf h4, .spf p, .spf ol, .spf ul, .spf li { margin: 0; padding: 0; }
.spf h1, .spf h2, .spf h3, .spf h4 { font-family: var(--sans); color: var(--ink); text-transform: none; }
.spf ol, .spf ul { list-style: none; }
/* theme and Elementor kit button/link/input styles: set the look through variables so hover/focus states cannot override it */
.spf :where(button) { padding: 0; font-size: inherit; font-weight: inherit; }
.spf.spf button { font-family: inherit; line-height: inherit; margin: 0; border: 0; text-transform: none; letter-spacing: normal; text-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.spf.spf button, .spf.spf button:hover, .spf.spf button:focus, .spf.spf button:active { color: var(--spf-fg, inherit); background: var(--spf-bg, transparent); background-image: none; }
.spf.spf a, .spf.spf a:hover, .spf.spf a:focus { color: var(--spf-lc, inherit); text-decoration: none; background: none; }
.spf :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spf .in { max-width: 1248px; margin-inline: auto; padding-inline: var(--spf-gutter, 0px); }
.spf .eyebrow { color: var(--ink-2); font: 500 .8125rem/1.3 var(--mono); letter-spacing: .02em; }
.spf .ref { font: 500 .8125rem/1.3 var(--mono); color: var(--ink); white-space: nowrap; }
.spf .ref--big { font-size: .9375rem; }
.spf a.ref { --spf-lc: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.spf a.ref:hover { text-decoration-color: var(--ink); }
.spf .lab { color: var(--muted); font-size: .8125rem; font-weight: 500; }

.spf .btn { font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; white-space: nowrap; transition: background-color .2s, box-shadow .2s, transform .16s var(--ease); }
.spf .btn--solid { --spf-bg: var(--accent); --spf-fg: #fff; }
.spf .btn--line { box-shadow: inset 0 0 0 1px var(--rule-strong); }
.spf .btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .spf .btn--solid:hover { --spf-bg: var(--accent-hover); } .spf .btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); } }

/* page header (widget only; the mock has its own opener) */
.spf .spf__head { max-width: 1248px; margin-inline: auto; padding-block: clamp(8px, 2vw, 16px) clamp(20px, 3vw, 32px); padding-inline: var(--spf-gutter, 0px); }
.spf .spf__head .eyebrow { display: block; }
.spf .spf__title { margin-top: 14px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.spf .spf__lede { margin-top: 12px; max-width: 62ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }

/* implant bar */
/* A shade darker than the page, so the bar stays clear over the white cards while scrolling. The tint runs to the screen
   edges (the script measures --spf-bl/--spf-br, the gaps to each edge) and casts a soft shadow once the bar is stuck. */
.spf .ibar { position: sticky; top: var(--spf-top, 0px); z-index: 20; isolation: isolate; }
.spf .ibar::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--spf-bl, 0px)); right: calc(-1 * var(--spf-br, 0px)); z-index: -1; background: rgba(231, 237, 237, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--rule); transition: box-shadow .2s; }
.spf .ibar.is-stuck::before { box-shadow: 0 12px 28px -16px rgba(14, 18, 19, .32); }
.spf .ibar .tabs { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.spf .ibar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 14px; }
/* implant picker: the button in the bar shows the chosen implant and opens the drawer */
.spf.spf .ipick { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: min(100%, 300px); max-width: 100%; min-height: 60px; padding: 8px 8px 8px 8px; border-radius: 16px; --spf-bg: var(--bg); box-shadow: inset 0 0 0 1px var(--rule-strong); text-align: left; white-space: normal; transition: box-shadow .2s; }
.spf .ipick--empty { box-shadow: inset 0 0 0 2px var(--accent); }
@media (hover: hover) and (pointer: fine) { .spf .ipick:hover { box-shadow: inset 0 0 0 1px var(--ink); } .spf .ipick--empty:hover { box-shadow: inset 0 0 0 2px var(--accent-hover); } }
.spf .ipick__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--wash); color: var(--accent); }
.spf .ipick__m { display: grid; flex: 1 1 auto; min-width: 0; padding-right: 8px; }
.spf .ipick__k { color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.3; }
.spf .ipick__m b { color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.spf .ipick__m > span:not(.ipick__k):not(.ref) { color: var(--ink-2); font-size: .8125rem; line-height: 1.35; }
.spf .ipick__m .ref { color: var(--ink-2); font-size: .75rem; }
.spf .ipick__c { display: inline-flex; align-items: center; flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; }
.spf .ipick--empty .ipick__c { background: var(--accent); }
.spf .none--pick { display: grid; justify-items: start; gap: 14px; padding: 28px; border-radius: 18px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

/* implant drawer: a side sheet (a bottom sheet on phones) with every implant by family, diameter and length */
.spf.spf dialog.idr { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); overflow: hidden; font: 400 1rem/1.5 var(--sans); }
.spf dialog.idr::backdrop { background: transparent; }
.spf dialog.idr:not([open]) { display: none; }
.spf .idr__scrim { position: absolute; inset: 0; background: rgba(14, 18, 19, .36); opacity: 0; transition: opacity .3s var(--ease); }
.spf .idr.is-in .idr__scrim { opacity: 1; }
.spf .idr__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(720px, 100%); background: var(--bg); box-shadow: -24px 0 64px rgba(14, 18, 19, .18); transform: translateX(100%); transition: transform .4s var(--ease); }
.spf .idr.is-in .idr__panel { transform: none; }
.spf .idr__h { flex: none; padding: 20px 28px 0; border-bottom: 1px solid var(--line); }
.spf .idr__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spf .idr__top h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.spf .idr__x { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-strong); font-size: .8125rem; font-weight: 600; }
.spf .idr__s { position: relative; margin-top: 14px; color: var(--muted); }
.spf .idr__s svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.spf.spf .idr__s input { display: block; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 16px 0 44px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: none; outline-offset: 2px; font: 500 1rem/1 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.spf.spf .idr__s input::placeholder { color: var(--muted); opacity: 1; }
.spf .idr__nav { display: flex; gap: 6px; margin-inline: -28px; padding: 12px 28px 14px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.spf .idr__nav::-webkit-scrollbar { display: none; }
.spf .idr__nav button { flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); font-size: .8125rem; font-weight: 600; --spf-fg: var(--ink-2); transition: background-color .15s, color .15s; }
.spf .idr__nav button.is-on { --spf-bg: var(--ink); --spf-fg: #fff; box-shadow: none; }
.spf .idr__b { flex: 1 1 auto; min-height: 0; padding: 0 28px 48px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.spf .igrp { margin: 28px 0 0; color: var(--muted); font: 500 .75rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.spf .ifam { padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.spf .ifam:last-of-type { border-bottom: 0; }
.spf .ifam__h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.spf .ifam__h h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.spf .ifam__h p { color: var(--ink-2); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.spf .irow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; padding: 4px 0; }
.spf .irow__d { padding-top: 10px; color: var(--ink); font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spf .irow__ls { display: flex; flex-wrap: wrap; gap: 6px; }
.spf.spf .ilen { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 50px; padding: 4px 4px 9px; border-radius: 12px; --spf-bg: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); white-space: nowrap; transition: box-shadow .15s, background-color .15s; }
@media (hover: hover) and (pointer: fine) { .spf .ilen:hover { box-shadow: inset 0 0 0 1px var(--ink); } .spf .iplat:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.spf.spf .ilen.is-on { --spf-bg: var(--wash); box-shadow: inset 0 0 0 2px var(--accent); }
.spf .ilen:active { transform: scale(.96); }
.spf .ilen__fig { display: flex; align-items: flex-start; justify-content: center; box-sizing: content-box; width: 100%; padding: 6px 0; border-radius: 8px; background: var(--tile); }
.spf .ilen__im { position: relative; display: block; flex: none; overflow: hidden; }
.spf .ilen__im img { position: absolute; display: block; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.spf .ilen__im--bar { border-radius: 2px 2px 45% 45% / 2px 2px 14% 14%; background: var(--rule-strong); }
.spf .ilen__n { color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.spf .ilen__r { display: none; color: var(--ink-2); font: 500 .6875rem/1 var(--mono); }
.spf .is-q .ilen__r { display: block; }
.spf.spf .is-q .ilen { padding-inline: 10px; }
.spf .iplats { display: grid; gap: 8px; }
.spf.spf .iplat { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; --spf-bg: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); text-align: left; white-space: normal; }
.spf.spf .iplat.is-on { --spf-bg: var(--wash); box-shadow: inset 0 0 0 2px var(--accent); }
.spf .iplat b { display: block; font-size: .9375rem; font-weight: 600; }
.spf .iplat span span { display: block; color: var(--ink-2); font-size: .8125rem; }
.spf .ifam--other { padding-top: 12px; }
.spf .idr__none { display: grid; gap: 6px; margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.spf .idr__none[hidden] { display: none; }

.spf .ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.spf .ex button { min-height: 32px; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); font: 500 .75rem/1 var(--mono); --spf-fg: var(--ink-2); }
.spf .ex button:hover { box-shadow: inset 0 0 0 1px var(--ink); --spf-fg: var(--ink); }
.spf .implant { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 0; }
.spf .implant > div { display: grid; min-width: 0; }
.spf .implant b { font-weight: 600; font-size: .9375rem; }
.spf .implant span { color: var(--ink-2); font-size: .8125rem; }
.spf .implant strong { color: var(--accent); font-weight: 600; }
.spf .implant .warn { color: var(--gap-ink); }
.spf .implant .warn a { text-decoration: underline; --spf-lc: var(--accent); }
.spf .implant .hint { color: var(--ink-2); }
.spf .ibar__tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.spf .tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); }
.spf .tabs button { min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: .9375rem; font-weight: 600; --spf-fg: var(--ink-2); }
.spf .tabs button[aria-selected="true"] { --spf-bg: var(--ink); --spf-fg: #fff; }
.spf .tabs button em { font-style: normal; font: 500 .75rem var(--mono); color: var(--muted); margin-right: 6px; }
.spf .tabs button[aria-selected="true"] em { color: #c9d1d3; }
.spf .gapsw { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ink-2); cursor: pointer; }
.spf .gapsw input { width: 18px; height: 18px; margin: 0; accent-color: var(--gap-line); }

/* layout */
.spf .layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-block: 28px 120px; }
.spf .main { min-width: 0; }
/* filter rows sit on a tinted panel (same tone as the implant bar) so they stand out from the white page; options are white chips on it */
.spf .filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 20px; padding: 14px 16px; border-radius: 18px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--rule); }
.spf .kopt, .spf .flt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.spf .seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.spf .seg button { min-height: 34px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); font-size: .8125rem; font-weight: 600; --spf-fg: var(--ink-2); font-variant-numeric: tabular-nums; }
.spf .seg button.is-on { --spf-bg: var(--ink); --spf-fg: #fff; box-shadow: none; }
.spf .filters .seg button:not(.is-on), .spf .kopts .seg button:not(.is-on) { --spf-bg: var(--bg); }

/* B: stages and families */
.spf .stage { padding-block: 22px 8px; border-top: 1px solid var(--line); }
.spf .stage:first-child { border-top: 0; padding-top: 0; }
.spf .stage__h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; margin-bottom: 12px; }
.spf .stage__h h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
.spf .stage__h p { grid-column: 1; color: var(--ink-2); font-size: .9375rem; }
.spf .stage__n { grid-column: 2; grid-row: 1; align-self: center; color: var(--muted); font: 500 .8125rem var(--mono); }
.spf .fams { display: grid; gap: 8px; }
.spf .fam { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.spf .fam h4 { font-size: .9375rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.spf .fam h4 a { --spf-lc: var(--ink); }
.spf .fam h4 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.spf .fam__s { color: var(--muted); font-size: .8125rem; }
.spf .fam__m { min-width: 0; }
.spf .fam__r { display: grid; justify-items: end; gap: 4px; text-align: right; }
.spf .fam__z { color: var(--ink-2); font-size: .8125rem; }
.spf .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.spf .chip { min-height: 28px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); font-size: .75rem; font-weight: 600; --spf-fg: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spf .chip.is-on { --spf-bg: var(--wash); --spf-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--teal); }
.spf .chip.is-dim { opacity: .45; }
.spf .shop { font-size: .75rem; font-weight: 600; color: var(--muted); }
.spf .shop.is-on { --spf-lc: var(--accent); color: var(--accent); }
.spf .shop.is-on::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--teal); vertical-align: 1px; }
.spf a.shop:hover { text-decoration: underline; text-underline-offset: 3px; }
.spf .add { min-height: 32px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-strong); font-size: .8125rem; font-weight: 600; }
.spf .add:hover { box-shadow: inset 0 0 0 1px var(--ink); }
/* photo tile: the mock paints a sprite here (mock CSS); the widget lays the product image over a light mineral tile, scaled by the part's bbox */
.spf .th { position: relative; display: block; flex: none; overflow: hidden; border-radius: 12px; background-color: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.spf .th img { display: block; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.spf .th img:not(.is-fit) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.spf .th img.is-fit { position: absolute; height: auto; }
.spf .th--none { background-color: var(--paper); background-image: repeating-linear-gradient(45deg, var(--paper) 0 6px, #fff 6px 12px); }
.spf .none { color: var(--muted); font-size: .9375rem; padding: 8px 0; }
.spf .sub { margin-top: 10px; border-radius: 16px; background: var(--plate); }
.spf .sub.is-gap { background: var(--gap-bg); box-shadow: inset 0 0 0 1px rgba(200, 149, 44, .35); }
.spf .sub__h { display: grid; width: 100%; gap: 2px; padding: 12px 14px; text-align: left; }
/* the theme's reset sets white-space: nowrap on every button; these buttons hold sentences */
.spf.spf .sub__h, .spf.spf .recipe { white-space: normal; overflow-wrap: anywhere; }
.spf .sub__h > span:first-child { font-weight: 600; font-size: .9375rem; }
.spf .sub__h > span:first-child::after { content: " ▸"; color: var(--muted); }
.spf .sub__h[aria-expanded="true"] > span:first-child::after { content: " ▾"; }
.spf .sub__h em { font-style: normal; font: 500 .75rem var(--mono); color: var(--muted); margin-left: 4px; }
.spf .sub__note { color: var(--gap-ink); font-size: .8125rem; }
.spf .sub .fams { padding: 0 10px 10px; }
.spf .fam--other, .spf .fam--unset { box-shadow: inset 0 0 0 1px rgba(200, 149, 44, .4); }
.spf .sub__note.is-plain { color: var(--ink-2); }
.spf .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.spf .tag { padding: 2px 8px; border-radius: 999px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: .6875rem; font-weight: 600; }
.spf .implant .th--plat, .spf .th--plat { display: grid; place-items: center; background: var(--ink); background-image: none; color: #fff; font: 500 .8125rem var(--mono); }

/* parts we have not confirmed (widget): collapsed, never shown as fitting */
.spf .more { margin-top: 28px; border-radius: 18px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); }
.spf .more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none; }
.spf .more > summary::-webkit-details-marker { display: none; }
.spf .more > summary::after { content: "▸"; color: var(--muted); }
.spf .more[open] > summary::after { content: "▾"; }
.spf .more > summary em { font-style: normal; font: 500 .75rem var(--mono); color: var(--muted); margin-left: 6px; }
.spf .more__b { display: grid; gap: 10px; padding: 0 12px 12px; }
.spf .more__p { padding: 0 4px; color: var(--ink-2); font-size: .875rem; }
.spf .more .fam { box-shadow: inset 0 0 0 1px var(--line); }

/* contact links (widget) */
.spf a.spf__contact { --spf-lc: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.spf a.spf__contact:hover { --spf-lc: var(--accent-hover); }

/* C: kits */
.spf .recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 20px; }
.spf .recipe { display: grid; gap: 4px; align-content: start; min-height: 44px; padding: 14px 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: box-shadow .2s; }
.spf .recipe b { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.spf .recipe span { color: var(--ink-2); font-size: .8125rem; line-height: 1.4; }
.spf .recipe.is-on { --spf-bg: var(--plate); box-shadow: inset 0 0 0 2px var(--accent); }
.spf .kopts { display: grid; gap: 12px; margin-bottom: 24px; padding: 16px; border-radius: 18px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--rule); }
.spf .kopt .lab { min-width: 118px; }
.spf .steps { display: grid; gap: 10px; counter-reset: s; }
.spf .step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
/* kit step x: leave the part out of the kit. The step stays on screen, greyed, with "Add back". */
.spf .step { position: relative; }
.spf .step--part .step__m > h4 { padding-right: 44px; }
.spf .step--part.is-skip .step__m > h4 { padding-right: 104px; }
.spf.spf .skip { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0; border: 0; border-radius: 999px; --spf-bg: var(--bg); --spf-fg: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-strong); font-size: .8125rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.spf.spf .skip.is-off { padding: 0 14px; --spf-fg: var(--ink); }
@media (hover: hover) and (pointer: fine) { .spf .skip:hover { box-shadow: inset 0 0 0 1px var(--ink); --spf-fg: var(--ink); } }
.spf .step.is-skip { background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); }
.spf .step.is-skip .step__n { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.spf .step.is-skip h4 { color: var(--muted); }
.spf .step.is-skip .step__m > :not(h4) { opacity: .45; }
.spf .step.is-skip .alts { pointer-events: none; }
.spf .skiptag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font-size: .6875rem; font-weight: 600; letter-spacing: 0; vertical-align: 2px; white-space: nowrap; }
.spf .step__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font: 500 .8125rem var(--mono); }
.spf .step__m { display: grid; gap: 8px; min-width: 0; }
.spf .step h4 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.spf .step__m > p { color: var(--ink-2); font-size: .875rem; }
.spf .pick { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--plate); }
.spf .pick__m { display: grid; gap: 2px; min-width: 0; }
.spf .pick__n { color: var(--ink-2); font-size: .8125rem; overflow-wrap: anywhere; }
.spf .pick__t { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spf .pick__q { font: 500 .9375rem var(--mono); color: var(--ink); }
.spf .alts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.spf .alts .lab { margin-right: 4px; }
.spf .alts .chip { font-family: var(--mono); font-weight: 500; }
.spf .note { color: var(--ink-2); font-size: .8125rem; padding-left: 12px; box-shadow: inset 2px 0 0 var(--rule); }
.spf .flag { padding: 2px 8px; border-radius: 999px; background: var(--gap-bg); color: var(--gap-ink); font-size: .75rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(200, 149, 44, .45); }
.spf .gapnote { font-size: .8125rem; color: var(--gap-ink); }
.spf .oknote { font-size: .8125rem; color: var(--ink-2); }
.spf .src { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--wash); color: var(--accent); font: 500 .6875rem/1.5 var(--mono); white-space: nowrap; vertical-align: 1px; }
.spf .gbox li .src { margin: 0 0 0 8px; }
.spf .step--info { background: var(--plate); box-shadow: none; }
.spf .step--info .step__n { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.spf .gapnote b { margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--gap-bg); box-shadow: inset 0 0 0 1px rgba(200, 149, 44, .45); font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; }
.spf .step--gap .step__n { background: #fff; color: var(--gap-ink); box-shadow: inset 0 0 0 1.5px var(--gap-line); }
.spf .step--gap { box-shadow: inset 0 0 0 1px rgba(200, 149, 44, .35); }
.spf .gapcard { padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--gap-line); background: var(--gap-bg); color: var(--gap-ink); font-size: .875rem; }
/* widget: a step that needs us, in neutral colours */
.spf .askus { color: var(--ink-2); font-size: .875rem; }
.spf .askcard { padding: 12px 14px; border-radius: 14px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: .875rem; }
.spf .step--ask .step__n { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.spf .kitbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: 18px; background: var(--paper); }
.spf .kitbar > span { color: var(--ink-2); font-size: .875rem; }
.spf .kitbar__b { display: flex; gap: 8px; flex-wrap: wrap; }

/* gaps summary (mock) */
.spf .gaps { display: grid; gap: 12px; margin-top: 32px; }
.spf .gaps:empty { display: none; }
.spf .gbox { padding: 20px; border-radius: 22px; }
.spf .gbox--miss { background: var(--gap-bg); box-shadow: inset 0 0 0 1px rgba(200, 149, 44, .35); }
.spf .gbox--ans { background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); }
.spf .gbox h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.spf .gbox--miss h3 { color: var(--gap-ink); }
.spf .gbox ul { display: grid; gap: 8px; }
.spf .gbox li { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 12px; font-size: .875rem; color: var(--ink-2); }
.spf .gbox li b { color: var(--ink); font-weight: 600; }
.spf.no-gaps .gaps { display: none; }

/* parts list */
.spf .aside { position: sticky; top: calc(var(--spf-top, 0px) + var(--spf-bar, 140px) + 16px); }
.spf .listbox { padding: 18px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.spf .listbox header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.spf .listbox h3 { font-size: 1.125rem; font-weight: 600; }
.spf .listcount { color: var(--muted); font: 500 .75rem var(--mono); }
.spf .plist { display: grid; gap: 6px; max-height: min(52vh, 460px); overflow: auto; }
.spf .plist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--plate); }
.spf .li__m { display: grid; min-width: 0; }
.spf .li__n { color: var(--ink-2); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spf .qty { display: inline-flex; align-items: center; gap: 6px; font: 500 .8125rem var(--mono); }
.spf .qty button { padding: 0; font: inherit; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.spf .empty { color: var(--muted); font-size: .875rem; }
.spf .listact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.spf .listact .btn { padding-inline: 16px; }
/* after Copy: the link to the bulk order pad on .shop */
.spf.spf a.btn[data-shop], .spf.spf a.btn[data-shop]:hover, .spf.spf a.btn[data-shop]:focus, .spf.spf a.btn[data-shop]:visited { gap: 6px; background: var(--spf-bg, transparent); color: var(--spf-fg, var(--ink)); text-decoration: none; }
.spf .copybox { width: 100%; height: 120px; margin-top: 10px; font: 500 .75rem var(--mono); border: 1px solid var(--rule); border-radius: 10px; padding: 8px; background: #fff; color: var(--ink); }
.spf .listclose { display: none; }
.spf .mbar { display: none; }
.spf .scrim { display: none; }
.spf .toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.spf .toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .spf .layout { grid-template-columns: minmax(0, 1fr); }
  .spf .aside { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 9990; padding: 0 max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); transform: translateY(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; pointer-events: none; }
  .spf.list-open .aside { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; pointer-events: auto; }
  .spf .listbox { max-height: 72vh; max-height: 72dvh; overflow: auto; box-shadow: 0 -10px 40px rgba(14, 18, 19, .16), inset 0 0 0 1px var(--line); }
  .spf .plist { max-height: 36vh; }
  .spf .mbar { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 9991; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; border-radius: 999px; --spf-bg: var(--ink); --spf-fg: #fff; font-weight: 600; }
  .spf.list-open .mbar { bottom: auto; top: max(12px, env(safe-area-inset-top, 0px)); }
  /* the widget shows the bar only while the finder is on screen, and a tap outside the sheet closes it */
  .spf[data-spf-public] .mbar { display: none; }
  .spf[data-spf-public].is-inview .mbar { display: flex; }
  .spf[data-spf-public].list-open .mbar { display: none; }
  .spf .scrim { position: fixed; inset: 0; z-index: 9989; background: rgba(14, 18, 19, .32); border-radius: 0; }
  .spf.list-open .scrim { display: block; }
  .spf .listclose { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-strong); font-size: .8125rem; font-weight: 600; }
  .spf .listbox header { align-items: center; }
  .spf .implant { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .spf .ibar { position: relative; top: auto; }
  .spf .ibar__tabs { flex-wrap: wrap; }
  .spf.spf .ipick { width: 100%; min-width: 0; }
  .spf .idr__panel { top: auto; left: 0; right: 0; width: 100%; height: 92vh; height: 92dvh; border-radius: 20px 20px 0 0; box-shadow: 0 -24px 64px rgba(14, 18, 19, .2); transform: translateY(100%); }
  .spf .idr__h { padding: 16px 16px 0; }
  .spf .idr__top h3 { font-size: 1.1875rem; }
  .spf .idr__nav { margin-inline: -16px; padding: 12px 16px; scroll-padding-inline: 16px; }
  .spf .idr__b { padding: 0 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .spf .irow { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 6px 0; }
  .spf .irow__d { padding-top: 0; }
  .spf .none--pick { padding: 20px; }
  .spf .tabs { width: 100%; } .spf .tabs button { flex: 1; padding: 0 8px; font-size: .875rem; }
  .spf .fam { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .spf .fam .th { width: 56px !important; height: 56px !important; }
  .spf .fam__r { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; text-align: left; }
  .spf .fam__r .add { justify-self: end; }
  .spf .pick { grid-template-columns: 48px minmax(0, 1fr); }
  .spf .pick .th { width: 48px !important; height: 48px !important; }
  .spf .pick__q { grid-column: 2; }
  .spf .step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .spf .step__n { width: 32px; height: 32px; }
  .spf .gbox li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spf .kopt .lab { min-width: 0; width: 100%; }
  .spf .stage__h { grid-template-columns: minmax(0, 1fr); }
  .spf .stage__n { grid-column: 1; grid-row: auto; justify-self: start; }
}
/* tap targets of at least 40 px on touch screens and phones */
@media (pointer: coarse), (max-width: 640px) {
  .spf .seg button, .spf .chip, .spf .add, .spf .ex button { min-height: 40px; }
  .spf .seg button, .spf .chip { padding-inline: 14px; }
  .spf .qty button { width: 40px; height: 40px; }
  .spf .sub__h { min-height: 48px; }
  .spf .fam__r a.shop, .spf .fam h4 a { display: inline-block; padding-block: 4px; }
  .spf a.ref { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .spf .aside, .spf .toast, .spf .btn, .spf .recipe, .spf .idr__panel, .spf .idr__scrim, .spf .ilen, .spf .ibar::before { transition: none; } .spf .btn:active, .spf .ilen:active { transform: none; } }
.spf .spf__msg { padding: 16px; border-radius: 14px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: .9375rem; }
