/* EABA Public Styles */

/* ---- Shared table styles ---- */
.eaba-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.95em;
}

.eaba-table th,
.eaba-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.eaba-table thead th {
    background: #f5f5f5;
    font-weight: 600;
    border-bottom: 2px solid #ccc;
}

.eaba-table tbody tr:hover {
    background: #fafafa;
}

/* ---- Column widths ---- */
.eaba-col-rank {
    width: 50px;
    text-align: center;
}

.eaba-col-points {
    width: 80px;
    text-align: center;
}

.eaba-col-comps {
    width: 80px;
    text-align: center;
}

.eaba-col-stat {
    width: 30px;
    text-align: center;
}

.eaba-col-score {
    width: 120px;
    text-align: center;
}

.eaba-col-round {
    width: 80px;
}

.eaba-col-result {
    width: 100px;
}

/* ---- Winner/loser styling ---- */
.eaba-winner {
    font-weight: 600;
}

.eaba-loser {
    color: #999;
}

.eaba-draw {
    font-style: italic;
    color: #555;
}

/* ---- TBD placeholder ---- */
.eaba-tbd {
    color: #bbb;
    font-style: italic;
}

/* ---- Section titles ---- */
.eaba-section-title {
    font-size: 1.4em;
    margin: 0 0 0.8em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #2271b1;
}

.eaba-subsection-title {
    font-size: 1.1em;
    margin: 1.5em 0 0.5em;
}

.eaba-round-title {
    font-size: 1.1em;
    margin: 1.2em 0 0.4em;
    color: #333;
}

.eaba-group-title {
    font-size: 1.15em;
    margin: 1.5em 0 0.5em;
}

/* ---- No data message ---- */
.eaba-no-data {
    color: #666;
    font-style: italic;
    padding: 1em 0;
}

/* ---- Bracket controls (show-from dropdown) ---- */
.eaba-bracket-controls {
    margin-bottom: 1em;
    font-size: 0.95em;
}

.eaba-bracket-controls label {
    font-weight: 600;
    margin-right: 6px;
}

.eaba-bracket-controls select {
    padding: 4px 8px;
}

/* ---- Visual bracket tree ---- */
.eaba-bracket {
    --eaba-match-w: 175px;
    --eaba-connector-w: 15px;
    --eaba-col-w: calc(var(--eaba-match-w) + var(--eaba-connector-w));
    overflow-x: auto;
    padding-bottom: 8px;
}

.eaba-bracket-headers {
    display: flex;
    margin-bottom: 8px;
}

.eaba-bracket-header {
    width: var(--eaba-match-w);
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    color: #333;
    padding: 6px 8px;
    border: 1px solid #2271b1;
    border-radius: 3px;
    background: #f0f6fc;
    text-align: center;
    box-sizing: border-box;
    margin-right: var(--eaba-connector-w);
}

/* Bracket tree: horizontal flex container */
.eaba-bracket-tree {
    display: flex;
    align-items: center;
}

/* Matchup: horizontal flex → feeders | connector | match box */
.eaba-matchup {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Feeders column: stacks two sub-matchups vertically */
.eaba-matchup-feeders {
    display: flex;
    flex-direction: column;
}

/* Connector between feeders and current match */
.eaba-matchup-connector {
    display: flex;
    flex-direction: column;
    width: var(--eaba-connector-w);
    align-self: stretch;
    position: relative;
}

/* Connector halves — structural only (lines drawn from feeder matchups) */
.eaba-connector-top,
.eaba-connector-bottom {
    flex: 1;
}

/* Horizontal line from connector midpoint to next match box */
.eaba-matchup-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    border-top: 2px solid #999;
}

/* Feeder connector stubs — drawn from each feeder for correct vertical alignment */
.eaba-matchup-feeders > .eaba-matchup {
    position: relative;
}

/* Top feeder: horizontal stub at center + vertical line from center to bottom */
.eaba-matchup-feeders > .eaba-matchup:first-child::after {
    content: '';
    position: absolute;
    top: 50%;
    bottom: 0;
    right: calc(-1 * var(--eaba-connector-w) / 2);
    width: calc(var(--eaba-connector-w) / 2);
    border-top: 2px solid #999;
    border-right: 2px solid #999;
}

/* Bottom feeder: vertical line from top to center + horizontal stub at center */
.eaba-matchup-feeders > .eaba-matchup:last-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: calc(-1 * var(--eaba-connector-w) / 2);
    width: calc(var(--eaba-connector-w) / 2);
    height: 50%;
    border-bottom: 2px solid #999;
    border-right: 2px solid #999;
}

