:root {
    --bg: #eef5ff;
    --bg-deep: #f7f1c9;
    --panel: rgba(255, 255, 255, 0.8);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --ink: #13212d;
    --muted: #526273;
    --line: rgba(53, 93, 171, 0.18);
    --accent: #1756d1;
    --accent-2: #f3c623;
    --accent-3: #2a78ff;
    --accent-soft: rgba(23, 86, 209, 0.12);
    --accent-soft-2: rgba(243, 198, 35, 0.16);
    --shadow: 0 24px 60px rgba(32, 74, 98, 0.14);
    --shadow-soft: 0 16px 38px rgba(53, 116, 148, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(42, 120, 255, 0.26), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(243, 198, 35, 0.26), transparent 22%),
        radial-gradient(circle at 82% 72%, rgba(23, 86, 209, 0.18), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 54%, var(--bg-deep) 100%);
    min-height: 100vh;
}

.hero {
    padding: 4rem 1.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.8;
    pointer-events: none;
}

.hero::before {
    width: 18rem;
    height: 18rem;
    right: -3rem;
    top: 1rem;
    background: radial-gradient(circle, rgba(42, 120, 255, 0.2), transparent 70%);
}

.hero::after {
    width: 20rem;
    height: 20rem;
    left: -5rem;
    top: 0;
    background: radial-gradient(circle, rgba(243, 198, 35, 0.18), transparent 72%);
}

.hero__inner,
.layout {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.quicknav,
.crumbs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.quicknav a,
.crumbs a,
.text-link {
    color: var(--accent-3);
    text-decoration: none;
    transition: color 0.18s ease;
}

.quicknav a:hover,
.crumbs a:hover,
.text-link:hover {
    color: #103e9a;
}

.quicknav {
    align-items: center;
    gap: 0.65rem;
}

.quicknav a {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(42, 120, 255, 0.14);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    color: #c49400;
    margin: 0 0 0.9rem;
}

h1,
h2,
h3,
.button {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
}

h2 {
    letter-spacing: -0.03em;
}

.detail-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 0 0 0.5rem;
}

.intro {
    max-width: 48rem;
    font-size: 1.08rem;
    color: var(--muted);
}

.layout {
    padding-bottom: 4rem;
}

.layout--detail {
    padding-top: 2rem;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 1.15rem 1.15rem 1.3rem;
    margin-bottom: 1rem;
}

.panel--accent {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.88)),
        linear-gradient(120deg, rgba(42, 120, 255, 0.08), rgba(243, 198, 35, 0.1));
}

.mission-panel__text {
    max-width: 62rem;
}

.context-panel__text {
    max-width: 58rem;
}

.section-jump {
    margin-top: -0.15rem;
}

.section-jump .panel__head {
    margin-bottom: 0.55rem;
}

.orientation-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 1rem;
}

.orientation-card {
    border: 1px solid rgba(66, 103, 128, 0.16);
    border-radius: 20px;
    background: var(--panel-strong);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.orientation-card h3 {
    margin: 0 0 0.45rem;
}

.orientation-card p:last-child {
    margin-bottom: 0;
}

.research-route-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.research-route-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(42, 120, 255, 0.15);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
    box-shadow: var(--shadow-soft);
}

.research-route-card h3 {
    margin: 0;
    color: #173150;
    line-height: 1.35;
}

.research-route-card p {
    margin: 0;
    color: #3d5675;
    line-height: 1.55;
}

.research-route-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.research-route-card__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(23, 86, 209, 0.08);
    color: #214466;
    font-size: 0.85rem;
}

.route-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.route-pills a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: #17305f;
    background: linear-gradient(135deg, rgba(243, 198, 35, 0.22), rgba(42, 120, 255, 0.12));
    border: 1px solid rgba(42, 120, 255, 0.14);
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.route-pills a:hover {
    transform: translateY(-1px);
    color: var(--accent);
    box-shadow: 0 18px 34px rgba(52, 92, 140, 0.14);
}

.crumbs {
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
}

