/* ==========================================================================
   OKC BATTERY — area pages (built by tools/areas/build.py). Uses the tokens in styles.css.
   ========================================================================== */

/* ---------- hero ---------- */
.ap-hero { position: relative; padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.ap-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255,176,0,.10), transparent 70%); pointer-events: none;
}
.ap-hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ap-crumbs { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.4rem; }
.ap-crumbs a { color: var(--muted); transition: color .2s; }
.ap-crumbs a:hover { color: var(--amber); }
.ap-crumbs span { margin: 0 .35rem; }
.ap-crumbs [aria-current] { margin: 0; color: var(--paper-2); }
.ap-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 4.6vw, 4.3rem); line-height: .92; margin-top: 1rem; letter-spacing: .005em;
}
.ap-title em { font-style: normal; color: var(--amber); display: block; }
.ap-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.ap-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21,26,33,.6); }
.ap-facts li { padding: .95rem 1rem; display: grid; gap: .2rem; }
.ap-facts li + li { border-left: 1px solid var(--line); }
.ap-facts b { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--paper); }
.ap-facts small { font-family: var(--font-cond); font-size: .95rem; color: var(--amber); letter-spacing: .04em; margin-left: .1rem; }
.ap-facts span { font-family: var(--font-cond); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ap-edge { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.4rem; padding: .9rem 1.1rem; border: 1px solid rgba(255,176,0,.35); border-radius: var(--radius); background: rgba(255,176,0,.06); color: var(--paper-2); font-size: .95rem; }
.ap-edge .ico { color: var(--amber); flex: none; margin-top: .15rem; }

/* ---------- mini map ---------- */
.ap-map { margin: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #12161C; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.amap { display: block; width: 100%; height: auto; }
.ap-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; padding: .75rem 1rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
.ap-key { display: inline-block; width: 12px; height: 12px; margin-right: -.6rem; border-radius: 3px; vertical-align: -1px; }
.ap-key--area { background: rgba(255,176,0,.3); border: 1.5px solid var(--amber); }
.ap-key--store { border-radius: 50%; background: #F2EEE6; }
.ap-key--home { border-radius: 50%; background: var(--volt); }
.am-bg { fill: #12161C; }
.am-ctx { fill: #161B22; stroke: rgba(242,238,230,.16); stroke-width: 1; stroke-linejoin: round; }
.am-county { fill: none; stroke: rgba(242,238,230,.28); stroke-width: 1.2; stroke-dasharray: 6 4; }
.am-county--ctx { fill: #161B22; }
.am-ctx-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; fill: rgba(242,238,230,.38); text-anchor: middle; paint-order: stroke; stroke: #12161C; stroke-width: 4px; }
.am-lake { fill: #15303F; stroke: #2A5A73; stroke-width: 1; }
.am-river { fill: none; stroke: #27516A; stroke-width: 1.4; stroke-linecap: round; }
.am-focus { fill: rgba(255,176,0,.13); }
.am-focus-glow { fill: rgba(255,176,0,.22); }
.am-focus-line { fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linejoin: round; }
.am-street { fill: none; stroke: rgba(242,238,230,.13); stroke-width: 1; stroke-linecap: round; }
.am-road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.am-road--sec { stroke: rgba(242,238,230,.2); stroke-width: 1.3; }
.am-road--case { stroke: #0B0D10; stroke-width: 5.5; opacity: .9; }
.am-road--pri { stroke: #C9CFD8; stroke-width: 2.4; }
.am-focus-label { font-family: var(--font-display); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; fill: var(--amber-2); text-anchor: middle; paint-order: stroke; stroke: #0B0D10; stroke-width: 6px; stroke-linejoin: round; font-size: 30px; }
.am-focus-label--zip { font-size: 44px; }
.am-focus-label--hood { font-size: 24px; }
.am-store circle { fill: #F2EEE6; stroke: #0B0D10; stroke-width: 3; }
.am-store text { font-family: var(--font-mono); font-weight: 700; font-size: 12px; fill: #0B0D10; text-anchor: middle; }
.am-store-dot { fill: rgba(242,238,230,.55); stroke: #0B0D10; stroke-width: 2; }
.am-home circle { fill: var(--volt); }
.am-home .am-home__ring { fill: rgba(61,220,132,.12); stroke: rgba(61,220,132,.7); stroke-dasharray: 3 3; }
.am-home text { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; fill: var(--volt); paint-order: stroke; stroke: #0B0D10; stroke-width: 4px; }
.am-scale path { fill: none; stroke: rgba(242,238,230,.6); stroke-width: 1.2; }
.am-scale text { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; fill: var(--muted); text-anchor: middle; }

/* ---------- local details cards ---------- */
.ap-data { background: var(--ink-2); border-block: 1px solid var(--line); }
.ap-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.ap-card { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ap-card h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin-bottom: 1rem; }
.ap-card p { color: var(--muted); }
.ap-card p + p { margin-top: .8rem; }
.ap-card b { color: var(--paper); font-weight: 600; }
.ap-card a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,176,0,.45); }
.ap-card a:hover { text-decoration-color: var(--amber); }
.ap-stores { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: .8rem; }
.ap-stores li { display: flex; gap: .9rem; align-items: flex-start; }
.ap-store__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: .8rem; }
.ap-stores b { display: block; font-size: 1rem; }
.ap-stores span { font-size: .9rem; color: var(--muted); }
.ap-storecol { margin-top: 1rem; columns: 2; column-gap: 1.4rem; font-size: .9rem; }
.ap-storecol li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.ap-storecol b { display: block; font-weight: 600; color: var(--paper-2); }
.ap-storecol span { color: var(--muted-2); font-size: .82rem; }
.ap-zips { margin-top: 1rem; display: grid; gap: .55rem; }
.ap-zips div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--line); }
.ap-zips dt { font-family: var(--font-cond); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--paper-2); }
.ap-zips dd { margin: 0; font-family: var(--font-mono); font-size: .88rem; color: var(--muted); }

/* ---------- local copy ---------- */
.ap-local__row { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(1.8rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.ap-local__row:first-child { border-top: 0; padding-top: 0; }
.ap-h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3rem); line-height: .95; }
.ap-local__row p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.ap-local__row p + p { margin-top: 1rem; }

/* ---------- roadside-club band ---------- */
.ap-club { padding: 0 0 var(--section); }
.ap-club__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center; padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid rgba(255,176,0,.35); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(255,176,0,.10), rgba(255,176,0,.02)); }
.ap-club__inner > .ico { width: 46px; height: 46px; color: var(--amber); }
.ap-club h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; }
.ap-club p { margin-top: .5rem; color: var(--muted); max-width: 64ch; }

/* ---------- nearby ---------- */
.ap-near { padding-top: clamp(3.5rem, 7vw, 6rem); }
.ap-nearlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.ap-nearlist a { display: flex; flex-direction: column; gap: .2rem; position: relative; padding: 1.1rem 3rem 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; line-height: 1; transition: border-color .3s, transform .3s var(--ease-out); }
.ap-nearlist a span { font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .14em; color: var(--amber); }
.ap-nearlist a .ico { position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%; color: var(--muted); transition: color .3s, transform .3s var(--ease-out); }
.ap-nearlist a:hover { border-color: var(--amber); transform: translateY(-2px); }
.ap-nearlist a:hover .ico { color: var(--amber); transform: translateX(3px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .ap-hero__grid, .ap-local__row { grid-template-columns: 1fr; }
  .ap-cards { grid-template-columns: 1fr; }
  .ap-club__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ap-facts { grid-template-columns: repeat(2, 1fr); }
  .ap-facts li:nth-child(3) { border-left: 0; }
  .ap-facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ap-storecol { columns: 1; }
  .ap-zips div { grid-template-columns: 1fr; gap: .2rem; }
  .ap-card { padding: 1.3rem; }
  .am-focus-label { font-size: 40px; }
  .am-focus-label--zip { font-size: 60px; }
  .am-ctx-label { font-size: 16px; }
  .am-store text { font-size: 15px; }
}
.ap-card--wide { grid-column: 1 / -1; }
.ap-card--wide .ap-storecol { columns: 3; }
.ap-cards { align-items: start; }
.ap-drives { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 1.6rem; margin-top: .4rem; }
.ap-drives li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.ap-drives span { color: var(--paper-2); font-weight: 500; }
.ap-drives b { font-family: var(--font-mono); font-size: .85rem; color: var(--amber); font-weight: 700; white-space: nowrap; }
@media (max-width: 960px) { .ap-card--wide .ap-storecol { columns: 2; } }
@media (max-width: 600px) { .ap-card--wide .ap-storecol { columns: 1; } }
.am-artery { fill: none; stroke: rgba(242,238,230,.32); stroke-width: 1.8; stroke-linecap: round; }
.am-street-label { font-family: var(--font-cond); font-weight: 600; font-size: 12px; letter-spacing: .04em; fill: rgba(242,238,230,.62); text-anchor: middle; paint-order: stroke; stroke: #12161C; stroke-width: 4px; stroke-linejoin: round; }
.ap-src { margin-left: auto; color: var(--muted-2); font-size: .66rem; }

/* ---------- directory + service pages ---------- */
.ap-dirnote { margin-top: .8rem; color: var(--muted); }
.ap-dirnote a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.ap-dirgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; align-items: start; }
.ap-dir { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ap-dir h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1; margin-bottom: .8rem; }
.ap-dir h3 a:hover { color: var(--amber); }
.ap-dir h3 small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--amber); font-weight: 500; }
.ap-dirlist li { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px dashed var(--line); }
.ap-dirlist a { color: var(--paper-2); font-weight: 500; }
.ap-dirlist a:hover { color: var(--amber); }
.ap-dirlist span { font-family: var(--font-mono); font-size: .8rem; color: var(--muted-2); white-space: nowrap; }
.ap-zips--wide { margin-top: 1.6rem; }
.ap-zips--wide div { grid-template-columns: 12rem 1fr; }
.ap-zips a { color: var(--amber); }
.ap-citycols { columns: 4 180px; column-gap: 1.6rem; margin-top: 1.4rem; }
.ap-citycols li { padding: .35rem 0; break-inside: avoid; }
.ap-citycols a { color: var(--paper-2); font-weight: 500; }
.ap-citycols a:hover { color: var(--amber); }
.ap-local__row a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,176,0,.45); }
.ap-hero--plain { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ap-legal .ap-local__row p + p { margin-top: .8rem; }
