/* Generated by scripts/build-commulingo-list-css.js; edit commulingo.css. */
.commu-event-people-count {
    font-family: var(--font-sans);
    font-size: var(--text-meta);
    font-weight: 400;
    color: var(--text-muted);
}

.commu-section-wide > .commu-event-timeline-header {
    padding-inline: var(--content-inset);
}

.commu-section-wide > .commu-event-timeline-list,
.commu-section-wide > .commu-tl-filter,
.commu-section-wide > .commu-event-control {
    margin-inline: var(--content-inset);
}
.commu-event-people-grid > a { display: block; border: 1px solid var(--border); border-radius: 0; padding: 1.1rem; color: inherit; text-decoration: none; background: var(--surface, rgba(255,255,255,.03)); }
.commu-event-people-grid > a:hover { border-color: var(--accent); }
.commu-event-head > p { line-height: var(--leading-normal); }
.commu-event-head { padding: 14px var(--content-inset) 16px; margin: 8px 0 0; border: 1px solid var(--border); background: var(--card-bg); }
.commu-event-head > p:last-child { margin-bottom: 0; }
.commu-event-head h1 { margin: .25rem 0; }
.commu-event-question { font-weight: 700; font-size: var(--text-lg); }
.commu-event-head > p { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.commu-event-head > p.commu-event-question { font-size: var(--text-md); line-height: var(--leading-normal); }
.commu-event-map .emap-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.commu-event-map-viewport { overflow: auto; }
.commu-event-map-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.commu-event-timeline-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.commu-event-timeline-header h2 { margin: 0; min-width: 0; }
.commu-event-map-tools { flex-shrink: 0; }
.commu-event-map-tools .commu-world-map-controls { position: static; }
.emap-sea { fill: var(--bg-surface); }
.emap-land { fill: color-mix(in srgb, var(--border) 13%, var(--bg-surface)); stroke: color-mix(in srgb, var(--border) 40%, transparent); stroke-width: .6; }
.emap-grid { stroke: color-mix(in srgb, var(--border) 8%, transparent); stroke-width: 1; }
.emap-border { fill: none; stroke: color-mix(in srgb, var(--border) 55%, transparent); stroke-width: 1; }
.emap-frame-outline { display: none; fill: none; stroke: color-mix(in srgb, var(--text-muted) 70%, transparent); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.emap-svg.is-zoomed-out .emap-frame-outline { display: inline; }
.emap-svg.is-zoomed-far .emap-label,
.emap-svg.is-zoomed-far .emap-geo-label.is-active { display: none; }
.emap-lake { fill: var(--bg-surface); stroke: color-mix(in srgb, var(--border) 30%, transparent); stroke-width: .5; }
.emap-river { fill: none; stroke: var(--bg-surface); stroke-width: 1.1; stroke-linecap: round; }
.commu-event-control {
    --emap-blue: #2f6fb8; --emap-red: var(--clr-red); --emap-amber: #c7861c;
    --emap-purple: #7b5aa6; --emap-gray: #8d8d86; --emap-green: #3f8a4a;
    --emap-black: var(--text-primary);
}
.emap-ctl { stroke: none; fill-opacity: .32; }
.emap-ctl-knock { fill: color-mix(in srgb, var(--border) 13%, var(--bg-surface)); stroke: none; }
.emap-ctl:not(.is-drawn) { stroke-width: .8; stroke-opacity: .55; }
.emap-ctl.is-drawn { fill-opacity: .32; stroke-width: .8; stroke-opacity: .7; stroke-linejoin: round; }
.emap-ctl.is-blue { fill: var(--emap-blue); stroke: var(--emap-blue); }
.emap-ctl.is-red { fill: var(--emap-red); stroke: var(--emap-red); }
.emap-ctl.is-amber { fill: var(--emap-amber); stroke: var(--emap-amber); }
.emap-ctl.is-purple { fill: var(--emap-purple); stroke: var(--emap-purple); }
.emap-ctl.is-gray { fill: var(--emap-gray); stroke: var(--emap-gray); }
.emap-ctl.is-green { fill: var(--emap-green); stroke: var(--emap-green); }
.emap-ctl.is-black { fill: var(--emap-black); stroke: var(--emap-black); }
.emap-ctl.is-black.is-drawn { fill-opacity: .4; }
.emap-ctl.is-spot { fill-opacity: .45; stroke-width: 2; stroke-opacity: 1; }
.emap-ctl-hatch { stroke-width: 1; stroke-dasharray: 3 2; stroke-linejoin: round; }
.emap-ctl-hatch.is-blue { stroke: var(--emap-blue); }
.emap-ctl-hatch.is-red { stroke: var(--emap-red); }
.emap-ctl-hatch.is-amber { stroke: var(--emap-amber); }
.emap-ctl-hatch.is-purple { stroke: var(--emap-purple); }
.emap-ctl-hatch.is-gray { stroke: var(--emap-gray); }
.emap-ctl-hatch.is-green { stroke: var(--emap-green); }
.emap-ctl-hatch.is-black { stroke: var(--emap-black); }
.emap-hatch-line { stroke-width: 1.6; }
.emap-hatch-line.is-blue { stroke: var(--emap-blue); }
.emap-hatch-line.is-red { stroke: var(--emap-red); }
.emap-hatch-line.is-amber { stroke: var(--emap-amber); }
.emap-hatch-line.is-purple { stroke: var(--emap-purple); }
.emap-hatch-line.is-gray { stroke: var(--emap-gray); }
.emap-hatch-line.is-green { stroke: var(--emap-green); }
.emap-hatch-line.is-black { stroke: var(--emap-black); }
.commu-event-control { margin-block: .7rem 1.1rem; }
.commu-event-control-bar { display: flex; align-items: center; gap: .75rem; }
.commu-event-control-bar[hidden] { display: none; }
.commu-event-control-play {
    flex-shrink: 0; min-width: 4.2rem; padding: .3rem .8rem; border: 1px solid var(--border);
    background: transparent; color: var(--text-primary); font: inherit; font-size: var(--text-sm); cursor: pointer;
}
.commu-event-control-play:hover { border-color: var(--accent); }
.commu-event-control-play[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--clr-cream); }
.commu-event-control-range { flex: 1; min-width: 0; accent-color: var(--accent); }
.commu-event-control-caption { margin: .45rem 0 0; font-size: var(--text-base); }
.commu-event-control-caption strong { margin-right: .4rem; font-variant-numeric: tabular-nums; }
.commu-event-control-note { margin: .45rem 0 0; font-size: var(--text-meta); line-height: var(--leading-snug); color: var(--text-muted); }
.commu-event-control-note a { color: inherit; }
.emap-label.is-ref { fill: var(--text-muted); font-size: var(--text-2xs); }
.emap-label.is-geo { fill: var(--text-muted); font-size: var(--text-2xs); font-style: italic; letter-spacing: .08em; }
.emap-marker { fill: var(--text-primary); stroke: var(--bg-surface); stroke-width: 1.4; }
.emap-marker.is-main { fill: var(--clr-red); }
.emap-label { fill: var(--text-primary); font-size: var(--text-xs); paint-order: stroke; stroke: var(--bg-surface); stroke-width: 3px; stroke-linejoin: round; }
.emap-label.is-main { font-size: var(--text-xs); font-weight: 700; }
.emap-inset-sea { fill: color-mix(in srgb, var(--bg-surface) 88%, var(--border)); opacity: .92; }
.emap-inset-land { fill: color-mix(in srgb, var(--border) 34%, var(--bg-surface)); }
.emap-inset-frame { fill: color-mix(in srgb, var(--clr-red) 30%, transparent); stroke: var(--clr-red); stroke-width: 1; }
.emap-inset-border { fill: none; stroke: color-mix(in srgb, var(--border) 55%, transparent); stroke-width: 1; }
.commu-event-timeline-map { margin: 0 0 1.1rem; }
.emap-arrow { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.emap-arrow.is-red { stroke: var(--clr-red); }
.emap-arrow.is-axis { stroke: var(--text-muted); stroke-dasharray: 7 4; }
.emap-arrow.is-neutral { stroke: var(--text-primary); }
.emap-arrow-tip { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.emap-arrow-tip.is-red { stroke: var(--clr-red); }
.emap-arrow-tip.is-axis { stroke: var(--text-muted); }
.emap-arrow-tip.is-neutral { stroke: var(--text-primary); }
.emap-badge circle { fill: var(--bg-surface); stroke: color-mix(in srgb, var(--border) 65%, transparent); stroke-width: 1; }
.emap-badge text { fill: var(--text-primary); font-size: var(--text-xs); font-weight: 700; }
.emap-leader { stroke: var(--text-primary); stroke-width: 1; stroke-opacity: .55; }
.emap-geo-label { display: none; fill: var(--text-primary); font-size: var(--text-xs); font-weight: 600; paint-order: stroke; stroke: var(--bg-surface); stroke-width: 3px; stroke-linejoin: round; }
.emap-geo-label.is-active { display: block; }
.emap-legend-box { fill: color-mix(in srgb, var(--bg-surface) 90%, transparent); stroke: color-mix(in srgb, var(--border) 55%, transparent); stroke-width: 1; }
.emap-legend text { fill: var(--text-primary); font-size: var(--text-xs); }
.emap-legend-num { cursor: pointer; }
.emap-legend-num circle { fill: var(--bg-surface); stroke: color-mix(in srgb, var(--border) 65%, transparent); stroke-width: 1; }
.emap-legend-num text { fill: var(--text-primary); font-size: var(--text-2xs); font-weight: 700; }
.emap-legend-num.is-active circle { fill: var(--clr-red); stroke: var(--clr-red); }
.emap-legend-num.is-active text { fill: var(--clr-cream); }
.emap-svg.has-active [data-geo-num] { opacity: .28; transition: opacity .12s ease; }
.emap-svg.has-active [data-geo-num].is-active { opacity: 1; }
.emap-geo.is-active .emap-arrow { stroke-width: 3.8; }
.emap-badge.is-active circle { fill: var(--clr-red); stroke: var(--clr-red); }
.emap-badge.is-active text { fill: var(--clr-cream); }
.commu-tl-geo-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.3rem; height: 1.3rem; margin-right: .45rem; padding: 0;
    box-sizing: border-box; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    font-style: normal; font-size: var(--text-xs); line-height: var(--leading-none);
    color: var(--text-primary);
}
.commu-event-timeline-list li[data-geo-num] { cursor: pointer; }
.commu-event-timeline-list li.is-map-active { background: color-mix(in srgb, var(--border) 6%, transparent); }
.commu-event-timeline-list li.is-map-active .commu-tl-geo-badge,
.commu-event-timeline-list li.is-map-pinned .commu-tl-geo-badge {
    background: var(--clr-red); border-color: var(--clr-red); color: var(--clr-cream);
}
.commu-tl-place {
    display: inline-block; margin-left: .5rem; padding: 0 .45rem;
    border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    font-size: var(--text-xs); font-weight: 600; line-height: var(--leading-snug); vertical-align: 1px;
    color: var(--text-muted);
}
.commu-event-timeline-list li.is-place-match { background: color-mix(in srgb, var(--border) 6%, transparent); }
.commu-event-timeline-list li.is-place-match .commu-tl-place {
    background: var(--accent); border-color: var(--accent); color: var(--clr-cream);
}
@media (max-width: 700px) {
    .emap-label { font-size: var(--text-md); }
    .emap-label.is-main { font-size: var(--text-lg); }
    .emap-label.is-ref { font-size: var(--text-sm); }
    .emap-label.is-geo { font-size: var(--text-sm); }
    .emap-geo-label { font-size: var(--text-md); }
    .emap-marker { r: 6px; }
    .emap-marker.is-main { r: 8px; }
    .emap-arrow { stroke-width: 3.2; }
    .emap-badge circle { r: 12px; }
    .emap-leader { stroke-width: 1.8; }
    .emap-badge text { font-size: var(--text-base); }
    .emap-legend text { font-size: var(--text-sm); }
    .emap-legend-num circle { r: 9px; }
    .emap-legend-num text { font-size: var(--text-xs); }
}
.commu-term-parent { margin: .55rem 0 0; }
.commu-term-parent a {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    padding: .35rem .75rem;
    color: var(--text-primary);
    text-decoration: none;
    background: color-mix(in srgb, var(--link) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--link) 45%, var(--border));
    border-left: 3px solid var(--link);
    font-size: var(--text-base);
    letter-spacing: .02em;
}
.commu-term-parent a:hover {
    background: color-mix(in srgb, var(--link) 22%, transparent);
    border-color: var(--link);
}
.commu-term-parent-label {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
}
.commu-term-parent strong { font-weight: 700; }
.commu-pair-tabs { margin: 1rem 0 0; }
.commu-pair-tab span { display: flex; flex-direction: column; align-items: center; line-height: var(--leading-tight); }
.commu-pair-tab small { font-weight: 400; font-size: var(--text-xs); opacity: .7; letter-spacing: .02em; }
.commu-pair-panel[hidden] { display: none; }
.commu-event-body .commu-person-markdown { line-height: var(--leading-prose); }
.commu-event-body .commu-person-markdown h2 {
    font-size: var(--text-lg);
    margin: 2em 0 .7em;
    padding-top: .9em;
    border-top: 1px solid var(--border);
    scroll-margin-top: 1rem;
}
.commu-event-body .commu-person-markdown > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.commu-event-toc {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0;
    margin: 1.4rem 0 0;
}
.commu-event-toc-head {
    font-size: var(--text-meta);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
    padding: var(--space-3) var(--content-inset);
    border-bottom: 1px solid var(--border);
}
.commu-event-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: event-toc; }
.commu-event-toc li { padding: 0; line-height: var(--leading-snug); counter-increment: event-toc; }
.commu-event-toc li + li { border-top: 1px solid var(--border); }
.commu-event-toc a {
    display: grid;
    grid-template-columns: 3ch minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-2);
    min-height: var(--control-height);
    padding: var(--space-3) var(--content-inset);
    color: var(--text-primary);
    font-size: var(--text-base);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color var(--duration-fast) var(--ease-standard);
}
.commu-event-toc a::before {
    content: counter(event-toc) ".";
    white-space: nowrap;
    color: var(--text-muted);
    font-size: var(--text-meta);
    font-variant-numeric: tabular-nums;
}
.commu-event-toc a:hover,
.commu-event-toc a:focus-visible {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
    text-decoration: none;
}
.commu-event-toc a:focus-visible { outline: 2px solid var(--text-primary); outline-offset: -2px; }

