/* ============================================================
   RedRockLocal brand tokens + shared layout
   Direction: "Strata & Switchback" — rock-layer calendar bands,
   canyon cross-section directory. See CLAUDE.md for the palette.
   ============================================================ */

:root {
  --red: #C85C3D;
  --orange: #E67E22;
  --teal: #3D9A9E;
  --sand: #A89968;
  --cream: #F9F7F4;
  --charcoal: #2C2C2C;
  --gray: #6B6B6B;
  --line: #E8E6E3;

  /* strata scale, cream -> red, used for calendar day bands */
  --strata-1: #F9F7F4;
  --strata-2: #F0E9D8;
  --strata-3: #E9D9BE;
  --strata-4: #E3C79E;
  --strata-5: #DDA26E;
  --strata-6: var(--orange);
  --strata-7: var(--red);

  /* semantic-only addition — not a brand accent, used for success states */
  --sage: #6B8F5A;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

a { color: var(--teal); }
a:hover { color: var(--red); }

/* ---------- Nav ---------- */

.rrl-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.rrl-nav .navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--charcoal) !important;
  letter-spacing: -0.01em;
}
.rrl-nav .navbar-brand span { color: var(--red); }
.rrl-nav .nav-link {
  color: var(--charcoal) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem !important;
}
.rrl-nav .nav-link:hover { color: var(--red) !important; }
.rrl-nav .nav-link.cta {
  background: var(--red);
  color: #fff !important;
  border-radius: 4px;
  padding: 0.5rem 1.1rem !important;
}
.rrl-nav .nav-link.cta:hover { background: var(--orange); }
.rrl-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 6px; }
.rrl-nav .navbar-toggler { border-color: var(--line); }

/* ---------- Footer ---------- */

.rrl-footer {
  background: var(--charcoal);
  color: var(--cream);
}
.rrl-footer .brand {
  font-weight: 700;
  font-size: 1.2rem;
}
.rrl-footer .brand span { color: var(--orange); }
.rrl-footer p { color: #c9c4bb; }
.rrl-footer a {
  color: var(--cream);
  opacity: 0.8;
}
.rrl-footer a:hover { color: var(--orange); opacity: 1; }

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

.hero {
  padding: 4.5rem 0 3.5rem;
}
.hero .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero .lead {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero .cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-rrl-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
}
.btn-rrl-primary:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-rrl-secondary {
  background: transparent;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
}
.btn-rrl-secondary:hover { border-color: var(--teal); color: var(--teal); }

.hero-strata {
  display: flex;
  height: 10px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 3rem;
}
.hero-strata span { flex: 1; }
.hero-strata span:nth-child(1) { background: var(--strata-1); }
.hero-strata span:nth-child(2) { background: var(--strata-2); }
.hero-strata span:nth-child(3) { background: var(--strata-3); }
.hero-strata span:nth-child(4) { background: var(--strata-4); }
.hero-strata span:nth-child(5) { background: var(--strata-5); }
.hero-strata span:nth-child(6) { background: var(--strata-6); }
.hero-strata span:nth-child(7) { background: var(--strata-7); }

/* ---------- Section shell ---------- */

.rrl-section { padding: 3.5rem 0; }
.rrl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  border-top: 2px solid var(--charcoal);
  padding-top: 1.25rem;
}
.rrl-section-head h2 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.rrl-section-head p { color: var(--gray); margin: 0.35rem 0 0; max-width: 32rem; }
.rrl-section-head .rrl-link {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none;
}
.rrl-section-head .rrl-link::after { content: " \2192"; }

/* ---------- Strata calendar ---------- */

