/* ==========================================================================
   Page system: craft pages, guides, FAQ, policies, Make Lab info sections.
   Enqueued from inc/art.php after app.css (and after lab.css on /quote/).
   Page-specific rules are scoped under .sm-pg; the square-board quarters are global because
   sm_ph() prints them on every page (the honesty pills live in app.css).
   ========================================================================== */

/* ---------- square 2x2 sample boards (art-board-*): one cell covers the box, gutters cropped ---------- */
.sm-ph--qs > img { width: 206%; height: 206%; left: -1.5%; top: -1.5%; object-fit: fill; }
.sm-ph--qs.sm-ph--tr > img, .sm-ph--qs.sm-ph--br > img { left: -104.5%; }
.sm-ph--qs.sm-ph--bl > img, .sm-ph--qs.sm-ph--br > img { top: -104.5%; }
@supports (width: 1cqw) {
  .sm-ph--qs { --qw: calc(max(100cqw, 100cqh) * 2.06); }
  .sm-ph--qs.sm-ph--q > img { width: var(--qw); height: var(--qw); left: calc(50cqw - var(--qx) * var(--qw)); top: calc(50cqh - var(--qy) * var(--qw)); }
}
.sm-ph--qs.sm-ph--qw > img { width: 309%; height: 206%; left: -27.25%; }
.sm-ph--qs.sm-ph--qw.sm-ph--tr > img, .sm-ph--qs.sm-ph--qw.sm-ph--br > img { left: -181.75%; }
@supports (width: 1cqw) {
  .sm-ph--qs.sm-ph--qw { --qw: calc(max(100cqw, 150cqh) * 2.06); }
  .sm-ph--qs.sm-ph--qw.sm-ph--q > img { width: var(--qw); height: calc(var(--qw) / 1.5); left: calc(50cqw - var(--qx) * var(--qw)); top: calc(50cqh - var(--qy) * var(--qw) / 1.5); } /* width + left too: the % fallbacks above are only right in a square box */
}

/* ---------- accordion (<details class="sm-acc">): look and motion live in app.css; page tweaks only ---------- */
.sm-pg .sm-acc > summary h3 { margin: 0; font: inherit; line-height: 1.3; letter-spacing: 0; color: inherit; font-variation-settings: normal; }
.sm-pg .sm-acc > summary .sm-pchip { width: 40px; height: 40px; }
.sm-pg .sm-acc__b a { color: var(--laser-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- craft pages: hero A ---------- */
.sm-pg--craft .sm-svchero__lead { margin: -4px 0 20px; max-width: 26em; color: #c9d6ea; font-size: clamp(1.05rem, 2.8vw, 1.2rem); line-height: 1.45; }
@media (max-width: 959px) {
  .sm-pg--craft .sm-svchero__ph { aspect-ratio: auto; width: 100%; height: min(46vh, 125vw); height: min(46svh, 125vw); }
  .sm-pg--craft .sm-svchero__in { margin-top: -56px; }
}
@media (min-width: 960px) {
  .sm-pg--craft .sm-svchero__h { font-size: clamp(2.4rem, 3.6vw, 3.4rem); max-width: 8.6em; }
}
/* spec strip pulled up over the hero edge */
.sm-pg-spec { position: relative; z-index: 3; margin-top: -20px; }
@media (min-width: 960px) { .sm-pg-spec { margin-top: -44px; } }
.sm-pg-spec .sm-specstrip { border: 0; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift-2); }
.sm-pg-spec .sm-specstrip > div { padding: 12px 16px; }
.sm-pg .sm-specstrip dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c, var(--laser)); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- sample cards: photo, caption, material, one action ---------- */
.sm-pg .sm-samples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 768px) { .sm-pg .sm-samples { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 768px) { .sm-pg .sm-samples:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sm-pg .sm-samples:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sm-pg .sm-samples > li { display: flex; flex-direction: column; margin: 0; }
.sm-pg .sm-samples .sm-ph { box-shadow: var(--lift); }
.sm-samples__t { margin: 12px 0 2px; font-size: 1rem; line-height: 1.2; letter-spacing: -.01em; font-variation-settings: 'wdth' 106; }
@media (min-width: 768px) { .sm-samples__t { font-size: 1.1rem; } }
.sm-samples__m { margin: 0 0 4px; font-size: var(--fs-sm); color: var(--ink-3); }
.sm-samples__a { margin-top: auto; gap: 6px; align-self: flex-start; } /* a pill button (sm-btn--sm sm-btn--line), same as the Christmas budget cards */
.sm-samples__img { display: block; border-radius: inherit; } /* the photo opens the same action as the button */

/* ---------- how it's done: loop + two photos, numbered ---------- */
.sm-pg-how__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.sm-pg-how__row > li:first-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .sm-pg-how__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .sm-pg-how__row > li:first-child { grid-column: auto; } }
.sm-pg-how__f { margin: 0; }
.sm-pg-how__f > .sm-ph, .sm-pg-loop { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; box-shadow: var(--lift); }
.sm-pg-loop { display: grid; background: var(--lab); }
.sm-pg-loop > * { grid-area: 1 / 1; width: 100%; height: 100%; }
.sm-pg-loop > .sm-ph { border-radius: 0; aspect-ratio: auto; }
.sm-pg-loop svg { display: block; width: 100%; height: 100%; }
.sm-pg-how__f figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-size: var(--fs-ui); font-weight: 650; line-height: 1.35; color: var(--ink-2); }
.sm-pg-how__f figcaption a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c, var(--laser)); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
.sm-pg-how__more { max-width: none; margin-top: 20px; }
.sm-pg-how__more ol { margin: 0; padding-left: 1.2em; }
.sm-pg-how__more li { margin: .4em 0; }

