/* ==========================================================================
   Small Arms Pistol Academy - site.css
   The shared shell and page sections. Colors, type scale and spacing come from tokens.css (the SAPA
   design system; do not edit that file). The .sapa-* component rules are copied from the design
   system's components/bundle.css so the markup matches the brand book.

   Sections
     1  Web fonts            5  Header, menu, search       9  Page sections (home, class, about, contact, social, merch)
     2  Base                 6  CTA band, footer, sticky  10  Responsive
     3  Design-system parts  7  Page head                 11  Motion and print
     4  Layout               8  Cards, galleries, prose
   ========================================================================== */

/* 1. Web fonts (self-hosted, see /fonts) ------------------------------------------------------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/BarlowCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/BarlowCondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/BarlowCondensed-800.woff2") format("woff2"); }

/* 2. Base ------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 28px; background: var(--surface); color: var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: inherit; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.3em; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Design-system parts (from components/bundle.css) ----------------------------------------- */
.sapa-mark { display: block; width: auto; aspect-ratio: 696 / 800; flex: none; }
.sapa-plaque { --notch: var(--notch-md); clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch)); }
.sapa-plaque-sm { --notch: var(--notch-sm); }
.sapa-plaque-lg { --notch: var(--notch-lg); }
.sapa-grip { --land: var(--gold-500); --groove: var(--black-900);
  background:
    repeating-linear-gradient(56deg, var(--groove) 0 var(--grip-groove), transparent var(--grip-groove) var(--grip-pitch)),
    repeating-linear-gradient(-56deg, var(--groove) 0 var(--grip-groove), transparent var(--grip-groove) var(--grip-pitch)),
    var(--land); }
