.krk-case {
  --krk-night: #172749;
  --krk-window-muted: #dce5ff;
  --krk-window-line: #8495c6;
  --krk-edge: color-mix(in srgb, var(--blue) 45%, var(--muted));
  --krk-chart-context: color-mix(in srgb, var(--blue) 35%, var(--muted));
  padding-bottom: clamp(44px, 6vw, 80px);
}
.krk-case .narrative { width: 100% }
.krk-case h3 { font-size: clamp(22px, 2vw, 29px); letter-spacing: -.045em }
.krk-case p { text-wrap: pretty }
.krk-window {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--krk-night);
  padding: clamp(19px, 2.4vw, 33px);
  border-radius: var(--radius);
}
.krk-window::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .45;
  background: repeating-radial-gradient(ellipse 78% 55% at 106% 14%, transparent 0 27px, #718bdf45 28px 29px, transparent 30px 37px);
  mask-image: linear-gradient(155deg,#000 4%,transparent 68%);
}
.krk-window figcaption, .krk-window small { color: var(--krk-window-muted); font: 13px/1.45 var(--mono) }
.krk-window-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 15px 0 24px }
.krk-window-time > span { font-size: clamp(48px, 4.65vw, 66px); font-weight: 500; letter-spacing: -.09em; line-height: .9; font-variant-numeric: tabular-nums }
.krk-window dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 19px }
.krk-window dl div { display: flex; flex-direction: column; justify-content: space-between; padding: 11px 12px; border: 1px solid var(--krk-window-line); border-radius: var(--detail-radius); background: color-mix(in srgb, var(--krk-night) 85%, var(--blue)) }
.krk-window dl div + div { border-style: dashed; background: var(--krk-night) }
.krk-window dl .krk-probability { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px }
.krk-window dl .krk-probability dd { margin: 0 }
.krk-window dt { color: var(--krk-window-muted); font-size: 13px }
.krk-window dd { margin: 5px 0 0; font-size: clamp(21px, 2.45vw, 29px); letter-spacing: -.04em; font-weight: 600; line-height: 1 }
.krk-window dd span { font-size: .54em }
.krk-case .krk-window p { font-size: 14px; color: var(--krk-window-muted); margin-bottom: 0 }
.krk-case .krk-section-intro { margin-bottom: clamp(22px, 3vw, 36px) }
.krk-case .krk-section-intro > p { max-width: 62ch; margin: 0; color: var(--muted) }
.krk-case .krk-copy p { margin: 7px 0 0; max-width: 61ch; color: var(--muted) }
.case-exhibit.krk-figure {
  margin-block: 0;
  padding: clamp(16px, 2.6vw, 30px);
  min-width: 0;
}
.krk-figure.case-exhibit figcaption {
  margin-bottom: 12px;
  font-size: clamp(18px, 1.65vw, 23px);
  letter-spacing: -.026em;
}
.krk-system {
  --krk-centre: calc(100% / 6);
  --krk-solid: var(--muted);
}
.krk-system.case-exhibit figcaption { margin-bottom: 18px }
.krk-source-lanes, .krk-system-branches {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.krk-source-lanes, .krk-processing, .krk-machine ol { list-style: none; padding: 0; margin: 0 }
.krk-source-lanes li { text-align: center; padding: 7px 4px }
.krk-system strong, .krk-system h3 { font-size: 15px; font-weight: 650; letter-spacing: -.022em }
.krk-source-lanes span, .krk-snapshot span { display: block; color: var(--muted); font-size: 13px }
.krk-wire {
  position: relative;
  height: 28px;
}
.krk-wire::before {
  content: "";
  position: absolute;
  border-color: var(--krk-solid);
  border-style: solid;
}
.krk-wire::before { top: 0; bottom: 0; left: 50%; border-width: 0 0 0 1px }
.krk-merge span, .krk-split span {
  position: absolute;
  left: var(--krk-centre);
  right: var(--krk-centre);
  height: 50%;
  border: 1px solid var(--krk-solid);
}
.krk-merge span { top: 0; border-top: 0 }
.krk-split span { bottom: 0; right: 50%; border-bottom: 0 }
.krk-wire::after, .krk-split span::before {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: solid var(--krk-solid);
  border-width: 0 1px 1px 0;
  transform: translateX(-50%) rotate(45deg);
}
.krk-split span::before { left: 0 }
.krk-node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px clamp(14px,3vw,32px);
  align-items: center;
  padding: 12px 16px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 70%, transparent);
}
.krk-node > strong { color: var(--blue) }
.krk-processing { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 14px }
.krk-processing li + li::before { content: "→"; color: var(--krk-solid); margin-right: 10px }
.krk-snapshot { width: fit-content; margin: 0 auto; text-align: center; padding: 5px 13px }
.krk-system-branches > div { position: relative; padding: 8px 4px 0 }
.krk-request, .krk-collector { text-align: center }
.krk-system-branches h3 { margin: 0 0 7px; line-height: 1.27 }
@media (min-width: 901px) {
  .krk-collector h3 { display: flex; align-items: center; gap: 7px; margin-inline: -4px }
  .krk-collector h3::before, .krk-collector h3::after { content: ""; flex: 1 }
  .krk-collector h3::after { border-top: 1px dashed var(--blue) }
}
.krk-case .krk-system-branches p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted) }
.krk-system-branches > .krk-machine {
  border-inline-start: 1px dashed var(--blue);
  padding-inline-start: 12px;
}
.krk-machine::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 14px;
  left: -8px;
  border: solid var(--blue);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.krk-machine h3 { color: var(--blue) }
