/* Community boards + Practice visuals. Page-scoped sheet — do not fold into cu-app.css. */

.cu-boards-page {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.cu-boards-page img,
.cu-boards-page svg {
    max-width: 100%;
}

/* Hub — icon grid. Locked / Later tiles stay gray and dashed. */
.cu-boards-page .cu-community-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 11.5rem;
    padding: 0.8rem 0.6rem 0.7rem;
}

.cu-boards-page .cu-community-board__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 0 0.15rem;
    border-radius: 0.95rem;
    background: rgba(13, 148, 136, 0.14);
    color: #0f766e;
}

.cu-boards-page .cu-community-board__icon svg {
    width: 1.85rem;
    height: 1.85rem;
}

.cu-boards-page .cu-community-board__title,
.cu-boards-page .cu-community-board__blurb,
.cu-boards-page .cu-community-board .cu-chip-btn {
    width: 100%;
    max-width: 100%;
}

.cu-boards-page .cu-community-board__blurb {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cu-boards-page .cu-community-board .cu-chip-btn {
    min-height: 2.75rem;
    justify-content: center;
}

.cu-boards-page .cu-community-board .cu-community-later__badge {
    position: static;
    align-self: flex-end;
    margin: 0 0 0.35rem;
    order: -1;
}

.cu-boards-page .cu-community-board--locked .cu-community-board__icon {
    background: rgba(245, 240, 230, 0.08);
    color: rgba(245, 240, 230, 0.78);
}

/* Three listing boards — stacked so 390 never scrolls sideways. */
.cu-boards-page .cu-lane-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
}

.cu-boards-page .cu-lane {
    min-width: 0;
    padding: 0.7rem 0.65rem 0.8rem;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(13, 148, 136, 0.08), transparent 2.4rem),
        rgba(245, 240, 230, 0.06);
    border: 1px solid rgba(245, 240, 230, 0.12);
}

.cu-boards-page .cu-lane__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.65rem;
    min-width: 0;
}

.cu-boards-page .cu-lane__mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: rgba(13, 148, 136, 0.16);
    color: var(--cu-teal-bright, #5eead4);
}

.cu-boards-page .cu-lane__mark svg {
    width: 1.45rem;
    height: 1.45rem;
}

.cu-boards-page .cu-lane__title {
    margin: 0;
    min-width: 0;
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.2;
}

.cu-boards-page .cu-lane__count {
    margin-left: auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.18);
    color: var(--cu-teal-bright, #5eead4);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.cu-boards-page .cu-lane__empty {
    margin: 0;
    padding: 0.85rem 0.7rem;
    border: 1px dashed rgba(245, 240, 230, 0.28);
    border-radius: 0.75rem;
    text-align: center;
}

.cu-boards-page .cu-lane .cu-csb-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    justify-content: stretch;
}

.cu-boards-page .cu-csb-more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    min-height: 8rem;
    max-width: 560px;
    padding: 1rem;
    border: 1px dashed #0f766e;
    border-radius: 0.85rem;
    color: #0f766e;
    background: #fffdf8;
    font-weight: 700;
    text-decoration: none;
}

html[data-theme="dark"] .cu-boards-page .cu-csb-more,
.cu-shell[data-theme="dark"] .cu-boards-page .cu-csb-more {
    color: #f5f0e6;
    background: #1c1917;
    border-color: #5eead4;
}

.cu-boards-page .cu-lane .cu-csb-card {
    max-width: none;
    width: 100%;
    min-width: 0;
}

.cu-boards-page .cu-lane .cu-csb-card__disclosure {
    min-height: 2.75rem;
    grid-template-columns: minmax(0, 1fr);
}

.cu-boards-page .cu-lane .cu-csb-card__disclosure .cu-pill,
.cu-boards-page .cu-lane .cu-csb-card__chevron {
    justify-self: start;
}

.cu-boards-page .cu-lane-face {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    min-width: 0;
}

.cu-boards-page .cu-lane-face__mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.7rem;
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
}

.cu-boards-page .cu-lane-face__mark svg {
    width: 1.35rem;
    height: 1.35rem;
}

.cu-boards-page .cu-lane-face__copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.cu-boards-page .cu-lane-face__deal {
    font-size: 0.78rem;
    font-weight: 750;
    color: #0f766e;
    overflow-wrap: anywhere;
}

