/* ================================================================
   DESIGN SYSTEM — Camilo Correa, MD | Surgical Oncology
   Deep navy #0f2340 · Refined blue #1a5fa8 · Inter via Google Fonts
   ================================================================ */

/* ===== IMPORTS ===== */
/* Google Fonts loaded asynchronously via <link> in each HTML <head> */

/* ===== TOKENS ===== */
:root {
  --navy:        #0f2340;
  --navy-dark:   #091829;
  --blue:        #1a5fa8;
  --blue-light:  #2474c8;
  --blue-pale:   #e8f1fb;
  --gold:        #c8973a;
  --white:       #ffffff;
  --gray-100:    #f5f7fa;
  --gray-200:    #eaedf2;
  --gray-400:    #9aa3b0;
  --gray-600:    #5a6373;
  --gray-800:    #2d3340;
  --text:        #1c2230;
  --text-muted:  #5a6373;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  --shadow-sm:   0 1px 4px rgba(15,35,64,.08);
  --shadow-md:   0 4px 16px rgba(15,35,64,.12);
  --shadow-lg:   0 8px 32px rgba(15,35,64,.16);

  --transition:  0.2s ease;
  --max-width:   1120px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--blue);
  outline-offset: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--gray-200);
}

.brand-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
}

.brand-text span {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-800);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-pale);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--blue);
}

.nav-links .btn-nav {
  background: var(--blue);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  font-weight: 600;
  font-size: 13px;
}

.nav-links .btn-nav:hover {
  background: var(--blue-light);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px;
  color: var(--navy);
}

.nav-toggle svg {
  display: block;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #163560 55%, #1a4a80 100%);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}



.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-headshot {
  width: 108px;
  height: 108px;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.hero-id h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 4px;
}

.hero-id .credentials {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  line-height: 1.5;
}

.hero-id .title {
  font-size: 14.5px;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  margin-top: 2px;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero card (right column) */
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(4px);
}

.hero-card h2 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
}

.hero-card ul li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card ul li:last-child { border-bottom: none; }

.hero-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  box-shadow: 0 4px 12px rgba(26,95,168,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-navy:hover {
  background: var(--blue-pale);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Condition card */
.condition-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: block;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.condition-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue);
  text-decoration: none;
}

.condition-card .card-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  display: block;
}

.condition-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.condition-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.condition-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 14px;
}

/* Feature card */
.feature-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.feature-card figure {
  margin-top: auto;
  padding-top: 16px;
}

.feature-card .feature-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 1.2rem;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== GRIDS ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  list-style: none;
}

.breadcrumb ol li a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb ol li a:hover { text-decoration: underline; }

.breadcrumb ol li + li::before {
  content: '/';
  color: var(--gray-400);
  margin-right: 6px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0 44px;
}

.page-header .section-label {
  color: var(--gold);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  font-size: 1.05rem;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.faq-item:first-child { border-top: 1px solid var(--gray-200); }

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CONTACT / INFO BLOCKS ===== */
.info-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-block:first-child { border-top: 1px solid var(--gray-200); }

.info-block .info-icon {
  width: 38px;
  height: 38px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  font-size: 1rem;
}

.info-block .info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.info-block .info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.info-block .info-value a {
  color: var(--navy);
}

.info-block .info-value a:hover {
  color: var(--blue);
  text-decoration: none;
}

/* ===== FORMS ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,168,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,168,.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.split-3-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.badge-blue {
  background: var(--blue-pale);
  color: var(--blue);
}

.badge-navy {
  background: rgba(15,35,64,.08);
  color: var(--navy);
}

/* ===== VIDEO EMBED ===== */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1) opacity(0.7);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 240px;
}

.footer-col h3 {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

/* ===== HIGHLIGHT STRIP ===== */
.highlight-strip {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.highlight-strip p {
  font-size: 14.5px;
  color: var(--navy);
  line-height: 1.65;
}

/* ===== STAT BLOCK ===== */
.stat {
  text-align: center;
}

.stat .stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}

.stat .stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== MAP EMBED ===== */
.map-embed {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius-lg);
  display: block;
  margin-top: 20px;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-3-2,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }

  .hero { padding: 52px 0 48px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-actions { flex-direction: column; }

  .hero-actions .btn { width: 100%; justify-content: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 10px 12px;
    font-size: 15px;
  }

  .nav-links .btn-nav {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  .nav-toggle { display: block; }

  .navbar { position: sticky; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .cta-band .btn-group { flex-direction: column; align-items: center; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-headshot { width: 84px; height: 84px; }
}

/* ===== SEARCH ===== */
.search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 10px;
  display: flex;
  align-items: center;
  opacity: 0.75;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.search-icon-btn:hover { opacity: 1; }
.search-icon-btn svg { display: block; }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 50, 0.93);
  z-index: 2000;
  padding: 72px 20px 40px;
  overflow-y: auto;
}
.search-overlay.open { display: block; }

.search-overlay-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-close {
  position: absolute;
  top: -52px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
}
.search-close:hover { color: white; }

/* Pagefind UI theme — light text on dark overlay */
#search {
  --pagefind-ui-scale: 0.95;
  --pagefind-ui-primary: #7eb8f7;
  --pagefind-ui-text: #f0f4f8;
  --pagefind-ui-background: rgba(255,255,255,0.07);
  --pagefind-ui-border: rgba(255,255,255,0.18);
  --pagefind-ui-tag: rgba(255,255,255,0.12);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-image-border-radius: 6px;
  --pagefind-ui-font: 'Inter', sans-serif;
}