.krk-machine ol { color: var(--muted); font-size: 14px; line-height: 1.5 }
.krk-machine li { padding: 0 0 0 10px; position: relative }
.krk-machine li::before { content: ""; position: absolute; width: 4px; height: 4px; background: var(--blue); border-radius: 50%; left: 0; top: .65em }
.krk-machine li strong { color: var(--ink); font-size: inherit; letter-spacing: 0 }
.krk-case p.krk-system-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 19px; margin: 21px 0 0; font-size: 12px; color: var(--muted) }
.krk-system-key span { display: inline-flex; align-items: center; gap: 6px }
.krk-system-key i { width: 15px; border-top: 1px solid var(--krk-solid) }
.krk-system-key span + span i { border-color: var(--blue); border-top-style: dashed }
/* The third stage defines the target and does not add another time point. */
.krk-flow {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.krk-flow li { position: relative; padding-inline-end: 15px }
.krk-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: -7px;
  width: 7px;
  height: 7px;
  border: solid var(--krk-edge);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.krk-flow strong, .krk-flow span { display: block }
.krk-flow strong { font-size: 15px; font-weight: 650 }
.krk-flow span { color: var(--muted); font-size: 13px }
.krk-flow .krk-flow-time { margin-bottom: 4px; color: var(--blue); font: 12px/1.5 var(--mono) }
.krk-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--gap); align-items: start; margin-top: clamp(18px, 3vw, 38px) }
.krk-scenarios { margin-block:0 }
.krk-scenarios + .krk-scenarios { margin-top:clamp(23px,3.4vw,44px) }
.krk-bands dl { margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px }
.krk-bands dl div { padding-top: 7px; border-top: 1px solid var(--line) }
.krk-bands dt { color: var(--muted); font-size: 13px; font-weight: 600 }
.krk-bands dd { margin: 1px 0 0 }
.krk-bands b { display: block; font-size: 19px; line-height: 1.17; color: var(--blue); letter-spacing: -.05em }
.krk-bands dd span { font-size: 13px; color: var(--muted) }
.krk-case p.krk-fine { font-size: 14px; line-height: 1.45; margin-bottom: 0 }
.krk-results { align-items: stretch }
.krk-brier dl { margin: 16px 0 0; display: grid; gap: 9px }
.krk-brier dt { font-size: 13px }
.krk-brier dd { display: grid; grid-template-columns: minmax(0,1fr) 7ch; gap: 10px; align-items: center; margin: 0; font: 13px/1.5 var(--mono) }
.krk-brier dd b { text-align: right }
.krk-brier meter { appearance: none; display: block; width: 100%; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden }
.krk-brier meter::-webkit-meter-bar { background: var(--line); border: 0; margin: 0 }
.krk-brier meter::-webkit-meter-optimum-value { background: var(--krk-chart-context) }
.krk-brier meter::-moz-meter-bar { background: var(--krk-chart-context) }
.krk-brier dl div:first-child meter::-webkit-meter-optimum-value { background: var(--blue) }
.krk-brier dl div:first-child meter::-moz-meter-bar { background: var(--blue) }
.case-exhibit.krk-alerts { background: var(--paper); border: 1px solid var(--line) }
.krk-alerts table { border-collapse: collapse; width: 100%; margin: 14px 0; text-align: right; font-variant-numeric: tabular-nums }
.krk-alerts th, .krk-alerts td { padding: 6px 4px; border-bottom: 1px solid var(--line) }
.krk-alerts th { font-size: 13px; font-weight: 600 }
.krk-alerts th:first-child { text-align: left }
.krk-alerts td { font-size: 14px }
.krk-case .krk-coverage { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12px 30px }
.krk-case .krk-coverage p { margin: 0; max-width: 45ch; color: var(--muted) }
.krk-coverage ul { padding: 0; margin: 0; list-style: none; font-weight: 650 }
.krk-coverage li a { display: inline-block; padding-block: 5px }
@media (max-width: 870px) {
  .krk-window-time { margin-block: 12px 18px }
}
@media (max-width: 700px) {
  .krk-two, .krk-case .krk-coverage, .krk-flow { grid-template-columns: minmax(0,1fr) }
  .krk-flow li:not(:last-child)::after { inset: auto auto -12px 3px; transform: rotate(135deg) }
}
@media (max-width: 900px) {
  .krk-node { grid-template-columns: minmax(0,1fr) }
  .krk-split { display: none }
  .krk-straight::before, .krk-straight::after { left: 10px }
  .krk-snapshot { width: auto; text-align: left; padding: 6px 0 6px 10px }
  .krk-system-branches { grid-template-columns: minmax(0,1fr); row-gap: 0 }
  .krk-system-branches > div { padding: 8px 0 5px 25px; text-align: left }
  .krk-request::before, .krk-collector::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    width: 11px;
    height: 17px;
    border: solid var(--krk-solid);
    border-width: 0 0 1px 1px;
  }
  .krk-request::after { content: ""; position: absolute; top: 17px; bottom: 0; left: 10px; border-left: 1px solid var(--krk-solid) }
  .krk-system-branches > .krk-machine { border: 0; padding-inline-start: 47px }
  .krk-machine::before { content: ""; position: absolute; top: 0; left: 26px; width: 12px; height: 17px; border: dashed var(--blue); border-width: 0 0 1px 1px }
  .krk-machine::after { top: 14px; left: 34px }
  .krk-machine li { padding: 0 }
  .krk-machine li::before { content: none }
}
@media (max-width: 480px) {
  .krk-system-branches { column-gap: 8px }
  .krk-system-branches h3 { font-size: 14px }
  .krk-system .krk-system-branches p, .krk-machine ol { font-size: 13px }
  .krk-source-lanes span { font-size: 11px }
  .krk-source-lanes li strong { font-size: 13px }
  .krk-processing { font-size: 13px }
}