.commu-event-timeline-list { list-style: none; padding: 0; margin: 0; }
.commu-event-timeline-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--border); }
.commu-event-timeline-list li > span { color: var(--text-muted); font-weight: 700; font-size: var(--text-sm, .875rem); font-variant-numeric: tabular-nums; }
.commu-tl-date > span { white-space: nowrap; }
.commu-event-timeline-list li > span { display: grid; grid-template-columns: auto 1fr; align-content: start; align-items: start; }
.commu-event-timeline-list:has(.commu-tl-geo-badge) li > span { grid-template-columns: 1.75rem 1fr; }
.commu-tl-date,
.commu-tl-flags { grid-column: 2; }
.commu-tl-flags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.commu-tl-flags .commu-flag { height: 13px; width: auto; }
.commu-tl-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.commu-tl-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .7rem; border: 1px solid var(--border); border-radius: 0;
    background: transparent; color: var(--text-primary); font: inherit; font-size: var(--text-sm); cursor: pointer;
}
.commu-tl-chip .commu-flag { height: 13px; width: auto; }
.commu-tl-chip:hover { border-color: var(--accent); }
.commu-tl-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--clr-cream); }
.emap-badge.is-filtered-out,
.emap-leader.is-filtered-out { opacity: .25; }
.commu-event-toc .commu-section-flags { margin-right: .45rem; vertical-align: -1px; }
.commu-event-toc .commu-section-flags .commu-flag { height: 12px; width: auto; }
.commu-event-timeline-list p { margin: .25rem 0 0; line-height: var(--leading-normal); }
.commu-event-outcome p,
.commu-event-timeline-list p {
    font-size: var(--text-base);
    line-height: var(--leading-prose);
}
.commu-event-people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.commu-event-person-relation { display: block; color: var(--link); font-style: normal; font-weight: 700; font-size: var(--text-base); }
.commu-event-people-grid strong,
.commu-event-people-grid small { display: block; margin-top: .2rem; }
.commu-event-people-grid > a > p {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--text-secondary);
}
.commu-event-sources { padding-inline: var(--content-inset); font-size: var(--text-sm); opacity: .8; }
.commu-event-sources a { margin-left: .45rem; }
@media (max-width: 560px) { .commu-event-timeline-list li { grid-template-columns: 1fr; gap: .2rem; } }

