/* YIF Board Site - Centralized Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand */
    --primary-color: #2d5a3d;
    --primary-dark: #1f3f2b;
    --secondary-color: #4a7c59;
    --accent-color: #7d8f3a;
    /* Typography */
    --text-dark: #1f2933;
    --text-light: #5a6570;
    --text-muted: #6b7785;
    /* Surfaces */
    --bg-light: #f4f6f5;
    --bg-white: #ffffff;
    --surface-muted: #eef2ef;
    --border-color: #d4ddd8;
    --border-subtle: #e6ece8;
    /* Elevation */
    --shadow: 0 1px 3px rgba(31, 41, 51, 0.08), 0 1px 2px rgba(31, 41, 51, 0.04);
    --shadow-lg: 0 6px 20px rgba(31, 41, 51, 0.1);
    --shadow-card: 0 1px 2px rgba(31, 41, 51, 0.06);
    --focus-ring: 0 0 0 3px rgba(45, 90, 61, 0.2);
    /* Accordion hierarchy */
    --accordion-primary-bg: var(--primary-color);
    --accordion-primary-text: #ffffff;
    --accordion-section-bg: var(--surface-muted);
    --accordion-section-text: var(--primary-color);
    --accordion-nested-bg: var(--bg-white);
    --accordion-nested-border: var(--border-subtle);
}

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--bg-light);
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10001;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    background: var(--primary-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: none;
    box-shadow: var(--focus-ring);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Header Styles */
.header {
    background: white;
    color: var(--text-dark);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.header-session-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
    padding-bottom: 0.55rem;
    margin-bottom: 0.55rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.header-session-row .header-search {
    flex: 1 1 220px;
    min-width: min(200px, 100%);
    max-width: min(480px, 100%);
    margin-right: auto;
}

.header-nav-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    width: 100%;
    padding-top: 0.15rem;
}

.header-nav-row .header-title {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
}

.header-nav-row .header-logo {
    width: auto;
    height: 72px;
    max-width: min(200px, 42vw);
    margin-bottom: 0;
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
}

.header-nav-row .header-logo--full {
    display: block;
}

/* Logo image includes org name — no duplicate text beside it */
.header-brand {
    display: none;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.header-logo-link:focus {
    outline: none;
}

.header-logo-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 6px;
}

.header-brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-dark);
}

.header-brand-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.header-nav-row .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--bg-light);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-mobile-toggle-bar {
    display: block;
    height: 2px;
    width: 22px;
    margin: 0 auto;
    background: var(--text-dark);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-mobile-toggle.is-open .nav-mobile-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.is-open .nav-mobile-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.is-open .nav-mobile-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1098;
    background: rgba(0, 0, 0, 0.35);
}

body.nav-drawer-open .nav-drawer-backdrop {
    display: block;
}

/* Drawer + toolbar must stack above the dimmed backdrop (backdrop is first child of .header). */
body.nav-drawer-open .header {
    z-index: 1102;
}

@media (max-width: 968px) {
    body.nav-drawer-open .header-content {
        position: relative;
        z-index: 1101;
    }
}

.header-session-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 0.85rem;
    flex-shrink: 0;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-logo-link:hover .header-logo {
    opacity: 0.92;
}

.header-logo {
    height: 100px;
    width: auto;
    margin-bottom: 0.25rem;
    object-fit: contain;
    display: block;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.header p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Header Search Bar Styles */
.header-search {
    position: relative;
    margin: 0;
    flex: 0 0 auto;
    max-width: 100%;
}

.search-bar-container {
    position: relative;
    width: 100%;
}

.search-bar-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.search-bar-input {
    width: 100%;
    padding: 0.45rem 1rem;
    padding-left: 2.35rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: #f8f9fa;
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.search-bar-input::placeholder {
    color: var(--text-light);
}

.search-bar-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--focus-ring);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.is-active {
    background: var(--bg-light);
}

.search-result-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.search-result-category {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary-color);
    background: rgba(34, 139, 34, 0.1);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-top: 0.1rem;
}

.search-result-item-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.search-result-item-path {
    font-size: 0.8rem;
    color: var(--text-light);
}

.search-result-item-snippet {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.search-result-item-snippet .highlight {
    background: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    font-weight: 500;
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::before,
.nav-menu > li > a.active::before {
    width: 80%;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
}

.nav-menu > li > a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu > li > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-dark);
    margin-left: 0.3rem;
    transition: transform 0.3s;
    opacity: 0.6;
}

.nav-menu > li:first-child > a::after {
    display: none;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1000;
    padding: 0.5rem 0;
}

/* Desktop: hover opens submenus (avoid sticky open on touch — see mobile rules below) */
@media (hover: hover) and (pointer: fine) and (min-width: 969px) {
    .nav-menu > li:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-settings:hover .nav-settings-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.header-session-toolbar .nav-settings-submenu {
    left: auto;
    right: 0;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}

.submenu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.5rem;
}

.submenu a:hover::before {
    width: 100%;
}

.submenu-header {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.submenu-documents .submenu-header:not(:first-child) {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    margin-bottom: 0;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.container-with-sidebar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
    margin-bottom: 2rem;
}

.container-with-sidebar .sidebar {
    align-self: start;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.container-with-sidebar .sidebar::-webkit-scrollbar {
    width: 6px;
}

.container-with-sidebar .sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

body.has-pathway-return .container-with-sidebar .sidebar {
    top: 7.5rem;
    max-height: calc(100vh - 8.75rem);
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: block;
    padding: 0.6rem 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-links a.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.sidebar--zones .nav-links li {
    margin-bottom: 0.35rem;
}

.sidebar--zones .nav-links a {
    font-size: 0.875rem;
    padding: 0.5rem 0.65rem;
}

/* Main Content */
.main-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 4rem 2rem;
    background-image: url('../images/common/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.85) 0%, rgba(74, 124, 89, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1,
.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: none;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-shadow: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.hero-button:focus {
    outline: none;
}

.hero-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.hero-button--primary,
.hero-button.hero-button--primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.85rem 2.25rem;
    font-size: 1.05rem;
}

.hero-button--primary:hover,
.hero-button.hero-button--primary:hover {
    background: white;
    transform: translateY(-1px);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    width: 100%;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-meta-link {
    background: none;
    border: none;
    padding: 0.15rem 0.1rem;
    font: inherit;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 0.2em;
    cursor: pointer;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.hero-meta-link:focus {
    outline: none;
}

.hero-meta-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    border-radius: 2px;
}

.hero-meta-link:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.9);
}

.hero-meta-sep {
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
}

.home-help-modal-host {
    z-index: 12000;
}

body.home-help-modal-open {
    overflow: hidden;
}

.home-start-modal {
    max-width: min(28rem, 96vw);
}

@media (min-width: 520px) {
    .home-start-modal {
        max-width: min(32rem, 96vw);
    }
}

.home-start-panel {
    padding: 1.35rem 1.35rem 1.25rem;
    border-radius: 14px;
}

.home-start-head {
    margin: 0 0 1.15rem;
    padding-right: 1.75rem;
}

.home-start-head h2 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--primary-color);
    font-weight: 700;
}

.home-start-lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-light);
}

.home-start-basics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.home-start-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-light);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.home-start-tile:hover {
    border-color: rgba(44, 85, 48, 0.35);
    background: #eef5ef;
    transform: translateY(-1px);
    text-decoration: none;
}

.home-start-tile--primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.1) 0%, rgba(74, 124, 89, 0.08) 100%);
    border-color: rgba(44, 85, 48, 0.28);
}

.home-start-tile--primary:hover {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.14) 0%, rgba(74, 124, 89, 0.1) 100%);
    border-color: var(--primary-color);
}

.home-start-tile--wide {
    grid-column: 1 / -1;
}

.home-start-tile-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.25;
}

.home-start-tile-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-light);
}

.home-start-details {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    margin-bottom: 0.55rem;
    background: var(--bg-white);
}

.home-start-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    user-select: none;
}

.home-start-details > summary::-webkit-details-marker {
    display: none;
}

.home-start-details > summary::after {
    content: '+';
    float: right;
    font-weight: 400;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1;
}

.home-start-details[open] > summary::after {
    content: '−';
}

.home-start-details-body {
    padding: 0 0.85rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-dark);
}

.home-start-details--tip .home-start-details-body p {
    margin: 0;
}

.home-start-sharepoint {
    margin: 0.65rem 0 0;
}

.home-start-sharepoint a {
    color: var(--primary-color);
    font-weight: 600;
}

.home-start-details .home-onboarding-lead {
    margin: 0 0 0.75rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.home-start-details .home-onboarding-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 480px) {
    .home-start-details .home-onboarding-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

.home-start-details .home-onboarding-block h3 {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.home-start-details .home-onboarding-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    line-height: 1.45;
}

.home-start-details .home-onboarding-list li {
    margin-bottom: 0.3rem;
}

.home-start-details .home-onboarding-list a {
    color: var(--primary-color);
    font-weight: 600;
}

.home-start-foot {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.home-start-dismiss {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.home-start-dismiss:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.home-start-dismiss:focus {
    outline: none;
}

.home-start-dismiss:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.home-onboarding-foot {
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

.home-onboarding-foot-sep {
    margin: 0 0.35rem;
    color: var(--text-light);
}

.home-help-inline-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.home-help-inline-link:hover {
    color: var(--primary-dark, #1a4d2e);
}

.home-map-teaser {
    margin: 0.5rem auto 2rem;
    max-width: 40rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

.home-map-teaser a {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 0.35rem;
}

.home-map-teaser a:hover {
    text-decoration: underline;
}

.portal-map-section {
    margin-bottom: 2.5rem;
}

.portal-map-section h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: var(--primary-color);
}

.portal-map-section > p {
    margin: 0 0 1rem;
    color: var(--text-light);
    max-width: 48rem;
}

.portal-map-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.portal-map-list a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.portal-map-list a:hover {
    text-decoration: underline;
}

.portal-map-list .portal-map-note {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.footer-contact-email {
    margin-top: 0.65rem;
}

.footer-contact-email a {
    color: #fff;
    font-weight: 600;
}

.footer-tax-summary {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.85rem;
    opacity: 0.9;
    text-align: center;
}

/* Collapsible page guides (Official Documents, etc.) */
.page-guides {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.page-guide {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-white);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-guide__summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--primary-dark);
}

.page-guide__summary::-webkit-details-marker {
    display: none;
}

.page-guide__summary::after {
    content: '';
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    margin-left: auto;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.page-guide[open] > .page-guide__summary::after {
    transform: rotate(-135deg);
}

.page-guide__icon {
    display: flex;
    flex-shrink: 0;
    color: var(--primary-color);
}

.page-guide__title {
    flex: 1;
    min-width: 0;
}

.page-guide__body {
    padding: 0 1rem 1rem 2.35rem;
}

.page-guide__body > :first-child {
    margin-top: 0;
}

.page-guide__body p {
    margin: 0.5rem 0 0;
}

.page-guide__note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.page-guide__note a {
    color: var(--primary-color);
    word-break: break-all;
}

.guide-which-tool p {
    margin: 0.5rem 0 0;
}

.guide-which-tool strong:first-child {
    display: block;
}

.hero-button-outline {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.hero-button-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.9);
    color: white;
    transform: translateY(-1px);
}

/* Cards */
.card-grid {
    max-width: 1200px;
    margin: 2.5rem auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 2rem;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Home — About (collapsible) */
.home-about-details {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.home-about-details > summary {
    list-style: none;
    cursor: pointer;
}

.home-about-details > summary::-webkit-details-marker {
    display: none;
}

.home-about-details > summary::after {
    content: ' ▾';
    font-size: 0.85em;
    color: var(--text-light);
    font-weight: 400;
}

.home-about-details[open] > summary::after {
    content: ' ▴';
}

.home-about-details > .info-section {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding: 0;
}

/* Info Section */
.info-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.info-section-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.mission-section {
    padding: 0;
}

.mission-title {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mission-intro {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.mission-content {
    margin-bottom: 2.5rem;
}

.mission-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.mission-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.mission-list li:last-child {
    margin-bottom: 0;
}

.mission-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.mission-footer p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.mission-footer p:last-child {
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    position: relative;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
}

.page-header.with-image {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    color: white;
    border: none;
    position: relative;
}

.page-header.with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.85) 0%, rgba(74, 124, 89, 0.85) 100%);
    border-radius: 12px;
    z-index: 1;
}

.page-header.with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 85, 48, 0.4);
    border-radius: 12px;
    z-index: 1;
}

.page-header.with-image > * {
    position: relative;
    z-index: 2;
}

.page-header.with-image h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header.with-image .subtitle {
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-header-icon {
    font-size: 3.5rem;
}

.page-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header .subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-light);
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.4rem;
    color: var(--text-light);
    font-weight: 400;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
    color: var(--text-dark);
    font-weight: 500;
}

/* Info box (notes / callouts) */
.info-box {
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.info-box strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Sections */
.section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-muted);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-color);
    scroll-margin-top: 100px;
}

.section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.section p,
.section ul {
    color: var(--text-dark);
    line-height: 1.8;
}

.section ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.section li {
    margin-bottom: 0.5rem;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.document-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.document-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.document-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.document-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.document-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.resource-meta-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    line-height: 1.3;
}

.resource-meta-tag--scope {
    background: #e8f0ea;
    color: var(--primary-dark);
    border-color: #c5d6ca;
}

.resource-meta-tag--finance {
    background: #fef3e2;
    color: #7a5200;
    border-color: #ecd9b8;
}

.resource-meta-tag--members {
    background: #e8eef8;
    color: #1a4a7a;
    border-color: #c5d4e8;
}

.resource-meta-tag--board {
    background: #f0ebe8;
    color: #4a3828;
    border-color: #ddd0c5;
}

.resources-board-callout {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.resources-board-callout h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--primary-color);
}

.resources-board-callout ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.resources-board-callout a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Document Accordion Styles - Preserving Card Attributes */
.document-accordion {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}

.document-accordion:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.document-accordion-header {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    padding: 1.5rem !important;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    justify-content: flex-start !important;
}

.document-accordion-header:hover {
    background: var(--bg-light) !important;
}

.document-accordion-header .document-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.document-accordion-header .document-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.document-accordion-header .document-info {
    flex: 1;
    min-width: 0;
}

.document-accordion-header::after {
    content: '▼' !important;
    color: var(--primary-color) !important;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.7;
    font-size: 0.9rem;
    transition: transform 0.3s, opacity 0.3s;
}

.document-accordion-header:hover::after {
    opacity: 1;
}

.document-accordion-header.active::after {
    color: var(--primary-color) !important;
    opacity: 1;
    transform: rotate(180deg);
}

.document-accordion .accordion-content {
    background: var(--bg-white) !important;
}

.document-accordion .accordion-content.open {
    max-height: 10000px !important;
    overflow: visible !important;
}

.document-accordion .accordion-body {
    padding: 1.5rem;
    padding-top: 1rem;
}

/* Official Documents — zones aligned with nav (Working files → Governance → Tax → Mexican NPO) */
.documents-zone {
    margin-bottom: 2.75rem;
}

.documents-zone-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    letter-spacing: -0.02em;
}

.documents-zone-intro {
    margin: 0 0 1.25rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.documents-zone-body {
    margin-top: 0.5rem;
}

.documents-zone .documents-section.accordion:last-child {
    margin-bottom: 0;
}

.documents-zone > .documents-zone-accordion.documents-section.accordion {
    margin-bottom: 0;
}

.documents-zone-accordion > .accordion-content > .accordion-body {
    padding: 1.5rem 1.5rem 1.25rem;
}

.documents-zone-accordion .documents-zone-intro {
    margin-top: 0;
}

.documents-zone-accordion .documents-section.accordion {
    margin-bottom: 1rem;
}

.documents-zone-accordion .documents-section.accordion:last-child {
    margin-bottom: 0;
}

/* Tax nested accordions — tier 3 (light, no gradient) */
.accordion-header.tax-jurisdiction-header,
.accordion-header.tax-type-header {
    background: var(--accordion-nested-bg) !important;
    color: var(--accordion-section-text) !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--accordion-nested-border);
}

.accordion-header.tax-type-header {
    background: var(--surface-muted) !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
    color: var(--text-dark) !important;
}

.accordion-header.tax-jurisdiction-header::after,
.accordion-header.tax-type-header::after {
    color: var(--secondary-color);
    opacity: 0.85;
}

.accordion-header.tax-jurisdiction-header h4,
.accordion-header.tax-jurisdiction-header .tax-jurisdiction-title,
.accordion-header.tax-type-header h5 {
    color: inherit !important;
}

/* Section Accordion Styles - Categories as Accordions */
.documents-section.accordion {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.section-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--accordion-section-bg) !important;
    color: var(--accordion-section-text) !important;
    padding: 1.1rem 1.35rem !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
    border-bottom: 1px solid var(--border-subtle);
}

.section-accordion-header:hover {
    background: #e4ebe6 !important;
}

.section-accordion-header .section-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.section-accordion-header .section-icon {
    font-size: 1.5rem;
    margin: 0;
}

.section-accordion-header h3 {
    color: var(--primary-dark) !important;
    margin: 0 !important;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-accordion-header::after {
    content: '▼' !important;
    font-size: 0.75rem;
    color: var(--secondary-color) !important;
    transition: transform 0.25s ease;
    margin-left: 1rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.section-accordion-header.active::after {
    transform: rotate(180deg);
}

.documents-section.accordion .accordion-content {
    background: var(--bg-white);
}

.documents-section.accordion .accordion-content.open {
    max-height: 10000px;
    overflow: visible;
}

.documents-section.accordion .accordion-body {
    padding: 2rem;
}

/* Tax documents: jurisdiction → type nested accordions */
.tax-jurisdiction-accordion {
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.tax-jurisdiction-header {
    padding: 1rem 1.25rem;
    background: var(--surface-muted);
    cursor: pointer;
}

.tax-jurisdiction-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tax-jurisdiction-body {
    padding: 1rem 1.25rem 0.5rem;
}

.tax-type-accordion {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-white);
}

.tax-type-header {
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    cursor: pointer;
}

.tax-type-header h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tax-type-accordion > .accordion-body {
    padding: 0.75rem 1rem 1rem;
}

.tax-year-note {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0 0 0.75rem;
}

.tax-year-heading {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tax-admin-label {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-light);
}

.doc-section-empty {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

.document-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.document-info {
    flex: 1;
}

.document-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.document-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.15rem;
}

.document-upload-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.page-header-text {
    flex: 1;
    min-width: 0;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
}

.doc-browser-open,
.doc-upload-open {
    flex-shrink: 0;
    white-space: nowrap;
}

.doc-upload-modal-content {
    max-width: 32rem;
}

.doc-browser-modal .modal-content {
    max-width: min(56rem, 96vw);
    width: min(56rem, 96vw);
    max-height: min(90vh, 52rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.doc-browser-modal .modal-body.doc-browser-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.doc-browser-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doc-browser-intro {
    margin: 0;
    padding: 0.65rem 0.85rem;
    max-width: 100%;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.doc-browser-intro-lead {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.doc-browser-intro-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-light);
}

.doc-browser-intro-path {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.3rem;
}

.doc-browser-intro-path span:not(.doc-browser-intro-sep) {
    color: var(--secondary-color);
    font-weight: 500;
}

.doc-browser-intro-sep {
    color: var(--accent-color);
    font-size: 0.7rem;
    line-height: 1;
    user-select: none;
}

.doc-browser-intro-sharepoint::before {
    content: "·";
    margin-right: 0.45rem;
    color: var(--border-color);
    font-weight: 700;
}

.doc-browser-intro-sharepoint a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.doc-browser-intro-sharepoint a:hover {
    text-decoration: underline;
}

.doc-browser-modal #doc-browser-error:not([hidden]) {
    display: block;
}

.doc-browser-export {
    margin: 0;
    padding: 0.65rem 0.85rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-browser-export-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.75rem;
}

.doc-browser-export-field {
    flex: 1 1 12rem;
    min-width: 0;
}

.doc-browser-export-preset {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg-white);
    color: var(--text-dark);
}

.doc-browser-export-options {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.doc-browser-export-custom-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-light);
}

.doc-browser-export-custom-hint:not([hidden]) {
    display: block;
}

.doc-browser-export-status {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--secondary-color);
}

