﻿/* =========================================================
   ISOTOPE FILTERS (CLEAN + UNIFIED)
========================================================= */

.isotope-filters {
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.isotope-filters-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    position: static !important;
    top: auto !important;
    left: auto !important;
}

.isotope-filters-horizontal .isotope-filters-list {
    border-bottom: none !important;
}

.isotope-filters-list li {
    margin: 0;
    padding: 0;
}

.isotope-filters-list li a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    background: var(--dir-light-green);
    color: var(--dir-dark);
    transition: all .2s ease;
    cursor: pointer;
}

.isotope-filters-list li a:hover {
    background: var(--dir-light);
    color: var(--dir-green);
}

.isotope-filters-list li a.active {
    background: var(--dir-green);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.isotope-filters-list li a:active {
    transform: translateY(1px);
}


/* =========================================================
   ALPHA NAVIGATION
========================================================= */

.directory-alpha {
    position: relative;
    width: 100%;
    clear: both;
    text-align: center;
    margin: 5px 0 8px;
    padding: 4px 0;
    line-height: 1;
    z-index: 1;
}

.directory-alpha a {
    display: inline-block;
    margin: 0 5px;
    padding: 3px 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dir-green);
    text-decoration: none;
    border-radius: 4px;
    transition: all .2s ease;
    opacity: 0.85;
    cursor: pointer;
}

.directory-alpha a:hover {
    background: rgba(0,0,0,0.05);
    opacity: 1;
}

.directory-alpha a.active {
    border-bottom: 2px solid var(--dir-green);
}

.directory-alpha a.alpha-disabled {
    color: var(--dir-gray) !important;
    pointer-events: none;
    opacity: .4;
}

/* =========================================================
   LETTER HEADERS
========================================================= */

.directory-letter {
    width: 100%;
    font-size: 22px;
    font-weight: 600;
    color: var(--dir-green);
    margin: 18px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--dir-gray);
    scroll-margin-top: 120px;
}

/* =========================================================
   MOBILE / TABLET ADJUSTMENTS
========================================================= */

@media (max-width: 991px) {

    /* filters stay inline (no dropdown behavior) */
    .isotope-filters-list {
        display: flex !important;
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .isotope-filters-list {
        gap: 8px;
    }

    .isotope-filters-list li a {
        font-size: 13px;
        padding: 5px 10px;
    }

    .directory-alpha {
        font-size: 13px;
        letter-spacing: 1px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .directory-alpha::-webkit-scrollbar {
        display: none;
    }

    .directory-alpha a {
        margin: 0 4px;
        padding: 5px 6px;
        font-size: 13px;
    }

    .directory-letter {
        font-size: 20px;
        margin: 16px 0 6px;
    }
}

/* =========================================================
   ISOTOPE FILTERS — FINAL DESKTOP NORMALIZATION
   (removes template tab styling + matches mobile buttons)
========================================================= */

@media (min-width: 992px) {

    /* spacing */
    .isotope-filters-list {
        gap: 14px;
    }

    /* kill ALL template tab/underline behavior */
    .isotope-filters-horizontal .isotope-filters-list {
        border-bottom: none !important;
    }

    .isotope-filters-list li a,
    .isotope-filters-list li a.active,
    .isotope-filters-list li a::before,
    .isotope-filters-list li a::after {
        border: none !important;
        border-bottom: none !important;
        background-image: none !important;
        box-shadow: none !important;
    }

    /* button style (match mobile/tablet) */
    .isotope-filters-list li a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 12px !important;
        height: auto !important;
        line-height: normal !important;
        border-radius: 6px !important;
        background: var(--dir-light-green) !important;
        color: var(--dir-gray) !important;
    }

    /* active state */
    .isotope-filters-list li a.active {
        background: var(--dir-green) !important;
        color: #fff !important;
    }
}

/* kill template underline pseudo-element */
.isotope-filters-list li a.active::after {
    display: none !important;
    content: none !important;
}

/* =========================================================
   DIRECTORY 
========================================================= */

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.directory-group .member-grid {
    justify-content: start;
}

.directory-group {
    width: 100%;
    margin-bottom: 20px;
}

.directory-letter {
    font-size: 22px;
    font-weight: 600;
    color: var(--dir-green);
    border-bottom: 1px solid var(--dir-gray);
    margin: 24px 0 8px;
}

@media (max-width: 768px) {

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }


    .member-group {
        gap: 12px;
    }


    .member-image-wrap img {
        height: 130px;
    }

    .member-name {
        font-size: 13px;
        margin-top: 6px;
        min-height: 32px;
    }

    .member-ribbon {
        font-size: 9px;
        padding: 3px 4px;
    }

    .member-card {
        margin-bottom: 12px;
    }
}