.sapa-grip.is-steel { --land: var(--gunmetal-700); --groove: var(--black-900); }
.sapa-grip-strip { height: 16px; }
.sapa-rake { --rake: var(--rake-offset); clip-path: polygon(var(--rake) 0, 100% 0, calc(100% - var(--rake)) 100%, 0 100%); }
.sapa-rake-left { --rake: var(--rake-offset); clip-path: polygon(var(--rake) 0, 100% 0, 100% 100%, 0 100%); }
.sapa-rake-right { --rake: var(--rake-offset); clip-path: polygon(0 0, 100% 0, calc(100% - var(--rake)) 100%, 0 100%); }
.sapa-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); border: 2px solid transparent; font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.sapa-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sapa-btn-primary { background: var(--accent); color: var(--on-accent); }
.sapa-btn-primary:hover { background: var(--accent-hover); }
.sapa-btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.sapa-btn-secondary:hover { background: var(--text); color: var(--surface); }
.sapa-btn-inverse { background: transparent; color: var(--text-inverse); border-color: var(--text-inverse); }
.sapa-btn-inverse:hover { background: var(--text-inverse); color: var(--surface-inverse); }
.sapa-btn-link { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.sapa-btn-lg { min-height: 56px; padding: var(--space-4) var(--space-6); font-size: 18px; }
.sapa-btn[disabled], .sapa-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.sapa-price { display: inline-flex; align-items: baseline; gap: var(--space-2); padding: var(--space-2) var(--space-4); background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 36px; font-variant-numeric: tabular-nums; }
.sapa-price small { font-family: var(--font-sans); font-size: 14px; line-height: 18px; font-weight: 600; }
.sapa-tag { display: inline-flex; align-items: center; padding: var(--space-1) var(--space-3); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; background: var(--accent); color: var(--on-accent); }
.sapa-tag-dark { background: var(--surface-inverse); color: var(--text-inverse); }
.sapa-tag-quiet { background: var(--surface-alt); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.sapa-card { background: var(--surface); border: var(--rule-hairline) solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.sapa-inverse { background: var(--surface-inverse); color: var(--text-inverse); --focus-ring: var(--gold-500); }
.sapa-muted { color: var(--text-muted); }
.sapa-tabular { font-variant-numeric: tabular-nums; }
.gold-bar { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 0 .14em; line-height: .96; }

/* type scale on small screens (tokens.css sets the desktop sizes) */
@media (max-width: 639px) {
  .display-1 { font-size: 48px; line-height: 46px; }
  .display-2 { font-size: 36px; line-height: 38px; }
  .heading-1 { font-size: 30px; line-height: 34px; }
  .lead { font-size: 18px; line-height: 28px; }
}

/* 4. Layout ----------------------------------------------------------------------------------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { margin-bottom: var(--space-6); max-width: var(--measure); }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head p { color: var(--text-muted); margin: 0; }
.measure { max-width: var(--measure); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }

/* 5. Header, menu, search --------------------------------------------------------------------- */
.skip { position: absolute; left: var(--space-4); top: -120px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--accent); color: var(--on-accent); font-weight: 600; border-radius: var(--radius-md); text-decoration: none; }
.skip:focus { top: var(--space-2); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: var(--shadow-md); }
.hd-top { background: var(--surface-inverse); color: var(--text-inverse-muted); font-size: 14px; line-height: 20px; }
.hd-top-in { max-width: var(--container-max); margin: 0 auto; padding: var(--space-1) var(--space-6); min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.hd-tag { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 20px; letter-spacing: .01em; color: var(--text-inverse); white-space: nowrap; }
.hd-tag span { color: var(--text-gold-inverse); padding: 0 .35em; }
.hd-tools { display: flex; align-items: center; gap: var(--space-3); }
.hd-tools .hd-text { min-height: 48px; padding: var(--space-2) var(--space-5); font-size: 16px; white-space: nowrap; }

.hd-main { position: relative; }
.hd-in { max-width: var(--container-max); margin: 0 auto; height: var(--header-height); padding: 0 var(--space-6); display: flex; align-items: center; gap: var(--space-5); }
.brand { display: block; flex: none; text-decoration: none; }
.brand-logo { height: 76px; width: auto; }
.hd-menu { display: contents; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-4); flex-wrap: nowrap; }
.site-nav a { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 24px; color: var(--text); text-decoration: none; padding: var(--space-1) 0; white-space: nowrap; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--border-strong); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.menu-search-slot { display: none; }
.menu-toggle { display: none; }

/* search box: dark field in the top bar on desktop, light field inside the menu on small screens */
.site-search { position: relative; display: flex; align-items: stretch; }
.site-search input { width: 220px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--gunmetal-500); border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--gunmetal-800); color: var(--text-inverse); font: inherit; font-size: 15px; line-height: 20px; }
.site-search input::placeholder { color: var(--steel-300); }
.site-search input:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.site-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-go { min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--gunmetal-500); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--gunmetal-700); color: var(--text-inverse); cursor: pointer; display: grid; place-items: center; }
.search-go:hover { background: var(--gunmetal-500); }
.search-results { position: absolute; right: 0; top: calc(100% + 6px); width: min(460px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: var(--space-2); z-index: 70; text-align: left; font-size: 15px; line-height: 22px; }
.search-results[hidden] { display: none; }
.search-hit { display: block; padding: var(--space-2) var(--space-3); text-decoration: none; color: var(--text); border-radius: var(--radius-sm); }
.search-hit:hover, .search-hit:focus { background: var(--surface-alt); outline: none; }
.hit-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 24px; }
.hit-snippet { display: block; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.hit-snippet mark { background: var(--accent-soft); color: var(--text); padding: 0 2px; font-weight: 600; }
.search-empty { padding: var(--space-3); color: var(--text-muted); }
.search-count { padding: 0 var(--space-3) var(--space-2); color: var(--text-muted); font-size: 14px; }

/* 6. CTA band, footer, sticky bar ------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; padding: var(--space-8) 0; }
.band-mark { position: absolute; right: -40px; top: -60px; height: 400px; width: auto; opacity: .14; pointer-events: none; }
.cta-in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; }
.cta-band h2 { margin-bottom: var(--space-2); max-width: 720px; }
.cta-band .phone { color: var(--text-gold-inverse); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cta-band p { color: var(--text-inverse-muted); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.site-footer { background: var(--surface-inverse); color: var(--text-inverse-muted); padding: var(--space-8) 0 var(--space-6); font-size: 15px; line-height: 24px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-7); }
.ft-logo { height: 64px; width: auto; margin-bottom: var(--space-4); }
.site-footer h2 { font-size: 20px; line-height: 24px; color: var(--text-inverse); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 var(--space-2); }
.site-footer a { color: var(--text-inverse); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ft-legal { margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--gunmetal-700); font-size: 14px; line-height: 20px; display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

.sticky-text { display: none; }

/* 7. Page head ------------------------------------------------------------------------------- */
.page-head { background: var(--surface-alt); border-bottom: var(--rule-hairline) solid var(--border); }
.page-head .ph-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--space-7); align-items: center; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.page-head.no-photo .ph-in { grid-template-columns: 1fr; }
.page-head h1 { margin-bottom: var(--space-3); }
.page-head .lead { color: var(--text-muted); max-width: var(--measure); margin: 0; }
.ph-actions { margin-top: var(--space-5); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.ph-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; --rake: 40px; background: var(--gunmetal-700); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.wide-photo { background: var(--gunmetal-800); }
.wide-photo img { width: 100%; max-width: 1170px; margin: 0 auto; max-height: 360px; object-fit: cover; }

/* 8. Cards, galleries, prose ------------------------------------------------------------------ */
.prose { max-width: var(--measure); }
.prose a, .text-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.prose a:hover, .text-link:hover { text-decoration-color: var(--text); }
.prose strong { font-weight: 700; }

.class-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.class-card { display: flex; flex-direction: column; }
.cc-photo { position: relative; aspect-ratio: 4 / 3; background: var(--gunmetal-700); }
.cc-photo img { width: 100%; height: 100%; object-fit: cover; }
.cc-photo.is-mark { background: var(--black-900); }
.cc-photo.is-mark img { position: absolute; inset: 0; margin: auto; width: auto; height: 68%; max-width: 80%; object-fit: contain; }
.cc-photo .sapa-price, .cc-photo .sapa-tag { z-index: 1; }
.cc-photo .sapa-price { position: absolute; left: 0; bottom: -18px; }
.cc-photo .sapa-tag { position: absolute; right: var(--space-3); top: var(--space-3); }
.cc-body { padding: var(--space-6) var(--space-5) var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.cc-body h3 { margin: 0; }
.cc-body .meta { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text-muted); }
.cc-body p { color: var(--text-muted); margin: 0; }
.cc-body p.body-sm { color: var(--text); }
.cc-foot { padding: var(--space-3) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.cc-foot .caption { margin: 0; color: var(--text-muted); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.photo-grid.two { grid-template-columns: repeat(2, 1fr); }
.photo-grid figure { margin: 0; }
.photo-grid img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius-sm); background: var(--gunmetal-700); }
.photo-grid img.is-natural { aspect-ratio: auto; height: auto; object-fit: contain; }
figcaption { font-size: 15px; line-height: 22px; font-weight: 600; margin-top: var(--space-2); color: var(--text); }

.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.feature-row .photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--gunmetal-700); }
.feature-row .photo img { width: 100%; height: 100%; object-fit: cover; }