.doc-browser-export-status:not([hidden]) {
    display: block;
}

.doc-browser-export-approval {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.doc-browser-export-approval:not([hidden]) {
    display: flex;
}

.doc-browser-export-reason,
.doc-browser-export-password {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
}

.doc-browser-export-reason {
    resize: vertical;
    min-height: 4.5rem;
}

#doc-browser-export-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

#doc-browser-export-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.doc-browser-tree-item.has-export-check {
    grid-template-columns: 1.25rem auto minmax(0, 1fr);
}

.doc-browser-tree-export-check {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.doc-browser-tree-export-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
}

.doc-browser-tree-export-spacer {
    width: 1rem;
}

.doc-browser-search-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.35rem;
}

.doc-browser-search {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
}

.doc-browser-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1rem;
    height: min(52vh, 32rem);
    min-height: 18rem;
    flex: 0 0 auto;
}

.doc-browser-tree-panel,
.doc-browser-detail-panel {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    overflow: auto;
    padding: 0.75rem;
    min-height: 0;
}

.doc-browser-detail-panel {
    background: var(--bg-white);
}

.doc-browser-placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.doc-browser-tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-browser-tree-item {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.15rem;
    padding-left: calc(var(--depth, 0) * 0.85rem);
}

.doc-browser-tree-toggle,
.doc-browser-tree-toggle-spacer {
    width: 1.25rem;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-light);
}

.doc-browser-tree-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
}

.doc-browser-tree-label {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.doc-browser-tree-item.is-selected .doc-browser-tree-label {
    background: rgba(44, 85, 48, 0.12);
    font-weight: 600;
}

.doc-browser-tree-label:hover {
    background: rgba(44, 85, 48, 0.08);
}

.doc-browser-tree-icon {
    flex-shrink: 0;
}

.doc-browser-detail-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.doc-browser-detail-subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.doc-browser-detail-desc,
.doc-browser-detail-meta {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.doc-browser-admin-badge {
    color: #856404;
    font-weight: 600;
}

.doc-browser-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

body.doc-browser-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .doc-browser-panels {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .doc-browser-tree-panel {
        min-height: 14rem;
        max-height: 14rem;
    }

    .doc-browser-detail-panel {
        min-height: 10rem;
    }
}

.doc-upload-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.doc-upload-status {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0 0;
}

.doc-share-intro {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-light);
}

.doc-share-result {
    margin: 1rem 0 0;
}

.document-actions .doc-share-btn {
    flex: 1 1 auto;
    min-width: 140px;
}

.doc-browser-detail-actions .doc-share-btn {
    flex: 1 1 auto;
    min-width: 120px;
}

.doc-share-url-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin-top: 0.35rem;
}

.doc-share-url-row input {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
}

.document-card[data-uploaded="true"] {
    border-left: 3px solid var(--primary-color);
}

.document-share-flag {
    font-size: 0.85rem;
    color: var(--text-light);
}

.document-admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 0.25rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    min-width: auto;
    flex: 0 0 auto;
}

.btn-danger {
    background: #fff;
    color: #b91c1c;
    border: 2px solid rgba(185, 28, 28, 0.4);
    box-shadow: none;
}

.btn-danger:hover {
    background: #fef2f2;
    color: #991b1b;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

.auth-field-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0.35rem 0 0;
}

.document-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-card);
    flex: 1;
    min-width: 140px;
    white-space: nowrap;
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(44, 85, 48, 0.15);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .document-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        min-width: unset;
    }
}

/* Member List */
.member-list {
    list-style: none;
    margin-left: 0;
}

.member-item {
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent-color);
}

.member-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Committees Grid */
.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.committees-grid > .project-card-wrap {
    min-height: 100%;
}

.committee-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.committee-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.committee-card:hover::before {
    transform: scaleY(1);
}

.committee-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.committee-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.committee-card p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.committee-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.committee-card:hover .committee-link {
    transform: translateX(5px);
}