/* ---------- FAQ beside the materials (phone: materials first) ---------- */
.sm-pg-faq { padding-top: 0; }
.sm-pg-faq__list { max-width: none; }
.sm-pg-faq__list > h2:first-child { margin: 0 0 20px; font-size: clamp(1.55rem, 5vw, 2.4rem); line-height: 1.02; letter-spacing: -.02em; }
.sm-pg-mats .sm-h3 { margin: 0 0 12px; }
.sm-pg-mats .sm-mats { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.sm-pg-mats .sm-mats span { font-size: var(--fs-xs); }
.sm-pg-mats__more { margin: 12px 0 0; font-size: var(--fs-ui); color: var(--ink-2); }
.sm-pg-mats__more a { color: var(--laser-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
@media (max-width: 959px) { .sm-pg-faq .sm-pg-mats { order: -1; } }

/* ---------- real work: a rail on phone, one row from 960px ---------- */
.sm-pg-work { padding-top: 0; }
.sm-pg-work .sm-work { columns: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
.sm-pg-work .sm-work::-webkit-scrollbar { display: none; }
.sm-pg-work .sm-work__item { margin: 0; scroll-snap-align: start; }
.sm-pg-work .sm-work__btn img { aspect-ratio: 4 / 5; object-fit: cover; }
.sm-pg-work .sm-work__btn { height: 100%; display: flex; flex-direction: column; }
.sm-pg-work .sm-work__cap { flex: 1; }
@media (min-width: 768px) { .sm-pg-work .sm-work { grid-auto-columns: calc(33.333% - 8px); margin: 0; padding: 4px 0 12px; scroll-padding-inline: 0; } }
@media (min-width: 960px) { .sm-pg-work .sm-work { grid-auto-columns: minmax(0, 1fr); overflow: visible; gap: 16px; } }

/* ---------- guides + policies: one centred reading column ---------- */
.sm-pg--guide, .sm-pg--policy:not(.sm-helppg) { max-width: 864px; }
.sm-pg--guide .sm-prose, .sm-pg--policy .sm-prose { max-width: none; }
.sm-pg__updated { margin: 6px 0 0; font-size: var(--fs-ui); }
.sm-pg__act { margin: 12px 0 0; }
.sm-pg-guide > .sm-short:first-child { margin-top: 8px; }
.sm-pg-guide :is(.sm-pg-trio, .sm-pg-jobs, .sm-pg-rail, .sm-pg-fams, .sm-pg-swatch) ul { list-style: none; margin: 0; padding: 0; }
.sm-pg-guide :is(.sm-pg-trio, .sm-pg-jobs, .sm-pg-rail, .sm-pg-fams, .sm-pg-swatch) li { margin: 0; }
.sm-pg-guide :is(.sm-tile, .sm-pg-prod, .sm-pg-trio a, .sm-pg-swatch__ex, .sm-pg-fam__h a, .sm-btn) { text-decoration: none; }
.sm-pg-guide .sm-cta-row .sm-btn--line { color: var(--ink); }
.sm-pg-guide > h2 { margin-top: 1.6em; }

/* the cut-vs-engrave picture with its two captions */
.sm-pg-cve { margin: 8px 0 24px; }
.sm-pg-cve .sm-ph { border-radius: var(--r-lg); box-shadow: var(--lift); }
.sm-pg-cve figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; font-size: var(--fs-ui); line-height: 1.35; color: var(--ink-2); }
.sm-pg-cve b { display: block; font-size: 1.05rem; color: var(--ink); }

/* cost: one illustration over three prices */
.sm-pg-trio { margin: 8px 0 28px; }
.sm-pg-trio .sm-ph { border-radius: var(--r) var(--r) 0 0; }
.sm-pg-trio ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--lift); }
.sm-pg-trio a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 14px; color: var(--ink) !important; text-align: center; font-size: var(--fs-ui); font-weight: 650; line-height: 1.25; }
.sm-pg-trio b { font-size: 1.2rem; }
.sm-pg-trio a:hover span { text-decoration: underline; }

