/* Historic flood overview and the compact home enquiry band. */
.history-band { background: var(--band-bg); border-block: 1px solid var(--band-border); }
.history-band-inner { display: flex; align-items: center; gap: 20px; padding-block: 18px; }
.history-band-icon { color: var(--primary); font-size: 30px; }
.history-band-text { flex: 1; min-width: 0; }
.history-band h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 4px; }
.history-band p { color: var(--text-body); font-size: .95rem; margin: 0; }
.history-band-link { flex-shrink: 0; padding: 10px 16px; border: 1px solid var(--primary); border-radius: 6px; color: var(--history-link); font-weight: 600; text-align: center; }
.history-band-link:hover { background: var(--history-hover); }
.history-band + #contact { padding-top: 32px; }
.history-band a:focus-visible, .history-page a:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.history-page main { padding-top: 116px; }
.history-page .breadcrumb-container { margin-top: 0; padding-top: 0 !important; padding-bottom: 24px !important; }
.history-intro { max-width: 78ch; padding-block: 8px 32px; }
.history-intro h1 { font-size: clamp(2rem, 4vw, 3rem); }
.history-intro p { color: var(--text-body); }
.history-timeline { position: relative; display: grid; gap: 32px; padding-left: 24px; border-left: 2px solid var(--band-border); }
.history-event { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; background: var(--knowledge-card); border: 1px solid var(--content-border); border-radius: 12px; padding: 24px; scroll-margin-top: 100px; }
.history-event::before { content: ''; position: absolute; top: 32px; left: -33px; width: 14px; height: 14px; background: var(--primary); border: 3px solid var(--bg-dark); border-radius: 50%; }
.history-event-media, .history-event-body { min-width: 0; }
.history-event-media img { display: block; width: 100%; height: auto; border-radius: 8px; }
.history-event-media figcaption { color: var(--text-soft); font-size: .84rem; line-height: 1.6; margin-top: 12px; }
.history-event-media figcaption a, .history-event-sources a, .history-cta a { color: var(--history-link); text-decoration: underline; text-underline-offset: 3px; }
.history-event h2 { font-size: 1.5rem; line-height: 1.35; margin: 12px 0 18px; }
.history-event-meta { color: var(--history-link); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.history-event-body p { color: var(--text-body); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.history-event-lesson { border-left: 3px solid var(--primary); padding: 14px 16px; background: var(--callout-bg); margin-block: 20px; }
.history-event-lesson h3 { font-size: 1.05rem; margin-bottom: 8px; }
.history-event-lesson p { margin-bottom: 0; }
.history-event-sources { font-size: .9rem; }
.history-event-sources ul { list-style: disc; padding-left: 20px; }
.history-event-sources li { margin-top: 8px; }
.history-cta { padding: 28px; margin-top: 40px; border: 1px solid var(--band-border); border-radius: 12px; }
.history-cta h2 { font-size: 1.5rem; }
.history-cta p { color: var(--text-body); }
.history-cta .cta-group { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.history-cta .btn-primary { color: var(--on-primary); text-decoration: none; }
@media (max-width: 900px) {
    .history-event { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .history-event-media { max-width: 600px; }
}
@media (max-width: 768px) {
    .history-band-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; padding-block: 16px; }
    .history-band-link { grid-column: 1 / -1; justify-self: start; }
    .history-band + #contact { padding-top: 24px; }
    .history-page main { padding-top: 100px; }
    .history-intro { padding-bottom: 20px; }
    .history-timeline { padding-left: 16px; gap: 24px; }
    .history-event { padding: 18px; }
    .history-event::before { left: -25px; }
    .history-cta { padding: 20px; }
}
@media (max-width: 480px) {
    .history-page .container { width: 94%; padding-inline: 12px; }
    .history-event { padding: 16px; }
    .history-event h2 { font-size: 1.3rem; }
}