/* Bylaws Navigator Specific */
.search-box {
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Bylaws Navigator — editorial document layout (no card / left-accent boxes) */
body.bylaws-page .container-with-sidebar {
    max-width: 72rem;
    gap: 2.5rem;
    grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
}

body.bylaws-page .sidebar--bylaws {
    padding: 1rem 0.85rem;
}

body.bylaws-page .sidebar--bylaws .nav-section {
    margin-bottom: 0;
}

body.bylaws-page .sidebar--bylaws .nav-section h3 {
    margin-bottom: 0.5rem;
    padding: 0 0.35rem;
}

body.bylaws-page .sidebar--bylaws .nav-links a {
    padding: 0.45rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}

body.bylaws-page .sidebar--bylaws .nav-links a:hover {
    transform: none;
}

body.bylaws-page .main-content.bylaws-document {
    max-width: none;
    margin-inline: 0;
    padding: 2rem 1.5rem 3.5rem;
    background: var(--bg-white);
    border: none;
    box-shadow: none;
    border-radius: 0;
}

body.bylaws-page .bylaws-intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

body.bylaws-page .bylaws-intro-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

body.bylaws-page .bylaws-page-search {
    margin-bottom: 2.5rem;
}

body.bylaws-page .bylaws-search-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

body.bylaws-page .bylaws-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

body.bylaws-page .bylaws-search-input::placeholder {
    color: var(--text-light);
}

body.bylaws-page .bylaws-search-results {
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 2rem;
}

body.bylaws-page .bylaws-search-results-label {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.bylaws-page .bylaws-search-results-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.bylaws-page .bylaws-search-results-list li + li {
    margin-top: 0.35rem;
}

body.bylaws-page .bylaws-search-results-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9375rem;
}

body.bylaws-page .bylaws-search-results-list a:hover {
    text-decoration: underline;
}

body.bylaws-page .article {
    margin-bottom: 0;
    padding: 2.5rem 0;
    scroll-margin-top: 100px;
    border-top: 1px solid var(--border-subtle);
}

body.bylaws-page .article:first-of-type {
    border-top: none;
    padding-top: 0;
}

body.bylaws-page .article-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

body.bylaws-page .article-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

body.bylaws-page .article-header .article-number {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 400;
}

body.bylaws-page .section {
    margin-bottom: 1.5rem;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    scroll-margin-top: 100px;
}

body.bylaws-page .section:not(:last-child) {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

body.bylaws-page .section-number {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

body.bylaws-page .section-content {
    font-size: 1rem;
}

body.bylaws-page .section-content p:last-child,
body.bylaws-page .section-content ul:last-child,
body.bylaws-page .section-content ol:last-child {
    margin-bottom: 0;
}

body.bylaws-page .highlight {
    background: none;
    padding: 0.85rem 0 0;
    margin-top: 0.85rem;
    border-radius: 0;
    border-top: 1px dashed var(--border-subtle);
    font-size: 0.9375rem;
    color: var(--text-dark);
}

body.bylaws-page .no-results {
    padding: 1.25rem 0;
    text-align: left;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.article {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.article-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.article-header h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.article-header .article-number {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.section-number {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.section-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul, .section-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

.highlight {
    background: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.search-results {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
    font-size: 1.5rem;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 1.25rem 1.25rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

@media (min-width: 769px) {
    .footer-panel + .footer-panel {
        border-left: 1px solid rgba(255, 255, 255, 0.18);
        padding-left: 2rem;
    }
}

.footer-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-panel__title {
    list-style: none;
    cursor: default;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    padding: 0.85rem 0;
    margin: 0;
    user-select: none;
}

.footer-panel__title::-webkit-details-marker {
    display: none;
}

.footer-panel__body {
    padding: 0 0 1rem;
}

.footer-panel__body p,
.footer-panel__body address {
    font-size: 0.875rem;
    line-height: 1.55;
    opacity: 0.92;
    margin: 0 0 0.45rem;
}

.footer-panel__body address {
    font-style: normal;
}

.footer-address-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 1;
}

.footer-facts {
    margin: 0;
}

.footer-facts__row {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.footer-facts__row:last-child {
    margin-bottom: 0;
}

.footer-facts__row dt {
    margin: 0 0 0.12rem;
    font-weight: 600;
    opacity: 0.95;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

.footer-facts__row dd {
    margin: 0;
    opacity: 0.9;
}

.footer-contact-email {
    margin: 0.65rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-contact-email span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
    opacity: 0.95;
}

.footer-contact-email a {
    color: white;
    word-break: break-word;
}

/* Legacy markup (older injected pages) */
.footer-section h4 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 600;
}

.footer-section p,
.footer-section address {
    font-size: 0.875rem;
    line-height: 1.55;
    opacity: 0.92;
    margin-bottom: 0.45rem;
}

.footer-section address {
    font-style: normal;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
    opacity: 0.92;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.footer-copyright {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.95;
}

.footer-tax-summary {
    margin: 0;
    max-width: 36rem;
    line-height: 1.45;
}

.footer-disclosure {
    max-width: 42rem;
    margin: 0 auto 0.85rem;
    text-align: left;
}

.footer-disclosure > summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.88;
    padding: 0.35rem 0;
    text-align: center;
}

.footer-disclosure > summary::-webkit-details-marker {
    display: none;
}

.footer-disclosure > summary::after {
    content: ' ▾';
    font-size: 0.75rem;
    opacity: 0.75;
}

.footer-disclosure[open] > summary::after {
    content: ' ▴';
}

.footer-disclosure__body {
    padding: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0.88;
}

.footer-disclosure__body p {
    margin: 0 0 0.4rem;
}

.footer-panel__body .footer-tax-notice {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    opacity: 0.9;
}

/* Committee responsibilities checklist */
.responsibilities-checklist {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.responsibilities-checklist .checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
}
.responsibilities-checklist .checklist-box {
    flex-shrink: 0;
    width: 1.15em;
    height: 1.15em;
    border: 2px solid var(--primary-color, #2c5530);
    border-radius: 3px;
    margin-top: 0.2em;
    display: inline-block;
}

/* Committee Structure indentation */
.committee-structure-body {
    padding-left: 1.5rem;
}
.committee-structure-body p,
.committee-structure-body ul {
    margin-bottom: 0.5rem;
}
.committee-structure-body ul {
    padding-left: 1.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin: 0.25rem auto 0;
    max-width: 52rem;
}

.footer-links a,
.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.35;
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    opacity: 0.92;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.footer-links a:hover,
.footer-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.footer-links a:focus-visible,
.footer-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.footer-version {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-version-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
}

.footer-version-trigger:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.footer-version-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.footer-version-trigger:disabled {
    opacity: 0.55;
    cursor: default;
}

.footer-version-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #7dffb0;
    box-shadow: 0 0 0 0 rgba(125, 255, 176, 0.65);
    animation: footer-version-pulse 2.4s ease-out infinite;
}

.footer-version-icon {
    opacity: 0.85;
}

@keyframes footer-version-pulse {
    0% { box-shadow: 0 0 0 0 rgba(125, 255, 176, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(125, 255, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(125, 255, 176, 0); }
}

body.footer-version-modal-open {
    overflow: hidden;
}

.footer-version-modal[hidden] {
    display: none !important;
}

.footer-version-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.footer-version-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 16, 0.62);
    backdrop-filter: blur(4px);
}

.footer-version-modal__panel {
    position: relative;
    width: min(960px, 100%);
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, #ffffff 0%, #f4f8f5 100%);
    color: var(--text-color, #1f2933);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(44, 85, 48, 0.12);
}

.footer-version-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(44, 85, 48, 0.1);
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.08), rgba(74, 124, 89, 0.04));
}

.footer-version-modal__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color, #2c5530);
}

.footer-version-modal__heading h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: var(--primary-color, #2c5530);
}

.footer-version-modal__meta {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    color: var(--text-light, #5f6b73);
}

.footer-version-modal__close {
    border: none;
    background: rgba(44, 85, 48, 0.08);
    color: var(--primary-color, #2c5530);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.footer-version-modal__close:hover {
    background: rgba(44, 85, 48, 0.16);
}

.footer-version-modal__body {
    padding: 0 1.5rem 1.25rem;
    overflow: auto;
}

.footer-version-table-wrap {
    border: 1px solid rgba(44, 85, 48, 0.12);
    border-radius: 12px;
    overflow: auto;
    background: white;
}

.footer-version-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.footer-version-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef4ef;
}

.footer-version-table th,
.footer-version-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(44, 85, 48, 0.08);
}

.footer-version-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color, #2c5530);
}

.footer-version-table__row--current {
    background: linear-gradient(90deg, rgba(44, 85, 48, 0.1), rgba(44, 85, 48, 0.03));
}

.footer-version-table__badge {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: var(--primary-color, #2c5530);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.footer-version-table__hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    background: rgba(44, 85, 48, 0.08);
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
}

.footer-version-table__empty {
    text-align: center;
    color: var(--text-light, #5f6b73);
}

.footer-version-modal__note {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    color: var(--text-light, #5f6b73);
}

@media (max-width: 768px) {
    .footer-version-modal__panel {
        max-height: 92vh;
        border-radius: 14px;
    }

    .footer-version-table thead {
        display: none;
    }

    .footer-version-table tr {
        display: block;
        padding: 0.75rem 0.85rem;
        border-bottom: 1px solid rgba(44, 85, 48, 0.08);
    }

    .footer-version-table td {
        display: grid;
        grid-template-columns: minmax(5.5rem, 34%) 1fr;
        gap: 0.35rem 0.75rem;
        padding: 0.28rem 0;
        border: none;
    }

    .footer-version-table td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--primary-color, #2c5530);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 1.25rem 1rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0.75rem;
    }

    .footer-panel__title {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .footer-panel__title::after {
        content: '▾';
        font-size: 0.7rem;
        opacity: 0.75;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .footer-panel[open] .footer-panel__title::after {
        transform: rotate(180deg);
    }

    .footer-panel__body {
        padding-bottom: 0.85rem;
    }

    .footer-facts__row {
        grid-template-columns: 1fr;
        gap: 0.1rem;
        margin-bottom: 0.55rem;
    }

    .footer-disclosure {
        text-align: center;
    }

    .footer-disclosure__body {
        text-align: left;
    }
}

@media (min-width: 769px) {
    .footer-panel {
        border-bottom: none;
    }

    .footer-panel__title {
        pointer-events: none;
        padding-top: 0;
        padding-bottom: 0.65rem;
    }

    .footer-panel__title::after {
        display: none;
    }

    .footer-panel__body {
        display: block;
        padding-bottom: 0;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .header {
        padding: 0.65rem 0;
    }

    .header-content {
        padding: 0 1rem;
    }

    .header-session-row {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.45rem;
        margin-bottom: 0.45rem;
        gap: 0.5rem 0.75rem;
    }

    .header-session-row .header-search {
        max-width: 100%;
        margin-right: 0;
        order: -1;
    }

    .header-nav-row .header-logo,
    .header-nav-row .header-logo--full {
        height: 56px;
        max-width: min(168px, 52vw);
    }

    .header-content {
        gap: 0.5rem;
    }

    .header-session-toolbar {
        justify-content: flex-start;
        width: 100%;
    }

    .header-nav-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: "logo toggle";
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0;
    }

    .header-nav-row .header-title {
        grid-area: logo;
        order: unset;
        justify-self: start;
        max-width: none;
    }

    .header-nav-row .main-nav {
        grid-area: toggle;
        margin-left: 0;
        width: auto;
        justify-self: end;
        justify-content: flex-end;
        order: unset;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-drawer {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: min(100vw - 3rem, 320px);
        max-height: 100vh;
        overflow-y: auto;
        z-index: 1100;
        background: var(--bg-white);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        padding: 4.5rem 0 1.25rem;
        border-radius: 0 0 0 12px;
    }

    body.nav-drawer-open .nav-drawer {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > li > a {
        padding: 0.85rem 1.25rem;
        border-radius: 0;
        justify-content: space-between;
    }

    .nav-menu > li > a::before {
        display: none;
    }

    .nav-menu > li.nav-has-submenu > a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid var(--text-dark);
        margin-left: auto;
        opacity: 0.75;
        transition: transform 0.2s ease;
    }

    .nav-menu > li.nav-submenu-open > a::after {
        transform: rotate(180deg);
    }

    .nav-menu > li:first-child > a::after {
        display: none;
    }

    .nav-menu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0 0 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-menu > li.nav-submenu-open .submenu {
        max-height: 1200px;
    }

    .nav-settings .nav-settings-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0.35rem 0 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-settings.nav-settings-open .nav-settings-submenu {
        max-height: 200px;
    }

    .container-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .committees-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding-top: 0.35rem;
        padding-bottom: 1rem;
        margin-bottom: 1.25rem;
    }

    .page-header h2 {
        margin-bottom: 0.15rem;
    }

    .main-content {
        padding: 1rem 1rem 2rem;
    }
}

/* Checklist Styles */
.checklist {
    margin-bottom: 3rem;
}

/* Procedure Box Styles */
.procedure-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.procedure-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.procedure-box ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.procedure-box li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.procedure-box strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Accordion Styles — tier 1 (primary sections: bylaws, compliance, etc.) */
.accordion {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.35rem;
    cursor: pointer;
    background: var(--accordion-section-bg);
    color: var(--accordion-section-text);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background 0.2s ease;
    user-select: none;
    border-bottom: 1px solid var(--border-subtle);
}

.accordion-header:hover {
    background: #e4ebe6;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--secondary-color);
    opacity: 0.9;
    transition: transform 0.25s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: var(--bg-white);
    border-top: 1px solid var(--border-subtle);
}

.accordion-content.open {
    max-height: 10000px;
    transition: max-height 0.45s ease-in;
}

.accordion-body {
    padding: 1.35rem 1.5rem;
    color: var(--text-dark);
    line-height: 1.65;
}

/* Filter Styles */
.filter-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-color);
}

.filter-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.filter-btn.clear-filter {
    background: var(--bg-light);
    border-color: var(--text-light);
    color: var(--text-light);
}

.filter-btn.clear-filter:hover {
    background: var(--text-light);
    color: white;
    border-color: var(--text-light);
}

.checklist-item.hidden {
    display: none;
}

.filter-results {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
    display: none;
}

.filter-results.show {
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Project plan version history (portal body mount) */
.project-revision-modal-host {
    z-index: 12000;
}

.project-revision-modal-host.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

body.project-revision-modal-open {
    overflow: hidden;
}

.project-revision-modal {
    max-width: min(52rem, 96vw);
    width: 100%;
    max-height: min(88vh, 40rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-revision-modal .modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.project-revision-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.5;
}

.project-revision-modal #projectRevisionError {
    margin-bottom: 1rem;
}

.project-revision-modal .community-loading {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
}

.project-revision-table {
    width: 100%;
    font-size: 0.9rem;
}

.project-revision-table th {
    white-space: nowrap;
}

.project-revision-restore {
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

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

.print-btn {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    text-align: left;
    justify-content: flex-start;
}

/* Print options modal (Meetings, Compliance, etc.) */
.print-modal .print-modal-content {
    max-width: min(42rem, 96vw);
}

.print-modal .print-modal-body {
    padding: 1.35rem 1.5rem 1.5rem;
}

.print-modal-intro {
    margin: 0 0 1.25rem;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.print-modal-group {
    margin-bottom: 1.35rem;
}

.print-modal-group:last-child {
    margin-bottom: 0;
}

.print-modal-group-title {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}

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

.print-option-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-card);
}

.print-option-btn:hover {
    background: var(--surface-muted);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.print-option-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.print-option-btn:active {
    transform: translateY(1px);
}

.print-option-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.print-option-label {
    flex: 1;
    min-width: 0;
}

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

.print-modal .print-buttons .btn.print-btn {
    flex: unset;
    min-width: unset;
    margin: 0;
    padding: 0.7rem 0.9rem;
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 500;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    justify-content: flex-start;
}

.print-modal .print-buttons .btn.print-btn:hover {
    background: var(--surface-muted);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

@media (max-width: 540px) {
    .print-options-grid,
    .print-modal .print-buttons {
        grid-template-columns: 1fr;
    }
}

.meetings-generate-btn.btn {
    flex: 0 0 auto;
    min-width: unset;
    width: 100%;
    max-width: 22rem;
    margin-top: 0.5rem;
}

/* ——— Meetings & minutes form templates ——— */
.meetings-form,
.minutes-template.meetings-form-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-card);
}

.meetings-form-section + .meetings-form-section {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e4ebe6;
}

.meetings-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.meetings-form-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1rem;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color, #3d7a52) 100%);
    flex-shrink: 0;
}

.meetings-form-grid {
    display: grid;
    gap: 1rem 1.25rem;
}

@media (min-width: 640px) {
    .meetings-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meetings-form-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .meetings-form-full {
        grid-column: 1 / -1;
    }
}

.meetings-field,
.minutes-template .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.meetings-field label,
.minutes-template .field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
}

.meetings-field-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-muted, #5c6b63);
}

.meetings-field input,
.meetings-field select,
.meetings-field textarea,
.minutes-template .field input,
.minutes-template .field select,
.minutes-template .field textarea {
    width: 100%;
    padding: 0.62rem 0.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #fafbfa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.meetings-field input:hover,
.meetings-field select:hover,
.meetings-field textarea:hover,
.minutes-template .field input:hover,
.minutes-template .field select:hover,
.minutes-template .field textarea:hover {
    border-color: #b8c9be;
    background: #fff;
}

.meetings-field input:focus,
.meetings-field select:focus,
.meetings-field textarea:focus,
.minutes-template .field input:focus,
.minutes-template .field select:focus,
.minutes-template .field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.12);
}

.meetings-field select,
.minutes-template .field select {
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6b63' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    cursor: pointer;
}

.meetings-field textarea,
.minutes-template .field textarea {
    min-height: 5.5rem;
    resize: vertical;
    line-height: 1.45;
}

.meetings-field--tall textarea {
    min-height: 10rem;
}

.meetings-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e4ebe6;
}

.meetings-form-actions .meetings-generate-btn {
    margin-top: 0;
    max-width: none;
    min-width: 14rem;
}

.meetings-form-actions-hint {
    flex: 1 1 12rem;
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted, #5c6b63);
    line-height: 1.45;
}

.meetings-form-actions-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.meetings-send-access-hint {
    flex: 1 1 100%;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.45;
    background: #fff8e6;
    border: 1px solid #f0e6b3;
    color: #6b5a20;
}

.meetings-send-access-hint--ok {
    background: #f3fbf6;
    border-color: #b7dfc9;
    color: #1e5631;
}

@media (max-width: 639px) {
    .meetings-form,
    .minutes-template.meetings-form-card {
        padding: 1rem 1.1rem;
    }

    .meetings-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .meetings-form-actions-primary {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .meetings-form-actions-primary .btn,
    .meetings-form-actions .meetings-generate-btn {
        width: 100%;
        min-width: unset;
    }
}

/* Print Styles - Raw Text Format */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: white;
        font-family: 'Times New Roman', Times, serif;
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        margin: 0;
        padding: 0.5in;
    }

    /* Hide all non-essential elements */
    .header,
    .sidebar,
    .filter-section,
    .print-section,
    .modal,
    .footer,
    .back-to-top,
    .tooltip-trigger,
    .tooltip,
    .accordion-header::after,
    .page-header-icon,
    img,
    .card-icon,
    .document-icon,
    .committee-icon,
    .empty-state-icon,
    .hero::before,
    .hero::after {
        display: none !important;
    }

    /* Layout adjustments */
    .container-with-sidebar {
        display: block;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .main-content {
        box-shadow: none;
        padding: 0;
        background: white;
        border: none;
        border-radius: 0;
    }

    /* Print header */
    .print-header {
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid black;
        page-break-after: avoid;
    }

    .print-header h1 {
        font-size: 14pt;
        font-weight: bold;
        margin-bottom: 0.25rem;
        color: black;
        font-family: 'Times New Roman', Times, serif;
    }

    .print-header p {
        font-size: 9pt;
        color: black;
        margin: 0.15rem 0;
        font-family: 'Times New Roman', Times, serif;
    }

    /* Page header */
    .page-header {
        border-bottom: 1px solid black;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        page-break-after: avoid;
    }

    .page-header h2 {
        font-size: 11pt;
        font-weight: bold;
        margin-bottom: 0.15rem;
        color: black;
        font-family: 'Times New Roman', Times, serif;
    }

    .page-header .subtitle {
        font-size: 9pt;
        color: black;
        font-family: 'Times New Roman', Times, serif;
    }

    /* Info box - simple text */
    .info-box {
        background: white;
        border: none;
        border-left: 1px solid black;
        padding: 0.5rem 0 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
        page-break-inside: avoid;
        font-family: 'Courier New', Courier, monospace !important;
    }

    .info-box strong {
        color: black;
        font-weight: bold;
    }

    /* Accordion - simple format */
    .accordion {
        border: none;
        border-bottom: 1px solid black;
        margin-bottom: 0.5rem;
        page-break-inside: avoid;
    }

    .accordion-header {
        background: white;
        color: black;
        padding: 0.4rem 0;
        font-size: 10pt;
        font-weight: bold;
        border-bottom: 1px solid black;
        page-break-after: avoid;
        font-family: 'Courier New', Courier, monospace !important;
    }

    .accordion-content {
        max-height: none !important;
        display: block !important;
    }

    .accordion-content.open {
        max-height: none !important;
    }

    .accordion-body {
        padding: 0.5rem 0;
        background: white;
    }

    /* Checklist items - traditional format */
    .checklist {
        margin-bottom: 1rem;
    }

    .checklist-category {
        font-size: 10pt;
        font-weight: bold;
        margin-bottom: 0.5rem;
        padding-bottom: 0.15rem;
        border-bottom: 1px solid black;
        page-break-after: avoid;
        font-family: 'Courier New', Courier, monospace !important;
    }

    .checklist-item {
        page-break-inside: avoid;
        border: none;
        border-bottom: none;
        margin-bottom: 0.4rem;
        padding: 0.3rem 0;
        background: white;
        display: block;
    }

    .checklist-item.hidden {
        display: none !important;
    }

    .checklist-item input[type="checkbox"] {
        width: 12px;
        height: 12px;
        margin-right: 0.4rem;
        margin-top: 0.15rem;
        border: 1px solid black;
        -webkit-appearance: checkbox;
        appearance: checkbox;
        print-color-adjust: exact;
        float: left;
    }

    .checklist-item label {
        font-size: 10pt;
        line-height: 1.5;
        color: black !important;
        display: block;
        margin-left: 1.5rem;
        font-family: 'Courier New', Courier, monospace !important;
    }

    .checklist-item label strong {
        font-weight: bold;
        color: black !important;
        font-size: 10pt;
        font-family: 'Courier New', Courier, monospace !important;
    }

    /* Remove tooltip triggers and emojis from labels */
    .checklist-item .tooltip-trigger {
        display: none !important;
    }

    /* Simplify label content - remove emojis and decorative divs */
    .checklist-item label > div[style*="display: flex"] {
        display: block !important;
        color: black !important;
    }

    .checklist-item label > div[style*="display: flex"] > strong {
        display: block;
        margin-bottom: 0.2rem;
    }

    .checklist-item label > div[style*="font-size"] {
        font-size: 9pt !important;
        color: black !important;
        margin-top: 0.2rem;
        font-style: italic;
        display: block;
        font-family: 'Times New Roman', Times, serif !important;
    }

    /* Clean up responsible party display - remove emoji, keep text */
    .responsible-party {
        font-size: 9pt;
    }

    /* Remove emoji from due date */
    .due-date {
        font-size: 9pt;
    }

    /* Checklist metadata - simple text format */
    .checklist-meta {
        margin-top: 0.5rem;
        font-size: 9pt;
        color: black !important;
        display: block;
        line-height: 1.4;
    }

    .responsible-party {
        background: white !important;
        color: black !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        font-weight: normal;
        display: inline;
    }

    .responsible-party::before {
        content: "Responsible: ";
        font-weight: bold;
    }

    /* Remove emoji from responsible party text */
    .responsible-party {
        font-family: 'Times New Roman', Times, serif;
    }

    .due-date {
        color: black !important;
        display: inline !important;
        margin-left: 0.75rem;
        font-style: normal !important;
        font-family: 'Times New Roman', Times, serif !important;
    }

    .due-date::before {
        content: "Due: ";
        font-weight: bold;
    }

    /* Remove emojis from accordion headers */
    .accordion-header {
        font-family: 'Courier New', Courier, monospace !important;
    }

    /* Remove emoji characters - they don't print well */
    .accordion-header::before {
        content: "" !important;
    }

    /* Ensure all text is in monospace font */
    .checklist-item label,
    .responsible-party,
    .due-date,
    .checklist-meta,
    .checklist-item label strong,
    .checklist-item label div,
    .accordion-body,
    .info-box {
        font-family: 'Courier New', Courier, monospace !important;
    }

    /* Hide tooltip triggers and tooltips completely */
    .tooltip-trigger,
    .tooltip {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Remove any inline flex containers that might contain emojis */
    .checklist-item label > div[style*="display: flex"] > span.tooltip-trigger {
        display: none !important;
    }

    /* Clean up label structure for print */
    .checklist-item label > div[style*="display: flex"] {
        display: block !important;
    }

    .checklist-item label > div[style*="display: flex"] > strong {
        display: block;
        margin-bottom: 0.25rem;
    }

    /* Page setup */
    @page {
        margin: 2cm;
        size: letter;
    }

    /* Procedure box */
    .procedure-box {
        background: white;
        border: 1px solid black;
        border-left: 3px solid black;
        padding: 0.75rem;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }

    .procedure-box h4 {
        font-size: 11pt;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: black;
    }

    .procedure-box ul {
        margin-left: 1.5rem;
    }

    .procedure-box li {
        margin-bottom: 0.5rem;
        font-size: 10pt;
        line-height: 1.5;
    }

    .procedure-box strong {
        color: black;
        font-weight: bold;
    }

    /* Remove all decorative elements */
    .card,
    .card-image,
    .card-content,
    .hero,
    .hero-content,
    .info-section-image,
    .mission-section {
        display: none !important;
    }

    /* Ensure text is black */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        font-weight: bold;
    }

    p, li, span, div {
        color: black !important;
    }

    /* Remove tooltips completely */
    .tooltip-trigger,
    .tooltip {
        display: none !important;
    }

    /* Simple section dividers */
    .section {
        border: none;
        border-bottom: 1px solid #ccc;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
        background: white;
    }

    .section h3 {
        font-size: 11pt;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: black;
    }
}

.checklist-category {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.checklist-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    position: relative;
}

.checklist-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.checklist-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checklist-item label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.checklist-item label strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.checklist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    align-items: center;
}

.responsible-party {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.due-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Tooltip Styles */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: help;
    margin-left: 0.5rem;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.tooltip-trigger:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: var(--text-dark);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.tooltip-content {
    margin: 0;
}

.compliance-guidance-wrap {
    display: inline-block;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.compliance-guidance {
    display: inline-block;
    max-width: min(100%, 22rem);
    margin-left: 0.25rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-white);
}

.compliance-guidance summary {
    cursor: pointer;
    padding: 0.2rem 0.55rem;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
}

.compliance-guidance summary::-webkit-details-marker {
    display: none;
}

.compliance-guidance-body {
    padding: 0.5rem 0.65rem 0.65rem;
    line-height: 1.55;
    color: var(--text-dark);
}

.compliance-progress-host {
    max-width: 1200px;
    margin: 0 auto 1.25rem;
    padding: 0 2rem;
}

.compliance-progress-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.compliance-progress-track {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: var(--border-subtle);
    overflow: hidden;
}

.compliance-progress-fill {
    display: block;
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.filter-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.filter-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.documents-access-list {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.documents-access-list li {
    margin-bottom: 0.35rem;
}

.footer-contact-tech {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    opacity: 0.92;
}

@media (min-width: 969px) {
    .nav-menu > li:hover > .submenu-mega,
    .submenu-mega:hover {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        min-width: min(44rem, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
        padding: 0.85rem 0.35rem;
    }

    .submenu-mega.submenu-mega--2 {
        min-width: min(30rem, calc(100vw - 2rem));
    }

    /* Documents, Committees, etc.: anchor flyout to the right so it grows leftward */
    .nav-menu > li.nav-submenu-align-end > .submenu.submenu-mega,
    .nav-menu > li:nth-child(n + 4):has(> .submenu.submenu-mega) > .submenu.submenu-mega {
        left: auto;
        right: 0;
    }

    @media (hover: hover) and (pointer: fine) {
        .nav-menu > li.nav-submenu-align-end:hover > .submenu.submenu-mega,
        .nav-menu > li.nav-submenu-align-end > .submenu.submenu-mega:hover,
        .nav-menu > li:nth-child(n + 4):has(> .submenu.submenu-mega):hover > .submenu.submenu-mega,
        .nav-menu > li:nth-child(n + 4):has(> .submenu.submenu-mega) > .submenu.submenu-mega:hover {
            transform: translateY(0);
        }
    }

    .submenu-mega .submenu-mega-col {
        flex: 1 1 0;
        min-width: 12.5rem;
        list-style: none;
        padding: 0 0.65rem;
        border-right: 1px solid var(--border-subtle);
    }

    .submenu-mega .submenu-mega-col:last-child {
        border-right: none;
    }

    .submenu-mega .submenu-mega-stack {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .submenu-mega .submenu-mega-stack > li {
        list-style: none;
    }

    .submenu-mega .submenu-mega-stack .submenu-header {
        border-bottom: none;
        margin-bottom: 0;
        padding: 0.45rem 0.75rem 0.3rem;
    }

    .submenu-mega .submenu-mega-stack .submenu-header:not(:first-child) {
        margin-top: 0.55rem;
        padding-top: 0.65rem;
        border-top: 1px solid var(--border-subtle);
    }

    .submenu-mega .submenu-mega-stack a {
        padding: 0.55rem 0.75rem;
        font-size: 0.875rem;
        white-space: normal;
    }

    .submenu-mega .submenu-mega-stack a:hover {
        padding-left: 0.95rem;
    }

    .nav-settings:hover .nav-settings-submenu.submenu-mega,
    .nav-settings-submenu.submenu-mega:hover {
        display: flex;
    }

    .header-session-toolbar .nav-settings-submenu.submenu-mega {
        min-width: 12rem;
        padding: 0.5rem 0;
    }

    .header-session-toolbar .nav-settings-submenu.submenu-mega .submenu-mega-col {
        min-width: 0;
        border-right: none;
        padding: 0;
    }

    .header-session-toolbar .nav-settings-submenu.submenu-mega .submenu-mega-stack .submenu-header {
        padding: 0.55rem 1rem 0.35rem;
    }

    .header-session-toolbar .nav-settings-submenu.submenu-mega .submenu-mega-stack a {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 968px) {
    .submenu-mega .submenu-mega-col {
        list-style: none;
        padding: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .submenu-mega .submenu-mega-col:last-child {
        border-bottom: none;
    }

    .submenu-mega .submenu-mega-stack {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .submenu-mega .submenu-mega-stack > li {
        list-style: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 3rem 1.5rem;
    }

    .hero h2 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .hero-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .info-section-image {
        min-height: 250px;
    }

    .mission-title {
        font-size: 1.75rem;
    }

    .mission-subtitle {
        font-size: 1.25rem;
    }

    .page-header.with-image {
        min-height: 250px;
        padding: 2rem 1.5rem;
    }

    .page-header h2 {
        font-size: 1.75rem;
    }

    .tooltip {
        width: 240px;
        font-size: 0.8rem;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .print-buttons {
        grid-template-columns: 1fr;
    }

    .checklist-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   KICKSTARTER-STYLE PROJECT PAGES
   ============================================ */

/* Project Hero Section - Kickstarter Style */
.project-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: -2rem -2.5rem 3rem -2.5rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
    border-radius: 0;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9) 0%, rgba(74, 124, 89, 0.9) 100%);
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.project-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.project-hero .project-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

/* Project Status Badges */
.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-status-badge.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 2px solid #4caf50;
}

.project-status-badge.planning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 2px solid #ffc107;
}

.project-status-badge.on-hold {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 2px solid #9e9e9e;
}

/* Project workspace (cédula + planning tabs) */
.project-workspace {
    margin-top: 0.5rem;
    --pw-sticky-top: 0px;
    scroll-padding-top: calc(var(--pw-sticky-top) + 1rem);
}

.project-workspace--editing {
    --pw-sticky-top: 72px;
}

/* Command bar (plan CTA) */
.project-command-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #f0f7f1 0%, #e8f0e9 100%);
    border: 2px solid #4a7c59;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(44, 85, 48, 0.1);
}

.project-command-bar--on-plan {
    border-color: #2c5530;
    background: linear-gradient(135deg, #e8f2e9 0%, #dce8de 100%);
}

.project-command-bar-main {
    flex: 1;
    min-width: min(100%, 260px);
}

.project-command-bar-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

/* Sticky edit / save bar */
.project-edit-bar {
    position: sticky;
    top: var(--pw-sticky-top);
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(44, 85, 48, 0.14);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-edit-bar--dirty {
    border-color: rgba(255, 152, 0, 0.55);
    box-shadow: 0 6px 28px rgba(255, 152, 0, 0.12);
}

.project-edit-bar--saving {
    opacity: 0.92;
    pointer-events: none;
}

.project-edit-bar-main {
    flex: 1;
    min-width: 180px;
}

.project-edit-meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
}

.project-edit-status {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color, #2c5530);
}

.project-edit-bar--dirty .project-edit-status {
    color: #e65100;
}

.project-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.project-edit-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.65rem 1.15rem;
}

.project-edit-btn .project-btn-icon {
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
}

.project-edit-btn .project-btn-icon svg {
    width: 100%;
    height: 100%;
}

#projectSaveBtn:not(:disabled) {
    animation: pwSavePulse 2s ease-in-out infinite;
}

@keyframes pwSavePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(44, 85, 48, 0.2); }
    50% { box-shadow: 0 4px 16px rgba(44, 85, 48, 0.35); }
}

#projectSaveBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    animation: none;
}

/* Metrics strip */
.project-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.project-metric-card {
    padding: 0.85rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-metric-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.project-metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color, #2c5530);
}

/* Sticky tabs */
.project-tabs--sticky {
    position: sticky;
    top: calc(var(--pw-sticky-top) + 4.5rem);
    z-index: 80;
    background: linear-gradient(180deg, #fafcfa 85%, rgba(250, 252, 250, 0));
    padding-top: 0.35rem;
    margin-bottom: 1.25rem;
}

.project-workspace--editing .project-tabs--sticky {
    top: calc(var(--pw-sticky-top) + 4.5rem);
}

/* Panel surfaces */
.project-panel-surface {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-color, #e8ece8);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.project-panel-surface--about {
    padding: 0.25rem 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.project-panel-surface--edit {
    padding: 1.35rem 1.5rem;
}

.project-form--readonly {
    opacity: 0.92;
}

.project-form--readonly .form-group input,
.project-form--readonly .form-group textarea,
.project-form--readonly .form-group select {
    background: #f7f9f7;
    border-color: #e4ebe4;
    cursor: default;
}

.project-workspace-notice {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.project-workspace-notice--warn {
    background: #fff8e6;
    border: 1px solid #ffe082;
    color: #6d4c00;
}

.project-workspace-notice--error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}

/* Cédula-specific chrome */
.pw-content,
.cedula-content,
.planning-content {
    min-width: 0;
}

.cedula-toolbar {
    position: sticky;
    top: calc(var(--pw-sticky-top) + 7.5rem);
    z-index: 6;
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #e8ece8;
    border-radius: 10px;
}

.cedula-toolbar .project-export-actions {
    justify-content: flex-end;
}

.cedula-toolbar .planning-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
}

.cedula-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.cedula-form .dynamic-list-item:focus-within {
    border-color: var(--primary-color, #2c5530);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.08);
}

.cedula-form .add-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 2px dashed #b8d4bc;
    background: transparent;
    color: #2c5530;
    font-weight: 600;
}

.cedula-form .add-item-btn:hover:not(:disabled) {
    background: rgba(44, 85, 48, 0.06);
    border-style: solid;
    transform: none;
}

/* Shared project workspace sections (cédula + 90-day plan) */
.pw-layout,
.cedula-layout,
.planning-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.pw-sidebar,
.cedula-sidebar,
.planning-sidebar {
    position: sticky;
    top: calc(var(--pw-sticky-top) + 7.5rem);
    z-index: 5;
}

.pw-sidebar-card,
.cedula-readiness-card {
    padding: 1.25rem;
    background: linear-gradient(160deg, #f8fbf8 0%, #eef5ef 100%);
    border: 1px solid #d8e8da;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(44, 85, 48, 0.08);
}

.planning-progress-card {
    padding: 1.25rem;
    background: linear-gradient(160deg, #f5fafc 0%, #e8f3f8 100%);
    border: 1px solid #c5dce8;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(26, 95, 122, 0.1);
}

.pw-progress-ring-wrap,
.cedula-readiness-ring-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 1rem;
}

.pw-progress-ring-wrap svg,
.cedula-readiness-ring-wrap svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pw-ring-bg,
.cedula-ring-bg {
    fill: none;
    stroke: #e0ebe1;
    stroke-width: 8;
}

.pw-ring-fill,
.cedula-ring-fill {
    fill: none;
    stroke: url(#cedulaRingGrad);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.45s ease;
}

.planning-ring-fill {
    stroke: url(#planningRingGrad);
}

.pw-progress-pct,
.cedula-readiness-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 800;
    color: #2c5530;
}

.planning-progress-pct {
    color: #1a5f7a;
}

.pw-sidebar-heading,
.cedula-readiness-heading {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2c5530;
    text-align: center;
}

.planning-progress-card .pw-sidebar-heading {
    color: #1a5f7a;
}

.pw-sidebar-label,
.cedula-readiness-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 1rem;
    text-align: center;
    color: var(--text-light);
}

.pw-checklist,
.cedula-checklist,
.planning-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
}

.pw-jump-nav,
.cedula-jump-nav,
.planning-jump-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cedula-jump-nav {
    border-top-color: #d8e8da;
}

.planning-jump-nav {
    border-top-color: #c5dce8;
}

.pw-jump-nav-title,
.cedula-jump-nav-title {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a7c59;
}

.planning-jump-nav .pw-jump-nav-title {
    color: #1a5f7a;
}

.pw-jump-link,
.cedula-jump-link,
.planning-jump-link {
    display: block;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
}

.cedula-jump-link {
    color: #2c5530;
}

.cedula-jump-link:hover {
    background: rgba(44, 85, 48, 0.08);
}

.planning-jump-link {
    color: #1a5f7a;
}

.planning-jump-link:hover {
    background: rgba(26, 95, 122, 0.08);
}

.pw-form .pw-section,
.cedula-form .cedula-section,
.planning-form .planning-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    scroll-margin-top: calc(var(--pw-sticky-top) + 9rem);
}

.cedula-form .cedula-section {
    background: #fafcfa;
    border: 1px solid #e8eee8;
}

.planning-form .planning-section {
    background: linear-gradient(180deg, #fafcfd 0%, #f6fafc 100%);
    border: 1px solid #dce8ef;
    box-shadow: 0 2px 12px rgba(26, 95, 122, 0.05);
}

.pw-section-header,
.cedula-section-header,
.planning-section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cedula-section-header {
    border-bottom-color: #e4ebe4;
}

.planning-section-header {
    border-bottom-color: #dce8ef;
}

.pw-section-icon,
.cedula-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: rgba(44, 85, 48, 0.1);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.planning-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: rgba(26, 95, 122, 0.12);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.pw-section-header h4,
.cedula-section-header h4,
.planning-section-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.cedula-section-header h4 {
    color: var(--primary-color, #2c5530);
}

.planning-section-header h4 {
    color: #1a5f7a;
}

.pw-section-body .form-group:last-child,
.cedula-section-body .form-group:last-child,
.planning-section-body .form-group:last-child {
    margin-bottom: 0;
}

.planning-form .dynamic-list-item,
.cedula-form .dynamic-list-item {
    padding: 0.5rem 0.65rem;
    background: #fff;
    border: 1px solid #e8ece8;
    border-radius: 10px;
    align-items: center;
}

.planning-form .dynamic-list-item:focus-within {
    border-color: #1a5f7a;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.planning-form .add-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 2px dashed #a8c9d8;
    background: transparent;
    color: #1a5f7a;
    font-weight: 600;
}

.planning-form .add-item-btn:hover:not(:disabled) {
    background: rgba(26, 95, 122, 0.06);
    border-style: solid;
    transform: none;
}

/* Planning: sprint sidebar stats */
.planning-sprint-board {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #c5dce8;
}

.planning-sprint-board-title {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a5f7a;
}

.planning-sprint-pills {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.planning-sprint-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.planning-sprint-pill-n {
    font-size: 1rem;
    font-weight: 800;
    min-width: 1.25rem;
    text-align: right;
}

.planning-sprint-pill--todo {
    background: rgba(158, 158, 158, 0.12);
    color: #616161;
}

.planning-sprint-pill--doing {
    background: rgba(255, 193, 7, 0.15);
    color: #f57c00;
}

.planning-sprint-pill--done {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
}

/* Planning: sprint section */
.planning-sprint-intro {
    display: grid;
    gap: 0 1rem;
}

.planning-duration-chip {
    max-width: 220px;
}

.planning-duration-chip .form-row {
    margin-bottom: 0;
}

.planning-backlog-list .dynamic-list-item select[data-field="status"] {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
}

.planning-backlog-list .dynamic-list-item select[data-field="status"] option[value="todo"] {
    color: #616161;
}

.planning-leader-grid,
.planning-pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 1rem;
    margin-bottom: 1rem;
}

/* Planning: 90-day kanban */
.planning-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}

.planning-kanban-col {
    display: flex;
    flex-direction: column;
    min-height: 120px;
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.planning-kanban-col--now {
    background: rgba(76, 175, 80, 0.06);
    border-color: rgba(76, 175, 80, 0.25);
}

.planning-kanban-col--next {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.35);
}

.planning-kanban-col--later {
    background: rgba(158, 158, 158, 0.08);
    border-color: rgba(158, 158, 158, 0.25);
}

.planning-kanban-col-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.planning-kanban-col-header h5 {
    margin: 0;
    flex: 1;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.planning-kanban-col-icon {
    font-size: 0.75rem;
    line-height: 1;
}

.planning-kanban-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.planning-kanban-col--now .planning-kanban-count {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.planning-kanban-col--next .planning-kanban-count {
    background: rgba(255, 193, 7, 0.25);
    color: #e65100;
}

.planning-kanban-list {
    flex: 1;
    margin-bottom: 0.5rem;
}

.planning-kanban-list .dynamic-list-item {
    margin-bottom: 0.5rem;
    border-color: rgba(0, 0, 0, 0.06);
}

.planning-kanban-col .add-item-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.planning-budget-list .dynamic-list-item {
    flex-wrap: wrap;
}

.planning-risks-list .dynamic-list-item select[data-field="level"] {
    font-weight: 600;
}

@media (max-width: 960px) {
    .pw-layout,
    .cedula-layout,
    .planning-layout {
        grid-template-columns: 1fr;
    }

    .pw-sidebar,
    .cedula-sidebar,
    .planning-sidebar {
        position: static;
    }

    .planning-kanban {
        grid-template-columns: 1fr;
    }

    .cedula-toolbar {
        position: static;
    }
}

@media (max-width: 640px) {
    .planning-kanban-col {
        padding: 0.75rem;
    }
}

/* Prominent entry to planning */
.project-plan-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #f0f7f1 0%, #e8f0e9 100%);
    border: 2px solid #4a7c59;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(44, 85, 48, 0.12);
}

.project-plan-cta--on-plan {
    border-color: #2c5530;
    background: linear-gradient(135deg, #e8f2e9 0%, #dce8de 100%);
}

.project-plan-cta-icon {
    font-size: 2.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.project-plan-cta-body {
    flex: 1;
    min-width: 200px;
}

.project-plan-cta-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a7c59;
}

.project-plan-cta-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #2c5530;
}

.project-plan-cta-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.45;
    max-width: 42rem;
}

.project-plan-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.project-plan-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.project-plan-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.2);
}

.project-plan-cta-btn--primary {
    background: #2c5530;
    color: #fff;
    border-color: #2c5530;
}

.project-plan-cta-btn--secondary {
    background: #fff;
    color: #2c5530;
    border-color: #4a7c59;
}

.project-plan-cta-btn--ghost {
    background: transparent;
    color: #2c5530;
    border-color: #b8d4bc;
}

.projects-planning-banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f8faf8;
    border-left: 4px solid #4a7c59;
    border-radius: 0 12px 12px 0;
}

.projects-planning-banner--auth {
    background: linear-gradient(90deg, #f0f7f1, #f8faf8);
}

.projects-planning-banner-icon {
    font-size: 1.75rem;
}

.projects-planning-banner-text h3 {
    margin: 0 0 0.35rem;
    color: #2c5530;
    font-size: 1.1rem;
}

.projects-planning-banner-text p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.project-card-wrap {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.project-card-wrap .project-card-kickstarter-link {
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    position: static;
    overflow: visible;
}

.project-card-wrap .project-card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.project-card-wrap .project-card-kickstarter-link:hover {
    transform: none;
    box-shadow: none;
}

.project-card-wrap .project-card-kickstarter-link:hover .project-card-title {
    color: var(--primary-color, #2c5530);
}

.project-card-wrap .project-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-top: auto;
    width: 100%;
}

.project-card-wrap .project-card-footer .project-card-link {
    display: none;
}

.project-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.25rem;
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color, #e8e8e8);
    background: var(--bg-white);
}

.project-card-btn {
    flex: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.project-card-btn--primary {
    background: #2c5530;
    color: #fff;
}

.project-card-btn--primary:hover {
    background: #234428;
    color: #fff;
}

.project-card-btn--ghost {
    background: #f5f5f5;
    color: #2c5530;
    border: 1px solid #ddd;
}

.project-card-btn--ghost:hover {
    background: #eee;
}

.project-tab--plan {
    font-weight: 600;
}

.project-tab--plan:not(.active) {
    color: #4a7c59;
}

.project-workspace-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-workspace-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.project-readiness-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 193, 7, 0.15);
    color: #b8860b;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.project-readiness-badge.ready {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    border-color: rgba(76, 175, 80, 0.5);
}

.project-workspace-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-workspace-metrics strong {
    color: var(--text-dark);
}

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
    padding-bottom: 0;
}