/* Spacers for alignment when leaf nodes are shallower than max depth */
.eaba-matchup-spacer {
    width: var(--eaba-match-w);
    flex-shrink: 0;
}

.eaba-matchup-connector-spacer {
    width: var(--eaba-connector-w);
    flex-shrink: 0;
}

/* Match block: wrapper that holds break rows + match box */
.eaba-matchup-block {
    width: var(--eaba-match-w);
    flex-shrink: 0;
}

/* Match box */
.eaba-matchup-match {
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    font-size: 0.7em;
    display: flex;
}

/* Table number column inside match box */
.eaba-match-table-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    border-right: 1px solid #eee;
    padding: 2px 4px;
}

.eaba-table-label {
    font-size: 0.75em;
    text-transform: uppercase;
    color: #999;
    line-height: 1;
}

.eaba-table-number {
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.2;
}

/* Player slots column */
.eaba-match-players-col {
    flex: 1;
    min-width: 0;
}

/* Bye match box — dashed border, subtle background */
.eaba-bye-match {
    border-style: dashed;
    background: #fafafa;
}

/* Bye label — subdued italic text */
.eaba-bye-label {
    color: #999;
    font-style: italic;
}

/* Break row above/below match box */
.eaba-break-row {
    min-height: 1.2em;
    font-size: 0.8em;
    color: #d63638;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player slot within match box */
.eaba-match-slot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 8px;
}

.eaba-match-slot + .eaba-match-slot {
    border-top: 1px solid #eee;
}

.eaba-match-slot.eaba-winner {
    font-weight: 600;
    background: #f0faf0;
}

.eaba-match-slot.eaba-loser {
    color: #999;
}