.instructor { display: grid; grid-template-columns: 400px 1fr; background: var(--surface-alt); border-radius: var(--radius-sm); overflow: hidden; }
.instructor .photo { position: relative; min-height: 420px; }
.instructor .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.instructor .photo .sapa-grip { position: absolute; left: 0; right: 0; bottom: 0; }
.instructor .txt { padding: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); justify-content: center; }
.creds { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 26px; }
.creds span { background: var(--accent); color: var(--on-accent); padding: 0 6px; }

.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.link-card { position: relative; display: grid; grid-template-columns: 180px 1fr; min-height: 180px; text-decoration: none; color: var(--text); }
.link-card .photo { background: var(--gunmetal-700); }
.link-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.link-card .txt { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); justify-content: center; }
.link-card .txt p { color: var(--text-muted); margin: 0; }
.link-card .go { font-weight: 600; text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.link-card:hover .go { text-decoration-color: var(--text); }

/* 9. Page sections ---------------------------------------------------------------------------- */
/* home */
.hero { position: relative; overflow: hidden; background: var(--surface-inverse); color: var(--text-inverse); }
.hero .hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-7); align-items: center; padding-top: var(--space-8); padding-bottom: calc(var(--space-8) + 16px); }
.hero h1 { text-transform: uppercase; color: var(--text-inverse); }
.hero-tag { margin: var(--space-5) 0 var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 32px; color: var(--text-gold-inverse); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-mark { height: 440px; width: auto; }
.hero .sapa-grip-strip { position: absolute; left: 0; right: 0; bottom: 0; }

.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-7); align-items: center; }
.intro-photo { overflow: hidden; --rake: 40px; background: var(--gunmetal-700); }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