@media (min-width: 992px) {
    .member-grid {
        gap: 20px;
    }
}

/* =========================================================
   MEMBER CARDS
========================================================= */

.member-card {
    width: 100%;
    position: relative;
    text-align: center;
    margin-bottom: 18px;
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 0;
    -webkit-tap-highlight-color: transparent;
}

    .member-card:active {
        transform: scale(0.98);
    }

    .member-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,.15);
    }

@media (hover: hover) {
    .member-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0,0,0,.12);
    }
}

.member-card img {
    width: 80%;
    max-width: 160px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform .25s ease;
    margin: 0 auto;
    display: block;
}

.member-image-wrap {
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    border-radius: 8px;
    overflow: hidden;
    width: 160px;
    margin: 0 auto;
}

    .member-image-wrap img {
        display: block;
        width: 100%;
        max-width: 160px;
        margin-top: 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        height: 160px;
        object-fit: cover;
    }

.member-card:hover img {
    transform: scale(1.03);
}

/* MEMBER NAME */

.member-name {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dir-dark);
    font-size: 15px;
}

@media (max-width: 768px) {

    .member-image-wrap {
        width: 100%;
    }

        .member-image-wrap img {
            height: 150px;
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
        }

    .member-ribbon {
        width: 100%;
        font-size: 9px;
        padding: 3px 4px;
    }

    .member-name {
        font-size: 13px;
        margin-top: 6px;
        min-height: 32px;
    }

    .member-card {
        margin-bottom: 10px;
    }
}

/* =========================================================
   MEMBER RIBBONS
========================================================= */

.member-ribbon {
    width: 160px;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff;
    margin-bottom: 2px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TYPE COLORS */

.member-full .member-ribbon {
    background: var(--dir-green);
}

.member-lifetime .member-ribbon {
    background: var(--dir-gold);
}

.member-social .member-ribbon {
    background: var(--dir-blue);
}

/* =========================================
   FIX TEMPLATE ROW SPACING (DIRECTORY ONLY)
========================================= */

.section.section-lg.bg-white .row + .row {
    margin-top: 0 !important;
}

.section.section-lg.bg-white .row {
    transform: none !important;
    margin-bottom: 0 !important;
}

/* =========================================================
   BIRTHDAY HIGHLIGHT
========================================================= */

.birthday-month {
    outline: 2px solid var(--dir-green);
    outline-offset: 2px;
}

/* =========================================================
   MEMBER DETAIL (INLINE PANEL)
========================================================= */

#memberDetailInline {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 1400px;
    z-index: 9999;
    display: none;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    opacity: 0;
    transition: opacity .5s ease;
}

#memberDetailInline.show {
    opacity: 1;
}

.member-detail-wrapper {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--dir-gray);
    border-left: 4px solid var(--dir-green);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.section .row {
    overflow: visible;
}

#memberBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9000;
}

#memberBackdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* CLOSE BUTTON */

.member-detail-close {
    text-align: right;
    margin-bottom: 10px;
}

.member-detail-close button {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--dir-dark);
}

.member-detail-close button:hover {
    color: #000;
}

/* DETAIL TEXT */

.directory-member-detail .col-xl-4:last-child {
    padding-left: 10px;
}

.directory-member-detail-content {
    width: 100%;
    margin-bottom: 4px;
}

.directory-member-detail-name {
    color: var(--dir-green);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 6px;
}

.directory-member-detail-type {
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--dir-dark);
}

.directory-member-detail-content a {
    color: var(--dir-green);
    text-decoration: none;
}

.directory-member-detail-content i.fa {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.directory-member-detail-content a:hover {
    text-decoration: underline;
}

.member-history p {
    margin-bottom: 2px;
    padding-left: 2px;
}

.member-history h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dir-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.member-history-line {
    margin: 0;
    line-height: 1.15;
    font-size: 13px;
}

/* =========================================================
   MEMBER DETAIL - COMPLETE MOBILE FIX
========================================================= */

/* MAIN CONTAINER FIX */
#memberDetailInline {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 1400px;
    /* CRITICAL */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    display: none;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    opacity: 0;
    transition: opacity .5s ease;
}