/* Events — dated timeline. */
.cu-boards-page .cu-evt-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 0 0.2rem;
    padding-left: 1.15rem;
    border-left: 3px solid var(--cu-teal, #0d9488);
    min-width: 0;
}

.cu-boards-page .cu-evt-timeline .cu-csb-card {
    position: relative;
    max-width: none;
    min-width: 0;
}

.cu-boards-page .cu-evt-timeline .cu-csb-card::before {
    content: "";
    position: absolute;
    left: -1.42rem;
    top: 1.15rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--cu-teal, #0d9488);
}

.cu-boards-page .cu-evt-when {
    display: block;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    color: #0f766e;
    overflow-wrap: anywhere;
}

/* Votes — tally board. */
.cu-boards-page .cu-vote-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    min-width: 0;
}

.cu-boards-page .cu-vote-tile {
    min-width: 0;
}

.cu-boards-page .cu-vote-tile__top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.cu-boards-page .cu-vote-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: rgba(13, 148, 136, 0.14);
    color: #0f766e;
}

.cu-boards-page .cu-vote-mark svg {
    width: 1.4rem;
    height: 1.4rem;
}

.cu-boards-page .cu-vote-tile .cu-pill {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 750;
}

.cu-boards-page .cu-vote-tile .cu-board-card__title,
.cu-boards-page .cu-vote-tile .cu-empty {
    overflow-wrap: anywhere;
}

/* Charities — icon grid and proposal board. */
.cu-boards-page .cu-org-grid,
.cu-boards-page .cu-proposal-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    min-width: 0;
}

.cu-boards-page .cu-org-tile,
.cu-boards-page .cu-proposal-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    min-width: 0;
    padding: 0.75rem;
    border-radius: 0.9rem;
}

