/*
 * Flash header v2
 * Bevidst uden klassen .articleHeader, så artikelbilledets desktop-flex-CSS
 * ikke rammer canvas-headeren.
 */
body.theme-flash .ext-header-wrap{
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  position: relative;
}

body.theme-flash .ext-header-wrap::after{
  display: none !important;
  content: none !important;
}

.flashHeader{
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 14px 0 10px;
  padding: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 220, 255, 0.26);
  background:
    radial-gradient(circle at 18% 18%, rgba(111, 0, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(0, 188, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(6, 8, 20, 0.95), rgba(1, 6, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 42px rgba(0,0,0,0.28);
  box-sizing: border-box;
}

.flashHeader__shell{
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 200px;
  min-height: 200px;
  overflow: hidden;
}

.flashHeader__canvas{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  background: transparent;
}

.flashHeader__overlay{
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  min-height: 92px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(4,8,20,.90));
  pointer-events: none;
}

.flashHeader__title{
  margin: 0;
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: #eef7ff;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 0 18px rgba(76,170,255,0.28),
    0 0 34px rgba(145,75,255,0.18);
}

.flashHeader__glow{
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
  opacity: .65;
}

.flashHeader__glow--left{
  left: -28px;
  top: -26px;
  background: radial-gradient(circle, rgba(153,74,255,.52), rgba(153,74,255,.10) 56%, transparent 74%);
}

.flashHeader__glow--right{
  right: -16px;
  top: 8px;
  background: radial-gradient(circle, rgba(0,214,255,.40), rgba(0,214,255,.08) 58%, transparent 76%);
}

body.theme-flash .ext-header-wrap > .ticker,
body.theme-flash .ticker[data-news-ticker="1"]{
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 8px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4,16,34,.82), rgba(5,10,22,.92));
  border-top: 1px solid rgba(117,218,255,.18);
  border-bottom: 1px solid rgba(117,218,255,.10);
  box-sizing: border-box;
}

body.theme-flash .ticker[data-news-ticker="1"] .track{
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 38px;
  padding-left: 100%;
  white-space: nowrap;
  animation-name: flashTickerScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  color: rgba(218,241,255,.88);
  font-size: 12px;
}

body.theme-flash .ticker[data-news-ticker="1"] .track strong{ color:#fff; }
body.theme-flash .ticker[data-news-ticker="1"] .tickerSep{ opacity:.65; }

@keyframes flashTickerScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-100%); }
}

@media (max-width: 700px){
  .flashHeader__shell{
    height: 190px;
    min-height: 190px;
  }
  .flashHeader__overlay{ padding: 16px 14px 14px; }
}

@media (max-width: 520px){
  .flashHeader__shell{
    height: 176px;
    min-height: 176px;
  }
  .flashHeader__title{ font-size: 23px; }
}

@media (prefers-reduced-motion: reduce){
  body.theme-flash .ticker[data-news-ticker="1"] .track{
    animation: none !important;
    padding-left: 12px;
    transform: none !important;
  }
}
