/*
 * rules-of-gold.css — page-specific styling for the ROG hub.
 * Geographic tile-map of US states + filterable list view + stats +
 * featured-city cards + FAQ. Uses the same FMV CSS variables as the
 * rest of the marketing surface.
 */

/* ====================================================
   HERO
==================================================== */
.rog-hero {
  background:
    radial-gradient(ellipse at top right, rgba(197, 160, 40, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(26, 31, 58, 0.6), transparent 55%),
    var(--fmv-dark, #1a1f3a);
  color: #ffffff;
  padding: 84px 0 36px;
  text-align: center;
}

.rog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(197, 160, 40, 0.12);
  border: 1px solid rgba(197, 160, 40, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fmv-gold, #c5a028);
  margin-bottom: 1.5rem;
}

.rog-headline {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  color: #ffffff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.005em;
  line-height: 1.12;
}
.rog-headline .text-gold { color: var(--fmv-gold, #c5a028); }

.rog-subhead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Search box */
.rog-search-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.rog-search-group {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(26, 31, 58, 0.25);
}
.rog-search-icon {
  background: #ffffff;
  border: 0;
  color: var(--fmv-muted, #6c757d);
  padding-left: 1.25rem;
  font-size: 1.15rem;
}
.rog-search-input {
  border: 0;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  background: #ffffff;
}
.rog-search-input:focus { box-shadow: none; }

/* (Removed: .rog-filters + .rog-chip — chip row that lived next to the
   search box. Filters consolidated into the .rog-legend bar above the
   map. See backups timestamped 2026-04-25T22-10-39Z for the previous
   version.) */

/* ====================================================
   AT-A-GLANCE STATS — slim strip
==================================================== */
/* Slim "by the numbers" strip below the map (replaces the old 4-card section
   that pushed the map below the fold). Compact horizontal row of inline
   stats — visible after the user has scrolled through the map. */
.rog-stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  padding: 24px 24px;
  margin: 24px 0 0;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}
.rog-stat-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}
.rog-stat-inline-num {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--fmv-gold-dark, #a07f1e);
  line-height: 1;
}
.rog-stat-inline-lbl {
  color: var(--fmv-muted, #6c757d);
  font-size: 0.88rem;
}

/* ====================================================
   STATES SECTION
==================================================== */
.rog-states {
  padding: 64px 0;
  background: #ffffff;
}

.rog-states-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rog-section-title {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--fmv-dark, #1a1f3a);
  margin: 0 0 0.4rem;
}
.rog-section-sub {
  color: var(--fmv-muted, #6c757d);
  margin: 0;
}

.rog-view-toggle {
  display: inline-flex;
  background: rgba(26, 31, 58, 0.05);
  border: 1px solid rgba(26, 31, 58, 0.1);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.rog-view-btn {
  background: transparent;
  border: 0;
  color: rgba(26, 31, 58, 0.7);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.rog-view-btn:hover { color: var(--fmv-dark, #1a1f3a); }
.rog-view-btn.is-active {
  background: var(--fmv-dark, #1a1f3a);
  color: #ffffff;
}

/* Unified filter bar — doubles as tier legend (left of divider) and
   feature filters (right of divider). All buttons share .rog-legend-btn. */
.rog-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--fmv-muted, #6c757d);
  margin: 0 0 1.5rem;
  padding: 0.65rem 0.85rem;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.rog-legend > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.rog-legend-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 0.25rem;
}
.rog-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fmv-muted, #6c757d);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rog-legend-btn:hover {
  background: rgba(26, 31, 58, 0.04);
  color: var(--fmv-dark, #1a1f3a);
}
.rog-legend-btn.is-active {
  background: rgba(197, 160, 40, 0.12);
  border-color: rgba(197, 160, 40, 0.45);
  color: var(--fmv-dark, #1a1f3a);
  font-weight: 600;
}
.rog-legend-btn:focus-visible {
  outline: 2px solid var(--fmv-gold, #c5a028);
  outline-offset: 2px;
}
.rog-legend-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.rog-legend-swatch.tier-gold   { background: var(--fmv-gold, #c5a028); border-color: var(--fmv-gold, #c5a028); }
.rog-legend-swatch.tier-silver { background: #f4ecd0; border-color: #e8dcb1; }
.rog-legend-swatch.tier-bronze { background: #f7f1e3; }
.rog-legend-swatch.tier-plain  { background: #ffffff; }

/* ====================================================
   MAP VIEW — geographic tile grid
==================================================== */
.rog-map {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}

/* Tile base */
.rog-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fmv-dark, #1a1f3a);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  position: relative;
}
.rog-tile-code { letter-spacing: 0.04em; }
.rog-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 31, 58, 0.12);
  z-index: 2;
}
.rog-tile.is-hidden { opacity: 0.18; transform: none; pointer-events: none; }

/* Tier color treatments */
.rog-tile.tier-gold {
  background: var(--fmv-gold, #c5a028);
  color: var(--fmv-dark, #1a1f3a);
  border-color: var(--fmv-gold-dark, #a07f1e);
  box-shadow: 0 4px 14px rgba(197, 160, 40, 0.25);
}
.rog-tile.tier-silver {
  background: #f4ecd0;
  color: var(--fmv-dark, #1a1f3a);
  border-color: #e6d8ab;
}
.rog-tile.tier-bronze {
  background: #f7f1e3;
  color: var(--fmv-dark, #1a1f3a);
}
.rog-tile.tier-plain {
  background: #ffffff;
  color: var(--fmv-muted, #6c757d);
}

/* Geographic positioning. Approximate US tile-map layout.
   Grid columns 1-12 left → right; rows 1-9 top → bottom. */
.state-ME { grid-row: 1; grid-column: 12; }

.state-VT { grid-row: 2; grid-column: 11; }
.state-NH { grid-row: 2; grid-column: 12; }

.state-WA { grid-row: 3; grid-column: 1; }
.state-ID { grid-row: 3; grid-column: 2; }
.state-MT { grid-row: 3; grid-column: 3; }
.state-ND { grid-row: 3; grid-column: 4; }
.state-MN { grid-row: 3; grid-column: 5; }
.state-WI { grid-row: 3; grid-column: 6; }
.state-MI { grid-row: 3; grid-column: 7; }
.state-NY { grid-row: 3; grid-column: 9; }
.state-MA { grid-row: 3; grid-column: 10; }

.state-OR { grid-row: 4; grid-column: 1; }
.state-NV { grid-row: 4; grid-column: 2; }
.state-WY { grid-row: 4; grid-column: 3; }
.state-SD { grid-row: 4; grid-column: 4; }
.state-IA { grid-row: 4; grid-column: 5; }
.state-IL { grid-row: 4; grid-column: 6; }
.state-IN { grid-row: 4; grid-column: 7; }
.state-OH { grid-row: 4; grid-column: 8; }
.state-PA { grid-row: 4; grid-column: 9; }
.state-NJ { grid-row: 4; grid-column: 10; }
.state-CT { grid-row: 4; grid-column: 11; }
.state-RI { grid-row: 4; grid-column: 12; }

.state-CA { grid-row: 5; grid-column: 1; }
.state-UT { grid-row: 5; grid-column: 2; }
.state-CO { grid-row: 5; grid-column: 3; }
.state-NE { grid-row: 5; grid-column: 4; }
.state-MO { grid-row: 5; grid-column: 5; }
.state-KY { grid-row: 5; grid-column: 6; }
.state-WV { grid-row: 5; grid-column: 7; }
.state-VA { grid-row: 5; grid-column: 8; }
.state-MD { grid-row: 5; grid-column: 9; }
.state-DE { grid-row: 5; grid-column: 10; }

.state-AZ { grid-row: 6; grid-column: 2; }
.state-NM { grid-row: 6; grid-column: 3; }
.state-KS { grid-row: 6; grid-column: 4; }
.state-AR { grid-row: 6; grid-column: 5; }
.state-TN { grid-row: 6; grid-column: 6; }
.state-NC { grid-row: 6; grid-column: 7; }

.state-OK { grid-row: 7; grid-column: 4; }
.state-LA { grid-row: 7; grid-column: 5; }
.state-MS { grid-row: 7; grid-column: 6; }
.state-AL { grid-row: 7; grid-column: 7; }
.state-GA { grid-row: 7; grid-column: 8; }
.state-SC { grid-row: 7; grid-column: 9; }

.state-TX { grid-row: 8; grid-column: 4; }
.state-FL { grid-row: 8; grid-column: 8; }
.state-DC { grid-row: 8; grid-column: 9; }

.state-AK { grid-row: 9; grid-column: 1; }
.state-HI { grid-row: 9; grid-column: 3; }

/* Empty-state */
.rog-empty {
  text-align: center;
  color: var(--fmv-muted, #6c757d);
  padding: 24px;
  font-style: italic;
}

/* ====================================================
   LIST VIEW
==================================================== */
.rog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.rog-list-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left-width: 4px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fmv-dark, #1a1f3a);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.rog-list-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 31, 58, 0.08);
}
.rog-list-card.tier-gold   { border-left-color: var(--fmv-gold, #c5a028); }
.rog-list-card.tier-silver { border-left-color: #c7b06b; }
.rog-list-card.tier-bronze { border-left-color: #c8b88a; }
.rog-list-card.tier-plain  { border-left-color: #d4d4d4; }
.rog-list-card.is-hidden { display: none; }

.rog-list-code {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--fmv-dark, #1a1f3a);
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  letter-spacing: 0.04em;
}

.rog-list-body { flex-grow: 1; min-width: 0; }
.rog-list-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fmv-dark, #1a1f3a);
  margin-bottom: 4px;
}

.rog-list-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 4px;
}

.rog-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 0.78rem;
  border: 1px solid transparent;
}
.rog-badge.is-on {
  background: rgba(197, 160, 40, 0.15);
  color: var(--fmv-gold-dark, #a07f1e);
  border-color: rgba(197, 160, 40, 0.3);
}
.rog-badge.is-off {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.25);
}

.rog-list-meta {
  font-size: 0.78rem;
  color: var(--fmv-muted, #6c757d);
}

.rog-list-arrow {
  color: var(--fmv-muted, #6c757d);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ====================================================
   FEATURED CITIES
==================================================== */
.rog-cities {
  padding: 80px 0;
  background: #fafafa;
}

.rog-city-card {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--fmv-dark, #1a1f3a);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rog-city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(26, 31, 58, 0.08);
}

.rog-city-meta {
  font-size: 0.78rem;
  color: var(--fmv-muted, #6c757d);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.rog-city-state {
  display: inline-block;
  background: var(--fmv-gold, #c5a028);
  color: var(--fmv-dark, #1a1f3a);
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 0.4rem;
  font-weight: 800;
}

.rog-city-name {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--fmv-dark, #1a1f3a);
  margin-bottom: 0.75rem;
}

.rog-city-card p {
  color: var(--fmv-muted, #6c757d);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.rog-city-link {
  color: var(--fmv-gold-dark, #a07f1e);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ====================================================
   FAQ
==================================================== */
.rog-faq { padding: 80px 0; background: #ffffff; }

.rog-faq .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.rog-faq .accordion-button {
  font-weight: 600;
  color: var(--fmv-dark, #1a1f3a);
  padding: 16px 20px;
  background: #ffffff;
}
.rog-faq .accordion-button:not(.collapsed) {
  background: rgba(197, 160, 40, 0.06);
  color: var(--fmv-dark, #1a1f3a);
  box-shadow: none;
}
.rog-faq .accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(197, 160, 40, 0.2); }
.rog-faq .accordion-body {
  color: var(--fmv-muted, #6c757d);
  line-height: 1.7;
  padding: 16px 20px 20px;
}

/* ====================================================
   DISCLAIMER
==================================================== */
.rog-disclaimer { padding: 0 0 80px; background: #ffffff; }

.rog-disclaimer-card {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--fmv-gold, #c5a028);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.rog-disclaimer-card i {
  color: var(--fmv-gold-dark, #a07f1e);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.rog-disclaimer-card p {
  color: var(--fmv-muted, #6c757d);
  line-height: 1.6;
  margin: 0;
  font-size: 0.92rem;
}
.rog-disclaimer-card strong { color: var(--fmv-dark, #1a1f3a); }

/* ====================================================
   CTA
==================================================== */
.rog-cta {
  padding: 80px 0;
  background:
    radial-gradient(ellipse at top, rgba(197, 160, 40, 0.18), transparent 55%),
    var(--fmv-dark, #1a1f3a);
  color: #ffffff;
}
.rog-cta-title {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}
.rog-cta-title .text-gold { color: var(--fmv-gold, #c5a028); }
.rog-cta-sub {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* ====

/* ====================================================
   /coins/ archive — reuse rog-legend visual but switch
   to a List view layout when body.coins-view-list is set.
==================================================== */
.coin-archive-controls { padding-top: 12px; padding-bottom: 8px; }
.coin-archive-controls .rog-legend { margin-bottom: 1rem; }

/* Grid view = current 3-column .col-md-6.col-lg-4 layout (default). */

/* List view — collapse cards into single-column rows with a thin image
   on the left and title/specs stacked on the right. */
body.coins-view-list .coin-cat-section .row { display: block; }
body.coins-view-list .coin-cat-section .col-md-6,
body.coins-view-list .coin-cat-section .col-lg-4 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  margin-bottom: 12px;
}
body.coins-view-list .explore-card {
  display: grid !important;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px !important;
  text-align: left !important;
}
body.coins-view-list .explore-card img {
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
}
body.coins-view-list .explore-card .explore-icon {
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
  font-size: 2rem;
}
body.coins-view-list .explore-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.3;
}
body.coins-view-list .explore-card p { margin: 0; }
body.coins-view-list .explore-card .explore-link { white-space: nowrap; }