/* cost: real prices rail */
.sm-pg-rail { margin: 8px 0 24px; }
.sm-pg-prod { display: block; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--lift); color: var(--ink) !important; }
.sm-pg-prod .sm-ph { border-radius: 0; }
.sm-pg-prod__n { display: block; padding: 10px 12px 0; font-weight: 700; font-size: var(--fs-ui); line-height: 1.25; }
.sm-pg-prod__p { display: block; padding: 2px 12px 12px; font-size: var(--fs-md); }

/* cut vs engrave: job tiles */
.sm-pg-jobs { margin: 8px 0 24px; }
.sm-pg-jobs ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sm-pg-jobs__b { position: absolute; left: 10px; top: 10px; z-index: 4; }

/* PLA vs ABS: two material cards */
.sm-pg-swatch { display: grid; gap: 16px; margin: 8px 0 24px; }
@media (min-width: 768px) { .sm-pg-swatch { grid-template-columns: 1fr 1fr; } }
.sm-pg-swatch__c { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--lift); }
.sm-pg-swatch__c > .sm-ph { border-radius: 0; }
.sm-pg-swatch__b { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.sm-pg-swatch__b h2 { margin: 0; font-size: 2rem; }
.sm-pg-swatch__b > p { margin: -8px 0 0; }
.sm-pg-swatch__b .sm-specstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; border: 0; box-shadow: inset 0 0 0 1px var(--edge); }
.sm-pg-swatch__ex { margin-top: auto; display: flex; align-items: center; gap: 12px; color: var(--ink) !important; font-weight: 650; font-size: var(--fs-md); line-height: 1.3; }
.sm-pg-swatch__ex .sm-pchip { width: 56px; height: 56px; }
.sm-pg-swatch__ex span { display: flex; flex-direction: column; }
.sm-pg-swatch__ex b { color: var(--laser-deep); font-size: var(--fs-ui); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .sm-pg--pla-vs-abs .sm-pg-guide table { display: none !important; } }