.strata-cal {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  padding: 3px;
  background: var(--line);
}
.stratum {
  border-radius: 3px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  flex-wrap: wrap;
}
.stratum .day {
  font-weight: 700;
  font-size: 0.78rem;
  width: 4.2rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.stratum .chips { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: 1; }
.stratum .empty-note { font-size: 0.78rem; opacity: 0.55; }
.chip {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(44,44,44,0.12);
  border-radius: 3px;
  padding: 0.3rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--charcoal);
  text-decoration: none;
}
.chip:hover { border-color: var(--teal); color: var(--charcoal); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

.strata-1 { background: var(--strata-1); }
.strata-2 { background: var(--strata-2); }
.strata-3 { background: var(--strata-3); }
.strata-4 { background: var(--strata-4); }
.strata-5 { background: var(--strata-5); }
.strata-6 { background: var(--strata-6); }
.strata-7 { background: var(--strata-7); }
.strata-6 .day { color: var(--charcoal); opacity: 0.85; }
.strata-7 .day { color: #fff; }
.strata-7 .empty-note { color: rgba(255,255,255,0.75); }

/* ---------- Category plates + cross-section ---------- */

.plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.plate {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  position: relative;
  background: #fff;
  text-decoration: none;
  color: var(--charcoal);
  display: block;
}
.plate:hover { border-color: var(--teal); color: var(--charcoal); }
.plate .count {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  font-size: 0.7rem;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}
.plate svg { width: 22px; height: 22px; color: var(--teal); margin-bottom: 0.5rem; }
.plate .name { font-weight: 700; font-size: 0.92rem; margin: 0 0 0.15rem; }
.plate .hint { font-size: 0.75rem; color: var(--gray); margin: 0; }

.cross {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 6px;
  overflow: hidden;
}
.layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  text-decoration: none;
}
.layer .biz { font-weight: 700; color: inherit; }
.layer .meta { font-size: 0.75rem; opacity: 0.75; }
.layer.featured { background: var(--charcoal); color: #fff; padding: 1.1rem; }
.layer.mid { background: var(--strata-4); color: var(--charcoal); }
.layer.std { background: var(--strata-3); color: var(--charcoal); }
.layer.deep { background: var(--strata-2); color: var(--charcoal); }
.layer:hover { filter: brightness(0.96); }

@media (prefers-reduced-motion: no-preference) {
  .rrl-section { animation: rrl-rise 0.5s ease-out both; }
}
@keyframes rrl-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
  .stratum { gap: 0.6rem; }
  .stratum .day { width: 100%; }
}

/* ============================================================
   Component library — buttons, forms, cards, feedback, etc.
   Shared across events / directory / category / auth pages.
   ============================================================ */

/* ---------- Buttons ---------- */

.btn-rrl-ghost {
  background: transparent;
  border: none;
  color: var(--teal);
  font-weight: 700;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
}
.btn-rrl-ghost:hover { color: var(--red); }
.btn-rrl-primary.btn-sm, .btn-rrl-secondary.btn-sm, .btn-rrl-ghost.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}
.btn-rrl-primary:disabled, .btn-rrl-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  flex-shrink: 0;
}
.btn-icon:hover { border-color: var(--teal); color: var(--teal); }
.btn-icon.active { background: var(--red); border-color: var(--red); color: #fff; }
.btn-icon svg { width: 16px; height: 16px; }

/* ---------- Badges / pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-free { background: rgba(61,154,158,0.12); color: var(--teal); }
.pill-featured { background: var(--charcoal); color: #fff; }
.pill-open { background: rgba(107,143,90,0.15); color: var(--sage); }
.pill-closed { background: rgba(107,107,107,0.12); color: var(--gray); }
.pill-category { background: #fff; color: var(--charcoal); border: 1px solid var(--line); }
.pill-category.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.pill-paid { background: rgba(230,126,34,0.14); color: var(--orange); }

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-chip-row a.pill-category { text-decoration: none; }

.day-heading {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.day-heading:first-of-type { margin-top: 0; }
.day-heading h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.day-heading .count { font-size: 0.8rem; color: var(--gray); }
.event-card .pill-row {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

/* ---------- Forms & auth ---------- */

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.form-field .hint { font-size: 0.75rem; color: var(--gray); margin-top: 0.3rem; }
.form-field .error { font-size: 0.78rem; color: var(--red); margin-top: 0.3rem; font-weight: 700; }
.form-control-rrl,
.form-select-rrl,
textarea.form-control-rrl {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: #fff;
}
.form-control-rrl:focus, .form-select-rrl:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,154,158,0.15);
}
.form-control-rrl.is-invalid { border-color: var(--red); }
.form-check-rrl { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }

