/* Functional extension of the shared IfaZ reading components. */
.kuh-history-orientation { color:var(--kb-color-gold-on-paper); font-weight:600; line-height:1.4; margin:0 0 .7rem; }
.kuh-history-detail { padding-bottom:1rem; }
.kuh-history-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; border-block:1px solid var(--kb-color-gold-on-paper); padding:1.25rem 0; }
.kuh-history-filters label { display:grid; gap:.35rem; font-weight:600; min-width:0; }
.kuh-history-search,.kuh-history-actions { grid-column:1/-1; }
.kuh-history-filters input,.kuh-history-filters select { width:100%; min-width:0; min-height:44px; border:1px solid var(--kb-color-gold-on-paper); border-radius:0; padding:.55rem .65rem; color:var(--kb-color-ink); background:var(--kb-color-paper); font:inherit; }
.kuh-history-filters button { min-height:44px; padding:.5rem 1rem; border:1px solid var(--kb-color-ink); color:var(--kb-color-paper); background:var(--kb-color-ink); font:inherit; cursor:pointer; }
.kuh-history-actions { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.kuh-history-actions a,.kuh-history-toolbar a { display:inline-flex; min-height:44px; align-items:center; }
.kuh-history-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.6rem 1rem; margin:1rem 0; }
.kuh-history-toolbar nav { display:flex; flex-wrap:wrap; gap:.5rem; }
.kuh-history-toolbar nav a { padding:.4rem .7rem; border:1px solid var(--kb-color-gold-on-paper); }
.kuh-history-toolbar nav a[aria-current="true"] { color:var(--kb-color-paper); background:var(--kb-color-ink); }
.kuh-history-map { height:440px; border:1px solid var(--kb-color-gold-on-paper); background:var(--kb-color-paper-muted); }
.kuh-history-map-panel { margin-bottom:2rem; }
.kuh-history-map-panel .leaflet-popup-content { font-family:var(--kb-font-text); font-size:1rem; line-height:1.4; max-height:260px; overflow:auto; }
.kuh-history-map-panel .leaflet-popup-content p { margin:.6rem 0; }
.kuh-history-map-note { font-size:.95rem; line-height:1.45; }
.kuh-history-explorer [hidden] { display:none!important; }
.kuh-history-explorer [data-history-results]>div { min-width:0; }
@media(max-width:32rem) { .kuh-history-filters { grid-template-columns:minmax(0,1fr); gap:.7rem; } .kuh-history-map { height:340px; } .kuh-history-toolbar { align-items:flex-start; } }

@media(max-width:32rem) { .kuh-history-map .leaflet-control-zoom a { width:44px; height:44px; line-height:44px; } }
