/* Smilden pages built from content/*.html (tools/build_pages.py). Everything is scoped under .sm-page so the
   mirrored Elementor header/footer keep their own styles. */
.sm-page {
  --sm-navy: #0F2350; --sm-navy-2: #2D4A80; --sm-blue: #2A6EDB; --sm-blue-ink: #1D56B5; --sm-sky: #EAF3FF;
  --sm-ink: #1B2333; --sm-muted: #5A6578; --sm-line: #DCE3EE; --sm-bg: #FFFFFF; --sm-alt: #F5F8FC; --sm-gold: #E2B04A;
  color: var(--sm-ink); background: var(--sm-bg); font-family: Manrope, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; overflow-x: hidden;
}
.sm-page *, .sm-page *::before, .sm-page *::after { box-sizing: border-box; }
.sm-page h1, .sm-page h2, .sm-page h3 { font-family: Manrope, sans-serif; color: var(--sm-navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.sm-page h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.sm-page h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.sm-page h3 { font-size: 20px; font-weight: 700; }
.sm-page h3 small { display: block; font-size: 14px; font-weight: 600; color: var(--sm-muted); margin-top: 4px; }
.sm-page p { margin: 0 0 1em; }
.sm-page a { color: var(--sm-blue-ink); }
.sm-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sm-section { padding: 72px 0; }
.sm-section-alt { background: var(--sm-alt); }
.sm-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.sm-head p { color: var(--sm-muted); }
.sm-center { text-align: center; margin-top: 32px; }
.sm-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--sm-blue); margin-bottom: 12px; }