.auth-card {
  max-width: 26rem;
  margin: 3rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.25rem 2rem;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.auth-card .sub { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.75rem; }
.auth-card .foot-link { text-align: center; font-size: 0.85rem; margin-top: 1.25rem; color: var(--gray); }

.toggle-switch { position: relative; display: inline-block; width: 2.6rem; height: 1.5rem; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background 0.15s;
}
.toggle-track::before {
  content: ""; position: absolute; width: 1.1rem; height: 1.1rem; left: 0.2rem; top: 0.2rem;
  background: #fff; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.toggle-switch input:checked + .toggle-track { background: var(--teal); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(1.1rem); }

/* pure-CSS star rating input (no JS) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.star-input input { display: none; }
.star-input label {
  font-size: 1.4rem; color: var(--line); cursor: pointer; margin: 0;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--orange); }

.stars-display { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--orange); }
.stars-display svg { width: 14px; height: 14px; }
.stars-display .count { color: var(--gray); font-size: 0.78rem; margin-left: 0.35rem; }

/* ---------- Alerts ---------- */

.alert-rrl {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  border-left: 4px solid;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-rrl svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1rem; }
.alert-success { background: rgba(107,143,90,0.1); border-color: var(--sage); color: #3d5533; }
.alert-warning { background: rgba(230,126,34,0.1); border-color: var(--orange); color: #7a4310; }
.alert-danger { background: rgba(200,92,61,0.1); border-color: var(--red); color: #7a3521; }
.alert-info { background: rgba(61,154,158,0.1); border-color: var(--teal); color: #1f5457; }

/* ---------- Cards: events & businesses ---------- */

.event-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--charcoal);
  height: 100%;
}
.event-card:hover { border-color: var(--teal); color: var(--charcoal); }
.event-card .media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--strata-4);
}
.event-card .date-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--red);
  color: #fff;
  border-radius: 5px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  line-height: 1.1;
}
.event-card .date-badge .mon { display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.event-card .date-badge .num { display: block; font-size: 1.05rem; font-weight: 700; }
.event-card .body { padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.event-card .eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); }
.event-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.event-card .meta-row { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--gray); }
.event-card .meta-row svg { width: 13px; height: 13px; flex-shrink: 0; }
.event-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 0.6rem; }

.business-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--charcoal);
  height: 100%;
  position: relative;
}
.business-card:hover { border-color: var(--teal); color: var(--charcoal); }
.business-card .media { aspect-ratio: 16 / 10; background: var(--strata-3); position: relative; }
.business-card .ribbon {
  position: absolute; top: 0.65rem; right: 0.65rem;
}
.business-card .body { padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.business-card h3 { font-size: 1.02rem; margin: 0; }
.business-card .cat-line { font-size: 0.8rem; color: var(--gray); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.business-card .addr { font-size: 0.8rem; color: var(--gray); display: flex; align-items: center; gap: 0.4rem; }
.business-card .addr svg { width: 13px; height: 13px; flex-shrink: 0; }
.business-card .actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; }

/* ---------- Filters & search ---------- */

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
}
.search-bar svg { width: 16px; height: 16px; color: var(--gray); flex-shrink: 0; }
.search-bar input { border: none; outline: none; flex: 1; font-size: 0.92rem; font-family: inherit; }

.filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
}
.filter-panel h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray); margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--line); padding-bottom: 0.6rem;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-clear { font-size: 0.8rem; font-weight: 700; color: var(--teal); text-decoration: none; }

/* ---------- Breadcrumb / tabs / pagination ---------- */