/* class descriptions */
.class-section + .class-section { margin-top: var(--space-8); }
.class-section h2 { margin-bottom: var(--space-5); }
.class-row { display: grid; grid-template-columns: 360px 1fr; align-items: stretch; }
.class-row .photo { position: relative; min-height: 240px; background: var(--gunmetal-700); }
.class-row .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.class-row .photo .sapa-price { position: absolute; left: 0; bottom: 0; }
.class-row .txt { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); justify-content: center; }
.class-row .txt h3 { margin: 0; }
.class-row .txt p { margin: 0; }
.class-row .actions { margin-top: var(--space-2); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.contact-grid h2 { margin-bottom: var(--space-3); }
.big-phone { display: inline-block; font-family: var(--font-display); font-size: 44px; line-height: 48px; font-weight: 800; font-variant-numeric: tabular-nums; text-decoration: none; margin: var(--space-2) 0 var(--space-4); }
.address { font-style: normal; font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; margin: var(--space-2) 0 var(--space-5); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-sm); background: var(--surface-alt); }

/* social: three identical cards, each a 2 x 2 tile block that opens the profile (YouTube tiles are the latest videos) */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.social-card { display: flex; flex-direction: column; }
.social-card .head { padding: var(--space-5) var(--space-5) var(--space-4); min-height: 140px; }
.social-card h2 { font-size: 24px; line-height: 28px; }
.social-card h2 a { text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.social-card h2 a:hover { text-decoration-color: var(--text); }
.social-card .sub { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: 15px; line-height: 22px; }
.social-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; aspect-ratio: 1; margin: 0 var(--space-5); background: var(--surface); }
.social-tiles a { position: relative; display: block; overflow: hidden; background: var(--gunmetal-700); }
.social-tiles img { width: 100%; height: 100%; object-fit: cover; }
.social-tiles a:hover img { opacity: .88; }
.social-tiles .play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; background: var(--photo-scrim); color: var(--white); border-radius: var(--radius-full); pointer-events: none; }
.social-card .foot { padding: var(--space-4) var(--space-5) var(--space-5); margin-top: auto; }

/* merch */
.store-section { padding-top: var(--space-7); }
/* Back to Merch: drawn to match the store's own icon row under it (My Account, Track Orders, ...): 16px text in the
   store's muted grey, a 22px line icon 5px above the label, the store's darker grey on hover. */