.eaba-slot-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.eaba-slot-score {
    color: #555;
    margin-left: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Break values within break row */
.eaba-break-values {
    color: #d63638;
    font-size: 0.85em;
    font-weight: normal;
    cursor: pointer;
}
.eaba-break-values:focus {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

/* Floating popup that lists the full break values on click / tap / Enter. */
.eaba-breaks-popup {
    position: absolute;
    z-index: 10000;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    max-width: 320px;
    font-size: 0.9em;
    color: #1d2327;
}
.eaba-breaks-popup-heading {
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    color: #50575e;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.eaba-breaks-popup-body {
    color: #d63638;
    white-space: normal;
    word-break: break-word;
}

/* Winner box to the right of the final */
.eaba-bracket-winner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: var(--eaba-connector-w);
}

.eaba-winner-label {
    width: var(--eaba-match-w);
    box-sizing: border-box;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    color: #333;
    padding: 6px 8px;
    border: 1px solid #2271b1;
    border-radius: 3px;
    background: #f0f6fc;
    text-align: center;
    margin-bottom: 4px;
}

.eaba-winner-name {
    width: var(--eaba-match-w);
    box-sizing: border-box;
    font-weight: 700;
    font-size: 1em;
    padding: 6px 12px;
    text-align: center;
    background: #f0faf0;
    border: 2px solid #2271b1;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Group standings ---- */
.eaba-group-standings {
    max-width: 600px;
}

.eaba-group-standings tr.eaba-qualified {
    background-color: #ecf7ec;
}

.eaba-group-standings tr.eaba-qualified:hover {
    background-color: #ddf0dd;
}

.eaba-group-matches {
    max-width: 600px;
    margin-bottom: 2em;
}

/* ---- Player profile ---- */
.eaba-player-ranking {
    margin-bottom: 1.5em;
}

.eaba-player-ranking th {
    width: 180px;
    font-weight: 600;
}

/* ---- Results table ---- */
.eaba-results-table {
    max-width: 700px;
}

/* ---- Rankings table ---- */
.eaba-rankings-wrap {
    overflow-x: auto;
}

.eaba-rankings-table {
    max-width: none;
}

/* Full rankings matrix: scroll horizontally, with Pos + Player frozen on the
   left so you keep your place on a phone. Scoped to .eaba-rankings-scroll so it
   only affects the wide Open/Senior matrix, not the narrow Par table. */
.eaba-rankings-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.eaba-rankings-scroll .eaba-col-rank,
.eaba-rankings-scroll .eaba-col-player {
    position: sticky;
    background: #fff;
    z-index: 2;
}
.eaba-rankings-scroll .eaba-col-rank { left: 0; min-width: 50px; }
.eaba-rankings-scroll .eaba-col-player {
    left: 48px;                       /* 2px less than the Pos width: overlap the
                                         two frozen columns so no sub-pixel gap
                                         opens between them on mobile */
    box-shadow: 1px 0 0 #e0e0e0;      /* divider from the scrolling columns */
}
.eaba-rankings-scroll thead .eaba-col-rank,
.eaba-rankings-scroll thead .eaba-col-player {
    background: #f5f5f5;
    z-index: 3;
}

.eaba-col-comp {
    width: 50px;
    text-align: center;
    font-size: 0.85em;
}

.eaba-plate-points {
    color: #c00;
}

.eaba-plate-legend {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.eaba-provisional {
    font-style: italic;
    color: #888;
}

.eaba-provisional-points {
    font-style: italic;
    color: #888;
}

/* Plate color overrides provisional grey */
.eaba-plate-points.eaba-provisional-points {
    color: #c00;
}

/* ---- Breaks table ---- */
.eaba-breaks-table {
    max-width: 600px;
}

.eaba-competition-breaks-table .eaba-col-player {
    width: 180px;
}

/* ---- Contact form ---- */
.eaba-contact-form-wrap {
    max-width: 600px;
}

.eaba-contact-form .eaba-form-row {
    margin-bottom: 16px;
}

.eaba-contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.eaba-contact-form input[type="text"],
.eaba-contact-form input[type="email"],
.eaba-contact-form input[type="number"],
.eaba-contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.eaba-contact-form input[type="number"] {
    width: 100px;
}

.eaba-contact-form textarea {
    resize: vertical;
}

.eaba-required {
    color: #d63638;
}

.eaba-submit-btn {
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
    padding: 8px 24px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
}

.eaba-submit-btn:hover {
    background: #135e96;
    border-color: #135e96;
}

.eaba-notice {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-left: 4px solid;
    background: #fff;
}

.eaba-notice-success {
    border-color: #00a32a;
    background: #edfaef;
}

.eaba-notice-error {
    border-color: #d63638;
    background: #fcf0f1;
}

.eaba-notice p {
    margin: 0 0 4px;
}

.eaba-notice p:last-child {
    margin-bottom: 0;
}

/* ---- Season hub ---- */
.eaba-season-hub-wrap {
    overflow-x: auto;
}

.eaba-season-selector {
    margin-bottom: 1.2em;
}

.eaba-season-selector label {
    margin-right: 6px;
}

.eaba-season-selector select {
    padding: 4px 8px;
}

.eaba-season-hub-table {
    max-width: 900px;
}

.eaba-hub-col-date {
    width: 100px;
}

.eaba-hub-col-venue,
.eaba-hub-col-winner {
    width: 160px;
}

.eaba-hub-col-status {
    width: 100px;
}

.eaba-stage-links {
    display: block;
    font-size: 0.85em;
    margin-top: 2px;
}

.eaba-stage-links a {
    text-decoration: none;
}

.eaba-stage-links a:hover {
    text-decoration: underline;
}

.eaba-status-badge {
    font-size: 0.85em;
    font-weight: 600;
}

.eaba-status-draft {
    color: #50575e;
}

.eaba-status-upcoming {
    color: #996800;
}

.eaba-status-in-progress {
    color: #b85c00;
}

.eaba-status-completed {
    color: #007017;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .eaba-table th,
    .eaba-table td {
        padding: 6px 8px;
        font-size: 0.9em;
    }

    .eaba-col-rank,
    .eaba-col-points,
    .eaba-col-comps,
    .eaba-col-stat {
        width: auto;
    }

    .eaba-rankings-table,
    .eaba-results-table,
    .eaba-breaks-table,
    .eaba-group-standings,
    .eaba-group-matches,
    .eaba-season-hub-table {
        max-width: none;
    }

    .eaba-hub-col-date,
    .eaba-hub-col-venue,
    .eaba-hub-col-winner,
    .eaba-hub-col-status {
        width: auto;
    }
}


/* ---- Session view ---- */
.eaba-sessions-find { margin: 0.5em 0 1em; }
.eaba-sessions-filter { padding: 4px 8px; min-width: 220px; }
.eaba-session-block { margin: 1.5em 0; padding-bottom: 0.5em; border-bottom: 1px solid #eee; }
.eaba-session-block.eaba-session-current { background: #fff8e1; padding: 12px 14px; border: 1px solid #ffc107; border-radius: 4px; }
.eaba-session-block.eaba-session-past .eaba-session-title,
.eaba-session-block.eaba-session-past table { opacity: 0.65; }
.eaba-session-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6em; margin-bottom: 0.5em; }
.eaba-session-title { margin: 0; font-size: 1.05em; }
.eaba-session-time { font-weight: normal; color: #555; margin-left: 0.4em; }
.eaba-session-badge { font-size: 0.8em; padding: 2px 8px; border-radius: 10px; }
.eaba-session-badge-current { background: #ffc107; color: #5f4900; }
.eaba-session-badge-upcoming { background: #b3e5fc; color: #1a5078; }
.eaba-session-badge-past { background: #e0e0e0; color: #444; }
.eaba-session-countdown { color: #444; font-size: 0.9em; font-variant-numeric: tabular-nums; }
.eaba-session-countdown-elapsed { color: #999; font-style: italic; }
.eaba-sessions-matches { width: 100%; max-width: 720px; margin-top: 0.4em; }
.eaba-session-match-hit { background: #fff59d !important; }



/* ---- Competition dashboard tabs ---- */
.eaba-comp-dashboard { margin: 1em 0; }
.eaba-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 1em;
}
.eaba-tab,
.eaba-subtab {
    padding: 8px 14px;
    border: 0;
    background: transparent !important;
    cursor: pointer;
    font-size: 1em;
    color: #444;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}
.eaba-tab:hover,
.eaba-subtab:hover {
    background: #f0f0f1 !important;
}
.eaba-tab:focus,
.eaba-subtab:focus {
    outline: none;
}
.eaba-tab:focus-visible,
.eaba-subtab:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}
.eaba-tab-active,
.eaba-tab[aria-selected="true"],
.eaba-subtab-active,
.eaba-subtab[aria-selected="true"] {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}
.eaba-subtablist {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #ddd;
    margin: 0 0 1em;
    padding-top: 4px;
}
.eaba-subtab {
    font-size: 0.92em;
    padding: 6px 10px;
}
.eaba-tabpanel[hidden],
.eaba-subtabpanel[hidden] { display: none; }
.eaba-dashboard-players-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2em;
}
@media (min-width: 720px) {
    .eaba-dashboard-players-list { columns: 3; }
}
@media (min-width: 1024px) {
    .eaba-dashboard-players-list { columns: 4; }
}
.eaba-dashboard-players-list li {
    break-inside: avoid;
    padding: 2px 0;
}


.eaba-venue-heading {
    margin: 1.5em 0 0.6em;
    padding-bottom: 0.2em;
    font-size: 1.15em;
    font-weight: 700;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
}
.eaba-venue-heading:first-child {
    margin-top: 0.5em;
}


/* ---- County competition bracket ---- */
.eaba-county-round-title {
    margin: 1.2em 0 0.5em;
    font-size: 1.1em;
    color: #333;
}
.eaba-county-rotation-key {
    margin: 0 0 0.8em;
    font-size: 0.92em;
}
.eaba-county-rotation-label {
    color: #555;
    margin-right: 6px;
}
.eaba-county-yellow-chip,
.eaba-county-blue-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    margin-right: 6px;
    font-weight: 600;
    font-size: 0.88em;
}
.eaba-county-yellow-chip { background: #fff4b8; color: #5b4a00; border: 1px solid #e6c200; }
.eaba-county-blue-chip   { background: #cbe6ff; color: #0a3a66; border: 1px solid #59a3e0; }

.eaba-county-matches {
    display: grid;
    gap: 0.5em 1em;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: 1.2em;
}
.eaba-county-match {
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.eaba-county-slot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 12px;
    font-size: 0.95em;
}
.eaba-county-slot + .eaba-county-slot {
    border-top: 1px solid rgba(0,0,0,0.08);
}
.eaba-county-yellow { background: #fff4b8; color: #4a3c00; }
.eaba-county-blue   { background: #cbe6ff; color: #0a3a66; }
.eaba-county-slot.eaba-winner { font-weight: 700; }
.eaba-county-slot.eaba-loser { opacity: 0.55; }
.eaba-county-tally { font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 0.5em; }

/* Players index */
.eaba-players-index .eaba-player-search { width: 100%; max-width: 360px; padding: 8px 12px; margin: 0 0 16px; border: 1px solid #bbb; border-radius: 4px; font-size: 1rem; }
.eaba-letter-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.eaba-letter-strip .eaba-letter { padding: 4px 9px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; font-size: 0.9rem; }
.eaba-letter-strip .eaba-letter.active { background: #1d3b6e; color: #fff; border-color: #1d3b6e; }
.eaba-letter-strip .eaba-letter.disabled { color: #bbb; pointer-events: none; opacity: 0.5; }
.eaba-player-group h3 { margin: 18px 0 6px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.eaba-player-group ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.eaba-player-group li { padding: 3px 0; break-inside: avoid; }
@media (max-width: 600px) { .eaba-player-group ul { columns: 1; } }

/* Next competition card */
.eaba-next-competition {
    border: 1px solid #e2ddd0;
    border-left: 4px solid #b8865b;
    border-radius: 4px;
    padding: 14px 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.eaba-next-competition .eaba-nc-heading { margin: 0 0 8px; font-size: 1.05rem; }
.eaba-nc-when { font-weight: 700; color: #1d3b6e; font-size: 1.05rem; }
.eaba-nc-status {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    background: #e5e5e5;
    color: #555;
}
.eaba-nc-status-in_progress { background: #fff3d0; color: #7a5b0a; }
.eaba-nc-status-drawn { background: #d8e8de; color: #1b4332; }
.eaba-nc-name { font-weight: 600; margin-top: 2px; }
.eaba-nc-date { color: #5a5a5a; font-size: 0.9rem; margin-top: 2px; }
.eaba-nc-meta { color: #5a5a5a; font-size: 0.85rem; margin-top: 2px; }
.eaba-nc-link { margin: 10px 0 0; font-size: 0.9rem; }

/* Competition dashboard: Report tab (write-up post) */
.eaba-report-image { margin-bottom: 16px; }
.eaba-report-image img { max-width: 100%; height: auto; border-radius: 4px; display: block; }
.eaba-report-content { line-height: 1.6; }
.eaba-report-content img { max-width: 100%; height: auto; }
.eaba-report-link { margin-top: 14px; font-weight: 600; }


/* Top breaks — compact sidebar panel (Break + Player only) */
.eaba-breaks-compact td { padding: 4px 8px; }
.eaba-breaks-compact .eaba-col-points { width: 1%; white-space: nowrap; font-weight: 700; color: #1d3b6e; text-align: right; }
.eaba-breaks-compact .eaba-col-player { width: auto; }

/* Calendar — single date-ordered timeline */
.eaba-calendar-table .eaba-cal-date { width: 110px; white-space: nowrap; }
.eaba-calendar-table .eaba-cal-stage { display: block; color: #777; font-weight: normal; font-size: 0.9em; }
.eaba-calendar-table .eaba-cal-tbc { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 3px; background: #e0a800; color: #fff; font-size: 0.7em; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.eaba-calendar-table tr.eaba-cal-past { opacity: 0.6; }
.eaba-calendar-table tr.eaba-cal-next td { border-top: 2px solid #1d3b6e; }
.eaba-calendar-table tr.eaba-cal-next td:first-child { box-shadow: inset 3px 0 0 #1d3b6e; }

/* Competition dashboard — match-days summary line under the title */
.eaba-comp-dates { color: #555; font-size: 0.95em; margin: 0 0 14px; }

/* Calendar — iCal subscribe box */
.eaba-ical-subscribe {
    margin: 0 0 1.5em;
    padding: 14px 16px;
    background: #f3f7f4;
    border: 1px solid #d6e2d9;
    border-radius: 6px;
}
.eaba-ical-subscribe .eaba-ical-title { margin: 0 0 6px; font-size: 1.05em; }
.eaba-ical-subscribe p { margin: 0 0 8px; }
.eaba-ical-url-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eaba-ical-subscribe code.eaba-ical-url {
    display: inline-block; padding: 5px 9px; background: #fff;
    border: 1px solid #ccd6cf; border-radius: 4px;
    font-size: 0.95em; word-break: break-all; user-select: all;
}
.eaba-ical-copy {
    cursor: pointer; padding: 5px 12px; border: 1px solid #1d3b6e;
    background: #1d3b6e; color: #fff; border-radius: 4px; font-size: 0.9em;
}
.eaba-ical-copy:hover { background: #16305a; }
.eaba-ical-how { margin: 6px 0 8px 1.2em; }
.eaba-ical-how li { margin-bottom: 4px; font-size: 0.95em; }
.eaba-ical-oneclick { font-size: 0.9em; color: #555; }

/* Calendar — collapsible "how to add it" instructions */
.eaba-ical-details { margin: 4px 0 8px; }
.eaba-ical-details summary {
    cursor: pointer;
    color: #1d3b6e;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-block;
    padding: 2px 0;
}
.eaba-ical-details summary:hover { text-decoration: underline; }
.eaba-ical-details[open] summary { margin-bottom: 6px; }
