.report-teaser-panel {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 55px);
}

.link-map {
    min-width: 0;
    padding: clamp(13px, 2.5vw, 29px);
    border: 1px solid #536aa6;
    border-radius: 17px;
    background: #131f40;
    scroll-margin-top: 16px;
}

.link-map-heading, .link-map-columns {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.link-map-heading { flex-wrap: wrap; margin-bottom: 16px; }
.link-map-heading h3 { font-size: clamp(1.48rem, 2.7vw, 2.3rem); }
.link-map-heading p, .link-map-columns { color: #c4d0ee; font-size: .83rem; }
.link-map-columns {
    margin-bottom: 6px;
    font-weight: 670;
}
.link-map-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.link-map-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16px, .35fr) minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    --connector: #859bce;
}
.link-map-row[data-selected] { --connector: var(--lime); }

.link-map-source, .link-map-target {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #536ba6;
    border-radius: 8px;
    color: #f7f9ff;
    background: #233663;
    font-size: .9rem;
    font-weight: 670;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: left;
}
button.link-map-source { cursor: pointer; }
button.link-map-source:hover { background: #31497e; }
button.link-map-source:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.link-map-source[aria-pressed="true"] {
    border-color: var(--lime);
    background: var(--lime);
    color: #182134;
}
.link-map-source[aria-pressed="true"]:hover { background: var(--lime-hover); }
.link-map-target {
    justify-content: flex-end;
    border-color: #465b8e;
    background: #1d2e53;
    color: #dce6ff;
    text-align: right;
}
.link-map-row[data-selected] .link-map-target { border-color: #91a96a; color: var(--white); }

.link-map-line {
    position: relative;
    display: block;
    height: 16px;
    color: var(--connector);
    transform-origin: left center;
}
.link-map-line::before, .link-map-line::after { content: ""; position: absolute; }
.link-map-line::before { inset: 7px 2px auto 0; height: 2px; border-radius: 2px; background: currentColor; }
.link-map-line::after {
    inset: 4px 1px auto auto;
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}

.link-map-details {
    margin-top: 13px;
    padding: 10px 12px;
    border: 1px solid #445987;
    border-radius: 9px;
    background: #192849;
}
.link-map[data-ready] .link-map-details { min-height: 111px; }
.link-map-detail:not([hidden]) + .link-map-detail:not([hidden]) { margin-top: 12px; }
.link-map-detail h4 { margin: 0; color: #f5f7ff; font-size: .91rem; font-weight: 750; line-height: 1.35; }
.link-map-detail code {
    display: block;
    margin: 3px 0 4px;
    color: #d4ec9a;
    font: .78rem/1.4 ui-monospace, monospace;
    overflow-wrap: anywhere;
}
.link-map-detail p { color: #d1dcf7; font-size: .89rem; line-height: 1.4; }

@media (prefers-reduced-motion: no-preference) {
    .link-map-graph[data-motion="pending"] .link-map-line { transform: scaleX(0); }
    .link-map-graph[data-motion="played"] .link-map-line {
        transform: scaleX(1);
        transition: transform 550ms cubic-bezier(.22, .7, .2, 1);
    }
    .link-map-graph[data-motion="played"] .link-map-row:nth-child(2) .link-map-line { transition-delay: 115ms; }
    .link-map-graph[data-motion="played"] .link-map-row:nth-child(3) .link-map-line { transition-delay: 230ms; }
}
@media (max-width: 920px) {
    .report-teaser-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
    .report-teaser-panel { padding: 18px; }
    .link-map-row { gap: 4px; }
    .link-map-source, .link-map-target { padding: 5px 6px; font-size: .8rem; }
    .link-map-heading { margin-bottom: 11px; }
}
@media (forced-colors: active) {
    .link-map-line::before { border-top: 2px solid CanvasText; }
    .link-map-source[aria-pressed="true"] { border: 2px solid Highlight; }
}