/* Force legible colors on all Pagefind-generated elements */
.search-overlay .pagefind-ui__search-input {
  color: #0f2340 !important;
  background: #ffffff !important;
}
.search-overlay .pagefind-ui__result {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 10px;
}
.search-overlay .pagefind-ui__result-title a,
.search-overlay .pagefind-ui__result-excerpt {
  color: #f0f4f8 !important;
}
.search-overlay .pagefind-ui__result-title a {
  font-weight: 600;
  font-size: 15px;
}
.search-overlay .pagefind-ui__result-excerpt {
  font-size: 13.5px;
  line-height: 1.65;
  margin-top: 4px;
}
.search-overlay mark {
  background: rgba(126,184,247,0.35);
  color: #ffffff;
  border-radius: 3px;
  padding: 0 2px;
}
.search-overlay .pagefind-ui__message {
  color: rgba(240,244,248,0.7);
  font-size: 13.5px;
}

/* =============================================
   PRINT STYLES
   ============================================= */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  cursor: pointer;
  background: none;
  text-decoration: none;
}
.print-btn:hover { color: rgba(255,255,255,0.78); border-color: rgba(255,255,255,0.35); }

/* Elements only visible when printing */
.print-only { display: none; }

@media print {
  .print-only { display: block; }

  /* Hide chrome */
  .navbar, .breadcrumb, .footer, .cta-band,
  .search-overlay, .search-icon-btn, .print-btn-wrap { display: none !important; }

  /* Page setup */
  @page { margin: 2cm 2.2cm 3cm; }
  body { font-size: 11pt; color: #111; background: #fff; }

  /* Typography */
  h1 { font-size: 20pt; margin-bottom: 6pt; }
  h2 { font-size: 14pt; margin-top: 18pt; margin-bottom: 6pt; page-break-after: avoid; }
  h3 { font-size: 12pt; margin-top: 12pt; margin-bottom: 4pt; page-break-after: avoid; }
  p, li { line-height: 1.65; color: #333; font-size: 10.5pt; }

  /* Page header */
  .page-header { background: none !important; padding: 0 0 16pt; border-bottom: 1.5pt solid #111; margin-bottom: 16pt; }
  .page-header h1 { color: #111; }
  .page-header p { color: #444; font-size: 11pt; }
  .section-label { font-size: 8pt; letter-spacing: .08em; color: #666; text-transform: uppercase; }

  /* Sections */
  .section { padding: 16pt 0; background: none !important; }
  .section + .section { border-top: 0.5pt solid #ddd; }
  .container { max-width: 100% !important; padding: 0 !important; }

  /* Border-left callout items */
  [style*="border-left"] { border-left: 2pt solid #1a3a5c !important; padding-left: 10pt !important; margin-bottom: 8pt; }

  /* Figure */
  figure { page-break-inside: avoid; }
  figure img { max-width: 70% !important; }
  figcaption { font-size: 8.5pt; color: #666; }

  /* Links — suppress URL after */
  a[href]::after { content: none; }

  /* Avoid breaking inside callout items */
  [style*="border-left"] { page-break-inside: avoid; }

  /* Print letterhead (first-page only, flows naturally at top of page 1) */
  .print-letterhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14pt;
    border-bottom: 2pt solid #1a3a5c;
    margin-bottom: 22pt;
  }
  .print-letterhead img { height: 38pt; width: auto; }
  .print-letterhead .pl-name { text-align: right; }
  .print-letterhead .pl-name strong { font-size: 14pt; color: #111; display: block; margin-bottom: 3pt; }
  .print-letterhead .pl-name span { font-size: 9pt; color: #555; line-height: 1.7; }

  /* Running footer — fixed to bottom of every printed page */
  .print-brand {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 7pt 2.2cm;
    border-top: 0.75pt solid #aaa;
    font-size: 8.5pt;
    color: #666;
    text-align: center;
    background: #fff;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== STICKY TOC OFFSET ===== */
h2[id], h3[id] {
  scroll-margin-top: 130px;
}
