.logo:hover h1 {
  text-decoration: none !important;
}
/* Amazon-inspired Design System */

:root {
  --primary-color: #FF9900;
  --secondary-color: #146EB4;
  --accent-color: #232F3E;
  --text-primary: #0F1111;
  --text-secondary: #565959;
  --border-color: #D5D9D9;
  --bg-light: #F7F8F8;
  --bg-white: #FFFFFF;
  --success-color: #067D62;
  --rating-star: #FFA41C;
  --link-color: #007185;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Amazon Ember", Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-white);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--accent-color);
  color: white;
  padding: 0.2rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-star {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-block;
  margin-right: -3px;
}

.logo h1 {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  transition: color 0.2s;
}

.logo:hover, .logo:hover h1 {
  color: #ffd800;
  text-decoration: none !important;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #ffd800;
}

.search-toggle,
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: white;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  line-height: 1.6;
  vertical-align: baseline;
}

.search-toggle:hover,
.share-button:hover {
  color: #ffd800;
}

.search-toggle svg,
.share-button svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-top: -2px;
}

/* Hide mobile share button on desktop */
.share-button-mobile {
  display: none;
}

/* Show desktop share button */
.share-button-desktop {
  display: inline-flex;
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  padding: 2rem;
  overflow-y: auto;
}

.search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.search-modal-content {
  background: white;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  margin-top: 2rem;
  padding: 3rem 2rem 2rem 2rem;
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  background: white;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  z-index: 10;
}

.search-modal-close:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

/* Pagefind Custom Styles */
#pagefind-search {
  width: 100%;
  margin-top: 0;
}

#pagefind-search .pagefind-ui__form {
  position: relative !important;
  display: block !important;
}

#pagefind-search .pagefind-ui__search-clear {
  display: none !important;
}

#pagefind-search .pagefind-ui {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--secondary-color);
  --pagefind-ui-text: var(--text-primary);
  --pagefind-ui-background: white;
  --pagefind-ui-border: var(--border-color);
  --pagefind-ui-tag: var(--bg-light);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 4px;
  --pagefind-ui-font: inherit;
}

#pagefind-search .pagefind-ui__search-input {
  border: 2px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem 0.75rem 0.75rem 2.8rem !important;
  font-size: 1rem;
  width: 100%;
  background: white;
  color: var(--text-primary);
}

#pagefind-search .pagefind-ui__search-input:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 110, 180, 0.1);
}

#pagefind-search .pagefind-ui__results-area {
  margin-top: 1rem;
}

#pagefind-search .pagefind-ui__result {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: all 0.2s ease;
}

#pagefind-search .pagefind-ui__result:hover {
  border-color: var(--secondary-color);
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#pagefind-search .pagefind-ui__result-link {
  text-decoration: none;
  color: inherit;
}

#pagefind-search .pagefind-ui__result-title {
  color: var(--link-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

#pagefind-search .pagefind-ui__result-excerpt {
  color: var(--text-secondary);
  line-height: 1.5;
}

#pagefind-search .pagefind-ui__message {
  color: var(--text-secondary);
  padding: 1rem;
  text-align: center;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header-actions {
    gap: 0.5rem;
  }

  /* Hide desktop share button on mobile */
  .share-button-desktop {
    display: none !important;
  }

  /* Show mobile share button on mobile */
  .share-button-mobile {
    display: inline-flex;
  }

  .share-button-mobile .share-text {
    display: none;
  }

  .share-button-mobile svg {
    width: 20px;
    height: 20px;
  }

  .search-toggle {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
    gap: 0;
  }

  .search-toggle .search-text {
    display: inline;
  }

  .search-toggle svg {
    display: none;
  }

  .search-toggle:hover {
    background: rgba(255,255,255,0.1);
  }

  .share-button .share-text {
    display: none;
  }

  .share-button svg {
    width: 20px;
    height: 20px;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background: var(--accent-color);
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
  }

  .main-nav a:hover {
    background: rgba(255,255,255,0.1);
  }

  /* Search modal adjustments for mobile */
  .search-modal {
    padding: 1rem;
  }

  .search-modal-content {
    margin-top: 1rem;
    padding: 1.5rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .search-modal-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Home Page Hero */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 1rem;
  border-radius: 8px;
}

.hero-star {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  display: block;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

/* States Grid */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.state-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.state-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  border-color: var(--primary-color);
  text-decoration: none;
}

.state-card:hover h3 {
  text-decoration: underline;
}

.state-card h3 {
  font-size: 1.3rem;
  color: var(--link-color);
  margin-bottom: 0.5rem;
}

.state-card .candidate-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Candidates Grid (on state pages) */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 2rem 0;
}

.candidate-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 120px;
}

.card-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.candidate-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.candidate-card:hover h3 {
  text-decoration: underline;
}

.candidate-card h3 {
  font-size: 1.3rem;
  color: var(--link-color);
  margin: 0;
  text-align: center;
}

/* Amazon Product Page Style */
.product-page {
  max-width: 1000px;
  margin: 0 auto;
}

.product-image-section {
  display: none;
}

.quick-info-inline {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.quick-info-inline .quick-info-item {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.quick-info-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.product-details-section {
  background: var(--bg-white);
}

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

.candidate-name-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.candidate-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  margin-bottom: 18px;
}

.candidate-name {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 2.2rem;
}

.candidate-title {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 0;
  margin-top: -.7rem;
  line-height: 1.6rem;
}

/* Info Sections */
.info-section {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.info-section h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.stat-section {
  padding: 0rem;
  border: 0px;
}

.feature-bullets {
  list-style: none;
  padding-left: 0;
}

.feature-bullets li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-bullets li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Data Source Links */
.data-source {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.data-source a {
  color: var(--link-color);
  margin-top: -10px;
}

.stat-source {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  color: var(--link-color);
  text-decoration: none;
}

.stat-source:hover {
  text-decoration: underline;
}

/* Other Candidates */
.other-candidates-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.other-candidate-link {
  color: var(--link-color);
  text-decoration: none;
  /* font-size: 1.1rem; */
  padding: 0.5rem 0;
  transition: color 0.2s;
  font-weight: bold;
}

.other-candidate-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Feed Items */
.feed-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feed-item {
  background: var(--bg-light);
  border-left: 3px solid var(--secondary-color);
  padding: 1rem;
  border-radius: 4px;
}

.feed-item-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.feed-item-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feed-item-source {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

/* AI Analysis */
.ai-analysis {
  background: linear-gradient(135deg, #f6f9fc 0%, #e9f2f9 100%);
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.ai-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.analysis-card {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.analysis-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.analysis-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Position Category Sections */
.position-category {
  margin-bottom: 3rem;
}

.position-category h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
}

/* Candidates List */
.candidates-list {
  display: grid;
  gap: 1.5rem;
}

.candidate-list-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.candidate-list-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.candidate-list-card-content h3 {
  color: var(--link-color);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.candidate-list-card-title {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.candidate-list-card-party {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.party-democrat {
  background: #e3f2fd;
  color: #1565c0;
}

.party-republican {
  background: #ffebee;
  color: #c62828;
}

.party-independent {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* Footer */
.site-footer {
  background-color: var(--accent-color);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

/* Embedded Video/iframes */
iframe[src*="drive.google.com"] {
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .states-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-info-inline {
    flex-direction: column;
    gap: 0.75rem;
  }

  iframe[src*="drive.google.com"] {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}


[id] {
  scroll-margin-top: 70px;
}

