/* Physician practice resources, including responsive artwork masks. */
html body :is(#resources, #evidence).pr-concept {
  --ink: #11364a; --body: #394f5d; --muted: #526b77; --line: #bdcdd0; --accent: #175f72; --serif: var(--zt-font-display,'EB Garamond',Georgia,serif); --sans: var(--zt-font-body,Inter,Arial,sans-serif); background: rgb(245, 247, 246); color: var(--ink); padding: clamp(42px, 5.6vw, 86px) 0px; overflow: visible; isolation: isolate;
  & .pr-wrap { width: min(1240px, 100% - clamp(40px, 10vw, 144px)); margin: 0px auto; }
  & :is(.pr-heading, .pr-copy, .pr-entry) { min-width: 0px; }
  & :is(p, h2, h3, figure) { margin: 0px; padding: 0px; max-width: none; }
  & h2 { letter-spacing: -0.044em; color: var(--ink); text-wrap: balance; font: 400 clamp(44px,4.7vw,70px)/1 var(--serif) !important; }
  & h2 em { color: var(--accent); font: italic 400 1em/1 var(--serif); }
  & h3, & .pr-publication-title { font: 400 clamp(27px,2.25vw,35px)/1.05 var(--serif); letter-spacing: -0.027em; color: var(--ink); text-wrap: balance; }
  & p { font: 400 16px/1.58 var(--sans); color: var(--body); }
  & .pr-label { display: block; font: 650 11px/1.45 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
  & .pr-heading .pr-label { margin-bottom: 18px; }
  & .pr-intro { max-width: 49ch; margin-top: 17px; }
  & .pr-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content; max-width: 100%; margin: 8px 0px 0px; padding: 3px 0px; color: var(--accent); font: 600 14px/1.35 var(--sans); text-decoration: underline color-mix(in srgb, currentcolor 55%, transparent 45%); text-underline-offset: 5px; border: 0px; background: none; }
  & .pr-link:hover { text-decoration-color: currentcolor; }
  & .pr-packet { border-radius: 99px; background: rgb(18, 62, 83); color: white; padding: 11px 20px; text-decoration: none; min-height: 48px; margin-top: 22px; }
  & .resource-packet-label { font: inherit; color: inherit; text-decoration: inherit; }
  & .pr-link [aria-hidden] { color: inherit; font-size: 1.07em; }
  & :is(button, a, summary):focus-visible { outline: rgb(22, 130, 154) solid 3px; outline-offset: 4px; }
  & .pr-copy > p { margin-top: 12px; }
  & .pr-note, & figcaption { font: 400 13px/1.5 var(--sans); color: var(--muted); }
  & .pr-note { margin-top: 25px; }
  & .pr-entry > img { display: block; width: 100%; height: auto; object-fit: cover; }
  & .pr-publications img { display: block; width: 100%; height: auto; }
  & .pr-publications figcaption { position: static; background: transparent; padding: 8px 0px 0px; }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
  & .pr-link [aria-hidden] { transition: transform 150ms ease-out; }
  & .pr-link:hover [aria-hidden] { transform: translate(2px, -2px); }
}
  @media (max-width: 600px) {
  & .pr-wrap { width: calc(100% - 40px); }
  & h2 { font-size: clamp(38px, 10vw, 48px) !important; }
  & .pr-heading .pr-label { margin-bottom: 13px; }
}
}

html body :is(#evidence, #resources):is(.pr-evidence-e, .pr-evidence-f, .pr-resources-e, .pr-resources-f) {
  & h2 { letter-spacing: -0.054em; font: 480 clamp(40px,4vw,65px)/1.035 var(--sans) !important; }
  & h2 em { display: block; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-weight: 400; color: var(--accent); }
  & h3 { font: 520 clamp(21px,1.8vw,29px)/1.15 var(--sans); letter-spacing: -0.035em; }
  & .pr-heading .pr-label, & .pr-entry .pr-label { font-size: 12px; letter-spacing: 0.1em; }
  & .pr-visual img { display: block; max-width: 100%; }
  & .pr-entry .pr-label { margin-bottom: 12px; }
  & .pr-wrap { position: relative; }
  @media (max-width: 700px) {
  & h2 { font-size: clamp(35px, 8vw, 46px) !important; }
}
}

