:root {
    color-scheme: light;
    --navy: #132f43;
    --green: #145f55;
    --ink: #203b3d;
    --muted: #475d59;
    --line: #d4ded7;
    --mint: #e1eee5;
    --paper: #f8f8f3;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: 'Avenir Next', Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
h1, h2, h3, p, address { margin: 0; }
h1, h2, h3 { color: var(--navy); font: 400 2rem/1.1 var(--serif); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #bd7838; outline-offset: 5px; }
.wrap { width: min(1216px, calc(100% - 2 * clamp(20px, 5vw, 80px))); margin: 0 auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 5; padding: .65rem 1rem; background: white; }
.skip:focus { top: .5rem; }

.masthead { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.masthead-inner, .tools, .wide-nav, .brand, .actions, .section-heading, .legal, .legal nav {
    display: flex;
    align-items: center;
}
.masthead-inner { min-height: 84px; justify-content: space-between; gap: 20px; }
.brand { gap: 9px; text-decoration: none; white-space: nowrap; }
.brand img { object-fit: contain; width: 43px; height: 44px; }
.brand span { color: var(--navy); font: 22px/1 var(--serif); letter-spacing: .035em; }
.brand small { display: block; color: var(--green); margin-top: 4px; font: italic 13px/1 var(--serif); }
.wide-nav { gap: clamp(14px, 1.9vw, 32px); }
.wide-nav a, .tools summary { font-size: 14px; }
.wide-nav a { text-decoration: none; padding: 12px 0; white-space: nowrap; }
.wide-nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tools { gap: 12px; }
.popover { position: relative; }
.popover summary { padding: 10px 8px; list-style: none; cursor: pointer; white-space: nowrap; }
.popover summary::-webkit-details-marker { display: none; }
.popover summary::after { content: ''; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; margin: 0 1px 3px 8px; transform: rotate(45deg); }
.popover[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.popover nav { position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px #132f431a; border-radius: 10px; min-width: 155px; padding: 6px; }
.popover nav a { display: block; padding: 9px 13px; border-radius: 5px; text-decoration: none; }
.popover nav a:hover, .popover [aria-current] { background: var(--mint); }
.mobile-nav { display: none; }
.btn { display: inline-flex; justify-content: center; align-items: center; color: white; background: var(--green); border-radius: 40px; padding: 13px 22px; text-decoration: none; font-size: 15px; font-weight: 650; }
.btn:hover { background: #104b43; }
.head-cta { padding: 10px 19px; white-space: nowrap; }
.text-link, .light-link { font-size: 15px; font-weight: 620; color: var(--green); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover, .light-link:hover { text-decoration-thickness: 2px; }
.forward::after { content: '→' / ''; display: inline-block; padding-left: .6em; font: 1.1em/1 system-ui, sans-serif; }
.actions { gap: 14px 22px; flex-wrap: wrap; }

.hero { display: grid; grid-template-columns: 1.04fr 1fr; background: var(--mint); }
.hero-copy { padding: clamp(54px, 5.7vw, 90px) clamp(36px, 4vw, 70px) clamp(54px, 5.7vw, 90px) max(calc((100vw - 1216px)/2), 5vw); align-self: center; }
.eyebrow { color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 720; }
.hero h1 { font-size: clamp(3rem, 5.15vw, 5.2rem); line-height: 1.03; letter-spacing: -.055em; margin: 20px 0; }
.hero h1 em { display: block; color: var(--green); font-weight: 400; }
.intro { max-width: 36ch; font-size: clamp(1rem, 1.35vw, 1.25rem); color: var(--muted); }
.hero .actions { margin-top: 27px; }
.hero-photo { position: relative; min-width: 0; min-height: 420px; background: var(--mint); }
.hero-track {
    position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.hero-track img { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; object-fit: cover; scroll-snap-align: start; }
.hero-controls {
    position: absolute; right: clamp(12px, 2.2vw, 28px); bottom: clamp(12px, 2vw, 24px);
    display: flex; align-items: center; gap: 2px; border-radius: 30px; padding: 2px;
    color: white; background: #163b36ed;
}
.hero-controls[hidden] { display: none; }
.hero-controls button {
    border: 0; background: transparent; color: inherit; font: 22px/1 system-ui, sans-serif;
    cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
}
.hero-controls button:hover { background: #ffffff26; }
.hero-controls button:focus-visible, .hero-track:focus-visible { outline: 3px solid white; outline-offset: -4px; }
.hero-position { min-width: 40px; text-align: center; font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.hero-photo.has-controls .hero-track { scrollbar-width: none; }
.hero-photo.has-controls .hero-track::-webkit-scrollbar { display: none; }

.section { padding: clamp(46px, 5vw, 78px) 0; }
.section-heading { justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 26px; }
.cards, .stories, .visit, .footer-grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; align-items: flex-start; background: white; border: 1px solid var(--line); border-radius: 13px; padding: clamp(22px, 2.3vw, 34px); text-decoration: none; }
.card:hover { border-color: var(--green); background: #f4faf4; }
.card h3, .story h3 { font-size: clamp(1.6rem, 2.2vw, 2.15rem); }
.card p { color: var(--muted); margin: 12px 0 24px; }
.card-action { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; margin-top: auto; color: var(--green); font-size: 14px; font-weight: 650; }
.visit { background: var(--navy); color: #dce9e3; border-radius: 16px; overflow: hidden; grid-template-columns: 1.1fr 1fr; gap: 0; }
.visit-copy, .clinic-copy { padding: clamp(27px, 3.5vw, 53px); }
.visit h2, .visit h3, .footer h2, .footer h3 { color: #fff; }
.visit h2 { font-size: clamp(2rem, 3.4vw, 3.05rem); }
.visit-copy p { max-width: 45ch; margin: 16px 0 20px; }
.light-link { color: #e0f2e7; }
.clinic-panel { position: relative; display: flex; align-items: flex-end; background: #254b51; }
.clinic-photo { position: absolute; inset: 0; background: linear-gradient(0deg, #102c3aef 0%, #102c3ac9 34%, #102c3a1a 100%), url('https://res.cloudinary.com/dkvoey6bf/image/upload/c_scale,w_1200/v1695908144/ArtDent/Gallery/ART_DENT_BY_GLIA_v1lpqu.webp') center 50% / cover; }
.clinic-copy { position: relative; }
.clinic-copy h3 { margin-bottom: 13px; }
.stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story { position: relative; border-top: 2px solid var(--green); padding: 24px 28px; background: #edf3ed; border-radius: 0 0 10px 10px; }
.story time, .story p { color: var(--muted); font-size: 13px; }
.story h3 { margin: 12px 0; max-width: 34ch; }
.story a { text-decoration: none; }
.story a::after { position: absolute; content: ''; inset: 0; }
.story:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer { background: var(--navy); color: #dfede6; }
.footer-grid { grid-template-columns: 1.3fr 1fr .85fr; gap: 30px; padding: 46px 0 38px; }
.footer h2 { font-size: clamp(2rem, 2.9vw, 2.6rem); }
.footer h3 { font-size: 1.6rem; }
.footer p, .footer address { margin: 12px 0; font-style: normal; }
.footer p a { text-decoration: none; }
.legal { padding: 20px 0; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid #ffffff40; font-size: 13px; }
.legal nav { flex-wrap: wrap; gap: 12px 24px; }
.legal a { text-underline-offset: 3px; }

@media (max-width: 1050px) {
    .wide-nav { display: none; }
    .mobile-nav { display: block; }
    .masthead-inner { min-height: 70px; }
}
@media (max-width: 740px) {
    .wrap { width: calc(100% - 36px); }
    .masthead-inner { min-height: 64px; gap: 8px; }
    .tools { gap: 5px; }
    .head-cta { font-size: 13px; padding: 9px 12px; }
    .brand { gap: 5px; }
    .brand img { width: 33px; height: 34px; }
    .brand span { font-size: 17px; }
    .brand small { font-size: 11px; }
    .popover summary { padding: 10px 5px; font-size: 13px; }
    .hero, .visit, .cards, .stories { grid-template-columns: 1fr; }
    .hero-copy { padding: 33px 18px 30px; }
    .hero h1 { font-size: clamp(2.85rem, 8.6vw, 3.8rem); margin: 14px 0; }
    .intro { font-size: 16px; }
    .hero .actions { margin-top: 20px; }
    .hero-photo { min-height: 0; height: clamp(168px, 43vw, 265px); }
    .section { padding: 38px 0; }
    .section-heading { margin-bottom: 18px; }
    .cards, .stories { gap: 12px; }
    .card p { margin-bottom: 16px; }
    .clinic-panel { min-height: 165px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 390px) {
    .masthead-inner { width: calc(100% - 20px); }
    .head-cta { padding: 9px 10px; }
    .brand span { font-size: 15px; }
    .tools { gap: 2px; }
}
@media (max-width: 360px) {
    .head-cta { display: none; }
}

/* Public sections */
.endgap { height: clamp(40px, 5vw, 72px); }
.masthead-inner { position: relative; }
.wide-nav { gap: clamp(13px, 2vw, 32px); }
.brand img { flex-shrink: 0; }
.navdrop summary { white-space: nowrap; list-style: none; cursor: pointer; padding: 12px 0; font-size: 14px; }
.navdrop summary::-webkit-details-marker { display: none; }
.navdrop > summary:after { content: ''; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; margin: 0 0 3px 8px; transform: rotate(45deg); }
.navdrop[open] > summary:after { transform: rotate(225deg); margin-bottom: 0; }
.navdrop > summary.current, .wide-nav .current { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.navfly { position: absolute; top: calc(100% - 10px); background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 10px; box-shadow: 0 12px 30px #132f4320; min-width: 205px; z-index: 4; }
.navdrop:first-child .navfly { left: 0; right: 0; padding: 24px; }
.megacols { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.megacols strong { display: block; font-size: 14px; line-height: 1.35; margin: 0 0 7px; color: var(--navy); }
.allrow { padding: 0 0 14px; margin: 0 0 17px; border-bottom: 1px solid var(--line); }
.navfly .navlink, .siteindex .navlink { display: block; white-space: normal; padding: 7px 0; font-size: 14px; color: var(--muted); text-decoration: none; }
.navfly .navlink:hover, .siteindex .navlink:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.navfly > .navlink { padding: 8px 11px; }
.subhero { background: var(--mint); padding: clamp(28px, 3.7vw, 56px) 0 clamp(34px, 4.5vw, 66px); }
.trail { display: flex; gap: 7px 10px; align-items: baseline; flex-wrap: wrap; font: 13px/1.4 var(--sans); color: var(--muted); margin-bottom: 22px; }
.crumb { text-underline-offset: 3px; }
.subhero h1 { font-size: clamp(2.6rem, 5.7vw, 5rem); max-width: 1050px; line-height: 1.05; }
.sublead { max-width: 68ch; margin-top: 16px; font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--muted); }
.subhero .actions { margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(245px,.85fr); align-items: start; gap: clamp(30px,6vw,90px); }
.reading { min-width: 0; }
.reading section + section, .reading > .disclose { padding-top: 23px; margin-top: 23px; border-top: 1px solid var(--line); }
.reading h2, .catgroup h2, .siteindex h2, .document h2 { font-size: clamp(1.65rem, 2.5vw, 2.35rem); line-height: 1.18; }
.reading p, .reading address { max-width: 70ch; margin: 11px 0; }
.reading address { font-style: normal; }
.reading section > .actions { margin-top: 18px; }
.reading-source { color: var(--muted); font-size: 13px; margin-top: 24px; }
.reading-source a { font-size: inherit; }
.aside { padding: clamp(22px, 2.6vw, 34px); background: white; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 0 0 12px 12px; }
.aside h2, .book-box h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.aside p { margin: 13px 0; color: var(--muted); }
.aside > a { display: table; margin-top: 12px; }
.rel-links { display: grid; gap: 10px; margin: 16px 0; }
.aside > .rel-links + a { border-top: 1px solid var(--line); padding-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { padding: 8px 15px; border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--green); font-weight: 600; font-size: 14px; text-decoration: none; }
.chip:hover { border-color: var(--green); }
.catgroup { display: grid; grid-template-columns: minmax(190px,.7fr) minmax(0,2fr); gap: 28px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.catalog-list { display: grid; gap: 10px; }
.catalog-list a { display: grid; grid-template-columns: clamp(84px, 10vw, 126px) minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2vw, 24px); padding-right: clamp(12px, 2vw, 22px); border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; }
.catalog-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 9px 0 0 9px; }
.catalog-copy { padding: 12px 0; min-width: 0; overflow-wrap: break-word; }
.catalog-list a:hover { border-color: var(--green); }
.catalog-list h3 { font-size: clamp(1.35rem,2.1vw,1.7rem); }
.catalog-list p { margin-top: 7px; color: var(--muted); font-size: 15px; }
.catalog-list span { color: var(--green); }
.disclose { border-bottom: 1px solid var(--line); }
.disclose summary { cursor: pointer; font-weight: 650; color: var(--navy); padding: 15px 0; }
.disclose > div { padding-bottom: 15px; max-width: 70ch; }
.disclose p { margin-top: 0; }
.reading > .disclose + .disclose { margin: 0; padding: 0; border-top: 0; }
.reading > .disclose:first-child { margin-top: 0; padding-top: 0; }
.disclose ul, .document ul { padding-left: 1.35rem; }
.grid2, .people, .photogrid, .cerec-grid, .siteindex { display: grid; gap: 18px; }
.grid2, .photogrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.people { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px 22px; }
.person figure, .gallery-link figure, .step figure { margin: 0; background: var(--mint); border-radius: 12px; overflow: hidden; }
.person figure { aspect-ratio: 1.3; }
.person img, .gallery-link img, .step img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person img { object-position: center 30%; }
.person h2 { font-size: clamp(1.6rem,2.8vw,2.1rem); margin: 15px 0 3px; }
.person p { color: var(--muted); }
.gallery-link { position: relative; min-width: 0; }
.gallery-link figure { aspect-ratio: 1.65; }
.gallery-link:first-child { grid-column: 1 / -1; }
.gallery-link:first-child figure { aspect-ratio: 2.7; }
.gallery-link > span { position: absolute; bottom: 11px; right: 11px; border-radius: 50%; background: white; color: var(--green); padding: 4px 10px; }
.cerec-intro { max-width: 72ch; margin-bottom: clamp(24px,3vw,40px); }
.cerec-intro h2 { font-size: clamp(1.85rem,3.15vw,2.75rem); margin-bottom: 12px; }
.cerec-intro p { color: var(--muted); }
.cerec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(28px,4vw,50px); list-style: none; margin: 0; padding: 0; }
.step h3 { font-size: clamp(1.5rem,2.2vw,2rem); margin: 17px 0 8px; }
.step figure { aspect-ratio: 1.5; background: #fff; border: 1px solid var(--line); }
.step img { object-fit: cover; }
.step p { color: var(--muted); max-width: 63ch; }
.step .step-time { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--green); color: var(--green); font-weight: 600; font-size: .94rem; }
.cerec-qa { max-width: 820px; margin-top: 32px; }
.cerec-qa > a { display: inline-block; margin-top: 16px; }
.book-box { padding: clamp(20px,3vw,38px); background: white; border: 1px solid var(--line); border-radius: 13px; }
.book-box h2 { margin-top: 22px; }
.book-box .message { margin: 14px 0 19px; background: #edf4ed; border-left: 3px solid var(--green); padding: 13px 17px; }
.book-box > p:last-child { color: var(--muted); font-size: 14px; }
label { display: block; font-weight: 650; margin-top: 15px; }
.book-box > label:first-child { margin: 0; }
select, input, textarea { width: 100%; padding: 10px 12px; margin: 5px 0 4px; border: 1px solid #9caca3; border-radius: 7px; background: white; color: var(--ink); font: inherit; }
button { font: inherit; border: 0; cursor: pointer; }
form .btn { margin-top: 14px; }
[data-ready] { background: var(--mint); padding: 12px 15px; margin-top: 15px; border-radius: 8px; }
select:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid #bd7838; outline-offset: 3px; }
.footlink { display: table; color: #e0f2e7; font-size: 14px; margin-top: 5px; text-underline-offset: 3px; }
.siteindex { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.siteindex section { border-top: 2px solid var(--line); padding-top: 14px; }
.siteindex h2 { margin-bottom: 8px; }
.document { max-width: 850px; }
.document p, .document li { margin: 12px 0; overflow-wrap: anywhere; }
.document h2 { margin: 32px 0 12px; text-transform: none; }
.document a { color: var(--green); }
[hidden] { display: none !important; }
@media (max-width:1050px) {
    .mobile-nav { position: static; }
    .mobile-nav > nav { right: 0; top: calc(100% - 3px); width: min(360px,100%); max-height: 74vh; overflow: auto; padding: 10px 15px; }
    .mobile-nav .navdrop summary { padding: 12px 6px; border-bottom: 1px solid var(--line); }
    .mobile-nav .navdrop .navfly { position: static; box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 6px 8px 12px; }
    .mobile-nav .megacols { grid-template-columns: 1fr; gap: 11px; }
    .mobile-nav .allrow { margin: 5px 0 10px; padding: 0 0 5px; }
    .mobile-nav .navfly .navlink { padding: 7px 5px; }
    .mobile-nav a.text-link { padding: 7px 0; }
    .cerec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
}
@media (max-width:740px) {
    .split,.catgroup,.grid2,.siteindex { grid-template-columns: 1fr; }
    .catgroup { gap: 14px; padding: 22px 0; }
    .split { gap: 22px; }
    .people,.photogrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
    .person h2 { font-size: 1.42rem; }
    .person p { font-size: 14px; }
    .gallery-link:first-child figure { aspect-ratio: 1.6; }
    .trail { margin-bottom: 15px; }
    .subhero { padding: 23px 0 29px; }
    .cerec-grid { grid-template-columns: 1fr; gap: 32px; }
    .endgap { height: 38px; }
}
@media (max-width:420px) {
    .people { gap: 18px 9px; }
    .hero-photo { height: clamp(168px,43vw,265px); }
}
@media (min-width:1051px) {
    .megacols { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 32px; }
}
.preview-note { border-left: 3px solid var(--green); padding: 12px 15px; background: var(--mint); }
.sample-intake > div { max-width: none; }
.intake-set { min-width: 0; margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.intake-set > legend { padding: 0 7px; color: var(--navy); font: 1.45rem/1.2 var(--serif); }
.fieldgrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; }
.fieldgrid > .col-12 { grid-column: 1 / -1; }
.fieldgrid fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldgrid label, .fieldgrid legend { margin: 0; font: 600 14px/1.4 var(--sans); }
.fieldgrid .form-check:has(> input) { display: flex; gap: 7px; align-items: baseline; }
.fieldgrid input[type=checkbox], .fieldgrid input[type=radio] { width: auto; }
.form-text { font-size: 13px; color: var(--muted); }
.consent-read { margin: 5px 0 13px; }
.consent-read summary { padding: 5px 0; }
canvas[data-sign] { display: block; width: 100%; height: 112px; border: 1px dashed #68897c; margin: 10px 0; border-radius: 6px; touch-action: none; }
.subbtn { color: var(--green); background: transparent; padding: 7px 0; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width:600px) { .fieldgrid { grid-template-columns: 1fr; } }

/* Photographic patient guides */
.visual-guide { padding: clamp(30px, 3.4vw, 52px) 0 0; }
.visual-guide > h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); margin-bottom: 19px; max-width: 38ch; }
.teaching-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.teaching-panel { margin: 0; min-width: 0; background: white; }
.teaching-panel + .teaching-panel { border-left: 1px solid var(--line); }
.teaching-zoom { display: block; position: relative; background: #edf3ee; cursor: zoom-in; }
.teaching-zoom:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; z-index: 1; }
.teaching-zoom span { position: absolute; right: 5px; bottom: 5px; border: 1px solid #b8cdc5; border-radius: 50%; color: var(--green); background: white; width: 21px; height: 21px; font: 600 15px/19px var(--sans); text-align: center; }
.teaching-panel img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #edf3ee; }
.teaching-panel figcaption { padding: 17px clamp(15px,2vw,27px) 21px; }
.teaching-panel h3 { color: var(--navy); font: 650 1.02rem/1.35 var(--sans); letter-spacing: normal; margin: 0 0 7px; }
.teaching-panel p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.52; }
.visual-guide + .split { padding-top: clamp(32px,3.6vw,52px); }
.guide-index { display: grid; gap: 9px; padding: 15px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.guide-index a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; font-size: 14px; }
.guide-index + h3 { font-size: 1.45rem; }
.reading .treatment-topic { scroll-margin: 18px; }
.reading .treatment-topic p { line-height: 1.65; }
.reading .treatment-topic p + p { margin-top: 12px; }
.reading-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 13px; }
.reading-source .text-link { display: inline; }
@media (max-width:740px) {
    .visual-guide { padding-top: 29px; }
    .teaching-grid { display: block; }
    .teaching-panel { display: flex; align-items: stretch; }
    .teaching-panel + .teaching-panel { border-left: 0; border-top: 1px solid var(--line); }
    .teaching-zoom { flex: 0 0 32%; min-height: 108px; }
    .teaching-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
    .teaching-zoom span { width: 18px; height: 18px; font-size: 13px; line-height: 16px; }
    .teaching-panel figcaption { flex: 1 1 0; min-width: 0; align-self: center; padding: 13px; }
    .teaching-panel h3 { font-size: .95rem; margin-bottom: 4px; }
    .teaching-panel p { font-size: .88rem; }
}

@media (max-width: 500px) {
    .teaching-panel { display: block; }
    .teaching-panel img { position: static; height: auto; }
    .teaching-panel figcaption { padding: 15px 17px 19px; }
}
.photo-viewer:not([open]) { display: none; }
.photo-viewer { color: var(--navy); background: white; padding: 0; border: 0; border-radius: 14px; width: min(94vw, 570px); max-height: 94vh; max-height: 94dvh; overflow: auto; }
.photo-viewer::backdrop { background: rgba(9, 27, 34, .8); }
.viewer-inner { padding: 12px; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.viewer-position { font: 600 .9rem var(--sans); margin: 0 auto 0 6px; }
.viewer-bar button { background: white; color: var(--green); border: 1px solid var(--line); border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font: 600 19px var(--sans); }
.viewer-bar button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.photo-viewer figure { margin: 0; }
.photo-viewer img { display: block; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 58vh; max-height: 58dvh; border-radius: 5px; }
.photo-viewer figcaption { padding: 12px 8px 4px; }
.photo-viewer h3 { margin: 0 0 5px; font: 650 1.15rem/1.35 var(--sans); }
.photo-viewer figcaption p { margin: 0; color: var(--muted); line-height: 1.5; }

.php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message { display: none; }
.php-email-form .d-block { display: block; }
.php-email-form .form-group, .php-email-form .my-3 { margin: 12px 0; }
.php-email-form button[type=submit] { padding: 10px 20px; border: 0; border-radius: 30px; background: var(--green); color: white; font: inherit; cursor: pointer; }
.native-reviews figure { margin: 18px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.native-reviews blockquote { margin: 0 0 7px; }
.native-reviews figcaption { color: var(--muted); }
.native-review-summary { padding: 22px 0; }