#memberDetailInline.show {
    opacity: 1;
}

/* WRAPPER */
.member-detail-wrapper {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--dir-gray);
    border-left: 4px solid var(--dir-green);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    overflow: visible;
}

/* BACKDROP */
#memberBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9000;
}

#memberBackdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* CLOSE BUTTON (sticky on scroll) */
.member-detail-close {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    text-align: right;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

.member-detail-close button {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--dir-dark);
}

.member-detail-close button:hover {
    color: #000;
}

/* TEXT */
.directory-member-detail-content {
    width: 100%;
    margin-bottom: 4px;
}

.directory-member-detail-name {
    color: var(--dir-green);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 6px;
}

.directory-member-detail-type {
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--dir-dark);
}

.directory-member-detail-content a {
    color: var(--dir-green);
    text-decoration: none;
}

.directory-member-detail-content a:hover {
    text-decoration: underline;
}

/* HISTORY */
.member-history p {
    margin-bottom: 2px;
    padding-left: 2px;
}

.member-history h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dir-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.member-history-line {
    margin: 0;
    line-height: 1.15;
    font-size: 13px;
}

/* =========================================================
   MOBILE FIXES
========================================================= */

@media (max-width: 768px) {

    #memberDetailInline {
        top: 60px;
        max-height: calc(100vh - 70px);
        border-radius: 0;
    }

    .member-detail-wrapper {
        padding: 18px;
    }

    /* FORCE STACKING (kills bootstrap row/flex issues) */
    .directory-member-detail {
        display: block;
    }

    .directory-member-detail > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    /* IMAGE CONTROL (prevents giant image) */
    .directory-member-detail img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
        border-radius: 6px;
    }
}

/* SAFETY: prevent hidden overflow from child elements */
#memberDetailInline * {
    max-height: none !important;
}

/* =========================================================
   ACTIVE CARD
========================================================= */

.member-active {
    outline: 3px solid var(--dir-green);
    outline-offset: 2px;
}

/* =========================================================
   PAST PRESIDENTS, CHAMPIONS AND BOARD MINUTES
========================================================= */

/* GRID LAYOUT */
.bh-history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* wide screens */
@media (min-width: 1600px) {
    .bh-history-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* tablet + down */
@media (max-width: 992px) {
    .bh-history-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.bh-year-card {
    background: #fff;
    border: 1px solid var(--dir-gray);
    border-radius: 6px;
    padding: 12px;
    text-align: left;
}

    .bh-year-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

/* HEADER */
.bh-year-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--dir-green);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--dir-gray);
    padding-bottom: 4px;
}

/* BODY */
.bh-year-body {
    font-size: 14px;
}

/* =========================================================
   ARCHIVE (TRUE VERTICAL COLUMNS)
========================================================= */

.bh-year-card.archive .bh-year-body {
    display: block;
}

/* 2-column layout */
.bh-archive-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* column content */
.bh-archive-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* mobile: single column */
@media (max-width: 768px) {
    .bh-archive-cols {
        display: block;
    }

    .bh-archive-col {
        width: 100%;
    }
}

/* ROW CONTENT */
.bh-history-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    line-height: 1.3;
}

/* fixed year column */
.bh-history-year {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--dir-green);
    min-width: 65px;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* name takes remaining space cleanly */
.bh-history-name {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
}

/* LINKS */
.bh-member-link {
    color: var(--dir-green);
    text-decoration: none;
    cursor: pointer;
}

    .bh-member-link:hover {
        text-decoration: underline;
    }

/* SECTION TITLE */
.board-section-title {
    margin: 30px 0 15px;
    font-weight: 600;
    color: var(--dir-green);
    border-bottom: 2px solid var(--dir-gray);
    padding-bottom: 6px;
}

/* =========================================================
   BOARD MINUTES
========================================================= */
.bh-history-date {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--dir-green);
    min-width: 120px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.pending {
    color: var(--dir-gray);
    font-style: italic;
}

.bh-history-view {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
}

.bh-minutes-link {
    color: var(--dir-green);
    text-decoration: none;
}

