/* Callander only: retain the established shared route presentation. */
.sre-callander-line-hub .sre-callander-story-sources{display:flex;flex-direction:column;gap:.6rem;margin-top:1rem;font-size:.9rem}
.sre-callander-line-hub .sre-callander-story-sources a{overflow-wrap:anywhere}
.sre-callander-line-hub .sre-callander-visits{margin:1.5rem 0 2rem}
.sre-callander-line-hub .sre-callander-engineering-records{margin:2rem 0}
.sre-callander-line-hub .sre-callander-working-grid article{min-width:0;overflow-wrap:anywhere}
@media(min-width:901px){
 .sre-callander-line-hub .sre-callander-line-navigation{display:block}
 .sre-callander-line-hub .sre-line-navigation-title{margin-bottom:1rem;padding:0;border:0}
 .sre-callander-line-hub .sre-line-menu-desktop{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%;gap:.3rem}
 .sre-callander-line-hub .sre-line-menu-desktop a{min-width:0}
}

/* The History chapter tells a chronological story rather than repeating the journey. */
.sre-callander-history-page .sre-callander-hub-hero{min-height:360px;padding-top:3rem;padding-bottom:3rem}
.sre-callander-history-page .sre-callander-history-intro{padding-top:2.5rem;padding-bottom:1.5rem}
.sre-callander-history-page .sre-callander-history-intro>p{max-width:72ch}
.sre-callander-history-page .sre-callander-history-contents{margin-top:1.5rem;padding:1.4rem;background:#f2ecdf;border-left:4px solid #a97730}
.sre-callander-history-page .sre-callander-history-contents ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 2rem;list-style:none;padding:0;margin:1rem 0 0}
.sre-callander-history-page .sre-callander-history-contents a{display:block;color:#25364b;text-decoration:none;line-height:1.45}
.sre-callander-history-page .sre-callander-history-contents a:hover{text-decoration:underline}
.sre-callander-history-page .sre-callander-history-contents span{display:block;font-weight:700;color:#7d3e34;font-size:.85rem}
.sre-callander-history-page .sre-callander-history-section{padding-top:2rem;padding-bottom:2rem;scroll-margin-top:3rem}
.sre-callander-history-page .sre-callander-history-section>header{max-width:950px;margin-bottom:1.4rem}
.sre-callander-history-page .sre-callander-history-section h2{font-size:clamp(1.55rem,2.5vw,2.3rem);line-height:1.15;margin:.5rem 0}
.sre-callander-history-page .sre-callander-history-body{display:grid;gap:2rem;align-items:start}
.sre-callander-history-page .has-image .sre-callander-history-body{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
.sre-callander-history-page .sre-callander-history-text{max-width:75ch;min-width:0}
.sre-callander-history-page .sre-callander-history-text p{line-height:1.75;margin:0 0 1.1rem}
.sre-callander-history-page .sre-callander-history-body figure{margin:0;min-width:0;background:#eee8db}
.sre-callander-history-page .sre-callander-history-body img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.sre-callander-history-page .sre-callander-history-body figcaption{padding:1rem;font-size:.85rem;line-height:1.5;color:#343434}
.sre-callander-history-page .sre-callander-history-body figcaption strong,.sre-callander-history-page .sre-callander-history-body figcaption span{display:block;margin-bottom:.4rem}
.sre-callander-history-page .sre-callander-history-notes{margin-top:1rem;border-top:1px solid #d5cbb8;padding-top:.9rem}
.sre-callander-history-page .sre-callander-history-notes summary{cursor:pointer;color:#7d3e34;font-weight:700}
.sre-callander-history-page .sre-callander-history-notes[open]>p{margin-top:1rem;font-size:.95rem}
.sre-callander-history-page .sre-callander-history-next{font-weight:700;color:#7d3e34}
.sre-callander-history-page .sre-callander-history-dates{scroll-margin-top:3rem;padding-top:1rem;padding-bottom:2rem}
.sre-callander-history-page .sre-callander-history-dates summary{cursor:pointer;font-weight:700;font-size:1.3rem}
.sre-callander-history-page .sre-callander-history-dates ol{padding:0;list-style:none;margin:1rem 0 2rem}
.sre-callander-history-page .sre-callander-history-dates li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1rem;padding:.7rem 0;border-bottom:1px solid #d5cbb8}
.sre-callander-history-page .sre-callander-history-dates time{font-weight:700;color:#7d3e34}
@media(max-width:700px){
 .sre-callander-history-page .sre-callander-hub-hero{min-height:0;padding:2.5rem 1.25rem}
 .sre-callander-history-page .sre-callander-history-contents ol{grid-template-columns:1fr}
 .sre-callander-history-page .has-image .sre-callander-history-body{grid-template-columns:1fr;gap:1.25rem}
 .sre-callander-history-page .sre-callander-history-dates li{grid-template-columns:1fr;gap:.25rem}
}

/* Callander locomotive portraits: full scenes with their interpretation labels. */
.sre-callander-line-hub .sre-callander-rolling-stock .sre-callander-working-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.sre-callander-line-hub .sre-callander-rolling-stock .sre-callander-working-grid article{padding:0;overflow:hidden}
.sre-callander-line-hub .sre-callander-rolling-stock figure{margin:0}
.sre-callander-line-hub .sre-callander-rolling-stock figure img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#ece7de}
.sre-callander-line-hub .sre-callander-rolling-stock figcaption{padding:1rem 1.25rem;background:#f2ecdf;color:#30343b;font-size:.85rem;line-height:1.5;border-bottom:1px solid #d8ccba}
.sre-callander-line-hub .sre-callander-rolling-stock figcaption strong,.sre-callander-line-hub .sre-callander-rolling-stock figcaption span,.sre-callander-line-hub .sre-callander-rolling-stock figcaption small{display:block}
.sre-callander-line-hub .sre-callander-rolling-stock figcaption span{margin:.4rem 0}
.sre-callander-line-hub .sre-callander-train-copy{padding:1.25rem}
.sre-callander-line-hub .sre-callander-image-intro{max-width:85ch;font-size:1rem}
.sre-callander-line-hub .sre-callander-rolling-stock .sre-stage-caution>a{color:#f3d28f;font-weight:700;text-decoration:underline}
@media(max-width:700px){.sre-callander-line-hub .sre-callander-rolling-stock .sre-callander-working-grid{grid-template-columns:1fr}}

/* People chapter only: full images and legible provenance captions. */
.sre-callander-line-hub .sre-callander-people .sre-callander-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.sre-callander-line-hub .sre-callander-people .sre-callander-topic-grid>article{padding:0;overflow:hidden;min-width:0}
.sre-callander-line-hub .sre-callander-person-image{margin:0;background:#e8e2d5}
.sre-callander-line-hub .sre-callander-person-image>a{display:block}
.sre-callander-line-hub .sre-callander-person-image img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.sre-callander-line-hub .sre-callander-person-image figcaption{padding:1rem 1.25rem;line-height:1.55;font-size:.85rem;color:#24364b;background:#eee9dc}
.sre-callander-line-hub .sre-callander-person-image figcaption strong,.sre-callander-line-hub .sre-callander-person-image figcaption span,.sre-callander-line-hub .sre-callander-person-image figcaption small{display:block;margin:0 0 .4rem}
.sre-callander-line-hub .sre-callander-person-copy{padding:1.25rem}
@media(max-width:700px){.sre-callander-line-hub .sre-callander-people .sre-callander-topic-grid{grid-template-columns:1fr}}

/* Historical portraits: scoped to the Callander People chapter. */
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-section{margin-top:1.75rem}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-intro{color:#dbe4e9;line-height:1.6;max-width:900px}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.25rem}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-card{padding:0;min-width:0;overflow:hidden;background:#213b54}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-card figure{margin:0;background:#e8e2d5}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-card figure>a{display:block}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-card img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-copy{padding:1.1rem}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-copy h4{font:600 1.45rem/1.2 Georgia,serif;color:#fff;margin:.65rem 0}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-copy p{margin:.75rem 0;font-size:.85rem;line-height:1.6;color:#edf1f5}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-copy .sre-callander-portrait-role{font-weight:700}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-copy .sre-callander-portrait-credit{font-size:.76rem;color:#dbe4e9}
.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-copy a{color:#f5ce88;text-decoration:underline;font-size:.8rem;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:900px){.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sre-callander-line-hub .sre-callander-people .sre-callander-portrait-grid{grid-template-columns:1fr}}

/* Direct links and the chapter's incident chooser. */
.sre-callander-incidents article[id]{scroll-margin-top:180px}
.sre-callander-incident-index{margin:1.25rem 0;background:#fffaf0;border:1px solid #d7cbb4;border-radius:8px}
.sre-callander-incident-index summary{padding:16px 20px;cursor:pointer;font-weight:800}
.sre-callander-incident-index nav{padding:0 20px 12px}.sre-callander-incident-index ul{list-style:none;margin:0;padding:0}
.sre-callander-incident-index li+li{border-top:1px solid #d7cbb4}.sre-callander-incident-index a{display:block;padding:12px 0;color:#652e3a;line-height:1.5;overflow-wrap:anywhere}
.sre-callander-incident-index a span{display:block;font-size:.85rem;color:#58636d}.sre-callander-incident-index a strong{display:block;font-weight:700}
