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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
}

/* Utility bar */
.util-bar {
    background: #111;
    color: #aaa;
    padding: 6px 20px;
    font-size: 0.78rem;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.util-bar a {
    color: #ccc;
    text-decoration: none;
}

.util-bar a:hover { color: white; }

/* Site header */
.site-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #1a5276 100%);
    padding: 0;
    text-align: center;
}

.site-header h1 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 20px 32px;
}

.org-logo-wrap {
    position: relative;
    display: block;
    /* margin (not padding) so absolutely-positioned hotspot overlays stay
       percentage-accurate relative to the image itself */
    margin: 0 28px;
}

.org-logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.org-logo-map-area {
    position: absolute;
    cursor: pointer;
}

/* Home page banner (org-level) */
.home-banner {
    margin-bottom: 16px;
}

.home-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Page banners (page-level) — stretch to fill the banner row */
.page-banners {
    margin-bottom: 8px;
}

.page-banner + .page-banner {
    margin-top: 8px;
}

.page-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Home body: welcome text left, photos right sidebar */
.home-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.home-text {
    flex: 1;
}

.home-photos {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-photo {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    display: block;
}

/* Horizontal nav bar — top and bottom */
.site-nav {
    background: #154360;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

.site-nav-bottom {
    border-top: 2px solid #0f2d42;
}

.site-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 10px 16px;
    display: block;
    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

/* Banner row inside right column */
.body-banner-row {
    width: 100%;
}

/* Two-column body */
.body-wrap {
    display: flex;
    gap: 0;
    min-height: 600px;
    padding: 0 28px;
}

/* Left nav sidebar */
.left-nav {
    width: 310px;
    flex-shrink: 0;
    background: #d6eaf8;
    padding: 16px 12px;
    border-right: 1px solid #aed6f1;
}

.left-nav .nav-home {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a3a5c;
    text-decoration: none;
    display: block;
    padding: 4px 0 10px;
}

.left-nav .nav-section-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a3a5c;
    padding: 12px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.left-nav .nav-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    padding: 8px 0 2px;
}

.left-nav a.nav-link {
    display: block;
    font-size: 0.82rem;
    color: #1a5276;
    text-decoration: none;
    padding: 3px 0 3px 8px;
    border-left: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

.left-nav a.nav-link:hover,
.left-nav a.nav-link.active {
    color: #1a3a5c;
    border-left-color: #1a5276;
    font-weight: 600;
}

/* ── Category nav ────────────────────────────────────────────────────────── */

.cat-nav {
    background: #fff;
    border-bottom: 1px solid #dde3ea;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cat-nav-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    row-gap: 8px;
}

.cat-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.cat-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    margin-right: 4px;
    white-space: nowrap;
    align-self: center;
}

.cat-divider {
    width: 1px;
    background: #dde3ea;
    align-self: stretch;
    margin: 0 12px;
    flex-shrink: 0;
}

.cat-pill {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    background: #f0f4f8;
    color: #1a3a5c;
    border: 1px solid #d0dce8;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cat-pill:hover {
    background: #d6eaf8;
    border-color: #aed6f1;
    color: #1a3a5c;
}

.cat-pill.active {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
    font-weight: 600;
}

.cat-pill-home {
    background: #eaf4fb;
    border-color: #aed6f1;
}

.cat-pill-community {
    background: #fef9f0;
    border-color: #f0d9a0;
    color: #7d5a00;
}

.cat-pill-community:hover {
    background: #fdefc8;
    border-color: #e8c84a;
}

.cat-pill-community.active {
    background: #e8a000;
    color: #fff;
    border-color: #e8a000;
}

/* ── Page wrapper ─────────────────────────────────────────────────────────── */

.page-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

.avl-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.avl-page-header h1 {
    font-size: 1.4rem;
    color: #1a3a5c;
    font-weight: 700;
    margin: 0;
}

/* Main content (home page) */
.main-content {
    flex: 1;
    padding: 4px 28px 24px;
    background: white;
}

.main-content h1 {
    font-size: 1.3rem;
    color: #1a3a5c;
    margin-bottom: 16px;
    font-weight: 700;
}

.main-content p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #444;
    margin-bottom: 12px;
    max-width: 640px;
}