.commu-event-people-grid > a.is-executor { border-color: var(--role-executor); background: color-mix(in srgb, var(--role-executor) 14%, transparent); }
.commu-event-people-grid > a.is-executor .commu-event-person-relation { color: var(--role-executor-bright); }
.commu-event-people-grid > a.is-target { border-color: var(--role-target); background: color-mix(in srgb, var(--role-target) 14%, transparent); }
.commu-event-people-grid > a.is-target .commu-event-person-relation { color: var(--role-target-bright); }
.commu-event-people-grid > a.is-leader { border-color: var(--role-leader); background: color-mix(in srgb, var(--role-leader) 14%, transparent); }
.commu-event-people-grid > a.is-leader .commu-event-person-relation { color: var(--role-leader-bright); }
.commu-event-people-grid > a.is-participant { border-color: var(--role-participant); background: color-mix(in srgb, var(--role-participant) 14%, transparent); }
.commu-event-people-grid > a.is-participant .commu-event-person-relation { color: var(--role-participant-bright); }
.commu-event-people-grid > a.is-opponent { border-color: var(--role-opponent); background: color-mix(in srgb, var(--role-opponent) 14%, transparent); }
.commu-event-people-grid > a.is-opponent .commu-event-person-relation { color: var(--role-opponent-bright); }
.commu-event-people-grid > a.is-witness { border-color: var(--role-witness); background: color-mix(in srgb, var(--role-witness) 14%, transparent); }
.commu-event-people-grid > a.is-witness .commu-event-person-relation { color: var(--role-witness-bright); }
.commu-event-people-grid > a.is-historian { border-color: var(--role-historian); background: color-mix(in srgb, var(--role-historian) 14%, transparent); }
.commu-event-people-grid > a.is-historian .commu-event-person-relation { color: var(--role-historian-bright); }
.commu-event-people-grid > a.is-unclassified { border-color: var(--role-unclassified); border-style: dashed; background: color-mix(in srgb, var(--role-unclassified) 10%, transparent); }
.commu-event-people-grid > a.is-unclassified .commu-event-person-relation { color: var(--role-unclassified-bright); }
.commu-event-people-side {
    margin-top: 1.6rem;
    border: 1px solid color-mix(in srgb, var(--border) 38%, transparent);
    border-top: 3px solid var(--text-primary);
    background: color-mix(in srgb, var(--text-primary) 3%, transparent);
}
.commu-event-people-side:first-of-type { margin-top: .8rem; }
.commu-event-people-side-head {
    display: flex; align-items: center; gap: .7rem;
    margin: 0; padding: .7rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 28%, transparent);
    background: color-mix(in srgb, var(--text-primary) 6%, transparent);
    font-size: var(--text-lg); font-weight: 700; letter-spacing: .01em;
}
.commu-event-people-side-head .commu-event-people-group-count { margin-left: auto; font-size: var(--text-sm); }
.commu-event-people-side-body { padding: .2rem 1rem 1.1rem; }
.commu-event-people-side.is-sideless {
    margin-top: 2.2rem;
    border: 1px dashed color-mix(in srgb, var(--border) 38%, transparent);
    background: none;
}
.commu-event-people-side.is-sideless .commu-event-people-side-head {
    border-bottom-style: dashed;
    background: color-mix(in srgb, var(--text-muted) 24%, transparent);
    color: var(--text-secondary); font-size: var(--text-md);
}
.commu-event-people-side h4.commu-event-people-group-head { font-size: var(--text-base); }
@media (max-width: 600px) {
    .commu-event-people-side-head { padding: .6rem .7rem; font-size: var(--text-md); }
    .commu-event-people-side-body { padding: .1rem .6rem .8rem; }
}
.commu-event-people-group { margin-top: 1.5rem; }
.commu-event-people-group:first-of-type { margin-top: .4rem; }
.commu-event-people-group-head {
    display: flex; align-items: baseline; gap: .5rem;
    margin: 0 0 .75rem; padding: .32rem .6rem;
    border-left: 3px solid var(--border);
    font-size: var(--text-md); font-weight: 700; letter-spacing: .01em;
}
.commu-event-people-group-count {
    font-family: var(--font-sans); font-size: var(--text-meta);
    font-weight: 400; color: var(--text-muted);
}
.commu-event-people-group.is-executor .commu-event-people-group-head { border-left-color: var(--role-executor); color: var(--role-executor-bright); }
.commu-event-people-group.is-leader .commu-event-people-group-head { border-left-color: var(--role-leader); color: var(--role-leader-bright); }
.commu-event-people-group.is-participant .commu-event-people-group-head { border-left-color: var(--role-participant); color: var(--role-participant-bright); }
.commu-event-people-group.is-opponent .commu-event-people-group-head { border-left-color: var(--role-opponent); color: var(--role-opponent-bright); }
.commu-event-people-group.is-target .commu-event-people-group-head { border-left-color: var(--role-target); color: var(--role-target-bright); }
.commu-event-people-group.is-witness .commu-event-people-group-head { border-left-color: var(--role-witness); color: var(--role-witness-bright); }
.commu-event-people-group.is-historian .commu-event-people-group-head { border-left-color: var(--role-historian); color: var(--role-historian-bright); }
.commu-event-people-group.is-unclassified .commu-event-people-group-head { border-left-color: var(--role-unclassified); color: var(--role-unclassified-bright); }
[data-theme="light"] .commu-event-people-grid > a.is-executor .commu-event-person-relation,
[data-theme="light"] .commu-event-people-group.is-executor .commu-event-people-group-head { color: color-mix(in srgb, var(--role-executor) 75%, #000); }
[data-theme="light"] .commu-event-people-grid > a.is-target .commu-event-person-relation,
[data-theme="light"] .commu-event-people-group.is-target .commu-event-people-group-head { color: color-mix(in srgb, var(--role-target) 75%, #000); }
[data-theme="light"] .commu-event-people-grid > a.is-leader .commu-event-person-relation,
[data-theme="light"] .commu-event-people-group.is-leader .commu-event-people-group-head { color: color-mix(in srgb, var(--role-leader) 75%, #000); }
[data-theme="light"] .commu-event-people-grid > a.is-participant .commu-event-person-relation,
[data-theme="light"] .commu-event-people-group.is-participant .commu-event-people-group-head { color: color-mix(in srgb, var(--role-participant) 75%, #000); }
[data-theme="light"] .commu-event-people-grid > a.is-opponent .commu-event-person-relation,
[data-theme="light"] .commu-event-people-group.is-opponent .commu-event-people-group-head { color: color-mix(in srgb, var(--role-opponent) 75%, #000); }
[data-theme="light"] .commu-event-people-grid > a.is-witness .commu-event-person-relation,
[data-theme="light"] .commu-event-people-group.is-witness .commu-event-people-group-head { color: color-mix(in srgb, var(--role-witness) 75%, #000); }
[data-theme="light"] .commu-event-people-grid > a.is-historian .commu-event-person-relation,
[data-theme="light"] .commu-event-people-group.is-historian .commu-event-people-group-head { color: color-mix(in srgb, var(--role-historian) 75%, #000); }
[data-theme="light"] .commu-event-people-grid > a.is-unclassified .commu-event-person-relation,
[data-theme="light"] .commu-event-people-group.is-unclassified .commu-event-people-group-head { color: color-mix(in srgb, var(--role-unclassified) 75%, #000); }
.commu-event-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 1.8rem 0 1rem;
}
.commu-event-nav-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .1rem .6rem;
    padding: .55rem .8rem;
    border: 1px solid var(--border);
    border-radius: 0;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}
.commu-event-nav-link.is-next { flex-direction: row-reverse; justify-content: flex-start; margin-left: -1px; }
.commu-event-nav-link:hover {
    background: color-mix(in srgb, var(--border) 12%, transparent);
    color: inherit;
    text-decoration: none;
}
.commu-event-nav-dir { font-size: var(--text-meta); font-weight: 700; color: var(--link); letter-spacing: .03em; }
.commu-event-nav-period { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--text-muted); }
@media (max-width: 560px) {
    .commu-event-nav { grid-template-columns: 1fr; }
    .commu-event-nav-link.is-next { margin-left: 0; margin-top: -1px; }
}

.commu-event-source-text { display: inline-block; margin-left: .45rem; }
.commu-event-source-text + .commu-event-source-text::before { content: '·'; margin-right: .45rem; opacity: .6; }

.commu-term-sources { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.commu-term-sources h2 { font-size: var(--text-md); margin: 0 0 .6rem; }
.commu-term-sources ol { margin: 0; padding-left: 1.3rem; }
.commu-term-sources li { margin-bottom: .5rem; font-size: var(--text-sm); line-height: var(--leading-normal); }
.commu-term-sources a { color: var(--link); }
.commu-term-source-note { display: block; color: var(--text-muted); }
.commu-doc-excerpt-inline { margin-block: var(--space-5); }
.commu-doc-excerpt {
    border: 1px solid var(--border);
    background: var(--bg-surface);
    scroll-margin-top: 4rem;
}
.commu-doc-excerpt-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    line-height: var(--leading-snug);
    color: var(--text-primary);
    text-decoration: none;
}
.commu-doc-excerpt-head:hover { background: var(--bg-surface-hover); color: var(--text-primary); text-decoration: none; }
.commu-doc-excerpt-head:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.commu-doc-excerpt-title { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.commu-doc-excerpt-title span { font-size: var(--text-xs); color: var(--text-muted); }
.commu-doc-excerpt-title strong { font-size: var(--text-md); color: var(--text-primary); }
.commu-doc-excerpt-go { flex: none; font-size: var(--text-meta); color: var(--text-muted); white-space: nowrap; }
.commu-doc-excerpt-head:hover .commu-doc-excerpt-go { color: var(--text-primary); }
.commu-doc-excerpt-body {
    position: relative;
    padding: .4rem 1rem 1rem;
    font-size: var(--text-base);
    line-height: var(--leading-prose);
    color: var(--text-primary);
    overflow-wrap: break-word;
}
.commu-doc-excerpt.is-folded .commu-doc-excerpt-body {
    max-height: 20rem;
    overflow: hidden;
}
.commu-doc-excerpt.is-folded .commu-doc-excerpt-body::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5rem;
    background: linear-gradient(to bottom, transparent, var(--bg-surface));
    pointer-events: none;
}
.commu-doc-excerpt-toggle {
    display: block;
    width: 100%;
    padding: .7rem 1rem;
    border: 0;
    border-top: 1px solid var(--border);
    background: none;
    color: var(--text-primary);
    font: inherit;
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.commu-doc-excerpt-toggle:hover { background: var(--bg-surface-hover); }
.commu-doc-excerpt-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.commu-doc-excerpt-body p { margin: .6em 0; text-align: justify; word-break: normal; }
.commu-doc-toc { margin: 0; list-style: none; }
.commu-doc-toc li { margin: 0; line-height: var(--leading-snug); word-break: keep-all; }
.commu-doc-toc a { display: block; padding: .3rem 0; color: var(--text-primary); text-decoration: none; }
.commu-doc-toc a:hover { color: var(--link); text-decoration: underline; }
.commu-doc-excerpt-body h3,
.commu-doc-excerpt-body h4 {
    margin: 1.1em 0 .3em;
    font-size: var(--text-md);
    line-height: var(--leading-snug);
    color: var(--text-primary);
    word-break: keep-all;
}
.commu-doc-excerpt-body h4 { font-size: var(--text-base); }
.commu-doc-excerpt-body .doc-byline { color: var(--text-secondary); font-size: .9em; text-align: start; }
.commu-doc-excerpt-body blockquote {
    margin: .8em 0;
    padding-left: 1em;
    border-left: 3px solid var(--border-emphasis);
    color: var(--text-secondary);
}
.commu-doc-excerpt-body blockquote ol,
.commu-doc-excerpt-body blockquote ul { padding-left: 1.6em; }
.commu-doc-excerpt-body .note-ref { font-size: .72em; vertical-align: super; line-height: var(--leading-none); text-decoration: none; }
.commu-doc-excerpt-body .notes-list { font-size: .85em; color: var(--text-muted); padding-left: 1.6em; }
.commu-doc-excerpt-body .notes-list .back-link { text-decoration: none; margin-left: .25em; }
.commu-doc-excerpt-body .notes-list li[data-note] { list-style: none; }
.commu-doc-excerpt-body .notes-list li[data-note]::before { content: attr(data-note) "."; display: inline-block; box-sizing: border-box; min-width: 1.6em; margin-left: -1.6em; padding-right: .4em; text-align: right; }
.commu-event-head > p a:not([class]),
.commu-event-timeline-list a:not([class]) {
    color: inherit; text-decoration: none;
    border-bottom: 2px dotted var(--link);
}
.commu-event-head > p a:not([class]):hover,
.commu-event-timeline-list a:not([class]):hover { border-bottom-style: solid; }
.commu-event-relations { margin: 1.4rem 0 0; background: var(--bg-surface); }
.commu-event-relations + .commu-event-relations { margin-top: .8rem; }
.commu-event-relations-head {
    font-size: var(--text-meta);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
    padding: .7rem .9rem;
    line-height: var(--leading-snug);
}
.commu-event-relations-box {
    background: var(--bg-surface);
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
}
.commu-event-relations-parent,
.commu-event-relations-list a,
.commu-event-relations-list .is-current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .15rem .75rem;
    padding: .62rem .9rem;
    line-height: var(--leading-snug);
    text-decoration: none;
}
.commu-event-relations-title { flex: 1 1 14rem; min-width: 0; }
.commu-event-relations-tag {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.commu-event-relations-period {
    margin-left: auto;
    font-size: var(--text-sm);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}
.commu-event-relations-parent { background: var(--accent); color: var(--clr-cream); }
.commu-event-relations-parent .commu-event-relations-tag { flex: 0 0 auto; order: -1; color: color-mix(in srgb, var(--clr-cream) 78%, transparent); }
.commu-event-relations-parent .commu-event-relations-title { font-weight: 700; }
.commu-event-relations-parent .commu-event-relations-period { color: color-mix(in srgb, var(--clr-cream) 78%, transparent); }
.commu-event-relations-parent:hover { color: var(--clr-white); text-decoration: none; }
.commu-event-relations-list { list-style: none; margin: 0; padding: 0; }
.commu-event-relations-list li + li { border-top: 1px solid color-mix(in srgb, var(--border) 35%, transparent); }
.commu-event-relations-list a { color: var(--text-primary); }
.commu-event-relations-list a:hover { color: var(--text-primary); background: var(--bg-surface-hover); text-decoration: none; }
.commu-event-relations-list .commu-event-relations-tag { color: var(--text-muted); }
.commu-event-relations-list .is-current {
    color: var(--text-primary);
    font-weight: 700;
    box-shadow: inset 4px 0 0 var(--accent);
}
.commu-event-relations-list .is-current .commu-event-relations-period { font-weight: 400; }