.bh-minutes-link:hover {
    text-decoration: underline;
}

/* =========================================================
   IN MEMORIUM
========================================================= */

.memorial-intro {
    font-size: 17px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dir-dark);
}

.memorial-grid {
    margin-top: 10px;
}

.memorial-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 20px;
}

.memorial-item {
    font-size: 16px;
    padding: 6px 0;
    border-bottom: 1px solid var(--dir-gold);
}

.memorial-item:hover {
    color: var(--dir-green);
}

/* responsive */
@media (max-width: 992px) {
    .memorial-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .memorial-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* wide screens */
@media (min-width: 1600px) {
    .memorial-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* =========================================================
   BYLAWS / RULES
========================================================= */

.bylaws-container {
    max-width: 900px;
    margin: 0 auto;
}

.bylaws-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.bylaws-content {
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

/* Article headers with accent */
.bylaws-content h3 {
    text-align: left;
    margin-top: 35px;
    margin-bottom: 10px;
    font-weight: 600;
    padding-left: 12px;
    border-left: 4px solid var(--dir-green);
}

/* Section titles */
.bylaws-section-title {
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 700;
    padding-left: 10px;
    border-left: 3px solid var(--dir-blue);
}

/* Subheads */
.bylaws-subhead {
    margin-top: 20px;
    margin-bottom: 5px;
    font-weight: 700;
    padding-left: 8px;
    border-left: 2px solid var(--dir-gold);
    text-transform: uppercase;
}

.bylaws-content p {
    margin-bottom: 14px;
    text-indent: 20px;
}

.bylaws-content strong {
    font-weight: 600;
}

.bylaws-content em {
    color: var(--dir-dark);
    font-size: 0.95em;
}

.bylaws-list {
    margin-left: 30px;
    margin-bottom: 15px;
}

/* =========================================
   ETW AND B&B PLAY DAYS
========================================= */

.schedule-row {
    display: grid;
    grid-template-columns: 180px 1fr 200px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dir-light);
    font-size: 15px;
}

.schedule-date {
    font-weight: 600;
    color: var(--dir-green);
    white-space: nowrap;
}

.schedule-course {
    padding-left: 10px;
}

.schedule-city {
    text-align: right;
    color: var(--dir-gray);
}

/* mobile */
@media (max-width: 768px) {
    .schedule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .schedule-city {
        text-align: left;
    }
}

/* =========================================================
   SCHEDULE HEADER
========================================================= */

.schedule-header {
    margin-bottom: 10px;
}

.schedule-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--dir-green);
    margin-bottom: 5px;
}

.schedule-subtitle {
    font-size: 16px;
    color: var(--dir-gray);
}

/* =========================================================
   INFO BAR
========================================================= */

.schedule-info-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-top: 1px solid var(--dir-gray);
    border-bottom: 1px solid var(--dir-gray);
    margin-bottom: 15px;
}

.info-item {
    font-size: 14px;
}

/* =========================================================
   NOTE
========================================================= */

.schedule-note {
    text-align: center;
    font-size: 14px;
    color: var(--dir-dark);
    margin-bottom: 20px;
}

/* =========================================================
   HLR PLAY DAYS
========================================================= */

.playdays-subtitle {
    font-size: 18px;
    color: var(--dir-green);
    font-weight: 500;
}

.playdays-text {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--dir-dark);
}

.playdays-fee {
    margin-top: 20px;
    font-size: 16px;
}

.playdays-fee p {
    margin-bottom: 8px;
}

.small-text {
    font-size: 14px;
    color: var(--dir-gray);
}

/* =========================
   MEETINGS
========================= */

.meeting-container {
    max-width: 640px;
    margin: 0 auto;
}

.meeting-list {
    width: 100%;
    margin: 0 auto;
}

.meeting-card {
    border-bottom: 1px solid var(--dir-light);
    padding: 8px 0;
    text-align: left;
}

.meeting-row {
    display: grid;
    grid-template-columns: 130px 80px 1fr;
    column-gap: 20px;
    align-items: start;
}

.meeting-day {
    font-weight: 400;
    color: var(--dir-gray);
    margin-right: 4px;
}

.meeting-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--dir-green);
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.meeting-time {
    min-width: 80px;
    font-size: 15px;
    margin-bottom: 3px;
    color: var(--dir-dark);
}

.meeting-location {
    color: var(--dir-dark);
}

