:root{--kh-muted:#a9aaa4;--kh-panel:#151a1d;--kh-border:rgba(255,255,255,.12);--kh-red:#9e342b;--kh-gold:#c6a15b}.kh-page{min-height:100vh;background:radial-gradient(circle at 12% 0,rgba(158,52,43,.18),transparent 32rem),#0d1113}.kh-hero{min-height:310px;border:1px solid var(--kh-border);border-radius:14px;padding:clamp(1.5rem,4vw,3.5rem);display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;background:linear-gradient(90deg,rgba(8,11,12,.96),rgba(8,11,12,.5)),url('/images/krigshistorie/hero.svg') center/cover}.kh-hero h1,.kh-story h1{font-family:Georgia,serif;font-size:clamp(2.5rem,6vw,5.5rem);line-height:.95;margin:.5rem 0 1rem}.kh-hero p{max-width:720px;color:#d2d0c9;font-size:1.1rem}.kh-kicker,.kh-eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.74rem;font-weight:800;color:var(--kh-gold)}.kh-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);min-width:360px;background:rgba(0,0,0,.52);border:1px solid var(--kh-border);border-radius:10px}.kh-hero-stats div{padding:1rem;text-align:center;border-right:1px solid var(--kh-border)}.kh-hero-stats div:last-child{border:0}.kh-hero-stats strong,.kh-hero-stats span{display:block}.kh-hero-stats strong{font:700 1.7rem Georgia,serif}.kh-hero-stats span{font-size:.72rem;color:var(--kh-muted);text-transform:uppercase}.kh-toolbar{display:flex;align-items:end;gap:.75rem;padding:1rem;background:var(--kh-panel);border:1px solid var(--kh-border);border-radius:10px}.kh-toolbar label:first-child{flex:1}.kh-toolbar label span{display:block;font-size:.72rem;text-transform:uppercase;color:var(--kh-muted);margin-bottom:.35rem}.kh-toolbar .form-control,.kh-toolbar .form-select{background:#0d1113;border-color:var(--kh-border);color:#fff}.kh-layout,.kh-story-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.7fr);gap:1rem}.kh-panel{background:var(--kh-panel);border:1px solid var(--kh-border);border-radius:10px;overflow:hidden}.kh-panel-head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.15rem}.kh-panel h2,.kh-section-title h2{font:700 1.45rem Georgia,serif;margin:.15rem 0}.kh-map{height:560px;background:#080b0c}.kh-timeline{height:560px;overflow:auto;padding:0 1rem 1rem}.kh-time-item{display:grid;grid-template-columns:52px 1fr;gap:.7rem;color:#fff;text-decoration:none;padding:.75rem 0;position:relative}.kh-time-item:before{content:"";position:absolute;left:51px;top:0;bottom:0;border-left:1px solid rgba(198,161,91,.35)}.kh-time-year{font:700 .82rem Georgia,serif;color:var(--kh-gold)}.kh-time-copy{padding-left:.8rem}.kh-time-copy:before{content:"";position:absolute;margin-left:-1.04rem;margin-top:.3rem;width:8px;height:8px;border-radius:50%;background:var(--kh-red);box-shadow:0 0 0 3px var(--kh-panel)}.kh-time-copy strong,.kh-time-copy small{display:block}.kh-time-copy small{color:var(--kh-muted);margin-top:.25rem}.kh-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.kh-card{color:#fff;text-decoration:none;background:var(--kh-panel);border:1px solid var(--kh-border);border-radius:10px;overflow:hidden;transition:.18s}.kh-card:hover{transform:translateY(-3px);border-color:var(--kh-gold);color:#fff}.kh-card-image{height:150px;background:linear-gradient(135deg,#273033,#111517);display:grid;place-items:center;color:rgba(255,255,255,.16);font-size:3rem;background-size:cover;background-position:center}.kh-card-body{padding:1.1rem}.kh-card h3{font:700 1.2rem Georgia,serif}.kh-card p{font-size:.9rem;color:#c0c0bb}.kh-card-meta{display:flex;justify-content:space-between;gap:.5rem;color:var(--kh-muted);font-size:.74rem}.kh-principles{display:flex;gap:1rem;align-items:center;padding:1.15rem;border-left:4px solid var(--kh-gold);background:#151a1d}.kh-principles i{font-size:1.6rem;color:var(--kh-gold)}.kh-principles p{margin:0;color:var(--kh-muted)}.kh-marker{width:34px;height:34px;display:grid;place-items:center;background:var(--kh-red);border:2px solid #f2ede1;border-radius:50%;box-shadow:0 3px 12px #000}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#151a1d;color:#fff}.leaflet-popup-content a,.kh-back,.kh-sources a{color:#d1b477}.kh-back{text-decoration:none}.kh-story-header{padding:clamp(1.5rem,4vw,3rem);background:linear-gradient(120deg,#161d20,#271916);border:1px solid var(--kh-border);border-radius:12px;margin-bottom:1rem}.kh-story-header .lead{max-width:850px;color:#d0cec7}.kh-meta{display:flex;gap:1.5rem;color:var(--kh-muted)}.kh-story-layout{grid-template-columns:minmax(0,1fr) 340px}.kh-story-text{font-size:1.08rem;line-height:1.8;color:#d8d6cf}.kh-detail-map{height:280px}.kh-sources{padding-left:1.2rem}.kh-sources li{margin-bottom:.85rem}.kh-sources small{display:block;color:var(--kh-muted)}.kh-media-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.kh-media-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}.kh-empty{padding:2rem;color:var(--kh-muted)}@media(max-width:991px){.kh-hero{align-items:flex-start;flex-direction:column}.kh-hero-stats{min-width:0;width:100%}.kh-layout,.kh-story-layout{grid-template-columns:1fr}.kh-card-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:575px){.kh-hero-stats{grid-template-columns:1fr}.kh-hero-stats div{border-right:0;border-bottom:1px solid var(--kh-border)}.kh-toolbar{align-items:stretch;flex-direction:column}.kh-toolbar label{width:100%}.kh-map{height:430px}.kh-card-grid,.kh-media-grid{grid-template-columns:1fr}.kh-meta{flex-direction:column;gap:.5rem}}

.kh-cemeteries{background:#101517;border:1px solid var(--kh-border);border-radius:10px;padding:1.25rem}.kh-cemetery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.kh-cemetery-card{display:flex;gap:.8rem;background:var(--kh-panel);border:1px solid var(--kh-border);border-radius:8px;padding:1rem}.kh-cemetery-card h3{font:700 1rem Georgia,serif}.kh-cemetery-card p{font-size:.84rem;color:#bbb;margin-bottom:.45rem}.kh-cemetery-card a{color:#75b798;text-decoration:none;font-size:.82rem}.kh-cemetery-icon{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;background:#342621;color:var(--kh-gold)}.kh-contribute-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.kh-contribute-form{background:#101416;border:1px solid var(--kh-border);border-radius:8px;padding:1rem}.kh-contribute-form h3{font:700 1.05rem Georgia,serif}.kh-comment{border-top:1px solid var(--kh-border);padding:1rem 0}.kh-comment p{margin:.65rem 0 0;white-space:normal;overflow-wrap:anywhere}@media(max-width:1199px){.kh-cemetery-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:767px){.kh-cemetery-grid,.kh-contribute-grid{grid-template-columns:1fr}}

.kh-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.kh-collection-card{display:flex;gap:1.2rem;min-height:230px;padding:1.5rem;background:var(--kh-panel);border:1px solid var(--kh-border);border-radius:12px;color:#fff;text-decoration:none;transition:.18s}.kh-collection-card[href]:hover{color:#fff;border-color:var(--kh-gold);transform:translateY(-3px)}.kh-collection-card h2{font:700 1.55rem Georgia,serif;margin:.35rem 0 .75rem}.kh-collection-card p{color:#bbb}.kh-collection-card strong{color:#75b798}.kh-collection-icon{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:50%;background:#342621;color:var(--kh-gold);font-size:1.25rem}.kh-collection-future{opacity:.72}.kh-subnav{display:flex;align-items:center;gap:.65rem;min-height:42px;padding:.6rem .85rem;background:rgba(21,26,29,.82);border:1px solid var(--kh-border);border-radius:8px;color:var(--kh-muted);overflow-x:auto}.kh-subnav a{color:#75b798;text-decoration:none;white-space:nowrap}.kh-subnav strong{color:#fff;white-space:nowrap}.kh-section-hero{display:flex;justify-content:space-between;align-items:end;gap:2rem;padding:clamp(1.5rem,4vw,3rem);border:1px solid var(--kh-border);border-radius:12px;background:linear-gradient(120deg,#101719,#241a17)}.kh-section-hero h1{font:700 clamp(2.2rem,5vw,4.3rem) Georgia,serif;margin:.35rem 0}.kh-section-hero p{max-width:760px;color:#c7c5be;margin:0}.kh-big-number{font:700 clamp(3rem,7vw,6rem) Georgia,serif;color:var(--kh-gold);line-height:.8}@media(max-width:991px){.kh-collection-grid{grid-template-columns:1fr 1fr}}@media(max-width:767px){.kh-collection-grid{grid-template-columns:1fr}.kh-section-hero{align-items:flex-start;flex-direction:column}.kh-big-number{font-size:3rem}.kh-subnav .ms-auto{margin-left:0!important}}

.kh-location-data>div{padding:.8rem;border:1px solid var(--kh-border);border-radius:8px;background:#0d1113}.kh-location-data dt{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--kh-muted);margin-bottom:.35rem}.kh-location-data dd{display:flex;flex-wrap:wrap;gap:.75rem;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#fff}


/* Sitat i Summernote og publisert historie. */
.note-editor .note-editable blockquote,
.kh-story-text blockquote { margin:1rem 0; padding:.75rem 1rem; border-left:4px solid var(--kh-gold); background:rgba(198,161,91,.09); color:#e5dfd1; font-style:italic; }

/* Fullskjermgalleriet skal alltid gi bildet hele tilgjengelige flaten. */
#khGalleryModal .modal-dialog,#khGalleryModal .modal-content { width:100vw; height:100vh; max-width:none; margin:0; }
#khGalleryModal .modal-body { min-height:0; overflow:hidden; background:#050607; }
#khGalleryModalImage { display:block; width:auto; height:auto; max-width:100%; max-height:calc(100vh - 90px); margin:auto; object-fit:contain; }
.kh-person-list{display:grid;gap:.55rem}.kh-person-row{display:flex;justify-content:space-between;gap:1rem;padding:.9rem 1rem;border:1px solid var(--kh-border);border-radius:8px;color:#fff;text-decoration:none;background:rgba(255,255,255,.025)}.kh-person-row:hover{color:#fff;border-color:var(--kh-gold);background:rgba(198,161,91,.08)}.kh-person-row span{color:var(--kh-muted);text-align:right}@media(max-width:575px){.kh-person-row{flex-direction:column}.kh-person-row span{text-align:left}}
.kh-story-header .kh-site-meta{margin-top:.7rem;padding-top:.7rem;border-top:1px solid rgba(255,255,255,.08);font-size:.88rem}
#khCreateBiography,#khEditBiography{display:none!important}
#khCreatePerson .note-editor{border:1px solid var(--kh-border);border-radius:6px;overflow:hidden}
#khCreatePerson .note-toolbar{display:flex!important;flex-wrap:wrap;gap:.25rem;padding:.45rem!important;background:#252a2e!important;border-bottom:1px solid var(--kh-border)!important}
#om-personen .note-editor{border:1px solid var(--kh-border);border-radius:6px;overflow:hidden}
#om-personen .note-toolbar{display:flex!important;flex-wrap:wrap;gap:.25rem;padding:.45rem!important;background:#252a2e!important;border-bottom:1px solid var(--kh-border)!important}
#om-personen .note-editable{min-height:260px;background:#1d2124!important;color:#fff!important}
