/* ======================================================
   HEADER + NAVIGATION SHELL
   ====================================================== */

.top-shell {
    margin: 16px 18px 0;
    overflow: hidden;

    background: var(--color-surface);

    border: 1px solid rgba(22, 84, 154, 0.16);
    border-radius: 16px;

    box-shadow:
        0 10px 24px rgba(15, 41, 77, 0.11),
        0 2px 6px rgba(15, 41, 77, 0.05);
}

/* ======================================================
   HEADER
   ====================================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);

    padding: 1rem 2rem;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f8fd 100%
        );

    border-bottom: 1px solid var(--color-border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 96px;
    height: 72px;
    flex-shrink: 0;

    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-mark-logo {
    padding: 4px;
}

.brand-copy h1 {
    margin: 0;

    color: var(--color-primary-dark);

    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.brand-copy p {
    margin-top: 0.3rem;

    color: var(--color-text-light);

    font-size: 0.95rem;
    font-weight: 500;
}

.event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;

    padding-left: 1.5rem;

    border-left: 1px solid var(--color-border);

    color: var(--color-primary-dark);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.event-meta span:first-child {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.event-meta span:last-child {
    color: var(--color-text-light);
    font-weight: 500;
}

/* ======================================================
   NAVIGATION
   ====================================================== */

.main-nav {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;

    padding: 0 2rem;

    overflow-x: auto;

    background: var(--color-surface);

    border: 0;
    box-shadow: none;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 1rem;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background 160ms ease,
        color 160ms ease;
}

.nav-link:hover {
    background: rgba(22, 84, 154, 0.08);
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-primary-dark);
}

.nav-link.active::after {
    position: absolute;
    right: 1rem;
    bottom: 0;
    left: 1rem;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--color-accent);
    content: "";
}

/* ======================================================
   STATUS STRIP
   ====================================================== */

.status-strip {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.25fr)
        1px
        minmax(160px, 0.8fr)
        1px
        minmax(180px, 0.9fr)
        1px
        minmax(220px, 1fr);

    align-items: center;

    min-height: 64px;
    margin: 14px 18px 0;
    padding: 0 2.5rem;

    background: var(--color-surface);

    border: 1px solid rgba(22, 84, 154, 0.16);
    border-left: 6px solid var(--color-accent);
    border-radius: 14px;

    box-shadow:
        0 8px 20px rgba(15, 41, 77, 0.1),
        0 2px 5px rgba(15, 41, 77, 0.05);
}
.status-strip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-primary-dark);
    font-size: 0.92rem;
    white-space: nowrap;
}

.status-strip-item:first-child {
    justify-content: flex-start;
}

.status-strip-item:last-child {
    justify-content: flex-end;
}

.status-strip-divider {
    width: 1px;
    height: 26px;
    background: var(--color-border);
}

.status-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
}

.status-dot-success {
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1);
}

.status-success-text {
    color: var(--color-success);
    font-weight: 700;
}

.status-secondary-text {
    margin-left: 0.3rem;
    color: var(--color-text-light);
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    color: var(--color-primary-dark);
    font-size: 1.4rem;
    line-height: 1;
}

.status-strip-item:nth-of-type(3) .status-icon {
    color: var(--color-warning);
}

/* ======================================================
   STATUS STRIP RESPONSIVE
   ====================================================== */

@media (max-width: 980px) {
    .status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem 1.25rem;
        padding: 1rem 1.25rem;
    }

    .status-strip-divider {
        display: none;
    }

    .status-strip-item,
    .status-strip-item:first-child,
    .status-strip-item:last-child {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .status-strip {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .status-strip-item {
        white-space: normal;
    }
}
/* ======================================================
   WELCOME PANEL
   ====================================================== */

.welcome-panel {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            135deg,
            rgba(22, 84, 154, 0.08),
            rgba(255, 255, 255, 0.96)
        );
    box-shadow: var(--shadow-sm);
}