html body #resources.pr-resources-f {
  background: rgb(242, 245, 246); --accent: #155f76; padding-top: 0px;
  & .pr-wrap { width: 100%; display: grid; grid-template-columns: 100%; }
  & .pr-heading, & .pr-visual { grid-area: 1 / 1; }
  & .pr-visual { overflow: hidden; }
  & .pr-visual picture, & .pr-visual img { width: 100%; height: 100%; display: block; }
  & .pr-visual img { object-fit: cover; object-position: center center; }
  & .pr-heading { position: relative; z-index: 1; place-self: center; width: min(1240px, 90%); padding: 48px 0px; }
  & .pr-heading > * { max-width: 38%; }
  & .pr-heading h2 { max-width: 42%; }
  & .pr-entries, & .pr-note { width: min(1240px, 90%); margin-inline: auto; }
  & .pr-entries { padding-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: clamp(24px, 3.5vw, 55px); }
  & .pr-entry { border-top: 2px solid rgb(116, 149, 159); padding-top: 18px; }
  @media (max-width: 800px) {
  & .pr-wrap { display: flex; flex-direction: column; }
  & .pr-heading { padding: 36px 0px 24px; }
  & .pr-heading > *, & .pr-heading h2 { max-width: 100%; }
  & .pr-visual img { height: auto; max-height: 400px; object-fit: contain; background: rgb(212, 223, 230); }
  & .pr-entries { grid-template-columns: 1fr; gap: 14px; }
  & .pr-entry { border-width: 1px; }
  & .pr-note { margin-top: 20px; }
}
}

html body #resources.pr-resources-g {
  background: rgb(237, 242, 243);
  & .pr-entries { position: relative; z-index: 1; margin-top: -24px; padding: 0px; gap: 0px; background: white; border: 1px solid rgb(190, 208, 212); border-radius: 7px; box-shadow: rgba(23, 55, 71, 0.05) 0px 10px 24px; overflow: hidden; }
  & .pr-entry { border: 0px; padding: clamp(22px, 2.3vw, 36px); }
  & .pr-entry + .pr-entry { border-left: 1px solid rgb(204, 217, 219); }
  & .pr-copy { height: 100%; display: flex; flex-direction: column; align-items: start; }
  & .pr-copy p { margin-bottom: 12px; }
  & .pr-copy a { margin-top: auto; }
  @media (max-width: 800px) {
  & .pr-entries { margin-top: 18px; }
  & .pr-entry + .pr-entry { border-left: 0px; border-top: 1px solid rgb(204, 217, 219); }
}
}

html body #resources.pr-resources-h {
  padding-bottom: clamp(22px, 2.3vw, 36px);
  & .pr-heading { padding: 28px 0px 38px; }
  & .pr-heading .pr-label { margin-bottom: 9px; }
  & .pr-heading h2 { font-size: clamp(38px, 3.7vw, 56px) !important; }
  & .pr-intro { margin-top: 10px; }
  & .pr-packet { margin-top: 14px; }
  & .pr-visual { position: relative; min-height: clamp(310px, 27vw, 424px); }
  & .pr-visual picture { position: absolute; inset: 0px; }
  & .pr-visual img { object-position: center 57%; }
  & .pr-visual::after { position: absolute; content: ""; inset: 0px; background: linear-gradient(90deg, rgba(239, 245, 248, 0.937) 0%, rgba(239, 245, 248, 0.88) 26%, rgba(239, 245, 248, 0.4) 43%, transparent 57%); }
  & .pr-entry { padding: 18px clamp(16px, 2vw, 30px) 10px; }
  & .pr-copy p { margin-block: 6px 3px; }
  & .pr-note { margin-top: 12px; }
  @media (max-width: 800px) {
  & .pr-heading { padding: 24px 0px 16px; }
  & .pr-heading h2 { max-width: none; font-size: clamp(34px, 6vw, 42px) !important; }
  & .pr-heading br { display: none; }
  & .pr-heading h2 em { display: inline; }
  & .pr-heading h2 em::before { content: " "; }
  & .pr-visual { min-height: 0px; }
  & .pr-visual picture { position: static; }
  & .pr-visual img { height: auto; max-height: 220px; object-fit: cover; object-position: center 50%; }
  & .pr-visual::after { display: none; }
  & .pr-entries { margin-top: 0px; border-radius: 0px 0px 6px 6px; }
  & .pr-entry { padding: 14px 16px 6px; }
}
}

