body #history{max-width:1000px;margin:0 auto}
.history-heading{text-align:center;margin:0 auto 28px;max-width:760px}
#history .history-heading h1{margin:8px 0 16px;text-align:center}
.history-intro{font-size:calc(18px * var(--text-scale,1));line-height:1.55;margin:0 auto 16px}
.history-coverage{font-size:calc(13px * var(--text-scale,1));color:#74394c;font-weight:650;margin:0 auto}
.history-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(160px,1fr);gap:14px;padding:20px;border:2px solid #b49aa3;border-radius:8px;background:#fffdfa;scroll-margin-top:calc(var(--site-header-height,176px) + 18px)}
.history-tools label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:650;min-width:0}
.history-tools :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:46px;border:1px solid #a98b95;border-radius:5px;background:white;padding:10px;color:#33272b;font:inherit}
#history-results{grid-column:1/-1;margin:0;font-size:13px;color:#66585a;text-align:center;max-width:none}
.history-years{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:18px 0}
.history-years a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid #b49aa3;border-radius:5px;background:#eadce1;color:#623345;font-size:14px;font-weight:700;text-decoration:none}
.history-reading-note{font-size:calc(13px * var(--text-scale,1));line-height:1.5;color:#66585a;max-width:none;margin:16px 0}
.history-year,.history-undated,.history-event{scroll-margin-top:calc(var(--site-header-height,176px) + 18px)}
#history .history-year>h2,#history .history-undated>h2{text-align:center;margin:36px 0 20px;color:#623345;font:700 calc(30px * var(--text-scale,1))/1.2 Georgia,serif}
.history-timeline{list-style:none;padding:0;margin:0;display:grid;gap:16px}
.history-event{min-width:0;margin:0;padding:0;overflow-wrap:anywhere}
.history-event>article{border:2px solid #b49aa3;border-radius:8px;background:#fffdfa;padding:22px;box-shadow:none}
#history .history-event h3,#history .history-undated h3{font:700 calc(22px * var(--text-scale,1))/1.3 Georgia,serif;margin:8px 0 10px;color:#4c2736;text-align:center}
#history .history-date{color:#74394c;font-weight:750;font-size:calc(14px * var(--text-scale,1));text-align:center;margin:0;max-width:none}
#history .history-kind{text-align:center;max-width:none;margin:0 0 14px;font-size:calc(12px * var(--text-scale,1));color:#76616a}
#history .history-event p:not(.history-date,.history-kind){font-size:calc(15px * var(--text-scale,1));line-height:1.6;max-width:none;margin:12px 0}
.history-sources{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin-top:14px}
#history .history-sources a,#history .history-undated a{color:#1459b5;text-decoration:underline;text-underline-offset:3px;font-size:calc(14px * var(--text-scale,1));line-height:1.5}
#history .history-source-note{font-size:calc(12px * var(--text-scale,1))!important;color:#76616a}
.history-records{margin:18px 0;border:1px solid #b49aa3;border-radius:8px;background:#f0e6e9;padding:0 14px 14px}
.history-records>summary{padding:16px 4px;font-weight:700;color:#623345;cursor:pointer}
.history-records:not([open]){padding-bottom:0}
.history-records .history-event>article{border-width:1px}
.history-service-lines{font-size:calc(13px * var(--text-scale,1));padding-left:20px;line-height:1.6}
.history-service-lines li+li{margin-top:8px}
.history-undated>p{text-align:center;max-width:none;font-size:calc(14px * var(--text-scale,1))}
.history-undated-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.history-undated-grid>article{border:1px solid #b49aa3;border-radius:8px;background:#fffdfa;padding:20px;overflow-wrap:anywhere;text-align:center}
#history .history-undated h3{font-size:calc(19px * var(--text-scale,1))}
.history-undated p{font-size:calc(14px * var(--text-scale,1));line-height:1.55}
.history-return{position:fixed;bottom:18px;right:18px;z-index:40;min-height:44px;display:flex;align-items:center;padding:10px 16px;background:#74394c;color:#fff!important;border:1px solid #fff8;border-radius:6px;box-shadow:0 2px 8px #33252b30;font:700 14px/1.35 system-ui,sans-serif;text-decoration:none}
#history :is(a,input,select,summary):focus-visible{outline:3px solid #1459b5;outline-offset:3px}
#history [hidden]{display:none!important}
@media(max-width:600px){.history-tools{grid-template-columns:1fr;padding:16px;gap:12px}.history-years{gap:6px}.history-years a{padding:8px 11px}.history-event>article{padding:18px 16px}.history-undated-grid{grid-template-columns:1fr}.history-return{right:12px;bottom:12px}.history-intro{font-size:calc(16px * var(--text-scale,1))}.history-records{padding-left:8px;padding-right:8px}}
@media print{.history-tools,.history-years,.history-return{display:none}.history-event{break-inside:avoid}.history-event>article{border:1px solid #888;box-shadow:none}}
