/* v5.16: concise, mobile-first incident and place pages. Scoped to individual routes. */
body.o112-history-page-body:has(.o112-v516-place) .o112-view-head,
body.o112-history-page-body:has(.o112-v516-incident) .o112-view-head{padding-bottom:10px!important}
body.o112-history-page-body:has(.o112-v516-place) .o112-view-head p{display:none}
.o112-v516{max-width:1120px;margin:0 auto;color:#e8f4fb;padding:0 0 22px}
.o112-v516-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#92cee9}
.o112-v516-place .o112-history-breadcrumb{margin:0 0 15px}
.o112-v516-place-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(117deg,#173d54,#0d2534);border:1px solid #3b6279;border-radius:15px;padding:clamp(17px,3vw,27px)}
.o112-v516-place-heading{min-width:0;flex:1}
.o112-v516-place-heading h2{font-size:clamp(25px,4vw,39px);letter-spacing:-.035em;color:#fff;margin:7px 0}
.o112-v516-place-heading p{color:#b4cede;font-size:14px;line-height:1.55;max-width:650px;margin:0}
.o112-v516-stats{display:flex;gap:8px}
.o112-v516-stats>span{display:grid;gap:5px;text-align:center;min-width:100px;padding:14px;background:#102c3e;border:1px solid #376078;border-radius:11px}
.o112-v516-stats strong{color:#fff;font-size:28px;line-height:1}
.o112-v516-stats small{font-size:11px;color:#a9c7d9}
.o112-v516-place-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:13px 0 23px}
.o112-v516-place-actions a{color:#b8e7ff;text-decoration:none;padding:11px 15px;border:1px solid #3b5a6e;border-radius:9px;font-size:13px;font-weight:650}
.o112-v516-place-actions .o112-v516-primary{background:#24617e;color:#fff;border-color:#3988a8;display:flex;gap:17px;justify-content:space-between}
.o112-v516-stream{border:1px solid #315266;background:#0e2432;border-radius:14px;padding:clamp(12px,2.3vw,22px)}
.o112-v516-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}
.o112-v516-section-head h2{font-size:clamp(19px,2.5vw,25px);margin:4px 0 0;color:#fff}
.o112-v516-section-head>span{color:#9bbaca;font-size:12px;white-space:nowrap}
.o112-v516-event-list{display:grid;gap:2px}
.o112-v516-event{display:grid;grid-template-columns:48px minmax(0,1fr) 14px;align-items:center;gap:12px;border-bottom:1px solid #2a4758;padding:13px 5px;color:#fff;text-decoration:none;min-height:76px;border-radius:6px}
.o112-v516-event:last-child{border-bottom:0}
.o112-v516-event:hover{background:#183c4f}
.o112-v516-event-icon .o112-landing-icon{width:44px;height:44px}
.o112-v516-event-icon .o112-landing-icon img{width:35px;height:35px}
.o112-v516-event-content{display:grid;gap:4px;min-width:0}
.o112-v516-event-content strong{font-size:clamp(14px,1.5vw,17px);overflow-wrap:anywhere;line-height:1.35}
.o112-v516-event-content small{font-size:12px;color:#acc6d6;overflow-wrap:anywhere}
.o112-v516-event-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#9ebccc;font-size:11px}
.o112-v516-event-meta em{font-style:normal;color:#8be1b0;font-weight:800}
.o112-v516-event-arrow{font-size:25px;color:#9fbace}
.o112-v516-expand{border:1px solid #365467;background:#102a39;border-radius:11px;margin:13px 0;padding:12px 16px}
.o112-v516-expand summary{cursor:pointer;color:#e4f3fc;font-weight:700;display:flex;justify-content:space-between;gap:12px}
.o112-v516-chips{display:flex;gap:8px;flex-wrap:wrap;padding:15px 0 3px}
.o112-v516-chips a{border:1px solid #3a6379;border-radius:7px;padding:9px 11px;text-decoration:none;color:#c9eafc;font-size:12px}
.o112-v516-chips small{color:#83afc8;margin-left:4px}
.o112-v516-disclaimer{font-size:12px;line-height:1.6;color:#9bb7c7;margin:17px 3px 0}
/* Incident pages: one title, clear hierarchy, readable updates */
body.o112-history-page-body:has(.o112-v516-incident) .o112-content-body{max-width:1050px;margin-inline:auto}
body.o112-history-page-body:has(.o112-v516-incident) .o112-view-head h1{max-width:26ch;line-height:1.2;font-size:clamp(25px,4vw,43px)}
body.o112-history-page-body:has(.o112-v516-incident) .o112-v514-incident-toolbar{margin:12px 0}
.o112-v516-incident-lead{background:linear-gradient(120deg,#15384c,#102633);border:1px solid #34596f;border-radius:11px;padding:14px 18px;margin:12px 0}
.o112-v516-incident-lead p{font-size:13px;color:#bdd4e2;margin:6px 0 0;line-height:1.5}
body.o112-incident-redesign .o112-history-detail.o112-v516-incident{background:transparent;border:0;padding:0;margin:12px 0;box-shadow:none;display:grid;gap:14px}
.o112-v516-incident-facts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#102936;border:1px solid #36566a;border-radius:12px;padding:13px}
.o112-v516-incident-facts>span{font-size:12px;color:#d4e8f4;border:1px solid #33566b;padding:8px 10px;border-radius:7px}
.o112-v516-incident-facts .o112-v516-status{color:#aec1d1}
.o112-v516-incident-facts .o112-v516-status.is-active{color:#a1ebbc;border-color:#2a7258;background:#153e31}
.o112-v516-incident-info,.o112-v516-incident-message,.o112-v516-timeline-section{background:#102936;border:1px solid #325267;border-radius:13px;padding:clamp(15px,2.5vw,24px)}
.o112-v516-incident h2{font-size:clamp(19px,2.2vw,24px);color:#fff;margin:0 0 13px}
.o112-v516-incident-info p{margin:8px 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere;color:#d1e3ee}
.o112-v516-incident-info strong{color:#8fb9d1;margin-right:5px}
.o112-v516-incident-info .o112-v514-location{margin:13px 0 0;background:#173848;padding:13px}
.o112-v516-incident-message .o112-history-description{background:transparent;border:0;box-shadow:none;padding:0;margin:0;font-size:15px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.o112-v516-source-line{font-size:12px;color:#9db9c9;margin-top:14px}
.o112-v516-data-note{background:#102936;border:1px solid #315369;border-radius:10px;padding:10px 13px;font-size:12px;color:#b2cada}
.o112-v516-data-note summary{cursor:pointer;color:#bad7e8;font-weight:650}
.o112-v516-data-note p{margin:8px 0 0}
.o112-v516-timeline-section .o112-v516-section-head{margin-bottom:19px}
body.o112-incident-redesign .o112-v516-timeline-section .o112-history-timeline{margin-left:4px;gap:10px}
body.o112-incident-redesign .o112-v516-timeline-section .o112-history-timeline>div{padding:15px;background:#153344}
body.o112-incident-redesign .o112-v516-timeline-section .o112-history-timeline p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
body.o112-incident-redesign .o112-history-entitylinks{margin:0;gap:7px}
body.o112-incident-redesign .o112-history-entitylinks a{font-size:12px}
@media(max-width:650px){
 .o112-v516-place-hero{display:grid;gap:13px;padding:17px}
 .o112-v516-place-heading h2{font-size:26px}
 .o112-v516-place-heading p{font-size:13px}
 .o112-v516-stats{display:grid;grid-template-columns:1fr 1fr}
 .o112-v516-stats>span{min-width:0;padding:12px 8px}
 .o112-v516-stats strong{font-size:23px}
 .o112-v516-place-actions{display:grid;grid-template-columns:1fr;margin:11px 0 17px;gap:7px}
 .o112-v516-place-actions a{min-height:43px;text-align:center}
 .o112-v516-stream{padding:12px}
 .o112-v516-event{grid-template-columns:42px minmax(0,1fr) 10px;gap:9px;padding:12px 2px}
 .o112-v516-event-icon .o112-landing-icon{width:40px;height:40px}
 .o112-v516-event-icon .o112-landing-icon img{width:32px;height:32px}
 .o112-v516-event-content strong{font-size:14px}
 .o112-v516-section-head{align-items:start}
 .o112-v516-section-head>span{font-size:10px}
 body.o112-history-page-body:has(.o112-v516-incident) .o112-view-head h1{font-size:26px}
 body.o112-incident-redesign .o112-v516-incident-toolbar{gap:6px}
 body.o112-incident-redesign .o112-v516-incident-toolbar a{padding:10px;font-size:12px;flex:1;text-align:center;justify-content:center}
 .o112-v516-incident-facts{display:grid;grid-template-columns:1fr 1fr}
 .o112-v516-incident-facts>span:last-child{grid-column:1/-1}
 .o112-v516-incident-message,.o112-v516-incident-info,.o112-v516-timeline-section{padding:14px}
}

/* v5.17: clearly separated, finger-friendly related links on incident pages. */
body.o112-incident-redesign .o112-v517-related-links{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:9px!important;margin:2px 0!important;padding:0!important;max-width:100%;min-width:0}
body.o112-incident-redesign .o112-v517-related-links>a{display:inline-flex!important;align-items:center;justify-content:flex-start;box-sizing:border-box;max-width:100%;min-height:42px;padding:10px 13px!important;margin:0!important;border:1px solid #416a80!important;border-radius:9px!important;background:#173747!important;color:#d8f0ff!important;font-size:13px!important;line-height:1.45!important;font-weight:650;text-decoration:none!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
body.o112-incident-redesign .o112-v517-related-links>a:hover,body.o112-incident-redesign .o112-v517-related-links>a:focus-visible{background:#24516b!important;border-color:#72b0d1!important;color:#fff!important}
@media(max-width:650px){body.o112-incident-redesign .o112-v517-related-links{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}body.o112-incident-redesign .o112-v517-related-links>a{display:flex!important;width:100%!important;min-height:45px!important}}

/* v5.37 – Incident detail visual language aligned with the homepage. */
body.o112-incident-redesign:has(.o112-v516-incident) .o112-content-body{max-width:1120px!important;margin-inline:auto}
body.o112-incident-redesign:has(.o112-v516-incident) .o112-view-head{max-width:1120px;margin-inline:auto;padding-top:clamp(18px,3vw,34px)!important}
body.o112-incident-redesign:has(.o112-v516-incident) .o112-view-head h1{max-width:32ch!important;font-weight:850;letter-spacing:-.035em;line-height:1.13!important}
body.o112-incident-redesign .o112-v516-incident-lead{border-radius:15px;background:linear-gradient(115deg,#183d53 0%,#102a3a 65%,#0d2231 100%);border:1px solid #426c82;padding:clamp(16px,2.6vw,25px);box-shadow:0 10px 30px rgba(0,0,0,.10)}
body.o112-incident-redesign .o112-v516-incident-lead .o112-v516-eyebrow{color:#8ed2f4}
body.o112-incident-redesign .o112-v516-incident-facts{gap:10px;background:#102838;padding:clamp(13px,2vw,19px);border:1px solid #3c6175;border-radius:15px}
body.o112-incident-redesign .o112-v516-incident-facts>span{background:rgba(255,255,255,.035);border-color:#37596d;border-radius:9px;padding:10px 13px;font-size:13px}
body.o112-incident-redesign .o112-v516-incident-info,body.o112-incident-redesign .o112-v516-incident-message,body.o112-incident-redesign .o112-v516-timeline-section,body.o112-incident-redesign .o112-history-social,body.o112-incident-redesign .o112-related-incidents{border-radius:15px;background:linear-gradient(160deg,#102b3c,#0d2231);border:1px solid #35576b;box-shadow:0 12px 27px rgba(0,0,0,.08);padding:clamp(17px,2.7vw,27px)}
body.o112-incident-redesign .o112-v516-incident-info h2,body.o112-incident-redesign .o112-v516-incident-message h2,body.o112-incident-redesign .o112-v516-timeline-section h2{letter-spacing:-.025em}
body.o112-incident-redesign .o112-v516-incident-info p{line-height:1.75}
body.o112-incident-redesign .o112-v516-timeline-section .o112-history-timeline>div{border-radius:11px;border:1px solid #33566b;background:#163648}
.o112-v537-incident-ad{width:100%;min-width:0;margin:2px 0 4px;display:block}
.o112-v537-incident-ad .o112-direct-ad{max-width:100%;box-sizing:border-box;margin:0!important}
.o112-v537-incident-ad .o112-direct-ad-creative{min-width:0}
.o112-v537-incident-ad video{max-width:100%}
@media(max-width:650px){body.o112-incident-redesign .o112-v516-incident-facts{grid-template-columns:1fr 1fr}body.o112-incident-redesign .o112-v516-incident-facts>span{min-width:0;overflow-wrap:anywhere}body.o112-incident-redesign .o112-v516-incident-facts>span:last-child{grid-column:1/-1}body.o112-incident-redesign .o112-v516-incident-info,body.o112-incident-redesign .o112-v516-incident-message,body.o112-incident-redesign .o112-v516-timeline-section{padding:17px}}


/* v5.38: prominent landing-inspired incident hero on actual /haendelse/{slug}/ pages only. */
body.o112-incident-redesign .o112-v538-incident-hero{position:relative;overflow:hidden;isolation:isolate;margin:16px 0 14px;padding:clamp(22px,3.6vw,38px);border:1px solid #477b98;border-radius:18px;background:radial-gradient(ellipse at 96% -10%,rgba(42,136,187,.28),transparent 58%),linear-gradient(132deg,#183e55 0%,#102c40 54%,#0c2130 100%);box-shadow:0 18px 36px rgba(0,0,0,.18);color:#e6f2fc}
body.o112-incident-redesign .o112-v538-hero-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px}
body.o112-incident-redesign .o112-v538-hero-kicker{font-size:11px;letter-spacing:.15em;font-weight:850;color:#95d5f5}
body.o112-incident-redesign .o112-v538-hero-status{font-size:12px;font-weight:750;padding:8px 12px;border-radius:99px;border:1px solid #54758a;background:#163447;color:#d4e7f2}
body.o112-incident-redesign .o112-v538-hero-status.is-active{color:#a5f2c8;border-color:#3b9271;background:#164334}
body.o112-incident-redesign .o112-v538-incident-hero h2{margin:0 0 17px;font-size:clamp(24px,3.6vw,39px);line-height:1.16;letter-spacing:-.03em;color:#fff;font-weight:830;max-width:27ch;overflow-wrap:anywhere}
body.o112-incident-redesign .o112-v538-hero-meta{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:14px}
body.o112-incident-redesign .o112-v538-hero-meta span{border:1px solid #456d83;border-radius:9px;padding:9px 12px;background:#102d40;color:#d5eaf8;font-size:13px;overflow-wrap:anywhere}
body.o112-incident-redesign .o112-v538-incident-hero p{font-size:12px;line-height:1.6;color:#accadd;max-width:740px;margin:0}
body.o112-incident-redesign .o112-v537-incident-ad{margin:4px 0 8px;max-width:100%}
@media(max-width:650px){body.o112-incident-redesign .o112-v538-incident-hero{padding:20px 16px}body.o112-incident-redesign .o112-v538-hero-meta{display:grid;grid-template-columns:1fr}body.o112-incident-redesign .o112-v538-incident-hero h2{font-size:25px}}

/* v5.39 – Actual database-generated /haendelse/{slug}/ detail pages.
   Use a dedicated workspace class instead of :has() or the broad archive layout. */
body.o112-history-page-body .o112-v539-detail-workspace{width:100%!important;max-width:100%!important;padding:clamp(14px,2.8vw,36px) clamp(12px,3vw,40px) 50px!important;box-sizing:border-box}
body.o112-history-page-body .o112-v539-detail-workspace>.o112-view-head,
body.o112-history-page-body .o112-v539-detail-workspace>.o112-content-body{width:min(100%,1100px)!important;max-width:1100px!important;box-sizing:border-box;margin-left:auto!important;margin-right:auto!important;float:none!important}
body.o112-history-page-body .o112-v539-detail-workspace>.o112-view-head{padding:17px 22px!important;border:1px solid #29495a!important;border-radius:14px!important;background:linear-gradient(105deg,#0f2938,#0b202e)!important;margin-bottom:16px!important}
body.o112-history-page-body .o112-v539-detail-workspace>.o112-view-head h1{font-size:clamp(24px,3.5vw,39px)!important;line-height:1.2!important;letter-spacing:-.035em;color:#f2f9ff;margin:5px 0!important}
body.o112-history-page-body .o112-v539-detail-workspace>.o112-content-body{padding:0!important;min-width:0}
body.o112-history-page-body .o112-v539-detail-workspace .o112-history-breadcrumb{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:#92b8ca;margin:0 0 13px}
body.o112-history-page-body .o112-v539-detail-workspace .o112-v514-incident-toolbar{margin:0 0 16px}
body.o112-history-page-body .o112-v539-detail-workspace .o112-v538-incident-hero{padding:clamp(22px,4vw,42px)!important;margin:0 0 18px!important;border:1px solid #416d84!important;border-radius:20px!important;background:radial-gradient(circle at 90% 0%,#23618477,transparent 55%),linear-gradient(125deg,#173c53,#0b2030)!important;box-shadow:0 20px 50px #0003!important}
.o112-v539-hero-title{display:flex;gap:19px;align-items:center;margin:6px 0 16px;min-width:0}
.o112-v539-hero-title>div{min-width:0}
.o112-v539-hero-icon{display:grid;place-items:center;flex:0 0 74px;width:74px;height:74px;border:1px solid #51788d;border-radius:18px;background:#0c2638;box-shadow:0 0 0 6px #569ec011}
.o112-v539-hero-icon .o112-landing-icon{margin:auto}
.o112-v539-hero-icon img{max-width:55px;max-height:55px;object-fit:contain}
body.o112-history-page-body .o112-v539-detail-workspace .o112-v539-hero-title h2{font-size:clamp(27px,4vw,45px)!important;margin:0 0 6px!important;max-width:none;line-height:1.13!important}
.o112-v539-hero-source{font-size:14px;color:#b4d5e7}
body.o112-history-page-body .o112-v539-detail-workspace .o112-v516-incident-lead{margin:16px 0!important}
body.o112-history-page-body .o112-v539-detail-workspace .o112-history-detail.o112-v516-incident{display:grid!important;grid-template-columns:minmax(0,1fr);gap:16px;background:transparent!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important;overflow:visible!important}
body.o112-history-page-body .o112-v539-detail-workspace :is(.o112-v516-incident-info,.o112-v516-incident-message,.o112-v516-timeline-section,.o112-related-incidents,.o112-history-social){margin:0!important;border:1px solid #355b71!important;background:linear-gradient(155deg,#102d3e,#0b202f)!important;border-radius:16px!important;padding:clamp(19px,3vw,29px)!important;box-shadow:0 12px 28px #0002!important;min-width:0}
body.o112-history-page-body .o112-v539-detail-workspace .o112-history-page h2{font-size:clamp(20px,2.5vw,26px)!important;margin:0 0 16px!important;color:#f1f8ff!important}
body.o112-history-page-body .o112-v539-detail-workspace .o112-v516-incident-facts{margin-bottom:0!important;border-radius:13px!important;background:#102b3b!important}
body.o112-history-page-body .o112-v539-detail-workspace .o112-v516-timeline-section .o112-history-timeline>div{background:#16384b!important;border:1px solid #345b70!important;border-radius:12px!important}
body.o112-history-page-body .o112-v539-detail-workspace .o112-v516-incident-message .o112-history-description{font-size:15px!important;line-height:1.8!important}
.o112-v539-incident-ad{width:100%;margin:0 auto 20px;min-width:0}
.o112-v539-incident-ad>.o112-direct-ad{max-width:1100px!important;width:100%!important;margin:0 auto!important;background:#0d2535!important;border:1px solid #345a70!important;border-radius:16px!important;padding:13px!important}
.o112-v539-incident-ad .o112-direct-ad-creative{width:100%;min-width:0}
.o112-v539-incident-ad .o112-direct-ad-option img{aspect-ratio:auto!important;max-height:330px!important;object-fit:contain}
@media(max-width:650px){body.o112-history-page-body .o112-v539-detail-workspace{padding:12px 12px 36px!important}body.o112-history-page-body .o112-v539-detail-workspace>.o112-view-head{padding:17px!important}body.o112-history-page-body .o112-v539-detail-workspace .o112-v538-incident-hero{padding:20px!important}.o112-v539-hero-title{gap:12px;align-items:flex-start}.o112-v539-hero-icon{width:52px;height:52px;flex-basis:52px;border-radius:12px}.o112-v539-hero-icon img{max-width:40px;max-height:40px}body.o112-history-page-body .o112-v539-detail-workspace .o112-v539-hero-title h2{font-size:clamp(23px,6vw,31px)!important}.o112-v539-incident-ad>.o112-direct-ad{padding:9px!important}}

.o112-v539-incident-ad .o112-direct-ad-option-169 img{aspect-ratio:16/9!important;max-height:none!important;object-fit:contain!important;background:#0b1420!important;display:block!important}