html body #resources.pr-finish {
  & .pr-heading .pr-intro { text-wrap: pretty; max-width: min(39%, 44ch); }
  & .pr-heading .pr-packet { gap: 18px; }
  & .pr-entries { box-shadow: rgba(23, 55, 71, 0.043) 0px 5px 16px; }
  & .pr-entry { position: relative; }
  & .pr-entry + .pr-entry { border-left: 0px; }
  & .pr-entry + .pr-entry::before { content: ""; position: absolute; inset: 18px auto 18px 0px; width: 1px; background: rgb(204, 218, 223); }
  & .pr-copy p { text-wrap: pretty; max-width: 38ch; }
  & .pr-copy a { text-decoration: underline 1px rgb(136, 173, 181); text-underline-offset: 4px; }
  & .pr-copy a:hover { text-decoration-color: currentcolor; }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
  & .pr-link:hover [aria-hidden] { transform: translateY(2px); }
}
  @media (max-width: 800px) {
  & .pr-heading .pr-intro { max-width: 46ch; }
  & .pr-entry + .pr-entry::before { display: none; }
}
}

html body #resources:is(.pr-resources-cloth, .pr-resources-consult, .pr-resources-vellum, .pr-resources-refined, .pr-resources-overhead, .pr-resources-standing, .pr-resources-deskfinish, .pr-resources-peer, .pr-resources-fade) {
  --packet-surface: #edf2f3; background: var(--packet-surface);
  & .pr-visual, & .pr-visual img { background: var(--packet-surface); }
  & .pr-visual::after { display: none; }
  @media (min-width: 801px) {
  & .pr-visual img { object-fit: contain; object-position: right center; }
}
}

html body #resources:is(.pr-resources-deskfinish, .pr-resources-peer, .pr-resources-fade) {
  & .pr-entries { border-color: rgb(201, 213, 216); box-shadow: rgba(23, 55, 71, 0.035) 0px 3px 12px; }
  & .pr-entry { padding-block: 20px 12px; }
  & .pr-entry .pr-link { text-underline-offset: 4px; }
  & .pr-heading .pr-intro { text-wrap: pretty; }
  @media (max-width: 800px) {
  & .pr-entry { padding-block: 16px 9px; }
  & .pr-visual img { mask-image: linear-gradient(transparent, black 10%); }
}
}

/* The desktop picture fills the artwork panel. Fit the packet to both panel
   dimensions even before its intrinsic size is available. */
@media (min-width: 1101px) {
  html body #resources.pr-resources-fade .pr-visual picture { container-type: size; }
  html body #resources.pr-resources-fade .pr-visual picture > img {
    width: min(69%, calc(100cqh * 1800 / 749), 1800px);
  }
}

@media (min-width: 801px) {
html body #resources.pr-resources-fade .pr-visual img { position: absolute; right: 0px; top: 50%; transform: translateY(-50%); width: auto; max-width: 69%; height: auto; max-height: 100%; mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.133) 6%, rgba(0, 0, 0, 0.733) 16%, black 24%), linear-gradient(black 90%, transparent); mask-composite: intersect; }
}

