/* Shared base for client templates: reset, preview ribbon, sample markers, reveal hooks. */
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alfa Slab One"; src: url("/assets/fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Gloock"; src: url("/assets/fonts/gloock-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("/assets/fonts/overpass-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("/assets/fonts/overpass-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("/assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.tpl { margin: 0; line-height: 1.55; }
:where(.tpl) img { display: block; max-width: 100%; height: auto; }
:where(.tpl) h1, :where(.tpl) h2, :where(.tpl) h3 { margin: 0; text-wrap: balance; font-weight: 400; }
:where(.tpl) p { margin: 0 0 1em; text-wrap: pretty; }
:where(.tpl) figure { margin: 0; position: relative; }
:where(.tpl) figcaption { position: absolute; right: 10px; bottom: 8px; font: 600 11px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 4px 7px; border-radius: 3px; }
:where(.tpl) dl { margin: 0; }
:where(.tpl) dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
:where(.tpl) dd { margin: 0; font-variant-numeric: tabular-nums; }
.tpl :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.sample-mark { display: inline-block; vertical-align: middle; margin-left: .4em; font: 700 10.5px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #3b2f00; background: #ffe27a; border: 1px dashed #8a6d00; padding: 4px 6px; border-radius: 3px; white-space: nowrap; }

/* atomsorb.it preview ribbon: not part of the client's site */
.ao-ribbon { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px;
  background: #0a382c; color: #f3f4ef; font: 600 13px/1.2 system-ui, sans-serif; box-shadow: 0 6px 18px -10px rgba(0,0,0,.5); }
.ao-home { display: inline-flex; }
.ao-label { flex: 1 1 200px; min-width: 0; }
.ao-toggle { display: inline-flex; background: #06261e; border-radius: 999px; padding: 3px; }
.ao-ribbon .ao-toggle a { color: #b9d3c7; text-decoration: none; padding: 7px 12px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.ao-ribbon .ao-toggle a[aria-current="true"] { background: #f2b705; color: #0f1714; }
.ao-toggle a:hover:not([aria-current]) { color: #fff; }
.ao-ribbon .ao-cta { color: #0f1714; background: #f3f4ef; text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
@media (max-width: 640px) { .ao-label { flex-basis: 100%; order: 3; font-weight: 400; } .ao-toggle { overflow-x: auto; max-width: 100%; } }

/* reveal hooks (tpl.js adds .in); content stays visible without JS */
@media (prefers-reduced-motion: no-preference) {
  .js-tpl [data-reveal]:not(.in) { opacity: 0; transform: translateY(18px); }
  .js-tpl [data-reveal] { transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 70ms); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.ao-ribbon .ao-back { color: #f3f4ef; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }

/* settled state for screenshots/embeds: nothing hidden waiting for an entrance */
.shot [data-write], .shot [data-reveal], .shot [data-shine], .shot .tr-line { clip-path: none !important; opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
.shot .tr-line ol::before { transform: none !important; }
.shot *, .shot *::before, .shot *::after { animation: none !important; }

/* placeholder rows with no price yet: no dot leaders pointing at nothing */
.sb-dots:has(+ b:empty), .tpl li > i:has(+ b:empty) { visibility: hidden; }

/* phone numbers stay on one line */
.tpl a[href^="tel:"] { white-space: nowrap; }
