.referrer-page {
  --heading: #293879;
  --accent-strong: #08756f;
  --muted: #505c63;
  background: #fff;
}

.referrer-page [hidden] { display: none !important; }
.referrer-page a:focus-visible, .referrer-page button:focus-visible, .referrer-page summary:focus-visible {
  outline: 3px solid #08756f;
  outline-offset: 5px;
}
.referrer-page .button { font-weight: 700; font-family: inherit; cursor: pointer; }
.referrer-page .button-primary { background: #08756f; }
.referrer-page .button-primary:hover { background: #065e59; }
.referrer-page .eyebrow { color: #08756f; margin: 0 0 16px; }
.referrer-page p { margin-top: 0; }
.referrer-page h1 { font-size: clamp(2.5rem, 4.8vw, 4.1rem); line-height: 1.06; letter-spacing: -0.035em; }
.referrer-page h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.referrer-page h3 { line-height: 1.25; }
.referrer-page .small-copy { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.referrer-page .skip-link {
  position: fixed; top: 12px; left: 12px; transform: translateY(-160%);
  padding: 12px 20px; color: #fff; background: #293879; border-radius: 8px; z-index: 100;
}
.referrer-page .skip-link:focus { transform: translateY(0); }
.referrer-nav { display: flex; gap: 24px; align-items: center; }
.referrer-nav a { color: var(--heading); text-decoration: none; font-size: 0.94rem; font-weight: 600; }
.referrer-hero { padding: 76px 0 64px; background: linear-gradient(140deg, #f6faf9 0%, #fff 70%); }
.referrer-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
.referrer-hero-grid > div { max-width: 575px; }
.referrer-hero .hero-lead { color: var(--heading); font-size: 1.25rem; line-height: 1.5; margin: 24px 0 16px; }
.referrer-hero .hero-note { margin: 22px 0 0; }
.referrer-hero-image { margin: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.referrer-hero-image img { width: 100%; height: 405px; object-fit: cover; object-position: 65% center; border-radius: 24px; }
.referrer-hero-image figcaption { padding: 14px 2px 0; font-size: 0.9rem; color: var(--muted); }
.referrer-section { padding: 64px 0; }
.referrer-section[id] { scroll-margin-top: 98px; }
.section-heading { max-width: 780px; margin-bottom: 32px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.report-grid, .route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.report-card { padding: 32px; border: 1px solid #dbe5e8; border-top: 4px solid #293879; border-radius: 16px; display: flex; flex-direction: column; }
.report-card-nutri { border-top-color: #08756f; }
.report-label { color: #293879; font-size: 0.75rem; letter-spacing: 0.07em; font-weight: 700; margin-bottom: 14px; }
.report-card-nutri .report-label { color: #08756f; }
.report-card h3 { font-size: 1.5rem; }
.report-card p, .report-card li { color: var(--muted); }
.report-card ul { padding-left: 20px; margin: 0 0 20px; }
.report-card li { padding-left: 3px; margin-bottom: 8px; }
.report-card .report-use { padding-top: 16px; border-top: 1px solid #e4e9eb; font-size: 0.94rem; }
.report-card .text-link { margin-top: auto; }
.brand-section { background: #f5f8fa; }
.brand-grid, .questions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; }
.brand-grid .section-heading, .questions-grid .section-heading { margin-bottom: 0; }
.brand-content { background: #fff; border: 1px solid #dbe5e8; border-radius: 20px; padding: 32px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-list li { display: flex; flex-direction: column; padding: 15px 0; border-bottom: 1px solid #e4e9eb; }
.feature-list strong { color: var(--heading); }
.feature-list span { color: var(--muted); }
.patient-heading { display: flex; align-items: flex-start; gap: 28px; max-width: none; }
.patient-heading > div { max-width: 770px; }
.print-button { flex-shrink: 0; font-size: 0.92rem; }
.route-card { padding: 28px; background: #f8fafb; border-radius: 16px; }
.route-number { color: #08756f; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; }
.route-card h3 { font-size: 1.45rem; }
.route-card ol { padding-left: 20px; margin: 20px 0; }
.route-card li { margin: 8px 0; padding-left: 4px; }
.route-links { display: flex; flex-direction: column; gap: 10px; }
.patient-after { padding: 28px 0 0; max-width: 940px; }
.patient-after p { color: var(--muted); }
.print-contact { display: none; }
.questions-section { background: #f5f8fa; }
.questions details { border-bottom: 1px solid #d5dfe2; padding: 18px 0; }
.questions details:first-child { padding-top: 0; }
.questions summary { cursor: pointer; color: var(--heading); font-weight: 700; padding-right: 12px; }
.questions details p { margin: 16px 0 0; color: var(--muted); }
.contact-section { background: #293879; color: #fff; }
.contact-section h2, .contact-section .eyebrow { color: #fff; }
.contact-section .small-copy { color: #e0e8f0; }
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-actions .button-primary { background: #fff; color: #293879; }
.contact-actions .button-primary:hover { background: #eaf2f1; }
.contact-actions > a:not(.button) { text-underline-offset: 4px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-row strong { color: var(--heading); }
.footer-row p { margin: 4px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-links a { color: var(--heading); text-decoration: none; }
.provider-overview h1 { font-size: clamp(2.4rem, 4vw, 3.3rem); }
.provider-overview .referrer-hero { padding: 60px 0; }
.provider-overview .referrer-hero-image img { height: 340px; }
.provider-overview .actions { flex-direction: column; align-items: flex-start; gap: 16px; }
.secondary-action { font-size: 0.96rem; }
.practice-offer { border-top: 1px solid #e4e9eb; }
.offer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; }
.offer-layout .section-heading { margin: 0; }
.offer-points { list-style: none; padding: 0; margin: 0; }
.offer-points li { display: flex; flex-direction: column; gap: 4px; margin: 0 0 20px; }
.offer-points li:last-child { margin-bottom: 0; }
.offer-points strong { color: var(--heading); }
.offer-points span { color: var(--muted); }
.reading-width { max-width: 860px; }
.patient-intro { padding: 56px 0 36px; background: #f6faf9; }
.patient-information h1 { font-size: clamp(2.3rem, 4vw, 3rem); max-width: 760px; }
.patient-intro .hero-lead { color: var(--heading); font-size: 1.18rem; margin-top: 24px; }
.patient-products { margin: 28px 0 20px; }
.patient-products p { margin: 0 0 18px; color: var(--muted); }
.patient-products strong { color: var(--heading); }
.patient-information .patient-heading { justify-content: space-between; align-items: center; margin-bottom: 28px; }
.patient-information .patient-heading h2 { margin-bottom: 0; }
.patient-information .route-card[id] { scroll-margin-top: 112px; }
.patient-questions { margin-top: 24px; }
.patient-contact { margin: 26px 0 0; }

@media (max-width: 960px) {
  .referrer-hero { padding: 44px 0; }
  .referrer-hero-grid, .brand-grid, .questions-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .referrer-hero-grid > div { max-width: 720px; }
  .referrer-hero-image img { height: 340px; }
  .patient-heading { flex-direction: column; gap: 8px; }
  .referrer-section { padding: 48px 0; }
  .referrer-nav { gap: 16px; }
  .offer-layout { grid-template-columns: 1fr; gap: 24px; }
  .provider-overview .referrer-hero { padding: 40px 0; }
}
@media (max-width: 680px) {
  .referrer-page .brand img { width: 114px; }
  .referrer-page .header-row { align-items: center; }
  .referrer-nav > a:not(.button) { display: none; }
  .referrer-nav .button { padding: 8px 14px; min-height: 42px; font-size: 0.78rem; }
  .referrer-page h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .referrer-hero-grid { gap: 28px; }
  .referrer-hero .hero-lead { font-size: 1.13rem; }
  .referrer-hero .actions { flex-direction: column; align-items: stretch; }
  .referrer-hero-image img { height: 250px; }
  .report-grid, .route-grid { grid-template-columns: 1fr; gap: 18px; }
  .report-card, .route-card, .brand-content { padding: 24px; }
  .contact-actions { align-items: stretch; }
  .contact-actions a:not(.button) { font-size: 0.94rem; }
  .footer-row { flex-direction: column; }
  .footer-links { gap: 12px 20px; }
  .provider-overview .referrer-hero-image img { height: 250px; }
  .provider-overview .actions { align-items: stretch; }
  .provider-overview .secondary-action { text-align: center; }
  .patient-intro { padding: 36px 0 28px; }
  .patient-route-actions { flex-direction: column; align-items: stretch; }
  .patient-route-actions .button { padding: 10px 16px; text-align: center; }
  .patient-information .patient-heading { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .referrer-page .button { transition: none; }
}
@page { size: A4; margin: 16mm; }
@media print {
  .referrer-page { background: #fff; font-family: Arial, sans-serif; font-size: 10pt; line-height: 1.4; color: #000; }
  .referrer-page .site-header, .referrer-page .site-footer, .referrer-page .skip-link,
  .referrer-page main > section:not(#patienten), .referrer-page .print-button { display: none !important; }
  .referrer-page .wrap { width: 100%; max-width: none; }
  .referrer-page #patienten { padding: 0; }
  .referrer-page .patient-heading { display: block; margin-bottom: 14px; }
  .referrer-page h2 { font-size: 19pt; }
  .referrer-page h3 { font-size: 13pt; }
  .referrer-page .eyebrow { margin-bottom: 8px; font-size: 8pt; }
  .referrer-page .section-heading p:not(.eyebrow) { font-size: 10pt; }
  .referrer-page .route-grid { display: block; }
  .referrer-page .route-card { background: none; border-radius: 0; padding: 0 0 14px; break-inside: avoid; }
  .referrer-page .route-number { margin-bottom: 4px; }
  .referrer-page .route-card ol { margin: 10px 0; }
  .referrer-page .route-card li { margin: 4px 0; }
  .referrer-page a { color: #000; text-decoration: none; }
  .referrer-page .route-card > .text-link, .referrer-page .route-links { display: none; }
  .referrer-page .patient-after { padding: 0; }
  .referrer-page .patient-after p { color: #000; }
  .referrer-page .print-contact { display: block; margin-top: 16px; font-weight: 700; }
  .patient-information main > section.patient-intro { display: block !important; padding: 0 0 14px; background: none; }
  .patient-information .patient-intro h1 { font-size: 20pt; }
  .patient-information .patient-intro .hero-lead { font-size: 10pt; margin-top: 12px; }
  .patient-information .patient-products { margin: 12px 0; }
  .patient-information .patient-products p { font-size: 10pt; color: #000; }
  .patient-information .patient-route-actions { display: none; }
}