@media (min-width: 801px) and (max-width: 1100px) {
html body #resources.pr-resources-fade .pr-visual img { mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.133) 8%, black 24%), linear-gradient(transparent, black 7%, black 91%, transparent); }
}

@media (max-width: 800px) {
html body #resources.pr-resources-fade .pr-visual img { mask-image: linear-gradient(transparent, black 9%, black 93%, transparent); }
}

html body #resources.pr-resources-fade:not(.pr-resources-ruled, .pr-resources-porcelain) {
  & .pr-entries { background: linear-gradient(rgb(255, 255, 255) 65%, rgb(249, 251, 252)); border-color: rgb(188, 206, 213); box-shadow: rgba(16, 54, 79, 0.03) 0px 2px 4px, rgba(16, 54, 79, 0.14) 0px 7px 20px -10px; }
  & .pr-copy h3 { color: rgb(16, 54, 79); letter-spacing: -0.025em; }
  & .pr-copy p { margin-block: 8px 5px; color: rgb(61, 86, 106); }
  & .pr-entry + .pr-entry::before { background: linear-gradient(transparent, rgb(196, 212, 219) 12%, rgb(196, 212, 219) 88%, transparent); }
  & .pr-copy .pr-link { gap: 8px; color: rgb(18, 90, 112); text-decoration-line: none; text-decoration-color: currentcolor; text-underline-offset: 4px; }
  & .pr-copy .pr-link [aria-hidden] { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgb(234, 242, 244); font-size: 13px; line-height: 1; }
  & .pr-packet { background: linear-gradient(160deg, rgb(22, 70, 91), rgb(11, 48, 69)); box-shadow: rgba(255, 255, 255, 0.14) 0px 1px 0px inset, rgba(16, 54, 79, 0.086) 0px 2px 4px; }
  & .pr-link:focus-visible { outline: rgb(23, 100, 119) solid 2px; outline-offset: 3px; }
  & .pr-copy .pr-link:focus-visible { text-decoration-line: underline; }
  @media (hover: hover) {
  & .pr-copy .pr-link:hover { text-decoration-line: underline; }
  & .pr-copy .pr-link:hover [aria-hidden] { background: rgb(217, 233, 237); }
}
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
  & .pr-copy .pr-link:hover [aria-hidden] { transform: translateX(2px); }
}
}

html body #resources.pr-resources-fade:not(.pr-resources-ruled, .pr-resources-porcelain) {
  @media (max-width: 900px) {
  & .pr-entries { border-radius: 8px; grid-template-columns: 1fr; gap: 0px; }
  & .pr-entry + .pr-entry { border: 0px; }
  & .pr-entry + .pr-entry::before { display: block; inset: 0px 18px auto; width: auto; height: 1px; background: linear-gradient(90deg, rgb(203, 218, 223), rgb(222, 231, 234) 78%, transparent); }
}
  @media (max-width: 599px) {
  & .pr-heading { padding: 26px 0px 0px; }
  & .pr-heading h2 { text-wrap: balance; }
  & .pr-visual img { max-height: none; mask-image: linear-gradient(transparent, black 19%, black 85%, transparent); }
  & .pr-entries { margin-top: -8px; }
  & .pr-entry { padding: 17px 18px 6px; }
  & .pr-copy p { margin-block: 6px 1px; line-height: 1.5; }
  & .pr-copy .pr-link { width: 100%; justify-content: space-between; }
}
  @media (min-width: 600px) and (max-width: 800px) {
  & .pr-wrap { display: grid; grid-template-columns: 100%; }
  & .pr-heading { align-self: start; padding: 25px 0px 30px; }
  & .pr-heading h2 { max-width: 100%; }
  & .pr-heading .pr-intro { max-width: 45%; }
  & .pr-visual { align-self: end; padding-top: clamp(92px, 13vw, 105px); margin-bottom: 12px; }
  & .pr-visual picture { width: 55%; margin-left: auto; }
  & .pr-visual img { max-height: none; mask-image: linear-gradient(90deg, transparent, black 21%), linear-gradient(transparent, black 12%, black 87%, transparent); mask-composite: intersect; }
}
  @media (min-width: 600px) and (max-width: 900px) {
  & .pr-copy { display: grid; grid-template-columns: minmax(0px, 1fr) max-content; align-items: center; column-gap: clamp(16px, 3vw, 24px); }
  & .pr-copy h3, & .pr-copy p { grid-column: 1; }
  & .pr-copy .pr-link { grid-area: 1 / 2 / 3; margin: 0px; }
  & .pr-entry { padding: 16px 20px; }
  & .pr-copy p { margin: 5px 0px 0px; }
  & .pr-entries { margin-top: 0px; }
}
  @media (min-width: 1700px) {
  & .pr-visual img { right: max(0px, 50% - 850px); mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.133) 6%, rgba(0, 0, 0, 0.733) 16%, black 24%, black 92%, transparent), linear-gradient(black 90%, transparent); }
}
}

