/* Scoped editorial layout for temple introductions. Other dialogs retain their UI. */
#content-dialog.temple-story-dialog{width:min(1200px,calc(100vw - 64px));max-width:none;height:min(820px,86svh);max-height:86svh;border:2px solid #e3cd95;border-radius:28px;background:#fffcf4;color:#27251f;box-shadow:0 9px 0 #b9913533,0 28px 90px #28271f40;font-family:SceneSans,sans-serif}
#content-dialog.temple-story-dialog #dialog-content{height:100%;max-height:none;overflow:hidden;padding:0;scrollbar-gutter:auto}
#content-dialog.temple-story-dialog .dialog-close{top:16px;right:16px;width:44px;height:44px;border:2px solid #d5b15e;background:#fffcf4;box-shadow:0 3px 0 #e4d2a3;color:#3b3628;transition:transform .18s}
#content-dialog.temple-story-dialog .dialog-close:hover{transform:translateY(-2px)}
#content-dialog.temple-story-dialog .dialog-close:focus-visible{outline:3px solid #8b5f21;outline-offset:3px}
.temple-story-layout{height:100%;display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%)}
.temple-story-art{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:38px 26px;background:#fbf0d5 url('assets/home-wave-pattern.svg') repeat;border-right:1px solid #ead9ae}
#content-dialog .temple-story-place{margin:0;padding:7px 18px;border:1px solid #dfc68a;border-radius:99px;color:#7b602a;font-size:13px;font-weight:600;line-height:1.6;letter-spacing:.06em;text-align:center}
.temple-story-picture{display:flex;align-items:center;justify-content:center;width:100%;min-height:0}
.temple-story-picture img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}
.temple-story-art figcaption{color:#84744e;font-size:11px;line-height:1.7;text-align:center}
.temple-story-article{min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:54px 48px 40px;scrollbar-width:thin;scrollbar-color:#cfb575 transparent;outline-offset:-5px}
#content-dialog .temple-story-kicker{margin:0 30px 12px 0;color:#8a6a2c;font-size:10px;font-weight:600;line-height:1.7;letter-spacing:.12em;overflow-wrap:anywhere}
#content-dialog .temple-story-title{margin:0 0 20px;font-family:SceneSans,sans-serif;font-size:clamp(25px,2.5vw,34px);font-weight:800;letter-spacing:-.025em;line-height:1.4;text-wrap:balance;color:#27251f}
#content-dialog .temple-story-lead{margin:0;color:#655c48;font-size:16px;font-weight:500;line-height:1.95;text-wrap:pretty}
.temple-story-milestone{display:flex;align-items:center;gap:20px;margin:28px 0 30px;padding:18px 0;border-top:1px solid #e8dcc0;border-bottom:1px solid #e8dcc0}
.temple-story-milestone>strong{flex:none;font-size:32px;line-height:1.2;font-weight:750;letter-spacing:-.04em;color:#a17b2d;font-variant-numeric:lining-nums tabular-nums}
.temple-story-label{color:#94836b;font-size:11px;line-height:1.7;letter-spacing:.05em}
#content-dialog .temple-story-milestone p{margin:3px 0 0;color:#4e4738;font-size:13px;line-height:1.65}
.temple-story-section+.temple-story-section{margin-top:28px;padding-top:26px;border-top:1px solid #e8dcc0}
#content-dialog .temple-story-section h3{display:flex;align-items:center;gap:10px;margin:0 0 15px;font-size:17px;line-height:1.5;font-weight:750;letter-spacing:.02em;color:#3c3527}
.temple-story-section h3::before{content:'';width:5px;height:16px;flex:none;border-radius:4px;background:#e6bc4e}
#content-dialog .temple-story-section p{margin:0 0 16px;font-size:14px;font-weight:400;line-height:1.95;color:#5d584d;overflow-wrap:anywhere;text-wrap:pretty}
#content-dialog .temple-story-section p:last-child{margin-bottom:0}
.temple-story-visit dl{margin:0}
.temple-story-visit dl>div{display:grid;grid-template-columns:86px minmax(0,1fr);gap:14px;padding:9px 0}
.temple-story-visit dt{font-size:12px;line-height:1.85;color:#887553}
.temple-story-visit dd{margin:0;font-size:13px;line-height:1.85;color:#4c4639;overflow-wrap:anywhere}
.temple-story-visit a{color:#6a5222;text-decoration-color:#c9aa63;text-underline-offset:4px}
#content-dialog p.temple-story-contact-note{margin-top:12px;font-size:12px;color:#82765d}
#content-dialog .temple-story-sources>p{font-size:12px;color:#82765d;line-height:1.8}
.temple-story-sources ul{padding:0;margin:12px 0 0;list-style:none}
.temple-story-sources li+li{margin-top:9px}
.temple-story-sources a{display:flex;align-items:baseline;justify-content:space-between;gap:14px;color:#735522;font-size:12px;line-height:1.7;text-decoration:none}
.temple-story-sources a:hover span:first-child{text-decoration:underline;text-underline-offset:4px}
.temple-story-sources a>span:last-child{flex:none;color:#a7812b}
.temple-story-sources a:focus-visible,.temple-story-visit a:focus-visible{outline:2px solid #ad812b;outline-offset:4px;border-radius:2px}
html[lang=en] .temple-story-kicker{letter-spacing:.08em}
html[lang=en] #content-dialog .temple-story-title{font-size:30px;letter-spacing:-.035em;line-height:1.3}
html[lang=en] #content-dialog .temple-story-section p{line-height:1.8}
@media(min-width:761px) and (max-width:1050px){.temple-story-article{padding:54px 30px 32px}.temple-story-art{padding:32px 18px}.temple-story-layout{grid-template-columns:minmax(0,39%) minmax(0,61%)}}
@media(max-width:760px){
 #content-dialog.temple-story-dialog{width:calc(100vw - 24px);height:auto;max-height:90svh;border-radius:22px}
 #content-dialog.temple-story-dialog #dialog-content{height:auto;max-height:calc(90svh - 4px);overflow-y:auto;overscroll-behavior:contain}
 #content-dialog.temple-story-dialog .dialog-close{top:12px;right:12px;width:40px;height:40px}
 .temple-story-layout{height:auto;display:block}
 .temple-story-art{padding:30px 28px 20px;gap:14px;border-right:0;border-bottom:1px solid #ead9ae}
 #content-dialog .temple-story-place{align-self:flex-start;max-width:calc(100% - 38px);font-size:11px;padding:5px 12px}
 .temple-story-picture img{height:220px;max-width:100%;object-fit:contain}
 .temple-story-art figcaption{font-size:10px}
 .temple-story-article{overflow:visible;padding:28px 24px 32px;scrollbar-gutter:auto}
 #content-dialog .temple-story-title{font-size:27px;margin-bottom:15px}
 html[lang=en] #content-dialog .temple-story-title{font-size:27px}
 #content-dialog .temple-story-lead{font-size:15px;line-height:1.85}
 .temple-story-milestone{gap:16px;margin:23px 0 26px}
 .temple-story-milestone>strong{font-size:29px}
 .temple-story-visit dl>div{grid-template-columns:72px minmax(0,1fr);gap:10px}
}
@media(prefers-reduced-motion:reduce){#content-dialog.temple-story-dialog .dialog-close{transition:none}}