.breadcrumb-rrl {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--gray); margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb-rrl a { color: var(--gray); text-decoration: none; }
.breadcrumb-rrl a:hover { color: var(--teal); }
.breadcrumb-rrl .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--sand); }
.breadcrumb-rrl .current { color: var(--charcoal); font-weight: 700; }

.tabs-rrl { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.tabs-rrl a {
  padding: 0.75rem 0.1rem; font-weight: 700; font-size: 0.9rem; color: var(--gray);
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs-rrl a:hover { color: var(--charcoal); }
.tabs-rrl a.active { color: var(--charcoal); border-bottom-color: var(--red); }

.pagination-rrl { display: flex; align-items: center; gap: 0.35rem; justify-content: center; margin-top: 2rem; }
.pagination-rrl a, .pagination-rrl span {
  min-width: 2.1rem; height: 2.1rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--charcoal);
}
.pagination-rrl a:hover { background: var(--strata-2); }
.pagination-rrl .active { background: var(--charcoal); color: #fff; }
.pagination-rrl .disabled { color: var(--line); }

/* ---------- Data display ---------- */

.table-rrl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table-rrl th {
  text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #fff; background: var(--charcoal); padding: 0.7rem 0.9rem;
}
.table-rrl th:first-child { border-top-left-radius: 6px; }
.table-rrl th:last-child { border-top-right-radius: 6px; }
.table-rrl td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.table-rrl tr:nth-child(even) td { background: var(--strata-1); }

.stat-tile { border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.25rem; background: #fff; }
.stat-tile .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); font-weight: 700; }
.stat-tile .value { font-size: 1.75rem; font-weight: 700; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.stat-tile .delta { font-size: 0.78rem; margin-top: 0.25rem; font-weight: 700; }
.stat-tile .delta.up { color: var(--sage); }
.stat-tile .delta.down { color: var(--red); }

/* ---------- Feedback & states ---------- */

.empty-state {
  text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--line); border-radius: 8px;
}
.empty-state svg { width: 36px; height: 36px; color: var(--sand); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.empty-state p { color: var(--gray); font-size: 0.9rem; max-width: 26rem; margin: 0 auto 1.25rem; }

.skeleton {
  background: linear-gradient(90deg, var(--strata-2) 25%, var(--strata-1) 37%, var(--strata-2) 63%);
  background-size: 400% 100%;
  border-radius: 5px;
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: skeleton-shimmer 1.4s ease infinite; }
}
@keyframes skeleton-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.accordion-rrl details {
  border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem;
}
.accordion-rrl summary {
  font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.accordion-rrl summary::-webkit-details-marker { display: none; }
.accordion-rrl summary::after { content: "+"; font-size: 1.2rem; color: var(--teal); }
.accordion-rrl details[open] summary::after { content: "\2212"; }
.accordion-rrl .a-body { margin-top: 0.7rem; color: var(--gray); font-size: 0.9rem; }

.modal-rrl .modal-content { border-radius: 8px; border: none; }
.modal-rrl .modal-header { border-bottom: 1px solid var(--line); }
.modal-rrl .modal-title { font-weight: 700; }
.modal-rrl .modal-footer { border-top: 1px solid var(--line); }

/* ---------- Misc: avatar, stepper, dropzone, gallery, map, newsletter ---------- */

.avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}

.stepper { display: flex; align-items: center; margin-bottom: 2rem; }
.stepper .step { display: flex; align-items: center; gap: 0.6rem; flex: 1; }
.stepper .step .circle {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
  color: var(--gray); background: #fff; flex-shrink: 0;
}
.stepper .step .label { font-size: 0.8rem; font-weight: 700; color: var(--gray); white-space: nowrap; }
.stepper .step.done .circle { background: var(--sage); border-color: var(--sage); color: #fff; }
.stepper .step.current .circle { border-color: var(--red); color: var(--red); }
.stepper .step.current .label { color: var(--charcoal); }
.stepper .step:not(:last-child)::after { content: ""; height: 2px; background: var(--line); flex: 1; margin: 0 0.5rem; }
.stepper .step.done:not(:last-child)::after { background: var(--sage); }

.dropzone {
  border: 2px dashed var(--line); border-radius: 8px; padding: 2.5rem 1.5rem; text-align: center; color: var(--gray);
}
.dropzone svg { width: 28px; height: 28px; color: var(--sand); margin-bottom: 0.75rem; }
.dropzone strong { color: var(--teal); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.gallery-grid .tile { aspect-ratio: 1; border-radius: 6px; background: var(--strata-3); position: relative; overflow: hidden; }
.gallery-grid .tile.more { display: flex; align-items: center; justify-content: center; background: var(--charcoal); color: #fff; font-weight: 700; }

.map-placeholder {
  aspect-ratio: 16/7; border-radius: 8px; background: var(--strata-2);
  display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 0.85rem;
  border: 1px solid var(--line);
}

.newsletter-inline {
  display: flex; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem;
}
.newsletter-inline input { flex: 1; border: none; outline: none; padding: 0.45rem 0.6rem; font-family: inherit; }

/* ---------- Business detail page (business_example.html) ---------- */

.biz-hero {
  position: relative;
  padding: 5rem 0 3rem;
  background:
    linear-gradient(180deg, rgba(44,44,44,0.15) 0%, rgba(44,44,44,0.78) 100%),
    linear-gradient(135deg, var(--strata-5) 0%, var(--strata-7) 55%, var(--red) 100%);
  color: #fff;
}
.biz-hero .cat-pill {
  background: rgba(249,247,244,0.16);
  color: #fff;
  border: 1px solid rgba(249,247,244,0.35);
}
.biz-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 0.6rem 0 0.5rem; text-wrap: balance; }
.biz-hero .tagline { color: rgba(249,247,244,0.85); font-size: 1.05rem; max-width: 34rem; margin-bottom: 1.1rem; }
.biz-hero .meta-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; font-size: 0.88rem; color: rgba(249,247,244,0.9); margin-bottom: 1.75rem; }
.biz-hero .meta-row svg { width: 14px; height: 14px; margin-right: 0.3rem; vertical-align: -2px; }
.biz-hero .stars-display { color: var(--orange); }
.biz-hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.biz-hero .btn-rrl-secondary { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.biz-hero .btn-rrl-secondary:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,255,255,0.08); }

.biz-subnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.biz-subnav .tabs-rrl { margin: 0; border-bottom: none; overflow-x: auto; flex-wrap: nowrap; }
.biz-subnav .tabs-rrl a { white-space: nowrap; }

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.service-card svg { width: 24px; height: 24px; color: var(--teal); }
.service-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.service-card p { color: var(--gray); font-size: 0.88rem; margin: 0; flex: 1; }
.service-card .pill-price { align-self: flex-start; }
.pill-price { background: rgba(200,92,61,0.1); color: var(--red); }

.faq-cta-banner {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  text-align: center;
}
.faq-cta-banner h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.faq-cta-banner p { color: #c9c4bb; max-width: 32rem; margin: 0 auto 1.5rem; }
.faq-cta-banner .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.faq-cta-banner .btn-rrl-secondary { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); }
.faq-cta-banner .btn-rrl-secondary:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,255,255,0.06); }

