/* samples.css — samples.html ("See it live", js/samples.js). Prefix sm-.
 * Uses only the pages.css tokens, so light and dark mode follow the site theme. */
.sm-main { padding-bottom: 48px; }
.sm-hero { margin: 26px 0 16px; }
.sm-kicker { margin: 0; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.sm-hero h1 { font-size: 1.9rem; margin: 4px 0 8px; }
.sm-lead { max-width: 70ch; color: var(--text); margin: 0 0 12px; }
.sm-warning { max-width: 78ch; margin: 0; padding: 10px 14px; border-radius: 12px; font-size: .9rem;
  color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); }

/* Jump list, grouped by audience */
.sm-jump { padding: 14px 18px; margin: 0 0 22px; }
.sm-jump-title { margin: 0 0 8px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sm-jump-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px 20px; }
.sm-jump-group { min-width: 0; }
.sm-jump-g { font-weight: 700; color: var(--ink); text-decoration: none; }
.sm-jump-g:hover { text-decoration: underline; }
.sm-jump ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: .86rem; }
.sm-jump li a { overflow-wrap: anywhere; display: inline-block; padding: 3px 0; }   /* 24px+ targets (WCAG 2.5.8) */
.sm-jump ul { gap: 0; }
.sm-loading { color: var(--muted); }

