/* Auto-generated shared CSS — do not edit manually */
/* Run: node scripts/generate-shared-css.js */

/* === Unified Header === */

    /* ===== TYPOGRAPHY + GEMINI PALETTE BACKGROUND ===== */
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background-color: #ffffff;
      color: #202124;
      min-height: 100vh;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    html.dark body {
      background-color: #202124;
      color: #e8eaed;
    }

    /* ===== ENHANCED FOCUS INDICATORS FOR ACCESSIBILITY (WCAG 2.1) ===== */
    a:focus-visible,
    button:focus-visible {
      outline: 3px solid #3b82f6;
      outline-offset: 3px;
      border-radius: 4px;
    }

    html.dark a:focus-visible,
    html.dark button:focus-visible {
      outline-color: #60a5fa;
    }

    /* ===== GLASS MORPHISM EFFECT ===== */
    .glass {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    html.dark .glass {
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* ===== SMOOTH SCROLLING BEHAVIOR ===== */
    html {
      scroll-behavior: smooth;
    }

    /* ===== SCROLL GLOW EFFECTS ===== */
    .scroll-glow {
      position: relative;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .scroll-glow.active {
      box-shadow: none;
      border-color: rgba(59, 130, 246, 0.4);
      transform: translateY(-2px);
    }

    html.dark .scroll-glow.active {
      border-color: rgba(96, 165, 250, 0.4);
    }

    /* ===== ENHANCED NAV-BUTTON HOVER EFFECTS ===== */
    .nav-button {
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }

    .nav-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.12);
      transition: left 0.6s;
    }

    .nav-button:hover::before {
      left: 100%;
    }

    .nav-button:hover {
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(59, 130, 246, 0.1);
    }

    html.dark .nav-button:hover {
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(96, 165, 250, 0.2);
    }

    /* ===== INTERACTIVE HOVER EFFECTS ===== */
    .interactive-hover {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .interactive-hover:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    html.dark .interactive-hover:hover {
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    /* ===== MAIN CONTENT STAGGERED ANIMATIONS ===== */
    .content-animate > *:nth-child(1) { animation-delay: 0.1s; }
    .content-animate > *:nth-child(2) { animation-delay: 0.2s; }
    .content-animate > *:nth-child(3) { animation-delay: 0.3s; }
    .content-animate > *:nth-child(4) { animation-delay: 0.4s; }
    .content-animate > *:nth-child(5) { animation-delay: 0.5s; }
    .content-animate > *:nth-child(6) { animation-delay: 0.6s; }

    .content-animate > * {
      animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      animation-fill-mode: both;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ===== UNIFIED HEADER STYLES - ENHANCED GLASSMORPHISM ===== */
    .site-header {
      background: white;
      border-bottom: 1px solid #e5e7eb;
      position: sticky;
      top: 0;
      z-index: 1000;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      background: rgba(255, 255, 255, 0.95);
      border-radius: 0 0 12px 12px;
      box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(59, 130, 246, 0.25);
      transition: all 0.3s ease;
    }

    html.dark .site-header {
      background: rgba(32, 33, 36, 0.95);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(96, 165, 250, 0.35);
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

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

    .logo-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: inherit;
    }

    .logo {
      width: 32px;
      height: 32px;
    }


    .logo-text {
      font-size: 1.25rem;
      font-weight: 700;
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .header-controls > * {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .theme-toggle {
      padding: 6px;
      color: #202124;
      background: none;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .theme-toggle:hover {
      color: #202124;
      background: #f3f4f6;
    }

    html.dark .theme-toggle {
      color: #fbbf24;
    }

    html.dark .theme-toggle:hover {
      color: #fcd34d;
      background: rgba(255, 255, 255, 0.1);
    }

    html.dark .moon-icon {
      display: block !important;
      color: #fbbf24;
    }

    .theme-toggle svg {
      width: 20px;
      height: 20px;
    }

    .menu-button {
      padding: 6px;
      color: #202124;
      background: none;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
    }

    .menu-button:hover {
      color: #202124;
      background: #f3f4f6;
    }

    html.dark .menu-button {
      color: #999999;
    }

    html.dark .menu-button:hover {
      color: #e8eaed;
      background: #292a2d;
    }

    .menu-button svg {
      width: 24px;
      height: 24px;
    }

    /* ===== DROPDOWN MENU ===== */
    .menu-dropdown {
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid #e5e7eb;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      animation: slideDown 0.3s ease;
    }

    html.dark .menu-dropdown {
      background: rgba(32, 33, 36, 0.98);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .menu-nav {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0.5rem;
      padding: 1.5rem 0;
    }

    .menu-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1rem;
      text-decoration: none;
      color: #5f6368;
      border-radius: 0.75rem;
      transition: all 0.3s ease;
      font-weight: 500;
    }

    .menu-item:hover {
      background: rgba(59, 130, 246, 0.1);
      color: #2563eb;
      transform: translateX(4px);
    }

    .menu-item.active {
      background: rgba(59, 130, 246, 0.15);
      color: #2563eb;
    }

    html.dark .menu-item {
      color: #d1d5db;
    }

    html.dark .menu-item:hover {
      background: rgba(96, 165, 250, 0.15);
      color: #60a5fa;
    }

    html.dark .menu-item.active {
      background: rgba(96, 165, 250, 0.2);
      color: #60a5fa;
    }

    .menu-icon-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      flex-shrink: 0;
      color: currentColor;
      opacity: 0.7;
    }
    .menu-item:hover .menu-icon-wrap,
    .menu-item.active .menu-icon-wrap {
      opacity: 1;
    }

    /* ===== SURGEON SEARCH BOX IN MENU ===== */
    .surgeon-search-container {
      padding: 1rem 0;
      border-bottom: 1px solid #e5e7eb;
      margin-bottom: 0.5rem;
    }

    html.dark .surgeon-search-container {
      border-bottom-color: rgba(255,255,255,0.1);
    }

    .surgeon-search-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .surgeon-search-wrapper .search-icon {
      position: absolute;
      left: 1rem;
      color: #9ca3af;
      pointer-events: none;
    }

    html.dark .surgeon-search-wrapper .search-icon {
      color: #6b7280;
    }

    .surgeon-search-input {
      width: 100%;
      padding: 0.875rem 2.5rem 0.875rem 3rem;
      border: 1px solid #e5e7eb;
      border-radius: 0.75rem;
      background: #f8f9fa;
      color: #202124;
      font-size: 1rem;
      font-family: inherit;
      transition: all 0.2s ease;
    }

    .surgeon-search-input:focus {
      outline: none;
      border-color: #3b82f6;
      background: white;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    html.dark .surgeon-search-input {
      background: #292a2d;
      border-color: rgba(255,255,255,0.1);
      color: #e5e7eb;
    }

    html.dark .surgeon-search-input:focus {
      border-color: #60a5fa;
      background: #202124;
      box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
    }

    .surgeon-search-input::placeholder {
      color: #9ca3af;
    }

    html.dark .surgeon-search-input::placeholder {
      color: #6b7280;
    }

    .search-clear-btn {
      position: absolute;
      right: 0.75rem;
      padding: 0.25rem;
      background: none;
      border: none;
      color: #9ca3af;
      cursor: pointer;
      border-radius: 0.25rem;
      transition: all 0.2s ease;
    }

    .search-clear-btn:hover {
      color: #6b7280;
      background: #f3f4f6;
    }

    html.dark .search-clear-btn:hover {
      color: #9ca3af;
      background: #292a2d;
    }

    /* ===== SEARCH RESULTS DROPDOWN ===== */
    .surgeon-search-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      margin-top: 0.5rem;
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 0.75rem;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
      max-height: 320px;
      overflow-y: auto;
      z-index: 100;
    }

    html.dark .surgeon-search-results {
      background: #292a2d;
      border-color: rgba(255,255,255,0.1);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .search-result-item {
      display: flex;
      flex-direction: column;
      padding: 0.875rem 1rem;
      text-decoration: none;
      color: inherit;
      border-bottom: 1px solid #f3f4f6;
      transition: all 0.15s ease;
    }

    .search-result-item:last-child {
      border-bottom: none;
    }

    .search-result-item:hover,
    .search-result-item.highlighted {
      background: rgba(59, 130, 246, 0.08);
    }

    html.dark .search-result-item {
      border-bottom-color: #2a2a2a;
    }

    html.dark .search-result-item:hover,
    html.dark .search-result-item.highlighted {
      background: rgba(96, 165, 250, 0.12);
    }

    .search-result-name {
      font-weight: 600;
      color: #202124;
      font-size: 0.95rem;
    }

    html.dark .search-result-name {
      color: #e5e7eb;
    }

    .search-result-location {
      font-size: 0.85rem;
      color: #6b7280;
      margin-top: 0.125rem;
    }

    html.dark .search-result-location {
      color: #9ca3af;
    }

    .search-result-name mark,
    .search-result-location mark {
      background: rgba(59, 130, 246, 0.25);
      color: inherit;
      padding: 0 2px;
      border-radius: 2px;
    }

    html.dark .search-result-name mark,
    html.dark .search-result-location mark {
      background: rgba(96, 165, 250, 0.3);
    }

    .search-no-results {
      padding: 1.5rem 1rem;
      text-align: center;
      color: #6b7280;
    }

    html.dark .search-no-results {
      color: #9ca3af;
    }

    .search-loading {
      padding: 1.5rem 1rem;
      text-align: center;
      color: #6b7280;
    }

    /* Position relative for results dropdown */
    .surgeon-search-container {
      position: relative;
    }

    @media (max-width: 640px) {
      .menu-nav {
        grid-template-columns: 1fr;
      }
    }

    /* ===== UNIFIED SITE FOOTER ===== */
    .site-footer {
      margin-top: 64px;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-top: 1px solid #e5e7eb;
      padding: 3rem 1rem 2rem;
    }

    html.dark .site-footer {
      background: rgba(32, 33, 36, 0.98);
      border-top: 1px solid rgba(255,255,255,0.1);
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
      margin-bottom: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid #e5e7eb;
    }

    html.dark .footer-nav {
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-link {
      color: #5f6368;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
    }

    .footer-link::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 2px;
      background: #3b82f6;
      transition: width 0.3s ease;
    }

    .footer-link:hover {
      color: #2563eb;
    }

    .footer-link:hover::after {
      width: 100%;
    }

    html.dark .footer-link {
      color: #d1d5db;
    }

    html.dark .footer-link:hover {
      color: #60a5fa;
    }

    html.dark .footer-link::after {
      background: #60a5fa;
    }

    .footer-disclaimer {
      text-align: center;
      max-width: 800px;
      margin: 0 auto;
    }

    .footer-source,
    .footer-notice {
      color: #6b7280;
      font-size: 0.875rem;
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    html.dark .footer-source,
    html.dark .footer-notice {
      color: #9ca3af;
    }

    .footer-copyright {
      color: #9ca3af;
      font-size: 0.875rem;
      margin-top: 1.5rem;
    }

    html.dark .footer-copyright {
      color: #6b7280;
    }

    @media (max-width: 640px) {
      .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
      }
    }
  

/* === Unified Footer === */


/* === Unified Background === */


/* === Unified Surgeon Card === */

    /* ===== UNIFIED SURGEON CARD SYSTEM ===== */

    /* Grid Container */
    .surgeons-grid {
      display: grid;
      gap: 24px;
      grid-template-columns: 1fr;
    }

    @media (min-width: 768px) {
      .surgeons-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .surgeons-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    /* Card Container */
    .surgeon-card.unified-card {
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(229, 231, 235, 0.8);
      border-radius: 16px;
      box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      position: relative;
      z-index: 10;
      overflow: hidden;
    }

    html.dark .surgeon-card.unified-card {
      background: #2d2f33;
      border: 1px solid #555;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    }

    /* Card Hover */
    .surgeon-card.unified-card:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 80px rgba(59, 130, 246, 0.15);
      border-color: rgba(59, 130, 246, 0.5);
    }

    html.dark .surgeon-card.unified-card:hover {
      border-color: rgba(96, 165, 250, 0.5);
      box-shadow:
        0 20px 40px rgba(96, 165, 250, 0.1),
        0 0 80px rgba(96, 165, 250, 0.15);
    }

    /* Rank Badges - solid Gemini palette colors only */
    .rank-badge-gold {
      background: #3b82f6;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    }

    .rank-badge-silver {
      background: #1e40af;
      box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    }

    .rank-badge-bronze {
      background: #60a5fa;
      box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
    }

    .rank-badge-default {
      background: #3b82f6;
    }

    /* Stretched Link — makes entire card a clickable <a> */
    .stretched-link::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 1;
      border-radius: 16px;
    }
  