.cu-boards-page .cu-org-tile__mark,
.cu-boards-page .cu-proposal-tile__mark {
    display: grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.35rem;
    border-radius: 0.8rem;
    background: rgba(13, 148, 136, 0.14);
    color: #0f766e;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.cu-boards-page .cu-org-tile__mark svg,
.cu-boards-page .cu-proposal-tile__mark svg {
    width: 1.4rem;
    height: 1.4rem;
}

.cu-boards-page .cu-org-tile__name,
.cu-boards-page .cu-proposal-tile__name {
    margin: 0;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.cu-boards-page .cu-org-tile__meta,
.cu-boards-page .cu-proposal-tile__meta {
    margin: 0.15rem 0 0;
    overflow-wrap: anywhere;
}

.cu-boards-page .cu-visual-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem;
    min-width: 0;
}

.cu-boards-page .cu-visual-toolbar .cu-send-input,
.cu-boards-page .cu-visual-toolbar .cu-chip-btn,
.cu-boards-page .cu-visual-toolbar .cu-cta {
    min-height: 2.75rem;
    min-width: 0;
}

.cu-boards-page .cu-visual-toolbar .cu-send-input {
    flex: 1 1 10rem;
    max-width: 100%;
}

/* Elections — Later. Gray, dashed, no invented races. */
.cu-boards-page .cu-elections-later {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    text-align: center;
    padding: 1.35rem 1rem 1.45rem;
    border-radius: 1rem;
    border: 2px dashed rgba(245, 240, 230, 0.38);
    background: #3a3834;
    color: #f5f0e6;
}

.cu-boards-page .cu-elections-later__mark {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.95rem;
    border: 1px dashed rgba(245, 240, 230, 0.4);
    color: rgba(245, 240, 230, 0.8);
}

.cu-boards-page .cu-elections-later__mark svg {
    width: 1.7rem;
    height: 1.7rem;
}

.cu-boards-page .cu-elections-later .cu-section-title,
.cu-boards-page .cu-elections-later .cu-empty {
    color: inherit;
}

/* House rules — numbered icon grid. */
.cu-boards-page .cu-rule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.cu-boards-page .cu-rule-grid__cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(245, 240, 230, 0.16);
    background: rgba(20, 20, 20, 0.45);
    color: var(--cu-cream, #f5f0e6);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cu-boards-page .cu-rule-grid__cell:focus-visible {
    outline: 3px solid var(--cu-teal, #0d9488);
    outline-offset: 2px;
}

.cu-boards-page .cu-rule-grid__n {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 2px solid var(--cu-teal-bright, #5eead4);
    color: var(--cu-teal-bright, #5eead4);
    font-weight: 750;
}

.cu-boards-page .cu-rule-grid__gist {
    display: -webkit-box;
    overflow: hidden;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.cu-boards-page .cu-rule-grid__count {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
}

.cu-boards-page .cu-gym-rule--on {
    box-shadow: inset 3px 0 0 var(--cu-teal, #0d9488);
}

.cu-boards-page .cu-term-rows {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.cu-boards-page .cu-term-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(20, 20, 20, 0.4);
    border-left: 3px solid var(--cu-teal, #0d9488);
}

.cu-boards-page .cu-term-row__term {
    color: var(--cu-teal-bright, #5eead4);
}

.cu-boards-page .cu-term-row__meaning {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Crash course + gates — steps, paired rows, choice board. */
.cu-boards-page .cu-crash-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
}

.cu-boards-page .cu-crash-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    min-width: 0;
    padding: 0.75rem;
    border-radius: 0.85rem;
    border-left: 3px solid var(--cu-teal, #0d9488);
    background: rgba(20, 20, 20, 0.4);
}

.cu-boards-page .cu-crash-step__n {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.18);
    color: var(--cu-teal-bright, #5eead4);
    font-weight: 750;
}

.cu-boards-page .cu-crash-step p {
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.cu-boards-page .cu-gate-pair {
    min-width: 0;
}

.cu-boards-page .cu-choice-board .cu-mc-option {
    min-height: 2.75rem;
    align-items: center;
}

.cu-boards-page .cu-gym-gate-step {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

/* Workshop — original and edit as a pair. */
.cu-boards-page .cu-ws-pair {
    min-width: 0;
    border-radius: 0.9rem;
    overflow: hidden;
}

.cu-boards-page .cu-ws-pair .cu-ws-pane {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cu-boards-page .cu-ws-pane-switch button {
    min-height: 2.75rem;
    min-width: 2.75rem;
}

@media (min-width: 640px) {
    .cu-boards-page .cu-lane .cu-csb-board {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    }

    .cu-boards-page .cu-lane .cu-csb-card,
    .cu-boards-page .cu-csb-more {
        max-width: 560px;
    }

    .cu-boards-page .cu-vote-board,
    .cu-boards-page .cu-org-grid,
    .cu-boards-page .cu-proposal-board {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    }

    .cu-boards-page .cu-rule-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cu-boards-page .cu-term-row {
        grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
        align-items: start;
        gap: 0.65rem;
    }

    .cu-boards-page .cu-crash-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cu-boards-page .cu-crash-step {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 719px) {
    .cu-boards-page .cu-ws-pair .cu-ws-pane {
        display: block;
    }
}

.cu-shell[data-theme="light"] .cu-boards-page .cu-community-board--locked .cu-community-board__icon {
    background: rgba(26, 26, 26, 0.06);
    color: #3f3f3f;
}

.cu-shell[data-theme="light"] .cu-boards-page .cu-lane {
    background: #f7f1e4;
    border-color: rgba(26, 26, 26, 0.1);
}

.cu-shell[data-theme="light"] .cu-boards-page .cu-lane__title,
.cu-shell[data-theme="light"] .cu-boards-page .cu-rule-grid__cell,
.cu-shell[data-theme="light"] .cu-boards-page .cu-crash-step,
.cu-shell[data-theme="light"] .cu-boards-page .cu-term-row {
    color: #1a1a1a;
}

.cu-shell[data-theme="light"] .cu-boards-page .cu-rule-grid__cell,
.cu-shell[data-theme="light"] .cu-boards-page .cu-crash-step,
.cu-shell[data-theme="light"] .cu-boards-page .cu-term-row {
    background: #f5f0e6;
    border-color: rgba(26, 26, 26, 0.12);
}

.cu-shell[data-theme="light"] .cu-boards-page .cu-term-row__term {
    color: #0f766e;
}

.cu-shell[data-theme="light"] .cu-boards-page .cu-rule-grid__n,
.cu-shell[data-theme="light"] .cu-boards-page .cu-crash-step__n {
    color: #0f766e;
}

.cu-shell[data-theme="light"] .cu-boards-page .cu-elections-later {
    background: #e6e1d6;
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.32);
}

.cu-shell[data-theme="light"] .cu-boards-page .cu-elections-later__mark {
    color: #3f3f3f;
    border-color: rgba(26, 26, 26, 0.28);
}
