:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #131b2d;
  --muted: #526079;
  --line: #dbe2ee;
  --blue: #244ad7;
  --blue-dark: #1736a7;
  --sans: "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { overscroll-behavior-x: none }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans) }
button, input { font: inherit }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .65 }
a { color: var(--blue-dark) }
:focus-visible { outline: 3px solid #4779fd; outline-offset: 3px }
h1, h2, h3, p, blockquote, dl, dd { margin: 0 }
.wrap { width: min(100% - 40px, 850px); margin-inline: auto }
.top { background: #fff; border-bottom: 1px solid var(--line) }
.top-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; letter-spacing: -.035em }
.brand-mark { width: 68px; height: 38px; border-radius: 9px; background: #fff; display: grid; place-items: center }
.brand-mark img { object-fit: contain }
.text-button { min-height: 44px; padding: 6px 12px; color: var(--blue-dark); border: 0; background: transparent; border-radius: 8px; font-weight: 680 }
.text-button:hover { background: #eaf0fd }
.login { min-height: 100svh; display: grid; justify-items: center; align-items: start; padding: clamp(58px, 16svh, 148px) 24px 30px; background: #fff }
.login-card { width: min(100%, 380px) }
.login-logo { display: block; width: 124px; height: auto; margin: 0 auto 28px; object-fit: contain }
.login h1 { font-size: clamp(29px, 7vw, 38px); line-height: 1.1; letter-spacing: -.046em; text-align: center; text-wrap: balance }
.login-card > p { color: var(--muted); margin: 11px 0 29px; text-align: center }
.login form { display: grid; gap: 10px }
.login label { font-weight: 700; font-size: .94rem }
.login input { width: 100%; min-height: 55px; color: var(--ink); background: #fff; padding: 10px 14px; border: 1px solid #aebbd4; border-radius: 12px; text-align: center; font-size: 1.32rem; letter-spacing: .35em }
.login .primary { min-height: 52px }
#access-error { color: #a42929; font-size: .88rem; min-height: 1.35em }
.primary, .outline { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 15px; border-radius: 10px; font-weight: 690; text-align: center; text-decoration: none }
.primary { color: #fff; background: var(--blue); border: 1px solid transparent }
.primary:hover { background: var(--blue-dark) }
.outline { color: var(--blue-dark); background: #fff; border: 1px solid #bbc9ea }
.outline:hover { background: #edf2ff }
.hero { padding: clamp(25px, 5vw, 46px) 0 18px }
.clinic-label { color: var(--blue-dark); font-weight: 720; font-size: .86rem; margin-bottom: 5px }
.hero h1 { font-size: clamp(29px, 6vw, 49px); letter-spacing: -.052em; line-height: 1.06 }
.profile { display: flex; flex-wrap: wrap; gap: 8px 25px; margin: 14px 0 20px }
.profile dt { color: var(--muted); font-size: .76rem }
.profile dd { font-size: .89rem; font-weight: 670 }
.search-label { display: block; font-size: .95rem; font-weight: 720; margin-bottom: 7px }
.searchbox { display: flex; width: 100%; border: 1px solid #adbddb; border-radius: 14px; align-items: center; gap: 9px; color: var(--blue); padding: 4px 5px 4px 12px }
.searchbox:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px #e1eaff }
.searchbox input { flex: 1; width: 100%; min-width: 0; height: 46px; background: #fff; border: 0; color: var(--ink); outline: none; padding: 0; font-size: 16px }
.searchbox input::placeholder { color: #607089 }
.searchbox .primary { min-height: 44px; padding-inline: 13px; font-size: .88rem }
.live-suggestions { border: 1px solid var(--line); border-radius: 13px; margin-top: 8px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px #1929460c }
.live-suggestions h2 { font-size: .8rem; color: var(--muted); padding: 10px 13px 5px }
.live-suggestions ul { margin: 0; padding: 0 6px 6px; list-style: none }
.suggestion { min-height: 47px; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 12px; text-align: left; border: 0; border-radius: 8px; background: #fff; color: var(--ink); padding: 8px }
.suggestion:hover, .suggestion:focus-visible { background: #eef3ff }
.suggestion-name { font-weight: 680; font-size: .9rem }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.tabs { display: flex; gap: 15px; margin-bottom: 23px; border-bottom: 1px solid var(--line) }
.tabs button { border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: .93rem; font-weight: 700; background: transparent; min-height: 46px; padding: 7px 8px }
.tabs button[aria-pressed=true] { color: var(--blue-dark); border-bottom-color: var(--blue) }
.topic-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 27px }
.topic { min-height: 63px; display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-size: .87rem; font-weight: 690; line-height: 1.2 }
.topic:hover { border-color: #9cb3ef; background: #f7f9ff }
.topic-icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #edf2ff; color: var(--blue-dark) }
.topic-icon svg { width: 18px; height: 18px }
#results-title, #topic-heading { scroll-margin-top: 18px }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px }
.section-heading h2 { font-size: clamp(21px, 4vw, 27px); line-height: 1.14; letter-spacing: -.045em }
.section-heading p { font-size: .88rem; color: var(--muted) }
.case-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px }
.case { display: flex; text-align: left; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff }
.case:hover { border-color: #8da5ef; background: #fbfcff }
.case-icon { flex: 0 0 44px; min-height: 44px; display: grid; place-items: center; border-radius: 11px; background: #e9effe; color: var(--blue-dark) }
svg { width: 20px; height: 20px; display: block }
.case-title { display: block; font-size: .97rem; font-weight: 730; line-height: 1.3; letter-spacing: -.018em }
.tag { color: var(--blue-dark); font-size: .78rem; font-weight: 680 }
.empty { color: var(--muted); grid-column: 1 / -1; padding: 16px; border: 1px solid var(--line); background: white; border-radius: 12px }
dialog { width: min(calc(100% - 24px), 580px); max-height: min(90dvh, 850px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 80px #101a3340 }
dialog::backdrop { background: #101a33aa }
body:has(dialog[open]) { overflow: hidden }
.dialog-inner { padding: clamp(17px, 4vw, 29px) }
.dialog-top { display: flex; justify-content: space-between; align-items: center }
.dialog-inner h2 { font-size: clamp(23px, 5vw, 32px); line-height: 1.12; letter-spacing: -.04em }
.dialog-inner h3 { font-size: .95rem; margin: 17px 0 7px }
.dialog-inner p { color: #35415b }
blockquote { color: #162956; padding: 13px 14px; background: #eef3ff; border-left: 3px solid #6e8af0; border-radius: 4px 10px 10px 4px; overflow-wrap: anywhere }
#copy-reply { margin-top: 11px }
.copy-status { font-size: .82rem; min-height: 1.55em }
#go-to-source { margin-top: 13px }
.chapters { display: grid; gap: 10px }
details { border: 1px solid var(--line); border-radius: 12px; background: white }
summary { min-height: 48px; padding: 12px 14px; cursor: pointer; color: var(--ink); font-weight: 730 }
.chapter-body { padding: 0 15px 14px }
.excerpt { padding: 12px 0; scroll-margin-top: 12px }
.excerpt + .excerpt { border-top: 1px solid var(--line) }
.excerpt h3 { font-size: 1.08rem; margin: 0 0 6px }
.paragraph + .paragraph { margin-top: 10px }
.paragraph { color: #35415b; white-space: pre-line }
footer { padding: 29px 0 33px; color: var(--muted); font-size: .82rem }
footer span { margin-inline: 5px }
@media (max-width: 610px) {
  .wrap { width: calc(100% - 32px) }
  .case-grid { grid-template-columns: 1fr }
  .top-inner { min-height: 60px }
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .tabs { margin-bottom: 21px }
}