.eyebrow {
    margin-bottom: 0.5rem;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.welcome-panel h2 {
    max-width: 800px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1.1;
}

.welcome-panel > p:last-child {
    max-width: 760px;
    margin-top: 0.9rem;
    color: var(--color-text-light);
    font-size: 1rem;
}

 /* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        padding: 1rem;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .event-meta {
        display: none;
    }

    .main-nav {
        padding: 0 0.5rem;
    }

    .nav-link {
        min-height: 50px;
        padding: 0 0.8rem;
        font-size: 0.82rem;
    }
}

/* ======================================================
   CARDS
   ====================================================== */

.card {
    width: 100%;
    padding: 24px;

    background: var(--color-surface);

    border: 1px solid rgba(22, 84, 154, 0.16);
    border-radius: 18px;

    box-shadow:
        0 10px 24px rgba(15, 41, 77, 0.1),
        0 2px 6px rgba(15, 41, 77, 0.05);
}

.card h3 {
    margin-bottom: 20px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.card-header h3 {
    margin: 0;
}

.card-header a {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.card-header a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ======================================================
   COURSE MAP
   ====================================================== */

.course-map-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.course-map-frame {
    width: 75%;
    overflow: hidden;
    margin-left: 12.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #12488e;
    border-radius: 14px;
    background: #F8FAFD;
    padding: 10px;
}

.course-map-frame {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.course-map-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(22, 84, 154, 0.16);
}

.course-map {
    display: block;

    width: 115%;
    max-width: none;

    max-height: 475px;
    height: auto;

    object-fit: contain;
}

/* ======================================================
   CARD RESPONSIVE
   ====================================================== */

@media (max-width: 760px) {
    .card {
        padding: 18px;
        border-radius: 14px;
    }

    .card-header {
        align-items: flex-start;
        gap: 12px;
    }

    .card-header a {
        font-size: 0.82rem;
    }
}


/* ======================================================
   TOURNAMENT STATUS CARD
   ====================================================== */

.status-card {
    padding: 20px;
}

.status-card h3 {
    margin-bottom: 18px;
}

.status-card-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.status-card-check {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-success);
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
}

.status-card-label {
    color: var(--color-success);
    font-size: 1.05rem;
    font-weight: 700;
}

.status-card-note {
    margin-top: 2px;
    color: var(--color-text-light);
    font-size: 0.86rem;
}

.status-card-details {
    padding: 10px 0;
}

.status-detail-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
}

.status-detail-icon {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.status-detail-label {
    font-weight: 600;
}

.status-detail-row strong {
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}

.status-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.78rem;
}

/* ======================================================
   LATEST UPDATES CARD
   ====================================================== */

.updates-card {
    padding: 20px;
}

.updates-card .card-header {
    margin-bottom: 8px;
}

.updates-list {
    display: flex;
    flex-direction: column;
}

.update-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.update-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: 2px;
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
}

.update-icon-info {
    background: var(--color-primary);
}

.update-icon-success {
    background: var(--color-success);
}

.update-icon-warning {
    background: var(--color-warning);
}

.update-copy {
    min-width: 0;
}

.update-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.update-heading h4 {
    color: var(--color-primary-dark);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
}

.update-heading time {
    flex-shrink: 0;
    color: var(--color-text-light);
    font-size: 0.75rem;
}

.update-copy p {
    margin-top: 3px;
    color: var(--color-text-light);
    font-size: 0.8rem;
    line-height: 1.4;
}

.updates-footer-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--color-primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.updates-footer-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .update-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

.card-title-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 7px;
    background: rgba(22, 84, 154, 0.1);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    vertical-align: middle;
}

/* ======================================================
   SCHEDULE & ASSIGNMENTS
   ====================================================== */

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;

    padding: 18px;

    background: var(--color-surface);

    border: 1px solid rgba(22, 84, 154, 0.16);
    border-radius: 14px;

    box-shadow:
        0 8px 18px rgba(15, 41, 77, 0.08),
        0 2px 5px rgba(15, 41, 77, 0.04);
}