.meeting-location {
    font-size: 15px;
    margin-bottom: 2px;
    line-height: 1.3;
}

.meeting-date {
    margin-bottom: 2px;
    line-height: 1.3;
}

.meeting-notes {
    margin-top: 3px;
    line-height: 1.3;
    font-size: 14px;
    color: var(--dir-gray);
    margin-top: 3px;
    margin-left: 150px;
}

/* flyer icon */
.tourn-flyer {
    color: var(--dir-green);
    font-size: 16px;
    text-decoration: none;
}

    .tourn-flyer:hover {
        color: #1e7e34;
    }

    /* disabled state */
    .tourn-flyer.disabled {
        color: #ccc;
        cursor: default;
        pointer-events: none;
    }

/* =========================================================
   TOURNAMENTS (clean + stable)
========================================================= */

/* GRID */
.tourn-line {
    display: grid;
    grid-template-columns: 60px 60px 60px minmax(250px, 1fr) 100px 80px;
    align-items: center;
    font-size: 14px;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
}

/* COLUMN ALIGNMENT */
.tourn-day,
.tourn-date {
    font-weight: 600;
}

.tourn-ampm {
    text-align: left;
    padding-left: 4px;
    color: #999;
}

.tourn-name {
    justify-self: start;
    padding-left: 6px;
}

.tourn-format {
    color: #666;
}

/* SIMPLE HOVER */
.tourn-line:hover {
    background: rgba(0,0,0,0.03);
}

/* =========================================================
   GROUPING (multi-day + next event)
========================================================= */

.tourn-group {
    position: relative;
    margin-bottom: 8px;
    padding-left: 10px;
}
    /* remove lines inside group */
    .tourn-group .tourn-line {
        border-bottom: none;
    }

/* ADD line between groups */
.tourn-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

    /* LEFT INDICATOR */
    .tourn-group::before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        bottom: 6px;
        width: 4px;
        background: transparent;
    }

    /* MULTI-DAY */
    .tourn-group.tourn-multi::before {
        background: var(--dir-gold);
    }

    /* NEXT EVENT (wins over multi-day) */
    .tourn-group.next-event::before {
        background: var(--dir-green);
    }

    /* NEXT EVENT ROW */
    .tourn-group.next-event .tourn-line:first-child {
        background: var(--dir-light-green);
        border-radius: 3px;
    }
    .tourn-group .tourn-line:not(:first-child) {
        margin-top: -2px;
    }
/* CONTINUATION ROWS */
.tourn-cont {
    opacity: 0.75;
}

    /* hide empty columns cleanly */
    .tourn-cont span:nth-child(n+4) {
        opacity: 0;
    } 

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
    .tourn-line {
        grid-template-columns: 50px 80px 1fr;
    }

    .tourn-format,
    .tourn-details {
        display: none;
    }
}

/* =========================================================
   HOME CARDS
========================================================= */

.home-card {
    background: #fff;
    border: 1px solid var(--dir-gray);
    border-radius: 6px;
    padding: 15px;
    text-align: left;
}

.home-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dir-green);
    border-bottom: 1px solid var(--dir-gray);
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.home-section {
    margin-bottom: 12px;
}

.home-sub {
    font-weight: 600;
    color: var(--dir-green);
    margin-bottom: 6px;
}

.home-line {
    display: flex;
    gap: 12px;
    font-size: 14px;
    padding: 3px 0;
    align-items: center;
    padding: 6px 0;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.home-line:last-child {
    border-bottom: none;
}

.home-date {
    min-width: 140px;
    font-weight: 600;
    color: var(--dir-green);
    white-space: nowrap;
}

.home-name {
    flex: 1;
    color: #555;
}

.home-section:not(:last-child) {
    margin-bottom: 20px;
}

.home-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-link:hover .home-line {
    background: rgba(0,0,0,0.04);
    border-radius: 4px;
}


.home-row {
    display: grid;
    grid-template-columns: 95px 70px 1fr;
    column-gap: 10px;
    align-items: start;
}

.home-date {
    font-weight: 600;
    color: var(--dir-green);
    font-size: 14px;
}

.home-time {
    font-size: 13px;
    color: #333;
}

.home-location {
    font-size: 13px;
    color: #555;
}

.home-notes {
    margin-left: 105px; /* aligns under time column */
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}