/* Page avl content (full-calendar page) */
.page-avl-content {
    flex: 1;
    padding: 4px 20px 24px;
}

.avl-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legend-bar {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #555;
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    align-items: center;
    font-weight: 500;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.member-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 20px 24px;
    border-left: 4px solid #1a5276;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.member-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.11);
    transform: translateY(-2px);
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3a5c;
}

.book-btn {
    display: inline-block;
    padding: 4px 13px;
    background: #1a5276;
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.15s;
}

.book-btn:hover { background: #1a3a5c; }

.member-action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.book-btn-secondary {
    background: #5d6d7e;
}

.book-btn-secondary:hover { background: #4a5866; }

.member-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 8px;
    align-items: center;
}

.member-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.member-contact svg { color: #999; flex-shrink: 0; }

.member-contact a { color: #1a5276; text-decoration: none; }
.member-contact a:hover { text-decoration: underline; }

.member-desc {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.55;
    max-width: 680px;
    margin: 0;
}
.see-more-link {
    font-size: 0.8rem;
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
}
.see-more-link:hover { text-decoration: underline; }

.member-updated {
    font-size: 0.72rem;
    color: #444;
    background: #e8ecef;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
}

.avl-calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 10px;
    justify-content: center;
}

.avl-month {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avl-month-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
    text-align: center;
}

.avl-dow-header {
    display: grid;
    grid-template-columns: repeat(7, 48px);
    gap: 3px;
    margin-bottom: 3px;
}

.avl-dow-header span {
    font-size: 0.66rem;
    font-weight: 700;
    text-align: center;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.avl-week {
    display: grid;
    grid-template-columns: repeat(7, 48px);
    gap: 3px;
    margin-bottom: 3px;
}

.avl-cell {
    width: 48px;
    height: 48px;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.28);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    text-decoration: none;
    gap: 1px;
}

.avl-cell-link { cursor: pointer; }

.avl-cell-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.3);
}

.avl-empty {
    background: transparent;
    box-shadow: none;
}

.avl-num {
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    line-height: 1;
}

.full-cal-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
}
.full-cal-link:hover { text-decoration: underline; }

.avl-open { background: linear-gradient(to bottom, #2ecc71, #27ae60); }
.avl-full  { background: linear-gradient(to bottom, #e74c3c, #c0392b); }
.avl-call  { background: linear-gradient(to bottom, #3498db, #2980b9); }

.no-results {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

/* Mobile nav toggle button — hidden on desktop */
.nav-mobile-toggle {
    display: none;
}

@media (max-width: 700px) {
    .body-wrap { flex-direction: column; }
    .left-nav { width: 100%; border-right: none; border-bottom: 1px solid #aed6f1; padding: 0; }
    .avl-cell { width: 34px; height: 34px; }
    .avl-dow-header, .avl-week { grid-template-columns: repeat(7, 34px); }

    /* Collapse nav content behind toggle on mobile */
    .nav-inner { display: none; padding: 0.5rem 0; }
    .left-nav.nav-open .nav-inner { display: block; }

    .nav-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        background: #1a3a5c;
        color: rgba(255,255,255,0.9);
        border: none;
        padding: 10px 16px;
        font-size: 0.9rem;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        text-align: left;
    }

    .nav-mobile-toggle:hover { background: #154360; }
}

/* Footer */
.site-footer {
    background: #154360;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 14px 20px;
    font-size: 0.78rem;
    border-top: 2px solid #0f2d42;
}

.site-footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.site-footer a:hover { color: white; }

/* Static info pages (privacy, terms) */
.info-page {
    max-width: 760px;
    margin: 2.5rem auto;
    padding: 0 2rem 3rem;
    line-height: 1.8;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.info-page h1 {
    font-size: 1.75rem;
    padding-top: 2rem;
    margin-bottom: 0.2rem;
    color: #1a3a5c;
}

.info-page .info-meta {
    color: #888;
    font-size: 0.82rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8edf2;
}

.info-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #e8edf2;
}

.info-page h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.info-page p { margin-bottom: 0.85rem; }
.info-page ul { margin-bottom: 0.85rem; padding-left: 1.5rem; }
.info-page ul li { margin-bottom: 0.3rem; }

.info-page a { color: #1a5276; }