/* ---------- Event detail page (event_example.html) ---------- */

.event-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .event-detail-layout { grid-template-columns: 1fr; }
}

.event-hero-media {
  aspect-ratio: 21 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--strata-5) 0%, var(--strata-7) 55%, var(--red) 100%);
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.event-hero-media .date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.event-hero-media .cats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.event-detail-block { margin-bottom: 2.25rem; }
.event-detail-block h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.event-detail-block p { color: var(--charcoal); line-height: 1.65; }

.event-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}
.event-fact-grid .stat-tile .label { display: flex; align-items: center; gap: 0.35rem; }
.event-fact-grid .stat-tile .label svg { width: 13px; height: 13px; }
.event-fact-grid .stat-tile .value { font-size: 1.05rem; }
.event-fact-grid .stat-tile .value a { color: var(--teal); text-decoration: none; }
.event-fact-grid .stat-tile .value a:hover { color: var(--red); }

.sponsored-sidebar {
  position: sticky;
  top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1.25rem;
}
.sponsored-sidebar h3 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray); margin: 0 0 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem;
  display: flex; align-items: center; justify-content: space-between;
}
.sponsored-item {
  display: flex; gap: 0.75rem; text-decoration: none; color: var(--charcoal);
  padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.sponsored-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sponsored-item .mini-date {
  flex-shrink: 0; width: 2.75rem; text-align: center; background: var(--strata-2);
  border-radius: 5px; padding: 0.35rem 0.2rem; line-height: 1.1;
}
.sponsored-item .mini-date .mon { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; color: var(--gray); }
.sponsored-item .mini-date .num { display: block; font-size: 0.95rem; font-weight: 700; color: var(--charcoal); }
.sponsored-item .info h4 { font-size: 0.88rem; font-weight: 700; margin: 0 0 0.25rem; line-height: 1.3; }
.sponsored-item .info p { font-size: 0.76rem; color: var(--gray); margin: 0; }
.sponsored-item:hover .info h4 { color: var(--red); }

/* ---------- About page: mission/vision + narrative cards ---------- */

.mission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
  background: #fff;
  height: 100%;
}
.mission-card .eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.6rem; }
.mission-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
.mission-card p { color: var(--gray); margin: 0; }

