/* Auto-generated state-page CSS — do not edit manually */
/* Source: scripts/lib/state-css.js — run: node scripts/generate-shared-css.js */
/* Cascade contract: linked AFTER /css/shared.css. */

    /* === PAGE-SPECIFIC STYLES === */
    /* Header, footer, card, background CSS provided by /css/shared.css */
    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      line-height: 1.6;
    }

    /* Main Content Styling */
    .main-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 32px 16px; /* aligns with site-header .container (16px) */
      box-sizing: border-box;
    }
    
    /* Hero Section — band padding/background + h1/meta-pill typography come
       from the shared PAGE HERO SYSTEM in shared.css (R4-T8, I09); the markup
       carries .hero-system.hero-band. */
    .hero-bg-overlay { display: none; }
    .hero-decorations { display: none; }
    
    .hero-content {
      position: relative;
      text-align: center;
    }
    
    /* Breadcrumb */
    .breadcrumb {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px; /* space-x-2 */
      /* margin-bottom comes from the shared hero system (24px) */
      font-size: 14px; /* text-sm */
      color: #4b5563; /* text-gray-600 */
    }
    html.dark .breadcrumb {
      color: #9aa0a6; /* dark:text-[#9aa0a6] */
    }
    
    .breadcrumb a {
      color: #2563eb; /* text-blue-600 */
      text-decoration: none;
      transition: color 0.2s;
    }
    @media (max-width: 640px) {
      /* WCAG 2.5.8: breadcrumb links get >=44px tap height on mobile */
      .breadcrumb a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
      }
    }
    .breadcrumb a:hover {
      color: #1d4ed8; /* hover:text-blue-700 */
    }
    html.dark .breadcrumb a {
      color: #60a5fa; /* dark:text-blue-400 */
    }
    html.dark .breadcrumb a:hover {
      color: #93c5fd; /* dark:hover:text-blue-300 */
    }
    
    .breadcrumb-current {
      color: #202124; /* text-gray-800 */
    }
    html.dark .breadcrumb-current {
      color: #e8eaed; /* dark:text-[#e8eaed] */
    }
    
    /* Main title + meta pill: shared PAGE HERO SYSTEM (.hero-system h1 /
       .hero-system .hero-meta in shared.css). R4-T8 (I09) replaced the old
       .rankings-badge cluster with the shared .hero-meta pill. */

    /* Hero Description */
    .hero-description {
      font-size: 18px; /* text-lg */
      color: #5f6368; /* text-gray-700 */
      max-width: 768px; /* max-w-3xl */
      margin: 0 auto;
      line-height: 1.625; /* leading-relaxed */
    }
    html.dark .hero-description {
      color: rgba(232, 234, 237, 0.9); /* Gemini dark text with opacity */
    }
    
    @media (min-width: 768px) {
      .hero-description {
        font-size: 20px; /* md:text-xl */
      }
    }

    /* Procedure Navigation */
    .procedure-navigation {
      margin-top: 32px; /* mt-8 */
      text-align: center;
    }
    
    .nav-title {
      font-size: 20px; /* text-xl */
      font-weight: 600; /* font-semibold */
      color: #5f6368; /* text-gray-700 */
      margin-bottom: 16px; /* mb-4 */
    }
    html.dark .nav-title {
      color: rgba(232, 234, 237, 0.9); /* Gemini dark text with opacity */
    }
    
    .nav-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 16px; /* gap-4 */
      justify-content: center;
      align-items: center;
    }
    
    @media (max-width: 767px) {
      .nav-buttons {
        flex-direction: column;
        gap: 12px; /* gap-3 */
      }
    }
    
    .nav-btn {
      display: flex;
      align-items: center;
      gap: 12px; /* gap-3 */
      padding: 12px 20px; /* px-5 py-3 */
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 2px solid transparent;
      border-radius: var(--radius-md); /* rounded-xl */
      color: #5f6368; /* text-gray-700 */
      text-decoration: none;
      font-weight: 500; /* font-medium */
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      position: relative;
      overflow: hidden;
    }
    
    .nav-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    html.dark .nav-btn {
      background: rgba(41, 42, 45, 0.9);
      color: rgba(230, 230, 230, 0.9);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    html.dark .nav-btn:hover {
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    
    .nav-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }
    
    .nav-text {
      font-size: 16px; /* text-base */
      font-weight: 600; /* font-semibold */
    }
    
    .nav-count {
      font-size: 14px;
      font-weight: 700; /* font-bold */
      padding: 4px 8px; /* px-2 py-1 */
      background: rgba(59, 130, 246, 0.15);
      color: #2563eb; /* text-blue-600 */
      border-radius: var(--radius-sm); /* rounded */
      border: 1px solid rgba(59, 130, 246, 0.3);
    }
    
    html.dark .nav-count {
      background: rgba(96, 165, 250, 0.2);
      color: #60a5fa; /* dark:text-blue-400 */
      border-color: rgba(96, 165, 250, 0.3);
    }
    
    /* Procedure-specific hover effects — locked blue ramp only (R5 P04/I18:
       pink + decorative green retired; green is reserved for stats/positive data) */
    .hip-btn:hover {
      border-color: rgba(29, 78, 216, 0.5); /* #1d4ed8 */
      background: rgba(29, 78, 216, 0.05);
    }
    .hip-btn:hover .nav-icon {
      color: #1d4ed8;
    }

    .knee-btn:hover {
      border-color: rgba(59, 130, 246, 0.5); /* #3b82f6 */
      background: rgba(59, 130, 246, 0.05);
    }
    .knee-btn:hover .nav-icon {
      color: #3b82f6;
    }

    .shoulder-btn:hover {
      border-color: rgba(96, 165, 250, 0.5); /* #60a5fa */
      background: rgba(96, 165, 250, 0.05);
    }
    .shoulder-btn:hover .nav-icon {
      color: #2563eb; /* icon text needs a mid blue; #60a5fa is too light on white */
    }
    
    @media (max-width: 767px) {
      .nav-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
      }
    }

    /* City Quick-Nav */
    .city-quicknav {
      max-width: 1200px;
      margin: 0 auto 32px;
      padding: 28px 24px;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: var(--radius-lg);
    }
    html.dark .city-quicknav {
      background: #292a2d;
      border-color: #3c4043;
    }
    .city-quicknav-header {
      margin-bottom: 16px;
    }
    .city-quicknav-title {
      font-size: 1.125rem;
      font-weight: 700;
      color: #202124;
      margin: 0 0 4px;
    }
    html.dark .city-quicknav-title { color: #e8eaed; }
    .city-quicknav-sub {
      font-size: 0.875rem;
      color: #6b7280;
      margin: 0;
    }
    html.dark .city-quicknav-sub { color: #9ca3af; }
    .city-quicknav-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .city-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      background: #f8f9fa;
      border: 1px solid #e5e7eb;
      border-radius: 9999px;
      font-size: 0.875rem;
      color: #374151;
      text-decoration: none;
      transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
      white-space: nowrap;
    }
    /* city-chip-filter gets cursor:pointer via its own rule */
    html.dark .city-chip {
      background: #1a1a1a;
      border-color: #3c4043;
      color: #d1d5db;
    }
    .city-chip-page { border-style: solid; }
    .city-chip-filter { border-style: dashed; cursor: pointer; font-family: inherit; }
    .city-chip-arrow { color: #9ca3af; flex-shrink: 0; }
    .city-chip:hover {
      border-color: #3b82f6;
      background: #eff6ff;
      box-shadow: var(--shadow-1);
    }
    html.dark .city-chip:hover {
      border-color: #60a5fa;
      background: rgba(59,130,246,0.08);
      box-shadow: var(--shadow-1);
    }
    .city-chip-active {
      border-color: #2563eb;
      background: #2563eb; /* AA: white chip text 5.17:1 */
      color: #fff;
    }
    .city-chip-active .city-chip-name,
    .city-chip-active .city-chip-count {
      color: #fff;
    }
    .city-chip-active .city-pin {
      color: #fff;
    }
    html.dark .city-chip-active {
      border-color: #60a5fa;
      background: #60a5fa;
      color: #202124;
    }
    html.dark .city-chip-active .city-chip-name,
    html.dark .city-chip-active .city-chip-count,
    html.dark .city-chip-active .city-pin {
      color: #202124;
    }
    .city-pin {
      color: #3b82f6;
      flex-shrink: 0;
    }
    html.dark .city-pin { color: #60a5fa; }
    .city-chip-name {
      font-weight: 600;
    }
    .city-chip-count {
      font-size: 0.875rem;
      font-weight: 700;
      color: #ffffff;
      background: #2563eb; /* AA: white 0.6875rem text 5.17:1 */
      border-radius: 9999px;
      padding: 1px 7px;
      line-height: 1.4;
    }
    html.dark .city-chip-count {
      background: #1e40af;
    }
    @media (max-width: 640px) {
      .city-quicknav { padding: 20px 16px; margin: 0 auto 24px; }
      /* WCAG 2.5.8: chips become >=44px tap targets on mobile */
      .city-chip { padding: 10px 14px; min-height: 44px; }
      .city-chip-count { padding: 1px 6px; }
    }

    /* Filter Controls */
    .filter-section {
      margin-bottom: 32px; /* mb-8 */
      display: flex;
      flex-direction: column;
      gap: 16px; /* gap-4 */
      align-items: center;
      justify-content: space-between;
    }
    
    @media (min-width: 768px) {
      .filter-section {
        flex-direction: row; /* md:flex-row */
      }
    }
    
    .search-container {
      position: relative;
      flex: 1;
      max-width: 384px; /* max-w-md */
    }
    
    
    
    .filter-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 8px; /* gap-2 */
    }
    
    .filter-btn {
      padding: 8px 16px; /* px-4 py-2 */
      min-height: 44px; /* WCAG 2.5.8 tap target */
      display: inline-flex;
      align-items: center;
      font-size: 14px; /* text-sm */
      font-weight: 500; /* font-medium */
      border-radius: var(--radius-sm); /* rounded-lg */
      border: 1px solid #d1d5db; /* border-gray-300 */
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    }
    
    .filter-btn.active {
      background: #2563eb; /* bg-blue-600 */
      color: white;
      border-color: #2563eb;
    }
    .filter-btn.active:hover {
      background: #1d4ed8; /* hover:bg-blue-700 */
    }
    
    .filter-btn:not(.active) {
      background: white;
      color: #5f6368; /* text-gray-700 */
    }
    .filter-btn:not(.active):hover {
      background: #f8f9fa; /* hover:bg-secondary */
    }
    
    html.dark .filter-btn:not(.active) {
      background: #292a2d; /* dark:bg-[#292a2d] */
      color: #e8eaed; /* dark:text-[#e8eaed] */
      border-color: #4b5563; /* dark:border-gray-600 */
    }
    html.dark .filter-btn:not(.active):hover {
      background: #292a2d; /* dark:hover:bg-gray-800 */
    }

    /* Search input + sort select */
    #stateSearchInput {
      background: #fff;
      color: #202124;
    }
    .control-label {
      font-size: 0.875rem;
      font-weight: 600;
      color: #4a4f55; /* 8.27:1 on white */
    }
    html.dark .control-label { color: #c4c7c5; /* 9.04:1 on #202124 */ }
    #stateSortSelect {
      background: #fff;
      color: #202124;
    }
    html.dark #stateSortSelect, html.dark #stateSearchInput {
      background: #292a2d;
      color: #e8eaed;
      border-color: #4b5563;
    }
    /* AA placeholder contrast: #6b7280 on white = 4.83:1, #9aa0a6 on #292a2d = 5.43:1 */
    #stateSearchInput::placeholder { color: #6b7280; }
    html.dark #stateSearchInput::placeholder { color: #9aa0a6; }
    html.dark #clearFilterBtn { background: rgba(220,38,38,0.15) !important; color: #f87171 !important; border-color: #7f1d1d !important; }

    /* Results Count */
    .results-count {
      margin-bottom: 24px; /* mb-6 */
      font-size: 14px; /* text-sm */
      color: #4b5563; /* text-gray-600 */
    }
    html.dark .results-count {
      color: #9aa0a6; /* dark:text-[#9aa0a6] */
    }

    /* Surgeon Cards Grid */
    .surgeons-grid {
      display: grid;
      grid-template-columns: 1fr; /* grid-cols-1 */
      gap: 24px; /* gap-6 */
    }
    
    @media (min-width: 768px) {
      .surgeons-grid {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
      }
    }
    
    @media (min-width: 1024px) {
      .surgeons-grid {
        grid-template-columns: repeat(3, 1fr); /* lg:grid-cols-3 */
      }
    }
    
    /* Old surgeon card styles removed - now using unified card component */

    /* Disclaimer — neutral card with blue accent border (amber retired Jun 2026, C12) */
    .disclaimer {
      margin-top: 48px; /* mt-12 */
      padding: 24px; /* p-6 */
      background: #f8f9fa;
      border: 1px solid #e5e7eb;
      border-left: 3px solid #2563eb;
      border-radius: var(--radius-md); /* rounded-xl */
    }
    html.dark .disclaimer {
      background: #292a2d;
      border-color: #3c4043;
      border-left-color: #60a5fa;
    }

    .disclaimer-content {
      display: flex;
      align-items: flex-start;
    }

    .disclaimer-icon {
      width: 24px; /* w-6 */
      height: 24px; /* h-6 */
      color: #2563eb;
      flex-shrink: 0;
      margin-top: 2px; /* mt-0.5 */
      margin-right: 12px; /* mr-3 */
    }
    html.dark .disclaimer-icon {
      color: #60a5fa;
    }

    .disclaimer-text h3 {
      font-size: 18px; /* text-lg */
      font-weight: 700; /* bold */
      color: var(--text-primary, #202124);
      margin-bottom: 8px; /* mb-2 */
    }

    .disclaimer-text p {
      font-size: 14px; /* text-sm */
      color: var(--text-primary, #202124);
      line-height: 1.625; /* leading-relaxed */
    }

    /* Internal links — grouped link sections between disclaimer and footer (N07, Jun 2026) */
    .internal-links-section {
      margin-top: 48px;
      padding: 28px 24px;
      background: #f8f9fa;
      border: 1px solid #e5e7eb;
      border-radius: var(--radius-md);
    }
    html.dark .internal-links-section {
      background: #292a2d;
      border-color: #3c4043;
    }

    .links-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px 40px;
    }
    @media (min-width: 768px) {
      .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0 40px;
      }
    }

    .links-column h3 {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary, #202124);
      margin: 16px 0 4px;
      padding-bottom: 8px;
      border-bottom: 1px solid #e5e7eb;
    }
    html.dark .links-column h3 {
      border-bottom-color: #3c4043;
    }
    @media (min-width: 768px) {
      .links-column h3 {
        margin-top: 0;
      }
    }

    .links-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .links-list a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 2px 0;
      color: #2563eb;
      font-size: 15px;
      font-weight: 500;
      text-decoration: none;
      transition: color 0.2s ease;
    }
    .links-list a:hover {
      color: #1d4ed8;
      text-decoration: underline;
    }
    html.dark .links-list a {
      color: #93c5fd;
    }
    html.dark .links-list a:hover {
      color: #60a5fa;
    }

    /* Footer */
    .site-footer {
      background: white;
      border-top: 1px solid #e5e7eb; /* border-gray-200 */
      margin-top: 1rem;
    }
    html.dark .site-footer {
      background: #292a2d; /* dark:bg-[#292a2d] */
      border-color: rgba(255,255,255,0.1); /* dark:border-[#3c4043] */
    }
    
    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 48px 16px; /* py-12 px-4 */
    }
    
    .footer-link {
      color: #4b5563; /* text-gray-600 */
      font-weight: 500; /* font-medium */
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-link:hover {
      color: #2563eb; /* hover:text-blue-600 */
    }
    html.dark .footer-link {
      color: #9aa0a6; /* dark:text-[#9aa0a6] */
    }
    html.dark .footer-link:hover {
      color: #60a5fa; /* dark:hover:text-blue-400 */
    }

    /* Essential Utilities */
    .hidden { 
      display: none !important; 
    }


    /* Page-specific utilities NOT provided by /css/tailwind-subset.css.
       Standard Tailwind utilities (flex, gap-*, p-*, w-*, text-*, etc.)
       come from the linked tailwind-subset.css — do not re-declare them here. */
    .py-1-5 { padding-top: 6px; padding-bottom: 6px; }
    html.dark .text-blue-600 { color: #60a5fa; }

    /* Custom responsive helpers (non-Tailwind naming) */
    @media (min-width: 768px) {
      .md-text-xl { font-size: 20px; }
      .md-text-base { font-size: 16px; }
      .md-gap-4 { gap: 16px; }
      .md-w-12 { width: 48px; }
      .md-h-12 { height: 48px; }
      .md-w-6 { width: 24px; }
      .md-h-6 { height: 24px; }
      .md-p-6 { padding: 24px; }
      .md-px-3 { padding-left: 12px; padding-right: 12px; }
      .md-py-2 { padding-top: 8px; padding-bottom: 8px; }
    }

    @media (min-width: 640px) {
      .sm-flex-row { flex-direction: row; }
      .sm-items-center { align-items: center; }
      .sm-justify-between { justify-content: space-between; }
    }

    /* Color classes */
    .text-white { color: white; }
    .text-gray-900 { color: #202124; }
    .text-gray-700 { color: #5f6368; }
    .text-gray-600 { color: #4b5563; }
    .text-gray-500 { color: #6b7280; }
    .text-gray-400 { color: #9ca3af; }
    .text-blue-600 { color: #2563eb; }
    .text-blue-700 { color: #1d4ed8; }
    .text-blue-400 { color: #60a5fa; }
    .text-green-600 { color: #059669; }
    .text-green-400 { color: #34d399; }
    .text-orange-600 { color: #ea580c; }
    .text-orange-400 { color: #fb923c; }
    .text-indigo-600 { color: #4f46e5; }
    .text-indigo-400 { color: #818cf8; }
    
    html.dark .text-gray-900 { color: #e8eaed; }
    html.dark .text-gray-700 { color: #e8eaed; }
    html.dark .text-gray-600 { color: #9aa0a6; }
    html.dark .text-gray-500 { color: #9aa0a6; }
    html.dark .text-gray-400 { color: #9ca3af; }
    html.dark .text-white { color: #e8eaed; }

    /* Background classes */
    .bg-white { background-color: white; }
    .bg-gray-50 { background-color: #f8f9fa; /* Gemini secondary bg */ }
    .bg-gray-100 { background-color: #f3f4f6; }
    .bg-gray-800 { background-color: #202124; }
    .bg-gray-900 { background-color: #202124; }
    .bg-blue-50 { background-color: #eff6ff; }
    .bg-blue-100 { background-color: #dbeafe; }
    .bg-blue-600 { background-color: #2563eb; }
    .bg-blue-700 { background-color: #1d4ed8; }
    .bg-green-100 { background-color: #d1fae5; }
    .bg-green-500 { background-color: #10b981; }
    .bg-orange-100 { background-color: #fed7aa; }
    .bg-indigo-100 { background-color: #e0e7ff; }
    
    html.dark .bg-white { background-color: #292a2d; }
    html.dark .bg-gray-50 { background-color: #292a2d; }
    html.dark .bg-gray-100 { background-color: #202124; }
    html.dark .bg-gray-800 { background-color: #292a2d; }
    html.dark .bg-blue-100 { background-color: rgba(30, 64, 175, 0.3); }
    html.dark .bg-green-100 { background-color: rgba(5, 46, 22, 0.3); }
    html.dark .bg-orange-100 { background-color: rgba(154, 52, 18, 0.3); }
    html.dark .bg-indigo-100 { background-color: rgba(67, 56, 202, 0.3); }

    /* Border classes */
    .border { border: 1px solid #e5e7eb; }
    .border-gray-200 { border-color: #e5e7eb; }
    .border-gray-700 { border-color: #5f6368; }
    .border-t { border-top: 1px solid #e5e7eb; }
    .border-b { border-bottom: 1px solid #e5e7eb; }
    
    html.dark .border { border-color: #5f6368; }
    html.dark .border-gray-200 { border-color: #5f6368; }
    html.dark .border-t { border-top-color: #5f6368; }
    html.dark .border-b { border-bottom-color: #5f6368; }

    /* Solid surface classes (R5 P07: renamed from legacy bg-gradient-* names —
       these have been solid colors since the Nov 2025 gradient purge) */
    .bg-brand-blue {
      background: #3b82f6;
    }
    .bg-panel-translucent {
      background: rgba(248, 250, 252, 0.95);
    }
    html.dark .bg-panel-translucent {
      background: rgba(41, 42, 45, 0.95);
      border-color: rgba(255,255,255,0.1);
    }
    .bg-table-header {
      background: #f8f9fa;
    }
    html.dark .bg-table-header {
      background: #292a2d; /* Gemini dark secondary */
    }
    
    /* Rank badge styles removed - now in unified card component */
    
    /* Row hover effects */
    .row-hover {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .row-hover:hover {
      background: rgba(59, 130, 246, 0.05);
      transform: translateX(4px);
      box-shadow: inset 4px 0 0 rgba(59, 130, 246, 0.5);
    }
    html.dark .row-hover:hover {
      background: rgba(96, 165, 250, 0.12);
      box-shadow: inset 4px 0 0 rgba(96, 165, 250, 0.5);
    }
    
    /* Tooltip styles */
    .tooltip-npi {
      position: absolute;
      left: 50%;
      top: 100%;
      margin-top: 8px;
      transform: translateX(-50%);
      z-index: 20;
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      background-color: #202124;
      color: white;
      font-size: 14px;
      font-family: ui-monospace, SFMono-Regular, Monaco, Consolas, monospace;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
      opacity: 0;
      pointer-events: none;
      transition: opacity 200ms;
      white-space: nowrap;
    }
    .group:hover .tooltip-npi {
      opacity: 1;
    }

    /* Hover effects */
    .hover-bg-blue-700:hover { background-color: #1d4ed8; }
    .hover-text-blue-600:hover { color: #2563eb; }
    .hover-text-blue-400:hover { color: #60a5fa; }
    
    html.dark .hover-text-blue-600:hover { color: #60a5fa; }
    
    /* Profile link styles removed - now in unified card component */
    html.dark .hover-text-blue-400:hover { color: #93c5fd; }

    /* Filter button styles */
    .filter-btn {
      padding: 8px 16px;
      margin: 4px;
      border: 1px solid #d1d5db;
      background: white;
      color: #5f6368;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }
    .filter-btn:hover {
      background: #f3f4f6;
      border-color: #9ca3af;
    }
    .filter-btn.active {
      background: #2563eb;
      color: white;
      border-color: #2563eb;
    }
    html.dark .filter-btn {
      background: #292a2d;
      color: #e8eaed;
      border-color: rgba(255,255,255,0.15);
    }
    html.dark .filter-btn:hover {
      background: #303134;
      border-color: rgba(255,255,255,0.25);
    }
    html.dark .filter-btn.active {
      background: #2563eb; /* AA: white text 5.17:1 */
      border-color: #2563eb;
      color: #ffffff;
    }

    /* Back-to-top: one shared implementation (R4-T8 I24) — markup/JS from
       generateBackToTop(), styles in shared.css. Legacy state-page version
       removed. */

    /* Special responsive table classes */
    .results-container {
      margin-bottom: 24px;
      overflow: hidden;
    }
    
    /* Hide scrollbar on mobile while maintaining scroll functionality */
    @media (max-width: 767px) {
      html {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
      }
      html::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
      }
    }
