/* /home_finish.css */
.finish-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}.finish-resources{background:#f4f7f5}.finish-resources h2{max-width:750px}.finish-resource{display:block;background:white;border:1px solid #cfdfd8;border-radius:16px;padding:25px;color:#175671;text-decoration:none;scroll-margin-top:120px}.finish-resource>.icon{width:28px;height:28px;color:#356b57}.finish-resource h3{font-size:1.22rem;line-height:1.4;margin:16px 0 10px}.finish-resource p{font-size:1rem;line-height:1.65;color:#516775;margin:0}.finish-resource:hover{border-color:#44775d;background:#fcfdfa}.finish-resource:focus-visible{outline:3px solid #175671;outline-offset:4px}.finish-footer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;padding-block:35px;border-bottom:1px solid #cfdfd8}.finish-footer h2{font:700 1.1rem CabinetBody,Arial,sans-serif;color:#175671;margin:0 0 18px}.finish-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}.finish-footer a{font-size:.95rem;line-height:1.5;display:inline-block;padding-block:5px;color:#355969}.finish-footer a:hover{text-decoration:underline;text-underline-offset:4px}html[dir=rtl] .finish-footer h2{font-family:CabinetArabic,Tahoma,sans-serif}.site-header .language-switch .language-link{font-size:.875rem!important;min-height:44px;padding-inline:7px!important}.site-header .learn-menu-links{width:290px}.site-header #navigation>.learn-menu>summary{min-height:44px}.site-header #navigation>.learn-menu[open]>summary{color:#356b57}.hero-details{flex-wrap:wrap;gap:15px}@media(max-width:1000px){.finish-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finish-footer{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1240px){.site-header .learn-menu-links{width:auto}.site-header #navigation>.learn-menu>summary{padding:13px 14px}}@media(max-width:600px){.finish-resource-grid{grid-template-columns:1fr}.finish-resource{padding:22px}.finish-footer{gap:26px 18px}.finish-footer a{font-size:.9rem}.finish-footer h2{font-size:1rem}.site-header .language-switch .language-link{font-size:.8rem!important;padding-inline:5px!important}}@media print{.finish-footer{display:none}}

.finish-followup{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding:24px 28px;border:1px solid #b9ceca;border-radius:16px;background:#edf5f2}.finish-followup h3{margin:0 0 8px;color:#175671}.finish-followup p{margin:0;line-height:1.7}.finish-followup .button{flex-shrink:0}@media(max-width:650px){.finish-followup{align-items:stretch;flex-direction:column;padding:20px}.finish-followup .button{text-align:center}}

.finish-topic-shortcuts{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 28px}.finish-topic-shortcuts a{display:inline-flex;align-items:center;min-height:44px;padding:9px 16px;border:1px solid #b9d2c6;border-radius:24px;background:#fff;color:#103c55;font-size:.9375rem;font-weight:650;line-height:1.5}.finish-topic-shortcuts a:hover{background:#e8f3ec;text-decoration:underline}.finish-followup+.finish-followup{margin-top:16px}

.site-information-links{display:flex;flex-wrap:wrap;gap:8px 24px;padding-block:20px;border-bottom:1px solid #cfdfd8}.site-information-links a{display:inline-flex;align-items:center;min-height:44px;color:#355969;font-size:.95rem;line-height:1.5;text-underline-offset:4px}@media print{.site-information-links{display:none}}

/* /mobile-finish.css */
/* Shared viewport measurements keep controls and anchored headings reachable. */
.medical-figure .figure-guide{margin:14px 0 16px;border:1px solid #bfd4c9;border-radius:10px;background:#f1f7f4;color:#103c55;text-align:start}
.medical-figure .figure-guide>summary{min-height:44px;padding:12px;font-size:1rem;font-weight:700;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.medical-figure .figure-guide>p{padding:0 12px 14px;margin:0;font-size:1rem;line-height:1.75}
.figure-guide dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0;padding:0 12px 14px;gap:0 12px;font-size:.9375rem;line-height:1.6}
.figure-guide dt,.figure-guide dd{min-width:0;margin:0;padding:8px 0;border-top:1px solid #d4e2da;overflow-wrap:anywhere}
.figure-guide dt{font-weight:600;text-align:start}.figure-guide dd{color:#244b5b}
@media(max-width:420px){.figure-guide dl{display:block}.figure-guide dt{padding-bottom:2px}.figure-guide dd{border-top:0;padding-top:0}}
@media(forced-colors:active){.medical-figure .figure-guide{border-color:CanvasText;background:Canvas;color:CanvasText}.figure-guide dd{color:CanvasText}}
@media print{.medical-figure .figure-guide{background:white;border-color:#999;break-inside:avoid}.figure-guide summary{font-size:11pt}.figure-guide dl{font-size:10pt}}
.image-dialog{max-height:calc(100dvh - 24px);overscroll-behavior:contain;scroll-padding-block:60px 16px}
.image-dialog form{z-index:1;padding-bottom:8px;background:#fff}
.image-dialog button{min-width:44px;min-height:44px}
.image-dialog p{overflow-wrap:anywhere}
@media(forced-colors:active){.image-dialog{border:2px solid CanvasText}.image-dialog form{background:Canvas}.image-dialog button{border-color:ButtonText}}
/* Subject images stay uncropped: anatomy, instruments and labels remain visible. */
.complement-visual,.exam-visual{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:20px;margin:24px 0 32px}
:is(.complement-visual,.exam-visual) .medical-figure{margin:0;background:#fff;border:1px solid #cddfd7;border-radius:16px;overflow:hidden}
:is(.complement-visual,.exam-visual) .anatomy-image{display:flex;align-items:center;justify-content:center;height:310px;padding:16px}
:is(.complement-visual,.exam-visual) .anatomy-image img{max-width:100%;width:auto;max-height:100%;height:auto;object-fit:contain}
.patient-visual>summary{font-weight:700;color:#103c55;min-height:44px;cursor:pointer;margin-bottom:16px}
.resource-subject-visual{margin:0;padding:16px;background:#fff;border-block:1px solid #dce6e1;width:100%}
.resource-subject-visual img{display:block;width:100%;height:200px;object-fit:contain}
.resource-subject-visual figcaption{font-size:.875rem;text-align:end;margin-top:10px}
.resource-text-card:has(.resource-subject-visual){display:flex;flex-direction:column}
.resource-text-card .resource-copy{flex:1}
@media(max-width:600px){:is(.complement-visual,.exam-visual) .anatomy-image{height:260px}.patient-visual{padding:16px}}
/* Reading surfaces share the practice's navy/green palette and clear affordances. */
body :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #12567e;outline-offset:4px;box-shadow:0 0 0 2px #fff}
.article-toc,.academy-toc,.patient-contents,.complement-contents{background:linear-gradient(135deg,#eef6f2,#fff);border:1px solid #c7dcd1;box-shadow:0 8px 24px #103c5508}
:is(.article-toc,.academy-toc,.patient-contents,.complement-contents) a{display:flex;align-items:center;gap:.6rem;min-height:44px;width:100%;padding:.65rem .75rem;box-sizing:border-box;border-inline-start:3px solid transparent;border-radius:8px;font-size:1rem;line-height:1.55;color:#164d68}
:is(.article-toc,.academy-toc,.patient-contents,.complement-contents) a:hover{background:#e3efe9;color:#103c55;text-decoration:underline;text-underline-offset:.2em}
:is(.article-toc,.academy-toc,.patient-contents,.complement-contents) a[aria-current=location]{background:#103c55;color:#fff;border-inline-start-color:#66c59b;font-weight:700;box-shadow:none}
:is(.article-toc,.academy-toc) a[aria-current=location]::before{color:#fff}
:is(.medical-section,.patient-section,.complement-section)>p{max-width:70ch;line-height:1.85;overflow-wrap:break-word}
:is(.article-body,.patient-reading,.complementary-sheet) p a:not(.button),.medical-references a,.patient-references a{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
:is(.medical-section,.patient-section,.academy-step,.complement-section):target{background:#f1f7f4;box-shadow:inset 0 0 0 2px #b8d3c4;border-radius:10px}
.medical-section h2>span{font-size:.875rem;color:#35614e}
@media(min-width:1101px){.article-toc,.academy-toc{top:calc(var(--site-header-height) + 16px);max-height:calc(100dvh - var(--site-header-height) - var(--site-contact-height) - 32px);overflow-y:auto;overscroll-behavior:contain}}
@media(forced-colors:active){body :is(a,button,input,select,textarea,summary):focus-visible{outline-color:Highlight;box-shadow:none}:is(.article-toc,.academy-toc,.patient-contents,.complement-contents) a[aria-current=location]{border:2px solid Highlight;text-decoration:underline}:is(.medical-section,.patient-section,.academy-step,.complement-section):target{outline:2px solid Highlight;box-shadow:none}}
:root{--site-header-height:88px;--site-contact-height:0px}
html{scroll-padding-block-start:calc(var(--site-header-height) + 12px);scroll-padding-block-end:calc(var(--site-contact-height) + 16px)}
main [id],main #leaflet-results{scroll-margin-block-start:12px}
input,select,textarea{min-width:0}
button,summary{touch-action:manipulation}
.site-header .brand>span:last-child{min-width:0}
.site-header .brand strong{overflow-wrap:normal}
.finish-footer a{display:inline-flex;align-items:center;min-height:44px}
.diary-scroll{max-width:100%;overscroll-behavior-inline:contain}
.diary-scroll:focus-visible{outline:3px solid #12567e;outline-offset:3px}
.leaflet-card-body,.gallery-copy,.gallery-expanded,.patient-reading,.complementary-sheet,.article-body{min-width:0}
.patient-toolbar,.paper-actions,.info-actions{flex-wrap:wrap}
.patient-toolbar a,.paper-actions a,.info-actions a{overflow-wrap:anywhere;white-space:normal}
@media(max-width:1400px){
 .site-header #navigation{overflow-y:auto;overflow-x:hidden}
 .site-header .learn-menu-links{position:static;width:auto;max-height:none;overflow:visible;box-shadow:none}
 .site-header #navigation{max-height:calc(100vh - var(--site-header-height) - var(--site-contact-height) - 8px);max-height:calc(100dvh - var(--site-header-height) - var(--site-contact-height) - 8px);overscroll-behavior:contain;scroll-padding-block:12px}
 .site-header #navigation a,.site-header #navigation summary{overflow-wrap:anywhere}
 .site-header #menu-button{min-width:44px;min-height:44px}
}
/* Keep a collapsed, scrollable menu on wide tablets as well. */
@media(min-width:1241px) and (max-width:1400px){
 .site-header .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;padding-block:10px}
 .site-header .header-actions{display:flex;grid-column:2;grid-row:1}
 .site-header #menu-button{display:grid;place-items:center;border:1px solid #dce6e9;background:#fff;border-radius:10px;color:#103c55;cursor:pointer}
 .site-header #navigation{display:none;position:absolute;top:100%;inset-inline:-2.65%;flex-direction:column;align-items:stretch;gap:5px;padding:18px 4%;background:#fff;border-bottom:1px solid #dce6e9;box-shadow:0 15px 30px #16384e14}
 .site-header #navigation.open{display:flex}
 .site-header #navigation>a,.site-header #navigation summary{padding:13px 14px;font-size:1rem}
 .site-header .learn-menu-links{border:0;border-inline-start:2px solid #cddfd5;border-radius:0;margin:0 14px 10px;padding:4px 9px}
}
@media(max-width:800px){
 :root{--site-contact-height:78px}
 body{padding-bottom:calc(var(--site-contact-height) + 16px)}
 footer{padding-bottom:30px}
 body.keyboard-open .mobile-contact,body.hero-contact-visible .mobile-contact{display:none}
 .academy-progress{bottom:var(--site-contact-height)}
 .mobile-contact>a{flex-direction:column;gap:4px;min-height:56px;font-size:.875rem;overflow-wrap:anywhere;text-align:center}
 .mobile-contact>a.mobile-directions{background:#eef4f5;color:#103c55;border:1px solid #ccdcd9}
 .mobile-contact .icon{flex-shrink:0}
}
@media(max-width:700px){
 :root{--site-header-height:138px}
 .site-header .header-inner{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto auto;gap:5px 12px;padding-block:10px 7px}
 .site-header .header-actions{display:contents}
 .site-header .brand{grid-row:1;grid-column:1;min-width:0;gap:9px}
 .site-header .brand strong{font-size:1.05rem;line-height:1.45}
 .site-header .brand small{display:block;font-size:.875rem;line-height:1.5}
 .site-header .brand .logo-mark{width:44px;height:44px;flex-basis:44px}
 .site-header #menu-button{grid-column:2;grid-row:1;margin:0;width:44px;height:44px;align-self:center}
 .site-header .language-switch{grid-column:1/-1;grid-row:2;justify-self:center;display:flex;flex-wrap:wrap;justify-content:center;max-width:100%;white-space:normal;background:#eef4f5;border:1px solid #d4e1e0;border-radius:24px;padding:2px;gap:2px}
 .site-header .language-switch .language-link{font-size:.875rem!important;min-height:44px;padding-inline:14px!important}
 .site-header #navigation{inset-inline:-3.2%;padding:12px 5%}
 .mobile-contact{padding:7px 5% calc(7px + env(safe-area-inset-bottom));gap:8px}
 .mobile-contact>a{font-size:.875rem;min-height:48px}
 .leaflet-filters input,.leaflet-filters select,.gallery-filters input,.gallery-filters select,.global-search input{font-size:1rem}
 .leaflet-pagination button{flex:1 1 120px;white-space:normal}
}
@media(max-width:1400px) and (max-height:500px){.mobile-contact{display:none}:root{--site-contact-height:0px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.video-category-card:hover,.video-category-card:hover img,.path-door:hover{transform:none!important}}
@media print{html{scroll-padding:0}body{padding-bottom:0!important}.site-header,.mobile-contact{display:none!important}main [id]{scroll-margin:0}}
