/* SayNinja — location section pages (/locations/<slug>/<section>/)
 *
 * Depends on location.css for tokens, fonts and .btn/.eyebrow/.hl/.lede/.wrap.
 * Load AFTER it. Everything here is namespaced under .sn-section so it cannot
 * collide with location.css the way wizard.css does (14 shared class names).
 *
 * NAV CLEARANCE — MEASURED, NOT GUESSED
 * nav is position:fixed, top:14px. The pill measures 57px tall, so its bottom
 * edge sits at 71px. Measured with Playwright against this stylesheet at both
 * 1280x900 and 390x844 — identical at both, because .navpill height is driven
 * by the CTA button (11px padding x2 + .92rem/800 line box), not by the 34px
 * logo. Estimating from the logo gives 50px and tucks the h1 under the nav.
 * Minimum safe padding-top is therefore 71px; the clamp below starts at 96 to
 * leave breathing room, matching the scroll-margin-top already in location.css.
 */

/* Nav clearance lives on the wrapper, not on the first child. A child can be
 * pulled out of flow (see the <nav> reset below) and take the padding with it,
 * leaving the page tucked under the fixed nav with no obvious cause. */
.sn-section {
  display: block;
  padding-top: clamp(96px, 11vw, 132px);
}

/* ---- breadcrumb ---------------------------------------------------- */

/* location.css styles the BARE ELEMENT SELECTOR `nav`:
 *   nav{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:90}
 * A semantic <nav> breadcrumb therefore inherits the site nav's positioning,
 * leaves the flow, and floats over the h1 centred at 960px. Same failure mode
 * as the wizard.css/location.css class collisions, via an element selector
 * instead of a class. Reset every property that rule sets; do not rely on
 * source order, and do not "fix" this by dropping the <nav> element, which is
 * correct markup for a breadcrumb.
 * .sn-crumbs (0,1,0) outranks nav (0,0,1), so these win without !important. */
.sn-crumbs {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  z-index: auto;
}

.sn-crumbs ol {
  list-style: none;          /* raw <ol> renders "1. 2. 3." otherwise */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.sn-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sn-crumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}

.sn-crumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.sn-crumbs a:hover {
  color: var(--pink);
}

.sn-crumbs [aria-current="page"] {
  color: var(--ink);
}

/* ---- hero ---------------------------------------------------------- */

.sn-section-hero {
  padding: clamp(20px, 3vw, 32px) 0 clamp(40px, 6vw, 64px);
  background: #fff;
}

.sn-section-hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.04;
  margin-top: 12px;
  max-width: 20ch;
}

.sn-section-address {
  margin-top: 18px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--muted);
}

.sn-section-address a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--line);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.sn-section-address a:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.sn-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---- pending panel (client data not yet supplied) ------------------- */

.sn-section-pending {
  padding: 0 0 clamp(40px, 6vw, 64px);
}

.sn-section-pending .wrap > * {
  max-width: 60ch;
}

.sn-section-pending p {
  background: var(--soft);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 20px 22px;
  font-weight: 700;
  line-height: 1.55;
}

.sn-section-pending p + p {
  margin-top: 14px;
}

.sn-section-pending a {
  color: var(--pink);
  font-weight: 800;
}

/* ---- sibling gyms --------------------------------------------------- */

.sn-section-siblings {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--wash);
  border-top: 3px solid var(--ink);
}

.sn-section-siblings h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.sn-section-siblings ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

.sn-section-siblings a {
  display: block;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px 18px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.sn-section-siblings a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pink);
}

@media (prefers-reduced-motion: reduce) {
  .sn-section-siblings a:hover {
    transform: none;
  }
}
