/* mobile.css — PoliticalRecess per-page mobile responsiveness
   Loaded after styles.css so these rules win by load order.
   Nav/hamburger lives in styles.css directly. This file handles page content.
   Breakpoints: 768px (tablet & phone), 480px (small phone)
*/

/* ──────────────────────────────────────────────────────────────────────────
   Global mobile fixes
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Disclaimer banner */
  .disclaimer-banner {
    padding: 0.6rem 0.85rem;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  /* iOS auto-zooms inputs under 16px — prevent that */
  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   index.html — homepage
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem 2.5rem;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.15;
  }
  .hero-sub {
    font-size: 0.85rem;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
  }

  /* Search box — stack input and button vertically */
  .search-box {
    flex-direction: column;
    border-radius: 10px;
  }
  .search-box input {
    padding: 1rem 1.1rem;
    font-size: 1rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
  }
  .search-box button {
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    border-radius: 0 0 10px 10px;
    width: 100%;
  }

  /* App container padding */
  .app-container {
    padding: 1.25rem 1rem;
  }

  /* Usage bar */
  .usage-bar {
    padding: 0.75rem;
    gap: 0.6rem;
    font-size: 0.8rem;
  }
  .usage-left {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .usage-progress {
    width: 60px;
  }

  /* Style picker */
  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .style-card {
    padding: 0.75rem 0.6rem;
    font-size: 0.82rem;
  }

  /* Bill / search results */
  .bill-card,
  .bill-item {
    padding: 0.85rem;
    font-size: 0.88rem;
  }

  /* Summary section */
  .summary-header {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .summary-body {
    padding: 1.1rem;
  }
  .summary-plain,
  .summary-uncle,
  .summary-sports,
  .summary-nature {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .summary-conspiracy {
    font-size: 0.78rem;
    padding: 0.85rem;
  }
  .summary-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Selected bill / change bill */
  .selected-bill {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .selected-bill .change-btn,
  .change-bill-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.75rem 0.85rem 2rem;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   plans.html — pricing
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .plan-card {
    padding: 1.5rem 1.25rem;
  }
  .plan-name {
    font-size: 1rem;
  }
  .plan-price {
    font-size: 2.4rem;
  }
  .plan-desc {
    font-size: 0.88rem;
  }
  .plan-features {
    font-size: 0.88rem;
  }
  .plan-features li {
    padding: 0.4rem 0;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   politicians.html — politician lookup
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .politicians-hero {
    padding: 0.5rem 0 1.25rem;
  }
  .politicians-hero .eyebrow {
    font-size: 0.7rem;
  }

  /* Search row stacks vertically */
  .search-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .search-input {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    box-sizing: border-box;
  }
  .search-btn {
    width: 100%;
    padding: 0.95rem;
    font-size: 0.95rem;
  }
  .search-hint {
    font-size: 0.78rem;
    padding: 0 0.5rem;
  }

  /* Autocomplete dropdown */
  .autocomplete-list {
    max-height: 60vh;
  }
  .autocomplete-item {
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }

  /* Profile card */
  .profile-card {
    padding: 1.25rem;
  }
  .profile-name {
    font-size: 1.5rem;
  }
  .profile-meta {
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Share row */
  .share-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .share-btn {
    width: 100%;
    text-align: center;
  }

  /* Vote summary stats */
  .vote-summary-grid {
    gap: 0.5rem;
  }
  .vote-stat {
    padding: 0.85rem 0.5rem;
  }
  .vote-stat-num {
    font-size: 1.5rem;
  }
  .vote-stat-label {
    font-size: 0.65rem;
  }

  /* Vote items */
  .vote-item {
    padding: 0.85rem;
    gap: 0.5rem;
  }
  .vote-pill {
    align-self: flex-start;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  /* Dot map — allow horizontal scroll if needed, shrink dots */
  .dot-map-wrap,
  .seat-map,
  .vote-dots {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .seat-dot {
    width: 7px;
    height: 7px;
  }
  .seat-dot.is-subject {
    width: 10px;
    height: 10px;
  }

  /* Explain button */
  .explain-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    font-size: 0.82rem;
  }
}
