/* KeiFacts - Kei Truck Legality by State */
:root,
[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3AAEEE;
  --legal: #2ea043;
  --restricted: #e6b800;
  --illegal: #ef4444;
  --pending: #d8d8d8;
  --unknown: #4a4a4a;
  --border: #30363d;
}

/* Light theme */
[data-theme="light"] {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #1f2328;
  --text-muted: #656d76;
  --accent: #3AAEEE;
  --border: #d0d7de;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

/* Smooth fade when switching light/dark mode - only during theme change */
html.theme-transitioning body,
html.theme-transitioning body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Page content constrained to 1200px; nav is full-width above it */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  text-align: center;
  position: relative;
}

/* Map page: header comes after nav */
body.page-map .page-content header {
  padding-top: 1.5rem;
}

body.page-home .page-content main { padding-top: 1rem; }

/* Nav scroll wrapper - collapses when scrolling down, expands when scrolling up.
   Uses transform (not overflow) so dropdown panels can extend below. */
.nav-scroll-wrapper {
  overflow: visible;
  transition: transform 0.3s ease-out, margin-bottom 0.3s ease-out;
}
.nav-scroll-wrapper.nav-hidden {
  transform: translateY(-100%);
  margin-bottom: -120px; /* Pull content up; matches max nav height when wrapped */
}

/* Site nav bar - full width, outside page-content */
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 0;
  width: 100%;
  background: linear-gradient(to bottom, #12A4ED, #67B8F0);
}

.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
}

.nav-brand:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-brand img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav .theme-toggle {
  justify-self: end;
}

.nav-links > a,
.nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}

.nav-links > a:hover,
.nav-dropdown-trigger:hover {
  color: #fff;
}

.nav-links > a.active,
.nav-dropdown-trigger.active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-underline-offset: 4px;
}

.nav-placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  cursor: default;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

/* Nav dropdowns - desktop only */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.5rem;  /* Bridge gap so cursor path stays hoverable */
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 100;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-map {
  min-width: 420px;
  padding: 0;
}

.nav-dropdown-map .nav-dropdown-map-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.nav-dropdown-map .nav-dropdown-map-link img {
  width: 200px;
  height: 115px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-dropdown-map .nav-dropdown-map-link span {
  font-weight: 600;
  font-size: 1rem;
}

.nav-dropdown-map .nav-dropdown-map-link:hover span {
  color: var(--accent);
}

.nav-dropdown-podcast,
.nav-dropdown-pics {
  padding: 1rem 1.25rem;
  min-width: 200px;
}

.nav-dropdown-podcast p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-dropdown-pics a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-dropdown-pics a:hover {
  color: var(--accent);
}

.nav-dropdown-blog {
  padding: 1rem 1.25rem;
  min-width: 720px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: flex-start;
}

.nav-dropdown-blog .nav-dropdown-blog-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
}

.nav-dropdown-blog .nav-dropdown-blog-item img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.nav-dropdown-blog .nav-dropdown-blog-item span {
  line-height: 1.25;
}

.nav-dropdown-blog .nav-dropdown-blog-item:hover span {
  color: var(--accent);
}

.nav-dropdown-blog .nav-dropdown-more {
  align-self: center;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  width: auto;
}

.nav-dropdown-blog .nav-dropdown-more:hover {
  text-decoration: underline;
}

/* Tablet: constrain dropdown widths to prevent horizontal scroll */
@media (min-width: 769px) and (max-width: 900px) {
  .nav-dropdown-map {
    min-width: min(420px, 90vw);
  }
  .nav-dropdown-blog {
    min-width: min(720px, 95vw);
  }
}

/* Hide dropdowns on mobile - show plain links */
@media (max-width: 768px) {
  .nav-dropdown-panel {
    display: none;
  }
}

/* Mobile nav - hamburger + slide-out menu with scroll lock */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (min-width: 769px) {
  .mobile-nav-toggle { display: none !important; }
}
@media (max-width: 768px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }
  .mobile-nav-toggle {
    display: flex;
    justify-self: end;
  }
  .nav-links,
  .site-nav .theme-toggle { display: none !important; }
}

.mobile-nav-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}
.mobile-nav-menu.mobile-nav-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-menu.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, #12A4ED, #67B8F0);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  padding-top: 3rem;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-menu.mobile-nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-nav-link:hover {
  color: #fff;
}