.project-tab {
    padding: 0.65rem 1.1rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 8px 8px 0 0;
    transition: color 0.2s, border-color 0.2s;
}

.project-tab:hover {
    color: var(--primary-color, #2c5530);
}

.project-tab.active {
    color: var(--primary-color, #2c5530);
    border-bottom-color: var(--primary-color, #2c5530);
    font-weight: 600;
}

.project-tab-panel {
    animation: projectTabIn 0.2s ease;
}

@keyframes projectTabIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-workspace-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.project-save-status {
    font-size: 0.85rem;
    color: var(--text-light);
}

.project-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-signin-gate {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-signin-gate p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.cedula-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
}

.cedula-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    line-height: 1.35;
}

.cedula-checklist li.done {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.08);
}

.cedula-checklist li.pending {
    color: var(--text-light);
}

.cedula-checklist li::before {
    flex-shrink: 0;
    font-weight: 700;
}

.cedula-checklist li.done::before {
    content: '✓';
    color: #2e7d32;
}

.cedula-checklist li.pending::before {
    content: '○';
    color: #bbb;
}

.mini-gantt-wrap {
    margin: 1rem 0;
}

.mini-gantt-empty {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.mini-gantt-chart {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mini-gantt-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 0.75rem;
    align-items: center;
}

.mini-gantt-label {
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-gantt-track {
    position: relative;
    height: 22px;
    background: #eef2ee;
    border-radius: 4px;
}

.mini-gantt-bar {
    position: absolute;
    top: 3px;
    height: 16px;
    background: linear-gradient(180deg, #4a7c59, #2c5530);
    border-radius: 3px;
    min-width: 4px;
}

.project-doc-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-doc-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
}

.project-doc-links li.muted {
    color: var(--text-light);
    font-style: italic;
}

.project-card-readiness {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color, #2c5530);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.dynamic-list-remove {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: #888;
}

.dynamic-list-remove:hover {
    background: #fee;
    border-color: #fcc;
    color: #c00;
}

@media (max-width: 640px) {
    .mini-gantt-row {
        grid-template-columns: 1fr;
    }
    .project-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .project-tab {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    .project-edit-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .project-edit-actions {
        width: 100%;
    }
    .project-edit-actions .planning-btn {
        flex: 1;
        justify-content: center;
    }
    .project-panel-surface--edit {
        padding: 1rem;
    }
    .cedula-form .cedula-section {
        padding: 1rem;
    }
}

/* Project Cards - Kickstarter Style (standalone links only; wrapped cards use .project-card-wrap) */
.project-card-kickstarter:not(.project-card-kickstarter-link) {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.project-card-kickstarter:not(.project-card-kickstarter-link):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.project-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.project-card-content {
    padding: 2rem;
}

.project-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-card-description {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.project-card-kickstarter:not(.project-card-kickstarter-link):hover .project-card-link {
    transform: translateX(5px);
}

/* Project Action Button */
.project-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
    text-decoration: none;
    margin: 2rem 0;
}

.project-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.project-action-btn:active {
    transform: translateY(0);
}

/* Project Info Grid */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.project-info-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.project-info-card h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-info-card p {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   PROJECT PLANNING MODAL
   ============================================ */

.planning-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.planning-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.planning-modal-content {
    background-color: var(--bg-white);
    margin: auto;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.planning-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.planning-modal-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.planning-modal-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.planning-modal-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.planning-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.planning-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.planning-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.planning-form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.planning-form-section:last-child {
    border-bottom: none;
}

.planning-form-section h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.planning-form-section h4::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

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

.dynamic-list {
    margin-top: 1rem;
}

.dynamic-list-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.dynamic-list-item input {
    flex: 1;
}

.dynamic-list-item button {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dynamic-list-item button:hover {
    background: #c82333;
}

.add-item-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.add-item-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.planning-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.planning-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.planning-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.planning-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.planning-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.planning-btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.planning-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.planning-btn-danger {
    background: #dc3545;
    color: white;
}

.planning-btn-danger:hover {
    background: #c82333;
}

/* Print Styles for Planning Document */
@media print {
    .planning-modal {
        display: block !important;
        position: static;
        background: white;
    }

    .planning-modal-content {
        max-width: 100%;
        max-height: none;
        box-shadow: none;
        border: none;
    }

    .planning-modal-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid black;
    }

    .planning-modal-header h3 {
        color: black !important;
    }

    .planning-modal-close,
    .planning-modal-footer {
        display: none !important;
    }

    .planning-modal-body {
        padding: 1rem;
    }

    .planning-form-section {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }

    .planning-form-section h4 {
        color: black !important;
        border-bottom: 1px solid black;
        padding-bottom: 0.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-weight: bold;
        color: black !important;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        border: 1px solid black;
        background: white;
        color: black;
    }
}

/* Responsive adjustments for planning modal */
@media (max-width: 768px) {
    .planning-modal.show {
        padding: 0;
        align-items: flex-start;
    }

    .planning-modal-content {
        max-height: 100vh;
        border-radius: 0;
    }

    .planning-modal-header {
        padding: 1.5rem;
    }

    .planning-modal-header h3 {
        font-size: 1.25rem;
    }

    .planning-modal-body {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .planning-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .planning-actions {
        flex-direction: column;
        width: 100%;
    }

    .planning-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Board portal — sesión (API /api en el mismo dominio) */
/* .nav-auth / .nav-user-cluster use display:flex, which overrides the default [hidden] display:none */
.header-session-toolbar [hidden] {
    display: none !important;
}

.nav-auth a.auth-link::after,
.nav-settings .nav-settings-trigger::after,
.nav-user-cluster .auth-logout-icon-btn::after {
    display: none !important;
}

/* Perfil entre Documents y Committees */
.nav-user-cluster {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-user-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-left: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.header-session-toolbar .nav-user-inner {
    border-left: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
}

.nav-user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    max-width: 14rem;
}

.nav-user-name {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
}

.nav-user-role {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.25;
}

.nav-user-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.nav-user-account {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.nav-user-account:hover {
    text-decoration: underline;
}

.nav-settings {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.35rem;
    padding-left: 0.65rem;
    border-left: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.header-session-toolbar .nav-settings {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

.nav-settings .nav-settings-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-settings .nav-settings-trigger:hover {
    color: var(--primary-color);
}

.nav-settings-icon svg {
    display: block;
    color: var(--primary-color);
}

@media (max-width: 968px) {
    .nav-settings-label {
        display: none;
    }
}

/* Language toggle (header session toolbar) */
.nav-lang {
    display: flex;
    align-items: center;
    margin-left: 0.35rem;
}

.nav-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-lang-toggle:hover {
    background: #fff;
    border-color: var(--secondary-color);
}

.nav-lang-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.nav-lang-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-lang-code {
    min-width: 2rem;
    text-align: center;
}

/* Board portal — sesión (API /api en el mismo dominio) */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.header-session-toolbar .nav-auth {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

.nav-auth .auth-link {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.auth-email {
    color: var(--text-light);
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-inbox {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-inbox-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-inbox-trigger:hover,
.nav-inbox-trigger[aria-expanded="true"] {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-inbox-trigger svg {
    display: block;
}

.nav-inbox-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--accent-color, #c45c26);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg-white, #fff);
}

.nav-inbox-badge[hidden] {
    display: none !important;
}

.nav-inbox-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 1200;
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(24rem, 70vh);
    overflow: auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.nav-inbox-panel[hidden] {
    display: none !important;
}

.nav-inbox-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border-subtle, var(--border-color));
    font-size: 0.9rem;
}

.nav-inbox-panel-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.nav-inbox-panel-link:hover {
    text-decoration: underline;
}

.nav-inbox-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
}

.nav-inbox-item-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.15s;
}

.nav-inbox-item-link:hover {
    background: var(--surface-muted, #f5f6f8);
}

.nav-inbox-item--unread .nav-inbox-item-link {
    background: rgba(196, 92, 38, 0.06);
}

.nav-inbox-item-msg {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.nav-inbox-item-time {
    font-size: 0.72rem;
    color: var(--text-light);
}

.nav-inbox-empty,
.nav-inbox-loading {
    margin: 0;
    padding: 0.85rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.export-approval-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.export-approval-meta dt {
    font-weight: 600;
    color: var(--text-light);
}

.export-approval-reason {
    white-space: pre-wrap;
}

.export-approval-checks {
    border: none;
    margin: 0 0 1rem;
    padding: 0;
}

.export-approval-checks label {
    display: block;
    margin: 0.35rem 0;
    font-size: 0.9rem;
}

.export-approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.auth-logout-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.auth-logout-icon-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.auth-logout-icon-btn svg {
    display: block;
    flex-shrink: 0;
}

/* Login: mitad logo / mitad formulario */
body.auth-split-page {
    margin: 0;
    min-height: 100vh;
}

.auth-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

.auth-split-brand {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.auth-split-brand img {
    max-width: min(300px, 75vw);
    width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-split-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3rem);
    background: var(--bg-light);
}

.auth-split-inner {
    width: 100%;
    max-width: 380px;
}

.auth-split-inner .auth-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

/* Login: panel derecho compacto (sin scroll en viewport típico) */
body.auth-login-page .auth-split-form-panel {
    padding: 1.25rem 1.5rem;
    justify-content: center;
    max-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.auth-login-stack {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-login-stack .auth-card-signin {
    padding: 1.5rem 1.65rem 1.35rem;
    margin: 0;
}

.auth-login-stack .auth-card-signin h2 {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.auth-login-stack .auth-card-signin .auth-lead {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-login-stack .auth-field {
    margin-bottom: 0.85rem;
}

.auth-login-stack .auth-forgot {
    margin: 0.65rem 0 0;
    font-size: 0.875rem;
}

.auth-login-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.auth-login-extra {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 100%;
    padding: 0.8rem 0.9rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-extra:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.auth-login-extra:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.auth-login-extra-title {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--primary-color);
}

.auth-login-extra-desc {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-light);
}

.auth-back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-split-layout {
        grid-template-columns: 1fr;
    }

    .auth-split-brand {
        min-height: 38vh;
    }

    .auth-split-form-panel {
        min-height: auto;
        flex: 1;
        padding-bottom: 3rem;
    }

    body.auth-login-page .auth-split-form-panel {
        max-height: none;
        overflow: visible;
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .auth-login-extras {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 720px) and (min-width: 769px) {
    body.auth-login-page .auth-split-form-panel {
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.auth-card h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.auth-card .auth-lead {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Panel admin — usuarios */
.admin-users-main {
    max-width: min(1280px, 96vw);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.admin-users-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-users-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color, #4a7c59);
}

.admin-users-page-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.admin-users-page-lead {
    margin-bottom: 0;
    max-width: 42rem;
}

.admin-users-audit-link {
    align-self: center;
    white-space: nowrap;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    text-decoration: none;
    color: var(--primary-color);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.admin-users-audit-link:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.admin-users-shell {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44, 85, 48, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.admin-users-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0.5rem 0.75rem 0;
    background: linear-gradient(180deg, #f8faf8 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-color);
}

.admin-users-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0.15rem;
    padding: 0.75rem 1.1rem;
    border: none;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
}

.admin-users-tab:hover {
    color: var(--primary-color);
    background: rgba(44, 85, 48, 0.06);
}

.admin-users-tab.is-active {
    color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 -2px 0 var(--primary-color) inset;
}

.admin-users-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(44, 85, 48, 0.12);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.admin-users-tab.is-active .admin-users-tab-badge {
    background: var(--primary-color);
    color: #fff;
}

.admin-users-flash {
    margin: 0 1.75rem;
    margin-top: 1rem;
}

.admin-users-flash:not([hidden]) {
    display: block;
}

.admin-user-pause-panel.is-disabled {
    opacity: 0.65;
    pointer-events: none;
}

.admin-users-flash.auth-error.visible {
    display: block;
}

.admin-users-panels {
    padding: 0;
}

.admin-users-panel {
    padding: 1.5rem 1.75rem 1.75rem;
    animation: adminUsersPanelIn 0.22s ease-out;
}

.admin-users-panel[hidden] {
    display: none !important;
}

@keyframes adminUsersPanelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-users-panel h2 {
    color: var(--primary-color);
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.admin-users-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.admin-users-panel-head .admin-lead {
    margin-bottom: 0;
    max-width: 36rem;
}

.admin-users-search {
    flex: 1 1 14rem;
    max-width: 22rem;
    margin: 0;
}

.admin-users-search-input {
    width: 100%;
    padding: 0.6rem 0.85rem 0.6rem 2.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") no-repeat 0.65rem center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-users-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.12);
}

.admin-users-empty {
    margin: 0 0 1rem;
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.95rem;
}

.admin-users-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
    max-width: 40rem;
}

.admin-users-form-span {
    grid-column: 1 / -1;
}

.admin-users-form-actions {
    margin-top: 0.5rem;
}

.admin-users-form-actions .auth-submit {
    width: auto;
    min-width: 10rem;
}

.admin-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.admin-role-card {
    padding: 1.1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-top: 4px solid var(--primary-color);
}

.admin-role-card--admin {
    border-top-color: #2c5530;
    background: linear-gradient(180deg, #f0f7f1 0%, #fafbfa 100%);
}

.admin-role-card--board {
    border-top-color: #5b6b7a;
}

.admin-role-card--community {
    border-top-color: #7c6b8a;
    background: linear-gradient(180deg, #f8f5fb 0%, #fafafa 100%);
}

.admin-role-card-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.admin-role-card-code {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
}

.admin-role-card-code code {
    font-size: 0.78rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
}

.admin-role-card-desc {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.45;
}

.admin-role-card-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.admin-role-card-list li {
    margin-bottom: 0.25rem;
}

.admin-roles-ref-wrap {
    margin-top: 0.5rem;
}

.admin-roles-ref-table code {
    font-size: 0.82rem;
}

@media (max-width: 640px) {
    .admin-users-tabs {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .admin-users-tab {
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
        margin: 0;
    }

    .admin-users-tab.is-active {
        box-shadow: inset 3px 0 0 var(--primary-color);
    }

    .admin-users-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-users-panel {
        padding: 1.15rem 1rem 1.25rem;
    }
}

.admin-users-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.admin-users-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.admin-roles-guide-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 0.5rem;
}

.admin-roles-guide-actions .admin-roles-guide-download {
    display: inline-block;
    text-decoration: none;
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.admin-users-card .admin-lead {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.admin-users-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: auto;
}

.admin-users-table th,
.admin-users-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.admin-users-table td:nth-child(2) {
    word-break: break-word;
}

.admin-users-table td:nth-child(4),
.admin-users-table td:nth-child(5) {
    min-width: 7.5rem;
}

.admin-users-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.admin-users-table tr:last-child td {
    border-bottom: none;
}

.admin-user-edit-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.admin-user-edit-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.admin-users-actions {
    white-space: nowrap;
}

.admin-users-actions .admin-user-delete-btn {
    margin-left: 0.35rem;
}

.admin-user-delete-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(185, 28, 28, 0.35);
    background: #fff;
    color: #b91c1c;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.admin-user-delete-btn:hover {
    background: #fef2f2;
    border-color: #b91c1c;
}

.admin-role-pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-role-pill.admin {
    background: #e8f4ea;
    color: var(--primary-color);
}

.admin-role-pill.board-member,
.admin-role-pill.member {
    background: #eef1f5;
    color: var(--text-light);
}

.admin-role-pill.active-member,
.admin-role-pill.tal-tiol,
.admin-role-pill.associate {
    background: #f3eef8;
    color: #5b4d6a;
}

.admin-status-pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-status-pill.active {
    background: #eef1f5;
    color: var(--text-light);
}

.admin-status-pill.paused {
    background: #fef3c7;
    color: #92400e;
}

.admin-user-pause-panel {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.admin-pause-status {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: 0.9rem;
}

.admin-pause-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.admin-pause-btn {
    background: #b45309;
}

.admin-pause-btn:hover {
    background: #92400e;
}

.admin-unpause-btn {
    background: #047857;
}

.admin-unpause-btn:hover {
    background: #065f46;
}

.admin-pause-btn:disabled,
.admin-unpause-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-white);
}

.auth-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-form-success {
    background: #e8f4ea;
    color: var(--primary-color);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.admin-form-success.visible {
    display: block;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.auth-field input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit:hover {
    background: var(--secondary-color);
}

.auth-error {
    background: #fdeaea;
    color: #a32020;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.auth-error.visible {
    display: block;
}

.auth-error[hidden],
.auth-success[hidden] {
    display: none !important;
}

.auth-error.visible,
.auth-success:not([hidden]) {
    display: block;
}

.auth-success {
    background: #e8f5e9;
    color: #1b5e20;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-forgot {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.auth-forgot a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

/* Committee admin */
.committee-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.committee-admin-toolbar[hidden] {
    display: none !important;
}

.member-edit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

.member-edit-fields {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-edit-fields input,
.member-edit-fields select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    font-size: 0.95rem;
}

.slot-pending-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.doc-pending-upload-label {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-light, #555);
}

.doc-pending-slot .document-actions {
    margin-top: 0.75rem;
}

.doc-policy-draft-actions {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-subtle, #dee2e6);
}

.doc-policy-draft-banner {
    margin: 0 0 0.65rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #5c4a00;
    background: #fff8e6;
    border: 1px solid #e6d48a;
    border-radius: 6px;
}

.doc-policy-draft-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.doc-policy-draft-links .btn {
    flex: 1 1 auto;
    min-width: 8.5rem;
    text-align: center;
}

.doc-section-empty .document-actions {
    justify-content: center;
}

.page-header--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.meetings-hub {
    margin-bottom: 1.5rem;
}

.meetings-hub .committee-tools-hub-card p {
    margin: 0;
    line-height: 1.75;
}

.meetings-hub .committee-tools-hub-card p a {
    font-weight: 500;
}

.meetings-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.meetings-track-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: min(100%, 16rem);
}

.meetings-track-tab {
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.meetings-track-tab:hover {
    background: var(--surface-muted);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.meetings-track-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.toolbar-print-btn.btn,
.meetings-print-btn.btn {
    flex: 0 0 auto;
    min-width: unset;
    padding: 0.55rem 1.15rem;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.filter-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.filter-section-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

@media (max-width: 540px) {
    .meetings-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .meetings-track-tabs {
        width: 100%;
    }

    .meetings-track-tab {
        flex: 1 1 auto;
        text-align: center;
    }

    .meetings-print-btn.btn,
    .toolbar-print-btn.btn {
        width: 100%;
        justify-content: center;
    }

    .filter-section-head {
        flex-direction: column;
        align-items: stretch;
    }
}

.meetings-track[hidden] {
    display: none !important;
}

.meetings-track-heading {
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color, #c9a227);
    color: var(--primary-color, #1a5f4a);
    font-size: 1.35rem;
}

.meetings-track-heading a {
    color: var(--primary-color, #1a5f4a);
    font-size: 0.9rem;
    font-weight: normal;
    margin-left: 0.5rem;
}

.legal-doc-preview-wrap {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f0f0f0;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
}

.legal-doc-preview-wrap h4 {
    margin: 0 0 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--primary-color, #1a5f4a);
}

.legal-doc-export-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.legal-doc-paper {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 0.35in;
    overflow-x: auto;
}

.legal-doc-paper .legal-doc {
    margin: 0;
}

.legal-doc-paper .legal-doc-inner {
    padding: 0.15in 0.1in;
}

.meetings-notice-send-btn {
    background: linear-gradient(135deg, #1a5276 0%, #21618c 100%);
    border-color: #154360;
}

.meetings-notice-send-btn[hidden] {
    display: none !important;
}

.meetings-notice-send-btn:hover,
.meetings-notice-send-btn:focus-visible {
    background: linear-gradient(135deg, #154360 0%, #1a5276 100%);
}

.meetings-notice-send-modal.modal-content {
    max-width: min(42rem, 96vw);
    max-height: min(92vh, 52rem);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.meetings-notice-send-modal .meetings-send-modal-header {
    flex-shrink: 0;
}

.meetings-send-modal-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #f4f9fc 0%, #eef5f1 100%);
    border-bottom: 1px solid #d6e4f0;
}

.meetings-send-modal-header .modal-close {
    margin-top: 0.15rem;
}

.meetings-send-modal-header-text {
    flex: 1;
    min-width: 0;
}

.meetings-send-modal-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a5276;
}

.meetings-send-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color, #1a5f4a);
}

.meetings-notice-send-modal .modal-body,
.meetings-send-modal-body {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.35rem 1.5rem 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.meetings-send-intro {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #f8fafb;
    border: 1px solid #e4eaef;
    color: var(--text-muted, #555);
    line-height: 1.55;
    font-size: 0.92rem;
}

.meetings-send-compose {
    border: 1px solid #dce8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.meetings-send-compose--optional {
    border-style: dashed;
    border-color: #c8d8e4;
    background: linear-gradient(180deg, #fcfdfd 0%, #f8fbfa 100%);
}

.meetings-send-compose-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e8eef2;
    background: rgba(255, 255, 255, 0.75);
}

.meetings-send-compose--optional .meetings-send-compose-head {
    background: rgba(255, 255, 255, 0.55);
}

.meetings-send-compose-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f4ef;
    color: #1a5f4a;
}

.meetings-send-compose-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    fill: none;
}

.meetings-send-compose-head-text {
    flex: 1;
    min-width: 0;
}

.meetings-send-compose-head-text h4 {
    margin: 0 0 0.15rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-dark, #1a2e28);
    text-transform: none;
    letter-spacing: normal;
}

.meetings-send-compose-lead {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted, #5c6b63);
}

.meetings-send-optional-badge {
    flex-shrink: 0;
    align-self: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5a6c7d;
    background: #eef2f6;
    border: 1px solid #d8e0e8;
}

.meetings-send-compose-field {
    padding: 0.85rem 1rem 0.75rem;
}

.meetings-send-compose-field textarea,
.meetings-send-compose-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd9e2;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.meetings-send-compose-field textarea {
    min-height: 5.5rem;
}

.meetings-send-compose-field textarea:focus,
.meetings-send-compose-field input[type="text"]:focus {
    outline: none;
    border-color: #1a5f4a;
    box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.12);
}

.meetings-send-compose-foot {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted, #6b7a82);
}

.meetings-send-auth {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e8dcc8;
    background: linear-gradient(180deg, #fffdf8 0%, #fff9f0 100%);
}

.meetings-send-auth-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.meetings-send-auth-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5ebe0;
    color: #8a5a20;
}

.meetings-send-auth-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    fill: none;
}

.meetings-send-auth-head h4 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark, #1a2e28);
    text-transform: none;
    letter-spacing: normal;
}

.meetings-send-auth-lead {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted, #5c6b63);
}

.meetings-send-auth-field {
    margin: 0;
}

.meetings-send-auth-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dcc9b0;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.meetings-send-auth-field input[type="password"]:focus {
    outline: none;
    border-color: #8a5a20;
    box-shadow: 0 0 0 3px rgba(138, 90, 32, 0.12);
}

.meetings-send-modal-footer {
    margin-top: 0.15rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eef2;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 1;
}

.meetings-send-modal-footer .auth-error,
.meetings-send-modal-footer .auth-success {
    margin-bottom: 0.75rem;
}

.meetings-send-modal-footer .doc-upload-actions {
    margin: 0;
}

.meetings-send-summary {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #f4f7fb;
    border: 1px solid #d6e4f0;
}

.meetings-send-summary-meta {
    color: var(--text-muted, #555);
    font-size: 0.95rem;
}

.meetings-send-section {
    margin: 0 0 1.25rem;
}

.meetings-send-section h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a5276;
}

.meetings-send-section-lead {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: var(--text-muted, #555);
    line-height: 1.45;
}

.meetings-send-loading {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted, #666);
    font-style: italic;
}

.meetings-recipient-empty {
    margin: 0.35rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    background: #fff8f0;
    border: 1px solid #f0dcc0;
}

.meetings-compliance-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.meetings-compliance-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.meetings-compliance-item p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted, #555);
}

.meetings-compliance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.meetings-compliance-pass {
    border-color: #b7dfc9;
    background: #f3fbf6;
}

.meetings-compliance-pass .meetings-compliance-icon {
    background: #1e8449;
    color: #fff;
}

.meetings-compliance-fail {
    border-color: #f0c9c9;
    background: #fff8f8;
}

.meetings-compliance-fail .meetings-compliance-icon {
    background: #c0392b;
    color: #fff;
}

.meetings-compliance-value {
    font-weight: normal;
    color: var(--text-muted, #555);
}

.meetings-recipient-count {
    margin: 0 0 0.5rem;
}

.meetings-recipient-list {
    margin: 0;
    padding-left: 1.1rem;
    max-height: 140px;
    overflow-y: auto;
    columns: 2;
    column-gap: 1.5rem;
}

.meetings-recipient-list li {
    break-inside: avoid;
    margin-bottom: 0.25rem;
}

.meetings-send-confirm {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #fffdf5;
    border: 1px solid #f0e6b3;
    cursor: pointer;
}

.meetings-send-confirm > span {
    flex: 1;
    min-width: 0;
}

.meetings-send-confirm .meetings-bylaws-info-btn--inline {
    flex-shrink: 0;
    margin-top: 0.05rem;
    cursor: pointer;
}

.meetings-send-confirm input {
    margin-top: 0.2rem;
}

.meetings-send-mail-note {
    margin: 0 0 1rem;
}

.meetings-send-mail-off {
    color: #a04000;
}

.legal-signature-record {
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid #1a5276;
    border-radius: 6px;
    background: #f4f9fc;
    font-size: 0.92rem;
}

.legal-certified-badge {
    margin: 0 0 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a5276;
    font-size: 0.78rem;
}

.legal-certified-meta,
.legal-certified-note {
    color: #444;
}

.legal-certified-hash code {
    font-size: 0.78rem;
    word-break: break-all;
}

@media (max-width: 640px) {
    .meetings-recipient-list {
        columns: 1;
    }

    .meetings-notice-send-btn {
        margin-left: 0;
        width: 100%;
    }

    .meetings-send-compose-head {
        flex-wrap: wrap;
    }

    .meetings-send-optional-badge {
        align-self: flex-start;
        margin-left: calc(2.25rem + 0.75rem);
    }

    .meetings-send-modal-footer .doc-upload-actions {
        flex-direction: column;
    }

    .meetings-send-modal-footer .doc-upload-actions .btn {
        width: 100%;
    }
}

/* ============================================
   Legal acceptance modals & static legal pages
   ============================================ */

.legal-acceptance-modal-host {
    z-index: 15000;
    padding: 1rem;
    background-color: rgba(15, 23, 20, 0.55);
    backdrop-filter: blur(6px);
}

body.legal-acceptance-modal-open {
    overflow: hidden;
}

.legal-acceptance-modal.modal-content {
    display: flex;
    flex-direction: column;
    width: min(44rem, 100%);
    max-width: none;
    max-height: min(92vh, 52rem);
    overflow: hidden;
    padding: 0;
    border-radius: 16px;
    box-shadow:
        0 24px 48px rgba(15, 23, 20, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    animation: legalModalEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes legalModalEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-acceptance-modal.modal-content {
        animation: none;
    }
}

.legal-acceptance-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem 1.25rem;
    align-items: start;
    padding: 1.35rem 1.5rem 1.1rem;
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-color) 55%, #3d6b4f 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
}

.legal-acceptance-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.legal-acceptance-header__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-acceptance-header__text {
    min-width: 0;
}

.legal-acceptance-step {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
}

.legal-acceptance-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

.legal-acceptance-subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.92;
    font-weight: 400;
}

.legal-acceptance-version {
    align-self: start;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.legal-acceptance-progress-wrap {
    height: 4px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

.legal-acceptance-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transition: width 0.15s ease-out;
    border-radius: 0 2px 2px 0;
}

.legal-acceptance-scroll-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.legal-acceptance-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.35rem 1.5rem 1.75rem;
    -webkit-overflow-scrolling: touch;
}

.legal-acceptance-scroll:focus {
    outline: none;
}

.legal-acceptance-scroll:focus-visible {
    box-shadow: inset var(--focus-ring);
}

.legal-acceptance-scroll-fade {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, transparent, var(--bg-white));
    opacity: 1;
    transition: opacity 0.25s ease;
}

.legal-acceptance-modal-host.legal-acceptance-at-bottom .legal-acceptance-scroll-fade {
    opacity: 0;
}

.legal-acceptance-modal .legal-document {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.legal-acceptance-modal .legal-document .legal-lead {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--surface-muted);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal-acceptance-modal .legal-document h2,
.legal-page .legal-document h2 {
    margin: 1.5rem 0 0.65rem;
    padding-top: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-top: 1px solid var(--border-subtle);
}

.legal-acceptance-modal .legal-document h2:first-of-type,
.legal-page .legal-document h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-acceptance-modal .legal-document p,
.legal-page .legal-document p {
    margin: 0 0 0.85rem;
}

.legal-acceptance-modal .legal-document ul,
.legal-page .legal-document ul {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.legal-acceptance-modal .legal-document li,
.legal-page .legal-document li {
    margin-bottom: 0.45rem;
}

.legal-acceptance-modal .legal-document li:last-child,
.legal-page .legal-document li:last-child {
    margin-bottom: 0;
}

.legal-acceptance-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem 1.35rem;
    background: var(--bg-white);
    border-top: 1px solid var(--border-subtle);
    border-radius: 0 0 16px 16px;
}

.legal-acceptance-hint-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    background: #f8faf9;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.legal-acceptance-modal-host.legal-acceptance-at-bottom .legal-acceptance-hint-row {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    margin: 0;
    padding: 0;
    border: 0;
}

.legal-acceptance-hint-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--primary-color);
    animation: legalHintBounce 1.6s ease-in-out infinite;
}

.legal-acceptance-hint-icon svg {
    width: 1rem;
    height: 1rem;
}

@keyframes legalHintBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-acceptance-hint-icon {
        animation: none;
    }
}

.legal-acceptance-hint {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
}

.legal-acceptance-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.legal-acceptance-full {
    margin: 0;
    font-size: 0.875rem;
}

.legal-acceptance-full a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legal-acceptance-full a:hover {
    text-decoration: underline;
}

.legal-acceptance-full a::after {
    content: "↗";
    font-size: 0.8em;
    opacity: 0.75;
}

.legal-acceptance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.legal-acceptance-actions .btn {
    min-width: 8.5rem;
}

.legal-acceptance-actions .btn-primary {
    flex: 1 1 auto;
    max-width: 100%;
}

.legal-acceptance-modal-host.legal-acceptance-at-bottom .legal-acceptance-actions .btn-primary:not(:disabled) {
    box-shadow: 0 4px 14px rgba(45, 90, 61, 0.35);
}

.legal-acceptance-error {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #9b1c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.legal-acceptance-error:not([hidden]) {
    display: block;
}

/* Static legal pages */
.legal-page .legal-version {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.legal-page .legal-document {
    max-width: 42rem;
    padding: 1.75rem 2rem 2.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    font-size: 0.975rem;
    line-height: 1.65;
}

.legal-page .legal-document .legal-lead {
    margin: 0 0 1.35rem;
    padding: 1rem 1.2rem;
    background: var(--surface-muted);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.legal-acceptance-reminder {
    max-width: 42rem;
    margin-bottom: 1.25rem;
}

.legal-acceptance-reminder-text {
    margin: 0;
}

.legal-acceptance-reminder time {
    font-weight: 600;
    color: var(--primary-dark);
}

@media (max-width: 600px) {
    .legal-acceptance-modal-host {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .legal-acceptance-modal.modal-content {
        max-height: 96vh;
        border-radius: 16px 16px 0 0;
    }

    .legal-acceptance-header {
        grid-template-columns: auto 1fr;
        padding: 1.15rem 1.15rem 1rem;
    }

    .legal-acceptance-version {
        grid-column: 2;
        justify-self: start;
        margin-top: -0.25rem;
    }

    .legal-acceptance-scroll {
        padding: 1.15rem 1.15rem 1.5rem;
    }

    .legal-acceptance-footer {
        padding: 0.85rem 1.15rem 1.15rem;
        padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
    }

    .legal-acceptance-actions {
        flex-direction: column-reverse;
    }

    .legal-acceptance-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .legal-page .legal-document {
        padding: 1.25rem 1.15rem 1.75rem;
    }
}

/* Legal document preview (screen) — print/export uses meetings-legal-document.js */
.legal-doc-paper .legal-doc {
    font-family: "Times New Roman", Times, serif;
    font-size: 12pt;
    line-height: 1.45;
    color: #000;
}
.legal-doc-paper .legal-letterhead {
    text-align: center;
    margin: 0 0 14pt;
    padding-bottom: 10pt;
    border-bottom: 1.5pt solid #000;
}
.legal-doc-paper .legal-letterhead .corp-name {
    font-size: 13pt;
    font-weight: bold;
    letter-spacing: 0.04em;
    margin: 0 0 4pt;
}
.legal-doc-paper .legal-letterhead .corp-sub,
.legal-doc-paper .legal-letterhead .corp-meta {
    font-size: 10pt;
    margin: 0 0 4pt;
}
.legal-doc-paper .legal-committee {
    font-size: 11pt;
    font-weight: bold;
    margin: 10pt 0 0;
    letter-spacing: 0.03em;
}
.legal-doc-paper .legal-title {
    text-align: center;
    font-size: 12pt;
    font-weight: bold;
    text-transform: uppercase;
    margin: 16pt 0 12pt;
    letter-spacing: 0.06em;
}
.legal-doc-paper .legal-sample {
    text-align: center;
    font-size: 10pt;
    font-style: italic;
    margin: -8pt 0 14pt;
}
.legal-doc-paper .legal-memo {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16pt;
    font-size: 12pt;
}
.legal-doc-paper .legal-memo .label {
    width: 72pt;
    font-weight: bold;
    padding-right: 8pt;
    vertical-align: top;
}
.legal-doc-paper .legal-body p {
    margin: 0 0 12pt;
    text-align: justify;
}
.legal-doc-paper .legal-details dt {
    font-weight: bold;
    float: left;
    clear: left;
    width: 64pt;
}
.legal-doc-paper .legal-details dd {
    margin: 0 0 6pt 72pt;
}
.legal-doc-paper .legal-agenda-title,
.legal-doc-paper .legal-section-title {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11pt;
    margin: 14pt 0 8pt;
}
.legal-doc-paper .legal-agenda {
    margin: 0 0 14pt 24pt;
}
.legal-doc-paper .legal-attendance,
.legal-doc-paper .legal-proceedings {
    margin: 0 0 12pt 18pt;
    white-space: pre-wrap;
    text-align: justify;
}
.legal-doc-paper .legal-sig-line {
    margin-top: 36pt;
    border-top: 1pt solid #000;
    width: 240pt;
    padding-top: 6pt;
}
.legal-doc-paper .legal-minutes-header p {
    margin: 0 0 6pt;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Document card admin — subtle remove */
.document-admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0 0.75rem;
}

.doc-remove-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-light, #6c757d);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doc-remove-btn:hover,
.doc-remove-btn:focus-visible {
    color: #a32020;
}

/* Audit log tabs */
.audit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}

.audit-tab {
    border: 1px solid var(--border-color, #dee2e6);
    background: #fff;
    color: var(--text-color, #333);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.audit-tab.is-active {
    background: var(--primary-color, #2c5282);
    border-color: var(--primary-color, #2c5282);
    color: #fff;
}

.audit-details {
    max-width: 280px;
    font-size: 0.9rem;
    color: var(--text-light, #555);
}

/* Administrator-only document notice (document-restricted.html) */
.document-restricted-card {
    max-width: 32rem;
}

.document-restricted-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary-color, #4a7c59);
    margin: 0 0 0.5rem;
}

.document-restricted-resource {
    font-size: 0.9rem;
    color: var(--text-light, #6c757d);
    margin: 0 0 1rem;
    word-break: break-word;
}

.document-restricted-info {
    margin: 1.25rem 0;
    text-align: left;
}

.document-restricted-contacts-title {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--primary-color, #2c5530);
}

.document-restricted-admins {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.document-restricted-admins li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    font-size: 0.95rem;
    line-height: 1.5;
}

.document-restricted-admins li:last-child {
    border-bottom: none;
}

.document-restricted-admins a {
    color: var(--primary-color, #2c5530);
    font-weight: 600;
}

.document-restricted-name {
    display: block;
    font-weight: 600;
    color: var(--text-color, #2c3e50);
}

.document-restricted-role {
    font-weight: 400;
    color: var(--text-light, #6c757d);
}

.document-restricted-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.document-restricted-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
}

/* Committee pages — layout, nav, meetings workflow */
body.committee-page .main-content,
body[data-committee] .main-content {
    max-width: 960px;
}

.committee-page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 5.5rem;
    z-index: 50;
}

.committee-page-nav a {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    background: var(--bg-light);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.committee-page-nav a:hover,
.committee-page-nav a.is-active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

body[data-committee] .accordion.committee-accordion > .accordion-header,
.committee-page .accordion.committee-accordion > .accordion-header {
    background: var(--accordion-section-bg);
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

body[data-committee] .accordion.committee-accordion > .accordion-header::after,
.committee-page .accordion.committee-accordion > .accordion-header::after {
    color: var(--primary-color);
}

body[data-committee] .accordion.committee-accordion > .accordion-header:hover,
.committee-page .accordion.committee-accordion > .accordion-header:hover {
    background: #e4ebe6;
}

body[data-committee] .accordion.committee-accordion > .accordion-content,
.committee-page .accordion.committee-accordion > .accordion-content {
    background: var(--bg-white);
}

.committee-workflow {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .committee-workflow {
        grid-template-columns: repeat(2, 1fr);
    }
}

.committee-workflow li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-dark);
    padding: 0.65rem 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.committee-workflow-step {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.committee-meeting-tabs {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-white);
}

.committee-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.committee-tab-list [data-cmt-tab] {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 0.85rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.committee-tab-list [data-cmt-tab].active,
.committee-tab-list [data-cmt-tab][aria-selected="true"] {
    color: var(--primary-color);
    background: var(--bg-white);
    border-bottom-color: var(--primary-color);
}

.committee-tab-panel {
    padding: 1.25rem;
}

.committee-tab-panel[hidden] {
    display: none !important;
}

.committee-tab-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.5;
}

.committee-archive {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.committee-archive h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin: 0 0 0.35rem;
}

.committee-archive-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.committee-tools-hub {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 600px) {
    .committee-tools-hub {
        grid-template-columns: repeat(2, 1fr);
    }
}

.committee-tools-hub-card {
    padding: 1rem 1.15rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.committee-tools-hub-card h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--primary-color);
}

.committee-tools-hub-card p {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--text-light);
}

.committee-tools-hub-card ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
}

.committee-tools-hub-card a {
    color: var(--primary-color);
}

.committee-form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .committee-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .committee-form-grid .committee-form-full {
        grid-column: 1 / -1;
    }
}

/* ——— Community (Reddit-style) ——— */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.community-page-body {
    background: #dae0e6;
}

.community-page.community-main {
    max-width: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.community-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1rem 2.5rem;
}

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

.community-reddit-sidebar {
    position: sticky;
    top: 0.75rem;
    max-height: calc(100vh - 1.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.community-reddit-sidebar-inner {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 1.5rem);
}

.community-reddit-sidebar-head {
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #edeff1;
}

.community-reddit-brand {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
}

.community-reddit-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #787c7e;
}

.community-reddit-sidebar-section {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid #edeff1;
    overflow-y: auto;
}

.community-reddit-threads-section {
    flex: 1;
    min-height: 0;
}

.community-reddit-section-title {
    margin: 0 0 0.5rem;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #787c7e;
}

.community-reddit-threads-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.35rem 0.5rem;
}

.community-reddit-threads-toolbar .community-reddit-section-title {
    margin: 0;
    padding: 0;
}

.community-reddit-segment {
    display: flex;
    padding: 2px;
    background: #f6f7f8;
    border-radius: 999px;
    border: 1px solid #edeff1;
}

.community-reddit-segment-btn {
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    color: #787c7e;
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.community-reddit-segment-btn.is-active {
    color: var(--primary-color);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.community-reddit-space-group {
    margin-bottom: 0.5rem;
}

.community-reddit-space-group-name {
    margin: 0.35rem 0 0.25rem;
    padding: 0 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #878a8c;
}

.community-reddit-space-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.community-reddit-space-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    text-align: left;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.community-reddit-space-link:hover {
    background: #f6f7f8;
}

.community-reddit-space-link.is-active {
    background: #e8f4f8;
    color: var(--primary-color);
}

.community-reddit-space-link.is-active .community-reddit-space-dot {
    background: var(--primary-color);
}

.community-reddit-space-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccd0d5;
    flex-shrink: 0;
}

.community-reddit-thread-list {
    list-style: none;
    margin: 0;
    padding: 0 0.25rem;
}

.community-reddit-thread-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.55rem;
    margin-bottom: 2px;
    text-align: left;
    font-family: inherit;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.community-reddit-thread-link:hover {
    background: #f6f7f8;
}

.community-reddit-thread-link.is-active {
    background: #fff;
    box-shadow: inset 3px 0 0 var(--primary-color);
    font-weight: 700;
}

.community-reddit-thread-label {
    font-size: 0.88rem;
    color: #1a1a1b;
    line-height: 1.3;
}

.community-reddit-thread-count {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #787c7e;
    background: #edeff1;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.community-reddit-thread-link.is-active .community-reddit-thread-count {
    background: #e8f4f8;
    color: var(--primary-color);
}

.community-reddit-thread-admin {
    display: flex;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem 0.5rem;
}

.community-reddit-thread-admin-btn {
    font-size: 0.72rem;
    font-family: inherit;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.community-reddit-thread-admin-btn--danger {
    color: #9a3412;
}

.community-reddit-empty,
.community-reddit-empty-sm {
    margin: 0.5rem;
    font-size: 0.82rem;
    color: #787c7e;
}

.community-reddit-guidelines {
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
    color: #787c7e;
    border-top: 1px solid #edeff1;
}

.community-reddit-guidelines summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a1a1b;
}

.community-reddit-guidelines p {
    margin: 0.5rem 0 0;
}

.community-reddit-main {
    min-width: 0;
}

.community-reddit-main-header {
    margin-bottom: 0.75rem;
}

.community-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: #787c7e;
}

.community-breadcrumb a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.community-breadcrumb a:hover {
    text-decoration: underline;
}

.community-breadcrumb-sep {
    color: #ccd0d5;
}

.community-breadcrumb-thread {
    font-weight: 700;
    color: #1a1a1b;
}

.community-space-banner {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #474749;
}

.community-feed-empty {
    background: #fff;
    border: 1px dashed #ccd0d5;
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #787c7e;
    font-size: 0.95rem;
}

.community-reddit-compose {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.community-reddit-compose-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.community-reddit-compose-avatar {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.community-reddit-compose-fields {
    flex: 1;
    min-width: 0;
}

.community-reddit-compose-input {
    width: 100%;
    min-height: 4rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #edeff1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    background: #f6f7f8;
}

.community-reddit-compose-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.community-reddit-compose-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.community-reddit-post-btn {
    min-width: 5rem;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
}

.community-reddit-feed-wrap {
    background: transparent;
}

.community-reddit-feed {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.community-reddit-post {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.community-reddit-post .community-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.community-reddit-post-body-wrap {
    min-width: 0;
}

.community-reddit-post .community-post-head {
    margin-bottom: 0.35rem;
}

.community-reddit-post .community-post-meta-row {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.community-reddit-comments-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    color: #1a1a1b;
    background: #f6f7f8;
    border: 1px solid #edeff1;
    border-radius: 999px;
    cursor: pointer;
}

.community-reddit-comments-btn:hover {
    background: #edeff1;
    border-color: #ccd0d5;
}

.community-reddit-feed-empty {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.community-reddit-feed-empty-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1b;
}

.community-reddit-feed-empty-hint {
    margin: 0;
    color: #787c7e;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .community-reddit-layout {
        grid-template-columns: 1fr;
    }

    .community-reddit-sidebar {
        position: static;
        max-height: none;
    }

    .community-reddit-sidebar-inner {
        max-height: none;
    }
}

.community-hero {
    padding: 1.75rem 0 1rem;
}

.community-hero-inner {
    max-width: 40rem;
}

.community-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color, #c45c26);
}

.community-hero-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.15;
}

.community-hero-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-light);
}

.community-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    padding: 0;
}

.community-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.community-subnav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.community-subnav-link.is-active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.community-subnav-icon {
    opacity: 0.65;
    font-size: 0.65rem;
}

.community-subnav-link.is-active .community-subnav-icon {
    opacity: 1;
}

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

.community-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.community-panel-title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

.community-panel--spaces {
    padding: 1rem 1rem 0.85rem;
    margin-bottom: 0.75rem;
}

.community-panel--threads {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.community-threads-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.community-threads-head .community-panel-title {
    margin: 0;
}

.community-archive-toggle {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
}

.community-archive-toggle:hover,
.community-archive-toggle.is-active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.community-banner--archive {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 8px;
}

.community-thread-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 22rem;
    overflow-y: auto;
}

.community-thread-item {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.community-thread-item.is-active {
    background: #eef6f9;
    border-color: #b8d4e0;
}

.community-thread-select {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.55rem 0.65rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
}

.community-thread-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.community-thread-item-count {
    font-size: 0.75rem;
    color: var(--text-light);
}

.community-thread-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding-right: 0.35rem;
}

.community-thread-action {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    font-family: inherit;
    color: var(--primary-color);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.community-thread-action--danger {
    color: #9a3412;
}

.community-thread-admin {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-color);
}

.community-new-thread-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.community-new-thread-form input {
    width: 100%;
    margin-bottom: 0.45rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
}

.community-submit-btn--sm {
    width: 100%;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
}

.community-thread-heading {
    margin-bottom: 0.75rem;
}

.community-thread-title {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.community-thread-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.45;
}

.community-archive-mode .community-compose-panel {
    display: none;
}

.community-guidelines {
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

.community-guidelines summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
}

.community-guidelines p {
    margin: 0.65rem 0 0;
}

.community-banner {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.community-banner--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.community-compose-panel {
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.community-compose-label {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.community-compose-input {
    width: 100%;
    min-height: 5.5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.community-compose-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring, 0 0 0 3px rgba(0, 80, 120, 0.15));
}

.community-compose-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.community-compose-error {
    flex: 1 1 100%;
    margin: 0;
}

.community-submit-btn {
    min-width: 7rem;
}

.community-feed-panel {
    padding: 1rem 1.25rem 1.25rem;
}

.community-feed-header {
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
}

.community-feed-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

.community-loading,
.community-empty,
.community-error {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.community-empty-sm {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .community-layout {
        grid-template-columns: 1fr;
    }

    .community-sidebar {
        order: 0;
    }

    .community-space-pills {
        flex-wrap: wrap;
    }
}

.community-badge {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    background: var(--accent-color, #c45c26);
    border-radius: 999px;
    vertical-align: middle;
}

.community-space-nav {
    margin-bottom: 0.5rem;
}

.community-sidebar .community-space-pills {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
}

.community-sidebar .community-space-pill {
    text-align: left;
    border-radius: 8px;
}

.community-sidebar .community-space-groups {
    margin-bottom: 0.5rem;
}

.community-space-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.community-space-group-tab {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-light);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
}

.community-space-group-tab:hover {
    color: var(--primary-color);
}

.community-space-group-tab.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.community-space-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.community-space-pill {
    flex: 0 0 auto;
    padding: 0.4rem 0.9rem;
    font-size: 0.88rem;
    color: var(--text-color);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.community-space-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.community-space-pill.is-active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.community-space-context {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.community-space-portal-link {
    margin-left: 0.35rem;
    font-weight: 600;
    white-space: nowrap;
}

.community-select {
    width: 100%;
    max-width: 24rem;
    margin: 0.35rem 0 0.75rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.community-compose textarea,
.community-chat-form textarea {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.community-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-post {
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fafbfc;
    transition: box-shadow 0.15s ease;
}

.community-post--pinned {
    background: #f8faf6;
    border-color: #c5dcc9;
    box-shadow: inset 3px 0 0 #2d6a3e;
}

.community-post-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.community-post-author {
    font-size: 0.95rem;
}

.community-post-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

.community-post-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.community-avatar {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.community-post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.community-post-meta time {
    color: var(--text-light);
    font-size: 0.8rem;
}

.community-post-role {
    color: var(--text-light);
}

.community-post-body {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    margin-bottom: 0.65rem;
}

.community-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.community-btn-ghost {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.4rem;
}

.community-btn-ghost--mod {
    color: #9a3412;
}

.community-btn-ghost--mod:hover {
    color: #c2410c;
    text-decoration: underline;
}

.community-btn-sm {
    width: auto;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}

.community-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: #eee;
    margin-left: 0.35rem;
}

.community-tag--pin {
    background: #e8f4ea;
    color: #2d6a3e;
}

.community-comments {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.community-comment {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.community-comment .community-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.7rem;
}

.community-comment p {
    margin: 0.25rem 0 0;
    white-space: pre-wrap;
}

/* Member directory — wide layout, card/list views */
.community-directory-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

.community-directory-shell {
    width: 100%;
}

.community-directory-header {
    margin-bottom: 1.5rem;
}

.community-directory-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    color: var(--primary-color);
    font-weight: 700;
}

.community-directory-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-light);
    max-width: 52rem;
}

.community-directory-count {
    margin: 0.65rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
}

.community-directory-controls {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.community-directory-controls-primary {
    display: grid;
    gap: 0.85rem 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .community-directory-controls-primary {
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
        align-items: end;
    }
}

.community-directory-search-wrap {
    position: relative;
}

.community-directory-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-light);
    transition: border-color 0.2s;
}

.community-directory-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.community-directory-search-clear {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.community-directory-search-clear:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.community-directory-category-field {
    margin: 0;
}

.community-directory-category-field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.community-directory-category-field select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
}

.community-directory-controls-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.community-directory-summary {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    flex: 1 1 12rem;
}

.community-directory-view-toggle {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.community-directory-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
}

.community-directory-view-btn + .community-directory-view-btn {
    border-left: 1px solid var(--border-color);
}

.community-directory-view-btn.is-active {
    background: var(--primary-color);
    color: #fff;
}

.community-directory-grid {
    display: grid;
    gap: 1.25rem;
}

.community-directory-grid.is-view-cards {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .community-directory-grid.is-view-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.community-directory-grid.is-view-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.community-directory-item {
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.community-directory-grid.is-view-cards .community-directory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.35rem 1.35rem;
    min-height: 100%;
}

.community-directory-grid.is-view-list .community-directory-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.1rem 1.25rem;
    align-items: center;
    padding: 1.15rem 1.35rem;
    text-align: left;
}

@media (max-width: 639px) {
    .community-directory-grid.is-view-list .community-directory-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .community-directory-grid.is-view-list .community-directory-item-media,
    .community-directory-grid.is-view-list .community-directory-item-aside {
        justify-self: center;
    }
}

.community-directory-avatar--directory,
.community-avatar--directory {
    margin-bottom: 0.35rem;
}

.community-directory-grid.is-view-list .community-avatar--directory {
    margin-bottom: 0;
}

.community-directory-item-body {
    min-width: 0;
    width: 100%;
}

.community-directory-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.6rem;
    margin-bottom: 0.5rem;
}

.community-directory-grid.is-view-list .community-directory-item-head {
    justify-content: flex-start;
}

.community-directory-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.community-directory-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.community-directory-badge--board-member,
.community-directory-badge--admin {
    background: #e8f2ec;
    border-color: #b8d4c4;
    color: #1a4d32;
}

.community-directory-badge--active-member {
    background: #eef4fb;
    border-color: #b8cfe8;
    color: #1a3d66;
}

.community-directory-badge--tal-tiol {
    background: #f6f0e8;
    border-color: #dcc9a8;
    color: #5c3d12;
}

.community-directory-meta-line {
    margin: 0.15rem 0;
    font-size: 0.92rem;
    color: var(--text-light);
}

.community-directory-loc {
    color: var(--text-light);
}

.community-directory-bio {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-directory-grid.is-view-list .community-directory-bio {
    -webkit-line-clamp: 2;
}

.community-directory-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.community-directory-grid.is-view-list .community-directory-actions {
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    min-width: 8.5rem;
}

.community-directory-grid.is-view-list .community-directory-item-aside .community-directory-actions {
    align-items: flex-end;
}

@media (max-width: 639px) {
    .community-directory-grid.is-view-list .community-directory-item-aside .community-directory-actions {
        align-items: center;
    }
}

.community-directory-empty,
.community-directory-loading,
.community-directory-error {
    grid-column: 1 / -1;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    background: var(--bg-white);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

.community-directory-error {
    color: #a33;
}

.community-directory-role,
.community-directory-loc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.community-messages-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.community-messages-head h2 {
    margin: 0;
}

.community-broadcast-intro {
    margin: 0;
}

.community-broadcast-preview {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: #f4f7fb;
    border: 1px solid #d6e4f0;
}

.community-broadcast-count {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.community-broadcast-recipients {
    margin: 0;
    padding-left: 1.1rem;
    max-height: 120px;
    overflow-y: auto;
    columns: 2;
    column-gap: 1.25rem;
    font-size: 0.88rem;
}

.community-broadcast-recipients li {
    break-inside: avoid;
    margin-bottom: 0.2rem;
}

.community-broadcast-confirm {
    margin-top: 0.25rem;
}

.auth-field-optional {
    font-weight: normal;
    color: var(--text-muted, #5c6b63);
    font-size: 0.85em;
}

@media (max-width: 640px) {
    .community-broadcast-recipients {
        columns: 1;
    }
}

.community-messages-grid {
    display: grid;
    gap: 1rem;
    min-height: 20rem;
}

@media (min-width: 768px) {
    .community-messages-grid {
        grid-template-columns: 16rem 1fr;
    }
}

.community-conv-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 28rem;
    overflow-y: auto;
}

.community-conv-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    padding: 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.community-conv-item.is-active {
    border-color: var(--primary-color);
    background: #f7faf8;
}

.community-conv-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
    min-width: 0;
}

.community-conv-preview {
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-chat {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    min-height: 18rem;
}

.community-chat-title {
    margin: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.community-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.community-chat-msg {
    max-width: 85%;
    align-self: flex-start;
}

.community-chat-msg--mine {
    align-self: flex-end;
    text-align: right;
}

.community-chat-bubble {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: var(--bg-light);
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

.community-chat-msg--mine .community-chat-bubble {
    background: #e3f0e8;
}

.community-chat-msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.community-chat-msg:not(.community-chat-msg--mine) .community-chat-msg-meta {
    justify-content: flex-start;
}

.community-chat-msg time {
    display: block;
}

.community-chat-delete {
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.community-chat-delete:hover,
.community-chat-delete:focus-visible {
    color: #a33;
}

.community-delete-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.community-delete-dialog[hidden] {
    display: none !important;
}

.community-delete-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.community-delete-dialog__panel {
    position: relative;
    width: min(28rem, 100%);
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.community-delete-dialog__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.community-delete-dialog__message {
    margin: 0 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.45;
}

.community-delete-dialog__reason-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.community-delete-dialog__reason {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
    min-height: 4.5rem;
}

.community-delete-dialog__error {
    margin: 0 0 0.75rem;
    color: #a33;
    font-size: 0.85rem;
}

.community-delete-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.community-delete-dialog__confirm--danger {
    background: #8b2e2e;
}

.community-delete-dialog__confirm--danger:hover {
    background: #6f2424;
}

body.community-delete-dialog-open {
    overflow: hidden;
}

.community-chat-form {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.community-loading,
.community-empty,
.community-empty-sm,
.community-error {
    color: var(--text-light);
    font-size: 0.9rem;
}

.community-error {
    color: #a33;
}

.nav-menu--compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.community-footer .footer-bottom {
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.community-avatar--lg {
    width: 5rem;
    height: 5rem;
    font-size: 1.25rem;
}

.community-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.community-profile-photo-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.community-upload-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.community-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0.35rem 0 0;
}

.community-profile-banner {
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #fff8f0;
    border: 1px solid #f0dcc8;
}

.community-profile-banner--ok {
    background: #eef8f1;
    border-color: #c5e6ce;
}

.community-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.community-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 32rem;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.community-modal h4 {
    margin: 1rem 0 0.35rem;
    font-size: 0.92rem;
    color: var(--primary-color);
}

.community-modal p {
    margin: 0 0 0.5rem;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 0.9rem;
}

.community-modal-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.community-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-light);
}

/* YIF Pathway (training) */
.pathway-return-bar {
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.875rem;
}

.pathway-return-bar__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.55rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pathway-return-bar__back {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.pathway-return-bar__back:hover {
    text-decoration: underline;
}

.pathway-return-bar__context {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.pathway-return-bar__dismiss {
    margin-left: auto;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
    border-radius: 4px;
}

.pathway-return-bar__dismiss:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.06);
}

.pathway-page .page-header--stacked {
    margin-bottom: 1.25rem;
}

.pathway-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

.pathway-track-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pathway-track-btn:hover {
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.pathway-track-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pathway-progress {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.pathway-progress-bar {
    height: 8px;
    background: var(--surface-muted);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.pathway-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 0.25s ease;
}

.pathway-progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.pathway-progress-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    font-style: italic;
}

.pathway-ladder {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.pathway-ladder h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.pathway-ladder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
}

.pathway-ladder-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem 0.65rem 2.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.pathway-ladder-ring {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) calc(var(--ring-pct, 0) * 1%), #e8ecef 0);
    box-shadow: inset 0 0 0 3px #fff;
}

.pathway-ladder-link.is-active .pathway-ladder-ring {
    box-shadow: inset 0 0 0 3px var(--primary-color);
    background: conic-gradient(#fff calc(var(--ring-pct, 0) * 1%), rgba(255, 255, 255, 0.35) 0);
}

.pathway-ladder-check {
    font-weight: 700;
    color: var(--secondary-color);
    margin-left: 0.25rem;
}

.pathway-ladder-link.is-active .pathway-ladder-check {
    color: #fff;
}

.pathway-ladder-link--certified {
    border-color: rgba(45, 106, 79, 0.25);
}

.pathway-ladder-link--locked {
    opacity: 0.72;
    cursor: not-allowed;
}

.pathway-ladder-link--locked:hover {
    background: transparent;
    border-color: transparent;
}

.pathway-ladder-lock {
    display: inline-block;
    width: 0.45rem;
    height: 0.55rem;
    margin-left: 0.35rem;
    border: 2px solid currentColor;
    border-radius: 2px 2px 0 0;
    vertical-align: middle;
    opacity: 0.85;
}

.pathway-ladder-lock::after {
    content: "";
    display: block;
    width: 0.7rem;
    height: 0.35rem;
    margin: -0.45rem 0 0 -0.2rem;
    border: 2px solid currentColor;
    border-radius: 6px 6px 0 0;
}

.pathway-checkpoint--required {
    border-color: #9bb8d9;
}

.pathway-checkpoint-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    background: #2d6a4f;
    color: #fff;
    vertical-align: middle;
}

.pathway-notice-card {
    position: relative;
    z-index: 2;
    max-width: 26rem;
    margin: 15vh auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.pathway-notice-card p {
    margin: 0 0 1rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.pathway-ladder-link:hover {
    background: var(--surface-muted);
    border-color: var(--border-subtle);
}

.pathway-ladder-link.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pathway-ladder-link.is-active .pathway-ladder-num,
.pathway-ladder-link.is-active .pathway-ladder-label,
.pathway-ladder-link.is-active .pathway-ladder-tag {
    color: #fff;
}

.pathway-stage-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin: 0.85rem 0 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.pathway-stage-nav-main {
    min-width: 0;
    text-align: center;
}

.pathway-stage-nav-status {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.pathway-stage-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pathway-stage-nav-btn:hover:not(:disabled) {
    background: var(--bg-white);
    border-color: var(--accent-primary);
}

.pathway-stage-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pathway-stage-nav-arrow {
    font-size: 1.05rem;
    line-height: 1;
}

.pathway-stage-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.pathway-stage-dot {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.45rem;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pathway-stage-dot:hover:not(:disabled) {
    border-color: var(--accent-primary);
}

.pathway-stage-dot.is-active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.pathway-stage-dot--locked {
    opacity: 0.55;
}

.pathway-stage-dot--locked.is-active {
    opacity: 0.75;
}

.pathway-stage-panels,
.pathway-accordions {
    min-height: 4rem;
    scroll-margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pathway-accordions--guided .pathway-accordion:not(.is-open) {
    display: none;
}

.pathway-accordion {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.pathway-accordion--certified {
    border-color: rgba(45, 106, 79, 0.35);
}

.pathway-accordion--locked {
    opacity: 0.88;
}

.pathway-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    position: relative;
    font: inherit;
    color: inherit;
    transition: background 0.15s ease;
}

.pathway-accordion-trigger:hover {
    background: var(--surface-muted);
}

.pathway-accordion.is-open > .pathway-accordion-trigger {
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.pathway-accordion--first30.is-open > .pathway-accordion-trigger {
    background: linear-gradient(135deg, #e8f5e9 0%, #f5faf6 100%);
    border-bottom-color: #c5d6ca;
}

.pathway-accordion-trigger .pathway-ladder-ring {
    left: 0.65rem;
}

.pathway-accordion-trigger .pathway-level-num {
    flex-shrink: 0;
    margin: 0;
}

.pathway-accordion-chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-left: auto;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.pathway-accordion.is-open > .pathway-accordion-trigger .pathway-accordion-chevron {
    transform: rotate(45deg);
    margin-top: -0.15rem;
}

.pathway-accordion-panel {
    padding: 0 1rem 1.15rem;
}

.pathway-accordion-panel[hidden] {
    display: none !important;
}

.pathway-intro-details {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-white);
}

.pathway-intro-summary {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--primary-color);
    list-style: none;
}

.pathway-intro-summary::-webkit-details-marker {
    display: none;
}

.pathway-intro-body {
    margin-top: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-light);
}

.pathway-intro-body > p:first-child {
    margin-top: 0;
}

.pathway-page {
    scroll-padding-top: 6rem;
}

.pathway-stage-panel {
    display: none;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card);
}

.pathway-stage-panel.is-active {
    display: block;
}

.pathway-stage-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    scroll-margin-top: 6rem;
}

.pathway-stage-header .pathway-level-num {
    margin: 0;
}

.pathway-stage-heading {
    flex: 1;
    min-width: 0;
}

.pathway-stage-heading h3 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.pathway-stage-progress {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.pathway-stage-panel--first30 .pathway-stage-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #f5faf6 100%);
    margin: -1.25rem -1.5rem 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #c5d6ca;
    border-radius: 10px 10px 0 0;
}

.pathway-stage-body > p:first-child {
    margin-top: 0;
}

.pathway-checkpoint {
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f6ff 0%, #f8fafc 100%);
    border: 1px solid #c5d4e8;
}

.pathway-checkpoint-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.pathway-checkpoint-desc,
.pathway-checkpoint-hint {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.pathway-checkpoint-status--passed {
    margin: 0;
    font-weight: 600;
    color: #2d6a4f;
}

.pathway-checkpoint-start {
    margin-top: 0.25rem;
}

.pathway-quiz-card--checkpoint {
    max-width: 36rem;
}

.pathway-ladder-num {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.pathway-ladder-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.pathway-ladder-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

#pathway-first30 {
    margin-bottom: 1.5rem;
}

.pathway-first30-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: first30-step;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pathway-first30-item {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: #fafcfb;
}

.pathway-first30-item--done {
    border-color: rgba(45, 106, 79, 0.35);
    background: #f4faf6;
}

.pathway-first30-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
}

.pathway-first30-step {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.pathway-first30-mins {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pathway-first30-lead {
    margin: 0 0 0.5rem;
    color: var(--text-light);
}

.pathway-first30-howto {
    margin: 0 0 0.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: #eef6f0;
    border: 1px solid #c5d6ca;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.pathway-first30-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
}

.pathway-first30-desc {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.pathway-first30-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.pathway-first30-open-btn {
    min-width: 11rem;
    min-height: 2.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.pathway-first30-done {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.pathway-first30-done input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.pathway-first30-body > p:first-child {
    margin-top: 0;
}

.pathway-first30-accordion > .pathway-accordion-header {
    background: #e8f5e9;
}

.pathway-first30-accordion > .pathway-accordion-header:hover {
    background: #dcefe0;
}

.pathway-level-accordion {
    margin-bottom: 1rem;
}

.pathway-accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.pathway-accordion-header .pathway-level-num {
    margin: 0;
}

.pathway-accordion-heading {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
}

.pathway-accordion-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.35;
}

.pathway-level-progress {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.pathway-level-body > p:first-child {
    margin-top: 0;
}

.pathway-level-num {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
}

.pathway-level-tagline {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.9em;
}

.pathway-outcome {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.pathway-modules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pathway-level-howto {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: #eef6f0;
    border: 1px solid #c5d6ca;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.pathway-module {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: #fafcfb;
}

.pathway-module--done {
    border-color: rgba(45, 106, 79, 0.35);
    background: #f4faf6;
}

.pathway-module-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
}

.pathway-module-title-text {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
}

.pathway-module--placeholder .pathway-module-title-text {
    color: var(--text-light);
}

.pathway-module-desc {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.pathway-module-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.pathway-module-open-btn {
    min-width: 11rem;
    min-height: 2.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.pathway-module-done {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.pathway-module-done input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.pathway-module-mins {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pathway-module-badge {
    font-size: 0.75rem;
    background: var(--surface-muted);
    color: var(--text-muted);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.pathway-guides {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.pathway-guides a {
    font-size: 0.9rem;
}

.pathway-privacy-note {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: var(--text-light);
}

.pathway-module--done .pathway-module-title-text {
    font-weight: 600;
}

.pathway-diploma-root {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pathway-diploma-root[hidden] {
    display: none !important;
}

.pathway-diploma-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.pathway-diploma-card {
    position: relative;
    max-width: 26rem;
    width: 100%;
    padding: 1.75rem 1.5rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(165deg, #fffef8 0%, #f4f7fb 55%, #e8f0ea 100%);
    border: 2px solid var(--primary-color, #1a5f4a);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.pathway-diploma-seal {
    font-size: 2rem;
    color: var(--primary-color, #1a5f4a);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.pathway-diploma-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--primary-color, #1a5f4a);
}

.pathway-diploma-name {
    margin: 0 0 0.35rem;
    font-weight: 600;
    font-size: 1rem;
}

.pathway-diploma-lead {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color, #333);
}

.pathway-diploma-module {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.pathway-diploma-footnote {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pathway-diploma-close {
    min-width: 7rem;
}

.pathway-quiz-card {
    position: relative;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-color, #dde3ea);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.pathway-quiz-intro {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--text-light);
}

.pathway-quiz-question {
    margin: 0 0 1rem;
    border: none;
    padding: 0;
}

.pathway-quiz-question legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pathway-quiz-choice {
    display: block;
    margin: 0.35rem 0;
    font-size: 0.92rem;
}

.pathway-quiz-error {
    color: #b42318;
    font-size: 0.88rem;
}

.pathway-quiz-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.pathway-module-badge--quiz {
    background: #e8f4ef;
    color: var(--primary-color, #1a5f4a);
}

.pathway-admin-summary {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #dde3ea);
}

.pathway-admin-bar {
    display: inline-block;
    vertical-align: middle;
    width: 6rem;
    height: 0.45rem;
    background: #e8ecf0;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 0.35rem;
}

.pathway-admin-bar-fill {
    height: 100%;
    background: var(--primary-color, #1a5f4a);
}

.pathway-admin-pct {
    font-size: 0.88rem;
}

@media (max-width: 640px) {
    .pathway-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pathway-progress {
        max-width: none;
    }

    .pathway-track-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pathway-track-btn {
        width: 100%;
        text-align: center;
    }

    .pathway-stage-nav {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .pathway-stage-nav-btn {
        width: 100%;
    }

    .pathway-stage-dots {
        gap: 0.35rem;
    }

    .pathway-stage-dot {
        min-width: 2.1rem;
        height: 2.1rem;
        font-size: 0.78rem;
    }

    .pathway-accordion-trigger {
        padding-left: 2.75rem;
        gap: 0.65rem;
        align-items: flex-start;
    }

    .pathway-accordion-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .pathway-level-progress {
        white-space: normal;
    }

    .pathway-accordion-title {
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .pathway-module-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pathway-module-open-btn {
        width: 100%;
        text-align: center;
    }

    .pathway-quiz-card {
        max-height: calc(100vh - 2rem);
        padding: 1.15rem;
    }

    .pathway-first30-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pathway-first30-open-btn {
        width: 100%;
        text-align: center;
    }

    .pathway-quiz-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .pathway-quiz-actions .btn {
        width: 100%;
    }

    .pathway-guides {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Document Archive / File Manager */
.archive-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1rem;
}

.archive-sidebar {
    background: var(--surface-muted, #f8f9fa);
    border: 1px solid var(--border-color, #dde3ea);
    border-radius: 8px;
    padding: 1rem;
}

.archive-sidebar h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--primary-color, #2c5530);
}

.archive-folder-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.archive-folder-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.archive-folder-btn:hover {
    background: #fff;
    border-color: var(--border-color, #dde3ea);
}

.archive-folder-btn.is-active {
    background: #fff;
    border-color: var(--primary-color, #2c5530);
    font-weight: 600;
    color: var(--primary-color, #2c5530);
}

.archive-folder-count {
    font-size: 0.8rem;
    opacity: 0.75;
}

.archive-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.archive-toolbar .auth-field {
    margin: 0;
    flex: 1 1 12rem;
    min-width: 10rem;
}

.archive-toolbar .auth-field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.archive-summary {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.archive-error {
    background: #fdecea;
    color: #842029;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.archive-error[hidden] {
    display: none;
}

.archive-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color, #dde3ea);
    border-radius: 8px;
    background: #fff;
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.archive-table th,
.archive-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-color, #e8ecf0);
    vertical-align: top;
    text-align: left;
}

.archive-table th {
    background: var(--surface-muted, #f8f9fa);
    font-weight: 600;
    white-space: nowrap;
}

.archive-table tbody tr:last-child td {
    border-bottom: none;
}

.archive-col-title {
    min-width: 14rem;
}

.archive-col-actions {
    white-space: nowrap;
}

.archive-item-sub {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.2rem;
}

.archive-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.archive-badge--static {
    background: #e8f4fc;
    color: #0c5460;
}

.archive-badge--admin {
    background: #fff3cd;
    color: #856404;
}

.archive-empty {
    text-align: center;
    color: #666;
    padding: 2rem 1rem !important;
}

@media (max-width: 900px) {
    .archive-layout {
        grid-template-columns: 1fr;
    }
}

/* —— Membership applications (login + committee) —— */
.auth-card-secondary {
    margin-top: 1.25rem;
}

.auth-card-secondary h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.auth-cta-link {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: none;
}

.membership-committee-hub {
    margin: 2rem 0 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color, #dde3ea);
    border-radius: 10px;
    background: var(--surface-muted, #f8f9fa);
}

.membership-committee-hub-header h2 {
    margin: 0 0 0.5rem;
}

.membership-share-toolbar {
    margin: 1.25rem 0;
}

.membership-share-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.membership-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.membership-apply-url-display {
    flex: 1 1 12rem;
    padding: 0.45rem 0.6rem;
    background: #fff;
    border: 1px solid var(--border-color, #dde3ea);
    border-radius: 6px;
    font-size: 0.85rem;
    word-break: break-all;
}

.membership-committee-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #dde3ea);
}

.membership-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light, #666);
}

.membership-tab.is-active {
    color: var(--primary-color, #1a5f4a);
    border-bottom-color: var(--primary-color, #1a5f4a);
}

.membership-tab-panel {
    display: none;
}

.membership-tab-panel.is-active {
    display: block;
}

.membership-app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.membership-app-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color, #dde3ea);
}

.membership-app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.membership-app-table th,
.membership-app-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--border-color, #e8ecf0);
    text-align: left;
}

.membership-app-table th {
    background: #f0f3f6;
    font-weight: 600;
}

.membership-app-row {
    cursor: pointer;
}

.membership-app-row.is-selected,
.membership-app-row:hover {
    background: #eef6f3;
}

.membership-app-detail {
    background: #fff;
    border: 1px solid var(--border-color, #dde3ea);
    border-radius: 8px;
    padding: 1rem;
    max-height: 32rem;
    overflow-y: auto;
}

.membership-app-detail-dl {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    margin: 0 0 1rem;
    font-size: 0.92rem;
}

.membership-app-detail-dl dt {
    font-weight: 600;
    color: var(--text-light, #555);
}

.membership-app-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.membership-app-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #e8ecf0;
}

.membership-app-status--board_approved {
    background: #d4edda;
    color: #155724;
}

.membership-app-status--received,
.membership-app-status--committee_review {
    background: #fff3cd;
    color: #856404;
}

.membership-app-status--rejected {
    background: #f8d7da;
    color: #721c24;
}

.membership-app-select,
.membership-app-notes {
    width: 100%;
    max-width: 100%;
}

.membership-app-empty {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.membership-extra-fields-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 0.5rem;
}

.membership-extra-fields-header h3 {
    margin: 0;
    font-size: 1rem;
}

.membership-extra-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid var(--border-color, #dde3ea);
    border-radius: 8px;
    align-items: end;
}

@media (max-width: 900px) {
    .membership-app-layout {
        grid-template-columns: 1fr;
    }
}

/* Public membership application (single-column layout) */
body.membership-apply-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(45, 90, 61, 0.12), transparent 55%),
        var(--bg-light);
}

.membership-apply-header {
    background: linear-gradient(165deg, #ffffff 0%, var(--surface-muted) 100%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.membership-apply-header-inner {
    max-width: 44rem;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 1.75rem;
    text-align: center;
}

.membership-apply-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.membership-apply-back:hover {
    text-decoration: underline;
}

.membership-apply-brand img {
    width: min(220px, 72vw);
    height: auto;
    object-fit: contain;
    margin: 0 auto 0.65rem;
    display: block;
}

.membership-apply-eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.membership-apply-main {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 1.25rem 3.5rem;
}

.membership-apply-card {
    margin-top: -0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.membership-apply-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color) 45%, var(--accent-color));
}

.membership-apply-card-head {
    padding: 1.75rem 1.75rem 0.25rem;
}

.membership-apply-card h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.45rem, 4vw, 1.75rem);
    color: var(--primary-color);
}

.membership-apply-lead {
    margin: 0 0 0.85rem;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.6;
}

.membership-apply-links {
    margin: 0;
    font-size: 0.92rem;
}

.membership-apply-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.membership-apply-links a:hover {
    text-decoration: underline;
}

.membership-apply-paper-note {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

.membership-apply-paper-note a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.membership-apply-paper-note a:hover {
    text-decoration: underline;
}

.membership-apply-card form {
    padding: 0.5rem 1.75rem 1.75rem;
}

.membership-apply-card .admin-form-success,
.membership-apply-card .auth-error {
    margin: 0 1.75rem 1rem;
}

.membership-apply-fieldset {
    margin: 0 0 1.5rem;
    padding: 1.15rem 1.15rem 0.35rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--surface-muted);
}

.membership-apply-fieldset legend {
    padding: 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.membership-apply-fieldset .auth-field:last-child {
    margin-bottom: 0.65rem;
}

.membership-apply-page .auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.membership-apply-page .auth-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 5rem;
    background: var(--bg-white);
}

.membership-apply-page .auth-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.membership-apply-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.membership-apply-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-dark);
    cursor: pointer;
}

.membership-apply-checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.membership-apply-checkbox-label a {
    color: var(--primary-color);
    font-weight: 600;
}

.required-mark {
    color: #a32020;
}

.membership-apply-coi-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.membership-apply-coi-row .membership-apply-checkbox-label {
    flex: 1;
}

.membership-apply-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.membership-apply-info-btn:hover {
    background: var(--surface-muted);
    border-color: var(--primary-color);
}

.membership-apply-info-btn[aria-expanded="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.membership-apply-coi-panel {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-dark);
    box-shadow: var(--shadow-card);
}

.membership-apply-coi-panel[hidden] {
    display: none;
}

.membership-apply-coi-panel-title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
}

.membership-apply-coi-examples {
    margin: 0;
    padding-left: 1.15rem;
}

.membership-apply-coi-examples li {
    margin-bottom: 0.35rem;
}

.membership-apply-coi-examples li:last-child {
    margin-bottom: 0;
}

.membership-apply-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: min(32rem, calc(100vw - 2rem));
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    background: #fff;
}

.membership-apply-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}

.membership-apply-dialog-inner {
    margin: 0;
    padding: 0;
}

.membership-apply-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 0.5rem;
    border-bottom: 1px solid var(--border-color, #dde3ea);
}

.membership-apply-dialog-head h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
}

.membership-apply-dialog-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light, #666);
    padding: 0.15rem 0.35rem;
}

.membership-apply-dialog-close:hover {
    color: var(--text-color, #1a1a1a);
}

.membership-apply-dialog-body {
    padding: 1rem 1.25rem 0.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-color, #333);
}

.membership-apply-dialog-body p {
    margin: 0 0 0.75rem;
}

.membership-apply-dialog-steps {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.membership-apply-dialog-steps li {
    margin-bottom: 0.45rem;
}

.membership-apply-dialog-note {
    font-size: 0.88rem;
    color: var(--text-light, #555);
    margin: 0;
}

.membership-apply-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color, #dde3ea);
}

.membership-apply-submit {
    margin-top: 0.25rem;
}

.membership-emeritus-toolbar {
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.membership-emeritus-toolbar p {
    margin: 0;
    flex: 1 1 16rem;
    font-size: 0.95rem;
}

.admin-committee-assignments {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.admin-director-flag {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.admin-director-flag legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-director-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-weight: 500;
    margin-top: 0.35rem;
}

.admin-director-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(26, 77, 46, 0.08);
    border: 1px solid rgba(26, 77, 46, 0.18);
    border-radius: 999px;
    vertical-align: middle;
}

.admin-committee-assignments legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-committee-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.admin-committee-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
}

.admin-committee-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.membership-nominate-page .membership-apply-card-head {
    padding-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .membership-apply-page .auth-field-row {
        grid-template-columns: 1fr;
    }

    .membership-apply-card-head,
    .membership-apply-card form {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }
}

/* Meetings — bylaws info (i) buttons */
.meetings-label-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.meetings-label-row label {
    margin: 0;
}

.meetings-bylaws-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.meetings-bylaws-info-btn:hover {
    background: var(--surface-muted);
    border-color: var(--primary-color);
}

.meetings-bylaws-info-btn--inline {
    margin-left: 0.35rem;
    vertical-align: middle;
}

.meetings-bylaws-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: min(36rem, calc(100vw - 2rem));
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    background: #fff;
}

.meetings-bylaws-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.meetings-bylaws-dialog-inner {
    padding: 1.25rem 1.35rem 1.1rem;
}

.meetings-bylaws-dialog-header {
    position: relative;
    padding-right: 2rem;
    margin-bottom: 0.85rem;
}

.meetings-bylaws-dialog-cite {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.meetings-bylaws-dialog-header h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.meetings-bylaws-dialog-close {
    position: absolute;
    top: -0.15rem;
    right: 0;
}

.meetings-bylaws-dialog-body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-dark);
    white-space: pre-wrap;
}

.meetings-bylaws-dialog-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}