.krk-case p.krk-metric-note { margin-top: 13px }

.krk-hero-link { margin-top: 14px }
.krk-reading-key {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px clamp(13px, 2.6vw, 34px);
  margin: 18px 0 0;
}
.krk-reading-key > div { padding-top: 8px; border-top: 1px solid var(--line) }
.krk-reading-key dt { font-weight: 650 }
.krk-reading-key dd { margin: 3px 0 0; color: var(--muted); font-size: 16px }
.krk-case p.krk-reader-note { max-width: 66ch; color: var(--muted); margin: 22px 0 0; font-size: 16px }
.krk-source-policy { margin-top: 24px }
.krk-source-policy h3 { font-size: clamp(21px,2vw,27px) }
.krk-source-policy .krk-reading-key { margin-top: 12px }

@media (max-width: 900px) {
  .krk-processing { display: grid; gap: 4px; border-inline-start: 1px solid var(--line); padding-inline-start: 9px }
  .krk-processing li + li::before { content: none }
  .krk-merge::before { left: 10px; top: 50% }
  .krk-merge::after { left: 10px }
  .krk-merge span::before, .krk-merge span::after { content: ""; position: absolute }
  .krk-merge span::before { left: 50%; top: 0; bottom: 0; border-inline-start: 1px solid var(--krk-solid) }
  .krk-merge span::after { bottom: -1px; right: 100%; width: calc(25% - 10px); border-bottom: 1px solid var(--krk-solid) }
}
@media (max-width: 780px) {
  .krk-case .case-index { display: none }
  .krk-case .krk-chapter-menu { display: block; padding: 0; gap: 0 }
  .krk-chapter-menu summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 6px 10px;
    list-style: none;
    cursor: pointer;
  }
  .krk-chapter-menu summary::-webkit-details-marker { display: none }
  .krk-chapter-menu summary::before { content: "+"; color: var(--blue); font-size: 16px }
  .krk-chapter-menu[open] summary::before { content: "−" }
  .krk-chapter-menu summary .label { margin-inline-start: auto }
  .krk-chapter-menu nav { display: grid; padding: 2px 9px 8px; border-top: 1px solid var(--line) }
  .krk-chapter-menu nav a { display: flex; align-items: center; min-height: 42px; font-size: 14px }
}
@media (max-width: 640px) {
  .krk-reading-key { grid-template-columns: minmax(0,1fr) }
}