.crumbs strong {
    color: var(--ink);
    font-weight: 700;
}

.route-panel {
    margin-top: 1.1rem;
}

.panel__head {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.toolbar--filters {
    flex-wrap: wrap;
    align-items: end;
}

.toolbar__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 170px;
}

.toolbar__field span {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.filter-pills span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    background: linear-gradient(135deg, rgba(42, 120, 255, 0.12), rgba(243, 198, 35, 0.18));
    color: #1f447f;
    border: 1px solid rgba(42, 120, 255, 0.12);
    font-size: 0.84rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.filter-pills a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    background: rgba(255, 255, 255, 0.84);
    color: #1f447f;
    border: 1px solid rgba(42, 120, 255, 0.12);
    font-size: 0.84rem;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.filter-pills a:hover,
.filter-pills a:focus {
    transform: translateY(-1px);
    border-color: rgba(42, 120, 255, 0.22);
    box-shadow: 0 12px 22px rgba(23, 86, 209, 0.12);
    outline: none;
}

.filter-pills a.is-active {
    background: linear-gradient(135deg, rgba(42, 120, 255, 0.16), rgba(243, 198, 35, 0.24));
    border-color: rgba(42, 120, 255, 0.25);
    color: #143362;
    font-weight: 700;
}

.toolbar input,
.toolbar select,
.button {
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0.78rem 1rem;
    font-size: 0.95rem;
}

.toolbar input,
.toolbar select {
    flex: 1;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.toolbar input:focus,
.toolbar select:focus {
    outline: none;
    border-color: rgba(23, 86, 209, 0.45);
    box-shadow: 0 0 0 4px rgba(23, 86, 209, 0.12);
}

.button {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(23, 86, 209, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(23, 86, 209, 0.28);
    filter: saturate(1.05);
}

.button--ghost {
    background: linear-gradient(135deg, #f0bc16, #ffd84d);
    color: #17305f;
    box-shadow: 0 14px 28px rgba(243, 198, 35, 0.26);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.stat-card,
.result-card,
.node-card {
    border: 1px solid rgba(66, 103, 128, 0.16);
    border-radius: 20px;
    background: var(--panel-strong);
    padding: 0.95rem;
    box-shadow: var(--shadow-soft);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card--link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.stat-card--link:hover,
.stat-card--link:focus-visible {
    border-color: rgba(42, 120, 255, 0.34);
    box-shadow: 0 18px 34px rgba(42, 120, 255, 0.14);
    outline: none;
    transform: translateY(-2px);
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
    opacity: 0.7;
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.result-list,
.network-board {
    display: grid;
    gap: 0.75rem;
}

.result-card h3,
.node-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.result-card--clickable {
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.result-card--clickable:hover,
.result-card--clickable:focus {
    transform: translateY(-2px);
    border-color: rgba(42, 120, 255, 0.28);
    box-shadow: 0 18px 34px rgba(52, 92, 140, 0.14);
    outline: none;
}

.result-card--active {
    border-color: rgba(42, 120, 255, 0.42);
    box-shadow: 0 18px 34px rgba(42, 120, 255, 0.12);
}

.coverage-gap-card {
    border-left: 5px solid rgba(80, 120, 220, 0.35);
}

.coverage-gap-card--high {
    border-left-color: #d85b4b;
}

.coverage-gap-card--medium {
    border-left-color: #d69a1f;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: start;
}

.alignment-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: start;
}

.alignment-dimension-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(66, 103, 128, 0.16);
    border-radius: 18px;
    background: var(--panel-strong);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.alignment-dimension-card:hover,
.alignment-dimension-card:focus-visible,
.alignment-dimension-card--active {
    border-color: rgba(42, 120, 255, 0.38);
    box-shadow: 0 18px 34px rgba(42, 120, 255, 0.14);
    outline: none;
    transform: translateY(-2px);
}

.alignment-dimension-card span,
.alignment-dimension-card em {
    color: var(--muted);
    font-style: normal;
}

.alignment-profile-list {
    display: grid;
    gap: 0.75rem;
}

.alignment-profile-card {
    display: grid;
    gap: 0.7rem;
    padding: 0.95rem;
    border: 1px solid rgba(66, 103, 128, 0.16);
    border-radius: 18px;
    background: var(--panel-strong);
    box-shadow: var(--shadow-soft);
}

.alignment-profile-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.alignment-profile-card__head h3 {
    margin: 0;
}

.alignment-profile-card__head > strong {
    min-width: 3.8rem;
    text-align: right;
    font-size: 1.35rem;
}

.alignment-meter {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(201, 63, 63, 0.22), rgba(255, 255, 255, 0.8) 50%, rgba(32, 138, 85, 0.24));
    border: 1px solid rgba(43, 76, 116, 0.12);
}

.alignment-meter::before {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: 50%;
    border-left: 1px solid rgba(43, 76, 116, 0.2);
}

.alignment-meter span {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #17305f;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(23, 48, 95, 0.22);
    transform: translate(-50%, -50%);
}

.alignment-profile-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.alignment-profile-card__meta span {
    border-radius: 999px;
    background: rgba(23, 86, 209, 0.08);
    color: #24415f;
    font-size: 0.84rem;
    padding: 0.3rem 0.58rem;
}

.trace-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.trace-badges--block {
    align-items: center;
    margin: 0.25rem 0 1rem;
}

.trace-badges__label {
    color: #173150;
    font-size: 0.86rem;
}

.trace-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(44, 74, 103, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: #26435f;
    font-size: 0.78rem;
    line-height: 1.2;
}

.trace-badge--person {
    border-color: rgba(28, 107, 93, 0.24);
    background: rgba(43, 155, 130, 0.12);
    color: #17564b;
}

.trace-badge--party {
    border-color: rgba(42, 91, 171, 0.24);
    background: rgba(74, 125, 211, 0.12);
    color: #213f75;
}

.trace-badge--source {
    border-color: rgba(139, 102, 19, 0.24);
    background: rgba(217, 174, 67, 0.16);
    color: #6a4e0d;
}

.trace-badge--context {
    border-color: rgba(105, 114, 125, 0.22);
    background: rgba(128, 139, 150, 0.12);
    color: #44505d;
}

.party-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.party-source-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(69, 97, 124, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.92));
    box-shadow: var(--shadow-soft);
}

.party-source-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.party-source-card__head h3 {
    margin: 0 0 0.2rem;
    font-size: 1.02rem;
}

.party-source-card__head > strong {
    min-width: 3.2rem;
    text-align: right;
    color: #173150;
}

.source-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.source-metric-grid span {
    display: grid;
    gap: 0.18rem;
    min-height: 3.2rem;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(44, 74, 103, 0.12);
    background: rgba(245, 248, 252, 0.82);
    color: #5f7184;
    font-size: 0.78rem;
}

.source-metric-grid strong {
    color: #172f4b;
    font-size: 1.06rem;
}

.inline-drawer {
    border-radius: 16px;
    border: 1px solid rgba(44, 74, 103, 0.12);
    background: rgba(247, 250, 253, 0.72);
    padding: 0.65rem 0.75rem;
}

.inline-drawer summary {
    cursor: pointer;
    color: #173150;
    font-weight: 700;
}

.mini-person-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.mini-person-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(44, 74, 103, 0.1);
}

.mini-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    background: #f2eadf;
    border: 1px solid rgba(44, 74, 103, 0.14);
}

.micro-drawer {
    margin-top: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(44, 74, 103, 0.1);
}

.micro-drawer summary {
    cursor: pointer;
    color: #284764;
    font-size: 0.88rem;
    font-weight: 700;
}

.vote-evidence-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.vote-evidence-row {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(44, 74, 103, 0.09);
}

.meta,
.muted,
.empty {
    color: var(--muted);
}

.is-hidden {
    display: none !important;
}

.notice {
    border-radius: 18px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(23, 86, 209, 0.16);
}

.notice--soft {
    background: linear-gradient(135deg, rgba(42, 120, 255, 0.08), rgba(243, 198, 35, 0.12));
    color: #27405f;
}

.hemicycle-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 1rem;
    align-items: start;
}

.hemicycle-board {
    background:
        radial-gradient(circle at 50% 12%, rgba(77, 132, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(12, 27, 54, 0.98), rgba(18, 39, 74, 0.96));
    border: 1px solid rgba(124, 169, 255, 0.2);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 24px 42px rgba(10, 22, 42, 0.28);
}

.hemicycle-viewport {
    overflow: auto;
    border-radius: 20px;
    padding: 0.9rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        linear-gradient(180deg, rgba(9, 21, 42, 0.78), rgba(13, 31, 59, 0.7));
    box-shadow: inset 0 0 0 1px rgba(146, 188, 255, 0.08);
}

.hemicycle {
    width: 100%;
    height: auto;
    display: block;
}

.hemicycle--zoom-normal {
    width: 100%;
}

.hemicycle--zoom-close {
    width: 142%;
    min-width: 900px;
}

.hemicycle--zoom-detail {
    width: 185%;
    min-width: 1180px;
}

.hemicycle a {
    cursor: pointer;
}

.hemicycle-legend {
    display: grid;
    gap: 0.75rem;
}

.legend-card {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    background: var(--panel-strong);
    border: 1px solid rgba(66, 103, 128, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.legend-card--link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.legend-card--link:hover,
.legend-card--link:focus {
    transform: translateY(-2px);
    border-color: rgba(42, 120, 255, 0.28);
    box-shadow: 0 18px 34px rgba(52, 92, 140, 0.14);
    outline: none;
}

.legend-card--active {
    border-color: rgba(42, 120, 255, 0.62);
    box-shadow: 0 18px 34px rgba(42, 120, 255, 0.16);
    outline: 2px solid rgba(255, 226, 102, 0.72);
    outline-offset: 2px;
}

.legend-card__swatch {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
    flex: 0 0 auto;
}

.legend-card__badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
    flex: 0 0 auto;
}

.legend-card__text strong {
    display: block;
}

.panel__head--compact {
    margin-top: 0.6rem;
    margin-bottom: 0.25rem;
}

.panel__head--compact h3 {
    margin: 0;
    font-size: 1rem;
}

.seat-tile rect {
    transition: transform 0.16s ease, opacity 0.16s ease, filter 0.16s ease, stroke 0.16s ease, stroke-width 0.16s ease;
    transform-box: fill-box;
    transform-origin: center;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 0.85;
}

.seat-tile:hover rect,
.seat-tile:focus rect {
    transform: translateY(-2px) scale(1.12);
    filter: drop-shadow(0 6px 12px rgba(29, 58, 109, 0.2));
    stroke-width: 1.2;
}

.seat-tile--active rect {
    transform: translateY(-2px) scale(1.16);
    filter: drop-shadow(0 0 10px rgba(255, 226, 102, 0.95));
    stroke: #fff1a6;
    stroke-width: 1.8;
}

.seat-tile--muted rect {
    opacity: 0.16;
    stroke: rgba(255, 255, 255, 0.22);
}

.seat-tile--vote rect {
    stroke: rgba(14, 32, 55, 0.72);
    stroke-width: 0.9;
}

.seat-tile--vote-for rect {
    filter: drop-shadow(0 0 4px rgba(32, 138, 85, 0.28));
}

.seat-tile--vote-against rect {
    filter: drop-shadow(0 0 4px rgba(201, 63, 63, 0.28));
}

.seat-tile--vote-abstain rect,
.seat-tile--vote-abstention rect {
    filter: drop-shadow(0 0 4px rgba(210, 162, 31, 0.32));
}

.vote-choice-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.8rem 0 0;
}

.vote-choice-legend span {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(43, 76, 116, 0.12);
    border-radius: 999px;
    color: rgba(28, 52, 83, 0.82);
    display: inline-flex;
    font-size: 0.86rem;
    gap: 0.4rem;
    line-height: 1.1;
    padding: 0.42rem 0.62rem;
}

.vote-choice-legend i {
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(14, 32, 55, 0.18);
    display: inline-block;
    height: 0.7rem;
    width: 0.7rem;
}

.filter-pills__label {
    color: rgba(28, 52, 83, 0.7);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: center;
}

.chart-list,
.timeline-bars {
    display: grid;
    gap: 0.7rem;
}

.chart-bar,
.timeline-bar {
    display: grid;
    gap: 0.45rem;
}

.chart-bar {
    grid-template-columns: minmax(160px, 1.3fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 0.8rem;
}

.chart-bar__label {
    display: grid;
    gap: 0.15rem;
}

.chart-bar__label strong {
    font-size: 0.95rem;
}

.chart-bar__label span {
    color: var(--muted);
    font-size: 0.82rem;
}

.chart-bar__track,
.timeline-bar__track {
    width: 100%;
    background: rgba(27, 58, 109, 0.08);
    border-radius: 999px;
    overflow: hidden;
    min-height: 14px;
}

.chart-bar__fill,
.timeline-bar__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    min-height: 14px;
}

.chart-bar__value {
    min-width: 2.5rem;
    text-align: right;
}

.chart-bar--active,
.timeline-bar--active {
    position: relative;
    border-color: rgba(42, 120, 255, 0.28);
    box-shadow: 0 20px 34px rgba(42, 120, 255, 0.12);
}

.chart-bar--active::before,
.timeline-bar--active::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.timeline-bar {
    padding: 0.85rem 0.95rem;
    background: var(--panel-strong);
    border: 1px solid rgba(66, 103, 128, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.timeline-bar__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.timeline-bucket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.timeline-bucket-card {
    display: grid;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: var(--panel-strong);
    border: 1px solid rgba(66, 103, 128, 0.16);
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.timeline-bucket-card:hover,
.timeline-bucket-card:focus {
    transform: translateY(-2px);
    border-color: rgba(42, 120, 255, 0.28);
    box-shadow: 0 18px 34px rgba(52, 92, 140, 0.14);
    outline: none;
}

.timeline-bucket-card--active {
    border-color: rgba(42, 120, 255, 0.3);
    box-shadow: 0 20px 36px rgba(42, 120, 255, 0.14);
}

.timeline-bucket-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.timeline-bucket-card__head span {
    color: var(--muted);
    font-size: 0.84rem;
}

.timeline-bucket-card__track {
    min-height: 12px;
    border-radius: 999px;
    background: rgba(34, 72, 125, 0.08);
    overflow: hidden;
}

.timeline-bucket-card__fill {
    min-height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
}

.timeline-bucket-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.timeline-drilldown {
    margin-top: 1.2rem;
}

.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.topic-pills span {
    display: inline-flex;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(243, 198, 35, 0.2), rgba(42, 120, 255, 0.12));
    color: #214b9c;
    padding: 0.28rem 0.62rem;
    font-size: 0.83rem;
    border: 1px solid rgba(42, 120, 255, 0.1);
}

.network-board {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.link-list {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
}

.richtext {
    margin-top: 1rem;
    line-height: 1.7;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.brand-logo {
    display: block;
    width: min(100%, 470px);
    height: auto;
}

.langbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.2rem;
}

.langbar__label {
    color: var(--muted);
}

.langbar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(79, 111, 255, 0.12);
    color: var(--accent-3);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.langbar__link:hover {
    transform: translateY(-1px);
    color: var(--accent);
}

.langbar__link.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    border-color: transparent;
}

.detail-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.person-avatar {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 28px rgba(53, 116, 148, 0.18);
    background: linear-gradient(135deg, rgba(42, 120, 255, 0.12), rgba(243, 198, 35, 0.16));
}

.crime-board {
    position: relative;
    min-height: 760px;
    padding: 1rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 251, 255, 0.9)),
        radial-gradient(circle at 20% 20%, rgba(243, 198, 35, 0.1), transparent 28%);
    border: 1px dashed rgba(42, 120, 255, 0.18);
}

.crime-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.crime-lines line {
    stroke: rgba(243, 198, 35, 0.75);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.crime-lines line.is-secondary {
    stroke: rgba(42, 120, 255, 0.46);
    stroke-dasharray: 7 8;
}

.crime-board--entities {
    min-height: 780px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 250, 255, 0.92)),
        radial-gradient(circle at 10% 15%, rgba(42, 120, 255, 0.12), transparent 25%),
        radial-gradient(circle at 85% 22%, rgba(243, 198, 35, 0.12), transparent 26%);
}

.crime-board--entities .crime-lines line.is-primary {
    stroke: rgba(177, 29, 29, 0.78);
    stroke-width: 3;
}

.bubble {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.38rem;
    border-radius: 999px;
    padding: 0.8rem;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 38px rgba(35, 61, 101, 0.16);
    backdrop-filter: blur(12px);
}

.bubble--group {
    background: radial-gradient(circle at 30% 30%, rgba(42, 120, 255, 0.22), rgba(23, 48, 95, 0.92));
    color: #f7fbff;
}

.bubble--party {
    background: radial-gradient(circle at 30% 30%, rgba(255, 214, 64, 0.24), rgba(176, 64, 10, 0.92));
    color: #fff8ef;
}

.bubble--country {
    background: radial-gradient(circle at 30% 30%, rgba(243, 198, 35, 0.24), rgba(22, 59, 131, 0.9));
    color: #f7fbff;
}

.bubble--person {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 255, 0.96));
    border-color: rgba(255, 255, 255, 0.98);
}

