/* Union City Piercings: shared dark theme for the inner pages (piercing pages, city pages,
   /piercings hub, /aftercare). The homepage carries its own copy of these rules inline.
   Dark is the default; theme.js sets <html data-theme="dark"> before the page paints and adds
   the sun/moon toggle. The choice is shared with the homepage (localStorage "ucp_theme"). */
:root { --gold: #c9a24a; --gold-soft: #e3c97f; }

html[data-theme="dark"] {
  --black: #f2ede4;   /* text */
  --white: #161412;   /* cards */
  --offwhite: #0e0d0c;/* page */
  --warm: #1d1a17;
  --border: #2d2925;
  --mid: #a39c92;
  --accent: #c9a24a;
  color-scheme: dark;
}
html[data-theme="dark"] body { background: #0e0d0c; color: #f2ede4; }

/* bands that were black stay black (they used the swapped variables) */
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .cta,
html[data-theme="dark"] .callout,
html[data-theme="dark"] footer { background: #070606; color: #fff; }
html[data-theme="dark"] .topbar { border-bottom: 1px solid #2d2925; }
html[data-theme="dark"] .hero .eyebrow { color: var(--gold); }
html[data-theme="dark"] .callout strong { color: var(--gold); }
html[data-theme="dark"] footer h4 { color: var(--gold); }
html[data-theme="dark"] footer a:hover { color: var(--gold); }

/* buttons: gold primary, gold outline */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-dark { background: var(--gold); color: #0a0a0a; }
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-dark:hover { background: var(--gold-soft); }
html[data-theme="dark"] .btn-ghost { border-color: rgba(201,162,74,.6); color: var(--gold); }
html[data-theme="dark"] .btn-ghost:hover { border-color: var(--gold); }

/* headings and labels in gold, body copy light */
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .side h3,
html[data-theme="dark"] .hub-card strong,
html[data-theme="dark"] .rel strong,
html[data-theme="dark"] .opt strong,
html[data-theme="dark"] .sol strong,
html[data-theme="dark"] .contact .phone,
html[data-theme="dark"] .cta h2 { color: var(--gold); }
html[data-theme="dark"] .card p,
html[data-theme="dark"] .opt span,
html[data-theme="dark"] .side p,
html[data-theme="dark"] .faq details p,
html[data-theme="dark"] li { color: #d9d3c9; }
html[data-theme="dark"] .rel:hover,
html[data-theme="dark"] .hub-card:hover { border-color: var(--gold); }
html[data-theme="dark"] .hub-card .ph { background: #1d1a17; }
html[data-theme="dark"] .route li::before { background: var(--gold); color: #0a0a0a; }
html[data-theme="dark"] .neutral li::before { color: var(--gold); }
html[data-theme="dark"] [style*="color:#222"], html[data-theme="dark"] [style*="color:#333"] { color: #d9d3c9 !important; }
html[data-theme="dark"] .map { background: #1d1a17; }

/* printing (e.g. the aftercare guide) always uses the light colors */
@media print {
  html[data-theme="dark"] { --black: #0a0a0a; --white: #fff; --offwhite: #fff; --warm: #f0ebe4; --border: #e0dbd4; --mid: #666; color-scheme: light; }
  html[data-theme="dark"] body { background: #fff; color: #0a0a0a; }
  html[data-theme="dark"] li, html[data-theme="dark"] .card p, html[data-theme="dark"] .card h2 { color: #222; }
  .theme-toggle { display: none !important; }
}

/* sun/moon toggle (added to the top bar by theme.js) */
.theme-toggle { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; padding: 0; transition: border-color .2s, color .2s; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