/* hero */
.sm-hero { background: linear-gradient(160deg, var(--sm-navy) 0%, var(--sm-navy-2) 100%); color: #fff; padding: 88px 0 72px; }
.sm-hero-sm { padding: 64px 0 52px; }
.sm-hero h1 { color: #fff; }
.sm-hero .sm-eyebrow { color: #9CC4FF; }
.sm-lead { font-size: 19px; color: #D8E3F5; max-width: 640px; }
.sm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.sm-hero-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sm-hero-facts li { border-top: 2px solid rgba(255,255,255,.25); padding-top: 12px; }
.sm-hero-facts strong { display: block; color: #fff; font-size: 17px; }
.sm-hero-facts span { color: #B9C8E2; font-size: 14px; }

/* buttons & links */
.sm-btn { display: inline-block; padding: 14px 26px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 16px; transition: transform .15s, background .15s; }
.sm-btn:hover { transform: translateY(-1px); }
.sm-page .sm-btn-primary { background: var(--sm-blue); color: #fff; }
.sm-page .sm-btn-primary:hover { background: var(--sm-blue-ink); }
.sm-page .sm-btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.sm-link { font-weight: 700; text-decoration: none; }
.sm-link:hover { text-decoration: underline; }

/* cards */
.sm-cards { display: grid; gap: 24px; }
.sm-cards-3 { grid-template-columns: repeat(3, 1fr); }
.sm-cards-2 { grid-template-columns: repeat(2, 1fr); }
.sm-card { position: relative; background: #fff; border: 1px solid var(--sm-line); border-radius: 16px; padding: 28px; }
.sm-section-alt .sm-card { background: #fff; }
.sm-card-featured { border: 2px solid var(--sm-blue); box-shadow: 0 12px 32px rgba(42,110,219,.14); }
.sm-tag { font-weight: 700; color: var(--sm-blue-ink); margin-bottom: 8px; }
.sm-badge { display: inline-block; background: var(--sm-gold); color: #3A2A00; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.sm-card .sm-badge { position: absolute; top: -12px; left: 24px; }
.sm-split .sm-badge, .sm-table .sm-badge { margin-bottom: 10px; }
.sm-xsec { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 18px; }
.sm-xsec text { font: 600 11px Manrope, sans-serif; fill: var(--sm-muted); }
.sm-arch { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }

/* split layouts */
.sm-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.sm-split-feature { grid-template-columns: .8fr 1.2fr; }
.sm-figure { background: var(--sm-sky); border-radius: 20px; padding: 32px; }
.sm-section-alt .sm-figure { background: #fff; }

.sm-checks { list-style: none; padding: 0; margin: 0 0 20px; }
.sm-checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.sm-checks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--sm-blue); border-bottom: 2.5px solid var(--sm-blue); transform: rotate(-45deg); }

.sm-features { display: grid; gap: 20px; margin-top: 16px; }
.sm-features h3 { margin-bottom: 4px; }
.sm-features p { color: var(--sm-muted); margin: 0; }

/* steps */
.sm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.sm-steps-4 { grid-template-columns: repeat(4, 1fr); }
.sm-steps li { background: #fff; border: 1px solid var(--sm-line); border-radius: 16px; padding: 28px; }
.sm-steps li > span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sm-sky); color: var(--sm-blue-ink); font-weight: 800; margin-bottom: 14px; }
.sm-steps p { color: var(--sm-muted); margin: 0; }
.sm-scanners { text-align: center; color: var(--sm-muted); font-weight: 600; margin-top: 28px; }
.sm-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sm-chips li { background: #fff; border: 1px solid var(--sm-line); border-radius: 999px; padding: 10px 20px; font-weight: 700; color: var(--sm-navy); }

/* table */
.sm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--sm-line); border-radius: 16px; }
.sm-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; font-size: 15px; }
.sm-table th, .sm-table td { padding: 16px 18px; border-bottom: 1px solid var(--sm-line); text-align: left; vertical-align: top; }
.sm-table thead th { background: var(--sm-navy); color: #fff; font-size: 16px; }
.sm-table thead th.sm-col-featured { background: var(--sm-blue); }
.sm-table tbody th { color: var(--sm-muted); font-weight: 700; width: 16%; }
.sm-table td.sm-col-featured { background: #F1F7FF; }
.sm-table thead .sm-badge { display: block; width: max-content; margin-top: 6px; }

/* rx */
.sm-rx { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 10px; }
.sm-rx li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: #fff; border: 1px solid var(--sm-line); border-radius: 12px; padding: 14px 18px; }
.sm-rx strong { color: var(--sm-navy); }

/* cta band */
.sm-cta { background: linear-gradient(160deg, var(--sm-navy), var(--sm-navy-2)); color: #fff; text-align: center; padding: 64px 0; }
.sm-cta h2 { color: #fff; }
.sm-cta p { color: #D8E3F5; }

@media (max-width: 900px) {
  .sm-cards-3, .sm-steps, .sm-steps-4 { grid-template-columns: 1fr 1fr; }
  .sm-split, .sm-split-feature { grid-template-columns: 1fr; gap: 28px; }
  .sm-split-feature .sm-figure { order: 2; }
}
@media (max-width: 640px) {
  .sm-page { font-size: 16px; }
  .sm-br { display: none; }
  .sm-section { padding: 52px 0; }
  .sm-hero { padding: 56px 0 48px; }
  .sm-cards-3, .sm-cards-2, .sm-steps, .sm-steps-4, .sm-hero-facts { grid-template-columns: 1fr; }
  .sm-rx li { grid-template-columns: 1fr; gap: 2px; }
  .sm-card { padding: 22px; }
}

/* Hello theme boxes .site-main on non-Elementor pages; our pages are full-bleed */
body:not([class*=elementor-page-]) .site-main.sm-page, .site-main.sm-page { max-width: none; width: 100%; padding: 0; margin: 0; }

/* product photos */
.sm-photo { margin: 0 0 18px; border-radius: 14px; overflow: hidden; text-align: center; padding: 14px 14px 10px; }
.sm-photo img { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
.sm-photo figcaption { font-size: 12px; font-weight: 600; color: var(--sm-muted); margin-top: 6px; }
.sm-photo-soft { background: #ECF5FD; }
.sm-photo-dual { background: #FEF5EC; }
.sm-photo-hard { background: #FEF5EC; }
.sm-photo-dark { background: radial-gradient(circle at 50% 40%, #2D4A80, var(--sm-navy) 75%); padding: 28px; margin: 0; }
.sm-photo-dark img { max-width: 440px; -webkit-mask-image: none; mask-image: none; }
.sm-figure:has(.sm-photo-dark) { background: none; padding: 0; }
.sm-figure .sm-photo:not(.sm-photo-dark) { margin: 0; }

.sm-spec { display: inline-block; background: #F1F7FF; border: 1px solid #CFE1FB; border-radius: 10px; padding: 8px 14px; color: var(--sm-navy); }

/* full-service lab layout (J 2026-10-05) */
.sm-card-link { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.sm-card-link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,35,80,.10); }
.sm-card-link h3 { margin-top: 4px; }
.sm-card-link p { color: var(--sm-muted); }
.sm-products .sm-photo, .sm-thumb { height: 180px; margin: 0 0 18px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.sm-products .sm-photo { padding: 8px; }
.sm-products .sm-photo img { max-height: 150px; width: auto; }
.sm-products .sm-photo figcaption { display: none; }
.sm-thumb { background: var(--sm-sky); }
.sm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-thumb-dark { background: radial-gradient(circle at 50% 40%, #2D4A80, var(--sm-navy) 75%); }
.sm-thumb-dark img { object-fit: contain; padding: 10px; }
.sm-thumb-icon span { font: 800 44px Manrope, sans-serif; color: var(--sm-blue); letter-spacing: -.02em; opacity: .85; }
.sm-thumb-icon { background: linear-gradient(135deg, #EAF3FF, #D7E8FD); }

.sm-shot { margin: 0; border-radius: 16px; overflow: hidden; background: #0F2350; position: relative; }
.sm-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-shot figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(15,35,80,.78); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.sm-shot-dark { background: #000; }
.sm-shot-dark img { object-fit: contain; }
.sm-gallery { display: grid; gap: 14px; }
.sm-gallery > .sm-shot { aspect-ratio: 3 / 2; }
.sm-gallery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sm-gallery-row .sm-shot { aspect-ratio: 1 / 1; }
.sm-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sm-gallery-grid .sm-shot { aspect-ratio: 4 / 3; }

.sm-band { background: var(--sm-sky); border-top: 1px solid #D3E4FB; border-bottom: 1px solid #D3E4FB; padding: 56px 0; }
.sm-band p { color: var(--sm-muted); max-width: 680px; margin: 0; }
.sm-band .sm-btn-ghost { color: var(--sm-blue-ink); border-color: var(--sm-blue); background: #fff; }
.sm-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.sm-chips a { color: var(--sm-navy); text-decoration: none; }

@media (max-width: 900px) {
  .sm-band-inner { flex-direction: column; align-items: flex-start; }
  .sm-gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sm-gallery-grid { grid-template-columns: 1fr; }
}

/* Products dropdown: open on hover/keyboard focus even when the mirrored Elementor menu script doesn't fire */
@media (min-width: 1025px) {
  nav.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
  nav.elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu { display: block !important; }
  nav.elementor-nav-menu--main .sub-menu { min-width: 230px; background: #fff; border-radius: 12px; padding: 8px 0; box-shadow: 0 14px 34px rgba(15,35,80,.16); z-index: 50; }
  nav.elementor-nav-menu--main .sub-menu a.elementor-sub-item { padding: 10px 18px; white-space: nowrap; }
}

/* product shots on a light stage (SHINING 3D scanners) */
.sm-thumb-product { background: linear-gradient(180deg, #F4F7FB, #E6EDF6); }
.sm-thumb-product img { object-fit: contain; padding: 14px; }
.sm-card-product { text-align: center; }
.sm-card-product .sm-thumb { height: 240px; }
.sm-card-product h3 { margin: 0; }
.sm-note { text-align: center; color: var(--sm-muted); font-size: 13px; margin-top: 18px; }
/* grid centring let tall images overflow the 180px thumb; flex keeps height:100% definite */
.sm-thumb { display: flex; align-items: center; justify-content: center; }
.sm-thumb img { min-height: 0; max-height: 100%; }

/* home hero over the B&W disc-changer photo (J 2026-10-05) */
.sm-hero-photo { position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(10,24,56,.96) 0%, rgba(15,35,80,.9) 45%, rgba(15,35,80,.55) 78%, rgba(15,35,80,.35) 100%),
              url(/_smilden/img/hero-disc-changer-bw.webp) right center / cover no-repeat, #0F2350; padding: 110px 0 88px; }
.sm-hero-photo .sm-wrap { position: relative; }
.sm-hero-photo .sm-hero-facts li { border-top-color: rgba(255,255,255,.3); }
@media (max-width: 900px) {
  .sm-hero-photo { background: linear-gradient(180deg, rgba(10,24,56,.92), rgba(15,35,80,.86)),
                   url(/_smilden/img/hero-disc-changer-bw.webp) center / cover no-repeat, #0F2350; padding: 72px 0 56px; }
}

/* about: timeline, 4-up gallery, portrait photo */
.sm-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid #CFE1FB; display: grid; gap: 22px; }
.sm-timeline li { position: relative; }
.sm-timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sm-blue); box-shadow: 0 0 0 4px #EAF3FF; }
.sm-timeline span { display: block; font: 800 15px Manrope, sans-serif; color: var(--sm-blue-ink); letter-spacing: .04em; text-transform: uppercase; }
.sm-timeline p { margin: 2px 0 0; color: var(--sm-ink); }
.sm-gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sm-gallery-grid-4 .sm-shot { aspect-ratio: 3 / 4; }
.sm-gallery-portrait .sm-shot-portrait { aspect-ratio: 3 / 4; max-width: 420px; margin: 0 auto; }
@media (max-width: 900px) { .sm-gallery-grid-4 { grid-template-columns: 1fr 1fr; } }
.sm-shot-light { background: #fff; }
.sm-shot-light img { object-fit: contain; }
.sm-thumb-light { background: #fff; border: 1px solid var(--sm-line); }
.sm-thumb-light img { object-fit: contain; padding: 8px; }
.sm-gallery-wide { margin-bottom: 28px; }
.sm-gallery-wide > .sm-shot { aspect-ratio: 21 / 9; }

/* FAQ */
.sm-faq { max-width: 860px; }
.sm-faq details { background: #fff; border: 1px solid var(--sm-line); border-radius: 12px; padding: 0 20px; margin: 0 0 10px; }
.sm-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--sm-navy); list-style: none; position: relative; padding-right: 28px; }
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--sm-blue); }
.sm-faq details[open] summary::after { content: "–"; }
.sm-faq details p { margin: 0 0 16px; color: var(--sm-muted); }

/* clinical guide */
.sm-meta { font-size: 13px; color: #B9C8E2; margin-top: 12px; }
.sm-section .sm-meta, .sm-refs .sm-meta { color: var(--sm-muted); }
.sm-prose { max-width: 860px; }
.sm-prose h2 { margin-top: 8px; }
.sm-prose .sm-checks li { margin: 12px 0; }
.sm-page sup, .sm-page a[href^="#ref-"] { font-size: 12px; font-weight: 700; text-decoration: none; vertical-align: super; margin-left: 1px; }
.sm-table-guide tbody th { width: 34%; color: var(--sm-navy); font-weight: 600; }
.sm-guide-cards .sm-card p { font-size: 15px; }
.sm-refs ol { padding-left: 22px; font-size: 14px; color: var(--sm-muted); }
.sm-refs li { margin: 6px 0; scroll-margin-top: 140px; }
.sm-refs li:target { background: #FFF7E0; }

.sm-section-tight { padding: 8px 0 32px; }
.sm-shot figcaption.sm-caption-lg { left: 14px; right: 14px; bottom: 14px; font-size: 14px; padding: 8px 14px; border-radius: 12px; line-height: 1.35; text-align: center; }

.sm-spec-hero { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; margin-top: 4px; }

/* Shipping line under the Rx lists (J 2026-10-07: standard USPS included, rush add-on) */
.sm-ship { max-width: 760px; margin: 18px auto 22px; padding: 14px 18px; border-radius: 12px; background: #EAF3FD; border: 1px solid #CFE2F8; color: #0F2350; text-align: center; font-size: 15px; line-height: 1.5; }

/* Precision edge (draft 2026-10-08): CEJ diagram + three steps */
.sm-edge-fig { margin: 0; }
.sm-edge-svg { display: block; width: 100%; height: auto; }
.sm-edge-steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: e; display: grid; gap: 12px; }
.sm-edge-steps li { position: relative; padding-left: 44px; color: var(--sm-ink, #26324A); line-height: 1.5; }
.sm-edge-steps li::before { counter-increment: e; content: counter(e); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #0F2350; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.sm-edge-steps strong { display: block; color: #0F2350; }
.sm-edge-gallery { display: grid; gap: 14px; }
.sm-edge-gallery figure { margin: 0; }
.sm-edge-gallery img { display: block; width: 100%; height: auto; border-radius: 14px; }
.sm-edge-gallery figcaption { font-size: 13px; color: #4A5872; margin-top: 6px; }
.sm-edge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.sm-edge-row .sm-edge-fig { background: #fff; border-radius: 14px; padding: 6px; }
.sm-figure:has(.sm-edge-gallery) { padding: 16px; }
.sm-cards-single { grid-template-columns: minmax(0, 560px); justify-content: center; }
