/* Shared editorial system: material, scale, masthead and colophon. */
:root {
 --ed-paper:#efe5d2; --ed-ink:#153b32; --ed-jade:#103d34; --ed-red:#a2382c; --ed-gold:#bf965a; --ed-line:#c8b895;
 --ed-frame:min(1280px,calc(100% - 80px)); --ed-body:19px; --ed-ui:15px; --ed-space:clamp(56px,4.5vw,80px); --ed-ease:cubic-bezier(.23,1,.32,1);
 --shaolin-paper:var(--ed-paper); --shaolin-ink:var(--ed-ink); --shaolin-jade:var(--ed-jade); --shaolin-red:var(--ed-red); --shaolin-line:var(--ed-line);
 --shaolin-font-display:"Literata",Georgia,serif; --shaolin-font-body:"Golos Text",sans-serif; --shaolin-readable-frame:var(--ed-frame);
}
@media (min-width:1680px) { :root { --ed-frame:min(1520px,calc(100% - 120px)); --ed-body:20px; --ed-ui:15px; } }
@media (min-width:2200px) { :root { --ed-frame:min(1840px,calc(100% - 160px)); --ed-body:20px; --ed-ui:16px; } }
@media (min-width:3000px) { :root { --ed-frame:min(2320px,calc(100% - 240px)); --ed-body:21px; --ed-ui:16px; --ed-space:88px; } }
@media (max-width:1100px) { :root { --ed-frame:calc(100% - 48px); } }
@media (max-width:760px) { :root { --ed-frame:calc(100% - 32px); --ed-body:17px; --ed-ui:14px; --ed-space:56px; } }
body, .wp-site-blocks, .wp-site-blocks main[class] { background:var(--ed-paper) url("../images/art/refinement-paper-perf.webp") center top / 1536px auto repeat !important; color:var(--ed-ink); }
body { min-width:0; font:500 var(--ed-body)/1.6 "Golos Text",sans-serif; }
.wp-site-blocks > main[class]{margin-block:0!important}
.wp-site-blocks > footer.wp-block-template-part{margin-block:0}
:root{--ed-detail:17px;--ed-label:16px;--ed-subhead:24px;--ed-lead:20px}
@media(min-width:1680px){:root{--ed-detail:17px;--ed-label:16px;--ed-subhead:24px;--ed-lead:20px}}
@media(min-width:2200px){:root{--ed-detail:18px;--ed-label:17px;--ed-subhead:25px;--ed-lead:21px}}
@media(min-width:3000px){:root{--ed-detail:18px;--ed-label:17px;--ed-subhead:26px;--ed-lead:21px}}
@media(max-width:760px){:root{--ed-detail:16px;--ed-label:15px;--ed-subhead:22px;--ed-lead:18px}}
.wp-site-blocks main[class] :is(h1,h2,h3) { font-family:"Literata",Georgia,serif; }
.wp-site-blocks :is(.shaolin-article-page,.shaolin-generic-page) .entry-content > :is(p,ul,ol,blockquote) { max-width:65ch !important; }
::selection { background:#b9c7ae; color:#103d34; }
:focus-visible { outline-color:var(--ed-red); }

/* Masthead: a ruled cover, shared by every page. */
.wp-block-template-part:has(> .ed-site-header) { position:relative !important; z-index:100; margin:0 !important; }
.wp-site-blocks .ed-site-header.shaolin-site-header { position:relative !important; top:auto !important; width:100% !important; max-width:none !important; margin:0 !important; padding:0 !important; border:0 !important; border-top:4px solid var(--ed-red) !important; color:var(--ed-ink); background:var(--ed-paper) url("../images/art/refinement-paper-perf.webp") center top / 1536px auto repeat !important; box-shadow:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; z-index:100; }
.wp-site-blocks .ed-site-header.shaolin-site-header { overflow:visible !important; }
.ed-site-header *, .ed-site-footer *, .ed-site-header *::before, .ed-site-footer *::before { box-sizing:border-box; }
.ed-header-frame, .ed-footer-frame { width:var(--ed-frame); max-width:none; margin-inline:auto !important; }
.ed-site-header .ed-masthead { display:grid; grid-template-columns:auto 1fr auto; gap:28px; align-items:center; padding:16px 0 14px; }
.ed-site-header .ed-brand { display:block; width:256px; line-height:0; flex-shrink:0; }
.ed-site-header .ed-brand img { display:block; width:100%; height:auto; max-width:100%; }
.ed-site-header .ed-experience { display:flex; flex-direction:column; gap:3px; border-left:1px solid var(--ed-line); padding-left:28px; }
.ed-site-header .ed-experience strong { font:500 24px/1.2 "Literata",serif; color:var(--ed-red); white-space:nowrap; }
.ed-site-header .ed-experience span { font:400 13px/1.4 "Golos Text",sans-serif; color:#4e5d49; }
.ed-site-header .ed-header-contact { display:flex; align-items:center; gap:30px; }
.ed-site-header .ed-header-phone { color:var(--ed-ink); font:600 20px/1.3 "Golos Text",sans-serif; text-decoration:none; white-space:nowrap; }
.ed-shell-button { display:inline-flex; justify-content:space-between; align-items:center; gap:28px; padding:14px 22px; min-height:50px; border:1px solid var(--ed-red); border-radius:6px; background:var(--ed-red); color:#fff6e7; font:600 var(--ed-ui)/1.4 "Golos Text",sans-serif; text-decoration:none; transition:transform 140ms var(--ed-ease),background-color 160ms ease,border-color 160ms ease; }
.ed-shell-button svg { flex:0 0 auto; }
.ed-site-header .ed-header-rule { display:flex; justify-content:space-between; align-items:center; gap:24px; border-top:1px solid var(--ed-line); border-bottom:1px solid var(--ed-line); }
.ed-site-header .ed-primary-nav { display:flex; align-items:stretch; gap:38px; }
.ed-site-header .ed-primary-nav a { position:relative; display:flex; align-items:center; min-height:44px; padding:10px 0; font:600 var(--ed-ui)/1.4 "Golos Text",sans-serif; color:var(--ed-ink); text-decoration:none; transition:color 160ms ease; }
.ed-site-header .ed-primary-nav .ed-nav-promo { color:var(--ed-red); }
.ed-site-header .ed-primary-nav a::after { content:""; position:absolute; height:2px; left:0; right:0; bottom:-1px; background:var(--ed-red); transform:scaleX(0); transform-origin:left; transition:transform 180ms var(--ed-ease); }
.ed-site-header .ed-primary-nav a[aria-current="page"]::after { transform:scaleX(1); }
.ed-site-header .ed-header-address { color:#52624f; font:400 13px/1.5 "Golos Text",sans-serif; text-decoration:none; }
.ed-site-header .ed-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:88px;min-height:44px;padding:10px 12px;border:1px solid #6b7d66;border-radius:4px;color:var(--ed-jade);background:transparent;font:600 14px/1.4 "Golos Text",sans-serif;cursor:pointer}
.ed-site-header .ed-menu-toggle svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.ed-site-header .ed-menu-close{display:none}
.ed-site-header .ed-menu-toggle[aria-expanded="true"] .ed-menu-close{display:block}
.ed-site-header .ed-menu-toggle[aria-expanded="true"] .ed-menu-bars{display:none}
.ed-site-header :is(.ed-menu-toggle,.ed-primary-nav)[hidden]{display:none!important}
.ed-site-header .ed-header-rule:has(.ed-primary-nav[hidden]){border:0}
.ed-site-header :is(a,button):focus-visible { outline:2px solid var(--ed-red) !important; outline-offset:5px !important; box-shadow:none !important; }

/* Every internal page starts on the same editorial grid. */
.ie-frame{width:var(--ed-frame);max-width:none!important;margin-inline:auto!important}
.wp-site-blocks main .ie-page-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(28px,4vw,64px);align-items:start;padding-block:clamp(36px,3vw,56px);margin-block:0}
.wp-site-blocks main .ie-page-intro h1{margin:0!important;font:500 clamp(40px,3.2vw,64px)/1.16 "Literata",Georgia,serif!important;letter-spacing:-.025em!important;color:inherit!important;text-wrap:balance;max-width:20ch}
.wp-site-blocks main .ie-page-intro>*{min-width:0}
.wp-site-blocks main .ie-page-intro-copy{min-width:0;align-self:start}
.wp-site-blocks main .ie-page-intro-copy>p,.wp-site-blocks main .ie-page-intro-copy .wp-block-post-excerpt__excerpt{margin:0;max-width:52ch;font:500 var(--ed-lead)/1.55 "Golos Text",sans-serif;color:inherit;text-wrap:pretty}
@media(max-width:1100px){.ed-site-header .ed-primary-nav{gap:26px}.ed-site-header .ed-header-address{display:none}.ed-site-header .ed-header-rule{justify-content:flex-start}}
@media(max-width:900px){.wp-site-blocks main .ie-page-intro{grid-template-columns:minmax(0,1fr);gap:24px}.wp-site-blocks main .ie-page-intro h1{max-width:20ch}}
@media(max-width:760px){.wp-site-blocks .ed-site-header .ed-primary-nav{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 12px;padding-block:6px}.wp-site-blocks .ed-site-header .ed-primary-nav a{min-height:44px;font-size:14px;justify-content:flex-start;width:fit-content;padding-block:10px}.wp-site-blocks .ed-site-header .ed-primary-nav a{width:100%}.wp-site-blocks main .ie-page-intro{padding-block:32px;gap:20px}.wp-site-blocks main .ie-page-intro h1{font-size:40px!important}}

/* The contact spread closes the page with the same strong ink field. */
@media(max-width:400px){.wp-site-blocks main .ie-page-intro h1{font-size:clamp(32px,10vw,40px)!important;overflow-wrap:break-word;hyphens:auto}}

.wp-site-blocks .ed-site-footer { position:relative; isolation:isolate; width:100% !important; max-width:none !important; padding:0 !important; margin:0 !important; background:var(--ed-jade) !important; color:#f6ebd6; border-top:5px solid var(--ed-gold); overflow:clip; }
.ed-site-footer .ed-footer-landscape { position:absolute; inset:0; z-index:-2; display:block; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center bottom; pointer-events:none; }
.ed-site-footer::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(180deg,rgba(16,61,52,.55),rgba(16,61,52,.52) 40%,rgba(7,38,31,.55)); }
.ed-site-footer .ed-footer-frame { padding-block:54px 24px; }
.ed-site-footer .ed-footer-frame a { color:#f6ebd6; text-decoration:none; text-underline-offset:4px; }
.ed-site-footer .ed-footer-frame :is(a,button):focus-visible { outline:2px solid #ebc995 !important; outline-offset:5px !important; box-shadow:none !important; }
.ed-site-footer .ed-footer-contact { display:grid; grid-template-columns:.9fr 1.3fr 1fr; align-items:center; gap:48px; padding-bottom:42px; border-bottom:1px solid #547064; }
.ed-site-footer .ed-footer-brand { display:block; width:min(300px,100%); padding:17px 20px; background:var(--ed-paper); border:1px solid #bfa880; }
.ed-site-footer .ed-footer-brand img { display:block; width:100%; height:auto; }
.ed-site-footer .ed-footer-address { display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.ed-site-footer .ed-footer-address p { margin:0; color:inherit; font:500 clamp(22px,1.8vw,30px)/1.4 "Literata",serif; max-width:28ch; }
.ed-site-footer a.ed-footer-route { display:inline-flex; align-items:center; gap:18px; color:#e7c28a; font:600 var(--ed-ui)/1.5 "Golos Text",sans-serif; }
.ed-site-footer .ed-footer-phone { display:flex; flex-direction:column; align-items:flex-start; gap:19px; }
.ed-site-footer .ed-footer-phone > a:first-child { font:500 clamp(21px,1.8vw,31px)/1.3 "Golos Text",sans-serif; white-space:nowrap; }
.ed-site-footer .ed-footer-phone > .ed-footer-email { display:inline-flex; align-items:center; min-height:44px; max-width:100%; font:500 var(--ed-ui)/1.5 "Golos Text",sans-serif; text-decoration:underline; overflow-wrap:anywhere; }
.ed-site-footer .ed-shell-button { color:#fff6e7; background:var(--ed-red); border-color:#b74f40; min-width:240px; }
.ed-site-footer .ed-footer-columns { display:grid; grid-template-columns:.8fr 1.1fr .9fr 1.25fr; gap:48px; padding-block:36px; }
.ed-site-footer .ed-footer-column { display:flex; flex-direction:column; align-items:flex-start; gap:9px; min-width:0; }
.ed-site-footer .ed-footer-column h3 { margin:0 0 9px; font:500 20px/1.3 "Literata",serif; color:#e7c28a; }
.ed-site-footer .ed-footer-column a, .ed-site-footer .shaolin-cookie-settings { display:inline-flex; align-items:center; gap:10px; min-height:32px; padding:3px 0; font:400 var(--ed-ui)/1.5 "Golos Text",sans-serif; color:#e4e5d6; text-align:left; background:none; border:0; border-radius:0; cursor:pointer; }
.ed-site-footer .ed-footer-column a img { display:block; width:20px; height:20px; object-fit:contain; }
.ed-site-footer .ed-footer-legal { display:grid; grid-template-columns:1fr 1fr; gap:48px; padding-block:23px 0; border-top:1px solid #547064; }
.ed-site-footer .ed-footer-legal p { margin:0; font:400 12px/1.65 "Golos Text",sans-serif; color:#c2d0bd; max-width:65ch; }
.ed-site-footer .ed-footer-legal > div { display:flex; flex-direction:column; gap:8px; }
.ed-site-footer .ed-footer-warning { color:#e8e4cb; }

/* Dark-context controls and contact disclosure. */
.wp-site-blocks .shaolin-promo-final .shaolin-ref-btn-outline { color:#fff5e4 !important; border-color:#c4b287 !important; background:transparent !important; }
.sh-contact-dock { font-family:"Golos Text",sans-serif; }
.sh-contact-dock > summary { border-radius:6px; border-color:var(--ed-red); background:var(--ed-red); color:#fff6e7; }
.sh-contact-dock > nav { border-radius:6px; background:var(--ed-paper); border-color:var(--ed-line); transform-origin:bottom right; }
.sh-contact-dock :is(summary,a):focus-visible { outline:2px solid var(--ed-gold); outline-offset:4px; }
@media (hover:hover) and (pointer:fine) {
 .ed-site-header .ed-primary-nav a:hover, .ed-site-header .ed-header-address:hover, .ed-site-header .ed-header-phone:hover { color:var(--ed-red); }
 .ed-site-header .ed-primary-nav a:hover::after { transform:scaleX(1); }
 .ed-shell-button:hover, .ed-site-footer .ed-shell-button:hover { background:#852a22; border-color:#852a22; color:#fff6e7; }
 .ed-site-footer .ed-footer-column a:hover, .ed-site-footer .ed-footer-route:hover, .ed-site-footer .shaolin-cookie-settings:hover { color:#fff6e7; text-decoration:underline; }
 .wp-site-blocks .shaolin-promo-final .shaolin-ref-btn-outline:hover { color:var(--ed-jade) !important; background:#f3e8d2 !important; }
}
.ed-shell-button:active:not(:focus-visible) { transform:scale(.97); }
.shaolin-motion-keyboard .ed-primary-nav a::after, .shaolin-motion-keyboard .ed-shell-button { transition:none; }
.shaolin-motion-keyboard .ed-shell-button:active { transform:none; }
@media (min-width:2200px) {
 .ed-site-header .ed-masthead { padding-block:18px; gap:32px; }
 .ed-site-header .ed-brand { width:288px; }
 .ed-site-header .ed-experience strong { font-size:26px; }
 .ed-site-header .ed-experience span, .ed-site-header .ed-header-address { font-size:15px; }
 .ed-site-header .ed-header-phone { font-size:22px; }
 .ed-site-header .ed-primary-nav { gap:36px; }
 .ed-site-header .ed-primary-nav a { min-height:46px; }
 .ed-shell-button { min-height:50px; padding:13px 24px; }
 .ed-site-footer .ed-footer-frame { padding-block:66px 30px; }
 .ed-site-footer .ed-footer-column h3 { font-size:24px; }
 .ed-site-footer .ed-footer-legal p { font-size:14px; }
}
@media (min-width:3000px) {
 .ed-site-header .ed-brand { width:304px; }
 .ed-site-header .ed-masthead { padding-block:20px; }
 .ed-site-header .ed-experience strong { font-size:28px; }
 .ed-site-header .ed-header-phone { font-size:24px; }
 .ed-site-header .ed-experience span, .ed-site-header .ed-header-address { font-size:15px; }
 .ed-site-header .ed-primary-nav a { min-height:48px; }
 .ed-site-footer .ed-footer-brand { width:360px; }
 .ed-site-footer .ed-footer-frame { padding-block:78px 36px; }
 .ed-site-footer .ed-footer-address p, .ed-site-footer .ed-footer-phone > a:first-child { font-size:36px; }
 .ed-site-footer .ed-footer-column h3 { font-size:28px; }
 .ed-site-footer .ed-footer-columns { padding-block:48px; }
 .ed-site-footer .ed-footer-legal p { font-size:16px; }
}
@media (max-width:1180px) {
 .ed-site-header .ed-masthead { gap:22px; }
 .ed-site-header .ed-brand { width:230px; }
 .ed-site-header .ed-experience { padding-left:20px; }
 .ed-site-header .ed-experience strong { font-size:22px; }
 .ed-site-header .ed-header-contact { gap:20px; }
 .ed-site-header .ed-header-phone { font-size:17px; }
 .ed-site-header .ed-shell-button { gap:16px; padding-inline:18px; }
 .ed-site-footer .ed-footer-contact { grid-template-columns:.9fr 1.2fr; gap:32px; }
 .ed-site-footer .ed-footer-phone { grid-column:2; }
 .ed-site-footer .ed-footer-columns { gap:28px; }
}
@media (max-width:960px) {
 .ed-site-header .ed-header-contact { flex-direction:column; gap:8px; }
 .ed-site-header .ed-header-contact .ed-shell-button { min-height:44px; padding-block:10px; width:100%; }
 .ed-site-header .ed-primary-nav { gap:30px; }
 .ed-site-header .ed-header-address { display:none; }
 .ed-site-header .ed-header-rule { justify-content:center; }
}
@media (max-width:760px) {
 .ed-site-header .ed-masthead { grid-template-columns:1fr auto; gap:14px 18px; padding-block:16px; }
 .ed-site-header .ed-brand { width:210px; }
 .ed-site-header .ed-experience { display:none; }
 .ed-site-header .ed-menu-toggle { grid-column:2;grid-row:1; }
 .ed-site-header .ed-experience strong { font-size:18px; }
 .ed-site-header .ed-experience span { font-size:11px; }
 .ed-site-header .ed-header-contact { grid-column:1/-1; flex-direction:row; justify-content:space-between; gap:18px; }
 .ed-site-header .ed-header-phone { display:inline-flex; align-items:center; min-height:44px; color:var(--ed-red); font-size:clamp(18px,5vw,22px); }
 .ed-site-header .ed-header-contact .ed-shell-button { width:auto; font-size:13px; min-height:44px; padding:10px 16px; gap:16px; }
 .ed-site-header .ed-primary-nav { justify-content:space-between; gap:18px; width:100%; }
 .ed-site-header .ed-primary-nav a { min-height:44px; font-size:13px; }
 .ed-site-footer .ed-footer-frame { padding-block:36px 26px; }
 .ed-site-footer .ed-footer-landscape { object-position:76% bottom; }
 .ed-site-footer .ed-footer-contact { grid-template-columns:1fr; gap:26px; padding-bottom:30px; }
 .ed-site-footer .ed-footer-brand { width:260px; padding:13px 16px; }
 .ed-site-footer .ed-footer-address p { font-size:25px; max-width:25ch; }
 .ed-site-footer .ed-footer-phone { grid-column:auto; gap:16px; }
 .ed-site-footer .ed-footer-phone > a:first-child { font-size:24px; }
 .ed-site-footer .ed-footer-columns { grid-template-columns:1fr 1fr; gap:30px 28px; padding-block:30px; }
 .ed-site-footer .ed-footer-column h3 { font-size:19px; margin-bottom:5px; }
 .ed-site-footer .ed-footer-column a, .ed-site-footer .shaolin-cookie-settings { font-size:14px; min-height:36px; }
 .ed-site-footer .ed-footer-legal { grid-template-columns:1fr; gap:16px; }
}
@media (max-width:400px) {
 .ed-site-header .ed-brand { width:200px; }
 .ed-site-header .ed-experience strong { font-size:15px; }
 .ed-site-header .ed-experience span { font-size:10px; }
 .ed-site-header .ed-masthead { gap:14px 10px; }
 .ed-site-header .ed-header-contact { gap:10px; }
 .ed-site-header .ed-header-contact .ed-shell-button { gap:10px; padding-inline:12px; font-size:12px; }
 .ed-site-header .ed-header-contact .ed-shell-button svg { width:16px; height:16px; }
 .ed-site-header .ed-primary-nav { gap:11px; }
 .ed-site-header .ed-primary-nav a { font-size:12px; }
 .ed-site-footer .ed-footer-columns { gap:26px 20px; }
 .ed-site-footer .ed-footer-column h3 { font-size:17px; }
 .ed-site-footer .ed-footer-column a, .ed-site-footer .shaolin-cookie-settings { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
 .ed-site-header *, .ed-site-footer *, .sh-contact-dock * { animation:none !important; transition:none !important; }
 .ed-shell-button:active { transform:none; }
}
/* Fit the actual content viewport, including a desktop scrollbar at 320 px. */
@media (max-width:340px) {
 .ed-site-header .ed-brand { width:180px; }
 .ed-site-header .ed-primary-nav { gap:7px; }
}

/* The restored wordmark has a dedicated warm-ivory asset for the dark field. */
.ed-site-footer .ed-footer-brand{padding:0;background:transparent;border:0;width:min(320px,100%)}
.ed-site-footer .ed-footer-brand img{filter:none;opacity:1}
.ed-site-footer .ed-footer-column a[href^="tel:"] img{filter:brightness(0) invert(91%) sepia(24%) saturate(374%) hue-rotate(345deg)}
.ed-site-footer .ed-footer-column a,.ed-site-footer .shaolin-cookie-settings{font-weight:500}
.ed-site-footer .ed-footer-contact{border-bottom:0}
@media(min-width:3000px){.ed-site-footer .ed-footer-brand{width:360px}}

/* A compact contact control stays inside the outer desktop margin. */
.sh-contact-dock{right:16px;bottom:20px}
.sh-contact-dock>summary{width:52px;height:52px;min-height:52px;padding:0;border-radius:6px}
.sh-contact-dock>summary>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Appointment: shared introduction, callback form, and a direct phone alternative. */
html.shaolin-consult-open,body.shaolin-consult-open{overflow:hidden!important}
.shaolin-consult-modal{padding:24px!important;overflow:hidden!important}
.shaolin-consult-modal .shaolin-consult-backdrop{background:rgba(9,31,26,.56)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
.shaolin-consult-modal .shaolin-consult-dialog{width:min(1080px,100%)!important;max-width:1080px!important;max-height:calc(100dvh - 48px)!important;display:grid!important;padding:40px!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;grid-template-areas:"intro intro" "phone form" "offer form";grid-template-rows:auto auto 1fr;gap:24px 36px;background:var(--ed-paper) url('../images/art/refinement-paper-perf.webp') center/1536px auto!important;border:0!important;border-top:5px solid var(--ed-red)!important;border-radius:0!important;box-shadow:0 20px 70px #061c2638!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.shaolin-consult-modal .shaolin-consult-close{width:44px;height:44px;min-height:44px;right:10px;top:8px;padding:0;border:0;border-radius:4px;background:var(--ed-paper);color:var(--ed-ink)}
.shaolin-consult-modal .shaolin-consult-copy{grid-area:intro;padding-right:32px}
.shaolin-consult-modal .shaolin-consult-copy h2{margin:0 0 14px!important;font:500 40px/1.2 'Literata',Georgia,serif!important;letter-spacing:-.025em!important;color:var(--ed-ink)!important;text-wrap:balance}
.shaolin-consult-modal .shaolin-consult-copy p{margin:0;max-width:68ch;font:500 18px/1.55 'Golos Text',sans-serif;color:var(--ed-ink)}
.shaolin-consult-modal .shaolin-consult-form{grid-area:form;align-self:start;background:#f7efdf!important;border:0!important;margin:0!important;padding:26px!important;gap:18px;box-shadow:none!important;border-radius:2px!important}
.shaolin-consult-modal .shaolin-consult-form label>span{font:600 16px/1.4 'Golos Text',sans-serif;color:var(--ed-ink);letter-spacing:0;text-transform:none}
.shaolin-consult-modal .shaolin-consult-form input{min-height:54px;border:1px solid #a99e87!important;background:#fffcf5!important;border-radius:4px;font:500 17px/1.5 'Golos Text',sans-serif;color:var(--ed-ink);padding:12px 14px}
.shaolin-consult-modal .shaolin-consult-form input[aria-invalid="true"]{border-color:var(--ed-red)!important}
.shaolin-consult-modal .shaolin-consult-form input::placeholder{color:#686e60;opacity:1}
.shaolin-consult-modal .shaolin-consult-form .shaolin-ref-btn{min-height:54px!important;padding:14px 18px!important;background:var(--ed-red)!important;color:#fff6e7!important;border:1px solid var(--ed-red)!important;border-radius:4px!important;font:600 17px/1.4 'Golos Text',sans-serif!important;box-shadow:none!important;white-space:normal}
.shaolin-consult-modal .shaolin-consult-form .shaolin-ref-btn:disabled{opacity:.7;cursor:wait}
.shaolin-consult-modal .shaolin-consult-policy{margin:0;font:500 14px/1.6 'Golos Text',sans-serif!important;color:#425446!important}
.shaolin-consult-modal .shaolin-consult-policy a{color:var(--ed-ink);text-underline-offset:3px}
.shaolin-consult-modal .shaolin-consult-phone{grid-area:phone;align-self:start;padding:28px;background:linear-gradient(180deg,rgba(16,61,52,.95),rgba(16,61,52,.74)),url('../images/art/footer-jade-landscape-v1.webp') 72% bottom/auto 100%;color:#fff3db}
.shaolin-consult-modal .shaolin-consult-phone h3{margin:0 0 18px;font:500 23px/1.35 'Literata',Georgia,serif;color:inherit;letter-spacing:-.015em}
.shaolin-consult-modal .shaolin-consult-phone>a{display:flex;align-items:center;gap:12px;min-height:44px;margin:0 0 12px;font:600 clamp(23px,2.1vw,30px)/1.35 'Golos Text',sans-serif;color:inherit;text-decoration:none;white-space:nowrap;letter-spacing:-.035em}
.shaolin-consult-modal .shaolin-consult-phone svg{flex:none;color:#dfc084}
.shaolin-consult-modal .shaolin-consult-phone p{margin:0;max-width:30ch;font:500 16px/1.55 'Golos Text',sans-serif;color:#f3e5c9}
.shaolin-consult-modal .shaolin-consult-offer{grid-area:offer;display:flex;align-items:flex-start;gap:16px;align-self:start;padding:0 8px}
.shaolin-consult-modal .shaolin-consult-offer-badge{display:grid;place-items:center;flex:none;width:72px;min-height:56px;background:var(--ed-red);color:#fff3db;font:600 23px/1.2 'Golos Text',sans-serif;border-radius:2px}
.shaolin-consult-modal .shaolin-consult-offer h3{margin:0 0 5px;font:600 16px/1.4 'Golos Text',sans-serif;color:var(--ed-ink)}
.shaolin-consult-modal .shaolin-consult-offer-price{margin:0 0 6px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font:500 15px/1.5 'Golos Text',sans-serif;color:#4b5746}
.shaolin-consult-modal .shaolin-consult-offer-price strong{font-size:25px;line-height:1.3;font-weight:600;color:var(--ed-red)}
.shaolin-consult-modal .shaolin-consult-offer-note{margin:0;max-width:32ch;font:500 14px/1.5 'Golos Text',sans-serif;color:#4b5746}
.shaolin-consult-modal .shaolin-consult-error{font:500 15px/1.5 'Golos Text',sans-serif;color:#852a22;border:0;border-left:3px solid var(--ed-red);padding:12px 14px}
.shaolin-consult-modal .shaolin-consult-error a{display:flex;align-items:center;min-height:44px;color:inherit;font-weight:600;text-underline-offset:3px}
.shaolin-consult-modal .shaolin-consult-error a[hidden]{display:none}
.shaolin-consult-modal :is(button,a,input):focus-visible{outline:2px solid var(--ed-red)!important;outline-offset:3px!important;box-shadow:none!important}
.shaolin-consult-modal .shaolin-consult-phone a:focus-visible{outline-color:#dfc084!important}
.shaolin-consult-modal .shaolin-consult-copy h2:focus{outline:none}
.shaolin-consult-modal .shaolin-consult-success h3{font:500 34px/1.25 'Literata',Georgia,serif!important;color:var(--ed-ink)}
.shaolin-consult-modal .shaolin-consult-success p{font:500 17px/1.6 'Golos Text',sans-serif;color:var(--ed-ink)}
.shaolin-consult-modal.is-success .shaolin-consult-dialog{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"success";grid-template-rows:auto}
.shaolin-consult-modal.is-success :is(.shaolin-consult-phone,.shaolin-consult-offer){display:none}
.shaolin-consult-modal.is-success .shaolin-consult-success{grid-area:success}
@media(hover:hover) and (pointer:fine){.shaolin-consult-modal .shaolin-consult-close:hover{background:#dfd2ba}.shaolin-consult-modal .shaolin-consult-form .shaolin-ref-btn:hover{background:#852a22!important;border-color:#852a22!important}.shaolin-consult-modal .shaolin-consult-phone>a:hover{color:#dfc084}}
@media(max-width:900px){
 .shaolin-consult-modal{padding:12px!important}
 .shaolin-consult-modal .shaolin-consult-dialog{padding:48px 24px 24px!important;max-height:calc(100dvh - 24px)!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"intro" "form" "phone" "offer";grid-template-rows:auto;gap:24px;scrollbar-gutter:auto}
 .shaolin-consult-modal .shaolin-consult-close{position:fixed;top:16px!important;right:28px!important;z-index:calc(var(--shaolin-z-modal) + 1)}
 .shaolin-consult-modal .shaolin-consult-copy{padding:0}
 .shaolin-consult-modal .shaolin-consult-copy h2{font-size:32px!important;max-width:26ch;text-wrap:pretty}
 .shaolin-consult-modal .shaolin-consult-copy p{font-size:17px}
 .shaolin-consult-modal .shaolin-consult-form{padding:0!important;background:transparent!important}
 .shaolin-consult-modal .shaolin-consult-phone{padding:24px}
 .shaolin-consult-modal .shaolin-consult-phone h3{font-size:22px;margin-bottom:12px}
 .shaolin-consult-modal .shaolin-consult-phone>a{font-size:28px}
 .shaolin-consult-modal .shaolin-consult-offer{padding:0}
}
@media(max-width:400px){
 .shaolin-consult-modal .shaolin-consult-dialog{padding:48px 18px 22px!important;gap:22px}
 .shaolin-consult-modal .shaolin-consult-copy h2{font-size:29px!important;margin-bottom:12px!important}
 .shaolin-consult-modal .shaolin-consult-copy p{font-size:16px;line-height:1.5}
 .shaolin-consult-modal .shaolin-consult-phone{padding:20px}
 .shaolin-consult-modal .shaolin-consult-phone>a{font-size:24px;gap:10px}
 .shaolin-consult-modal .shaolin-consult-offer{gap:12px}
 .shaolin-consult-modal .shaolin-consult-offer-badge{width:64px;font-size:21px}
}


/* Connected opening: the explanation belongs to its title; actions keep a clear reading order. */
.wp-site-blocks main .ie-page-intro.ie-page-intro-connected{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:32px 56px}
.wp-site-blocks main .ie-page-intro-connected .ie-page-intro-copy{align-self:auto;max-width:70ch}
.wp-site-blocks main .ie-page-intro-connected .ie-page-intro-copy>p{margin-top:18px;max-width:56ch}
.wp-site-blocks main .ie-page-intro-connected>.ie-text-link{margin:0 0 3px;max-width:28ch;font-size:var(--ed-detail)}
@media(max-width:1000px){.wp-site-blocks main .ie-page-intro.ie-page-intro-connected{grid-template-columns:1fr;gap:22px}.wp-site-blocks main .ie-page-intro-connected .ie-page-intro-copy>p{margin-top:16px}}

.wp-site-blocks main .ie-page-intro-connected .ie-page-intro-copy>.wp-block-post-excerpt{margin-top:18px}

/* Apply the collapsed mobile state before the deferred menu code runs. */
@media(max-width:760px){
 .shaolin-has-js .ed-site-header:not(.is-menu-open) .ed-primary-nav{display:none!important}
 .shaolin-has-js .ed-site-header:not(.is-menu-open) .ed-header-rule{border:0}
}

/* Mobile reading system. Desktop rules above remain the source of truth >800px. */
@media (max-width:800px) {
 :root {
  --ed-frame:calc(100% - 32px);
  --ed-body:16px; --ed-lead:16px; --ed-detail:16px;
  --ed-label:15px; --ed-subhead:20px; --ed-space:40px;
  --shaolin-type-h1:30px; --shaolin-type-h2:27px;
  --shaolin-type-h3:20px; --shaolin-type-content-h2:24px;
  --shaolin-section-space:40px;
 }
 html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
 body { font-size:16px; line-height:1.5; }
 .ed-site-header, .ed-site-footer { font-size:16px; line-height:1.5; }
 .wp-site-blocks main .ie-page-intro {
  padding-block:24px; gap:14px; grid-template-columns:minmax(0,1fr);
 }
 .wp-site-blocks main .ie-page-intro h1 {
  font-size:30px!important; line-height:1.2!important;
  max-width:100%; overflow-wrap:anywhere!important;
 }
 .wp-site-blocks main .ie-page-intro-copy>p,
 .wp-site-blocks main .ie-page-intro-copy .wp-block-post-excerpt__excerpt {
  font-size:16px; line-height:1.5; font-weight:400;
 }
 .wp-site-blocks main .ie-page-intro.ie-page-intro-connected { gap:14px; }
 .wp-site-blocks main .ie-page-intro-connected .ie-page-intro-copy>p,
 .wp-site-blocks main .ie-page-intro-connected .ie-page-intro-copy>.wp-block-post-excerpt { margin-top:12px; }
 .wp-site-blocks main .ie-page-intro-connected>.ie-text-link { min-height:44px; }

 /* Article, individual review and generic WordPress templates use one inset. */
 .wp-site-blocks main.shaolin-single-page {
  font-size:16px!important; line-height:1.5!important; padding-bottom:36px!important;
 }
 .wp-site-blocks .shaolin-single-page>.shaolin-page-hero {
  width:calc(100% - 32px)!important; max-width:none!important;
  margin:0 auto 20px!important; padding:24px 16px!important; min-height:0;
 }
 .wp-site-blocks .shaolin-single-page .shaolin-page-hero h1 {
  font-size:30px!important; line-height:1.2!important;
  max-width:100%; overflow-wrap:anywhere!important;
 }
 .wp-site-blocks .shaolin-single-page .shaolin-page-hero :is(p,.wp-block-post-excerpt) {
  font-size:16px!important; line-height:1.5!important; margin-block:12px 0!important;
 }
 .wp-site-blocks .shaolin-single-page .shaolin-page-hero .shaolin-meta {
  font-size:14px!important; margin-top:16px!important;
 }
 .wp-site-blocks .shaolin-single-page>.shaolin-featured-media {
  width:calc(100% - 32px)!important; max-width:none!important;
  margin:0 auto 24px!important;
 }
 .wp-site-blocks .shaolin-single-page>.shaolin-content-wrap {
  width:calc(100% - 32px)!important; max-width:none!important;
  padding:0!important; margin-inline:auto!important;
  font-size:16px!important; line-height:1.5!important;
 }
 .wp-site-blocks .shaolin-single-page .shaolin-content-wrap>.entry-content {
  width:100%!important; max-width:none!important; margin-inline:0!important;
 }
 .wp-site-blocks .shaolin-single-page .entry-content :is(p,li,blockquote) {
  font-size:16px!important; line-height:1.5!important; font-weight:400;
  overflow-wrap:anywhere;
 }
 .wp-site-blocks .shaolin-single-page .entry-content>p { margin-block:0 14px!important; }
 .wp-site-blocks .shaolin-single-page .entry-content h2 {
  font-size:24px!important; line-height:1.25!important; margin-block:28px 12px!important;
 }
 .wp-site-blocks .shaolin-single-page .entry-content h3 {
  font-size:20px!important; line-height:1.3!important; margin-block:24px 10px!important;
 }
 .wp-site-blocks .shaolin-single-page .entry-content>:first-child { margin-top:0!important; }
 .wp-site-blocks .shaolin-single-page .entry-content :is(ul,ol) { margin-block:14px!important; }
 .wp-site-blocks .shaolin-article-page .entry-content>ul>li { padding-block:12px!important; }
 .wp-site-blocks .shaolin-single-page .entry-content :is(pre,.wp-block-table) {
  max-width:100%; overflow-x:auto; overscroll-behavior-x:contain;
 }
 .wp-site-blocks .shaolin-single-page .shaolin-content-wrap>.shaolin-note,
 .wp-site-blocks .shaolin-single-page .shaolin-content-wrap>.shaolin-related-cta {
  width:100%!important; max-width:none!important; margin:24px 0 0!important;
  padding:16px!important; box-sizing:border-box;
 }
 .wp-site-blocks .shaolin-single-page .shaolin-related-cta h2 { font-size:24px!important; }
 .wp-site-blocks .shaolin-single-page :is(.shaolin-note,.shaolin-related-cta)>p {
  font-size:16px!important; line-height:1.5!important; margin-block:12px!important;
 }
 .wp-site-blocks .shaolin-single-page .wp-block-button__link {
  min-height:44px; padding:12px 16px!important; font-size:15px!important;
  line-height:1.35!important; white-space:normal; overflow-wrap:anywhere;
 }

 /* The footer retains every destination with compact groups and usable targets. */
 .ed-site-footer .ed-footer-frame { padding-block:28px 20px; }
 .ed-site-footer .ed-footer-contact { gap:20px; padding-bottom:24px; }
 .ed-site-footer .ed-footer-brand { width:min(220px,100%); }
 .ed-site-footer .ed-footer-address { gap:8px; }
 .ed-site-footer .ed-footer-address p { font-size:22px; line-height:1.3; }
 .ed-site-footer .ed-footer-route { min-height:44px; }
 .ed-site-footer .ed-footer-phone { gap:12px; }
 .ed-site-footer .ed-footer-phone>a:first-child { font-size:22px; min-height:44px; display:flex; align-items:center; }
 .ed-site-footer .ed-shell-button { min-height:44px; min-width:0; padding:12px 16px; }
 .ed-site-footer .ed-footer-columns { gap:24px 16px; padding-block:24px; }
 .ed-site-footer .ed-footer-column { gap:2px; }
 .ed-site-footer .ed-footer-column h3 { font-size:18px; line-height:1.3; margin-bottom:6px; }
 .ed-site-footer .ed-footer-column a,
 .ed-site-footer .shaolin-cookie-settings { min-height:44px; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
 .ed-site-footer .ed-footer-legal { gap:12px; padding-top:18px; }
 .ed-site-footer .ed-footer-legal p { font-size:12px; line-height:1.5; }

 /* Preserve the full consent explanation; equal actions share a row. */
 .shaolin-cookie-consent { max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain; }
 .shaolin-cookie-consent-inner { grid-template-columns:minmax(0,1fr); padding:12px; gap:10px; }
 .shaolin-cookie-consent-copy p { font-size:14px; line-height:1.45; }
 .shaolin-cookie-consent-links { gap:4px 12px; }
 .shaolin-cookie-consent-links a { font-size:14px; line-height:1.4; }
 .shaolin-cookie-consent-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .shaolin-cookie-consent-actions .shaolin-ref-btn { min-width:0; min-height:44px!important; padding:10px 12px!important; font-size:15px!important; }

 /* Appointment sheet stays readable with a keyboard and in short landscape viewports. */
 .shaolin-consult-modal .shaolin-consult-dialog {
  padding:48px 18px max(18px,env(safe-area-inset-bottom))!important; gap:20px;
 }
 .shaolin-consult-modal .shaolin-consult-copy h2 { font-size:28px!important; line-height:1.2!important; margin-bottom:12px!important; }
 .shaolin-consult-modal .shaolin-consult-copy p,
 .shaolin-consult-modal .shaolin-consult-phone p { font-size:16px; line-height:1.5; }
 .shaolin-consult-modal .shaolin-consult-form :is(input,textarea,select) { font-size:16px!important; min-height:48px; }
 .shaolin-consult-modal .shaolin-consult-form .shaolin-ref-btn {
  min-height:48px; padding:12px 16px!important; font-size:15px!important; line-height:1.4!important;
 }
 .shaolin-consult-modal .shaolin-consult-phone { padding:18px; }
 .shaolin-consult-modal .shaolin-consult-phone h3 { font-size:20px; }
 .shaolin-consult-modal .shaolin-consult-phone>a { font-size:24px; overflow-wrap:anywhere; }
 .shaolin-consult-modal .shaolin-consult-offer { gap:12px; }
 .shaolin-consult-modal .shaolin-consult-offer-badge { width:64px; font-size:21px; }
}
@media (max-width:760px) {
 .ed-site-header .ed-masthead { gap:8px 12px; padding-block:10px; }
 .ed-site-header .ed-brand { width:clamp(160px,48vw,200px); }
 .ed-site-header .ed-header-phone { gap:8px; font-size:20px; }
 .ed-site-header .ed-header-phone::before {
  content:"";
  flex:0 0 18px;
  width:18px;
  height:18px;
  background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.79a2 2 0 0 1-.45 2.11L8.09 9.89a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.89.33 1.83.56 2.79.69A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
 }
 .ed-site-header .ed-header-contact { gap:10px; }
 .ed-site-header .ed-header-contact .ed-shell-button { padding:10px 12px; font-size:13px; }
 .wp-site-blocks .ed-site-header .ed-primary-nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
 .wp-site-blocks .ed-site-header .ed-primary-nav a { font-size:15px; }
}
/* Keep the phone and appointment action on one row on the narrowest screens. */
@media (max-width:359px) {
 body:not(.home) .ed-site-header .ed-header-phone { font-size:18px; }
 body:not(.home) .ed-site-header .ed-header-phone::before { display:none; }
}