.bubble__badge {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.bubble__avatar-link {
    display: inline-flex;
}

.bubble__avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 20px rgba(31, 60, 122, 0.16);
    background: linear-gradient(135deg, rgba(42, 120, 255, 0.12), rgba(243, 198, 35, 0.16));
}

.bubble__label {
    font-weight: 700;
    line-height: 1.18;
    max-width: 100%;
    word-break: break-word;
}

.bubble__label--person {
    font-size: 0.94rem;
}

.bubble__meta {
    font-size: 0.78rem;
    opacity: 0.82;
}

.panel--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.mode-card {
    border: 1px solid rgba(80, 120, 220, 0.18);
    border-radius: 20px;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
    box-shadow: 0 12px 24px rgba(41, 75, 135, 0.08);
}

.mode-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.02rem;
}

.mode-card p {
    margin: 0 0 0.9rem;
    color: #334868;
    line-height: 1.5;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2368f0, #2e8cff);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(35, 104, 240, 0.18);
}

.pill-link--muted {
    background: linear-gradient(135deg, rgba(145, 165, 201, 0.24), rgba(205, 215, 232, 0.32));
    color: #47607f;
    box-shadow: none;
}

.crime-card--person,
.crime-card--topic,
.crime-card--document {
    position: absolute;
    width: 220px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 1.2rem;
}