/* Keep the recipient's hand in the image column, clear of the text at tablet widths. */
@media (min-width: 801px) and (max-width: 1100px) {
  html[data-public-audience="physician"] body #resources.pr-resources-fade {
    .pr-wrap {
      grid-template-columns: minmax(0, .94fr) minmax(0, 1.22fr);
      align-items: center;
      gap: 0 22px;
      padding: 24px 0 0 40px;
    }
    .pr-heading {
      grid-area: 1 / 1;
      width: auto;
      justify-self: stretch;
      padding: 12px 0 22px;
    }
    .pr-heading > *, .pr-heading .pr-intro, .pr-heading h2 { max-width: none; }
    .pr-visual { grid-area: 1 / 2; min-height: 0; margin: 0; }
    .pr-visual picture { position: static; }
    .pr-visual img {
      position: static;
      transform: none;
      width: 100%;
      max-width: none;
      height: auto;
      aspect-ratio: 1.96;
      object-fit: cover;
      object-position: 57% center;
      mask-image: linear-gradient(90deg, transparent, black 8%), linear-gradient(transparent, black 7%, black 93%, transparent);
    }
    .pr-entries, .pr-note { grid-column: 1 / -1; width: calc(100% - 40px); margin-left: 0; }
    .pr-entries { margin-top: 12px; }
  }
}

/* WebKit can repaint a moving multi-mask unevenly. Keep the fade and crop
   on the picture frame, and let the scroll timeline scale only the photo. */
@supports (background-image: -webkit-named-image(i)) {
  html[data-public-audience="physician"] body #resources.pr-resources-fade .pr-visual {
    picture {
      overflow: clip;
      mask-image: linear-gradient(transparent, black 19%, black 85%, transparent);
      mask-composite: intersect;
    }
    picture > img { mask-image: none; }
    @media (min-width: 600px) and (max-width: 800px) {
      picture { mask-image: linear-gradient(90deg, transparent, black 21%), linear-gradient(transparent, black 12%, black 87%, transparent); }
    }
    @media (min-width: 801px) and (max-width: 1100px) {
      picture { mask-image: linear-gradient(90deg, transparent, black 8%), linear-gradient(transparent, black 7%, black 93%, transparent); }
    }
    @media (min-width: 1101px) {
      container-type: size;
      picture {
        container-type: normal;
        inset: 0 max(0px, 50% - 850px) 0 auto;
        margin-block: auto;
        width: min(69%, calc(100cqh * 1800 / 749), 1800px);
        height: auto;
        aspect-ratio: 1800 / 749;
        mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.133) 6%, rgba(0,0,0,.733) 16%, black 24%), linear-gradient(black 90%, transparent);
      }
      picture > img {
        position: static;
        width: 100%;
        height: 100%;
        max-width: none;
        transform: none;
      }
    }
    @media (min-width: 1700px) {
      picture { mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.133) 6%, rgba(0,0,0,.733) 16%, black 24%, black 92%, transparent), linear-gradient(black 90%, transparent); }
    }
  }
}
