/* Summit Point: shared visual language for patient and staff routes. */
/* The clinic entrance and visit checklist share a quieter public palette. */
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) {
  --sp-canvas: #f6f8f7;
  --sp-ink: #172c28;
  --sp-teal: #214a3c;
  --sp-light: #eaf1ed;
  --sp-muted: #4c625b;
  --sp-border: #ccd7d2;
  --sp-focus: #487e60;
  --text: #394e48;
}
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-header {
  background: var(--sp-canvas);
  padding-inline: max(clamp(22px, 6vw, 104px), calc((100% - 1432px) / 2));
}
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-header .header-navigation .header-library {
  border-radius: 0;
  font-weight: 550;
}
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-header .header-navigation .header-library[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  background: transparent;
}
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-header .header-navigation .header-staff-link {
  border-inline-start: 1px solid var(--sp-border);
  padding-inline-start: clamp(10px, 1.5vw, 22px);
  color: var(--sp-muted);
}
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-nav-toggle {
  border-radius: 2px;
  background: transparent;
}
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-footer {
  background: #eef3f0;
  color: var(--sp-muted);
  border-top: 1px solid var(--sp-border);
  padding-inline: max(clamp(22px, 6vw, 104px), calc((100% - 1432px) / 2));
}
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-footer .footer-brand { color: var(--sp-ink); }
body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) #footer-version { display: none; }
@media (max-width: 760px) {
  body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-header .header-navigation .header-staff-link { border: 0; padding-inline-start: 9px; }
}