.grid--workspace-top,
.grid--workspace-main {
    align-items: start;
}

.workspace-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.workspace-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(84, 122, 213, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.9));
}

.workspace-highlight__label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9a7b18;
}

.workspace-highlight strong {
    font-size: 1.05rem;
    line-height: 1.28;
    color: #193252;
}

.workspace-highlight span:last-child {
    color: #4d6482;
    font-size: 0.92rem;
}

.hint-stack {
    display: grid;
    gap: 0.85rem;
}

.hint-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(84, 122, 213, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.9));
}

.hint-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}

.hint-card p {
    margin: 0;
    color: #39506d;
    line-height: 1.5;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.case-study-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(84, 122, 213, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.92));
    box-shadow: 0 14px 28px rgba(33, 74, 146, 0.08);
}

.case-study-card__eyebrow {
    margin: 0;
    font-size: 0.73rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a7b18;
}

.case-study-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #173150;
}

.case-study-card p {
    margin: 0;
    color: #3d5675;
    line-height: 1.55;
}

.case-study-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.case-study-card__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(42, 120, 255, 0.08);
    color: #31547d;
    font-size: 0.8rem;
}

.case-study-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.workspace-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.workspace-column h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.board-mixer {
    position: relative;
}

.board-mixer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.board-mixer__column h3 {
    margin: 0 0 0.75rem;
    font-size: 0.98rem;
}

