/* Generated by scripts/build-commulingo-list-css.js; edit commulingo.css. */
.commulingo-page .container {
    max-width: var(--content-frame);
}

.commulingo-shell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.commu-dict-shell { gap: 0; }
.commu-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.commulingo-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
}
.commulingo-hero--home {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
}

.commulingo-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.commulingo-hero-dict {
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.commulingo-hero-dict-label {
    color: var(--text-muted);
    font-size: var(--text-meta);
    font-weight: var(--weight-emphasis);
    letter-spacing: 0.03em;
}

.commulingo-hero h1 {
    color: var(--text-primary);
    font-size: var(--text-xl);
    margin-bottom: 4px;
}

.commulingo-hero p:last-child {
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}
.commulingo-shell > .commulingo-genealogy-row {
    border-top: var(--border-width) solid var(--border);
}
.commulingo-shell > .gen-guide,
.commulingo-shell > .gen-figure {
    border-top: var(--border-width) solid var(--border);
}


.commulingo-status {
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: 10px 14px;
}

.commulingo-resume {
    align-items: center;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-primary);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.15s;
}
.commulingo-resume:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--clr-cream);
    text-decoration: none;
}
.commulingo-resume:hover .commu-resume-label { color: var(--clr-cream); }
.commulingo-resume:hover .commu-resume-target { color: color-mix(in srgb, var(--clr-cream) 72%, var(--accent)); }

.commu-resume-label {
    color: var(--link);
    font-size: var(--text-meta);
    font-weight: var(--weight-emphasis);
}

.commu-resume-target {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

.commulingo-book-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.commu-book-group {
    border: 1px solid var(--border);
    background: var(--card-bg);
    padding: 14px;
}
.commu-book-group-title,
.commu-people-eras-title,
.commu-term-group-head {
    border-left: 4px solid var(--accent);
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: var(--weight-emphasis);
    margin: 0 0 12px;
    padding: 2px 0 2px 10px;
}

.commulingo-books {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
}
.commu-book-card {
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-primary);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    align-items: baseline;
    gap: 2px 12px;
    padding: 9px 12px;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}
.commu-book-card:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--clr-cream);
    text-decoration: none;
}
.commu-book-card:hover .commu-book-desc,
.commu-book-card:hover .commu-book-meta { color: color-mix(in srgb, var(--clr-cream) 72%, var(--accent)); }
.commu-book-card:hover .commu-book-progress-label { color: var(--clr-cream); }
.commu-book-card:hover .commu-book-progress-track { background: color-mix(in srgb, var(--clr-black) 45%, var(--accent)); border-color: var(--clr-cream); }
.commu-book-card:hover .commu-book-progress-track > span { background: var(--clr-cream); }

.commu-book-card h3 {
    font-size: var(--text-md);
    line-height: var(--leading-snug);
    margin: 0;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.commu-book-meta {
    color: var(--text-muted);
    font-size: var(--text-meta);
    margin: 0;
    white-space: nowrap;
}

.commu-book-progress-label {
    color: var(--text-primary);
    font-weight: 700;
}

.commu-book-desc {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    grid-column: 1 / -1;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commu-book-progress-track {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: none;
    grid-column: 1 / -1;
    height: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.commu-book-card.is-started .commu-book-progress-track {
    display: block;
}

.commu-book-progress-track > span {
    width: 0;
    background: var(--accent);
    display: block;
    height: 100%;
    transition: width 0.2s ease;
}
.commu-book-jump {
    background: none;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    position: static;
}

.commu-book-jump a {
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: var(--text-sm);
    padding: 5px 10px;
    text-decoration: none;
}

.commu-book-jump a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--clr-cream);
}

.commu-book-jump a span {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.commu-book-jump a:hover span {
    color: inherit;
}

.commu-book-group {
    scroll-margin-top: 80px;
}

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

@media (max-width: 700px) {
    .commulingo-hero {
        align-items: center;
        flex-direction: row;
        gap: 12px;
    }

    .commulingo-hero--home {
        align-items: stretch;
        flex-direction: column;
    }

    .commulingo-hero > div:first-child,
.commulingo-hero-main > div:first-child {
        min-width: 0;
    }

    .commulingo-books {
        grid-template-columns: 1fr;
    }
}
.commu-person-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px dashed var(--link);
}

.commu-person-link:hover {
    border-bottom-style: solid;
}
.commu-person-card[hidden],
.commu-people-group[hidden] {
    display: none !important;
}
.commu-people-result-empty {
    margin: 8px 0 0;
    padding: 18px 12px;
    color: var(--text-muted);
    font-size: var(--text-base);
    border: 1px dashed var(--border);
}
.commu-dict-search-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.commu-dict-search-status.is-empty {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    margin: 16px 0 0;
    padding: 18px 12px;
    color: var(--text-muted);
    font-size: var(--text-base);
    border: 1px dashed var(--border);
}
.commu-dict-search-elsewhere {
    display: block;
    width: fit-content;
    margin-top: var(--space-2);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.commu-dict-search-elsewhere:hover {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom-color: var(--text-primary);
}

.commu-event-card[hidden] {
    display: none !important;
}

.commu-people-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.commu-office-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commu-office-index .commu-office-grid {
    grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border);
}
.commu-office-index .commu-office-entry { border: 0; }
.commu-office-index .commu-office-entry + .commu-office-entry { border-top: 1px solid var(--border); }
.commu-office-entry {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-4);
    padding: var(--space-4) var(--content-inset); color: var(--text-primary); text-decoration: none;
}
.commu-office-entry-copy { min-width: 0; }
.commu-office-entry :is(h3, h4) { margin: 0 0 var(--space-1); font-size: var(--text-base); line-height: var(--leading-tight); }
.commu-office-entry-description { display: block; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-normal); }
.commu-office-entry-arrow { color: var(--text-muted); }
.commu-office-entry:hover { background: var(--bg-surface-hover); color: var(--text-primary); text-decoration: none; }
.commu-office-entry:hover .commu-office-entry-arrow { color: var(--text-primary); }
.commu-office-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.commu-office-country + .commu-office-country { margin-top: var(--space-6); }
.commu-office-country-head {
    display: flex; align-items: center; gap: var(--space-2);
    padding-inline: var(--content-inset);
    margin: 0 0 var(--space-3);
    font-size: var(--text-xl);
}
.commu-office-country-head .commu-flag { width: 24px; height: auto; }
.commu-office-section { margin-top: var(--space-5); }
.commu-office-country-head + .commu-office-section { margin-top: 0; }
.commu-office-section :is(h2, h3) {
    padding-inline: var(--content-inset);
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: var(--weight-heading);
    margin: 0 0 var(--space-3);
}

.commu-office-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    min-width: 0;
    overflow: hidden;
}

.commu-office-card[open] {
    border-color: color-mix(in srgb, var(--link) 42%, var(--border));
}

.commu-role-category-link {
    align-items: center;
    background: var(--bg-surface);
    color: var(--text-primary);
    display: flex;
    gap: 12px;
    min-height: 76px;
    padding: 12px 14px;
    position: relative;
    text-decoration: none;
}
.commu-role-category-link:hover,
.commu-role-category-link:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--clr-cream);
    text-decoration: none;
}