/* prepare your file: three families */
.sm-pg-fams { display: grid; gap: 20px; margin: 8px 0 28px; }
.sm-pg-fam { padding: 18px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); scroll-margin-top: calc(var(--top-h) + 16px); }
.sm-pg-fam__h { display: flex; align-items: center; gap: 14px; margin: 0 0 6px !important; font-size: 1.35rem; }
.sm-pg-fam__h .sm-pchip { width: 56px; height: 56px; }
.sm-pg-fam__h a { color: var(--ink) !important; }
.sm-pg-fam__h a:hover { text-decoration: underline !important; }
.sm-pg-fam__line { margin: 0 0 14px; }
.sm-pg-fam .sm-specstrip { border: 0; box-shadow: inset 0 0 0 1px var(--edge); }
:is(.sm-pg-swatch__b, .sm-pg-fam, .sm-pg-short) .sm-specstrip > div { padding-left: 16px; }
.sm-pg-fam__go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0 0; font-weight: 650; color: var(--ink); }
.sm-pg-dd { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.sm-pg-dd__c { margin: 0; padding: 12px 10px; border-radius: var(--r); background: var(--frost); text-align: center; }
.sm-pg-dd__c svg { width: 100%; max-width: 120px; height: auto; margin: 0 auto 6px; }
.sm-pg-dd__c figcaption { font-size: var(--fs-sm); line-height: 1.3; color: var(--ink-2); }
.sm-pg-dd__c b { display: block; margin-bottom: 2px; font-size: var(--fs-sm); }
.sm-pg-dd__c--do { box-shadow: inset 0 0 0 2px rgba(22,163,74,.35); }
.sm-pg-dd__c--do b { color: var(--ok); }
.sm-pg-dd__c--dont { box-shadow: inset 0 0 0 2px rgba(220,38,38,.28); }
.sm-pg-dd__c--dont b { color: var(--err); }

/* tables become labelled cards on phones (cells carry data-label from page.php) */
@media (max-width: 767px) {
  .sm-pg .sm-prose table:has(td[data-label]):not(.woocommerce-table--order-details) { display: block; background: none; border-radius: 0; overflow: visible; }
  .sm-pg .sm-prose table:has(td[data-label]):not(.woocommerce-table--order-details) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sm-pg .sm-prose table:has(td[data-label]):not(.woocommerce-table--order-details) tbody { display: block; }
  .sm-pg .sm-prose table:has(td[data-label]):not(.woocommerce-table--order-details) tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0 0 10px; padding: 12px 14px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); }
  .sm-pg .sm-prose table:has(td[data-label]):not(.woocommerce-table--order-details) td { display: block; padding: 0; border: 0; color: var(--ink); }
  .sm-pg .sm-prose table:has(td[data-label]):not(.woocommerce-table--order-details) td::before { content: attr(data-label); display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
  .sm-pg .sm-prose table:has(td[data-label]):not(.woocommerce-table--order-details) td:first-child { grid-column: 1 / -1; font-weight: 750; }
  .sm-pg .sm-prose table:has(td[data-label]):not(.woocommerce-table--order-details) td:first-child::before { display: none; }
  .sm-pg .sm-prose figure.wp-block-table { margin: 1em 0; }
}