.store-back { display: flex; justify-content: center; margin: 0; }
.store-back-link { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 10px; color: #757575; font-size: 16px; line-height: 19.2px; text-decoration: none; }
.store-back-link svg { display: block; flex: none; margin: 1px 0; }
.store-back-link:hover { color: #373632; }
.store-wrap { min-height: 480px; }
.store-wrap #my-store-11599350 { font-family: var(--font-sans); }

/* search page */
.search-page-form { display: flex; gap: var(--space-2); max-width: 560px; margin-bottom: var(--space-6); }
.search-page-form input { flex: 1; min-height: 48px; padding: 0 var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-md); font: inherit; }
#search-results.is-page { position: static; width: auto; max-height: none; border: 0; box-shadow: none; padding: 0; font-size: 17px; line-height: 28px; }
#search-results.is-page .search-hit { padding: var(--space-4) 0; border-bottom: var(--rule-hairline) solid var(--border); border-radius: 0; }
#search-results.is-page .hit-title { font-size: 24px; line-height: 28px; }
#search-results.is-page .hit-snippet { font-size: 16px; line-height: 24px; }

/* 10. Responsive ------------------------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  html { scroll-padding-top: 80px; }
  .hd-top-in { justify-content: center; padding: var(--space-1) var(--space-4); min-height: 36px; }
  .hd-tag { font-size: 15px; white-space: normal; text-align: center; }
  .hd-tools { display: none; }
  .hd-in { height: 64px; padding: 0 var(--space-4); gap: var(--space-3); }
  .brand-logo { height: 52px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: var(--space-2); margin-left: auto; min-height: 44px; padding: 0 var(--space-3); border: 2px solid var(--text); border-radius: var(--radius-md); background: transparent; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 17px; cursor: pointer; }
  .menu-toggle .burger { display: grid; gap: 4px; }
  .menu-toggle .burger i { display: block; width: 18px; height: 2px; background: currentColor; }
  .menu-toggle[aria-expanded="true"] { background: var(--text); color: var(--surface); }
  .hd-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: var(--rule-hairline) solid var(--border); box-shadow: var(--shadow-md); padding: var(--space-3) var(--space-4) var(--space-5); max-height: calc(100vh - 100px); overflow: auto; }
  .hd-menu.is-open { display: block; }
  .site-nav { margin-left: 0; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: var(--space-3) var(--space-3); border-bottom: var(--rule-hairline) solid var(--border); border-left: 4px solid transparent; font-size: 20px; }
  .site-nav a:hover { border-bottom-color: var(--border); border-left-color: var(--border-strong); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--border); border-left-color: var(--accent); background: var(--surface-alt); }
  .menu-search-slot { display: block; padding-top: var(--space-4); }
  .menu-search-slot .site-search { width: 100%; flex-wrap: wrap; }
  .menu-search-slot .site-search input { flex: 1; width: auto; min-height: 44px; background: var(--surface); color: var(--text); border-color: var(--border-strong); }
  .menu-search-slot .site-search input::placeholder { color: var(--text-muted); }
  .menu-search-slot .site-search input:focus { outline-color: var(--focus-ring); }
  .menu-search-slot .search-go { min-height: 44px; border-color: var(--border-strong); background: var(--surface-inverse); }
  .menu-search-slot .search-results { position: static; flex: 1 0 100%; width: auto; max-height: none; box-shadow: none; border: 0; padding: 0; margin-top: var(--space-2); }
  .sticky-text { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface-inverse); padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom)); box-shadow: 0 -2px 4px rgba(16, 15, 13, .06), 0 -10px 28px rgba(16, 15, 13, .10); }
  .sticky-text a { width: 100%; }
  body { padding-bottom: 72px; }
}
@media (max-width: 1000px) {
  .class-cards { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .instructor { grid-template-columns: 320px 1fr; }
  .link-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid-2, .intro-grid, .page-head .ph-in, .contact-grid, .feature-row, .cta-in { grid-template-columns: 1fr; }
  .page-head.has-photo .ph-in { gap: var(--space-5); }
  .ph-photo { max-height: 320px; }
  .hero .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: var(--space-7); padding-bottom: calc(var(--space-8) + 16px); }
  .hero-visual { order: -1; }
  .hero-mark { height: 240px; }
  .hero-actions { justify-content: center; }
  .instructor { grid-template-columns: 1fr; }
  .instructor .photo { min-height: 300px; }
  .instructor .txt { padding: var(--space-5); }
  .class-row { grid-template-columns: 1fr; }
  .class-row .photo { min-height: 220px; }
  .class-row .txt { padding: var(--space-5); }
  .band-mark { height: 260px; right: -60px; top: auto; bottom: -40px; }
}
@media (max-width: 719px) {
  .class-cards { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .photo-grid, .photo-grid.two { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .link-card { grid-template-columns: 120px 1fr; }
}
@media (max-width: 639px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-8) 0; }
  .page-head .ph-in { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .hero-mark { height: 200px; }
  .hero-tag { font-size: 22px; line-height: 26px; }
  .sapa-btn-lg { min-height: 52px; padding: var(--space-3) var(--space-5); font-size: 17px; }
  .big-phone { font-size: 36px; line-height: 40px; }
  .address { font-size: 20px; line-height: 26px; }
  .sapa-price { font-size: 28px; line-height: 30px; }
  .social-card .embed-fb { height: 340px; }
}

/* 11. Motion and print ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .sticky-text, .cta-band, .skip { display: none !important; }
  body { padding-bottom: 0; }
}

/* ---- Age check (first visit) -------------------------------------------------------------
   Visible by default, so the page is never shown unchecked; the inline script in <head> sets .age-ok
   before first paint when this device answered Yes in the last 30 days. site.js does the rest. */
html:not(.age-ok) { overflow: hidden; }
.age-ok .age-gate { display: none; }
.age-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--space-4); overflow-y: auto; background: rgba(16, 15, 13, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.age-card { width: min(100%, 520px); background: var(--gunmetal-800); border: 1px solid var(--gunmetal-700); border-radius: var(--radius-md); padding: var(--space-7) var(--space-6); text-align: center; box-shadow: var(--shadow-md); }
.age-logo { display: block; width: min(100%, 280px); height: auto; margin: 0 auto var(--space-6); }
.age-card h2 { margin: 0 0 var(--space-3); }
.age-card .lead { margin: 0 0 var(--space-6); color: var(--text-inverse); }
.age-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.age-actions .sapa-btn { min-width: 132px; }
.age-actions[hidden] { display: none; }
.age-gate.is-refused .lead { margin-bottom: 0; }
@media (max-width: 599px) {
  .age-card { padding: var(--space-6) var(--space-5); }
  .age-actions .sapa-btn { flex: 1 1 0; min-width: 0; }
}