.commu-role-category-link:hover .commu-role-category-copy p,
.commu-role-category-link:focus-visible .commu-role-category-copy p,
.commu-role-category-link:hover .commu-office-range,
.commu-role-category-link:focus-visible .commu-office-range {
    color: color-mix(in srgb, var(--clr-cream) 75%, var(--accent));
}

.commu-role-category-link:hover .commu-role-category-arrow,
.commu-role-category-link:focus-visible .commu-role-category-arrow,
.commu-role-category-link:hover .commu-office-icon,
.commu-role-category-link:focus-visible .commu-office-icon {
    border-color: var(--clr-cream);
    color: var(--clr-cream);
}

.commu-role-category-link:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.commu-role-category-copy {
    min-width: 0;
}

.commu-role-category-copy h3 {
    font-size: var(--text-md);
    line-height: var(--leading-tight);
    margin: 0 0 5px;
}

.commu-role-category-copy p {
    color: var(--text-muted);
    font-size: var(--text-meta);
    margin: 0;
}

.commu-role-category-arrow {
    color: var(--link);
    font-size: var(--text-lg);
    font-weight: var(--weight-emphasis);
    margin-left: auto;
}

.commu-office-card-head {
    background: var(--bg-surface);
    cursor: pointer;
    display: block;
    list-style: none;
    padding: 13px 44px 12px 58px;
    position: relative;
}

.commu-office-card[open] .commu-office-card-head {
    border-bottom: 1px solid var(--border);
}
.commu-office-icon {
    align-items: center;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.commu-office-card-head::-webkit-details-marker {
    display: none;
}

.commu-office-card-head::after {
    align-items: center;
    border: 1px solid var(--border);
    color: var(--link);
    content: '+';
    display: flex;
    font-size: var(--text-md);
    font-weight: var(--weight-emphasis);
    height: 24px;
    justify-content: center;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 24px;
}

.commu-office-card[open] .commu-office-card-head::after {
    content: '-';
}

.commu-role-category-copy h3 .commu-office-range {
    display: inline;
    margin: 0 0 0 6px;
    font-weight: 400;
}

.commu-office-track-blurb {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0 0 12px;
}

.commu-office-range {
    color: var(--text-muted);
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.commu-office-card-head h3 {
    color: var(--text-primary);
    font-size: var(--text-md);
    line-height: var(--leading-tight);
    margin: 0 0 5px;
}

.commu-office-card-head p {
    color: var(--text-muted);
    font-size: var(--text-meta);
    line-height: var(--leading-snug);
    margin: 0;
}

.commu-office-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.commu-office-rows li {
    display: grid;
    gap: 12px;
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 10px 14px;
}

.commu-office-row {
    color: var(--text-primary);
    display: grid;
    gap: 12px;
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 10px 14px;
    text-decoration: none;
}

a.commu-office-row:hover,
a.commu-office-row:focus-visible {
    background: var(--accent);
    color: var(--clr-cream);
    text-decoration: none;
}

a.commu-office-row:hover .commu-office-main strong,
a.commu-office-row:focus-visible .commu-office-main strong {
    color: var(--clr-cream);
}

a.commu-office-row:hover .commu-office-years,
a.commu-office-row:focus-visible .commu-office-years,
a.commu-office-row:hover .commu-office-main small,
a.commu-office-row:focus-visible .commu-office-main small,
a.commu-office-row:hover .commu-office-main em,
a.commu-office-row:focus-visible .commu-office-main em {
    color: color-mix(in srgb, var(--clr-cream) 75%, var(--accent));
}

.commu-office-rows li + li {
    border-top: 1px solid var(--border);
}

.commu-office-years {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    line-height: var(--leading-snug);
    overflow-wrap: anywhere;
}

.commu-office-lineage {
    list-style: none;
    margin: 0;
    padding: 0;
}

.commu-lineage-step {
    border-left: 3px solid var(--accent);
    margin-left: 8px;
    padding: 2px 0 14px 16px;
    position: relative;
}

.commu-lineage-step:last-child {
    padding-bottom: 2px;
}

.commu-lineage-step::before {
    background: var(--accent);
    border-radius: 50%;
    content: '';
    height: 9px;
    left: -6px;
    position: absolute;
    top: 6px;
    width: 9px;
}

.commu-lineage-node {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.commu-lineage-node strong {
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: var(--weight-emphasis);
}

.commu-lineage-step p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    margin: 4px 0 0;
}

.commu-office-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.commu-office-main a,
.commu-office-main strong {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-emphasis);
    line-height: var(--leading-tight);
    text-decoration: none;
}

.commu-office-main a:hover {
    color: var(--link);
}

.commu-office-main small,
.commu-office-main em {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-style: normal;
    line-height: var(--leading-snug);
}

.commu-office-main em {
    color: var(--text-muted);
}

.commu-office-page-link {
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    display: block;
    font-size: var(--text-meta);
    font-weight: var(--weight-emphasis);
    padding: 10px 14px 12px;
    text-decoration: none;
}

.commu-office-page-link:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    text-decoration: none;
}
.commu-people-eras {
    background: var(--card-bg);
    border: 1px solid var(--border);
    margin-top: var(--space-5);
    padding: 14px;
}
.commu-people-eras.is-cols-1 { --era-columns: 1; }
.commu-people-eras.is-cols-2 { --era-columns: 2; }
.commu-people-eras.is-cols-3 { --era-columns: 3; }
.commu-people-eras.is-cols-4 { --era-columns: 4; }
.commu-people-eras.is-cols-5 { --era-columns: 5; }
.commu-people-eras.is-cols-6 { --era-columns: 6; }
.commu-people-era-row {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}
.commu-people-era-row + .commu-people-era-row { margin-top: 10px; }
.commu-people-era-region {
    align-self: center;
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: var(--weight-emphasis);
    margin: 0;
}
.commu-people-era-cells {
    display: grid;
    grid-template-columns: repeat(var(--era-columns, 4), minmax(0, 1fr));
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.commu-people-era-cell {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    box-sizing: border-box;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 8px 10px;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}
.commu-people-era-cell:hover,
.commu-people-era-cell:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--clr-cream);
    text-decoration: none;
}
.commu-people-era-cell:hover :is(.commu-people-era-count, .commu-people-range),
.commu-people-era-cell:focus-visible :is(.commu-people-era-count, .commu-people-range) { color: color-mix(in srgb, var(--clr-cream) 72%, var(--accent)); }
.commu-people-era-cell:focus-visible { outline: 2px solid color-mix(in srgb, var(--link) 40%, transparent); outline-offset: 2px; }
.commu-people-era-cell strong { font-size: var(--text-base); line-height: var(--leading-snug); }
.commu-people-era-count {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: var(--text-meta);
    font-weight: 400;
}
.commu-people-entries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 9px;
}
.commu-people-entry {
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}
.commu-people-entry:hover,
.commu-people-entry:focus-visible {
    background: var(--bg-surface-hover);
    border-color: var(--link);
    color: var(--text-primary);
    text-decoration: none;
}
button.commu-people-era-cell,
button.commu-people-entry { width: 100%; font: inherit; text-align: start; cursor: pointer; }
.commu-people-entry-icon .commu-role-icon { width: 22px; height: 22px; }
.commu-people-entry-copy { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.commu-people-entry-copy small { color: var(--text-secondary); font-size: var(--text-sm); }
.commu-people-focus .commu-people-group:not([open]) { display: none; }
.commu-people-focus .commu-people-group { margin-top: var(--space-5); }
.commu-people-focus-head {
    align-items: center;
    border-left: 4px solid var(--accent);
    cursor: pointer;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
    list-style: none;
    margin-bottom: 14px;
    padding: 2px 0 2px 10px;
}
.commu-people-focus-head::-webkit-details-marker { display: none; }
.commu-people-focus-close { align-items: center; color: var(--text-muted); display: inline-flex; font-size: var(--text-sm); gap: 4px; }
.commu-people-focus-head:hover .commu-people-focus-close { color: var(--text-primary); }
.commu-people-focus-close .commu-role-icon { width: 15px; height: 15px; }
.commu-people-group { scroll-margin-top: 4.5rem; }
.commu-people-group > [data-commu-list-pager] .pagination { margin: 12px 0 4px; }

.commu-people-era-blurb { color: var(--text-secondary); font-size: var(--text-base); margin: 0 0 12px; }

@media (max-width: 900px) {
    .commu-people-era-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 640px) {
    .commu-people-eras { border-left: 0; border-right: 0; padding: 14px var(--content-inset, 14px); }
    .commu-people-era-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commu-people-entries { grid-template-columns: minmax(0, 1fr); }
}

.commu-people-range {
    font-family: var(--font-sans);
    font-size: var(--text-meta);
    color: var(--text-muted);
    letter-spacing: 0.06em;
}
.commu-people-era-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 7px;
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.commu-people-era-tag .commu-people-range { white-space: nowrap; }
.commu-people-loading {
    grid-column: 1 / -1;
    margin: 6px 0;
    color: var(--text-muted);
    font-size: var(--text-base);
}
.commu-people-skeleton {
    display: contents;
}

.commu-person-skel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.commu-person-skel span {
    display: block;
    height: 11px;
    background: color-mix(in srgb, var(--text-muted) 20%, transparent);
    animation: commu-skel-pulse 1.4s ease-in-out infinite;
}

.commu-person-skel .is-name {
    height: 15px;
    width: 42%;
    margin-bottom: 2px;
}

.commu-person-skel .is-line { width: 94%; }
.commu-person-skel .is-line-mid { width: 82%; }
.commu-person-skel .is-line-short { width: 58%; }

.commu-person-skel:nth-child(2) span { animation-delay: 0.15s; }
.commu-person-skel:nth-child(3) span { animation-delay: 0.3s; }
.commu-person-skel:nth-child(4) span { animation-delay: 0.45s; }

@keyframes commu-skel-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .commu-person-skel span { animation: none; opacity: 0.6; }
}

