/* d2-threat_claude.css: trusselsstrimmel på forsiden og siden /trusselsbillede/ (release 2.8.0)
   Følger den godkendte mockup (22/10). Bruger site-tokens med faste fallbacks. Klasser har præfikset d2t-. */

/* Fælles */
.d2t-wrap { max-width: var(--d2s-wrap, 1240px); margin: 0 auto; padding: 0 var(--d2s-gutter, 32px); box-sizing: border-box; }
.d2t-bar--red { background: #b3261e; }
.d2t-bar--amber { background: #fc8902; }
.d2t-bar--green { background: #2e6b30; }
.d2t-eyebrow { margin: 0 0 12px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; color: var(--d2-ink-muted, #444444); }
.d2t-src { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #646464; }
.d2t-src a { color: var(--d2-orange-text, #a35700); }
.d2t-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; color: #7a5200; background: #fff7e0; }
.d2t-link { display: inline-block; margin-top: 12px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-size: 14px; font-weight: 700; color: var(--d2-orange-text, #a35700); text-decoration: none; }
.d2t-link:hover { color: var(--d2-orange-text-hover, #8a4700); text-decoration: underline; }
.d2t-link i { margin-left: 2px; }

/* Forsidens strimmel */
.d2t-strip { background: #f7f7f7; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; padding: 26px 0; }
.d2t-strip__inner { display: flex; gap: 32px; align-items: stretch; }
.d2t-strip__levels { flex: 1 1 0; min-width: 0; }
.d2t-strip__levels:only-child { flex: 1 1 auto; }
.d2t-strip__kev { flex: 0 1 300px; min-width: 0; border-left: 1px solid #d8d8d8; padding-left: 32px; display: flex; flex-direction: column; justify-content: center; }
.d2t-strip__kev--alone { flex: 1 1 auto; border-left: 0; padding-left: 0; }
.d2t-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.d2t-chip { display: flex; align-items: center; gap: 10px; background: #ffffff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 9px 14px 9px 0; overflow: hidden; }
.d2t-chip__bar { width: 4px; align-self: stretch; display: inline-block; }
.d2t-chip__name { font-size: 14px; color: #292929; }
.d2t-chip .d2t-chip__lvl { display: inline; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; text-transform: none; letter-spacing: 0; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 13px; line-height: 1.3; }
.d2t-chip .d2s-level--red { color: #b3261e; }
.d2t-chip .d2s-level--amber { color: #8a5a00; }
.d2t-chip .d2s-level--green { color: #2e6b30; }
.d2t-kev { display: flex; align-items: baseline; gap: 12px; }
.d2t-kev__num { font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 800; font-size: 44px; line-height: 1; color: #a35700; }
.d2t-kev__txt { font-size: 14px; line-height: 1.4; color: #292929; }

/* Siden /trusselsbillede/ */
.d2t-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; font-size: 13px; color: #444444; }
.d2t-pill { display: inline-flex; align-items: center; gap: 8px; background: #f1f8f3; border: 1px solid #cfe6d5; color: #1e6b34; border-radius: 999px; padding: 6px 12px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 12px; }
.d2t-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #1e6b34; display: inline-block; }
.d2t-meta a { color: var(--d2-orange-text, #a35700); }

.d2t-section { padding: 56px 0; }
.d2t-section--alt { background: #f7f7f7; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }
.d2t-h2 { margin: 0 0 8px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 800; font-size: 28px; line-height: 1.2; color: #1a1a1a; }
.d2t-sub { margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: #444444; max-width: 760px; }
.d2t-empty { background: #ffffff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 26px 28px; max-width: 760px; }
.d2t-empty h2 { margin: 0 0 8px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 800; font-size: 22px; color: #1a1a1a; }
.d2t-empty p { margin: 0; font-size: 15px; line-height: 1.6; color: #444444; }
.d2t-empty a { color: var(--d2-orange-text, #a35700); }

/* Kort pr. kategori */
.d2t-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.d2t-card { flex: 1 1 250px; min-width: 0; background: #ffffff; border: 1px solid #e8e8e8; border-top: 4px solid #2e6b30; border-radius: 12px; padding: 22px 22px 20px; box-sizing: border-box; }
.d2t-card--red { border-top-color: #b3261e; }
.d2t-card--amber { border-top-color: #fc8902; }
.d2t-card--green { border-top-color: #2e6b30; }
.d2t-card h3 { margin: 0 0 10px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 17px; color: #1a1a1a; }
.d2t-card .d2t-card__lvl { display: block; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; text-transform: none; letter-spacing: 0; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 800; font-size: 28px; line-height: 1.1; }
.d2t-card--red .d2t-card__lvl { color: #b3261e; }
.d2t-card--amber .d2t-card__lvl { color: #8a5a00; }
.d2t-card--green .d2t-card__lvl { color: #2e6b30; }
.d2t-meter { display: flex; gap: 4px; margin: 14px 0; }
.d2t-meter span { flex: 1 1 0; height: 8px; border-radius: 4px; background: #e8e8e8; display: block; }
.d2t-meter span.d2t-bar--red { background: #b3261e; }
.d2t-meter span.d2t-bar--amber { background: #fc8902; }
.d2t-meter span.d2t-bar--green { background: #2e6b30; }
.d2t-card__txt { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #444444; }
.d2t-card__date { margin: 0; font-size: 12px; color: #646464; }
.d2t-src--page { margin-top: 20px; }

/* Sådan læser du niveauerne */
.d2t-read { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; margin-top: 20px; }
.d2t-read__scale { flex: 1.3 1 520px; min-width: 0; }
.d2t-read__scale .d2t-eyebrow { margin-bottom: 10px; }
/* Måler pr. kategori: niveauet fyldt op på skalaen */
.d2t-lv__h { margin: 20px 0 14px; }
.d2t-lv__grid { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); column-gap: 24px; align-items: center; }
.d2t-lv__scale, .d2t-lv__gauge { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.d2t-lv__scale { margin-bottom: 8px; }
.d2t-lv__scale span { font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 12px; color: var(--d2-ink-muted, #444444); }
.d2t-lv__list { list-style: none; margin: 0; padding: 0; }
.d2t-lv__row { padding: 14px 0; border-top: 1px solid #e8e8e8; }
.d2t-lv__row:last-child { border-bottom: 1px solid #e8e8e8; }
.d2t-lv__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d2t-lv__name { font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 15px; color: #1a1a1a; }
.d2t-lv__txt { display: inline-flex; align-items: center; gap: 7px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 600; font-size: 12px; color: var(--d2-ink-muted, #444444); }
.d2t-lv__txt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #646464); flex-shrink: 0; }
.d2t-lv__txt--1 { --dot: #9bd1a8; }
.d2t-lv__txt--2 { --dot: #cfe08b; }
.d2t-lv__txt--3 { --dot: #f3d65c; }
.d2t-lv__txt--4 { --dot: #fc8902; }
.d2t-lv__txt--5 { --dot: #b3261e; }
.d2t-lv__seg { display: block; height: 16px; border-radius: 2px; background: #e8e8e8; }
.d2t-lv__axis { display: none; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #646464; }
.d2t-read--defs { margin-top: 40px; }
.d2t-scale__bar--1 { background: #9bd1a8; }
.d2t-scale__bar--2 { background: #cfe08b; }
.d2t-scale__bar--3 { background: #f3d65c; }
.d2t-scale__bar--4 { background: #fc8902; }
.d2t-scale__bar--5 { background: #b3261e; }
.d2t-principles { list-style: none; margin: 0; padding: 0; flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.d2t-principles li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: #292929; }
.d2t-principles strong { font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; color: #1a1a1a; }
.d2t-principles__n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #1a1a1a; color: #ffffff; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* Grafer */
.d2t-graphs { display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; }
.d2t-graph { flex: 1 1 520px; min-width: 0; background: #ffffff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; box-sizing: border-box; }
.d2t-graph h3 { margin: 0 0 4px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 18px; color: #1a1a1a; }
.d2t-graph__sub { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #646464; }
.d2t-chartwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.d2t-chartwrap:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.d2t-chart { display: block; max-width: 100%; height: auto; font-family: Arial, Helvetica, sans-serif; }
.d2t-scrollhint { display: none; margin: 8px 0 0; font-size: 12px; color: #646464; }
.d2t-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: #292929; }
.d2t-legend li { display: flex; align-items: center; gap: 8px; }
.d2t-graph--building { background: #ffffff; }
.d2t-building { margin: 0; font-size: 14px; line-height: 1.6; color: #444444; }
.d2t-building__now { margin: 16px 0 0; display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: #292929; }
.d2t-building__num { font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 800; font-size: 40px; line-height: 1; color: #a35700; }

/* Nøgletal */
.d2t-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.d2t-stat { flex: 1 1 320px; min-width: 0; background: #ffffff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 26px 28px; box-sizing: border-box; }
.d2t-stat__num { font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 800; font-size: 52px; line-height: 1; color: #a35700; }
.d2t-stat__txt { margin-top: 14px; font-size: 16px; line-height: 1.5; color: #1a1a1a; }
.d2t-stat__small { margin-top: 10px; font-size: 13px; line-height: 1.55; color: #646464; }
.d2t-stat__small a { color: var(--d2-orange-text, #a35700); }

/* Kilder og metode */
.d2t-sources { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.d2t-source { flex: 1 1 320px; min-width: 0; border-top: 3px solid #1a1a1a; padding-top: 14px; }
.d2t-source h3 { margin: 0 0 6px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 16px; color: #1a1a1a; }
.d2t-source h3 a { color: inherit; }
.d2t-source p { margin: 0; font-size: 14px; line-height: 1.6; color: #444444; }
.d2t-source--soon { border: 2px dashed #c9c9c9; border-radius: 12px; padding: 14px 18px; box-sizing: border-box; }

/* Afslutning */
.d2t-cta { background: linear-gradient(#fffaf3 0%, #ffffff 100%); border-top: 1px solid #e8e8e8; padding: 56px 0; }
.d2t-cta__inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.d2t-cta__inner > div:first-child { flex: 1 1 480px; min-width: 0; }
.d2t-cta h2 { margin: 0 0 8px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 800; font-size: 28px; line-height: 1.2; color: #1a1a1a; }
.d2t-cta p { margin: 0; font-size: 16px; line-height: 1.6; color: #444444; max-width: 640px; }
.d2t-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tablet og mobil */
@media (max-width: 900px) {
  .d2t-strip__inner { flex-direction: column; gap: 20px; }
  .d2t-strip__levels, .d2t-strip__kev { flex: 0 0 auto; }
  .d2t-strip__kev { border-left: 0; padding-left: 0; border-top: 1px solid #d8d8d8; padding-top: 18px; }
  .d2t-strip__kev--alone { border-top: 0; padding-top: 0; }
  .d2t-read { gap: 32px; }
}
@media (max-width: 640px) {
  .d2t-strip { padding: 22px 0; }
  .d2t-chips { flex-direction: column; gap: 8px; }
  .d2t-chip { padding: 11px 14px 11px 0; gap: 12px; }
  .d2t-chip__name { flex: 1 1 auto; min-width: 0; }
  .d2t-chip .d2t-chip__lvl { flex-shrink: 0; }
  .d2t-kev__num { font-size: 40px; }
  .d2t-section { padding: 40px 0; }
  .d2t-lv__head { display: none; }
  .d2t-lv__grid { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; column-gap: 12px; }
  .d2t-lv__gauge { grid-column: 1 / -1; }
  .d2t-lv__who { display: contents; }
  .d2t-lv__txt { justify-self: end; font-weight: 700; color: #1a1a1a; }
  .d2t-lv__axis { display: flex; }
  .d2t-h2 { font-size: 24px; }
  .d2t-graph { padding: 18px; }
  .d2t-chart { min-width: 520px; max-width: none; }
  .d2t-scrollhint { display: block; }
  .d2t-stat { padding: 22px; }
  .d2t-stat__num { font-size: 44px; }
  .d2t-cta { padding: 40px 0; }
  .d2t-cta h2 { font-size: 24px; }
  .d2t-cta__btns .d2s-btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
/* Niveauforklaringer (styrelsens skala) */
.d2t-defs { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.d2t-defs__row { display: grid; grid-template-columns: 112px 1fr; gap: 6px 14px; align-items: start; }
.d2t-defs dt { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 13px; color: #1a1a1a; }
.d2t-defs dd { margin: 0; font-size: 14px; line-height: 1.5; color: #444444; }
.d2t-defs__sw { display: inline-block; flex-shrink: 0; width: 6px; height: 18px; border-radius: 3px; }
@media (max-width: 640px) {
  .d2t-defs__row { grid-template-columns: 1fr; gap: 2px; }
}
/* Aktuelle optagelser i CISA KEV: kompakt liste pr. optagelsesdato (release 3.0.4) */
.d2t-ev { max-width: 920px; border-top: 1px solid #e8e8e8; }
.d2t-ev__day { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0 12px; border-bottom: 1px solid #e8e8e8; }
.d2t-ev__date { margin: 0; padding-top: 9px; font-family: var(--d2-font-display, Montserrat, Arial, sans-serif); font-size: 13px; font-weight: 700; line-height: 1.4; color: #1a1a1a; }
.d2t-ev__list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.d2t-ev__row { border-top: 1px solid #f0f0f0; }
.d2t-ev__row:first-child { border-top: 0; }
.d2t-ev__item > summary { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; line-height: 1.45; color: #1a1a1a; }
.d2t-ev__item > summary::-webkit-details-marker { display: none; }
.d2t-ev__item > summary::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-right: 2px solid #767676; border-bottom: 2px solid #767676; transform: rotate(-45deg); position: relative; top: -1px; }
.d2t-ev__item[open] > summary::before { transform: rotate(45deg); }
.d2t-ev__item > summary:hover { color: var(--d2-orange-text, #a35700); }
.d2t-ev__plain { padding: 9px 0 9px 16px; font-size: 15px; font-weight: 600; line-height: 1.45; color: #1a1a1a; }
.d2t-ev__body { padding: 0 0 12px 16px; }
.d2t-ev__txt { margin: 0; font-size: 14px; line-height: 1.55; color: #444444; }
.d2t-ev__meta { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #646464; }
.d2t-ev__meta a { color: var(--d2-orange-text, #a35700); }
@media (max-width: 640px) {
  .d2t-ev__day { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 0 8px; }
  .d2t-ev__date { padding-top: 0; }
  .d2t-ev__item > summary { padding: 9px 0; font-size: 14.5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .d2t-link { transition: color 0.15s ease; }
}
