:root {
  --color-background: #FFFFFF;
  --color-foreground: #1A1A1A;
  --color-primary: #93233A;
  --color-primary-foreground: #FFFFFF;
  --color-dark: #FFFFFF;
  --color-dark-foreground: #1A1A1A;
  --color-muted: #F6F5F3;
  --color-muted-foreground: #5A5A5A;
  --color-surface: #FFFFFF;
  --color-border: #E0DEDD;
  --radius-card: 0.75rem;
  --font-heading: "Archivo", Arial, sans-serif;
  --font-sans: "Mulish", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 80rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-foreground);
  background: var(--color-background);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-card);
  font-weight: 700; font-size: 0.9rem; border: 1px solid transparent;
  cursor: pointer; transition: opacity .15s, background-color .15s, border-color .15s;
  text-align: center;
}
.btn-primary { background: var(--color-primary); color: var(--color-primary-foreground); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: transparent; border-color: var(--color-border); color: var(--color-foreground); }
.btn-ghost:hover { border-color: var(--color-primary); }
.btn-block { width: 100%; }
.inline-form { display: inline; }
.inline-form .btn { border: none; background: none; padding: 0.65rem 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; background: var(--color-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 1.25rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 3.5rem; width: 3.5rem; object-fit: contain; }
.main-nav { display: none; gap: 2rem; }
.nav-link { font-size: 0.9rem; font-weight: 600; color: rgba(26,26,26,.7); }
.nav-link:hover, .nav-link-active { color: var(--color-foreground); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn { display: none; }
.menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.25rem; height: 2.25rem; background: none; border: none; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; height: 2px; background: var(--color-foreground); border-radius: 1px; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--color-border); padding: 0.75rem 1.25rem 1.25rem; gap: 0.6rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav form { font-weight: 600; }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Footer */
.site-footer { background: var(--color-dark); border-top: 1px solid var(--color-border); margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 1.25rem; grid-template-columns: 1fr; }
.footer-logo { height: 2rem; width: 2rem; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; }
.footer-tagline { margin-top: 1rem; max-width: 20rem; font-size: 0.9rem; color: var(--color-muted-foreground); }
.footer-heading { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted-foreground); }
.footer-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.footer-bar { border-top: 1px solid var(--color-border); }
.footer-bar-inner { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; padding: 1.25rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

/* Hero */
.hero { position: relative; min-height: 26rem; display: flex; align-items: center; justify-content: center; overflow: hidden; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.7); }
.hero-inner { position: relative; z-index: 1; max-width: 44rem; margin: 0 auto; padding: 4rem 1.25rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-inner h1 { font-size: 2.25rem; font-weight: 800; }
.hero-inner p { max-width: 34rem; color: var(--color-muted-foreground); }
@media (min-width: 768px) { .hero-inner h1 { font-size: 3.5rem; } }

.search-form { display: flex; align-items: center; gap: 0.5rem; width: 100%; max-width: 34rem; border-radius: var(--radius-card); border: 1px solid var(--color-border); background: var(--color-surface); padding: 0.5rem 0.75rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.search-form input { flex: 1; border: none; outline: none; background: transparent; font-size: 0.9rem; font-family: var(--font-sans); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Sections */
.section { padding: 3.5rem 1.25rem; }
.section-header { text-align: center; max-width: 34rem; margin: 0 auto 3rem; }
.band { background: var(--color-dark); color: var(--color-dark-foreground); }
.band-strip { background: var(--color-muted); padding: 3.5rem 1.25rem; }

/* Category tiles */
.tile-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: var(--max-width); margin: 3rem auto 0; padding: 0 1.25rem; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; display: flex; align-items: center; justify-content: center; background-color: #120c10; background-size: cover; background-position: center; transition: transform .3s; color: #fff; }
.tile:hover { transform: scale(1.02); }
.tile span { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tile:hover { opacity: .92; }

/* CTA band */
.cta-band { position: relative; background: linear-gradient(135deg, #1a1a1a, #3a1420); color: #fff; text-align: center; padding: 5rem 1.25rem; }
.cta-band h2 { font-size: 1.9rem; }
.cta-band p { max-width: 34rem; margin: 1rem auto 0; color: rgba(255,255,255,.7); }

/* Cards */
.card { border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); padding: 2rem; }
.pillar-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-icon { width: 2.75rem; height: 2.75rem; border-radius: 999px; background: rgba(147,35,58,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.3rem; }

/* Policy list */
.policy-list { max-width: 44rem; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; padding-left: 1.25rem; }
.policy-list li { font-size: 0.9rem; color: var(--color-muted-foreground); }

/* Forms */
.form-grid { display: grid; gap: 1.25rem; }
.form-row-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  font-size: 0.9rem; font-family: var(--font-sans); background: var(--color-surface); color: var(--color-foreground);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); }
.field-error { color: var(--color-primary); font-size: 0.8rem; margin-top: 0.3rem; }
.form-note { font-size: 0.8rem; color: var(--color-muted-foreground); margin-top: 0.75rem; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius-card); font-size: 0.9rem; margin-bottom: 1.25rem; }
.alert-success { background: #eaf6ea; color: #1f5c26; border: 1px solid #bfe3c1; }
.alert-error { background: #fbeaea; color: #8a2222; border: 1px solid #f0c2c2; }

/* Two-column layout (contact page etc) */
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Checkbox pill grids (instrument/style/seeking pickers) */
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.5rem; }
.checkbox-pill { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); font-size: 0.85rem; cursor: pointer; }
.checkbox-pill input { width: auto; }
.checkbox-pill:has(input:checked) { border-color: var(--color-primary); background: rgba(147,35,58,.06); }

/* Auth pages */
.auth-page { max-width: 26rem; margin: 0 auto; padding: 4rem 1.25rem; text-align: center; }
.auth-page .card { text-align: left; margin-top: 2rem; }
.auth-links { margin-top: 1.25rem; font-size: 0.85rem; color: var(--color-muted-foreground); text-align: center; }

/* Advertiser banner (admin-managed, shown in ad-slot-container placements) */
.ad-slot-container { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.ad-slot-container .ad-banner { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0; text-decoration: none; }
.ad-banner-label { flex-shrink: 0; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted-foreground); border: 1px solid var(--color-muted-foreground); border-radius: 4px; padding: 2px 6px; }
.ad-slot-container .ad-banner img { max-width: 100%; max-height: 90px; border-radius: var(--radius-card); display: block; }

/* Click-to-enlarge profile photo */
[data-lightbox] { cursor: zoom-in; transition: transform .15s ease; }
[data-lightbox]:hover, [data-lightbox]:focus-visible { transform: scale(1.05); outline: none; }
.photo-lightbox-overlay {
  position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(10,10,10,0); cursor: zoom-out;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, background-color .25s ease, visibility 0s linear .25s;
}
.photo-lightbox-overlay.open {
  opacity: 1; visibility: visible; background: rgba(10,10,10,.85);
  transition: opacity .25s ease, background-color .25s ease, visibility 0s linear 0s;
}
/* The "frame" is a distinct card the photo flies out into -- sized
   relative to the viewport so it reads as appropriately large on both a
   phone (near full-screen) and a desktop (a contained card, not a
   postage stamp lost in the middle of a huge monitor). */
.photo-lightbox-frame {
  position: relative; width: min(92vw, 480px);
  background: var(--color-surface); border-radius: calc(var(--radius-card) + 0.25rem);
  padding: 0.6rem; box-shadow: 0 25px 70px rgba(0,0,0,.55);
  transform: scale(0.6); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.photo-lightbox-overlay.open .photo-lightbox-frame { transform: scale(1); }
.photo-lightbox-img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-card); background: #111;
}
.photo-lightbox-close {
  position: absolute; top: -0.9rem; right: -0.9rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--color-foreground); color: #fff; border: 2px solid var(--color-surface);
  font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.photo-lightbox-close:hover { opacity: .85; }

@media (max-width: 640px) {
  .photo-lightbox-overlay { padding: 0.75rem; }
  .photo-lightbox-frame { width: min(94vw, 94vh); padding: 0.4rem; }
  .photo-lightbox-close { top: -0.6rem; right: -0.6rem; width: 2.25rem; height: 2.25rem; }
}

/* Photo crop overlay */
.photo-crop-overlay { position: fixed; inset: 0; background: rgba(10,10,10,.75); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.photo-crop-panel { background: var(--color-surface); border-radius: var(--radius-card); padding: 1.5rem; max-width: 22rem; width: 100%; text-align: center; }
.photo-crop-panel h3 { margin-bottom: 1rem; }
.photo-crop-viewport { position: relative; width: 260px; height: 260px; margin: 0 auto; overflow: hidden; border-radius: 50%; border: 2px solid var(--color-border); background: #111; cursor: grab; touch-action: none; }
.photo-crop-viewport.dragging { cursor: grabbing; }
.photo-crop-viewport img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.photo-crop-zoom { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; }
.photo-crop-zoom input[type="range"] { flex: 1; width: auto; }
.photo-crop-actions { display: flex; gap: 0.6rem; margin-top: 1.25rem; justify-content: center; }

/* Under-construction banner -- code stays even when disabled, see includes/config.php */
.under-construction-banner { position: relative; z-index: 10; width: 100%; background: var(--color-primary); padding: 0.75rem; text-align: center; }
.under-construction-banner p { margin: 0; font-size: 1.1rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; }

/* Simple footer/prose */
.prose h2 { font-size: 1.2rem; }
.prose section + section { margin-top: 2.5rem; }
.prose p { color: var(--color-muted-foreground); }

/* Cookie consent banner -- same pattern as tapalist.com */
.cookie-consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--color-foreground); color: #fff;
  padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 20px; box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
.cookie-consent-banner p { margin: 0; font-size: .85rem; max-width: 640px; flex: 1 1 320px; }
.cookie-consent-banner a { color: #fff; font-weight: 700; text-decoration: underline; }
.cookie-consent-banner button {
  flex-shrink: 0; border: none; background: var(--color-primary); color: #fff;
  font-family: var(--font-sans); font-weight: 700; font-size: .85rem;
  padding: 9px 22px; border-radius: var(--radius-card); cursor: pointer;
}
.cookie-consent-banner button:hover { opacity: .9; }