.commu-people-noscript-list {
    grid-column: 1 / -1;
    margin: 6px 0;
    padding-left: 18px;
    columns: 2;
    font-size: var(--text-base);
}

.commu-people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 1px 0 0 1px;
    align-items: start;
}

.commu-people-grid > .commu-person-card { margin: -1px 0 0 -1px; }
.commu-people-grid > .commu-person-card:hover { z-index: 1; }

.commu-person-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    cursor: default;
    padding: 16px;
    position: relative;
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.commu-person-card::after {
    color: var(--text-muted);
    content: '→';
    font-size: 1rem;
    font-weight: var(--weight-emphasis);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 10px;
    transition: color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.commu-person-card:has(.commu-person-top:hover):not(:has(.commu-person-medal:hover)),
.commu-person-card:has(.commu-person-idbox a:focus-visible) {
    border-color: color-mix(in srgb, var(--link) 72%, var(--border));
}

.commu-person-card:has(.commu-person-top:hover):not(:has(.commu-person-medal:hover))::after,
.commu-person-card:has(.commu-person-idbox a:focus-visible)::after {
    color: var(--link);
    opacity: 1;
    transform: translateX(2px);
}

.commu-person-card.is-focused {
    border-color: var(--link);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--link) 35%, transparent);
}

.commu-person-top {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: -16px -16px -10px;
    padding: 16px 16px 10px;
    transition: background-color 0.16s ease;
}

.commu-person-top:hover:not(:has(.commu-person-medal:hover)),
.commu-person-top:has(.commu-person-idbox a:focus-visible) {
    background: color-mix(in srgb, var(--link) 7%, transparent);
}

.commu-person-medal {
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: 0;
    color: var(--text-secondary);
    display: flex;
    flex: 0 0 auto;
    height: 46px;
    justify-content: center;
    text-decoration: none;
    width: 46px;
}

.commu-person-medal,
.commu-person-more,
.commu-person-scenes {
    cursor: auto;
}

.commu-person-medal[href]:hover {
    background: var(--bg-surface-hover);
    border-color: var(--link);
    color: var(--link);
}