.board-drawer {
    overflow: hidden;
}

.board-drawer__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    padding: 0.1rem 0;
}

.board-drawer__summary::-webkit-details-marker {
    display: none;
}

.board-drawer__summary strong {
    font-size: 1.08rem;
    color: #173150;
}

.board-drawer__summary span {
    color: #5e7694;
    font-size: 0.92rem;
}

.board-drawer__content {
    margin-top: 1rem;
}

.result-list--compact .result-card {
    padding: 0.9rem 0.95rem;
}

.result-list--compact .result-card h4 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
}

.provenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.provenance-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(80, 120, 220, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
}

.provenance-card__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a7218;
}

.provenance-card__value {
    display: block;
    color: #1c3453;
    line-height: 1.35;
    word-break: break-word;
}

.audit-table-wrap {
    overflow-x: auto;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.audit-table th,
.audit-table td {
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid rgba(77, 106, 161, 0.14);
    text-align: left;
    vertical-align: top;
}

.audit-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a7218;
}

.term-hemicycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.term-hemicycle-card {
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(80, 120, 220, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
}

.term-hemicycle-card--active {
    border-color: rgba(42, 120, 255, 0.34);
    box-shadow: 0 16px 30px rgba(42, 120, 255, 0.12);
}

.term-hemicycle-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.term-hemicycle-card__head span {
    color: #506884;
    font-size: 0.88rem;
}

.term-hemicycle {
    width: 100%;
    height: auto;
    display: block;
}

.term-hemicycle-legend {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.term-hemicycle-legend__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: #1c3453;
}

.term-hemicycle-legend__item i {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
}

.equalizer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.equalizer-panel {
    padding: 1rem 1rem 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(80, 120, 220, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
    box-shadow: 0 16px 30px rgba(39, 93, 185, 0.08);
}

.equalizer-panel h3 {
    margin: 0 0 0.95rem;
    font-size: 1rem;
}

.equalizer-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: end;
    min-height: 250px;
}

.equalizer-bar {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    align-content: end;
}

.equalizer-bar--link {
    text-decoration: none;
}

.equalizer-bar--link:hover .equalizer-bar__track,
.equalizer-bar--link:focus-visible .equalizer-bar__track {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(42, 120, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(42, 120, 255, 0.3);
}

.equalizer-bar--link:focus-visible {
    outline: none;
}

.equalizer-bar__track {
    position: relative;
    width: 100%;
    height: 170px;
    border-radius: 18px;
    border: 1px solid rgba(42, 120, 255, 0.12);
    background: linear-gradient(180deg, rgba(231, 240, 255, 0.55), rgba(255, 255, 255, 0.92));
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.equalizer-bar__fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, #ffd84d, #2a78ff);
    box-shadow: 0 -6px 18px rgba(56, 114, 255, 0.22);
}

.equalizer-bar__fill--party {
    background: linear-gradient(180deg, #ffd84d, #ff8f32);
    box-shadow: 0 -6px 18px rgba(255, 143, 50, 0.24);
}

.equalizer-bar__fill--group {
    background: linear-gradient(180deg, #7bb8ff, #2a78ff);
    box-shadow: 0 -6px 18px rgba(42, 120, 255, 0.24);
}

.equalizer-bar__fill--country {
    background: linear-gradient(180deg, #b8dc69, #4c9a4c);
    box-shadow: 0 -6px 18px rgba(76, 154, 76, 0.24);
}

.equalizer-bar__value {
    font-size: 0.95rem;
    color: #1c3453;
}

.equalizer-bar__label {
    font-size: 0.76rem;
    text-align: center;
    color: var(--muted);
    line-height: 1.25;
}

.eu-map-hero .lead {
    max-width: 920px;
}

.eu-map-panel {
    overflow: hidden;
}

.eu-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.2rem;
    align-items: stretch;
}

.eu-map-stage {
    min-height: 440px;
    border-radius: 20px;
    border: 1px solid rgba(42, 120, 255, 0.16);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 238, 255, 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 22px 50px rgba(28, 76, 145, 0.11);
    overflow: hidden;
}

.eu-map-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 440px;
}

.eu-map-continent {
    fill: rgba(255, 255, 255, 0.58);
    stroke: rgba(42, 120, 255, 0.22);
    stroke-width: 2;
}

.eu-map-ukraine-zone {
    fill: rgba(255, 216, 77, 0.2);
    stroke: rgba(47, 128, 237, 0.28);
    stroke-width: 2;
}

.eu-map-gridline {
    stroke: rgba(40, 82, 140, 0.12);
    stroke-width: 1;
}

.eu-map-link {
    stroke: rgba(255, 216, 77, 0.88);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 10 12;
}

.eu-map-node-link {
    text-decoration: none;
}

.eu-map-node circle {
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 160ms ease, stroke-width 160ms ease, opacity 160ms ease;
}

.eu-map-node text {
    fill: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-anchor: middle;
    pointer-events: none;
}

.eu-map-node--eu circle {
    fill: url(#eu-map-eu-fill);
}

.eu-map-node--ukraine circle {
    fill: url(#eu-map-ua-fill);
}

.eu-map-node-link:hover .eu-map-node circle,
.eu-map-node-link:focus-visible .eu-map-node circle {
    stroke-width: 5;
    transform: scale(1.12);
}

.eu-map-node-link:focus-visible {
    outline: none;
}

.eu-map-label {
    fill: #15345a;
    font-size: 24px;
    font-weight: 800;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 5;
    stroke-linejoin: round;
}

.eu-map-label--ua {
    font-size: 22px;
}

.eu-map-side {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(42, 120, 255, 0.14);
    background: rgba(255, 255, 255, 0.78);
}

.eu-map-side h3 {
    margin: 0;
}

.eu-map-legend {
    display: grid;
    gap: 0.7rem;
}

.eu-map-legend span {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    color: #1b2d42;
    font-weight: 700;
}

.eu-map-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.88), 0 8px 18px rgba(24, 74, 140, 0.16);
}

.eu-map-dot--eu {
    background: linear-gradient(135deg, #1f6fff, #f6d34a);
}

.eu-map-dot--ukraine {
    background: linear-gradient(180deg, #2f80ed 0 50%, #ffd84d 50% 100%);
}

.eu-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.eu-country-chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.78rem 0.86rem;
    border-radius: 18px;
    border: 1px solid rgba(42, 120, 255, 0.14);
    background: rgba(255, 255, 255, 0.86);
    color: #172434;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(28, 76, 145, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.eu-country-chip:hover,
.eu-country-chip:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(42, 120, 255, 0.36);
    box-shadow: 0 16px 28px rgba(28, 76, 145, 0.12);
    outline: none;
}

.eu-country-chip strong {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f6fff, #f6d34a);
    color: #ffffff;
    font-size: 0.86rem;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.74);
}

.eu-country-chip--ukraine strong {
    background: linear-gradient(180deg, #2f80ed 0 50%, #ffd84d 50% 100%);
}

.eu-country-chip span {
    font-weight: 700;
}

@media (max-width: 700px) {
    .toolbar,
    .panel__head,
    .detail-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .hemicycle-layout,
    .split-grid,
    .alignment-grid,
    .chart-bar {
        grid-template-columns: 1fr;
    }

    .chart-bar__value {
        text-align: left;
    }

    .brand-lockup {
        width: 100%;
        justify-content: center;
    }

    .equalizer-bars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: auto;
    }

    .eu-map-layout {
        grid-template-columns: 1fr;
    }

    .eu-map-stage,
    .eu-map-svg {
        min-height: 320px;
    }

    .eu-map-label {
        font-size: 18px;
    }
}