.summary-label {
    color: var(--color-text-light);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.summary-card strong {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 1.55rem;
}

.summary-card > span:last-child {
    color: var(--color-text-light);
    font-size: .99rem;
}

.assignments-card {
    padding: 20px;
}

.assignment-filters {
    display: flex;
    gap: 8px;
}

.filter-button {
    padding: 8px 14px;

    border: 1px solid rgba(22, 84, 154, 0.2);
    border-radius: 9px;

    background: #f8fbff;
    color: var(--color-primary-dark);

    font-weight: 700;
    cursor: pointer;
}

.filter-button:hover {
    background: #ffffff;
    border-color: rgba(22, 84, 154, 0.35);
}

.filter-button.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.assignment-table-wrapper {
    overflow-x: auto;
}

.assignment-table {
    width: 100%;
    border-collapse: collapse;
}

.assignment-table th,
.assignment-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.assignment-table th {
    color: var(--color-text-light);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.assignment-table td {
    color: var(--color-text);
    font-size: 0.9rem;
}

.assignment-table tbody tr:hover {
    background: #f8fbff;
}

.assignment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 800;
}

.assignment-status.assigned {
    background: rgba(46, 139, 87, 0.12);
    color: var(--color-success);
}

.assignment-status.open {
    background: rgba(237, 36, 36, 0.1);
    color: var(--color-accent);
}

@media (max-width: 640px) {
    .assignments-card .card-header {
        flex-direction: column;
    }

    .assignment-filters {
        width: 100%;
    }

    .filter-button {
        flex: 1;
    }
}

/* ======================================================
   TRAINING & RESOURCES
   ====================================================== */

.resource-card {
    display: flex;
    gap: 16px;

    background: var(--color-surface);

    border: 1px solid rgba(22, 84, 154, 0.14);
    border-radius: 16px;

    box-shadow:
        0 8px 18px rgba(15, 41, 77, 0.08),
        0 2px 5px rgba(15, 41, 77, 0.04);
}

.featured-resource {
    min-height: 190px;
    padding: 22px;
}

.compact-resource {
    min-height: 190px;
    padding: 18px;
}

.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    background: rgba(22, 84, 154, 0.09);
    border-radius: 13px;

    font-size: 1.35rem;
}

