.md-patient { color:#172e53; }
.md-patient .mx-h2 { margin:0 0 clamp(20px,2vw,30px); }
.innerpage > .md-patient--heading { margin-block:clamp(56px,10vw,140px) 0; padding:0; }
.innerpage > .md-patient--heading + .md-patient--quotes { margin-block-start:0; }
.md-patient__lead { margin:0 0 20px; color:#435976; }
.md-patient__gallery, .md-patient__quotes, .md-patient__track {
    --cols:3; --gap:clamp(14px,1.5vw,22px);
    display:grid; gap:var(--gap); margin:0; padding:0; list-style:none;
    grid-template-columns:repeat(var(--cols),minmax(0,1fr));
}
.md-patient li { min-width:0; }
.md-patient__gallery a, .md-patient__movie {
    display:block; position:relative; overflow:hidden; border:1px solid #e9e9e9; border-radius:18px;
    color:#172e53; text-decoration:none; background:white;
}
.md-patient__gallery a { padding:8px; aspect-ratio:4/3; }
.md-patient__gallery img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.md-patient__zoom, .md-patient__play {
    position:absolute; display:grid; place-items:center; border-radius:50%; background:white; color:var(--md-accent);
}
.md-patient__zoom { right:14px; bottom:14px; width:36px; height:36px; border:1px solid #e9e9e9; }
.md-patient__zoom svg {
    display:block; width:22px; height:22px; fill:none; stroke:currentColor;
    stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
.md-quotes__frame { position:relative; }
.md-patient__quotes {
    position:relative; grid-template-columns:none; grid-auto-flow:column;
    grid-auto-columns:calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory;
}
.md-quotes__frame:has(.md-quotes__prev:not([hidden])) { padding-inline:clamp(38px, 4vw, 58px); }
.md-quotes__frame:has(.md-quotes__prev:not([hidden])) .md-patient__quotes { scrollbar-width:none; }
.md-patient__quotes:focus-visible { outline:2px solid var(--md-accent); outline-offset:2px; }
.md-patient__quotes li { display:flex; scroll-snap-align:start; }
.md-patient__quotes figure {
    box-sizing:border-box; width:100%; min-width:0; margin:0; padding:clamp(18px,2.1vw,30px);
    border-radius:18px; border:1px solid #e9e9e9; color:var(--quote-ink); background:var(--quote-bg);
    display:flex; flex-direction:column; gap:18px; overflow-wrap:anywhere;
}
.md-quotes__header, .md-patient__quotes figcaption {
    display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:6px 12px;
}
.md-quotes__header { align-items:center; min-height:22px; font:600 14px/1.45 var(--md-site-font); }
.md-quotes__rating { display:inline-flex; gap:2px; margin-inline-start:auto; }
.md-quotes__rating svg { width:17px; height:17px; stroke:var(--quote-ink); stroke-width:.9; stroke-linejoin:round; }
.md-patient__quotes blockquote { margin:0; color:inherit; font:400 15px/26px var(--md-site-font); }
.md-patient__quotes blockquote p { margin:0; font:inherit; color:inherit; }
.md-patient__quotes blockquote p + p { margin-top:.65em; }
.md-patient__quotes figcaption { margin-top:auto; padding-top:12px; border-top:1px solid color-mix(in srgb,currentColor 22%, transparent); font:600 16px/1.5 var(--md-site-font); }
.md-patient__quotes time { font-size:14px; font-weight:400; font-variant-numeric:tabular-nums; }
.md-quotes__prev,.md-quotes__next {
    position:absolute; top:50%; transform:translateY(-50%); display:grid; place-items:center;
    width:clamp(34px,3.8vw,44px); height:44px; padding:0; background:#fff; color:var(--md-accent);
    border:1px solid #e9e9e9; border-radius:8px; cursor:pointer;
}
.md-quotes__prev { inset-inline-start:0; }
.md-quotes__next { inset-inline-end:0; }
.md-quotes__prev .i,.md-quotes__next .i { width:20px; height:20px; }
.md-quotes__prev .i { transform:rotate(180deg); }
.md-quotes__frame button[aria-disabled="true"] { opacity:.45; cursor:default; }
.md-quotes__frame button[aria-disabled="false"]:hover { border-color:currentColor; }
.md-quotes__dots { display:flex; flex-wrap:wrap; justify-content:center; margin-top:12px; }
.md-quotes__dots button { display:grid; place-items:center; width:28px; height:36px; border:0; padding:0; background:transparent; color:var(--md-accent); cursor:pointer; }
.md-quotes__dots button::after { content:""; width:8px; height:8px; border:1px solid currentColor; border-radius:50%; }
.md-quotes__dots button[aria-current="true"]::after { background:currentColor; }
.md-patient--quotes [hidden] { display:none; }
.md-patient__track > li[hidden] { display:none; }
.md-patient__preview { display:block; position:relative; aspect-ratio:16/9; background:#172e53; }
.md-patient__preview img { width:100%; height:100%; display:block; object-fit:contain; }
.md-patient__play { inset:50% auto auto 50%; transform:translate(-50%,-50%); width:54px; height:54px; }
.md-patient__play::after { content:""; margin-left:3px; border:solid transparent; border-width:9px 0 9px 15px; border-left-color:currentColor; }
.md-patient__caption { display:block; padding:14px 18px; font:600 16px/1.4 var(--md-site-font); }
.md-patient__nav { display:flex; justify-content:center; margin-top:24px; overflow-anchor:none; }
.md-patient__nav[hidden] { display:none; }
.md-patient__more {
    display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px; padding:10px 22px;
    border:1px solid var(--md-accent); border-radius:8px; color:var(--md-accent); background:white; font:570 16px/1.4 var(--md-site-font); cursor:pointer;
}
.md-patient__more .i { width:16px; height:16px; }
.md-media-dialog button {
    display:inline-grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #e9e9e9;
    background:white; border-radius:50%; color:var(--md-accent); font:400 23px/1 var(--md-site-font); cursor:pointer;
}
.md-media-dialog button:disabled { opacity:.43; cursor:default; }
.md-patient a:focus-visible, .md-patient button:focus-visible, .md-media-dialog button:focus-visible { outline:2px solid var(--md-accent); outline-offset:-3px; }
.md-media-dialog {
    padding:clamp(12px,1.5vw,24px); width:min(960px,94vw); max-width:95vw; max-height:94vh; max-height:94dvh;
    margin:auto; border:1px solid #e9e9e9; border-radius:18px; background:white; color:#172e53;
}
.md-media-dialog::backdrop { background:rgba(10,23,47,.77); }
.md-media-dialog__bar { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.md-media-dialog__bar [data-close] { margin-left:auto; }
.md-media-dialog__bar button[hidden] { display:none; }
.md-media-dialog__stage img, .md-media-dialog__stage video { width:100%; height:min(68vh,640px); height:min(68dvh,640px); display:block; object-fit:contain; }
.md-media-dialog__stage video { background:#101c31; }
@media (hover:hover) {
    .md-patient__gallery a:hover, .md-patient__movie:hover, .md-media-dialog button:enabled:hover { border-color:var(--md-accent); }
    .md-patient__more:hover { background:var(--md-accent); color:white; }
    .md-patient__movie:hover .md-patient__play { background:var(--md-accent); color:white; }
}
@media (prefers-reduced-motion:no-preference) {
    .md-patient__gallery a, .md-patient__movie, .md-patient__play { transition:background-color .18s,color .18s,border-color .18s; }
}
@media (max-width:1023px) {
    .md-patient__gallery,.md-patient__track,.md-patient__quotes { --cols:2; }
}
@media (max-width:620px) {
    .md-patient__gallery,.md-patient__track,.md-patient__quotes { --cols:1; }
}