.krk-timeline-panel {
  --hour-line: #b0c7e135;
  --missing-stripe: repeating-linear-gradient(135deg,#a8c5dc 0 1px,#294762 1px 4px);
  padding: clamp(14px,3vw,28px);
  border-radius: var(--radius);
  background: linear-gradient(145deg,#1c384d,#16263c 72%);
  color: #edf5fc;
}
.krk-timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 16px;
  justify-content: space-between;
  margin-block-end: 18px;
}
.krk-timeline-header strong { font-size: clamp(17px,2vw,23px); font-weight: 650 }
.krk-timeline-header span, .krk-timeline-hours, .krk-timeline-gap { font: 12px/1.4 var(--mono); color: #cee1f2 }
.krk-timeline-hours {
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  font-variant-numeric: tabular-nums;
}
.krk-timeline-hours span { padding-inline-start: 4px; border-inline-start: 1px solid var(--hour-line) }
.krk-timeline-plot {
  display: grid;
  grid-template-columns: repeat(96,minmax(0,1fr));
  grid-template-rows: minmax(0,1fr);
  align-items: end;
  height: clamp(73px,8.5vw,104px);
  background: repeating-linear-gradient(90deg,var(--hour-line) 0 1px,transparent 1px 12.5%);
}
.krk-band { grid-row: 1; min-width: 0 }
.krk-band--quiet { height: 14%; border-top: 2px solid #8ad3bb; background: linear-gradient(#8ad3bb40,transparent) }
.krk-band--caution { height: 43%; border-top: 2px solid #ffc184; background: linear-gradient(#ffc18450,transparent) }
.krk-band--before { grid-column: 1 / 13 }
.krk-band--brief { grid-column: 13 / 19 }
.krk-band--peak { grid-column: 14 / 16; height: 63%; border-top: 2px solid #f7a4b3; background: linear-gradient(#f7a4b388,transparent) }
.krk-band--alternative { grid-column: 19 / 25; position: relative }
.krk-band--alternative::after {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  height: clamp(17px,2.45vw,30px);
  border: 1px dashed #ffc184;
  background: #ffc18414;
}
.krk-band--fog { grid-column: 25 / 37 }
.krk-band--gap { grid-column: 37 / 38; height: 100%; background: var(--missing-stripe) }
.krk-band--after { grid-column: 38 / 73 }
.krk-band--evening { grid-column: 73 / 97 }
.krk-timeline-gap { display: flex; align-items:center; gap: 7px; margin-top: 13px }
.krk-timeline-gap i { width: 9px; height: 11px; background: var(--missing-stripe) }
.krk-timeline > figcaption { color: var(--muted); margin-top: 9px; font-size: 14px }
.krk-timeline > figcaption a { display: inline-block }
@media (max-width: 420px) {
  .krk-timeline-hours { font-size: 10px; letter-spacing: -.03em }
  .krk-timeline-hours span { padding-inline-start: 2px }
}
