/* SelectATest Modern Look.
   Colors, fonts and corner shape come from CSS variables written by the plugin settings.
   Everything here is scoped to body.sml or .sml-* so it cannot leak into a normal theme page. */

.sml {
  margin: 0;
  background: #fff;
  color: var(--sml-ink, #14232b);
  font-family: var(--sml-font, system-ui, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sml *, .sml *::before, .sml *::after { box-sizing: border-box; }
.sml img { max-width: 100%; height: auto; }
.sml-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sml-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* :where() keeps these link rules at the lowest specificity, so buttons and cards from Lab Orders keep their own colors. */
.sml :where(a) { color: var(--sml-brand, #0e5a64); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sml :where(a:hover) { color: var(--sml-brand-dark, #0a444c); }
.sml :focus-visible { outline: 3px solid var(--sml-brand, #0e5a64); outline-offset: 3px; border-radius: 3px; }

/* Skip link */
.sml-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100000; background: var(--sml-ink); color: #fff !important; padding: .6rem 1rem; border-radius: var(--sml-radius-btn); }
.sml-skip:focus { top: 1rem; }

/* Announcement strip */
.sml-announce { background: var(--sml-ink); color: #fff; text-align: center; font-size: .9rem; padding: .5rem 1rem; }

/* Header */
.sml-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--sml-rule); z-index: 999; }
@supports (backdrop-filter: blur(8px)) { .sml-header { background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.4) blur(10px); } }
.sml-has-sticky .sml-header { position: sticky; top: 0; }
.admin-bar.sml-has-sticky .sml-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.sml-has-sticky .sml-header { top: 46px; } }
.sml-header .sml-wrap { max-width: 1320px; } /* a little wider than the page so longer labels (Spanish) stay on one row */
.sml-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }

.sml-brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; color: var(--sml-ink) !important; }
.sml-logo { height: var(--sml-logo-h, 34px) !important; width: auto !important; max-width: none !important; max-height: none !important; display: block; }
.sml-wordmark { font-family: var(--sml-font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.sml-mark { flex: none; width: 13px; height: 26px; border-radius: 3px 3px 8px 8px; border: 2px solid var(--sml-brand); background: linear-gradient(to bottom, var(--sml-brand) 0 36%, transparent 36% 100%); }

.sml-nav { display: flex; align-items: center; gap: 1.5rem; flex: 1; justify-content: space-between; }
.sml-menu { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.sml-menu li { margin: 0; }
.sml-menu a { display: block; white-space: nowrap; padding: .45rem .55rem; font-size: .96rem; color: var(--sml-ink); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.sml-menu a:hover { color: var(--sml-brand); }
.sml-menu a[aria-current="page"], .sml-menu .current-menu-item > a { border-bottom-color: var(--sml-brand); color: var(--sml-brand); }
.sml-nav > nav { margin-left: 1rem; }

.sml-actions { display: flex; align-items: center; gap: .9rem; }
.sml .sml-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--sml-ink); font-weight: 500; text-decoration: none; padding: .45rem .3rem; }
.sml .sml-link:hover { color: var(--sml-brand); }
.sml .sml-cart { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .95rem; border: 1.5px solid var(--sml-ink); border-radius: var(--sml-radius-btn); color: var(--sml-ink); text-decoration: none; font-weight: 600; }
.sml .sml-cart:hover { background: var(--sml-ink); color: #fff; }
.sml-cart__n { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border-radius: 99px; background: var(--sml-brand); color: #fff; font-size: .82rem; line-height: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }

/* Burger (mobile only) */
.sml-burger { display: none; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; border: 1.5px solid var(--sml-rule); border-radius: var(--sml-radius-btn); cursor: pointer; position: relative; }
.sml-burger__bars, .sml-burger__bars::before, .sml-burger__bars::after { content: ""; position: absolute; left: 50%; width: 1.15rem; height: 2px; background: var(--sml-ink); margin-left: -.575rem; transition: transform .18s ease, opacity .18s ease; }
.sml-burger__bars { top: 50%; margin-top: -1px; }
.sml-burger__bars::before { top: -6px; left: 0; margin: 0; } .sml-burger__bars::after { top: 6px; left: 0; margin: 0; }
.sml-burger[aria-expanded="true"] .sml-burger__bars { background: transparent; }
.sml-burger[aria-expanded="true"] .sml-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.sml-burger[aria-expanded="true"] .sml-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1380px) {
  .sml-burger { display: inline-block; }
  .sml-header__in { flex-wrap: wrap; min-height: 3.75rem; }
  .sml-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: .5rem 0 1.25rem; border-top: 1px solid var(--sml-rule); }
  .sml-nav.is-open { display: flex; }
  .sml-nav > nav { margin: 0; }
  .sml-menu { flex-direction: column; gap: 0; }
  .sml-menu a { padding: .75rem 0; border-bottom: 1px solid var(--sml-rule); }
  .sml-menu a[aria-current="page"], .sml-menu .current-menu-item > a { border-bottom-color: var(--sml-rule); font-weight: 700; }
  .sml-actions { justify-content: space-between; }
  .sml .sml-link { padding-left: 0; }
}

/* Main */
.sml-main { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5.5rem); min-height: 60vh; }
.sml-title { font-family: var(--sml-font-head); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1.25rem; font-weight: 700; color: var(--sml-ink); }
.sml-meta { color: var(--sml-muted); font-size: .92rem; margin: -.5rem 0 1.5rem; }

/* Long-form text (regular pages and posts) */
.sml-prose { max-width: 44rem; }
.sml-prose h2, .sml-prose h3, .sml-prose h4 { font-family: var(--sml-font-head); line-height: 1.2; letter-spacing: -.01em; margin: 2em 0 .6em; color: var(--sml-ink); }
.sml-prose h2 { font-size: 1.65rem; } .sml-prose h3 { font-size: 1.3rem; } .sml-prose h4 { font-size: 1.1rem; }
.sml-prose p, .sml-prose ul, .sml-prose ol { margin: 0 0 1.1em; }
.sml-prose ul, .sml-prose ol { padding-left: 1.3rem; }
.sml-prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.1rem; border-left: 3px solid var(--sml-brand); color: var(--sml-muted); }
.sml-prose hr { border: 0; border-top: 1px solid var(--sml-rule); margin: 2rem 0; }
.sml-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; }
.sml-prose th, .sml-prose td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--sml-rule); }
.sml-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.sml-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--sml-rule); }
.sml-list__t { margin: 0 0 .3rem !important; font-size: 1.25rem !important; }
.sml-list__t a { text-decoration: none; }
.sml .navigation.pagination { margin-top: 2rem; }
.sml .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.sml .page-numbers { padding: .35rem .8rem; border: 1px solid var(--sml-rule); border-radius: var(--sml-radius-btn); text-decoration: none; }
.sml .page-numbers.current { background: var(--sml-ink); border-color: var(--sml-ink); color: #fff; }

/* Buttons from the block editor */
.sml .wp-block-button__link, .sml .sml-btn { display: inline-block; background: var(--sml-brand); color: #fff; border: 2px solid var(--sml-brand); border-radius: var(--sml-radius-btn); padding: .65rem 1.2rem; font-weight: 600; text-decoration: none; }
.sml .wp-block-button__link:hover, .sml .sml-btn:hover { background: var(--sml-brand-dark); border-color: var(--sml-brand-dark); color: #fff; }

/* Footer */
.sml-footer { background: var(--sml-surface); border-top: 1px solid var(--sml-rule); padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; }
.sml-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .sml-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.sml-footer__brand p { max-width: 28rem; color: var(--sml-muted); margin: .9rem 0 0; }
.sml-footer .sml-brand { margin-bottom: 0; }
.sml-footer__h { font-size: 1rem; font-family: var(--sml-font); font-weight: 700; margin: 0 0 .5rem; color: var(--sml-ink); }
.sml-menu--stack { flex-direction: column; gap: 0; }
.sml-footer .sml-menu a { padding: .6rem 0; border-bottom: 0; font-weight: 400; color: var(--sml-ink); }
.sml-footer .sml-menu a:hover { color: var(--sml-brand); text-decoration: underline; }
.sml-footer__legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--sml-rule); color: var(--sml-muted); font-size: .875rem; }
.sml-footer__legal p { margin: 0 0 .5rem; max-width: 60rem; }

/* Lab Orders components: same structure, restyled to this look */
.sml .sat { max-width: none; font-family: inherit; }
.sml .sat h1, .sml .sat h2, .sml .sat h3 { font-family: var(--sml-font-head); letter-spacing: -.01em; }
.sml .sat-btn, .sml .sat-cartbar .sat-btn, .sml .sat-chip, .sml .sat-tag, .sml .sat-flag, .sml .sat-pill { border-radius: var(--sml-radius-btn); }
.sml .sat-tag, .sml .sat-flag { border-radius: min(var(--sml-radius-btn), 6px); }
.sml .sat-card, .sml .sat-hero, .sml .sat-summary, .sml .sat-order, .sml .sat-band, .sml .sat-form fieldset, .sml .sat-single__buy, .sml .sat-goal { border-radius: var(--sml-radius); }
.sml .sat-field input, .sml .sat-field select, .sml .sat-field textarea, .sml .sat-search__input, .sml .sat-hero__search input { border-radius: min(var(--sml-radius), 10px); }
.sml .sat-hero { background: var(--sml-surface); }
.sml .sat-hero__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -.025em; }
.sml .sat-cartbar { border-radius: 0; }

@media (prefers-reduced-motion: reduce) { .sml *, .sml *::before, .sml *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .sml-header, .sml-footer, .sml-announce, .sat-cartbar { display: none !important; } }