.commu-person-medal[href] {
    cursor: pointer;
}
[class*="pos-"] { --pos-ink: #faf2da; }
.pos-red-soviet { --pos: #b3261e; }
.pos-red-china { --pos: #c4381f; }
.pos-red-korea { --pos: #c42a3c; }
.pos-red { --pos: #8f2a33; }
.pos-western-marxist { --pos: #7d3c6b; }
.pos-feminist { --pos: #6a3fa0; }
.pos-new-left { --pos: #23716f; }
.pos-socialist { --pos: #c25a7c; --pos-ink: #0b0d0a; }
.pos-left-opposition { --pos: #a2473a; }
.pos-trotskyist { --pos: #9e2350; }
.pos-left-communist { --pos: #8f2a33; }
.pos-national-liberation { --pos: #c39a2e; --pos-ink: #0b0d0a; }
.pos-narodnik { --pos: #6f7a32; }
.pos-revolutionary-democrat { --pos: #a39a5a; --pos-ink: #0b0d0a; }
.pos-jacobin { --pos: #31519a; }
.pos-dissident { --pos: #5878a8; --pos-ink: #0b0d0a; }
.pos-reform { --pos: #4b9670; --pos-ink: #0b0d0a; }
.pos-fascist { --pos: #6e4b2e; }
.pos-white { --pos: #fbfaf6; --pos-ink: #0b0d0a; }
[data-theme="light"] .pos-white { --pos-wash: 100%; }
.pos-anarchist { --pos: #111; }
.pos-liberal-republican { --pos: var(--commu-position-liberal); }
.pos-conservative { --pos: var(--commu-position-conservative); }
.pos-monarchist { --pos: var(--commu-position-monarchist); }
.pos-agrarian { --pos: var(--commu-position-agrarian); }
.pos-nationalist { --pos: var(--commu-position-nationalist); }
.pos-revolutionary-socialist { --pos: var(--commu-position-revolutionary-socialist); }
.commu-person-card[class*="pos-"]::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 4px;
    background: var(--pos);
    pointer-events: none;
}
.commu-person-card[class*="pos-"] .commu-person-top {
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--pos) var(--pos-wash, 16%), transparent), transparent 90%);
}
.commu-person-card[class*="pos-"] .commu-person-top { padding-top: 19px; }
.commu-person-card.pos-white::before {
    box-shadow: 0 1px 0 var(--text-muted);
}
.commu-person-card.pos-left-communist::before {
    background: repeating-linear-gradient(135deg, #8f2a33 0 7px, #111 7px 10px);
}
.pos-left-communist .commu-person-position:not(.is-secondary) {
    background: repeating-linear-gradient(135deg, #8f2a33 0 6px, #2a1214 6px 8px);
}
.commu-person-card.pos-anarchist::before {
    background: repeating-linear-gradient(135deg, #111 0 7px, var(--text-muted) 7px 9px);
}
.commu-person-card.pos-anarchist .commu-person-top {
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--text-muted) 12%, transparent), transparent 90%);
}
.commu-person-position {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 8px;
    background: var(--pos);
    color: var(--pos-ink);
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.commu-person-position .commu-role-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    margin-right: 4px;
}
.pos-white .commu-person-position,
.pos-anarchist .commu-person-position {
    box-shadow: inset 0 0 0 1px var(--text-muted);
}
.commu-person-position.is-secondary {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--pos, var(--border));
    color: var(--text-secondary);
    font-weight: 600;
}
.commu-person-position.is-secondary.pos-white,
.commu-person-position.is-secondary.pos-anarchist {
    box-shadow: inset 0 0 0 1px var(--text-muted);
}
a.commu-person-position.is-secondary:hover,
a.commu-person-position.is-secondary:focus-visible {
    color: var(--text-primary);
}
a.commu-person-position:hover,
a.commu-person-position:focus-visible {
    color: var(--pos-ink);
    text-decoration: underline;
    outline: 2px solid var(--link);
    outline-offset: 1px;
}

.commu-person-idbox {
    flex: 1 1 auto;
    min-width: 0;
    container-type: inline-size;
}
.commu-person-idbox h3 {
    margin: 0;
    font-size: 1.05rem;
    font-size: clamp(0.74rem, 100cqi / var(--name-em, 1), 1.05rem);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.commu-person-name-em-8 { --name-em: 8; }
.commu-person-name-em-9 { --name-em: 9; }
.commu-person-name-em-10 { --name-em: 10; }
.commu-person-name-em-11 { --name-em: 11; }
.commu-person-name-em-12 { --name-em: 12; }
.commu-person-name-em-13 { --name-em: 13; }
.commu-person-name-em-14 { --name-em: 14; }
.commu-person-name-em-15 { --name-em: 15; }
.commu-person-name-em-16 { --name-em: 16; }
.commu-person-name-em-17 { --name-em: 17; }
.commu-person-name-em-18 { --name-em: 18; }
.commu-person-name-em-19 { --name-em: 19; }
.commu-person-name-em-20 { --name-em: 20; }
.commu-person-name-em-21 { --name-em: 21; }
.commu-person-name-em-22 { --name-em: 22; }
.commu-person-name-em-23 { --name-em: 23; }
.commu-person-name-em-24 { --name-em: 24; }
.commu-person-name-em-25 { --name-em: 25; }
.commu-person-name-em-26 { --name-em: 26; }
.commu-person-name-em-27 { --name-em: 27; }
.commu-person-name-em-28 { --name-em: 28; }
.commu-person-name-em-29 { --name-em: 29; }
.commu-person-name-em-30 { --name-em: 30; }

.commu-person-idbox h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.16s ease;
}

.commu-person-top:hover:not(:has(.commu-person-medal:hover)) .commu-person-idbox h3 a,
.commu-person-top:hover:not(:has(.commu-person-medal:hover)) .commu-person-cyr,
.commu-person-top:has(.commu-person-idbox a:focus-visible) .commu-person-idbox h3 a,
.commu-person-top:has(.commu-person-idbox a:focus-visible) .commu-person-cyr {
    color: var(--link);
}

.commu-person-cyr {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.16s ease;
}
.commu-person-alias-hit {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    max-width: 100%;
    margin-top: 6px;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.76rem;
    line-height: var(--leading-none);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commu-person-alias-hit-label {
    color: var(--text-muted);
}
.commu-person-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.commu-person-sidebox {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.commu-person-years {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.commu-flag-link {
    display: inline-flex;
    align-items: center;
    border-radius: 2px;
    line-height: var(--leading-none);
}

.commu-flag-link:hover,
.commu-flag-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.commu-flag {
    height: 0.86em;
    width: auto;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    vertical-align: middle;
    object-fit: contain;
    flex: 0 0 auto;
}

.commu-fate {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: var(--leading-none);
    padding: 4px 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    white-space: nowrap;
}

.commu-fate.is-executed,
.commu-fate.is-assassinated,
.commu-fate.is-murdered,
.commu-fate.is-suicide,
.commu-fate.is-killed {
    border-color: color-mix(in srgb, #d05252 60%, transparent);
    color: #d05252;
    background: color-mix(in srgb, #d05252 10%, transparent);
}

.commu-fate.is-deposed {
    border-color: color-mix(in srgb, #d09040 60%, transparent);
    color: #c07f2d;
    background: color-mix(in srgb, #d09040 10%, transparent);
}

.commu-fate.is-exile {
    border-color: color-mix(in srgb, #9d7bd8 60%, transparent);
    color: #9d7bd8;
    background: color-mix(in srgb, #9d7bd8 10%, transparent);
}

.commu-fate.is-natural {
    border-color: var(--border);
    color: var(--text-muted);
    background: var(--bg-surface);
}

.commu-person-epithet {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: var(--leading-snug);
    color: var(--text-primary);
}
.commu-person-role-tag {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 2px 8px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--bg-surface) 60%, transparent);
    border: 1px solid var(--border);
    border-left-width: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.commu-person-role-tag { transition: background-color 120ms ease, color 120ms ease; }
a.commu-person-role-tag:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.commu-person-moment {
    border-left: 3px solid color-mix(in srgb, var(--link) 72%, var(--border));
    color: color-mix(in srgb, var(--text-secondary) 82%, var(--text-muted));
    font-size: 0.9rem;
    font-style: italic;
    line-height: var(--leading-relaxed);
    margin: 0;
    padding-left: 10px;
}

.commu-person-bio {
    margin: 0;
    font-size: 0.88rem;
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}
.commu-person-moment,
.commu-person-bio {
    text-align: justify;
    word-break: normal;
    hyphens: auto;
}

.commu-person-more {
    border-top: 1px dashed var(--border);
    margin-inline: calc(-1 * var(--space-4));
}

.commu-person-more:last-child {
    margin-bottom: calc(-1 * var(--space-4));
}

.commu-person-more > summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    min-height: var(--control-height);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--link);
    list-style: none;
}

.commu-person-more > summary:hover {
    background: var(--bg-surface-hover);
}

.commu-person-more > summary:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: -2px;
}

.commu-person-more > .commu-person-career {
    margin: 0;
    padding: var(--space-2) var(--space-4) var(--space-4);
}

.commu-person-more summary::before {
    content: '+ ';
}

.commu-person-more[open] > summary::before {
    content: '− ';
}

.commu-person-more summary::-webkit-details-marker {
    display: none;
}

.commu-person-career {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.commu-person-career li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 0.84rem;
    line-height: var(--leading-normal);
}

.commu-career-year {
    flex: 0 0 84px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.commu-career-role {
    color: var(--text-secondary);
}

.commu-person-scenes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.commu-person-scenes-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-right: 2px;
}

.commu-scene-chip {
    display: inline-block;
    font-size: 0.76rem;
    line-height: var(--leading-none);
    padding: 5px 9px;
    border: 1px solid var(--border);
    color: var(--link);
    text-decoration: none;
    background: var(--bg-surface);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commu-scene-chip:hover {
    border-color: var(--link);
}

.commu-hub-head {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 0;
    margin-top: 18px;
    padding: 18px;
}
a.commu-person-role-tag:hover {
    background: color-mix(in srgb, var(--link) 12%, transparent);
}

.commu-hub-section {
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 20px;
    padding-inline: var(--content-inset);
    scroll-margin-top: 82px;
}

.commu-hub-section h2 {
    color: var(--text-primary);
    font-size: var(--text-lg);
    line-height: var(--leading-tight);
    margin: 0 0 12px;
}
.commulingo-page footer {
    margin-top: 8px;
}

.commu-hub-head {
    border-left-color: var(--link);
}

.commu-hub-head h1 {
    color: var(--text-primary);
    font-size: var(--text-2xl);
    letter-spacing: 0;
    line-height: var(--leading-tight);
    margin: 2px 0 7px;
}

.commu-hub-head p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    margin: 0;
}
.commu-office-head { margin-top: var(--space-4); border-radius: 0; }
.commu-office-head-row {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    padding: var(--space-4) var(--content-inset);
    color: var(--text-primary); text-decoration: none;
}
.commu-office-head-title { min-width: 0; }
.commu-office-head-title h1 {
    margin: 0; color: inherit; font-size: var(--text-2xl);
    font-weight: var(--weight-heading); line-height: var(--leading-tight);
}
.commu-office-head-link { flex: 0 0 auto; color: var(--text-muted); font-size: var(--text-sm); }
a.commu-office-head-row:hover { background: var(--bg-surface-hover); color: var(--text-primary); text-decoration: none; }
a.commu-office-head-row:hover .commu-office-head-link { color: var(--text-primary); }
a.commu-office-head-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.commu-office-head-description {
    margin: 0; padding: var(--space-4) var(--content-inset); border-top: 1px solid var(--border);
    color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-normal);
}
.commu-office-head-glossary { padding: var(--space-3) var(--content-inset); border-top: 1px solid var(--border); }
.commu-office-section-glossary { margin-bottom: var(--space-3); padding-inline: var(--content-inset); }

.commu-hub-section {
    margin-top: 26px;
}

.commu-hub-section h2 {
    margin-bottom: 14px;
}
.commu-office-seats {
    background: var(--bg-surface);
    border: 1px solid var(--border);
}
.commu-office-seats-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.commu-office-seat-grid {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.commu-office-seat-grid td { padding: 0; vertical-align: top; border-top: 1px solid var(--border); }
.commu-office-seats-head span {
    padding: 8px 14px;
    color: var(--text-muted);
    font-size: var(--text-sm);
}
.commu-office-seat-grid .commu-office-rows { margin: 0; }
.commu-office-seat-government { border-left: 1px solid var(--border); }
.commu-office-seats-head span + span { border-left: 1px solid var(--border); }
.commu-office-seats .commu-office-rows li { display: block; padding: 0; }
.commu-office-seats .commu-office-row { grid-template-columns: 1fr; gap: 2px; }
.commu-office-seats .commu-office-years { margin-bottom: 0; }
.commu-office-seat-state li { position: sticky; top: 82px; background: var(--bg-surface); }
.commu-book-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.commu-book-group-head .commu-dict-nav {
    flex: 1 1 100%;
}

@media (max-width: 720px) {
    .commu-office-grid {
        grid-template-columns: 1fr;
    }

    .commu-office-rows li,
.commu-office-row {
        grid-template-columns: 92px minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .commu-people-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .commu-office-rows li,
.commu-office-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .commu-person-page .commu-person-sidebox {
        width: 100%;
    }
}
.commu-dict-tab { min-height: var(--control-height); padding: .7rem .4rem; font-size: clamp(0.82rem, 1.9vw, 1rem); overflow: hidden; }
.commu-dict-tab span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commu-dict-tab .commu-role-icon { width: 17px; height: 17px; flex: 0 0 auto; color: inherit; }
@media (max-width: 560px) {
    .commu-dict-tab { padding: .6rem .15rem; font-size: var(--text-sm); gap: .25rem; }
    .commu-dict-tab .commu-role-icon { width: 14px; height: 14px; }
    .commu-dict-tab span[data-short] { font-size: 0; }
    .commu-dict-tab span[data-short]::after { content: attr(data-short); font-size: var(--text-sm); }
}
.commu-event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0; margin-top: .5rem; padding: 1px 0 0 1px; }
.commu-event-grid > .commu-event-card { margin: -1px 0 0 -1px; }
.commu-event-grid > .commu-event-card:hover { position: relative; }
.commu-event-card { 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-card:hover { background: var(--accent); border-color: var(--accent); color: var(--clr-cream); text-decoration: none; }
.commu-event-card:hover .commu-event-period,
.commu-event-card:hover .commu-event-original { color: color-mix(in srgb, var(--clr-cream) 72%, var(--accent)); }
.commu-event-card:hover .commu-event-category { color: var(--clr-cream); background: transparent; border-color: color-mix(in srgb, var(--clr-cream) 45%, var(--accent)); }
.commu-event-card h2,
.commu-event-card h3 { margin: .1rem 0 .15rem; font-size: var(--text-md); }
.commu-event-card p { line-height: var(--leading-normal); }
.commu-event-card p { margin: .45rem 0 0; font-size: var(--text-sm); line-height: var(--leading-normal); }
.commu-event-card .commu-event-period { font-size: var(--text-xs); }
.commu-event-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
    margin-bottom: .1rem;
}
.commu-event-meta .commu-event-period { margin: 0; }
.commu-event-original {
    display: block;
    font-size: var(--text-meta); color: var(--text-muted);
}
.commu-event-category {
    padding: 2px 8px; font-size: var(--text-xs); font-weight: 600; letter-spacing: .01em;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--bg-surface) 60%, transparent);
    border: 1px solid var(--border); border-left-width: 3px;
    white-space: nowrap;
}
.commu-event-period { display: block; color: var(--text-muted); font-weight: 700; letter-spacing: .04em; }
.commu-person-history-events .commu-person-event-links a { align-content: start; grid-template-columns: 6.6rem minmax(0, 1fr); }
.commu-person-history-events .commu-person-event-links a > span { grid-row: span 3; }
@media (max-width: 560px) { .commu-person-history-events .commu-person-event-links a { grid-template-columns: 1fr; } .commu-person-history-events .commu-person-event-links a > span { grid-row: auto; } }
.commu-terms-page .commu-event-card p,
.commu-events-page .commu-event-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.commu-terms-page .commu-event-grid.is-filtering .commu-event-card p,
.commu-events-page .commu-event-grid.is-filtering .commu-event-card p {
    display: block;
    overflow: visible;
}
.commu-docs-page .commu-event-card {
    display: grid;
    grid-template-rows: 1.3rem 3.1rem 4.3rem;
    gap: var(--space-2);
    height: 12rem;
    box-sizing: border-box;
    min-width: 0;
}
.commu-docs-page .commu-event-card h2,
.commu-docs-page .commu-event-card p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.commu-docs-page .commu-event-card h2 {
    line-height: var(--leading-snug);
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.commu-docs-page .commu-event-card p {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
@media (max-width: 695px) {
    .commu-docs-page .commu-event-card {
        grid-template-rows: none;
        height: auto;
    }
}
.commu-docs-page .commu-event-card .commu-event-period {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.commu-docs-page .commu-event-card .commu-doc-card-reading {
    display: inline-block;
    margin-left: .5rem;
    font-size: var(--text-xs);
    color: var(--link);
}
.commu-docs-page .commu-event-card:hover .commu-doc-card-reading {
    color: var(--clr-cream);
}
.commu-dict-toolbar { margin: -1px 0; }
.commu-dict-sort { display: grid; grid-template-columns: 1fr 1fr; border: 0; background: none; }
.commu-dict-sort a {
    display: flex; align-items: center; justify-content: center;
    min-height: 38px; border: 1px solid var(--border);
    background: var(--bg-surface); color: var(--text-muted);
    font-size: var(--text-sm); text-decoration: none;
}
.commu-dict-sort a + a { border-left: 0; }
.commu-dict-sort a:hover { background: var(--accent); border-color: var(--accent); color: var(--clr-cream); text-decoration: none; }
.commu-dict-sort a.is-active {
    color: var(--text-primary); font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--accent-red);
}
.commu-dict-sort a.is-active:hover { background: var(--bg-surface); border-color: var(--border); color: var(--text-primary); }
.commu-dict-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.commu-dict-chip {
    padding: .3rem .7rem; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); font: inherit;
    font-size: var(--text-sm); cursor: pointer;
}
.commu-dict-chip span { color: var(--text-muted); opacity: .75; margin-left: .15rem; }
.commu-dict-chip:hover { background: var(--accent); border-color: var(--accent); color: var(--clr-cream); }
.commu-dict-chip:hover span { color: color-mix(in srgb, var(--clr-cream) 72%, var(--accent)); }
.commu-dict-chip.is-active {
    color: var(--clr-cream); font-weight: 700;
    background: var(--accent); border-color: var(--accent);
}
.commu-dict-chip.is-active span { color: color-mix(in srgb, var(--clr-cream) 72%, var(--accent)); }
a.commu-dict-chip { display: inline-block; text-decoration: none; line-height: var(--leading-tight); }
a.commu-dict-chip:hover { text-decoration: none; }

.commu-docs-page .commu-event-grid,
.commu-events-page .commu-event-grid { scroll-margin-top: 4.5rem; }
.commu-dict-index {
    display: flex; gap: .3rem; margin-top: var(--space-2);
    border: 0; background: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
    padding-bottom: 2px;
}
.commu-dict-index a {
    display: flex; align-items: center; justify-content: center; flex: none;
    min-width: 36px; min-height: 36px; box-sizing: border-box; padding: 0 .45rem;
    border: 1px solid var(--border);
    color: var(--text-muted); text-decoration: none;
    font-size: var(--text-sm);
}
.commu-dict-index a:hover { background: var(--accent); border-color: var(--accent); color: var(--clr-cream); text-decoration: none; }

.commu-term-group-head {
    grid-column: 1 / -1; margin: 1.2rem 0 12px;
    scroll-margin-top: 4.5rem;
}
.commu-term-group-head:first-child { margin-top: 0; }
.commu-event-grid.is-filtering .commu-term-group-head,
.commu-event-grid.is-ungrouped .commu-term-group-head { display: none; }
.commu-term-link,
.commu-event-link {
    color: inherit; text-decoration: none;
    border-bottom: 2px dashed var(--link);
}
.commu-term-link:hover,
.commu-event-link:hover { border-bottom-style: solid; }

.commu-doc-link {
    color: inherit; text-decoration: none;
    border-bottom: 2px dotted var(--link);
}
.commu-doc-link:hover { border-bottom-style: solid; }
.commu-topic-link {
    color: inherit; text-decoration: none;
    border-bottom: 2px dotted var(--link);
}
.commu-topic-link:hover { border-bottom-style: solid; }
.commu-person-bio a:not([class]) {
    color: inherit; text-decoration: none;
    border-bottom: 2px dotted var(--link);
}
.commu-person-bio a:not([class]):hover { border-bottom-style: solid; }

.commu-term-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.commu-term-chip { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--border); border-radius: 0; color: inherit; text-decoration: none; font-size: var(--text-base); }
.commu-term-chip:hover { background: var(--accent); border-color: var(--accent); color: var(--clr-cream); text-decoration: none; }
.commu-term-chip.is-child { font-size: var(--text-sm); opacity: .85; border-style: dashed; }
.pos-tone-1 { --pos-shown: color-mix(in srgb, var(--pos) 68%, #000); --pos-shown-ink: #faf2da; }
.pos-tone-2 { --pos-shown: var(--pos); --pos-shown-ink: var(--pos-ink); }
.pos-tone-3 { --pos-shown: color-mix(in srgb, var(--pos) 62%, #fff); --pos-shown-ink: #0b0d0a; }
.pos-tone-4 { --pos-shown: color-mix(in srgb, var(--pos) 36%, #fff); --pos-shown-ink: #0b0d0a; }
.pos-white.pos-tone-1 { --pos-shown: #a9a79f; --pos-shown-ink: #0b0d0a; }

.commu-drill-promo {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.commu-drill-promo h2 {
    font-size: var(--text-lg);
    margin: 0 0 6px;
}

.commu-drill-promo p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-snug);
    margin: 0;
}
.commu-person-politburo-stints {
    list-style: none;
    margin: 10px 0 0;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.commu-person-politburo-stints li {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    white-space: nowrap;
}

.commu-person-politburo-note {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    margin: 8px 0 0;
}
.commu-updates {
    padding: 0;
    scroll-margin-top: 80px;
}
.commu-updates-toggle,
.commu-updates-group > summary {
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
}
.commu-updates summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -3px;
}
.commu-updates[open] > summary {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}
.commu-updates-body {
    padding: 0 16px 12px;
}
.commu-updates-description {
    margin: 12px 0;
    color: var(--text-muted);
    font-size: var(--text-meta);
    line-height: var(--leading-normal);
}
.commu-updates-group {
    border-top: 1px solid var(--border);
}
.commu-updates-group > summary {
    padding-inline: 0;
}
.commu-updates time {
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 400;
    white-space: nowrap;
}
.commu-updates-group > summary time {
    margin-inline-start: 12px;
}
.commu-updates-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.commu-updates-list li {
    padding: 12px 0;
    border-top: 1px solid var(--border);
    overflow-wrap: anywhere;
}
.commu-updates-list li > time {
    display: block;
    margin-bottom: 4px;
}
.commu-updates-list a {
    font-size: var(--text-base);
    font-weight: 700;
}
.commu-updates-excerpt {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: var(--text-meta);
    line-height: var(--leading-normal);
}
.commulingo-home {
    gap: 12px;
}
.commulingo-home .commulingo-hero--home {
    padding: 0;
    gap: 0;
}
.commulingo-home .commulingo-hero-main {
    padding: 18px 18px 0;
    gap: 12px;
}
.commulingo-home .commulingo-hero h1 {
    margin: 0;
    font-size: var(--text-2xl);
    letter-spacing: var(--tracking-home-title);
}
.commulingo-home-description {
    padding: 4px 18px 16px;
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.commulingo-home .commulingo-hero-dict {
    padding-top: 12px;
    gap: 10px;
}
.commulingo-home .commulingo-hero-dict-label {
    padding-inline: 18px;
}
.commulingo-shell > .commu-course-preview {
    border-top: var(--border-width) solid var(--border);
}
.commulingo-home .commulingo-hero-dict .commu-dict-nav {
    border-inline: 0;
    border-bottom: 0;
}
.commulingo-home .commu-crumb.is-attached {
    margin-bottom: -13px;
}
.commulingo-home .commulingo-hero-dict .site-search-form {
    margin-top: -10px;
}
.commulingo-home .commulingo-hero-dict .ui-search-input {
    border-left: 0;
    border-bottom: 0;
}
.commulingo-home .commulingo-hero-dict .site-search-submit {
    border-right: 0;
    border-bottom: 0;
}
.commulingo-home .commulingo-hero-dict .commu-dict-tab {
    min-height: 54px;
}
.commulingo-home .commu-updates {
    border-top: 1px solid var(--border);
}
.commulingo-home .commu-drill-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    padding: 18px;
    margin: 0;
}
.commulingo-home .commu-drill-promo p {
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.commulingo-home .commulingo-book-groups {
    gap: 18px;
    margin-top: 14px;
}
.commulingo-home .commu-book-group {
    border: 0;
    background: transparent;
    padding: 0;
}
.commulingo-home .commu-book-group-title {
    font-size: var(--text-md);
    line-height: var(--leading-snug);
    margin-bottom: 8px;
}
.commulingo-home .commu-book-card {
    border-color: color-mix(in srgb, var(--border) 45%, transparent);
}
.commulingo-home .commu-book-card:hover {
    border-color: var(--accent);
}
@media (max-width: 560px) {
    .commulingo-home .commulingo-hero-main {
        padding: 14px 12px 0;
    }
    .commulingo-home-description {
        padding: 4px 12px 14px;
        font-size: var(--text-meta);
    }
    .commulingo-home .commulingo-hero-dict-label {
        padding-inline: 12px;
    }
    .commulingo-home .commulingo-hero-dict .commu-dict-tab {
        flex-direction: column;
        gap: 6px;
        padding: 10px 2px;
        min-height: 64px;
    }
    .commulingo-home .commulingo-hero-dict .commu-dict-tab .commu-role-icon {
        width: 18px;
        height: 18px;
    }
    .commulingo-home .commu-drill-promo {
        padding: 14px 12px;
        grid-template-columns: minmax(0, 1fr);
    }
    .commulingo-home .commu-drill-promo .btn {
        text-align: center;
        min-height: 44px;
    }
}

.commu-updates-group-label {
    display: inline-block;
    min-width: 5.5em;
}
.commu-updates-latest {
    display: block;
    margin: 5px 0 0 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: var(--text-meta);
    font-weight: 400;
}
.commulingo-home-progress {
    flex: 0 0 116px;
    display: grid;
    gap: 7px;
}
.commulingo-home-progress-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    white-space: nowrap;
}
.commulingo-home-progress-label label {
    color: var(--text-muted);
    font-size: var(--text-xs);
}
.commulingo-home-progress-label span {
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.commulingo-home-progress progress {
    display: block;
    appearance: none;
    width: 100%;
    height: 3px;
    border: 0;
    background: color-mix(in srgb, var(--text-muted) 24%, transparent);
    color: var(--text-secondary);
}
.commulingo-home-progress progress::-webkit-progress-bar {
    background: color-mix(in srgb, var(--text-muted) 24%, transparent);
}
.commulingo-home-progress progress::-webkit-progress-value {
    background: var(--text-secondary);
}
.commulingo-home-progress progress::-moz-progress-bar {
    background: var(--text-secondary);
}
.commu-people-browser { margin-top: var(--space-4); }
.commu-dict-shell > .commu-people-browser { margin-top: 0; }
.commu-people-filterbar { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: calc(var(--space-5) / 2); }
.commu-people-filterbar + *,
.commu-people-browser:has(> .commu-people-filterbar:last-child) + * { margin-top: 0; }
.commu-people-facet > summary {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: var(--control-height); padding: 0 var(--space-3);
    border: 1px solid var(--border); background: var(--card-bg); color: var(--text-primary);
    font-size: var(--text-sm); cursor: pointer; list-style: none; user-select: none;
}
.commu-people-facet > summary::-webkit-details-marker { display: none; }
.commu-people-facet > summary:hover { border-color: color-mix(in srgb, var(--text-muted) 55%, var(--border)); }
.commu-people-facet > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.commu-people-facet > summary .commu-role-icon { width: 15px; height: 15px; flex: none; color: var(--text-muted); transition: transform var(--duration-fast) var(--ease-standard); }
.commu-people-facet[open] > summary { border-color: var(--link); }
.commu-people-facet[open] > summary .commu-role-icon { transform: rotate(180deg); }
.commu-people-facet-title { font-weight: 600; }
.commu-people-facet.is-set > summary { border-color: var(--accent); background: var(--accent); color: var(--clr-cream); }
.commu-people-facet.is-set > summary .commu-role-icon { color: inherit; }
.commu-people-facet-panel {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + var(--space-1));
    max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
    padding: var(--space-4); border: 1px solid var(--link); background: var(--bg-surface, var(--card-bg));
    box-shadow: 0 12px 24px color-mix(in srgb, #000 35%, transparent);
}
.commu-people-facet-panel h3 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.commu-people-facet-panel h3:first-child { margin-top: 0; }
.commu-people-facet-panel h4 { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); }
.commu-people-facet-search { width: 100%; box-sizing: border-box; margin-bottom: var(--space-3); }
.commu-people-facet-search:focus-visible { outline: none; border-color: var(--link); box-shadow: inset 0 -2px 0 0 var(--link); }
.commu-people-facet-status { margin: 0 0 var(--space-3); color: var(--text-secondary); font-size: var(--text-sm); }
.commu-people-facet-group + .commu-people-facet-group { margin-top: var(--space-3); }
.commu-people-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.commu-dict-chip.commu-people-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; box-sizing: border-box; line-height: var(--leading-tight); text-align: start; }
.commu-people-chip[hidden] { display: none; }
.commu-dict-facet-value { min-width: 0; overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.commu-dict-facet-value:empty { display: none; }
.commu-dict-facet-value::before { content: '·'; margin-right: var(--space-2); }
.commu-dict-facets .commu-people-facet > summary { max-width: 100%; box-sizing: border-box; }
.commu-people-chip svg { width: 15px; height: 15px; flex: none; }
.commu-people-chip small { color: var(--text-muted); font-size: var(--text-xs, .75rem); }
.commu-people-chip.is-active small,
.commu-people-chip:hover small { color: inherit; opacity: .8; }
.commu-people-chip:focus-visible,
.commu-people-condition:focus-visible,
.commu-people-tool:focus-visible,
.commu-people-term-link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.commu-people-conditions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); padding-inline: var(--content-inset); }
.commu-people-condition {
    display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; padding: 0 var(--space-2) 0 var(--space-3);
    background: var(--accent); color: var(--clr-cream); font-size: var(--text-sm); text-decoration: none;
}
.commu-people-condition:hover { color: var(--clr-cream); text-decoration: none; background: color-mix(in srgb, var(--accent) 80%, #000); }
.commu-people-condition .commu-role-icon { width: 14px; height: 14px; }
.commu-people-condition-reset { font-size: var(--text-sm); color: var(--text-muted); text-decoration: none; padding: var(--space-1); }
.commu-people-condition-reset:hover { color: var(--text-primary); }
button.commu-people-condition,
button.commu-people-condition-reset { border: 0; font-family: inherit; cursor: pointer; }
button.commu-people-condition-reset { background: none; }
.commu-people-results-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4);
    margin-block: var(--space-5) var(--space-3); padding: var(--space-4) var(--content-inset) 0; border-top: 1px solid var(--border); scroll-margin-top: var(--space-4);
}
.commu-people-results-head:focus { outline: none; }
.commu-people-results-head h2 { margin: 0; font-size: var(--text-lg); }
.commu-people-results-tools { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.commu-people-results-tools > span { display: inline-flex; border: 1px solid var(--border); }
.commu-people-tool { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; padding: 0 var(--space-3); color: var(--text-muted); font-size: var(--text-sm); text-decoration: none; border: 0; background: none; font-family: inherit; cursor: pointer; }
.commu-people-tool + .commu-people-tool { border-left: 1px solid var(--border); }
.commu-people-tool:hover { color: var(--text-primary); background: color-mix(in srgb, var(--link) 12%, transparent); text-decoration: none; }
.commu-people-tool.is-active { color: var(--clr-cream); background: var(--accent); font-weight: 600; }
.commu-people-tool .commu-role-icon { width: 14px; height: 14px; }
.commu-people-term-link { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-4); padding: var(--space-3) var(--content-inset); border: 1px solid var(--border); color: var(--text-primary); text-decoration: none; }
.commu-people-term-link > span:first-child { color: var(--text-muted); font-size: var(--text-sm); }
.commu-people-term-link > span:last-child { margin-left: auto; color: var(--text-muted); }
.commu-people-term-link + .commu-people-term-link { margin-top: calc(-1 * var(--space-4) - 1px); }
.commu-people-term-link:hover { background: color-mix(in srgb, var(--link) 10%, transparent); color: var(--text-primary); text-decoration: none; }
.commu-people-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.commu-people-row { border-bottom: 1px solid var(--border); }
.commu-people-row-link {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 15rem); align-items: center; gap: var(--space-1) var(--space-3);
    padding: var(--space-3) var(--content-inset); color: var(--text-primary); text-decoration: none;
}
.commu-people-row-link:hover { background: color-mix(in srgb, var(--link) 10%, transparent); color: var(--text-primary); text-decoration: none; }
.commu-people-row-link:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.commu-people-row-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); color: var(--text-secondary); }
.commu-people-row-icon .commu-role-icon { width: 18px; height: 18px; }
.commu-people-row-main,
.commu-people-row-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.commu-people-row-name { line-height: var(--leading-snug); }
.commu-people-row-native { color: var(--text-muted); font-size: var(--text-sm); }
.commu-people-row-alias { color: var(--text-muted); font-size: var(--text-xs, .75rem); }
.commu-people-row-epithet { overflow: hidden; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-snug); text-overflow: ellipsis; white-space: nowrap; }
.commu-people-row-role { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-snug); }
.commu-people-row-years { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text-muted); font-family: var(--font-sans); font-size: var(--text-xs, .75rem); }
.commu-people-row-years .commu-flag { height: 13px; width: auto; }
.commu-people-result-divider { margin: var(--space-4) 0 var(--space-2); padding: var(--space-2) var(--content-inset); border-left: 4px solid var(--text-muted); color: var(--text-secondary); font-size: var(--text-sm); font-weight: 600; list-style: none; grid-column: 1 / -1; }
.commu-people-browser[aria-busy="true"] .commu-people-rows,
.commu-people-browser[aria-busy="true"] .commu-people-grid,
.commu-people-browser[aria-busy="true"] .commu-people-results-head { opacity: .5; transition: opacity var(--duration-fast) var(--ease-standard); }
@media (max-width: 640px) {
    .commu-people-facet { flex: 1 1 calc(50% - var(--space-2)); }
    .commu-people-facet > summary { width: 100%; box-sizing: border-box; padding: 0 var(--space-2); }
    .commu-people-facet > summary .commu-role-icon { margin-left: auto; }
    .commu-people-facet-panel { padding: var(--space-3); max-height: 65vh; }
    .commu-people-shell .commu-people-filterbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .commu-people-shell .commu-people-facet { min-width: 0; }
    .commu-people-shell .commu-people-facet > summary { gap: var(--space-1); }
    .commu-people-row-link { grid-template-columns: 32px minmax(0, 1fr); padding-inline: var(--space-2); }
    .commu-people-row-icon { width: 32px; height: 32px; }
    .commu-people-row-meta { grid-column: 2; }
    .commu-people-results-tools { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    .commu-people-facet > summary .commu-role-icon { transition: none; }
}
.commu-person-affiliation { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text-secondary); font-size: var(--text-sm); }
a.commu-person-affiliation {
    margin-left: -6px;
    padding: 2px 6px;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
}
a.commu-person-affiliation:hover,
a.commu-person-affiliation:focus-visible {
    background: color-mix(in srgb, var(--link) 12%, transparent);
    color: var(--text-primary);
    text-decoration: none;
}
