.cw-tournaments { color: #293529; font: 1.125rem/1.6 Arial, Helvetica, sans-serif; padding: 18px 0 28px; }
.cw-tournaments * { box-sizing: border-box; }
.cw-tournaments a { color: #1d6339; text-decoration: underline; text-underline-offset: 2px; }
.cw-tournaments a:hover { color: #973c20; }
.cw-tournaments button, .cw-tournaments input { font: inherit; }
.cw-tournaments button { cursor: pointer; min-height: 48px; border: 1px solid #adb8a7; border-radius: 2px; color: #304b31; background: linear-gradient(#fff, #e9ece5); padding: 5px 11px; }
.cw-tournaments button:hover { background: #e3ebdb; }
.cw-tournaments button:disabled { opacity: .5; cursor: default; }
.cw-tournaments :is(a, button, input, [tabindex]):focus-visible { outline: 3px solid #b76d1d; outline-offset: 3px; }
.cw-tournament-heading { flex-wrap: wrap; border-bottom: 3px solid #274b2f; padding: 0 0 14px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cw-tournaments .cw-eyebrow { margin: 0 0 5px; font-size: 1rem; color: #567444; font-weight: bold; letter-spacing: 1.2px; }
.cw-tournaments h1 { font: bold 2rem/1.2 Georgia, 'Times New Roman', serif; color: #24452d; margin: 0 0 6px; }
.cw-tournament-heading p { margin: 0; }
.cw-tournaments .cw-primary-link, .cw-tournaments .cw-primary-button { color: #fff; background: linear-gradient(#416c38, #2a4e28); border: 1px solid #284525; border-radius: 2px; text-decoration: none; font-weight: bold; padding: 8px 13px; }
.cw-tournaments .cw-primary-link { display: inline-flex; align-items: center; min-height: 48px; flex-shrink: 0; }
.cw-tournaments .cw-primary-link:hover, .cw-tournaments .cw-primary-button:hover { background: #1f4025; color: #fff; }
.cw-tournament-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.cw-tournament-main { min-width: 0; }
.cw-tournament-tabs { display: flex; flex-wrap: wrap; background: #e8ecdf; border: 1px solid #bfc8b8; border-bottom: 3px solid #426738; gap: 0; }
.cw-tournaments .cw-tournament-tabs button { border: 0; border-right: 1px solid #bdc7b5; border-bottom: 1px solid #bdc7b5; border-radius: 0; background: transparent; font-size: 1rem; font-weight: bold; padding: 8px 11px; }
.cw-tournaments .cw-tournament-tabs button[aria-pressed="true"] { background: #355b30; color: white; }
.cw-tournament-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; background: #f2f1e9; border: 1px solid #cbcbbd; border-top: 0; }
.cw-tournament-filters label { display: flex; flex-direction: column; gap: 3px; font-size: 1rem; font-weight: bold; color: #4c5644; }
.cw-tournament-filters .cw-search-label { flex: 1 1 260px; min-width: 0; }
.cw-tournament-filters input { min-width: 0; width: 100%; min-height: 48px; border: 1px solid #a8b19c; border-radius: 1px; padding: 6px 8px; background: #fff; color: #283b2c; }
.cw-tournament-filters input[type="number"] { width: 130px; }
.cw-tournament-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0 4px; }
.cw-tournament-list-heading h2 { margin: 0; font: bold 1.5rem/1.25 Georgia, 'Times New Roman', serif; }
.cw-tournaments .cw-tournament-list-heading button { background: transparent; border: 0; text-decoration: underline; font-size: 1rem; padding: 3px; }
.cw-tournament-status { font-size: 1rem; color: #5c6555; margin: 0 0 8px; }
.cw-tournament-list { border: 1px solid #c0c6b7; min-height: 125px; background: #fff; }
.cw-tournament-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #5e744c #e3e8da; }
.cw-tournament-table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: left; font-size: 1rem; line-height: 1.4; }
.cw-tournament-table thead { background: #e3e8da; color: #395333; }
.cw-tournament-table thead th { font-size: 1rem; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; padding: 8px; border-bottom: 1px solid #b7c0aa; }
.cw-tournament-table tbody td, .cw-tournament-table tbody th { vertical-align: top; padding: 11px 8px; border-bottom: 1px solid #dfe3d8; }
.cw-tournament-table tbody tr:last-child td, .cw-tournament-table tbody tr:last-child th { border-bottom: 0; }
.cw-tournament-table tbody tr:nth-child(even) { background: #f6f7f1; }
.cw-tournament-table tbody tr:hover { background: #f0f4e7; }
.cw-tournament-table small { display: block; font-size: 1rem; font-weight: normal; color: #505b45; margin-top: 4px; }
.cw-tournament-date { min-width: 93px; font-size: 1rem; white-space: nowrap; }
.cw-tournament-event { min-width: 210px; width: 42%; font-weight: normal; }
.cw-tournament-event > a { font-size: 1.125rem; font-weight: bold; text-decoration: none; }
.cw-tournament-event > a:hover { text-decoration: underline; }
.cw-tournament-course { display: block; font-size: 1rem; color: #475340; margin-top: 3px; }
.cw-tournament-meta, .cw-tournament-description { display: block; font-size: 1rem; line-height: 1.45; color: #505b45; margin-top: 3px; }
.cw-tournament-field { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: bold; }
.cw-tournament-badge { display: inline-block; border: 1px solid #c8cabc; padding: 2px 5px; background: #edf0e5; font-size: 1rem; font-weight: bold; white-space: nowrap; }
.cw-tournaments .cw-status-active { color: #185b2c; background: #deefcd; border-color: #a8c590; }
.cw-tournaments .cw-status-registration { color: #215679; background: #e1edf3; border-color: #b1c8d5; }
.cw-tournaments .cw-status-completed { color: #5d4970; background: #ece6ef; border-color: #cfc1d7; }
.cw-tournaments .cw-status-cancelled { color: #7c3832; background: #f6e8e3; border-color: #d8b8ac; }
.cw-tournament-row-actions { white-space: nowrap; font-size: 1rem; }
.cw-tournament-row-actions a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; }
.cw-tournament-message { padding: 24px 20px; background: #fafaf6; min-height: 125px; color: #4d5a43; }
.cw-tournament-message h3 { margin: 0 0 7px; font: bold 1.5rem/1.25 Georgia, 'Times New Roman', serif; color: #334d2b; }
.cw-tournament-message p { margin: 0 0 14px; }
.cw-tournament-error { background: #fff2ec; color: #793b2f; }
.cw-tournament-pager { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; gap: 12px; padding-top: 10px; }
.cw-tournament-footnote { margin: 12px 0 0; padding-top: 10px; border-top: 1px dotted #bfc4b3; color: #66715b; font-size: 1rem; }
.cw-tournament-panel { margin-bottom: 14px; border: 1px solid #bdc6b3; background: #fff; }
.cw-tournament-panel h2 { font: bold 1rem Arial, Helvetica, sans-serif; letter-spacing: .8px; margin: 0; padding: 9px 11px; background: #345331; color: #fff; }
.cw-tournament-panel > a { display: block; padding: 10px 11px; border-bottom: 1px dotted #c1c9b8; text-decoration: none; }
.cw-tournament-panel > a:last-child { border-bottom: 0; }
.cw-tournament-panel a strong { display: block; font-size: 1rem; }
.cw-tournament-panel a span { display: block; font-size: 1rem; line-height: 1.45; color: #505d43; margin-top: 2px; }
.cw-tournament-panel > a:hover { background: #f3f6ed; }
.cw-tournament-howto { background: #f6f3e6; }
.cw-tournament-howto h2 { background: #e5dfc5; color: #574e2f; }
.cw-tournament-howto ol { padding: 0 12px 0 30px; margin: 12px 0; font-size: 1rem; }
.cw-tournament-howto li { margin-bottom: 10px; padding-left: 2px; }
.cw-tournament-howto p { margin: 0; padding: 10px 12px; border-top: 1px solid #d8d1b8; font-size: 1rem; }
.cw-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1450px) { .cw-tournament-layout { grid-template-columns: minmax(0, 1fr); } .cw-tournament-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .cw-tournament-heading { align-items: flex-start; } }
/* The directories keep every field in a keyboard-scrollable table. */
.cw-tournament-table-scroll:focus-visible { outline: 3px solid #956117; outline-offset: -3px; }
.cw-tournament-sidebar { min-width: 0; }
.cw-tournament-panel { min-width: 0; overflow-wrap: anywhere; }
.cw-tournament-pager { flex-wrap: wrap; }
@media (max-width: 800px) {
  .cw-tournament-sidebar { grid-template-columns: minmax(0, 1fr); }
  .cw-tournament-heading { align-items: flex-start; }
  .cw-tournament-list-heading { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .cw-tournaments { padding-top: 12px; }
  .cw-tournament-heading { display: block; }
  .cw-tournaments h1 { font-size: 1.75rem; }
  .cw-tournament-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-tournament-filters .cw-search-label { grid-column: 1 / -1; }
  .cw-tournament-filters label { min-width: 0; }
  .cw-tournament-filters input[type="number"] { width: 100%; }
  .cw-tournament-filters label[for="cw-tournament-year"] { grid-column: 1 / -1; }
  .cw-tournaments .cw-primary-link { display: inline-flex; width: 100%; justify-content: center; text-align: center; margin-top: 12px; }
  .cw-tournament-tabs button { flex: 1 1 45%; }
}
