.dh-drawer {
  --drawer-wine: #64130e;
  --drawer-ink: #302824;
  --drawer-faded: #62574d;
  --drawer-paper: #fffcf7;
  --drawer-photo: url('/assets/photos/davenport-drawer.webp');
  color: var(--drawer-ink);
  background: var(--drawer-paper);
  font-family: Arial, Helvetica, sans-serif;
}
.dh-drawer *, .dh-drawer *::before, .dh-drawer *::after { box-sizing: border-box; }
.drawer-hero { background: #f6f1e9; border-bottom: 1px solid #dbd1c5; }
.drawer-inner {
  max-width: 1420px;
  margin: auto;
  padding: clamp(32px, 5.4vw, 80px) clamp(22px, 4.3vw, 68px);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 4vw, 64px);
}
.drawer-breadcrumb, .drawer-secondary, .drawer-safety a {
  color: var(--drawer-wine); text-decoration-line: underline; text-underline-offset: .22em;
}
.drawer-breadcrumb { display: inline-block; font-size: .91rem; margin-bottom: clamp(20px, 2.3vw, 34px); }
.dh-drawer .drawer-copy h1 {
  color: #43100d; font: normal clamp(3rem, 5.5vw, 5.5rem)/.99 Georgia, 'Times New Roman', serif;
  margin: 0; max-width: 8.2em; letter-spacing: -.052em; text-wrap: balance;
}
.drawer-copy h1 em { color: #64130e; font-weight: 400; }
.drawer-lede { font: normal clamp(1.25rem, 1.85vw, 1.65rem)/1.35 Georgia, serif; max-width: 20em; margin: 1.25rem 0 .8rem; }
.drawer-instruction { max-width: 24em; font-size: 1rem; color: var(--drawer-faded); line-height: 1.55; margin: 0; }
.drawer-scene {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 3/2;
  background: #59422d; border-radius: 3px;
  box-shadow: 0 12px 30px -17px #3d281db0;
}
.drawer-still { position: absolute; inset: 0; }
.drawer-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.drawer-fixed-rail {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: var(--drawer-photo) center / 100% 100% no-repeat; clip-path: inset(0 0 94.6% 0);
}
.drawer-hotspot {
  position: absolute; display: flex; align-items: end; justify-content: center;
  padding: 0; text-decoration: none; border: 0; border-radius: 4px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.drawer-hotspot--nail-clippers { left: 12%; top: 27%; width: 27%; height: 29%; }
.drawer-hotspot--knee-support { left: 48.5%; top: 12%; width: 37%; height: 52%; }
.drawer-hotspot--heel-grips { left: 22%; top: 58%; width: 32%; height: 25%; }
.drawer-label {
  display: inline-flex; gap: .44em; align-items: center; justify-content: center; white-space: nowrap;
  font: 700 clamp(.875rem,1.15vw,1rem)/1.15 Arial, Helvetica, sans-serif; letter-spacing: 0;
  color: #312723; background: #fffdf7f7; border: 1px solid #f8efe7; border-radius: 3px;
  padding: .48em .63em; box-shadow: 0 1px 5px #28190b50; transition: background .15s, color .15s;
}
.drawer-label i { display: block; border: 1.5px solid currentColor; border-radius: 50%; width: .56em; height: .56em; }
.drawer-hotspot:focus-visible, .drawer-close:focus-visible, .drawer-action:focus-visible,
.drawer-secondary:focus-visible { outline: 3px solid #cf7b10; outline-offset: 3px; }
.drawer-hotspot:focus-visible .drawer-label { background: var(--drawer-wine); color: white; border-color: var(--drawer-wine); }
@media (hover: hover) {
  .drawer-hotspot:hover .drawer-label { background: var(--drawer-wine); color: white; border-color: var(--drawer-wine); }
}
@media (prefers-reduced-motion: no-preference) {
  .dh-drawer.is-ready .drawer-still { animation: drawer-settle .65s cubic-bezier(.2,.65,.27,1) both; }
  @keyframes drawer-settle { from { transform: translateY(-2.4%) scale(1.05); } to { transform: none; } }
}
.drawer-cards { max-width: 760px; margin: auto; }
.drawer-cards:not(:empty) { padding: 30px 20px; }
.is-ready .drawer-cards { display: none; }
.drawer-card { scroll-margin-top: 90px; margin: 0; background: var(--drawer-paper); }
.drawer-cards .drawer-card + .drawer-card { border-top: 1px solid #ded4c8; margin-top: 1rem; }
.drawer-card-body { padding: clamp(22px, 3.2vw, 42px); }
.drawer-item-name { color: var(--drawer-wine); font-size: .93rem; font-weight: bold; margin: 0 0 .55rem; }
.dh-drawer .drawer-card h2 { font: normal clamp(1.9rem,3vw,2.65rem)/1.08 Georgia,serif; color: #43100d; margin: 0 0 1rem; letter-spacing: -.035em; }
.drawer-answer, .drawer-note p { font-size: 1rem; line-height: 1.55; margin: 0; }
.drawer-note { border-left: 3px solid #aa8171; margin: 1.15rem 0; padding: .12rem 0 .12rem 1rem; }
.dh-drawer .drawer-note h3 { margin: 0 0 .33rem; color: var(--drawer-ink); font: bold 1rem/1.4 Arial, sans-serif; }
.drawer-safety { font-size: .875rem; line-height: 1.45; margin: .65rem 0 1rem; color: #5b5047; }
.drawer-answer + .drawer-action { margin-top: .85rem; }
.drawer-knee-tool { border-top: 1px solid #ded4c8; padding-top: 1rem; margin-block: 1rem; }
.drawer-knee-choices { margin: 0; padding: 0; min-width: 0; border: 0; }
.drawer-knee-choices legend, .drawer-made-note label { padding: 0; color: var(--drawer-ink); font: 700 1.05rem/1.4 Arial, sans-serif; }
.drawer-knee-choices p, .drawer-made-note p { margin: .25rem 0 .65rem; font: 400 .95rem/1.4 Arial, sans-serif; color: var(--drawer-faded); }
.drawer-directions, .drawer-note-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.drawer-directions label, .drawer-note-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .45rem .65rem; border: 1px solid #b6a89c; border-radius: 4px;
  color: var(--drawer-wine); background: var(--drawer-paper); font: 600 .9375rem/1.25 Arial, sans-serif; cursor: pointer;
}
.drawer-directions input { accent-color: var(--drawer-wine); margin: 0; width: 1rem; height: 1rem; }
.drawer-directions label:has(input:checked) { color: #43100d; background: #f4e5db; border-color: var(--drawer-wine); }
.drawer-made-note { margin-top: 1rem; }
.drawer-made-note textarea {
  display: block; width: 100%; resize: vertical; border: 1px solid #b6a89c; border-radius: 4px;
  min-height: 7rem; padding: .75rem; font: 400 1rem/1.5 Arial, sans-serif; color: var(--drawer-ink); background: white;
}
.drawer-note-actions { margin-top: .5rem; }
.drawer-note-status { color: var(--drawer-wine); font: 400 .9rem/1.4 Arial, sans-serif; margin: .55rem 0 0; }
.drawer-note-status:empty { margin: 0; }
.drawer-knee-tool :focus-visible { outline: 3px solid #b06b15; outline-offset: 2px; }
.drawer-knee-tool[hidden], .drawer-made-note[hidden], [data-knee-fallback][hidden] { display: none; }
.drawer-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 47px; padding: .75rem 1.05rem; background: var(--drawer-wine); color: white;
  border-radius: 4px; text-decoration: none; font: 700 1rem/1.35 Arial, sans-serif;
}
.drawer-action:hover, .drawer-action:focus-visible { color: white; background: #43100d; }
.drawer-secondary { display: block; width: fit-content; margin-top: .72rem; font: 400 .94rem/1.45 Arial, sans-serif; }
.drawer-dialog:not([open]) { display: none; }
.drawer-dialog {
  position: fixed; inset: 0; margin: auto; border: 0; padding: 0; color: var(--drawer-ink);
  background: var(--drawer-paper); width: min(565px, calc(100% - 32px)); max-height: min(90vh, 840px);
  max-height: min(90dvh, 840px); border-radius: 5px; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 15px 80px #190d0a40;
}
.drawer-dialog::backdrop { background: #211917ab; }
.dh-drawer-card-open {
  scroll-padding-bottom: var(--consent-offset, 0px);
}
/* Keep the strip measurable by the clinic's banner-positioning script.
   Visibility also removes its two links from keyboard navigation. */
.dh-drawer-card-open .mobile-actions { visibility: hidden; pointer-events: none; }
.dh-drawer-card-open #consent-banner { bottom: 0 !important; }
.drawer-dialog.drawer-dialog--inline {
  position: relative; inset: auto; margin: 1.5rem auto; max-height: none; overflow: visible;
  width: min(565px, calc(100% - 32px)); scroll-margin-top: 94px;
  border: 1px solid #d4c9bd; box-shadow: 0 6px 24px #4331271a;
}
.drawer-dialog--inline .drawer-close { top: 85px; }
.drawer-dialog-shell { position: relative; }
.drawer-close { position: sticky; z-index: 2; top: 12px; float: right; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin: 12px 12px -56px 0; padding: .35rem .8rem; font: 700 .9rem Arial,sans-serif; color: #352521; background: #fffdf9; border: 1px solid #d4c9bd; border-radius: 4px; box-shadow: 0 2px 8px #43312726; cursor: pointer; }
.drawer-close span { font-size: 1.35rem; font-weight: normal; line-height: 1; }
.drawer-card-photo { display: none; }
.drawer-dialog .drawer-card-photo { display: block; height: clamp(94px, 15vh, 140px); background-image: var(--drawer-photo); background-repeat: no-repeat; border-bottom: 1px solid #d5c8b4; }
.drawer-card--nail-clippers .drawer-card-photo { background-size: 164%; background-position: 17% 43%; }
.drawer-card--knee-support .drawer-card-photo { background-size: 145%; background-position: 91% 40%; }
.drawer-card--heel-grips .drawer-card-photo { background-size: 164%; background-position: 28% 72%; }
@media (max-width: 760px) {
  .drawer-inner { grid-template-columns: 1fr; padding: 27px max(16px, 4.8vw) 31px; gap: 20px; }
  .drawer-breadcrumb { margin: 0 0 12px; }
  .dh-drawer .drawer-copy h1 { max-width: 11em; font-size: clamp(2.5rem, 9.5vw, 3.8rem); }
  .drawer-lede { margin: .8rem 0 .4rem; max-width: 24em; font-size: 1.25rem; }
  .drawer-instruction { max-width: 36em; font-size: .96rem; }
  .drawer-label { font-size: .875rem; gap: .33em; padding: .42em .5em; }
  .drawer-hotspot--nail-clippers .drawer-label { transform: translateY(-6px); }
}
@media(max-width: 360px) {
  .drawer-label { gap: .24em; padding: .38em .35em; }
  .drawer-hotspot--nail-clippers { left: 8%; width: 32%; }
}
@media (max-width: 520px), (max-height: 680px) {
  .drawer-dialog .drawer-card--knee-support .drawer-card-photo { height: 62px; }
  .drawer-card--knee-support .drawer-card-body { padding: 18px; }
  .dh-drawer .drawer-card--knee-support h2 { font-size: clamp(1.65rem, 7vw, 2rem); margin-bottom: .65rem; }
  .drawer-card--knee-support .drawer-knee-tool { padding-top: .7rem; margin-block: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .dh-drawer * { scroll-behavior: auto; animation: none; transition: none; } }