.sm-group-h { margin: 34px 0 12px; font-size: 1.35rem; scroll-margin-top: 16px; }
.sm-product { margin: 0 0 18px; scroll-margin-top: 16px; min-width: 0; }
.sm-product.sm-target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-sm); }
.sm-head { margin-bottom: 14px; }
.sm-tag { margin: 0; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sm-head h3 { margin: 2px 0 6px; font-size: 1.25rem; overflow-wrap: anywhere; }
.sm-plead { margin: 0 0 8px; max-width: 75ch; color: var(--text); }
.sm-price { margin: 0; font-size: .95rem; }
.sm-price-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sm-price b { color: var(--ink); }

.sm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .sm-grid { grid-template-columns: minmax(0, 1fr); } }
.sm-grid h4 { margin: 0 0 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sm-get-col h4 { margin-top: 16px; }
.sm-get-col h4:first-child { margin-top: 0; }
.sm-get-col ul, .sm-steps { margin: 0; padding-left: 20px; font-size: .88rem; display: flex; flex-direction: column; gap: 5px; }
.sm-steps li::marker { font-weight: 800; color: var(--accent); }
.sm-fine ul { font-size: .84rem; color: var(--muted); }
.sm-cta { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sm-cta .btn { white-space: normal; text-align: center; }
.sm-alt { text-align: left; }

/* The sample "stage": badge, spot name, the real markup, and the note */
.sm-stage { position: relative; margin: 0 0 12px; padding: 10px 12px 8px; border: 2px dashed var(--warn-border); border-radius: 14px;
  background: var(--bg); min-width: 0; overflow: hidden; }
.sm-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sm-where { font-size: .74rem; font-weight: 600; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.sm-badge { flex-shrink: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #fff; background: #B03A2E; border-radius: 6px; padding: 2px 8px; }
.sm-stage-body { min-width: 0; font-size: 14px; }
.sm-example { margin: 8px 0 0; font-size: .76rem; font-weight: 600; color: var(--warn-text); }
.sm-off { margin: 4px 0 0; font-size: .76rem; color: var(--muted); }
.sm-missing { color: var(--bad); font-size: .88rem; }
.sm-sub { margin: 0 0 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.sm-more { margin: 10px 0 0; font-size: .86rem; font-weight: 600; }

/* Pieces that live inside other pages' containers on the real site */
.sm-help-card { padding: 14px; }
.sm-help-card h2, .sm-help-card h5 { font-size: 1rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sm-help-card .sp-block { margin-bottom: 0; }
.sm-ft-block { padding: 8px; border: 1px dashed var(--warn-border); border-radius: 10px; background: var(--surface); min-width: 0; }
.sm-ft-block .ft-note { margin: 6px 0 0; font-size: .66rem; color: var(--muted); }
.sm-claimline { margin: 4px 0 0; }
.sm-claimline .ft-claim { font-size: .72rem; color: var(--muted); text-decoration: underline; }
.sm-rp-head { margin-bottom: 8px; }
.sm-rp-head .rp-kicker { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sm-rp-addr { margin: 2px 0 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sm-stage .rp-brand { margin-top: 8px; flex-wrap: wrap; min-width: 0; }
.sm-stage .rp-brand > div { min-width: 0; overflow-wrap: anywhere; }
.sm-stage .rp-brand span { display: block; }
.sm-stage .rp-sample::after { font-size: 2.2rem; }
.sm-stage .rp-brands { margin-top: 8px; }
.sm-stage .rp-brands > .rp-brand { margin-top: 0; }
.sm-stage .rp-sample-logo { width: 72px; height: 36px; }
.sm-cobrand-logo, .sm-stage .rp-cobrand img { width: 36px; height: 36px; }
.sm-agents { display: grid; gap: 8px; }
.sm-agents .rp-brand { margin-top: 0; }
.sm-stage .tm-agent { background: var(--surface); }
.sm-foot.site-foot { margin: 0; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.sm-foot .foot-meta { margin: 0; font-size: .78rem; }
.sm-wall, .sm-thanks { padding: 14px; }
.sm-wall h2, .sm-thanks h2, .sm-wall h5, .sm-thanks h5 { font-size: 1.05rem; margin: 0 0 6px; }
.sm-thanks p { margin: 0; }

/* Small maps */
.sm-map { height: 240px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); z-index: 0; }
.sm-map .leaflet-popup-content { margin: 10px; width: auto !important; min-width: 200px; max-width: 250px; }
.sm-pop .cc-list { margin: 0; }
.leaflet-tooltip.sm-tip { font-weight: 700; font-size: .72rem; }
[data-theme="dark"] .sm-map .leaflet-popup-content-wrapper, [data-theme="dark"] .sm-map .leaflet-popup-tip { background: var(--surface); color: var(--text); }
[data-theme="dark"] .sm-map .leaflet-control-zoom a, [data-theme="dark"] .sm-map .leaflet-control-attribution { background: var(--surface); color: var(--text); }

/* Real widgets in iframes */
.sm-frame { min-height: 160px; }
.sm-frame-wait { margin: 0; padding: 20px 0; text-align: center; color: var(--muted); font-size: .86rem; }
.sm-iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: 10px; background: transparent; }
.sm-iframe-district { height: 520px; }

@media (max-width: 480px) {
  .sm-hero h1 { font-size: 1.5rem; }
  .sm-product.card { padding: 14px; }
  .sm-stage { padding: 8px; }
}
@media print { .sm-jump, .sm-map, .sm-cta { display: none !important; } }

/* Sample location switch */
.sm-place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border, rgba(127,127,127,.25)); }
.sm-place .sm-jump-title { margin: 0 6px 0 0; }
.sm-place-btn { font: inherit; font-size: .9rem; padding: 6px 14px; min-height: 34px; border-radius: 999px; border: 1px solid var(--border, rgba(127,127,127,.4)); background: transparent; color: inherit; cursor: pointer; }
.sm-place-btn[aria-pressed="true"] { background: var(--accent, #1F5F9E); border-color: var(--accent, #1F5F9E); color: #fff; font-weight: 600; }
/* Accessibility (WCAG 2.1 AA audit): mock card titles are h5 so the page's heading order stays valid;
   the pressed place button keeps 4.5:1 text contrast in dark mode (light accent background there). */
.sm-mock-h { color: var(--ink); line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
:root[data-theme="dark"] .sm-place-btn[aria-pressed="true"] { color: #0B1520; }
