.history-rectors{margin:32px 0 48px;padding:26px 0 20px;border-block:1px solid var(--line);color:var(--fg);min-width:0}
.history-rectors-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.content .history-rectors h2{font:inherit;font-size:1.5rem;font-weight:650;line-height:1.3;margin:0;text-wrap:balance}
.history-rectors-controls{display:flex;gap:8px;flex-shrink:0}
.history-rectors-controls[hidden]{display:none}
.history-rectors-controls button{display:grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:0;background:var(--bg);color:var(--fg);cursor:pointer}
.history-rectors-controls button:hover:not(:disabled){background:var(--accent);color:var(--bg);border-color:var(--accent)}
.history-rectors-controls button:disabled{opacity:.35;cursor:default}
.history-rectors-controls svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.history-rectors-track{display:flex;gap:24px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--accent) var(--surface);padding:0 0 16px;min-width:0}
.content .history-rector{flex:0 0 calc((100% - 72px)/4);min-width:0;margin:0;scroll-snap-align:start;scroll-margin:0}
.content .history-rector img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center 25%;margin:0;background:var(--surface);border-radius:0;cursor:default}
.content .history-rector figcaption{margin-top:13px;font:inherit;font-size:.94rem;line-height:1.5;font-weight:550;color:var(--fg);text-align:left}
.history-rectors-foot{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-top:12px}
.content .history-rectors-count{margin:0;white-space:nowrap;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.history-rectors-sources{font-size:.8rem;color:var(--muted);max-width:65ch}
.history-rectors-sources summary{cursor:pointer;text-align:right;text-decoration:underline;text-underline-offset:4px}
.history-rectors-sources p{line-height:1.6}.history-rectors-sources a{color:var(--accent)}
.history-rectors :focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.history-rectors ::selection{background:var(--accent);color:var(--bg)}
.history-rector-open{display:block;position:relative;text-decoration:none;color:var(--fg)}
.content .history-rector-open img{cursor:pointer}
.history-rector-more{display:flex;align-items:center;justify-content:space-between;padding:9px 0;font-size:.75rem;color:var(--accent);border-bottom:1px solid var(--line)}
.history-rector-more svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.history-rector-open:hover .history-rector-more{text-decoration:underline;text-underline-offset:3px}
.history-portrait-active{overflow:hidden}
dialog.history-portrait-dialog{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;background:var(--bg);color:var(--fg)}
.history-portrait-dialog::backdrop{background:rgba(17,18,20,.76)}
.history-portrait-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.content .history-portrait-layout>img{display:block;width:100%;height:100%;max-height:calc(100dvh - 32px);min-height:440px;object-fit:contain;background:var(--surface);margin:0}
.history-portrait-copy{padding:70px 36px 40px;align-self:center}
.content .history-portrait-copy h2{font-size:1.8rem;line-height:1.25;margin:0 0 28px}
.content .history-portrait-copy h3{font:inherit;font-weight:650;margin:0 0 16px}
.history-portrait-copy ul{padding-left:20px;line-height:1.7;margin:0 0 28px}
.history-portrait-copy li+li{margin-top:10px}
.history-portrait-copy>a{font-size:.85rem;color:var(--accent);text-underline-offset:4px}
.history-portrait-close{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:44px;height:44px;padding:10px;background:var(--bg);color:var(--fg);border:1px solid var(--line);cursor:pointer}
.history-portrait-close:hover{color:var(--accent)}
.history-portrait-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
@media(max-width:650px){.history-portrait-layout{grid-template-columns:1fr}.content .history-portrait-layout>img{height:42dvh;min-height:0;max-height:none}.history-portrait-copy{padding:24px}.content .history-portrait-copy h2{font-size:1.5rem;margin-bottom:20px}}
@media(max-width:1000px){.content .history-rector{flex-basis:calc((100% - 48px)/3)}}
@media(max-width:650px){.history-rectors{margin-top:24px;padding-top:20px}.history-rectors-track{gap:18px}.content .history-rector{flex-basis:65%}.content .history-rectors h2{font-size:1.2rem}.history-rectors-head{gap:12px}.history-rectors-foot{gap:12px}.history-rectors-sources{max-width:70%}}
@media print{.history-rectors-track{display:grid;grid-template-columns:repeat(4,1fr);overflow:visible}.history-rectors-controls,.history-rectors-foot{display:none}.history-rector{break-inside:avoid}}

/* The wider page canvas fits six portraits without enlarging individual covers. */
@media(min-width:1400px){.content .history-rector{flex-basis:calc((100% - 120px)/6)}}
/* History is a full-width article with editable periods and archival illustrations. */
.content .history-story>p{max-width:none;font-size:1.0625rem;line-height:1.8;margin:18px 0}
.content .history-story>h2{font-size:clamp(1.45rem,2.1vw,2rem);line-height:1.3;margin:48px 0 20px;text-wrap:balance}
.content .history-story>h2:first-child{margin-top:0}
.content .history-illustrations{display:block;margin:36px 0;padding:24px 0;border-block:1px solid var(--line)}
.content .history-illustrations figure{margin:0;min-width:0}
.content .history-illustrations img{display:block;width:100%;height:clamp(220px,32vw,460px);max-height:none;aspect-ratio:auto;object-fit:contain;background:var(--surface)}
.content .history-illustrations figcaption{margin:12px 0 0;padding:0;line-height:1.6;font-size:.9rem;overflow-wrap:anywhere}
.content .history-gallery{gap:32px 24px;align-items:start}
.content .history-gallery figure{display:flex;flex-direction:column;gap:10px;height:auto;min-width:0;margin:0}
.content .history-gallery a,.content .history-illustrations a{display:block;height:auto}
.content .history-gallery img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:4/3;object-fit:contain;background:var(--surface)}
.content .history-gallery figcaption{position:static;max-height:none;overflow:visible;margin:0;padding:0;font-size:.9rem;line-height:1.6;color:var(--fg);background:none;overflow-wrap:anywhere}
@media(max-width:700px){.content .history-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.content .history-story>p{font-size:1rem;line-height:1.75}.content .history-story>h2{margin-top:36px}.content .history-illustrations{padding:16px 0}}
@media(max-width:480px){.content .history-gallery{grid-template-columns:1fr}}