/* ---------- Claim listing page (claim_listing.html) ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tier-card.featured {
  border-color: var(--red);
  border-width: 2px;
  box-shadow: 0 12px 30px rgba(200, 92, 61, 0.15);
}
.tier-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
}
.tier-name { font-size: 1.3rem; font-weight: 700; }
.tier-price { font-size: 2.25rem; font-weight: 700; color: var(--charcoal); }
.tier-price span { font-size: 1rem; font-weight: 600; color: var(--gray); }
.tier-tagline { color: var(--gray); font-size: 0.9rem; margin: 0; }
.tier-features { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.tier-features li { padding-left: 1.4rem; position: relative; font-size: 0.92rem; color: var(--charcoal); }
.tier-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.tier-cta { text-align: center; }

/* ---------- Section head eyebrow, divider, sand band (index.html two-section split) ---------- */

.rrl-section-head .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

.section-divide {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-divide::before,
.section-divide::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-divide span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  white-space: nowrap;
}

.band-sand { background: var(--strata-2); }

.mission-card.accent { border-color: var(--red); border-width: 2px; }
.mission-card.accent .eyebrow { color: var(--red); }

.narrative-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
  background: #fff;
  height: 100%;
}
.narrative-card .icon-badge {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61,154,158,0.12); color: var(--teal); margin-bottom: 1rem;
}
.narrative-card .icon-badge svg { width: 20px; height: 20px; }
.narrative-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.narrative-card > p { color: var(--gray); margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--charcoal); }
.check-list svg { width: 15px; height: 15px; color: var(--sage); flex-shrink: 0; margin-top: 0.15rem; }

/* ---------- Style guide scaffolding (master_template.html only) ---------- */

.styleguide-banner {
  background: var(--charcoal); color: var(--cream); padding: 0.6rem 0; text-align: center;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.styleguide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.styleguide-toc {
  position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.82rem; max-height: calc(100vh - 3rem); overflow-y: auto;
}
.styleguide-toc a { color: var(--gray); text-decoration: none; padding: 0.15rem 0; }
.styleguide-toc a:hover { color: var(--red); }
.styleguide-section { padding-top: 1rem; margin-bottom: 3rem; border-top: 2px solid var(--charcoal); }
.styleguide-section h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.styleguide-section > .desc { color: var(--gray); font-size: 0.88rem; margin-bottom: 1.5rem; max-width: 40rem; }
.styleguide-block { margin-bottom: 1.75rem; }
.styleguide-block .sg-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sand);
  margin-bottom: 0.6rem; display: block;
}
.swatch { display: flex; flex-direction: column; gap: 0.4rem; }
.swatch .chip-color { height: 4.5rem; border-radius: 6px; border: 1px solid rgba(0,0,0,0.08); }
.swatch .name { font-weight: 700; font-size: 0.82rem; }
.swatch .hex { font-size: 0.76rem; color: var(--gray); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .styleguide-layout { grid-template-columns: 1fr; }
  .styleguide-toc { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; }
}

