.feature-card.tournament { background: #284e48; }
.announcements-section { padding: 34px max(var(--site-gutter), calc((100% - var(--site-width)) / 2)) 48px; color: var(--ink); background: #e8eef2; }
.announcement-card { margin-bottom: 16px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.announcement-date { color: var(--ink-2); font-size: .75rem; }
.announcement-card h3 { margin: 10px 0 14px; font-size: 1.4rem; line-height: 1.4; }
.announcement-content, .comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-content { margin: 0 0 22px; line-height: 1.85; }
.comments-panel { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.comments-panel summary, .management-panel > summary { cursor: pointer; font-weight: 600; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { color: var(--ink-2); font-size: .75rem; }
.comment-text { margin: 8px 0; }
.admin-reply { margin-top: 14px; padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--paper); }
.admin-reply strong { color: var(--blue); font-size: .8125rem; }
.comment-form, .reply-form { display: grid; gap: 10px; margin-top: 20px; }
.comment-form textarea, .reply-form textarea { min-height: 80px; }
.comment-form .button, .reply-form .button { justify-self: start; }
.comment-form .hint { margin: 0; }
.reply-form { grid-template-columns: auto 1fr; }
.reply-form textarea { grid-column: 1 / -1; }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.button.danger { color: #8b2440; border-color: #e4cbd2; background: #fff0f3; }
.management-panel { padding: 24px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 24px; background: #fff; }
.management-panel > summary { font-size: 1.2rem; }
.management-panel[open] > summary { margin-bottom: 24px; }
.editor-form { display: grid; gap: 18px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.editor-form > .button { justify-self: start; }
.house-points-grid, .match-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.match-editor-grid { padding: 0; border: 0; min-width: 0; }
.match-editor-grid legend { margin-bottom: 14px; font-weight: 600; }
input[type=date], input[type=time] { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: #f8fafb; border: 1px solid #c7d4de; border-radius: 7px; }
#reset-window { margin-top: 16px; }
.feed-state { padding: 28px 0; color: var(--ink-2); }
.tournament-shell { max-width: 1200px; }
.board-panel { margin-bottom: 24px; padding: clamp(20px, 3vw, 32px); background: #f8fafb; border-radius: 12px; color: var(--ink); }
.board-heading { margin-bottom: 22px; }
.board-heading h2 { margin: 0; font-size: 1.5rem; }
.section-kicker { color: var(--ink-2); font-size: .625rem; letter-spacing: .16em; }
.standings-table { min-width: 630px; }
.standings-table td, .standings-table th { padding: 18px 14px; }
.standings-table .house-name { color: var(--ink); font-size: .9rem; white-space: nowrap; }
.house-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; }
.points-cell { font-size: 1.3rem; font-weight: 700; }
.rank-cell { font-weight: 600; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.match-card { padding: 20px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.results-grid .match-card { margin: 0; }
.match-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .75rem; color: var(--ink-2); }
.match-card h4 { margin: 12px 0 8px; font-size: 1rem; }
.match-location { color: var(--ink-2); font-size: .8125rem; margin: 0 0 10px; }
.match-teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; margin-top: 20px; font-size: .875rem; }
.match-teams strong:last-child { text-align: right; }
.match-score { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.match-result { margin: 16px 0 0; color: var(--ink-2); font-size: .75rem; }
.status-completed { background: #e0efe7; color: #236443; }
.status-postponed, .status-cancelled { background: #f4e5e9; color: #753346; }
.fixture-days { display: grid; gap: 24px; }
.fixture-day h3 { margin: 0 0 16px; font-size: 1.1rem; }
.fixture-day { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.fixture-day > h3 { grid-column: 1 / -1; }
.fixture-day .match-card { margin: 0; padding: 16px; }
.fixture-day .match-teams { gap: 8px; font-size: .75rem; }
.fixture-empty { min-height: 150px; border: 1px dashed #bccbd5; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
#board-status { color: #d4e0ea; margin-bottom: 20px; }
@media(max-width:900px) { .fixture-day { grid-template-columns: 1fr; } .fixture-empty { min-height: 100px; } }
@media(max-width:640px) { .results-grid, .house-points-grid, .match-editor-grid { grid-template-columns: 1fr; } .management-panel { padding: 20px; } .announcement-card h3 { font-size: 1.2rem; } }

.match-card.house-colored {
  border-left: 4px solid var(--house-a); border-right: 4px solid var(--house-b);
  background: linear-gradient(110deg, color-mix(in srgb, var(--house-a) 12%, white) 0%, #fff 50%, color-mix(in srgb, var(--house-b) 12%, white) 100%);
}
.house-colored .match-teams strong:first-child { color: var(--house-a); }
.house-colored .match-teams strong:last-child { color: var(--house-b); }
#tournament-management > h2 { margin: 0 0 20px; font-size: 1.25rem; }

.admin-board-intro { margin: -8px 0 24px; color: #b9cad6; }
#tournament-admin-status { margin-bottom: 20px; color: #d4e0ea; }
.board-date-controls { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.board-date-controls .field { width: 180px; }
.board-date-controls .button { margin-bottom: 4px; }
.editable-standings .board-total-input { width: 100px; font-size: 1.1rem; font-weight: 700; background: #fff; }
.fixture-day .match-editor { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.match-editor .field { min-width: 0; }
.match-editor label { font-size: .6875rem; color: var(--ink-2); }
.match-editor input, .match-editor select { min-width: 0; min-height: 40px; padding: 8px; font-size: .8125rem; background: #ffffffc9; }
.card-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.card-house-selectors { margin-top: 3px; }
.card-house-selectors .field:first-child select { border-color: var(--house-a); color: var(--house-a); font-weight: 600; }
.card-house-selectors .field:last-child select { border-color: var(--house-b); color: var(--house-b); font-weight: 600; }
.card-scores { display: grid; gap: 12px; }
.card-scores input { font-size: 1rem; font-weight: 600; }
.card-reschedule { padding-top: 8px; border-top: 1px solid var(--line); font-size: .75rem; }
.card-reschedule summary { cursor: pointer; color: var(--ink-2); }
.card-reschedule .card-field-pair { margin-top: 10px; }
.match-editor .editor-actions { margin-top: auto; gap: 6px; padding-top: 6px; }
.match-editor .button.small { padding: 8px 10px; }
.draft-status { font-size: .6875rem; color: #8b560c; }
.card-error { margin: 0; color: #8b2440; font-size: .75rem; }
.card-error:empty { display: none; }
.fixture-empty .button { align-self: start; }
#other-matches-panel > summary { font-weight: 600; cursor: pointer; }
#other-matches-panel[open] > summary { margin-bottom: 22px; }
@media (min-width:901px) { #tournament-dashboard .fixture-day { align-items: start; } }
@media (max-width:640px) { .board-date-controls { gap: 8px; } .board-date-controls .field { flex: 1; min-width: 140px; } }
.mobile-house-record { display: none; }
@media (max-width:640px) {
  .editable-standings { min-width: 0; table-layout: fixed; }
  .editable-standings th, .editable-standings td { padding: 14px 8px; }
  .editable-standings th:first-child, .editable-standings td:first-child { width: 40px; }
  .editable-standings th:nth-child(3), .editable-standings td:nth-child(3) { width: 82px; }
  .editable-standings .house-name { white-space: normal; font-size: .8125rem; }
  .editable-standings .house-dot { margin-right: 6px; width: 8px; height: 8px; }
  .editable-standings .board-total-input { width: 66px; padding: 8px 6px; font-size: 1rem; }
  .editable-standings th:nth-child(n+4), .editable-standings td:nth-child(n+4) { display: none; }
  .mobile-house-record { display: block; margin-top: 6px; color: var(--ink-2); font-size: .625rem; font-weight: 400; }
}