.mobile-nav-link.active {
  color: #fff;
  border-bottom-color: #fff;
  border-bottom-width: 2px;
}

.mobile-nav-theme {
  margin-top: auto;
  padding-top: 1rem;
}

.mobile-nav-drawer .theme-toggle {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.mobile-nav-drawer .theme-toggle:hover {
  border-color: #fff;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-nav-open,
html.mobile-nav-open {
  overflow: hidden !important;
  height: 100%;
}

/* News homepage layout - Barstool-style */
.news-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .news-main {
    grid-template-columns: 1fr;
  }
}

.featured-article {
  margin-bottom: 0;
}

.featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.featured-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.featured-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.featured-content {
  padding: 1.5rem;
}

.featured-content h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.featured-summary {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.featured-cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.news-sidebar {
  position: sticky;
  top: 1rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sidebar-list li {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.sidebar-list li:first-child {
  padding-top: 0;
}

.sidebar-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.sidebar-list a:hover strong {
  color: var(--accent);
}

.sidebar-item-img {
  flex-shrink: 0;
  width: 56px;
  height: 40px;
  overflow: hidden;
  border-radius: 4px;
}

.sidebar-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-item-content {
  flex: 1;
  min-width: 0;
}

.sidebar-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.sidebar-list .sidebar-item-content > span:not(.sidebar-item-meta) {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.35;
}

.sidebar-placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.sidebar-placeholder strong {
  color: var(--text-muted);
}

.btn-sidebar {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-sidebar:hover {
  filter: brightness(1.1);
}

/* Recent Kei Pics section */
.kei-pics-section {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.kei-pics-header {
  margin-bottom: 1.5rem;
}

.kei-pics-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kei-pics-header h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.kei-pics-see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
}

.kei-pics-see-all:hover {
  filter: brightness(1.1);
}

.kei-pics-submit {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.kei-pics-submit a {
  color: var(--accent);
  text-decoration: none;
}

.kei-pics-submit a:hover {
  text-decoration: underline;
}

.kei-pics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .kei-pics-grid,
  .kei-pics-grid-full {
    grid-template-columns: 1fr;
  }
}

.kei-pic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.kei-pic-image {
  aspect-ratio: 4/3;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kei-pic-image img,
.kei-pic-image .kei-pic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.kei-pic-placeholder .kei-pic-image {
  background: var(--surface);
  border-bottom: 1px dashed var(--border);
}

.kei-pic-placeholder .kei-pic-image span {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

.kei-pic-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.kei-pic-owner {
  color: var(--text-muted);
}

.kei-pic-social {
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.25rem;
}

.kei-pic-social:hover {
  text-decoration: underline;
}

.kei-pic-caption-text {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Kei Pics submission form */
.kei-pics-form-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 480px;
}

/* Wider form on dedicated submit page (desktop) */
.kei-pics-form-page {
  max-width: 720px;
}

@media (min-width: 768px) {
  .kei-pics-form-page {
    max-width: 800px;
    padding: 2rem;
  }
}

.kei-pics-form-section h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.kei-pics-form-section .form-group {
  margin-bottom: 1rem;
}

.kei-pics-form-section label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.kei-pics-form-section input[type="text"],
.kei-pics-form-section input[type="email"],
.kei-pics-form-section input[type="url"],
.kei-pics-form-section input[type="file"],
.kei-pics-form-section textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

.kei-pics-form-section textarea {
  min-height: 60px;
  resize: vertical;
}

.kei-pics-form-section .form-terms {
  margin: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.kei-pics-form-section .form-terms label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.kei-pics-form-section .form-terms input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.kei-pics-form-section .form-actions {
  margin-top: 1rem;
}

.kei-pics-form-section .form-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.kei-pics-form-section .form-msg.success { color: var(--legal); }
.kei-pics-form-section .form-msg.error { color: var(--illegal); }

.kei-pics-cta {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* Kei Meets */
.meets-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.meets-header {
  margin-bottom: 1.5rem;
}

.meets-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meets-header h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.meets-desc {
  color: var(--text-muted);
  margin: 0;
}

.btn-submit-meet {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-submit-meet:hover {
  filter: brightness(1.1);
}

.meets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.meet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.meet-card:hover {
  border-color: var(--accent);
}

.meet-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
}

.meet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meet-image span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meet-placeholder .meet-image span {
  padding: 1rem;
}

.meet-placeholder-btn {
  display: inline-block;
  margin-top: 0.75rem;
  text-decoration: none;
}

.meet-content {
  padding: 1rem 1.25rem;
}

.meet-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.meet-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.meet-location a {
  color: var(--accent);
  text-decoration: none;
}

.meet-location a:hover {
  text-decoration: underline;
}

.meet-social {
  color: var(--accent);
  text-decoration: none;
}

.meet-social:hover {
  text-decoration: underline;
}

.meet-social-wrap {
  margin: 0.25rem 0 0;
}

.meet-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.meets-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.meets-cta .btn-sidebar {
  display: inline-block;
  width: auto;
  padding: 0.6rem 1.25rem;
}

/* Submit Meet page */
.submit-meet-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.submit-meet-header {
  margin-bottom: 2rem;
}

.submit-meet-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1rem;
}

.submit-meet-back:hover {
  text-decoration: underline;
}

.submit-meet-header h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.submit-meet-header p {
  color: var(--text-muted);
  margin: 0;
}

.meet-form-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 720px;
}

@media (min-width: 768px) {
  .meet-form-section {
    max-width: 800px;
    padding: 2rem;
  }
}

.meet-form-section h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.form-section-label {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
}

.meet-form-section .form-group {
  margin-bottom: 1rem;
}

.meet-form-section .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .meet-form-section .form-row {
    grid-template-columns: 1fr;
  }
}

.meet-form-section label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.meet-form-section .form-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.meet-form-section input[type="text"],
.meet-form-section input[type="email"],
.meet-form-section input[type="url"],
.meet-form-section input[type="date"],
.meet-form-section input[type="time"],
.meet-form-section input[type="file"],
.meet-form-section textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

.meet-form-section textarea {
  min-height: 100px;
  resize: vertical;
}

.meet-form-section .form-terms {
  margin: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.meet-form-section .form-terms label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.meet-form-section .form-terms input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.meet-form-section .form-actions {
  margin-top: 1rem;
}

.meet-form-section .form-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.meet-form-section .form-msg.success { color: var(--legal); }
.meet-form-section .form-msg.error { color: var(--illegal); }

/* Meet submit success toast */
.meet-submit-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  padding: 0.75rem 1.5rem;
  background: var(--legal);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.meet-submit-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kei-pics-cta .btn-sidebar {
  display: inline-block;
  width: auto;
  padding: 0.6rem 1.25rem;
}

.pics-page-cta {
  margin-top: 2rem;
}

/* Submit Kei page */
.submit-kei-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.submit-kei-header {
  margin-bottom: 2rem;
}

.submit-kei-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1rem;
}

.submit-kei-back:hover {
  text-decoration: underline;
}

.submit-kei-header h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.submit-kei-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Pics page */
.pics-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.pics-page-header h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.btn-submit-kei {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-submit-kei:hover {
  filter: brightness(1.1);
}

.kei-pics-grid-full {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .kei-pics-grid-full {
    grid-template-columns: 1fr;
  }
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.site-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.site-logo {
  flex-shrink: 0;
  vertical-align: middle;
}

.tagline {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

header .suggest-edit-trigger {
  margin-top: 0.75rem;
}

main { padding: 1.5rem 0 3rem; }

/* Simple pages (podcast) */
.page-simple {
  padding: 3rem 0;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.page-simple h1 {
  margin-bottom: 1rem;
}

.page-simple .coming-soon {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Blog page layout */
.blog-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.blog-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .blog-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .blog-featured {
    flex: 1;
    min-width: 0;
  }
  .blog-sidebar {
    flex: 0 0 320px;
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 767px) {
  .blog-top {
    flex-direction: column;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.blog-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 1rem 1.25rem;
}

.blog-card-content h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.blog-card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Blog post (individual article) */
.blog-post-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.blog-post-main .btn-back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
}

.blog-post-main .btn-back:hover {
  color: var(--accent);
}

.blog-post-main > p:first-of-type {
  margin: 0 0 0.75rem;
}

.blog-post-main > p:last-of-type {
  margin: 1rem 0 0;
}

.blog-post-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.blog-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-view-wrap {
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-view-count {
  font-variant-numeric: tabular-nums;
}

.blog-author-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-author-byline-card {
  margin-bottom: 0.5rem;
}

.blog-author-byline:empty {
  display: none;
}

.blog-author-byline .blog-author-avatar {
  width: 28px;
  height: 28px;
}

.featured-byline {
  margin-bottom: 0.5rem;
}

.featured-byline:empty {
  display: none;
}

.featured-byline .blog-author-avatar {
  width: 32px;
  height: 32px;
}

.sidebar-list .sidebar-item-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.sidebar-list .sidebar-item-meta > span {
  line-height: 1;
}

.sidebar-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.blog-post-body {
  line-height: 1.7;
}

.blog-post-body p {
  margin: 0 0 1rem;
}

.blog-post-affiliates {
  margin: 1.5rem 0 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.blog-post-affiliates-title {
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.blog-post-affiliates-list {
  margin: 0;
  padding-left: 1.25rem;
}

.blog-post-affiliates-list a {
  color: var(--accent);
  text-decoration: none;
}

.blog-post-affiliates-list a:hover {
  text-decoration: underline;
}

/* Map */
.map-section {
  margin-bottom: 2rem;
}

.map-section h2,
.state-list-section h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.legend-pill.legal { background: var(--legal); }
.legend-pill.restricted { background: var(--restricted); color: #1a1a1a; }
.legend-pill.illegal { background: var(--illegal); }
.legend-pill.pending { background: var(--pending); color: #1a1a1a; border-color: rgba(0,0,0,0.2); }
.legend-pill.unknown { background: var(--unknown); }

.map-container {
  position: relative;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  padding: 0.5rem;
}

.map-svg-wrapper {
  display: block;
  line-height: 0;
}

.map-svg-wrapper svg {
  max-width: 100%;
  height: auto;
}

#us-map {
  width: 100%;
  height: auto;
  max-height: 75vh;
}

#us-map path {
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

#us-map path:hover {
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  #us-map path:hover {
    filter: none;
  }
}

.state-tooltip {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  left: 0;
  top: 0;
  transition: opacity 0.15s;
}

.state-tooltip.visible {
  opacity: 1;
}

.state-tooltip .tooltip-state { font-weight: 700; margin-bottom: 0.25rem; }
.state-tooltip .tooltip-legal { font-size: 0.75rem; color: var(--text-muted); }
.state-tooltip .tooltip-detail { margin-top: 0.25rem; font-size: 0.75rem; }

/* State list */
.state-list-section {
  margin-top: 2rem;
}

.disclaimer {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.state-list-controls {
  margin-bottom: 1rem;
}

.state-search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.state-search {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.state-search::placeholder {
  color: var(--text-muted);
}

.state-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.state-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-pill {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.filter-pill.legal { border: 1.5px solid var(--legal); color: var(--legal); }
.filter-pill.legal:hover { background: rgba(46, 160, 67, 0.15); }
.filter-pill.legal.selected { background: var(--legal); color: #fff; border-color: var(--legal); }

.filter-pill.restricted { border: 1.5px solid var(--restricted); color: var(--restricted); }
.filter-pill.restricted:hover { background: rgba(230, 184, 0, 0.15); }
.filter-pill.restricted.selected { background: var(--restricted); color: #1a1a1a; border-color: var(--restricted); }

.filter-pill.illegal { border: 1.5px solid var(--illegal); color: var(--illegal); }
.filter-pill.illegal:hover { background: rgba(239, 68, 68, 0.15); }
.filter-pill.illegal.selected { background: var(--illegal); color: #fff; border-color: var(--illegal); }

.filter-pill.pending { border: 1.5px solid var(--pending); color: var(--text-muted); }
.filter-pill.pending:hover { background: rgba(216, 216, 216, 0.3); }
.filter-pill.pending.selected { background: var(--pending); color: #1a1a1a; border-color: var(--pending); }

.filter-pill.unknown { border: 1.5px solid var(--unknown); color: var(--unknown); }
.filter-pill.unknown:hover { background: rgba(74, 74, 74, 0.15); }
.filter-pill.unknown.selected { background: var(--unknown); color: #fff; border-color: var(--unknown); }

.btn-clear {
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-clear:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.state-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.state-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.15s;
}

.state-card:hover { border-color: var(--accent); }

.state-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.state-card-link:hover { color: inherit; }

.state-card-link h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.state-card-link:hover h3 { color: var(--accent); }

.state-card .state-card-gov {
  margin-top: 0.5rem;
}

.state-card .badge,
.state-page .state-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.state-card .badge { font-size: 0.7rem; margin-bottom: 0.5rem; }

.badge.legal,
.state-badge.legal { background: var(--legal); }
.badge.restricted,
.state-badge.restricted { background: var(--restricted); color: #1a1a1a; }
.badge.illegal,
.state-badge.illegal { background: var(--illegal); }
.badge.pending,
.state-badge.pending { background: var(--pending); color: #1a1a1a; border-color: rgba(0,0,0,0.2); }
.badge.unknown,
.state-badge.unknown { background: var(--unknown); }

.state-card .detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0;
}

.state-list-empty {
  color: var(--text-muted);
  padding: 1.5rem;
}

.state-list-empty .link-button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

/* Ad banners */
.ad-banner {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}

.ad-banner .ad-mobile { display: none; }

@media (max-width: 768px) {
  .ad-banner .ad-desktop { display: none; }
  .ad-banner .ad-mobile { display: block; width: 100%; max-width: 100%; }
  .ad-banner.ad-mid .ad-mobile { display: block; }
  .ad-banner .ad-mobile .ad-link {
    width: 100%;
  }
  .ad-banner .ad-mobile img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 60px;
    object-fit: contain;
  }
  .ad-banner .ad-mobile .ad-destination {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
}

.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.ad-link {
  display: block;
  position: relative;
}

.ad-link,
.ad-link:link,
.ad-link:visited,
.ad-link:hover,
.ad-link:focus,
.ad-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.ad-link:hover .ad-destination {
  opacity: 1;
}

.ad-destination {
  display: none;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  opacity: 0.9;
  color: white;
  pointer-events: none;
  font-size: 0.75rem;
}

.ad-domain {
  color: white;
}

.ad-external-icon {
  display: none;
}

.ad-external-icon svg {
  display: block;
  color: white;
}

.ad-slot img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ad-mrec .ad-slot { min-height: 250px; }

/* State detail page - back button */
header nav {
  position: absolute;
  left: 0;
  top: 1rem;
}

/* On mobile: ensure correct order - title first, then tagline, then suggest edit */
@media (max-width: 768px) {
  body.page-map .page-content header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  body.page-map .page-content header nav {
    position: static;
    order: 1;
    margin-bottom: 0.75rem;
  }
  body.page-map .page-content header .site-title {
    order: 2;
    margin: 0;
  }
  body.page-map .page-content header .tagline {
    order: 3;
  }
  body.page-map .page-content header p:last-of-type {
    order: 4;
  }
  body.page-map .page-content main {
    padding-top: 0.5rem;
  }
  body.page-map .page-content .ad-banner.ad-top {
    margin-top: 0.5rem;
  }
}

header nav .btn-back {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

/* Dark mode: white background, dark text */
:root,
[data-theme="dark"] {
  --btn-back-bg: #ffffff;
  --btn-back-text: #1a1a1a;
}

/* Light mode: black background, white text */
[data-theme="light"] {
  --btn-back-bg: #1a1a1a;
  --btn-back-text: #ffffff;
}

header nav .btn-back {
  background: var(--btn-back-bg);
  color: var(--btn-back-text);
}

header nav .btn-back:hover {
  opacity: 0.9;
}

/* State detail page */
.state-page { padding: 2rem 0; }
.state-page .state-badge {
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1.5rem;
}
.state-page nav { margin-bottom: 1rem; }
.state-page nav a { color: var(--accent); }
.state-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 2rem;
  max-width: 600px;
}
.state-details dt { color: var(--text-muted); font-weight: 500; }
.state-details dd { margin: 0; }

.gov-source-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gov-source-link:hover {
  text-decoration: underline;
}

.gov-source-link::after {
  content: '';
  width: 0.75em;
  height: 0.75em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.7;
}

.gov-source-link--empty {
  color: var(--text-muted);
  cursor: default;
}

.gov-source-link--empty:hover {
  text-decoration: none;
}

.gov-source-link--empty::after {
  display: none;
}

/* Footer */
/* Newsletter signup */
.newsletter-section {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.newsletter-title {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.newsletter-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.newsletter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-btn {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.newsletter-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-msg {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.newsletter-msg.success {
  color: var(--legal);
}

.newsletter-msg.error {
  color: var(--illegal);
}

@media (max-width: 768px) {
  .newsletter-fields {
    flex-direction: column;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    min-width: unset;
  }
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

footer a { color: var(--accent); }

.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-social-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-social-row .btn-suggest {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-social-row a[href*="instagram"] {
  text-decoration: none;
  color: #000;
}

.footer-social-row a[href*="instagram"]:hover {
  text-decoration: none;
}

[data-theme="dark"] .footer-social-row a[href*="instagram"] {
  color: #fff;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-actions .btn-suggest {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-actions .btn-advertise {
  text-decoration: none;
  cursor: pointer;
}

.mdi--instagram {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4zm9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3'/%3E%3C/svg%3E");
}

[data-theme="dark"] .mdi--instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4zm9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3'/%3E%3C/svg%3E");
}

/* Suggest Edit */
.btn-suggest {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.btn-suggest:hover {
  border-color: var(--accent);
  background: rgba(58, 174, 238, 0.15);
}

.suggest-modal {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  max-width: 420px;
  background: var(--surface);
  color: var(--text);
}

.suggest-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.suggest-modal-content {
  position: relative;
  padding: 1.5rem;
}

.suggest-modal h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.suggest-modal-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
}

.suggest-form label {
  display: block;
  font-size: 0.85rem;
  margin: 0.75rem 0 0.25rem;
  color: var(--text-muted);
}

.suggest-form label:first-of-type { margin-top: 0; }

.suggest-form input,
.suggest-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.suggest-form input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.suggest-form textarea { resize: vertical; min-height: 80px; }

.suggest-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-submit:hover:not(:disabled) { filter: brightness(1.1); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-cancel:hover { border-color: var(--text-muted); }

.suggest-success {
  color: var(--legal);
  margin: 1rem 0 0;
}

.suggest-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.suggest-close:hover { color: var(--text); }

/* Disable hover effects on touch devices - avoids sticky hover states and unnecessary visual feedback */
@media (hover: none) {
  .nav-brand:hover { color: #fff; }
  .nav-links > a:hover,
  .nav-dropdown-trigger:hover { color: rgba(255, 255, 255, 0.95); }
  .theme-toggle:hover { border-color: var(--border); }
  .nav-dropdown-map .nav-dropdown-map-link:hover span { color: inherit; }
  .nav-dropdown-pics a:hover { color: inherit; }
  .nav-dropdown-blog .nav-dropdown-blog-item:hover span { color: inherit; }
  .nav-dropdown-blog .nav-dropdown-more:hover { text-decoration: none; }
  .mobile-nav-link:hover { color: rgba(255, 255, 255, 0.95); }
  .mobile-nav-drawer .theme-toggle:hover { border-color: rgba(255, 255, 255, 0.5); }
  .featured-link:hover { border-color: var(--border); box-shadow: none; }
  .sidebar-list a:hover strong { color: inherit; }
  .btn-sidebar:hover { filter: none; }
  .kei-pics-see-all:hover { filter: none; }
  .kei-pics-submit a:hover { text-decoration: none; }
  .kei-pic-social:hover { text-decoration: none; }
  .blog-card:hover { border-color: var(--border); box-shadow: none; }
  .blog-post-main .btn-back:hover { color: var(--text-muted); }
  #us-map path:hover { filter: none; }
  .filter-pill.legal:hover { background: transparent; }
  .filter-pill.restricted:hover { background: transparent; }
  .filter-pill.illegal:hover { background: transparent; }
  .filter-pill.pending:hover { background: transparent; }
  .filter-pill.unknown:hover { background: transparent; }
  .btn-clear:hover { border-color: var(--border); color: var(--text-muted); }
  .state-card:hover { border-color: var(--border); }
  .state-card-link:hover { color: inherit; }
  .state-card-link:hover h3 { color: inherit; }
  .ad-link:hover .ad-destination { opacity: 0.9; }
  header nav .btn-back:hover { opacity: 1; }
  .gov-source-link:hover { text-decoration: none; }
  .gov-source-link--empty:hover { text-decoration: none; }
  .newsletter-btn:hover:not(:disabled) { filter: none; }
  .btn-suggest:hover { border-color: var(--border); }
  .btn-submit:hover:not(:disabled) { filter: none; }
  .btn-cancel:hover { border-color: var(--border); }
  .suggest-close:hover { color: var(--text-muted); }
}