/* ---------- Static-site additions ---------- */

.skip-link:focus { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 1000; background: var(--charcoal); color: #fff; padding: 0.5rem 1rem; border-radius: 4px; }
.rrl-nav .nav-link[data-state="active"] { color: var(--red) !important; }
.rrl-nav .nav-link.cta[data-state="active"] { color: #fff !important; }
.event-card, .business-card { position: relative; }
.event-card h3 a, .business-card h3 a { color: inherit; text-decoration: none; }
.pill-on-media { background: rgba(255, 255, 255, 0.9); }
.event-card .media img, .business-card .media img, .event-hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.event-hero-media { overflow: hidden; }
.event-hero-media .cats { position: relative; }
.contact-lines p { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.contact-lines svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--teal); }
.rrl-footer .socials { display: flex; gap: 1rem; }
/* Bootstrap underlines every link; the theme's buttons, pills and footer links shouldn't be */
.btn-rrl-primary, .btn-rrl-secondary, .btn-rrl-ghost, .biz-hero .cat-pill, .rrl-footer a, .sponsored-item, .chip, .plate, .layer { text-decoration: none; }
.btn-rrl-ghost:hover, .rrl-footer a:hover { text-decoration: underline; }
/* The theme only styled the badge inside cards; the event detail hero uses it too */
.event-hero-media .date-badge {
  background: var(--red); color: #fff; border-radius: 5px; padding: 0.35rem 0.5rem; text-align: center; line-height: 1.1;
}
.event-hero-media .date-badge .mon { display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.event-hero-media .date-badge .num { display: block; font-size: 1.05rem; font-weight: 700; }
/* Business photo in the hero, under the same dark fade as the gradient version */
.biz-hero.has-photo { overflow: hidden; }
.biz-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biz-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(44,44,44,0.25) 0%, rgba(44,44,44,0.82) 100%);
}
.biz-hero > .container { position: relative; z-index: 2; }
/* Business photo gallery: a lead photo, then a tiled strip */
.biz-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.biz-gallery-item {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--line); background: var(--strata-3);
}
.biz-gallery-item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.biz-gallery-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.biz-gallery-item:hover img { transform: scale(1.04); }
/* The last photos stretch to fill their row, so any number of photos leaves no empty cells */
.biz-gallery-item:only-child { grid-column: 1 / -1; }
@media (max-width: 767.98px) {
  .biz-gallery-item:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (min-width: 768px) {
  .biz-gallery { grid-template-columns: repeat(4, 1fr); }
  .biz-gallery-item:first-child { grid-row: span 2; aspect-ratio: auto; }
  .biz-gallery-item:only-child { grid-row: auto; aspect-ratio: 21 / 9; }
  /* Two photos: side by side, half each */
  .biz-gallery-item:first-child:nth-last-child(2),
  .biz-gallery-item:nth-child(2):last-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  /* Beside the lead photo, 2 photos take a row each; in later rows of four, a pair splits the row */
  .biz-gallery-item:nth-child(4n+3):last-child,
  .biz-gallery-item:nth-child(4n+2):nth-last-child(2):not(:first-child) { grid-column: span 2; aspect-ratio: 16 / 9; }
  /* A lone last photo spans the row; a third one spans the rest of it */
  .biz-gallery-item:nth-child(4n+6):last-child { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
  .biz-gallery-item:nth-child(4n+4):last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .biz-gallery-item img { transition: none; } }