.resource-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.resource-category {
    margin-bottom: 5px;

    color: var(--color-accent);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-content h3 {
    margin-bottom: 7px;

    color: var(--color-primary-dark);

    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.featured-resource .resource-content h3 {
    font-size: 1.25rem;
}

.resource-content p {
    margin-bottom: 16px;

    color: var(--color-text-light);

    font-size: 0.86rem;
    line-height: 1.55;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;

    color: var(--color-primary);

    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.resource-link span {
    transition: transform 0.18s ease;
}

.resource-link:hover span {
    transform: translateX(3px);
}

.resource-card:hover {
    border-color: rgba(22, 84, 154, 0.28);

    box-shadow:
        0 12px 24px rgba(15, 41, 77, 0.11),
        0 3px 7px rgba(15, 41, 77, 0.05);

    transform: translateY(-2px);
}

.resource-card {
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

/* ======================================================
   CONTACTS
   ====================================================== */

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    min-height: 220px;
    padding: 20px;

    background: var(--color-surface);

    border: 1px solid rgba(22, 84, 154, 0.14);
    border-radius: 16px;

    box-shadow:
        0 8px 18px rgba(15, 41, 77, 0.08),
        0 2px 5px rgba(15, 41, 77, 0.04);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.contact-card:hover {
    transform: translateY(-2px);

    border-color: rgba(22, 84, 154, 0.28);

    box-shadow:
        0 12px 24px rgba(15, 41, 77, 0.11),
        0 3px 7px rgba(15, 41, 77, 0.05);
}

.featured-contact {
    min-height: 235px;
}

.contact-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 52px;
    height: 52px;

    background: rgba(22, 84, 154, 0.1);
    border: 1px solid rgba(22, 84, 154, 0.16);
    border-radius: 50%;

    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
}

.contact-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.contact-role {
    margin-bottom: 4px;

    color: var(--color-accent);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-content h3 {
    margin-bottom: 8px;

    color: var(--color-primary-dark);

    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.contact-content p {
    margin-bottom: 18px;

    color: var(--color-text-light);

    font-size: 0.85rem;
    line-height: 1.55;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: auto;
}

.contact-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    background: #f8fbff;

    border: 1px solid rgba(22, 84, 154, 0.18);
    border-radius: 8px;

    color: var(--color-primary);

    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.contact-actions a:hover {
    background: #ffffff;
    border-color: rgba(22, 84, 154, 0.36);
    transform: translateY(-1px);
}

.emergency-avatar {
    background: rgba(244, 38, 38, 0.1);
    border-color: rgba(244, 38, 38, 0.2);
    color: var(--color-accent);
}

.emergency-role {
    color: var(--color-accent);
}

.contact-actions .emergency-action {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.contact-actions .emergency-action:hover {
    background: #d91f1f;
    border-color: #d91f1f;
}

/* ======================================================
   UPDATES
   ====================================================== */

.update-card {
    position: relative;
    display: flex;
    gap: 16px;

    padding: 20px;

    background: var(--color-surface);

    border: 1px solid rgba(22, 84, 154, 0.14);
    border-radius: 16px;

    box-shadow:
        0 8px 18px rgba(15, 41, 77, 0.08),
        0 2px 5px rgba(15, 41, 77, 0.04);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.update-card:hover {
    transform: translateY(-2px);

    border-color: rgba(22, 84, 154, 0.28);

    box-shadow:
        0 12px 24px rgba(15, 41, 77, 0.11),
        0 3px 7px rgba(15, 41, 77, 0.05);
}

.priority-update {
    border-color: rgba(244, 38, 38, 0.28);
}

.update-marker {
    flex: 0 0 auto;

    width: 10px;
    height: 10px;

    margin-top: 7px;

    background: var(--color-primary);
    border-radius: 50%;

    box-shadow: 0 0 0 5px rgba(22, 84, 154, 0.09);
}

.priority-update .update-marker {
    background: var(--color-accent);
    box-shadow: 0 0 0 5px rgba(244, 38, 38, 0.1);
}

.update-content {
    flex: 1;
    min-width: 0;
}

.update-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 8px;
}

.update-meta time {
    color: var(--color-text-light);
    font-size: 0.76rem;
    font-weight: 600;
}

.update-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.update-type.urgent {
    background: rgba(244, 38, 38, 0.1);
    color: var(--color-accent);
}

.update-type.operations {
    background: rgba(22, 84, 154, 0.1);
    color: var(--color-primary);
}

.update-type.weather {
    background: rgba(226, 157, 34, 0.12);
    color: #9b6700;
}

.update-type.schedule {
    background: rgba(92, 87, 191, 0.11);
    color: #514aaf;
}

.update-type.general {
    background: rgba(85, 104, 122, 0.11);
    color: #4c6073;
}

.update-content h3 {
    margin-bottom: 7px;

    color: var(--color-primary-dark);

    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.update-content p {
    color: var(--color-text-light);
    font-size: 0.86rem;
    line-height: 1.55;
}

.update-summary-card,
.communication-card {
    padding: 20px;
}

.update-summary-list {
    display: flex;
    flex-direction: column;
}

.update-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid var(--color-border);
}

.update-summary-item:last-child {
    border-bottom: 0;
}

.update-summary-item span {
    color: var(--color-text-light);
    font-size: 0.84rem;
    font-weight: 600;
}

.update-summary-item strong {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
}

.communication-label {
    display: inline-block;
    margin-bottom: 7px;

    color: var(--color-accent);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.communication-card h3 {
    margin-bottom: 8px;

    color: var(--color-primary-dark);

    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.communication-card p {
    margin-bottom: 16px;

    color: var(--color-text-light);

    font-size: 0.84rem;
    line-height: 1.55;
}

.communication-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--color-primary);

    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.communication-card a span {
    transition: transform 0.18s ease;
}

.communication-card a:hover span {
    transform: translateX(3px);
}

@media (max-width: 560px) {
    .update-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* ======================================================
   INTERACTIVE COURSE MAP
   ====================================================== */

.course-map-card {
    padding: 18px;

    background: var(--color-surface);

    border: 1px solid rgba(22, 84, 154, 0.14);
    border-radius: 18px;

    box-shadow:
        0 12px 28px rgba(15, 41, 77, 0.1),
        0 3px 8px rgba(15, 41, 77, 0.05);
}

.interactive-course-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform: none;

    user-select: none;
}

.back-dashboard-link {
    color: var(--color-primary);

    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

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

/* ======================================================
   COURSE MAP HOTSPOTS
   ====================================================== */

.hole-hotspot {
    position: absolute;

    left: var(--x);
    top: var(--y);

    width: 22px;
    height: 22px;
    padding: 0;

    transform: translate(-50%, -50%);

    background: #ffffff;
    border: 2px solid #16549a;
    border-radius: 50%;

    box-shadow:
        0 1px 4px rgba(15, 49, 87, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.75);

    cursor: pointer;
    z-index: 5;

    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

/* Displays the hole number */
.hole-hotspot::after {
    content: attr(data-hole);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #0f4b87;
    font-family: var(--font-heading);
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
}

/* Larger invisible click target */
.hole-hotspot::before {
    content: "";

    position: absolute;
    inset: -6px;

    border-radius: 50%;
}

/* Hover and keyboard focus */
.hole-hotspot:hover,
.hole-hotspot:focus-visible {
    transform: translate(-50%, -50%) scale(1.15);

    background: #16549a;
    border-color: #ffffff;

    box-shadow:
        0 3px 8px rgba(15, 49, 87, 0.32),
        0 0 0 3px rgba(22, 84, 154, 0.18);

    outline: none;
}

.hole-hotspot:hover::after,
.hole-hotspot:focus-visible::after {
    color: #ffffff;
}

/* Currently selected hole */
.hole-hotspot.is-active,
.hole-hotspot.active,
.hole-hotspot[aria-pressed="true"] {
    transform: translate(-50%, -50%) scale(1.12);

    background: #f42626;
    border-color: #ffffff;

    box-shadow:
        0 3px 8px rgba(244, 38, 38, 0.30),
        0 0 0 3px rgba(244, 38, 38, 0.18);
}

.hole-hotspot.is-active::after,
.hole-hotspot.active::after,
.hole-hotspot[aria-pressed="true"]::after {
    color: #ffffff;
}

.map-selection-status {
    margin-top: 16px;
    padding-top: 15px;

    border-top: 1px solid var(--color-border);

    color: var(--color-text-light);

    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
}

.map-selection-status strong {
    color: var(--color-primary-dark);
}

@keyframes hole-select-pulse {
    0% {
        transform:
            translate(-50%, -50%)
            scale(1);
    }

    50% {
        transform:
            translate(-50%, -50%)
            scale(1.25);
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(1.12);
    }
}

/* ======================================================
   HOLE DETAIL CARD
   ====================================================== */

.hole-detail-card {
    display: flex;
    flex-direction: column;

    min-height: 0;
    margin-top: 0;
    padding: 20px;

    background: #f8fbff;

    border: 1px solid rgba(22, 84, 154, 0.14);
    border-radius: 14px;

    box-shadow: none;
}

.hole-detail-empty {
    color: var(--color-text-light);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.hole-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 18px;
}

.hole-detail-label {
    display: block;
    margin-bottom: 4px;

    color: var(--color-accent);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hole-detail-header h3 {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.hole-par {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    background: rgba(22, 84, 154, 0.1);

    border-radius: 999px;

    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.hole-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hole-detail-section {
    padding: 14px;

    background: white;

    border: 1px solid rgba(22, 84, 154, 0.1);
    border-radius: 11px;
}

.hole-detail-section h4 {
    margin-bottom: 8px;

    color: var(--color-primary-dark);

    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hole-detail-section p,
.hole-detail-section li {
    color: var(--color-text-light);
    font-size: 0.84rem;
    line-height: 1.5;
}

.hole-detail-section ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 760px) {
    .hole-detail-grid {
        grid-template-columns: 1fr;
    }
}

.hole-detail-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-direction: column;

    min-height: 300px;

    color: var(--color-text-light);
    text-align: center;
}

.hole-detail-empty-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;
    margin-bottom: 14px;

    background: rgba(22, 84, 154, 0.09);
    border: 2px solid rgba(22, 84, 154, 0.18);
    border-radius: 50%;

    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
}

.hole-detail-empty h3 {
    margin: 0 0 8px;

    color: var(--color-primary-dark);

    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.hole-detail-empty p {
    max-width: 280px;

    color: var(--color-text-light);

    font-size: 0.9rem;
    line-height: 1.6;
}

/* ======================================================
   SELECTED HOLE PANEL
   ====================================================== */

.selected-hole-panel {
    position: relative;

    width: 100%;
    height: 370px;
    margin-bottom: 16px;

    background: #ffffff;
    border: 1px solid rgba(22, 84, 154, 0.12);
    border-radius: 12px;

    overflow: hidden;
}

.selected-hole-panel[hidden] {
    display: none;
}

/* Center the newly cropped hole images */
.selected-hole-image-layer {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.selected-hole-image-layer img {
    display: block;

    width: auto;
    height: auto;

    max-width: 90%;
    max-height: 90%;

    object-fit: contain;
    object-position: center;

    user-select: none;
    pointer-events: none;
}

/* ======================================================
   COURSE MAP COLOR CONTRAST
   ====================================================== */

/* Large outer workspace card */
.course-map-card {
    padding: 18px;

    background: #eaf2fb;
    border: 1px solid rgba(22, 84, 154, 0.14);
    border-radius: 18px;

    box-shadow:
        0 10px 28px rgba(15, 49, 87, 0.08);
}

/* Left-side map canvas */
.course-map-panel {
    background: #ffffff;

    border: 1px solid #12488e;
    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(15, 49, 87, 0.06);
}

/* Right-side detail column */
.hole-detail-card {
    padding: 18px;

    background: #f4f8fd;
    border: 1px solid #12488e;
    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(15, 49, 87, 0.06);
}

/* Selected-hole image area */
.selected-hole-panel {
    background: #ffffff;

    border: 1px solid #12488e;
    border-radius: 12px;
}

/* Detail information boxes */
.hole-detail-card .detail-section,
.hole-detail-card .hole-detail-section,
.hole-detail-card .assignment-card,
.hole-detail-card .meeting-card,
.hole-detail-card .notes-card {
    background: #ffffff;

    border: 1px solid rgba(22, 84, 154, 0.12);
    border-radius: 12px;
}

/* Selected-hole label */
.hole-detail-eyebrow,
.selected-hole-label {
    color: #f42626;
}

/* Hole title */
.hole-detail-card h2,
.hole-detail-card h3 {
    color: #0f4b87;
}

/* Par badge */
.hole-par-badge {
    color: #16549a;
    background: #dfeaf8;
}

/* ==================================================
   VOLUNTEER ASSIGNMENT ROSTER
   ================================================== */

.assignments-card {
    overflow: hidden;
}

/* Assignment table wrapper */

.assignment-list {
    width: 100%;
    margin-top: 1.25rem;
    border: 1px solid rgba(22, 84, 154, 0.16);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* Shared five-column layout */

.assignment-grid,
.hole-summary-row,
.hole-detail-row {
    display: grid;
    grid-template-columns:
        minmax(70px, 0.6fr)
        minmax(150px, 1.35fr)
        minmax(170px, 1.5fr)
        minmax(135px, 1fr)
        minmax(135px, 1fr);
    align-items: center;
}

/* Stationary column headings */

.assignment-grid-header {
    min-height: 48px;
    padding: 0 1.25rem;
    background: #16549a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.assignment-grid-header span {
    padding-right: 1rem;
}

/* Individual expandable hole */

.hole-assignment {
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(22, 84, 154, 0.12);
    background: #ffffff;
}

.hole-assignment:last-child {
    border-bottom: 0;
}

/* Remove browser's default details marker */

.hole-summary-row {
    min-height: 52px;
    padding: 0 1.25rem;
    cursor: pointer;
    list-style: none;
    transition:
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.hole-summary-row::-webkit-details-marker {
    display: none;
}

.hole-summary-row::marker {
    display: none;
    content: "";
}

.hole-summary-row:hover {
    background: rgba(22, 84, 154, 0.045);
}

/* Expanded hole styling */

.hole-assignment[open] {
    box-shadow: inset 4px 0 0 #16549a;
}

.hole-assignment[open] .hole-summary-row {
    background: rgba(22, 84, 154, 0.075);
}

/* Hole number and chevron */

.hole-number {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #163a63;
    font-size: 1rem;
    font-weight: 750;
}

.assignment-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #16549a;
    border-bottom: 2px solid #16549a;
    transform: rotate(-45deg);
    transition: transform 180ms ease;
}

.hole-assignment[open] .assignment-chevron {
    transform: rotate(45deg);
}

/* Expanded position rows */

.hole-detail-rows {
    background: rgba(240, 246, 252, 0.55);
}

.hole-detail-row {
    min-height: 50px;
    padding: 0 1.25rem;
    color: #2d4056;
    font-size: 0.9rem;
    border-top: 1px solid rgba(22, 84, 154, 0.08);
}

.hole-detail-row:hover {
    background: rgba(22, 84, 154, 0.045);
}

.hole-detail-row > span {
    padding-right: 1rem;
}

.detail-position,
.hole-detail-row > span:nth-child(2) {
    font-weight: 650;
    color: #193c63;
}

.detail-volunteer,
.hole-detail-row > span:nth-child(3) {
    color: #334e68;
}

.detail-show-time,
.hole-detail-row > span:nth-child(4) {
    color: #52677c;
    font-variant-numeric: tabular-nums;
}

.unassigned-volunteer {
    color: #b42318;
    font-style: italic;
    font-weight: 650;
}

/* Status pills */

.assignment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.assignment-status.assigned {
    color: #17633c;
    background: #e8f6ee;
    border: 1px solid #b7dfc8;
}

.assignment-status.open {
    color: #a1261d;
    background: #fff0ee;
    border: 1px solid #f3c1bc;
}

/* Morning / afternoon filters */

.assignment-filters {
    display: inline-flex;
    padding: 4px;
    border-radius: 10px;
    background: #eef3f8;
}

.assignment-filters .filter-button {
    min-width: 92px;
    padding: 0.55rem 0.9rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #52677c;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.assignment-filters .filter-button:hover {
    color: #16549a;
}

.assignment-filters .filter-button.active {
    color: #16549a;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(18, 48, 80, 0.12);
}

/* Hidden shift rows */

.hole-assignment[hidden] {
    display: none;
}

/* Responsive roster */

@media (max-width: 900px) {
    .assignment-list {
        overflow-x: auto;
    }

    .assignment-grid,
    .hole-summary-row,
    .hole-detail-row {
        min-width: 820px;
    }
}

@media (max-width: 650px) {
    .assignments-card .card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .assignment-filters {
        width: 100%;
    }

    .assignment-filters .filter-button {
        flex: 1;
    }
}