/* ---------- FAQ: the short version, sticky topic chips, folded answers ---------- */
.sm-pg-short { margin: 0 0 12px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.sm-pg-short h2 { margin: 0 0 10px; font-size: 1.05rem; }
.sm-pg-short .sm-specstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; border: 0; box-shadow: inset 0 0 0 1px var(--edge); }
.sm-pg-short .sm-specstrip dd { font-size: var(--fs-md); font-weight: 700; } /* words, not numbers: the big readout size is for number strips */
.sm-pg-topics { position: sticky; top: var(--top-h); z-index: 5; margin: 0 -16px; padding: 10px 16px !important; background: color-mix(in srgb, var(--frost) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sm-pg--faq .sm-faqh { scroll-margin-top: calc(var(--top-h) + 72px); }
.sm-pg-faqlist { max-width: none; }
.sm-pg-faqlist > p:first-child { margin-top: 12px; }
@media (min-width: 960px) {
  .sm-pg-faqgrid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto auto 1fr; column-gap: 48px; align-items: start; }
  .sm-pg-short { grid-column: 1; grid-row: 1; }
  .sm-pg-topics { grid-column: 1; grid-row: 2 / span 2; top: calc(var(--top-h) + 24px); margin: 0; padding: 4px 0 !important; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; flex-wrap: wrap; }
  .sm-pg-faqlist { grid-column: 2; grid-row: 1 / span 3; }
  .sm-pg-faqlist > h2:first-of-type { margin-top: .6em; }
  .sm-pg--faq .sm-faqh { scroll-margin-top: calc(var(--top-h) + 16px); }
}

/* ---------- shipping card: the map, two help links, track an order ---------- */
.sm-pg-helplinks { list-style: none; margin: 0; padding: 0 16px; }
.sm-pg-helplinks a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-top: 1px solid var(--edge); font-weight: 650; color: var(--ink); }
.sm-pg-helplinks a::after { content: ""; width: 8px; height: 8px; border: solid var(--ink-3); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.sm-pg-helpgo { margin: 0; padding: 8px 16px 16px; }
@media (max-width: 959px) { .sm-helppg--shipping-policy .sm-helppg__side { order: 2; } .sm-helppg--shipping-policy .sm-pg-helplinks li:first-child a { border-top: 0; } }

/* account / track order */
.sm-pg-ordermsg { margin: 16px 0; }

/* ---------- Make Lab: info sections stay dark to the footer (D1) ---------- */
.sm-pg--lab { padding-bottom: 48px; }
.sm-pg--lab .sm-specstrip { margin: 20px 0 12px; border: 0; border-radius: var(--r); background: var(--lab-2); box-shadow: inset 0 0 0 1px var(--lab-line); }
.sm-pg--lab .sm-specstrip > div { padding-left: 16px; box-shadow: -1px 0 0 var(--lab-line), 0 -1px 0 var(--lab-line); }
.sm-pg--lab .sm-specstrip dd { color: #fff; }
.sm-pg--lab .sm-acc { background: var(--lab-2); box-shadow: inset 0 0 0 1px var(--lab-line); }
.sm-pg--lab .sm-acc > summary { color: #fff; min-height: 56px; }
.sm-pg--lab .lab-faq .sm-acc__b p { margin: 0; padding: 0; }
.sm-pg-lab__mats { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .sm-pg-lab__mats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.sm-pg-lab__mats li { position: relative; }
.sm-pg-lab__mats .sm-ph { box-shadow: inset 0 0 0 1px var(--lab-line); }
.sm-pg-lab__mats span { position: absolute; left: 8px; bottom: 8px; z-index: 2; max-width: calc(100% - 16px); padding: 4px 8px; border-radius: var(--r-xs); background: rgba(10,19,34,.78); color: #fff; font-size: var(--fs-sm); font-weight: 700; line-height: 1.25; }
.sm-pg-lab__more { margin: 14px 0 0; }
.sm-pg-lab__kinds { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 960px) { .sm-pg-lab__kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.sm-pg-lab__kinds > li { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--lab-2); box-shadow: inset 0 0 0 1px var(--lab-line); }
.sm-pg-lab__kinds > li > div { flex: 1; min-width: 0; }
.sm-pg-lab__kinds .sm-h3 { margin: 4px 0 2px; }
.sm-pg-lab__kinds .sm-spec { margin: 0 0 8px; color: var(--ink-2); }
.sm-pg-lab__kinds .sm-acc { margin: 0; background: rgba(255,255,255,.04); }
.sm-pg-lab__kinds .sm-acc > summary { min-height: 44px; padding: 8px 12px; font-size: var(--fs-ui); }
.sm-pg-lab__kinds .sm-acc__b { padding: 0 12px 12px; font-size: var(--fs-ui); }
.sm-pg-lab__prep { margin: 16px 0 0; }
.sm-pg--lab .lab-trust > div { border-top-color: rgba(160,190,230,.26); }
.sm-pg--lab .lab-pay span { background: var(--lab-2); color: #fff; box-shadow: inset 0 0 0 1px var(--lab-line); }
.sm-pg-bulk { margin: 4px 0 24px; padding: 14px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 650; }
.sm-pg-bulk a { color: var(--laser-2) !important; }

/* ---------- end-of-page block (.sm-next, inc/art.php sm_pg_end): the next question, door cards, one Message us line ---------- */
.sm-next { margin-top: 48px; padding: var(--sec) 0 calc(var(--sec) * .8); background: var(--ink); color: #dfe8f5; }
.sm-next .sm-h2 { margin: 0 0 20px; color: #fff; }
.sm-next__cards { list-style: none; margin-bottom: 0; }
.sm-next__cards > li { margin: 0; }
.sm-next .sm-tile { height: 100%; background: var(--lab-2); box-shadow: none; }
.sm-next .sm-ph { display: block; }
.sm-next .sm-tile__t { transition: background-color var(--dur-1) ease; }
.sm-next .sm-tile:focus-visible .sm-tile__t { background: var(--laser); }
@media (hover: hover) and (pointer: fine) { .sm-next .sm-tile:hover .sm-tile__t { background: var(--laser); } }
.sm-next__kc { background: radial-gradient(120% 100% at 50% 35%, #fff, var(--frost)); }
.sm-next .sm-next__kc > img.sm-kc-poster { width: 76%; height: auto; top: 44%; object-fit: contain; }
.sm-next__pair { display: grid; grid-template-columns: 1fr 1fr; }
.sm-next__pair > .sm-ph { border-radius: 0; }
.sm-next__line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 0; font-weight: 650; }
/* Message us on navy: a real button, white outline (orange stays with the page's one main action) */
.sm-next__line .sm-btn, .sm-bnext__line .sm-btn, .sm-next__head .sm-btn { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
@media (hover: hover) and (pointer: fine) { .sm-next__line .sm-btn:hover, .sm-bnext__line .sm-btn:hover, .sm-next__head .sm-btn:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px #fff; } }
@media (max-width: 959px) { .sm-next__cards > :nth-child(4) { display: none; } }
@media (min-width: 768px) and (max-width: 959px) { .sm-next .sm-next__cards { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
@media (min-width: 960px) { .sm-next .sm-next__cards { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; overflow: visible; } }
/* help pages: one quiet line, no cards */
.sm-next--help { padding: 0; background: none; color: var(--ink); }
.sm-next--help p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--edge); font-weight: 650; }
.sm-next__mail { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
/* the Make Lab: dark cards on the lab panel, dark to the footer (D1) */
.sm-next--lab { margin-top: 24px; padding-bottom: 0; background: none; }
.sm-next__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; padding: 18px 20px; border-radius: var(--r); background: var(--lab-2); box-shadow: inset 0 0 0 1px var(--lab-line); }
.sm-next__head .sm-h2 { margin: 0; }
.lab-info .sm-next a.sm-tile { color: #fff; text-decoration: none; }
.sm-next--lab .sm-tile__t { background: rgba(10,19,34,.84); color: #fff; }
.page-template-page-quote .sm-main { background: var(--lab); }
.page-template-page-quote .sm-foot { margin-top: 0; }
/* /track-order/ lookup form (woocommerce/order/form-tracking.php) */
.sm-trackform { display: grid; gap: 16px; max-width: 560px; }
.sm-trackform.woocommerce-form-track-order { padding: 0; background: none; box-shadow: none; } /* app.css card moves to the sheet */
.sm-trackform__lead { margin: -8px 0 0; font-size: 16px; color: var(--ink-2); }
.sm-trackform__sheet { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.sm-trackform .form-row { float: none; width: 100%; margin: 0; display: grid; gap: 6px; }
.sm-trackform .form-row label { font-weight: 700; font-size: var(--fs-ui); color: var(--ink); }
.sm-trackform .input-text { min-height: 50px; font-size: 16px; }
.sm-trackform [aria-invalid="true"] { box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px var(--laser); }
.sm-trackform__err { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); box-shadow: inset 4px 0 0 var(--err), var(--lift); }
.sm-trackform__err b { font-size: 16px; color: var(--ink); }
.sm-trackform__err span { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); }
.sm-trackform__err:focus-visible { outline-offset: 2px; }
.sm-trackform :is(.sm-trackform__err, .sm-trackform__alt) a { color: var(--laser-deep); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.sm-trackform__alt { margin: 0; font-size: var(--fs-ui); color: var(--ink-3); }
.sm-trackform__alt a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* Work lightbox title: a <p> (an empty <h3> filled by JS broke the heading outline), styled like one. */
.sm-lightbox__body .sm-h3 { line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
