/* Shared staff and volunteer presentation. Inter and the existing brand stay
   in the base templates; these rules unify the application content. */
:root {
    --surface-soft: #f3f6f8;
    --ink-heading: #20344c;
    --focus-ring: #2d5a87;
}
[data-theme="dark"] {
    --surface-soft: #182334;
    --ink-heading: #e2e8f0;
    --focus-ring: #93c5fd;
}
.content-area h1, .content-area .h1 { font-size: 1.75rem; }
.content-area h2, .content-area .h2 { font-size: 1.4rem; }
.content-area h3, .content-area .h3 { font-size: 1.25rem; }
.content-area h4, .content-area .h4 { font-size: 1.125rem; }
.content-area h5, .content-area .h5 { font-size: 1rem; }
.content-area h6, .content-area .h6 { font-size: .9375rem; }
.content-area :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.02em;
    color: var(--ink-heading);
}
.content-area .card { box-shadow: none; }
.content-area .card:hover { box-shadow: none; }
.content-area .card-header {
    padding: 1rem 1.25rem;
    font-size: .9375rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-heading);
}
.content-area .card-header :is(.btn, .badge, a) { letter-spacing: 0; text-transform: none; }
.content-area .card-header.d-flex { flex-wrap: wrap; gap: .5rem; }
.content-area .card-body { padding: 1.25rem; }
.content-area .card-footer { padding: .85rem 1.25rem; background: transparent; border-top-color: var(--border); }
.content-area .form-label { text-transform: none; letter-spacing: 0; font-size: .875rem; }
.content-area .form-control, .content-area .form-select { border-width: 1px; }
.content-area .form-select { padding-right: 2.5rem; }
[data-theme="dark"] .content-area .form-control::placeholder { color: #a7b4c7; opacity: 1; }
[data-theme="dark"] .content-area { --bs-link-color-rgb: 147, 197, 253; --bs-link-hover-color-rgb: 191, 219, 254; }
.content-area .table thead th { text-transform: none; letter-spacing: 0; font-size: .8125rem; border-bottom-width: 1px; }
.content-area .table tbody td { line-height: 1.55; }
.content-area .btn { letter-spacing: 0; }
.content-area .btn-primary { background: var(--primary); }
.content-area .btn-primary:hover { background: var(--primary-light); }
.content-area .btn:is(:hover, :active) { transform: none; }
.content-area .btn-outline-primary, .content-area .btn-outline-success { border-width: 1px; }
.content-area .btn-sm { padding: .4rem .7rem; font-size: .8125rem; }
.content-area .stats-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
.content-area .stats-label { text-transform: none; letter-spacing: 0; }
.content-area .stats-icon { background: #1e3a5f !important; color: #e0b93a; }
.content-area .skill-tag { background: var(--surface-soft); color: var(--ink-heading); border-color: var(--border); border-radius: 6px; }
.content-area .skill-tag:hover { transform: none; background: var(--bg-card); color: var(--ink-heading); }
.content-area :is(.notes-section, .concerns-section) {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.content-area .concerns-section { border-color: var(--danger); }
.content-area .expense-guide { border-left-width: 1px; }
.content-area :is(a, button, input, select, textarea, summary):focus-visible,
.profile-panel:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.content-area .list-group-item { overflow-wrap: anywhere; }
.content-area .list-group-item-action:hover { background: var(--surface-soft); }

/* Modest navigation tightening; preserve labels, branding and touch targets. */
.top-header { gap: 1rem; }
.top-header > div { min-width: 0; }
.top-header > div:first-child { overflow-wrap: anywhere; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .top-header { flex-wrap: wrap; }
    .top-header > div:first-child { flex-basis: 100%; }
    .top-header > div:last-child { flex-wrap: wrap; }
    .top-header .global-search { width: 200px; }
}
.sidebar .nav-link { margin-top: 0; margin-bottom: 0; gap: .65rem; }
.sidebar .nav-section { margin-bottom: .65rem; }
@media (min-width: 992px) {
    .sidebar .nav-link { padding-top: .45rem; padding-bottom: .45rem; }
}
@media (max-width: 991.98px) {
    /* Tighter rows on phones so more of the menu fits (5 Oct 2026); still
       full-width rows, well above the 24px minimum tap size. */
    .sidebar .nav-link { min-height: 32px; }
    .sidebar .nav-section { margin-bottom: .4rem; }
}

/* Profiles */
.profile-page { max-width: 1440px; margin-inline: auto; }
.profile-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.profile-identity { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.profile-identity > :last-child { min-width: 0; flex: 1; }
.profile-identity h1 { overflow-wrap: anywhere; }
.profile-identity > img, .profile-identity > .profile-avatar { width: 80px !important; height: 80px !important; flex-shrink: 0; box-shadow: none !important; }
.profile-avatar .bi { font-size: 2.5rem; }
.profile-hero .badge.fs-6 { font-size: .75rem !important; }
.profile-actions { position: relative; padding-top: 1rem; margin-top: 1.25rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; flex-wrap: wrap; }
.profile-actions .btn { padding: .5rem .8rem; font-size: .8125rem; }
.profile-hero code { color: var(--ink-heading); background: var(--surface-soft); padding: .15rem .35rem; border-radius: 4px; }
.profile-more { position: relative; }
.profile-more summary { list-style: none; }
.profile-more summary::-webkit-details-marker { display: none; }
.profile-more-menu { position: absolute; top: calc(100% + .4rem); left: 0; z-index: 50; width: 240px; padding: .5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-more-menu .btn { display: block; width: 100%; border: 0; text-align: left; color: var(--ink-heading); }
.profile-more-menu .btn:hover { background: var(--surface-soft); }
.profile-more-menu .btn-outline-danger { color: var(--danger); }
.profile-more-menu form { display: block !important; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; padding-bottom: .5rem; }
.profile-tab { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem .85rem; border: 1px solid transparent; border-radius: 8px; color: var(--text-secondary); font-size: .875rem; font-weight: 500; text-decoration: none; min-height: 44px; }
.profile-tab:hover { color: var(--ink-heading); background: var(--surface-soft); }
.profile-tab[aria-selected="true"] { color: #fff; background: #1e3a5f; border-color: #1e3a5f; font-weight: 600; }
.profile-tab[aria-selected="true"] .bi { color: #e0b93a; }
[data-theme="dark"] .profile-tab[aria-selected="true"] { border-color: #6c8aaa; }
.profile-panel { min-width: 0; scroll-margin-top: 100px; }
.profile-panel[hidden], [data-profile-save][hidden] { display: none !important; }
.profile-panel + .profile-panel { margin-top: 1.5rem; }
.profile-enhanced .profile-panel { margin-top: 0; }
.profile-panel .card { margin-top: 0 !important; margin-bottom: 1.25rem !important; }
.profile-panel :is(.notes-section, .concerns-section) { margin: 0 0 1.25rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.profile-grid > * { min-width: 0; }
.profile-grid .card:last-child { margin-bottom: 0 !important; }
.profile-panel .card-header { background: transparent !important; color: var(--ink-heading) !important; }
.profile-panel .list-group-item { padding: 1rem 1.25rem; }
.profile-panel .list-group-item > .d-flex { flex-wrap: wrap; gap: .5rem; }
.profile-panel .row .d-flex.justify-content-between { flex-wrap: wrap; gap: .5rem; }
.profile-panel .form-label.text-uppercase { text-transform: none !important; }
.profile-panel .border-info, .profile-panel .border-secondary { border-color: var(--border) !important; }
.profile-panel .task-priority-high, .profile-panel .task-priority-medium, .profile-panel .task-priority-low { border-left-width: 0; }
.profile-panel #documents { scroll-margin-top: 100px; }
.profile-empty { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-secondary); }
.profile-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem; position: sticky; bottom: 0; z-index: 20; background: var(--bg-card); padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); margin: 1.25rem 0; box-shadow: 0 -4px 16px #00000005; }
.profile-save .save-hint { margin-right: auto; color: var(--text-secondary); font-size: .8125rem; }
.profile-photo-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.profile-photo-editor > :last-child { flex: 1; min-width: 200px; }
.profile-photo-editor img, .profile-photo-editor .profile-avatar { width: 88px !important; height: 88px !important; }
.profile-photo-editor .form-check { display: flex; align-items: center; gap: .5rem; padding: 0; }
.profile-photo-editor .form-check-input { float: none; margin: 0; }
.profile-page .card-body a { overflow-wrap: anywhere; }
.profile-kicker { font-size: .8125rem; color: var(--text-secondary); margin-bottom: .35rem; }
.profile-summary { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: var(--text-secondary); }
.profile-help { max-width: 65ch; }

/* Skills: a browsable index with the complete team one disclosure away. */
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.directory-heading h1 { margin-bottom: .4rem; }
.directory-heading p { margin: 0; color: var(--text-secondary); }
.directory-total { font-size: .875rem; color: var(--text-secondary); }
.skills-setting { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.skills-setting > div { flex: 1 1 320px; }
.skills-setting form { flex: 0 1 330px; }
.skills-setting .form-check-label { line-height: 1.35; }
.directory-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.25rem; }
.directory-tools[hidden] { display: none; }
.directory-search { flex: 1; min-width: 200px; max-width: 480px; }
.directory-tools label { font-size: .8125rem; }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.skill-entry { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 100px; }
.skill-entry summary { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; cursor: pointer; list-style: none; }
.skill-entry summary::-webkit-details-marker { display: none; }
.skill-entry summary::after { content: '+'; font-size: 1.25rem; color: var(--text-secondary); margin-left: auto; }
.skill-entry[open] summary::after { content: '−'; }
.skill-entry summary:hover { background: var(--surface-soft); }
.skill-entry[open] summary { border-bottom: 1px solid var(--border); }
.skill-entry-title { font-weight: 600; color: var(--ink-heading); font-size: .9375rem; overflow-wrap: anywhere; }
.skill-entry-meta { font-size: .8125rem; color: var(--text-secondary); margin-top: .2rem; }
.skill-entry-count { background: var(--surface-soft); color: var(--ink-heading); border-radius: 8px; width: 2.5rem; height: 2.5rem; flex-shrink: 0; display: grid; place-items: center; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.skill-entry-body { padding: .5rem 1.25rem 1.25rem; }
.skill-entry .list-group-item { gap: .75rem; background: transparent; }
.skill-member { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.skill-member-avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--surface-soft); object-fit: cover; display: grid; place-items: center; font-size: .75rem; color: var(--text-secondary); }
.skill-entry[hidden] { display: none; }
.directory-no-results { padding: 2rem; text-align: center; color: var(--text-secondary); }
@media (max-width: 767.98px) {
    .content-area .card-header, .content-area .card-body, .content-area .card-footer { padding: 1rem; }
    .content-area .form-control, .content-area .form-select { font-size: 1rem; }
    .profile-hero { padding: 1rem; }
    .profile-identity { gap: .85rem; align-items: flex-start; }
    .profile-identity > img, .profile-identity > .profile-avatar { width: 56px !important; height: 56px !important; }
    .profile-avatar .bi { font-size: 2rem; }
    .profile-identity h1 { font-size: 1.35rem; }
    .profile-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
    .profile-tab { padding: .6rem .5rem; justify-content: flex-start; font-size: .8125rem; }
    .profile-grid, .directory-grid { grid-template-columns: minmax(0, 1fr); }
    .profile-grid { gap: 0; }
    .profile-grid .card:last-child { margin-bottom: 1.25rem !important; }
    .profile-actions .btn { min-height: 40px; }
    .profile-more { position: static; }
    .profile-more-menu { left: 0; right: 0; width: 100%; }
    .profile-save .save-hint { flex-basis: 100%; }
    .profile-save .btn { flex: 1; }
    .directory-tools { padding: 1rem; }
    .directory-search { max-width: none; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .content-area *, .sidebar .nav-link { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .wrapper:has(.profile-page) :is(.sidebar, .top-header, .mobile-header) { display: none !important; }
    .wrapper:has(.profile-page) .main-content { margin: 0 !important; }
    .profile-tabs, .profile-actions, .profile-save { display: none !important; }
    .profile-panel[hidden] { display: block !important; }
    .profile-panel + .profile-panel { margin-top: 1rem; }
    .profile-grid { display: block; }
    .profile-panel .card { break-inside: avoid; }
}

/* Clearly defined section controls, with a separate surface from the page. */
.profile-tabs { gap: .5rem; padding: .65rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); }
.profile-tab { background: var(--bg-card); border-color: #c7d2df; color: var(--ink-heading); cursor: pointer; box-shadow: 0 1px 2px #1e3a5f08; }
.profile-tab:hover { background: var(--bg-card); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
[data-theme="dark"] .profile-tab { border-color: #64748b; }
.profile-panel .card-body:not(.p-0) .list-group-item { padding-inline: 0; }
.profile-panel .card-body.p-0 .list-group-item { padding: 1rem 1.25rem; }
.profile-panel .list-group-item :is(.flex-grow-1, .d-flex > div) { min-width: 0; }
.profile-panel .list-group-item .badge { white-space: normal; text-align: left; line-height: 1.4; }
.profile-panel .list-group-item img, .profile-panel .list-group-item .rounded-circle { flex-shrink: 0; }

/* Editing uses a stable section index and one unbroken form across sections. */
.editor-page { max-width: 1240px; }
.editor-page > div > h1 { margin-bottom: .5rem !important; }
.editor-intro { color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 75ch; font-size: .9375rem; }
.editor-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.editor-layout > * { min-width: 0; }
.editor-layout > .profile-tabs { position: sticky; top: calc(var(--editor-header-height, 90px) + 1rem); max-height: calc(100dvh - var(--editor-header-height, 90px) - 2rem); overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; margin: 0; }
.editor-layout > .profile-tabs .profile-tab { justify-content: flex-start; }
.editor-panel .card-header h2 { font-size: 1.125rem; margin: 0 0 .3rem; }
.editor-panel .card-header p { margin: 0; font-size: .875rem; font-weight: 400; color: var(--text-secondary); line-height: 1.6; }
.editor-form { min-width: 0; }
.editor-form .profile-panel .card-body { padding: 1.5rem; }
.editor-form .form-control, .editor-form .form-select { min-height: 44px; }
.editor-form textarea.form-control { min-height: 90px; }
.editor-form .form-label { margin-bottom: .5rem; color: var(--ink-heading); }
.editor-form .form-text { font-size: .8125rem; line-height: 1.6; max-width: 75ch; margin-top: .5rem; }
.editor-form .mb-3 { margin-bottom: 1.35rem !important; }
.editor-form .card-body > :last-child { margin-bottom: 0 !important; }
.editor-form .profile-save { margin-top: 1rem; padding: 1rem 1.25rem; }
.editor-form .profile-save > a { margin-right: auto; }
.editor-form .card .card { border-color: var(--border) !important; border-radius: 10px; }
.editor-form .form-check.form-switch { padding-left: 2.75em; }
.editor-form .form-check.form-switch .form-check-input { margin-left: -2.75em; }
.editor-form .form-check-label { line-height: 1.5; }
.editor-form .volunteer-form-days { display: flex; flex-wrap: wrap; gap: .35rem; }
.editor-form .volunteer-form-days .btn { border-radius: 6px !important; margin: 0; flex: 1; min-width: 45px; }
.editor-form .volunteer-select-card { cursor: pointer; border-width: 1px !important; }
.editor-form .volunteer-select-card .card-body { padding: 1rem !important; }
.editor-form .volunteer-select-card img, .editor-form .volunteer-select-card .rounded-circle { width: 36px !important; height: 36px !important; flex-shrink: 0; }
.editor-form .volunteer-select-card .fw-bold { font-weight: 600 !important; }
.editor-form #volunteerGrid { max-height: 520px; overflow-y: auto; padding: .25rem; margin: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.editor-form #volunteerGrid > .col { padding: .4rem; margin-top: 0; }
.editor-form .task-volunteer-extras { margin-top: .65rem; }
.editor-form .task-volunteer-extras summary { font-size: .8125rem; color: var(--text-secondary); cursor: pointer; }
.editor-form .task-volunteer-extras summary:hover { color: var(--ink-heading); }
.staff-contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.staff-contact-grid .rounded-circle { width: 88px !important; height: 88px !important; margin-inline: auto; }
.staff-contact-grid .display-1 { font-size: 2.75rem; }
.staff-contact-grid input[type="file"] { font-size: .8125rem; }
.editor-footnote .card { background: transparent; border: 0; }
.editor-footnote .card-header { display: none; }
.editor-footnote .card-body { padding: .25rem; }
.editor-footnote p { display: inline; }
.task-hero h1 { overflow-wrap: anywhere; }
.task-hero .breadcrumb { font-size: .8125rem; margin-bottom: .75rem; }
.task-hero .breadcrumb-item.active { display: none; }
.task-hero .badge.fs-6, .task-page .badge.fs-6 { font-size: .8125rem !important; white-space: normal; text-align: left; line-height: 1.5; }
.task-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.task-facts > div { min-width: 0; margin-bottom: 0 !important; overflow-wrap: anywhere; font-size: .875rem; }
.task-facts label { margin-bottom: .3rem; }
.task-page .card-body { overflow-wrap: anywhere; }
.task-page .profile-panel .d-flex.justify-content-between { flex-wrap: wrap; gap: .75rem; }
.task-page .profile-panel .d-flex > div { min-width: 0; }
.task-page .profile-panel .rounded-circle { flex-shrink: 0; }
.task-page .profile-panel .card-header { gap: .75rem; }
[data-theme="dark"] .task-page [style*="background:#f8fafc"] { background: var(--surface-soft) !important; }
.task-directory .filter-bar { background: var(--bg-card); box-shadow: none; border: 1px solid var(--border); }
.task-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.task-filter-grid > div { width: auto; }
.task-filter-grid label { display: block; margin-bottom: .4rem; font-size: .8125rem; color: var(--text-secondary); }
.task-directory .table tbody td { padding: 1.1rem 1.25rem; }
.task-directory .table tbody td:first-child { min-width: 260px; }
.task-directory .table .badge.bg-info { background: var(--surface-soft) !important; color: var(--text-secondary) !important; }
.task-directory .mobile-table-card { border-left-width: 1px; padding: 1.25rem; }
.task-directory .mobile-card-header { gap: .75rem; flex-wrap: wrap; }
.task-directory .task-priority-high, .task-directory .task-priority-medium, .task-directory .task-priority-low { border-left: 0; }
@media (max-width: 1199.98px) {
    .editor-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 1rem; }
    .staff-contact-grid { grid-template-columns: minmax(0, 1fr); }
    .editor-form #volunteerGrid { grid-template-columns: minmax(0, 1fr); }
    .editor-form #volunteerGrid > .col { width: 100%; }
    .task-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .profile-tabs { gap: .5rem; padding: .5rem; }
    .profile-tab { padding: .7rem .6rem; }
    .profile-panel .card-body.p-0 .list-group-item { padding: 1rem; }
    .editor-layout { display: block; }
    .editor-layout > .profile-tabs { position: static; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.25rem; }
    .editor-form .profile-panel .card-body { padding: 1rem; }
    .editor-form .profile-save { padding: .75rem; }
    .editor-form .profile-save .btn { min-height: 44px; }
    .editor-form .profile-save > div { flex: 1; }
    .task-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .task-filter-grid > :first-of-type { grid-column: 1 / -1; }
    .task-page .profile-panel .list-group-item > .d-flex { gap: .75rem; }
    .task-facts { gap: 1rem; }
}
@media print {
    .editor-layout { display: block; }
    .editor-layout > .profile-tabs { display: none; }
}
.editor-form .volunteer-select-card > .card-body { padding-left: 2.5rem !important; position: relative; }
.editor-form .volunteer-selection-checkbox { position: absolute; top: 1.1rem; left: .85rem; cursor: pointer; }
.editor-form .volunteer-select-card:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.editor-form .volunteer-select-card .d-flex.justify-content-between { flex-wrap: wrap; gap: .5rem; }
.task-activity-callout p { font-size: .875rem; }
.profile-tab[aria-selected="true"], .profile-tab[aria-selected="true"]:hover { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
[data-theme="dark"] .profile-tab[aria-selected="true"] { border-color: #819bb7; }
.content-area .task-hero h1, .content-area .editor-page h1 { font-size: 1.5rem; }

/* Allow real names, document titles and prose to shrink with their containers.
   Explicitly truncated previews and horizontally scrollable tables keep their
   existing behaviour. Never hide overflow to disguise an oversized card. */
.min-width-0 { min-width: 0 !important; }
.content-area :is(.flex-grow-1, .card, .card-body, .list-group-item) { min-width: 0; }
.content-area :is(h1, h2, h3, h4, h5, h6, .card-header, p, .form-label, .form-check-label, .form-text, .alert) { overflow-wrap: anywhere; }
.content-area .card-body :is(.small, small) { overflow-wrap: anywhere; }
.content-area .policy-card .policy-title { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.content-area .policy-card .card-body { display: flex; flex-direction: column; }
.content-area .policy-card .card-body > .d-flex:last-child { margin-top: auto; }
.content-area .policy-card .flex-grow-1 { overflow-wrap: anywhere; }
.content-area .policy-card .btn { white-space: normal; }
.content-area .role-card-top h2 { overflow-wrap: anywhere; }
.top-header .page-title { overflow-wrap: anywhere; }
/* Keep the Tasks table's horizontal scrolling inside its own viewport. */
.task-directory > .card { overflow: hidden; }