body { background: var(--sp-canvas); color: var(--text); font-size: 16px; }
::selection { background: #bdeee1; color: var(--sp-ink); }
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 3px; }
.site-header { background: #fff; justify-content: space-between; gap: 12px 24px; }
.site-header .brand { gap: 11px; }
.site-header .brand-mark { width: 38px; height: 38px; color: var(--sp-teal); }
.site-header .brand-name { letter-spacing: .1em; }
.site-header .brand-name span { letter-spacing: .32em; }
.site-header .header-navigation { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 18px); margin: 0 0 0 auto; border: 0; padding: 0; }
.site-header .header-navigation .header-library { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 9px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; }
.site-header .header-navigation .header-library[aria-current="page"] { background: var(--sp-light); color: var(--sp-teal); }
.site-header .header-navigation .header-staff-link { border: 1px solid var(--sp-border); }
.site-header .header-lock { min-height: 44px; margin: 0; }
.header-contact, .site-nav-toggle { min-height: 44px; padding: 6px 12px; background: #fff; color: var(--sp-ink); border: 1px solid var(--sp-border); border-radius: 8px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.header-contact { display: inline-flex; align-items: center; }
.header-contact:hover { background: var(--sp-light); }
.site-nav-toggle { display: none; }
.site-footer { flex-wrap: wrap; align-items: flex-start; background: var(--sp-deep); color: #dbe7ef; border-color: transparent; }
.site-footer .footer-brand { color: #fff; }
.footer-contact { min-width: 0; }
.footer-contact h2 { width: fit-content; margin: 0 0 7px; font: 700 16px/1.4 var(--sans); }
.footer-contact dl { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: 13px; line-height: 1.5; }
.footer-contact dt { font-weight: 650; }
.footer-contact dd { margin: 2px 0 0; }
.contact-placeholder { margin-inline-start: 3px; font-size: 11px; }

.library-hero { align-items: center; gap: clamp(20px, 4vw, 60px); padding-block: clamp(26px, 4vw, 57px); }
.library-hero h1, .access-card h1, .protocol-heading h1, .screen-heading h1, .eligibility-heading h1,
.products-page h1, .injury-page h1 { font-weight: 650; letter-spacing: -.055em; }
.library-hero h1 { font-size: clamp(40px, 5.2vw, 74px); line-height: 1.02; }
.library-tracks { display: grid; gap: 10px; }
.library-tracks a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: #fff; color: var(--sp-ink); }
.library-tracks strong { display: block; font-weight: 700; }
.library-tracks small { display: block; font-size: 13px; color: var(--sp-muted); }
.library-tools .protocol-list { background: #fff; border-radius: 0 0 var(--sp-radius) var(--sp-radius); }
.protocol-row { padding-inline: clamp(8px, 2vw, 22px); }
.protocol-row:hover { background: var(--sp-light); }
.row-body h2, .products-page h2 { font-weight: 650; }
.category-filter, .protocol-tab, .search-box, .access-card, .access-aside { border-radius: 8px; }
.category-filter[aria-pressed="true"], .protocol-tab[aria-selected="true"] { background: var(--sp-light); color: var(--sp-teal); }
.detail-article { min-width: 0; }
.protocol-heading { padding-block-end: 18px; }
.protocol-panel { overflow-wrap: anywhere; }
.imaging-requirement { background: var(--sp-light); border-color: #a9d4ce; border-left-color: var(--sp-teal); color: var(--sp-ink); }
.imaging-requirement-detail { color: var(--sp-ink); }
.note-template { background: #fff; color: var(--sp-ink); border-color: var(--sp-border); }
.access-card, .access-aside { background: #fff; }

.service-option, .answer-option, .body-atlas, .screen-result, .screen-start-note, .screen-live-alert,
.screen-clarification, .diagnosis-field select, .contact-field input, .screen-clarification textarea,
.screen-button, .solid-button, .product-card, .injury-button { border-radius: var(--sp-radius); }
.service-option:has(:checked), .answer-option:has(:checked) { background: var(--sp-light); border-color: var(--sp-teal); }
.body-atlas { background: #e8f0f7; }
.human-outline { fill: #fff; stroke: #69869b; }
.body-center-lines { stroke: #acc1d0; }
.body-region { fill: #9ac4d0; stroke: #427484; }
.body-region.selected { fill: #08736f; stroke: #034d4e; }
.screen-result { background: var(--sp-light); border-color: #a9d4ce; border-left-color: var(--sp-teal); }
.screen-result-emergency, .screen-result-urgent, .screen-live-alert { background: var(--sp-warn-bg); border-color: var(--sp-warn); color: var(--sp-warn); }
.screen-result-policy, .screen-result-review, .screen-result-diagnosis, .screen-result-care, .screen-result-incomplete, .screen-result-criteria, .screen-result-noindication {
  background: #edf3fa; border-color: #a6bdd2; border-left-color: #536f95;
}
.screen-clarification { background: #edf3fa; border-left-color: #536f95; }
.screen-clarification textarea, .diagnosis-field select, .contact-field input { background: #fff; border-color: #9fb5c6; }
.screen-button, .solid-button, .injury-button { background: var(--sp-teal); border: 1px solid var(--sp-teal); color: #fff; min-height: 44px; font-weight: 650; }
.screen-button:hover, .solid-button:hover, .injury-button:hover { background: #064c49; }
.injury-button-secondary { background: #fff; border-color: #9fb5c6; color: var(--sp-ink); }
.injury-button-secondary:hover, .site-nav-toggle:hover, .library-tracks a:hover { background: var(--sp-light); }
.injury-button:disabled { background: #e9eff4; border-color: #c5d3df; color: #475e71; }
.products-index-hero { background: #eaf2f7; border: 0; border-radius: var(--sp-radius); padding-inline: clamp(20px, 4vw, 60px); margin-top: 24px; }
.products-page :is(a,button):focus-visible { outline-color: var(--sp-focus); }
.products-figure-preview .products-art { background: #e8f1f7; }
.products-reading-nav button:hover { background: var(--sp-light); }

.injury-visit { max-width: 850px; }
.injury-page h2 { font-weight: 650; letter-spacing: -.035em; }
.injury-page .injury-kicker { color: var(--sp-teal); }
.injury-page :focus-visible { outline-color: var(--sp-focus); }
.injury-safety,.injury-alert { background: var(--sp-warn-bg); border: 1px solid #e0b4bf; border-left: 4px solid var(--sp-warn); color: var(--sp-warn); border-radius: 8px; }
.injury-section { background: #fff; border-color: var(--sp-border); border-radius: var(--sp-radius); }
.injury-question+.injury-question { border-color: var(--sp-border); }
.injury-choice { background: #fff; border-color: #aabfcc; border-radius: 8px; }
.injury-choice:has(input:checked) { background: var(--sp-light); border-color: var(--sp-teal); }
.injury-choice:has(input:focus-visible) { outline: 3px solid var(--sp-focus); outline-offset: 2px; }
.injury-choice input { accent-color: var(--sp-teal); }
.injury-field :is(input,select,textarea), .injury-summary-output, .injury-staff-search input {
  background: #fff; border: 1px solid #9fb5c6; color: var(--sp-ink); border-radius: 8px;
}
.injury-field textarea { line-height: 1.5; }
.injury-draft { background: #edf3fa; border: 1px solid #b8cbe0; border-left: 4px solid #536f95; padding: 13px 17px; color: var(--sp-ink); border-radius: 8px; }
.injury-draft p { margin: 4px 0 0; font-size: 14px; }
.injury-pathway-card { border-color: var(--sp-border); background: #fff; border-radius: var(--sp-radius); }
.injury-pathway-card:hover, .injury-pathway-nav>a[aria-current] { background: var(--sp-light); border-color: #a9d4ce; }
.injury-staff-search { margin-bottom: 16px; }
.injury-staff-search label { display: block; color: var(--sp-ink); font-weight: 650; margin-bottom: 6px; }
.injury-staff-search input { display: block; width: min(100%, 640px); min-height: 44px; padding: 8px 12px; font-size: 16px; }
.injury-empty { grid-column: 1/-1; margin: 0; padding: 18px; border: 1px solid var(--sp-border); border-radius: 8px; background: #fff; }
.injury-staff-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.injury-staff-controls { margin-bottom: 12px; }
.injury-reference, .injury-note-outline { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: #fff; }
.injury-review-progress { font-weight: 650; color: var(--sp-teal); margin: 8px 0; }
.injury-reference .injury-pathway-section:first-child { border-top: 0; padding-top: 0; }
.injury-note-outline { margin-top: 14px; }
.injury-note-outline summary { cursor: pointer; font-weight: 700; color: var(--sp-ink); }
.injury-note-outline .injury-button { margin-top: 12px; }

@media (hover:hover) {
  .site-header .header-library:hover, .injury-choice:hover { background: var(--sp-light); }
  .library-tracks a, .injury-button, .injury-choice, .injury-pathway-card, .site-header .header-library {
    transition: background-color .15s ease, border-color .15s ease;
  }
}
@media (max-width: 1000px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; }
  .site-nav-toggle { display: inline-flex; align-items: center; }
  .site-header .header-lock { grid-column: 1 / -1; justify-self: end; }
  .site-header .header-navigation { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .site-header .header-navigation .header-library { font-size: 14px; white-space: normal; padding-inline: 9px; }
  .site-nav-toggle[aria-expanded="false"] + .header-navigation { display: none; }
}
@media (max-width: 760px) {
  .library-hero { grid-template-columns: 1fr; }
  .site-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .site-footer > div:last-child { align-items: flex-start; text-align: start; }
}
@media (max-width: 420px) {
  .site-header, body:has(:is(#home-view, #injury-checklist-view, #editorial-view):not([hidden])) .site-header { padding-inline: 12px; column-gap: 7px; }
  .site-header .brand { gap: 7px; }
  .site-header .brand-mark { flex: 0 0 27px; width: 27px; height: 27px; }
  .site-header .brand-name { font-size: 11px; }
  .header-contact, .site-nav-toggle { padding-inline: 8px; font-size: 13px; }
  .site-header .header-lock { min-height: 40px; padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; color: var(--sp-ink); }
  .injury-draft { margin-bottom: 14pt; }
  .print-sheet .injury-reference { border: 0; padding: 0; }
}
