.club-page { width: min(920px, calc(100% - 40px)); margin: 36px auto 64px; color: var(--ink); }
.club-page.club-narrow { max-width: 672px; }
.club-page h1 { margin: .25rem 0 .55rem; color: var(--navy); font-size: clamp(1.85rem, 4.2vw, 2.65rem); line-height: 1.16; letter-spacing: -.045em; }
.club-page h2 { color: var(--navy); font-size: 1.2rem; line-height: 1.35; letter-spacing: -.025em; margin: 0; }
.club-page h3 { font-size: 1rem; color: var(--navy); margin: .3rem 0; }
.club-page p { line-height: 1.55; margin: .4rem 0; }
.club-intro { color: var(--muted); }
.club-section { margin: 24px 0 12px; }
.club-back { display: inline-flex; gap: 4px; align-items: center; margin-bottom: 18px; color: var(--blue); text-decoration: none; font-size: .9rem; font-weight: 700; }
.club-back svg { transform: rotate(180deg); }
.club-tabs { display: inline-flex; gap: 3px; padding: 4px; margin: 18px 0 0; border-radius: 10px; background: var(--pale); border: 1px solid var(--line); }
.club-tabs button { border: 0; font: inherit; font-size: .89rem; font-weight: 650; color: var(--muted); background: transparent; border-radius: 7px; min-height: 38px; padding: 7px 18px; cursor: pointer; }
.club-tabs button[aria-pressed="true"] { color: var(--navy); background: #fff; box-shadow: 0 1px 4px #15335f1a; }
.club-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 21px; }
.club-card + .club-card { margin-top: 12px; }
.club-day { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 15px; }
.club-date { align-self: start; display: grid; text-align: center; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); overflow: hidden; }
.club-date span { padding: 4px; background: var(--pale); color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.club-date strong { font-size: 1.42rem; line-height: 1.25; padding: 6px; }
.club-day h3 a, .club-copy-link { color: var(--navy); text-decoration: none; }
.club-status { color: var(--blue); font-weight: 700; font-size: .79rem; }
.club-meta { display: flex; align-items: center; gap: 7px 12px; flex-wrap: wrap; color: var(--muted); margin-top: 10px; font-size: .88rem; }
.club-meta span { display: inline-flex; align-items: center; gap: 5px; }
.club-meta svg { flex-shrink: 0; }
.club-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.club-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; line-height: 1.35; border: 1px solid var(--blue); border-radius: 9px; padding: 8px 15px; background: var(--blue); color: white !important; font: inherit; font-weight: 720; font-size: .9rem; text-decoration: none; cursor: pointer; }
.club-btn.secondary { border-color: var(--line); color: var(--blue) !important; background: #fff; }
.club-btn:disabled { opacity: .55; cursor: progress; }
.club-btn:focus-visible, .club-page button:focus-visible, .club-page a:focus-visible, .club-page input:focus-visible { outline: 3px solid #829ffe; outline-offset: 3px; }
.club-btn:hover:not(:disabled) { filter: brightness(.95); }
.club-page .club-caption { color: var(--muted); font-size: .84rem; }
.club-page .club-notice { margin: 16px 0 0; display: flex; gap: 8px; align-items: flex-start; background: var(--pale); color: var(--navy); border-radius: 9px; padding: 10px 12px; font-size: .88rem; line-height: 1.5; }
.club-notice svg { margin-top: 2px; flex-shrink: 0; }
.club-result-list, .club-attendees { padding: 0; margin: 12px 0 0; list-style: none; }
.club-attendees li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.club-attendees li a, .club-result-list a, .club-guide-link { color: var(--navy); text-decoration: none; font-weight: 700; }
.club-attendees li a:hover, .club-result-list a:hover, .club-guide-link:hover, .club-back:hover, .club-day a:hover { text-decoration: underline; text-underline-offset: 3px; }
.club-avatar { display: inline-grid; flex-shrink: 0; width: 32px; height: 32px; place-content: center; border-radius: 50%; background: var(--pale); color: var(--blue); font-size: .75rem; font-weight: 800; }
.club-rating { margin-inline-start: auto; color: var(--muted); font-size: .88rem; }
.club-result-list li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 14px 0 2px; }
.club-pair { display: grid; gap: 4px; font-size: .91rem; }
.club-pair:last-child { text-align: end; }
.club-score { color: var(--blue); border: 1px solid var(--line); border-radius: 8px; background: var(--pale); padding: .45rem .7rem; white-space: nowrap; font-size: 1rem; }
.club-result-top { align-items: center; display: flex; justify-content: space-between; gap: 10px; }
.club-progress { accent-color: var(--blue); width: 100%; height: .55rem; margin: 4px 0; }
.club-details { margin-top: 12px; }
.club-details summary { cursor:pointer; color:var(--blue); font-weight:700; padding: 8px 0; }
.club-rule-list { padding-left: 20px; margin: 10px 0; }
.club-rule-list li { padding: 3px 0; }
.club-cal { margin-top: 16px; }
.club-cal header { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom: 12px; }
.club-cal button { border: 1px solid var(--line); border-radius: 8px; background:white; color:var(--blue); width:38px; height:38px; display:grid; place-content:center; cursor:pointer; }
.club-cal button:first-child svg { transform:rotate(180deg); }
.club-cal-grid { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:3px; list-style:none; padding:0; margin:0; }
.club-cal-head { color:var(--muted); font-size:.8rem; text-align:center; margin-bottom:5px; }
.club-cal-day { align-items:flex-start; justify-content:flex-start; padding:7px; min-height:56px; border-radius:7px; display:flex; flex-direction:column; font-size:.9rem; background:#f7f9fc; color:var(--ink); }
.club-cal-day a { display:block; width:100%; height:100%; text-decoration:none; color:var(--blue); font-weight:750; }
.club-cal-day:has(a) { background:var(--pale); border:1px solid #b7cafa; }
.club-cal-day small { display:block; font-size:.75rem; }
.club-guide-list { display:grid; gap:8px; }
.club-guide-link { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.club-guide-link > span { display:grid; gap:4px; }
.club-guide-link small { font-weight:450; color:var(--muted); font-size:.88rem; line-height:1.45; }
.club-guide-body h2 { margin-top:18px; }
.club-join input { display:block; border:1px solid var(--line); border-radius:9px; width:100%; padding:11px; background:white; color:var(--ink); font:inherit; margin:7px 0; }
.club-join label { font-weight:700; color:var(--navy); }
.club-join .club-btn { margin-top:12px; }
.club-error { color:#9e2638; font-size:.9rem; }
.club-page [hidden] { display:none !important; }
@media(max-width:620px) { .club-page { width:calc(100% - 32px); margin-top:22px; } .club-card { padding:16px; } .club-day { grid-template-columns:50px minmax(0, 1fr); gap:11px; } .club-day > .club-btn { grid-column:2; justify-self:start; } .club-cal-day { min-height:48px; padding:4px; } .club-cal-day small { font-size:.67rem; } .club-result-list li { gap:8px; } .club-meta { gap:5px 10px; } }
.club-page .club-section-heading { margin:24px 0 12px; }
.club-filter-label { font-weight:700; }
.club-filter-select { font:inherit; border:1px solid var(--line); border-radius:8px; padding:8px 12px; background:white; color:var(--navy); margin:6px; }
.club-guide-body { margin-top:18px; }
.club-copy-input { width:100%; padding:8px; }
.club-official { border-top:3px solid var(--blue); }
.club-code { margin-top:15px; }
.club-code label { display:block; color:var(--muted); font-size:.86rem; font-weight:700; }
.club-code > div { display:flex; gap:8px; align-items:center; margin-top:5px; }
.club-code input { width:7.5rem; border:1px solid var(--line); background:var(--pale); color:var(--navy); border-radius:8px; text-align:center; font-family:inherit; font-weight:800; font-size:1.12rem; letter-spacing:.12em; padding:8px 6px; min-height:42px; }
.club-code [data-ps-code-status]:not(:empty) { display:block; margin-top:7px; }
.club-card .club-field-intro { margin-bottom:14px; }
.club-official-results { margin-top:26px; }
.club-official-results > .club-result-top { margin-bottom:12px; }
.club-official-results .club-score-form { margin-bottom:14px; }
.club-official-results .club-score-fields { min-width:0; margin:0; padding:0; border:0; }
.club-score-form h3 { font-size:1.12rem; margin:0 0 14px; }
.club-score-form label { display:block; color:var(--navy); font-size:.88rem; font-weight:650; }
.club-score-form input, .club-score-form select { display:block; width:100%; min-height:42px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); padding:7px 10px; font:inherit; font-weight:500; margin-top:4px; }
.club-score-form input[type=date] { max-width:14rem; }
.club-score-teams { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:14px 0 10px; }
.club-result-team { margin:0; min-width:0; background:var(--paper); padding:9px 12px 12px; border:1px solid var(--line); border-radius:10px; }
.club-result-team legend { font-weight:750; padding:0 5px; color:var(--navy); }
.club-result-team label + label { margin-top:8px; }
.club-edit { color:var(--blue); font:inherit; font-size:.85rem; font-weight:700; background:white; border:1px solid var(--line); border-radius:7px; padding:7px 10px; cursor:pointer; }
@media(max-width:510px) { .club-score-teams { gap:8px; } .club-result-team { padding:6px 7px 10px; } .club-score-form select { padding-left:5px; } }
.club-agenda-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.club-agenda-actions { display:flex; flex-wrap:wrap; gap:8px; padding-top:6px; }
.club-agenda-actions a { white-space:nowrap; }
.club-session-group, .club-chosen-day, .club-samples { margin-top:22px; }
.club-session-group h2, .club-chosen-day h2 { margin-bottom:10px; }
.club-page .club-empty { color:var(--muted); font-size:.92rem; }
.club-page .club-session-numbers { font-size:.86rem; font-weight:650; margin:7px 0 1px; }
.club-page .club-session-names { font-size:.8rem; color:var(--muted); margin:0; }
.club-session-card h3 { margin:0 0 3px; overflow-wrap:anywhere; }
.club-session-card .club-meta { margin-top:4px; overflow-wrap:anywhere; }
.club-session-card .club-meta span { min-width:0; }
.club-cal .club-date-choice { width:100%; height:64px; padding:6px; min-width:0; align-content:start; justify-content:start; gap:1px; text-align:left; border:1px solid transparent; background:#f6f8fc; color:var(--navy); font-size:.95rem; }
.club-cal .club-date-choice[aria-current="date"] { border-color:var(--blue); }
.club-cal .club-date-choice.has-sessions { color:var(--blue); font-weight:800; background:var(--pale); }
.club-cal .club-date-choice small { font-size:.72rem; }
.club-cal .club-date-choice[aria-pressed="true"] { background:var(--blue); color:white; }
.club-samples { border-top:1px solid var(--line); padding-top:6px; }
.club-samples summary { padding:11px 0; }
.club-load-status { display:flex; align-items:center; gap:12px; margin:14px 0; }
.club-card a.club-edit { text-decoration:none; }
@media(max-width:680px) {
  .club-agenda-header { display:block; }
  .club-agenda-actions { padding-top:6px; }
}
@media(max-width:510px) {
  .club-cal .club-date-choice { height:46px; padding:4px; font-size:.84rem; }
  .club-cal .club-date-choice small { line-height:1; }
  .club-cal .club-date-choice small span { display:none; }
}

/* Club playing guide */
.guide-home .club-intro { max-width:68ch; }
.guide-group { margin-top:1.8rem; }
.guide-group h2 { margin-bottom:.65rem; }
.guide-group .club-guide-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.guide-group .club-guide-link { height:100%; }
.guide-group .club-guide-link small { font-size:.92rem; }
.guide-article .guide-reading { margin-top:1.1rem; padding:clamp(18px,4vw,30px); }
.guide-section + .guide-section { margin-top:1.35rem; padding-top:1.3rem; border-top:1px solid var(--line); }
.guide-section h2 { margin:0 0 .65rem; }
.guide-section p,.guide-section li { line-height:1.65; }
.guide-section p + p { margin-top:.75rem; }
.guide-section ol { padding-left:1.5rem; margin:.5rem 0 0; }
.guide-section li { margin-bottom:.65rem; padding-left:.15rem; }
.guide-section li::marker { color:var(--blue); font-weight:700; }
.guide-table-wrap { margin-top:.8rem; }
.guide-section table { width:100%; border-collapse:collapse; font-size:.94rem; line-height:1.5; }
.guide-section th,.guide-section td { text-align:left; vertical-align:top; padding:.55rem .6rem; border-bottom:1px solid var(--line); overflow-wrap:break-word; }
.guide-section thead th { color:var(--navy); background:var(--pale); }
.guide-section tbody th { font-weight:650; }
.guide-source { font-size:.88rem; }
@media(max-width:640px) {
  .guide-group .club-guide-list { grid-template-columns:1fr; }
  .guide-section th,.guide-section td { padding:.48rem .32rem; }
}
