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

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

    /* CSS design tokens (:root + html.dark) come from /css/shared.css,
       generated from scripts/lib/color-scheme.js — single source of truth. */

    /* Base Typography */
    body {
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 16px;
      line-height: 1.6;
      color: var(--text-primary);
      background-color: #ffffff; /* Gemini light mode */
    }

    html.dark body {
      background-color: #202124; /* Gemini dark mode */
    }

    /* Header CSS now provided exclusively by /css/shared.css to keep
       parity with the home page. Apr 27, 2026: removed duplicate inline
       overrides (gap: 8px, font-size: 20px, fixed-height header-content,
       theme-toggle/menu-button blocks) that drifted from canonical. */

    /* Main content */
    .main-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 16px 32px;
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px; /* space-x-2 */
      margin-top: 0;
      margin-bottom: 32px; /* mb-8 */
      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;
    }
    html.dark .breadcrumb-current {
      color: #e8eaed;
    }

    .breadcrumb .separator {
      color: #5f6368;
    }
    html.dark .breadcrumb .separator {
      color: #9aa0a6;
    }
    .breadcrumb .current {
      color: #202124;
    }
    html.dark .breadcrumb .current {
      color: #e8eaed;
    }
    
    .main-grid { 
      display: block;
    }
    
    .card {
      background: white;
      border: 1px solid #e5e7eb; /* border-gray-200 */
      border-radius: var(--radius-md); /* rounded-xl */
      padding: 24px; /* p-6 */
      margin-bottom: 24px;
      transition: all 0.3s;
      position: relative;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    .card:hover {
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
      border-color: #3b82f6;
    }
    html.dark .card {
      background: #292a2d; /* dark:bg-[#292a2d] */
      border-color: rgba(255,255,255,0.1);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
    html.dark .card:hover {
      border-color: #60a5fa; /* dark:hover:border-blue-400 */
    }

    /* .recovery-banner styles now shared via /css/shared.css (generateRecoveryCTACSS) */

    /* Hospital affiliations row items — dark mode background override */
    html.dark .hospital-affiliations-card [style*="background:#f8f9fa"] {
      background: #202124 !important;
      border-color: rgba(255,255,255,0.1) !important;
    }

    /* Questions to Ask Section */
    .questions-high { background: #ecfdf5; border-color: #a7f3d0; }
    html.dark .questions-high { background: rgba(16, 185, 129, 0.1); border-color: #065f46; }
    .questions-low { background: #eff6ff; border-color: #bfdbfe; }
    html.dark .questions-low { background: rgba(59, 130, 246, 0.1); border-color: #1e3a8a; }
    .questions-title-high { color: #065f46; }
    html.dark .questions-title-high { color: #34d399; }
    .questions-title-low { color: #1e40af; }
    html.dark .questions-title-low { color: #60a5fa; }
    .questions-intro-high { margin-bottom: 1rem; color: #064e3b; }
    html.dark .questions-intro-high { color: #6ee7b7; }
    .questions-intro-low { margin-bottom: 1rem; color: #1e3a8a; }
    html.dark .questions-intro-low { color: #93c5fd; }
    .questions-script-box { background: #fff; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
    html.dark .questions-script-box { background: #292a2d; border-color: rgba(255,255,255,0.1); }
    .questions-script-high { border-color: #d1fae5; }
    html.dark .questions-script-high { border-color: #064e3b; }
    .questions-script-low { border-color: #dbeafe; }
    html.dark .questions-script-low { border-color: #1e3a8a; }
    .questions-script-label { font-weight: 500; color: #202124; margin-bottom: 0.5rem; }
    html.dark .questions-script-label { color: #f3f4f6; }
    .questions-script-text { font-style: italic; color: #5f6368; }
    html.dark .questions-script-text { color: #d1d5db; }

    /* Trend summary section */
    .trend-summary-text {
      font-size: 0.95rem;
      color: #5f6368;
      line-height: 1.7;
      margin-bottom: 1rem;
    }
    html.dark .trend-summary-text { color: #9aa0a6; }

    /* Round 3 I29: sparse-data fallback — plain visible statement instead of a chart */
    .trend-data-statement {
      font-size: 0.95rem;
      color: #3c4043;
      line-height: 1.7;
      margin: 0;
    }
    html.dark .trend-data-statement { color: #c4c7c5; }

    /* Round 3 C02: neutral cross-link to the state ranking on profiles without a qualifying badge */
    .compare-top-link {
      margin: 14px 0 0;
      font-size: 0.9rem;
    }
    .compare-top-link a {
      display: inline-block;
      padding: 10px 0;
      color: #1d4ed8;
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .compare-top-link a:hover { color: #1e40af; }
    .compare-top-link a:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; border-radius: 2px; }
    html.dark .compare-top-link a { color: #93c5fd; }
    html.dark .compare-top-link a:hover { color: #bfdbfe; }
    html.dark .compare-top-link a:focus-visible { outline-color: #93c5fd; }
    .trend-stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }
    @media (max-width: 640px) {
      .trend-stats-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .trend-stat {
      text-align: center;
      padding: 12px;
      background: #f8f9fa;
      border-radius: var(--radius-sm);
      border: 1px solid #e5e7eb;
    }
    html.dark .trend-stat {
      background: #202124;
      border-color: rgba(255,255,255,0.08);
    }
    .trend-stat-label {
      display: block;
      font-size: 0.875rem;
      color: #6b7280;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 4px;
    }
    html.dark .trend-stat-label { color: #9aa0a6; }
    .trend-stat-value {
      font-size: 1.1rem;
      font-weight: 700;
      color: #202124;
    }
    html.dark .trend-stat-value { color: #e8eaed; }
    .trend-growing { color: #059669; }
    html.dark .trend-growing { color: #34d399; }
    .trend-declining { color: #dc2626; }
    html.dark .trend-declining { color: #fca5a5; }
    .trend-stable { color: #2563eb; }
    html.dark .trend-stable { color: #60a5fa; }
    .trend-new { color: #6b7280; }
    html.dark .trend-new { color: #9aa0a6; }

    /* Hospital quality badges */
    .hospital-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 14px;
      background: #f8f9fa;
      border-radius: var(--radius-sm);
      border: 1px solid #e5e7eb;
    }
    html.dark .hospital-row {
      background: #202124;
      border-color: rgba(255,255,255,0.08);
    }
    .star-rating {
      color: #1d4ed8; /* locked palette: blue stars (amber retired Jun 2026, C12) */
      font-size: 0.875rem;
      white-space: nowrap;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .star-rating-text { color: #374151; font-weight: 600; font-size: 0.875rem; }
    html.dark .star-rating { color: #60a5fa; }
    html.dark .star-rating-text { color: #d1d5db; }
    .quality-badge {
      display: inline-block;
      font-size: 0.875rem;
      font-weight: 600;
      padding: 2px 6px;
      border-radius: 4px;
    }
    .quality-badge-better { color: #065f46; background: #d1fae5; }
    .quality-badge-similar { color: #374151; background: #f3f4f6; }
    .quality-badge-worse { color: #991b1b; background: #fee2e2; }
    html.dark .quality-badge-better { color: #6ee7b7; background: rgba(16,185,129,0.15); }
    html.dark .quality-badge-similar { color: #9ca3af; background: rgba(255,255,255,0.08); }
    html.dark .quality-badge-worse { color: #fca5a5; background: rgba(239,68,68,0.15); }
    .quality-disclaimer {
      font-size: 0.875rem;
      color: #6b7280;
      margin-top: 10px;
      line-height: 1.4;
    }
    html.dark .quality-disclaimer { color: #9aa0a6; }

    /* Surgeon achievement badges */
    .surgeon-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .surgeon-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      font-size: 0.875rem;
      font-weight: 600;
      border-radius: var(--radius-lg);
      letter-spacing: 0.02em;
      white-space: nowrap;
    }
    /* Round 5: all surgeon badge pills mapped to strict Gemini palette (no gold/green/cream).
       Tier intensity is conveyed by saturation/weight, not hue. */
    .badge-leader { color: #1e40af; background: #dbeafe; border: 1px solid #60a5fa; }
    .badge-rising { color: #1e40af; background: #eff6ff; border: 1px solid #93c5fd; }
    .badge-top10  { color: #1e40af; background: #dbeafe; border: 1px solid #60a5fa; }
    .badge-5star  { color: #1e40af; background: #eff6ff; border: 1px solid #93c5fd; }
    html.dark .badge-leader { color: #93c5fd; background: rgba(59,130,246,0.16); border-color: rgba(59,130,246,0.4); }
    html.dark .badge-rising { color: #93c5fd; background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.28); }
    html.dark .badge-top10  { color: #93c5fd; background: rgba(59,130,246,0.16); border-color: rgba(59,130,246,0.4); }
    html.dark .badge-5star  { color: #93c5fd; background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.28); }
    @media (max-width: 640px) {
      .surgeon-badges { gap: 4px; }
      .surgeon-badge { font-size: 0.875rem; padding: 3px 8px; }
    }

    /* Section tab navigation removed (Round 3 C03): it duplicated the section
       headings as scroll links and pushed clinical content further down. */

    /* Affiliate unit disclosure chip (Round 3 C04) */
    .affiliate-unit-wrap { margin: 1.25rem 0; }
    .affiliate-unit-wrap .recovery-banner { margin: 6px 0 0; }
    .affiliate-chip {
      display: inline-block;
      font-size: 0.875rem;
      font-weight: 500;
      line-height: 1.4;
      color: #5f6368;
      background: #f1f3f4;
      border: 1px solid #e5e7eb;
      border-radius: 999px;
      padding: 2px 10px;
    }
    html.dark .affiliate-chip {
      color: #c4c7c5;
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.15);
    }
    /* shared.css hides .recovery-banner below 768px (the sticky bar is
       the mobile unit); hide the whole wrap so the chip never orphans on mobile */
    @media (max-width: 767px) {
      .affiliate-unit-wrap { display: none; }
    }

    /* Expertise volume comparison bars */
    .expertise-bars { display: flex; flex-direction: column; gap: 14px; }
    .expertise-row { display: grid; grid-template-columns: 140px 1fr 80px; gap: 10px; align-items: center; }
    @media (max-width: 640px) { .expertise-row { grid-template-columns: 1fr; gap: 4px; } }
    .expertise-label { display: flex; flex-direction: column; gap: 2px; }
    .expertise-proc { font-size: 0.875rem; font-weight: 600; color: #202124; }
    html.dark .expertise-proc { color: #e5e7eb; }
    .expertise-level {
      font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em;
      text-transform: uppercase; width: fit-content; padding: 1px 6px; border-radius: 3px;
    }
    .exp-very-high { color: #065f46; background: #d1fae5; }
    .exp-high { color: #1e40af; background: #dbeafe; }
    .exp-avg { color: #374151; background: #f3f4f6; }
    .exp-low { color: #4b5563; background: #f1f3f4; } /* neutral (amber retired Jun 2026, C12) */
    html.dark .exp-very-high { color: #6ee7b7; background: rgba(16,185,129,0.15); }
    html.dark .exp-high { color: #93c5fd; background: rgba(59,130,246,0.15); }
    html.dark .exp-avg { color: #d1d5db; background: rgba(255,255,255,0.08); }
    html.dark .exp-low { color: #9aa0a6; background: rgba(255,255,255,0.08); }
    .expertise-bar-group { display: flex; flex-direction: column; gap: 3px; }
    .expertise-bar-track {
      height: 10px; background: #f3f4f6; border-radius: 5px; overflow: hidden;
    }
    html.dark .expertise-bar-track { background: rgba(255,255,255,0.06); }
    .expertise-bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
    .bar-surgeon { background: #3b82f6; }
    .bar-state-avg { background: #d1d5db; }
    html.dark .bar-state-avg { background: rgba(255,255,255,0.15); }
    .expertise-counts { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
    .expertise-surgeon-count { font-size: 0.9rem; font-weight: 700; color: #1e40af; }
    html.dark .expertise-surgeon-count { color: #60a5fa; }
    .expertise-avg-count { font-size: 0.875rem; color: #9ca3af; }
    .expertise-legend {
      display: flex; gap: 16px; margin-top: 8px; padding-top: 10px;
      border-top: 1px solid #e5e7eb; font-size: 0.875rem; color: #6b7280;
    }
    html.dark .expertise-legend { border-color: rgba(255,255,255,0.08); color: #9ca3af; }
    .legend-item { display: flex; align-items: center; gap: 5px; }
    .legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }

    .surgeon-header {
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(10px);
      border-radius: var(--radius-md);
      padding: 32px;
      margin-bottom: 24px;
      border: 1px solid rgba(226,232,240,0.5);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    html.dark .surgeon-header {
      background: rgba(41, 42, 45, 0.95);
      border-color: rgba(51,65,85,0.5);
    }
    .surgeon-header-inner {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 4px;
    }
    .surgeon-header-info { flex: 1; min-width: 0; }
    html.dark .surgeon-avatar { box-shadow: 0 4px 12px rgba(0,0,0,0.4); }

    /* Hero rank chips — subordinate to surgeon name (Round 3: name is primary anchor) */
    .hero-ranks {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 6px;
      margin: 6px 0 8px;
    }
    .hero-rank-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      min-height: 36px;
      background: #1d4ed8;
      border-radius: var(--radius-sm);
      color: white;
      font-size: 0.875rem;
      font-weight: 600;
      white-space: nowrap;
      text-decoration: none;
      transition: background 0.15s;
    }
    .hero-rank-pill:hover { background: #1e40af; text-decoration: none; }
    .hero-rank-num {
      font-weight: 800;
      font-size: 1rem;
    }
    html.dark .hero-rank-pill { background: #2563eb; }
    html.dark .hero-rank-pill:hover { background: #1d4ed8; } /* AA: white text 6.70:1 */
    @media (max-width: 640px) {
      .hero-rank-pill { min-height: 44px; }
    }

    /* Quick Facts Strip */
    .quick-facts {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 8px 0 4px;
    }
    .quick-fact {
      font-size: 0.875rem;
      font-weight: 500;
      color: #4b5563;
      background: #f3f4f6;
      padding: 3px 10px;
      border-radius: var(--radius-sm);
    }
    html.dark .quick-fact {
      color: #d1d5db;
      background: rgba(255,255,255,0.08);
    }
    /* R3-T4: data-provenance chip row (chip itself is the shared .data-chip
       in /css/shared.css — generateDataProvenanceCSS) */
    .data-chip-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin-top: 8px;
    }
    .data-chip-note { font-size: 0.875rem; color: #5f6368; }
    html.dark .data-chip-note { color: #9aa0a6; }

    .percentile-bar-wrap {
      margin: 12px 0 0;
      padding: 10px 14px;
      background: #f8f9fa;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-color);
    }
    html.dark .percentile-bar-wrap { background: rgba(255,255,255,0.04); }
    .percentile-row { margin-bottom: 8px; }
    .percentile-row:last-child { margin-bottom: 0; }
    .percentile-label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.875rem;
      color: #6b7280;
      margin-bottom: 4px;
    }
    html.dark .percentile-label { color: #9ca3af; }
    .percentile-value { font-weight: 600; color: #3b82f6; font-size: 0.875rem; }
    html.dark .percentile-value { color: #60a5fa; }
    .percentile-track {
      position: relative;
      height: 10px;
      background: #e5e7eb;
      border-radius: 5px;
      overflow: visible;
    }
    html.dark .percentile-track { background: #374151; }
    .percentile-fill {
      height: 100%;
      background: #3b82f6;
      border-radius: 3px;
      transition: width 0.6s ease;
    }
    html.dark .percentile-fill { background: #60a5fa; }
    .percentile-marker {
      position: absolute;
      top: -1px;
      width: 12px;
      height: 12px;
      background: #3b82f6;
      border: 2px solid #fff;
      border-radius: 50%;
      transform: translateX(-50%);
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    html.dark .percentile-marker { background: #60a5fa; border-color: #202124; }

    /* H1 typography comes from the shared PAGE HERO SYSTEM in shared.css
       (R4-T8, I09); the .surgeon-header card carries .hero-system. */
    .location {
      display: flex;
      align-items: center;
      color: var(--text-secondary);
      margin-bottom: 1rem;
    }
    .location::before {
      content: "📍";
      margin-right: 0.5rem;
    }
    .address {
      font-size: 0.875rem;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
    /* Removed individual .npi-info styling - now uses .provider-details > div */
    
    /* Specialty description styling */
    .specialty-description {
      color: #5f6368;
      margin: 0.5rem 0;
      font-size: 1.1rem;
      font-weight: 500;
    }
    html.dark .specialty-description {
      color: #9aa0a6;
    }

    /* About card — narrative prose as plain paragraphs in one card */
    .about-card { margin-bottom: 1.5rem; }
    .about-card .about-body p {
      margin: 0 0 0.9rem;
      color: #5f6368;
      font-size: 1rem;
      line-height: 1.7;
    }
    .about-card .about-body p:last-child { margin-bottom: 0; }
    html.dark .about-card .about-body p { color: #d1d5db; }
    
    /* Trust indicators styling */
    .trust-indicators {
      margin: 1rem 0;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .trust-indicator {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: #374151;
      padding: 0.4rem 0;
      font-size: 0.9rem;
    }

    .trust-check {
      color: #059669;
      flex-shrink: 0;
    }

    html.dark .trust-indicator {
      color: #d1d5db;
    }

    html.dark .trust-check {
      color: #34d399;
    }
    
    /* Enhanced badge styling */
    .enhanced-badge {
      display: inline-block;
      background: #2563eb; /* AA: white 0.8rem text 5.17:1 */
      color: white;
      padding: 6px 12px;
      border-radius: var(--radius-lg);
      font-size: 0.875rem;
      font-weight: 600;
      margin-bottom: 16px;
    }
    
    /* Contact information styling */
    .contact-info {
      margin: 1rem 0;
    }
    
    .phone-info {
      color: #1d4ed8;
      font-weight: 500;
    }

    .phone-link {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s;
      display: inline-block;
      padding: 10px 0;
      min-height: 44px;
      line-height: 1.4;
    }

    .phone-link:hover {
      border-bottom-color: currentColor;
    }

    html.dark .phone-info {
      color: #60a5fa;
    }

    .phone-source {
      font-size: 0.875rem;
      color: #6b7280;
      font-weight: 400;
      margin-top: 2px;
    }

    html.dark .phone-source {
      color: #9aa0a6;
    }

    /* Provider details styling */
    .provider-details {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin: 1rem 0;
    }
    
    .provider-details > div {
      background: rgba(59, 130, 246, 0.05);
      border-left: 3px solid #3b82f6;
      border-radius: 4px;
      padding: 8px 12px;
      font-size: 0.9rem;
      color: #64748b;
      display: flex;
      align-items: center;
      min-height: 40px; /* Ensure consistent height */
      flex: 1; /* Allow boxes to grow equally */
      min-width: 200px; /* Minimum width for readability */
    }
    
    html.dark .provider-details > div {
      background: rgba(59, 130, 246, 0.1);
      color: #94a3b8;
      border-left-color: #60a5fa;
    }
    
    .provider-details > div strong {
      color: #475569;
      font-weight: 600;
    }
    
    html.dark .provider-details > div strong {
      color: #cbd5e1;
    }
    
    /* Additional locations styling */
    .additional-locations {
      margin: 1.5rem 0;
      padding: 1rem;
      background: rgba(249, 250, 251, 0.8);
      border-radius: var(--radius-sm);
      border: 1px solid rgba(229, 231, 235, 0.5);
    }
    
    html.dark .additional-locations {
      background: rgba(30, 41, 59, 0.5);
      border-color: rgba(51, 65, 85, 0.5);
    }
    
    .additional-locations h4 {
      margin: 0 0 0.75rem 0;
      color: #5f6368;
      font-size: 0.95rem;
      font-weight: 600;
    }
    
    html.dark .additional-locations h4 {
      color: #d1d5db;
    }
    
    .additional-location {
      padding: 0.5rem 0;
      border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    }
    
    .additional-location:last-child {
      border-bottom: none;
    }
    
    .location-address {
      font-weight: 500;
      color: #5f6368;
    }
    
    .location-phone {
      font-size: 0.875rem;
      color: #3b82f6;
      margin-top: 0.25rem;
    }
    
    html.dark .location-address {
      color: #d1d5db;
    }
    
    html.dark .location-phone {
      color: #60a5fa;
    }
    
    .google-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      background-color: var(--brand-blue);
      color: white;
      text-decoration: none;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      transition: background-color 0.2s;
      box-shadow: 0 2px 4px var(--shadow);
    }
    .google-btn:hover { 
      background-color: var(--brand-blue-hover);
      transform: translateY(-1px);
      box-shadow: 0 4px 8px var(--shadow);
    }
    
    .section-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text-primary);
      margin: 0 0 1rem 0;
      display: flex;
      align-items: center;
    }
    .contact-section-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text-primary);
      margin: 0 0 1rem 0;
    }
    .find-practice-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 1rem;
      padding: 0.7rem 1.25rem;
      background: var(--brand-blue, #3b82f6);
      color: #fff;
      border-radius: var(--radius-sm);
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 600;
      transition: background 0.15s ease;
    }
    .find-practice-btn:hover { background: var(--brand-blue-hover, #2563eb); }

    .procedure-list { margin: 0; }
    .procedure-item {
      border-bottom: 1px solid var(--border-color);
      padding: 0.75rem 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .procedure-item:last-child { border-bottom: none; }
    .procedure-info { flex: 1; }
    .procedure-name {
      font-weight: 600;
      color: var(--text-primary);
      margin: 0 0 0.25rem 0;
    }
    .procedure-count {
      font-size: 0.875rem;
      color: var(--text-secondary);
    }
    .procedure-rank {
      background: var(--brand-blue);
      color: white;
      padding: 0.125rem 0.625rem;
      border-radius: 9999px;
      font-size: 0.875rem;
      font-weight: 500;
      box-shadow: 0 1px 3px var(--shadow);
    }
    .estimated-total {
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px dashed var(--border-color);
      text-align: center;
    }
    .estimated-total-number {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--brand-blue);
    }
    .estimated-total-note {
      font-size: 0.875rem;
      color: var(--text-secondary);
      margin-top: 0.2rem;
    }
    .estimated-methodology {
      margin-top: 0.5rem;
      text-align: left;
    }
    .estimated-methodology summary {
      font-size: 0.875rem;
      color: var(--brand-blue);
      cursor: pointer;
      text-align: center;
    }
    .estimated-methodology summary:hover {
      text-decoration: underline;
    }
    .estimated-methodology p {
      margin-top: 0.5rem;
      font-size: 0.875rem;
      line-height: 1.5;
      color: var(--text-secondary);
      background: var(--bg-secondary);
      border-radius: var(--radius-sm);
      padding: 0.75rem;
    }

    .cite-widget {
      margin-bottom: 1rem;
      padding: 12px 16px;
      border: 1px solid #e5e7eb;
      border-radius: var(--radius-sm);
      background: #f8f9fa;
    }
    html.dark .cite-widget { background: #1A1A1A; border-color: rgba(255,255,255,0.1); }
    .cite-widget > summary {
      cursor: pointer;
      font-weight: 600;
      font-size: 0.9rem;
      color: #202124;
      list-style: none;
    }
    .cite-widget > summary::-webkit-details-marker { display: none; }
    .cite-widget > summary::after {
      content: ' +';
      color: #6b7280;
    }
    .cite-widget[open] > summary::after { content: ' \2212'; color: #1d4ed8; }
    html.dark .cite-widget > summary { color: #e8eaed; }
    html.dark .cite-widget[open] > summary::after { color: #93c5fd; }
    .cite-body { margin-top: 10px; font-size: 0.875rem; color: #374151; line-height: 1.6; }
    html.dark .cite-body { color: #d1d5db; }
    .cite-body p { margin-bottom: 6px; }
    .cite-body p:last-child { margin-bottom: 0; }
    .cite-body code {
      background: rgba(0,0,0,0.06);
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 0.875rem;
      word-break: break-all;
    }
    html.dark .cite-body code { background: rgba(255,255,255,0.08); color: #e8eaed; }
    .cite-body a { color: #1d4ed8; text-decoration: underline; }
    html.dark .cite-body a { color: #93c5fd; }

    .disclaimer {
      background: var(--warning-bg);
      border: 1px solid var(--border-color, #e5e7eb);
      border-left: 3px solid var(--warning-border);
      border-radius: var(--radius-sm);
      padding: 1rem;
      font-size: 0.875rem;
      color: var(--warning-text);
      margin-top: 2rem;
    }
    .disclaimer strong {
      color: var(--warning-text);
      font-weight: 700;
    }
    
    .back-link {
      text-align: center;
      margin-top: 2rem;
    }
    .back-link a {
      color: var(--brand-blue);
      text-decoration: none;
      font-weight: 600;
      transition: color 0.2s ease;
    }
    .back-link a:hover {
      color: var(--brand-blue-hover);
    }

    /* Related Surgeons Section */
    .related-surgeons {
      margin: 2rem 0;
      padding: 1.5rem;
      background: rgba(249, 250, 251, 0.8);
      border-radius: var(--radius-md);
      border: 1px solid rgba(229, 231, 235, 0.5);
    }
    html.dark .related-surgeons {
      background: rgba(30, 41, 59, 0.5);
      border-color: rgba(51, 65, 85, 0.5);
    }

    .related-surgeons h3 {
      color: var(--text-primary);
      font-size: 1.25rem;
      font-weight: 600;
      margin: 0 0 1rem 0;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--brand-blue);
    }

    .surgeon-links {
      display: grid;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }

    .surgeon-link {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem 1rem;
      background: rgba(255, 255, 255, 0.7);
      border-radius: var(--radius-sm);
      border: 1px solid rgba(229, 231, 235, 0.3);
      transition: all 0.2s ease;
    }
    html.dark .surgeon-link {
      background: rgba(51, 65, 85, 0.3);
      border-color: rgba(75, 85, 99, 0.5);
    }

    .surgeon-link:hover {
      background: rgba(59, 130, 246, 0.05);
      border-color: var(--brand-blue);
      transform: translateY(-1px);
    }
    html.dark .surgeon-link:hover {
      background: rgba(59, 130, 246, 0.1);
    }

    .surgeon-link a {
      color: var(--text-primary);
      text-decoration: none;
      font-weight: 500;
      flex: 1;
    }

    .surgeon-link a:hover {
      color: var(--brand-blue);
    }

    .surgeon-procedures {
      font-size: 0.875rem;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .procedure-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .procedure-link {
      padding: 0.5rem 1rem;
      background: var(--brand-blue);
      color: white;
      text-decoration: none;
      border-radius: var(--radius-sm);
      font-weight: 500;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }

    .procedure-link:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-2);
    }
    
    @media (max-width: 767px) {
      /* Apr 27 fix: was padding 1rem 0.5rem which added 32px of vertical
         padding inside .site-header > .container, making the header bar appear
         visibly thicker than other page types on mobile. Changed to horizontal
         only -- vertical padding lives on .header-content via shared.css. */
      .container { padding: 0 0.5rem; }
      .card { padding: 1rem; margin-bottom: 1rem; }
    }

    /* ========================================================================
       GEO (Generative Engine Optimization) Element Styles
       Added to support AI-quotable content blocks, citations, and statistics
       ======================================================================== */

    /* AI-Quotable Answer Blocks */
    .ai-quotable {
      margin-top: 1.5rem;
      padding: 1.5rem;
      background: rgba(59, 130, 246, 0.05);
      border-left: 4px solid var(--brand-blue);
      border-radius: var(--radius-md);
    }

    html.dark .ai-quotable {
      background: rgba(96, 165, 250, 0.12);
    }

    /* ========================================================================
       Patient Resources Section Styles
       ======================================================================== */
    .patient-resources-card { margin-top: 0; }
    .resource-links { display: flex; flex-direction: column; gap: 0.75rem; }
    .resource-link {
      display: block;
      padding: 0.875rem 1rem;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      text-decoration: none;
      color: var(--text-primary);
      transition: border-color 0.15s ease;
    }
    .resource-link:hover { border-color: var(--brand-blue); }
    .resource-link strong {
      display: block;
      font-size: 0.95rem;
      color: var(--brand-blue);
      margin-bottom: 0.25rem;
    }
    .resource-link p {
      font-size: 0.875rem;
      color: var(--text-secondary);
      line-height: 1.5;
      margin: 0;
    }

    /* ========================================================================
       Recovery Overview Card Styles
       ======================================================================== */
    .recovery-overview-card { margin-top: 0; }
    .milestone-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }
    .milestone-item {
      display: flex;
      gap: 1rem;
      padding: 0.75rem 1rem;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      background: var(--card-bg, #fff);
    }
    html.dark .milestone-item { background: rgba(255,255,255,0.04); }
    .milestone-period {
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--brand-blue);
      white-space: nowrap;
      min-width: 80px;
    }
    .milestone-text {
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }
    @media (max-width: 480px) {
      .milestone-item { flex-direction: column; gap: 0.25rem; }
      .milestone-period { min-width: auto; }
    }

    /* ========================================================================
       Collapsible Card Styles — reusable for any card-level <details>
       ======================================================================== */
    details.collapsible-card > summary {
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      padding: 0;
      margin: 0 0 0.5rem;
    }
    details.collapsible-card > summary::-webkit-details-marker { display: none; }
    /* Phone stays reachable while the contact card is collapsed (mobile) */
    .contact-summary-phone {
      margin-left: auto;
      font-weight: 600;
      font-size: 0.95rem;
      color: #3b82f6;
      text-decoration: none;
      white-space: nowrap;
    }
    html.dark .contact-summary-phone { color: #60a5fa; }
    details.contact-card[open] > summary > .contact-summary-phone { display: none; }
    details.collapsible-card > summary > .section-title,
    details.collapsible-card > summary > .contact-section-title { margin: 0; }
    @media (max-width: 640px) {
      details.collapsible-card > summary { padding: 8px 0; min-height: 44px; }
    }
    details.collapsible-card > summary::after {
      content: '+';
      font-size: 1.5rem;
      font-weight: 400;
      color: #6b7280;
      flex-shrink: 0;
      line-height: 1;
      transition: transform 0.2s;
    }
    details.collapsible-card[open] > summary::after {
      content: '\2212';
      color: #3b82f6;
    }
    html.dark details.collapsible-card[open] > summary::after { color: #60a5fa; }
    details.collapsible-card[open] > summary { margin-bottom: 1rem; }
    @media print {
      details.collapsible-card > summary::after { display: none; }
      details.collapsible-card > *:not(summary) { display: block !important; }
    }

    /* ========================================================================
       FAQ Section Styles
       ======================================================================== */
    .faq-card { margin-top: 0; }
    .faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
    .faq-item {
      padding: 0;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      background: var(--card-bg, #fff);
    }
    html.dark .faq-item { background: rgba(255,255,255,0.04); }
    .faq-item[open] { border-color: #3b82f6; }
    html.dark .faq-item[open] { border-color: #60a5fa; }
    .faq-question {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-primary);
      padding: 1rem 1.25rem;
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }
    .faq-question::-webkit-details-marker { display: none; }
    .faq-question::after {
      content: '+';
      font-size: 1.25rem;
      font-weight: 400;
      color: #6b7280;
      flex-shrink: 0;
      transition: transform 0.2s;
    }
    .faq-item[open] > .faq-question::after {
      content: '\2212';
      color: #3b82f6;
    }
    html.dark .faq-item[open] > .faq-question::after { color: #60a5fa; }
    .faq-answer {
      font-size: 0.92rem;
      color: var(--text-secondary);
      line-height: 1.65;
      padding: 0 1.25rem 1rem;
    }

    /* ========================================================================
       Nearby Surgeons Comparison Styles
       ======================================================================== */
    .nearby-card { margin-top: 0; }
    .nearby-intro {
      font-size: 0.92rem;
      color: var(--text-secondary);
      margin-bottom: 1rem;
    }
    .nearby-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;
    }
    .nearby-table th {
      text-align: left;
      padding: 0.6rem 0.75rem;
      border-bottom: 2px solid var(--border-color);
      font-weight: 600;
      color: var(--text-primary);
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .nearby-table td {
      padding: 0.6rem 0.75rem;
      border-bottom: 1px solid var(--border-color);
      color: var(--text-secondary);
    }
    .nearby-table a {
      color: var(--brand-blue);
      text-decoration: none;
      font-weight: 500;
    }
    .nearby-table a:hover { text-decoration: underline; }
    .nearby-table tbody tr:hover { background: rgba(59,130,246,0.04); }
    html.dark .nearby-table tbody tr:hover { background: rgba(96,165,250,0.08); }
    .nearby-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    @media (max-width: 640px) {
      .nearby-table { font-size: 0.875rem; }
      .nearby-table th,
      .nearby-table td { padding: 0.5rem 0.4rem; }
      .nearby-table th:first-child,
      .nearby-table td:first-child { padding-left: 0.2rem; }
      .nearby-table th:last-child,
      .nearby-table td:last-child { padding-right: 0.2rem; }
    }

    /* ========================================================================
       Patient Reviews Outbound Links Styles
       ======================================================================== */
    .patient-reviews-card { margin-top: 0; }
    .review-links-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }
    .review-link-card {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1rem;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      text-decoration: none;
      color: var(--text-primary);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .review-link-card:hover {
      border-color: var(--brand-blue);
      box-shadow: 0 2px 8px var(--shadow);
    }
    .review-link-icon {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-sm);
      background: rgba(59, 130, 246, 0.08);
      color: var(--brand-blue);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    html.dark .review-link-icon { background: rgba(96, 165, 250, 0.12); }
    .review-link-content { flex: 1; min-width: 0; }
    .review-link-content strong {
      display: block;
      font-size: 0.95rem;
      color: var(--brand-blue);
      margin-bottom: 0.15rem;
    }
    .review-link-content span {
      display: block;
      font-size: 0.875rem;
      color: var(--text-secondary);
      line-height: 1.4;
    }
    .review-link-arrow { color: var(--text-muted); flex-shrink: 0; }
    .review-link-card:hover .review-link-arrow { color: var(--brand-blue); }
    @media (max-width: 640px) {
      .review-links-grid { grid-template-columns: 1fr; }
    }

    
    /* ===== Credential Strip (badge-cta.js, A4 redesign) ===== */
    .op-credential-strip {
      max-width: 960px;
      margin: 1.25rem auto;
      padding: 16px 20px;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      display: flex;
      align-items: center;
      gap: 20px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }
    html.dark .op-credential-strip {
      background: #1A1A1A;
      border-color: #3c4043;
    }
    .op-credential-img-link {
      flex-shrink: 0;
      display: block;
      line-height: 0;
      border-radius: 8px;
      overflow: hidden;
    }
    .op-credential-img {
      width: 100px;
      height: 100px;
      display: block;
      border-radius: 8px;
      object-fit: contain;
    }
    /* Round 5: serve the variant that contrasts against the strip surface.
       Light page → dark-bg strip on white card → show dark SVG.
       Dark page  → strip is #1A1A1A → show light SVG so it doesn't disappear. */
    .op-credential-img--dark-mode { display: none; }
    html.dark .op-credential-img--light-mode { display: none; }
    html.dark .op-credential-img--dark-mode { display: block; }
    @media (max-width: 480px) {
      .op-credential-strip {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 18px 16px;
      }
      .op-credential-img { width: 88px; height: 88px; }
    }
    .op-credential-body { flex: 1; min-width: 0; }
    .op-credential-title {
      margin: 0 0 4px;
      font-size: 1.05rem;
      font-weight: 700;
      color: #202124;
      line-height: 1.35;
    }
    html.dark .op-credential-title { color: #e8eaed; }
    .op-credential-sub {
      margin: 0 0 10px;
      font-size: 0.9rem;
      color: #4a4f55;
      line-height: 1.45;
    }
    html.dark .op-credential-sub { color: #c4c7c5; }
    /* Round 5: muted to de-emphasize on patient-facing pages. Discoverable for
       surgeons who own the page; not visually competing with patient CTAs. */
    .op-credential-claim {
      margin: 6px 0 0;
      font-size: 0.875rem;
      color: #9aa0a6;
      line-height: 1.5;
    }
    html.dark .op-credential-claim { color: #9aa0a6; }
    .op-credential-claim-prefix { color: inherit; }
    .op-credential-claim-link {
      color: #6b7280;
      font-weight: 400;
      text-decoration: underline;
      text-underline-offset: 2px;
      white-space: nowrap;
      display: inline-block;
      padding: 2px 0;
    }
    .op-credential-claim-link:hover {
      color: #1d4ed8;
    }
    .op-credential-claim-link:focus-visible {
      outline: 2px solid #1d4ed8;
      outline-offset: 2px;
      border-radius: 2px;
    }
    html.dark .op-credential-claim-link { color: #9aa0a6; }
    html.dark .op-credential-claim-link:hover { color: #93c5fd; }
    html.dark .op-credential-claim-link:focus-visible { outline-color: #93c5fd; }
    @media print {
      .op-credential-strip { display: none !important; }
    }
  

    /* Print stylesheet -- patients print profiles for appointments */
    @media print {
      .site-header, .site-footer, .menu-dropdown,
      .theme-toggle, .menu-button,
      .scroll-progress, .internal-links-section,
      .review-links-section, .nearby-card, .trend-section canvas,
      .breadcrumb { display: none !important; }
      body { background: #fff !important; color: #000 !important; font-size: 11pt; }
      .main-content { max-width: 100%; padding: 0; }
      .card { box-shadow: none; border: 1px solid #dadce0; break-inside: avoid; }
      .surgeon-header { background: #fff !important; color: #000 !important; }
      .surgeon-header h1, .hero-rank-pill { color: #000 !important; background: transparent !important; }
      .quick-fact { border: 1px solid #c4c7c5; background: #f8f9fa !important; color: #202124 !important; }
      .faq-item { border: 1px solid #dadce0; }
      .faq-item[open] { border-color: #5f6368; }
      details.faq-item { open: true; }
      .faq-answer { display: block !important; }
      a { color: #000; text-decoration: underline; }
      a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #5f6368; }
      .surgeon-badges a[href]::after, .breadcrumb a[href]::after { content: none; }
    }