/* Gradual Classic alignment with brand.tipmaster.net. Shared with React. */
:root { --tm-content-width:1600px; --tm-content-gutter:24px; --tm-brand-ink:#0f172a; --tm-brand-bg:#f8fafc; --tm-brand-line:#e4e4e7; --tm-brand-yellow:#ffcc33; --tm-body-font:var(--font-plus-jakarta,"Plus Jakarta Sans"),system-ui,sans-serif; --tm-display-font:var(--tm-body-font); }
/* Phones and tablets (<=860px, the app's phone switch) use the 16px gutter, so the header and page bands line up. */
@media(max-width:860px) { :root { --tm-content-gutter:16px; } }
.tm-brand-bar { background:var(--tm-brand-ink); color:#fff; border-bottom:1px solid #334155; font-family:var(--tm-body-font); }
.tm-brand-inner { max-width:var(--tm-content-width); margin-inline:auto; padding:12px var(--tm-content-gutter); display:flex; align-items:center; gap:16px; flex-wrap:wrap; box-sizing:border-box; }
.tm-brand-lockup { display:inline-flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-family:var(--tm-display-font); font-size:24px; font-weight:800; line-height:1.1; }
.tm-brand-lockup img { height:34px; width:auto; }
.tm-mode-switch { display:inline-flex; align-items:center; padding:3px; border:1px solid #64748b; border-radius:8px; gap:2px; font-family:var(--tm-body-font); background:var(--tm-brand-ink); }
.tm-mode-switch a { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 12px; font-size:13px; font-weight:700; color:#fff; text-decoration:none; border-radius:5px; white-space:nowrap; }
.tm-mode-switch a[aria-current] { background:var(--tm-brand-yellow); color:var(--tm-brand-ink); }
.tm-mode-switch a:hover { background:#334155; color:#fff; }
.tm-mode-switch a[aria-current]:hover { background:#ffe066; color:var(--tm-brand-ink); }
.tm-brand-actions { margin-left:auto; display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:13px; }
.tm-brand-actions a { display:inline-flex; align-items:center; min-height:44px; padding:0 12px; border-radius:6px; color:#fff; text-decoration:none; }
.tm-brand-actions a:hover { background:#334155; }
.tm-brand-actions .tm-brand-primary,.tm-brand-actions .tm-cta { background:var(--tm-brand-yellow); color:var(--tm-brand-ink); font-weight:700; }
.tm-brand-bar :focus-visible,.tm-mode-switch :focus-visible { outline:3px solid #ffcc33; outline-offset:3px; }
body.tm-classic { margin:0; color:var(--tm-brand-ink); background:var(--tm-brand-bg); font-family:var(--tm-body-font); line-height:1.5; }
.tm-classic :is(td,th,font,input,button,select,textarea),.tm-classic :is(.tm-who,.tm-toggle,.tm-ft2) { font-family:var(--tm-body-font)!important; }
.tm-classic :is(h1,h2,h3,.tm-brand__title) { font-family:var(--tm-display-font)!important; }
.tm-classic :is(input,button,select,textarea) { max-width:100%; box-sizing:border-box; }
.tm-classic input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.tm-classic button,.tm-classic select { min-height:36px; }
.tm-classic :is(.page-shell,.page,.ndl-shell,.tm-classic-shell) { width:100%; max-width:var(--tm-content-width); min-width:0; margin-inline:auto; box-sizing:border-box; padding:24px var(--tm-content-gutter); }
.tm-classic .page>.body { padding:0; }
.tm-classic :is(.desktop-content,.mobile-login-container) { max-width:var(--tm-content-width); margin-inline:auto; box-sizing:border-box; padding:24px var(--tm-content-gutter); }
.tm-classic .desktop-content>table { width:100%; max-width:100%; }
.tm-classic .desktop-content>table>tbody>tr>td>table { width:100%; }
.tm-classic .table-wrapper,.tm-classic-shell { overflow-x:auto; }
.tm-classic table { font-variant-numeric:tabular-nums; }
.tm-classic .tm-desktop-nav { margin-bottom:20px; }
.tm-classic .mobile-hamburger { position:relative; padding-inline:var(--tm-content-gutter); background:#fff; color:var(--tm-brand-ink); border-bottom:1px solid var(--tm-brand-line); }
.tm-classic .hamburger-title { color:var(--tm-brand-ink); }
.tm-classic .mobile-hamburger .hamburger-btn span { background:var(--tm-brand-ink); }
.tm-classic .tm-brand-inner .tm-seg a,.tm-classic .tm-brand-inner .tm-ic,.tm-classic .tm-brand-inner .tm-toggle { min-height:44px; display:inline-flex; align-items:center; }
@media(max-width:768px) { :root { --tm-content-gutter:16px; } .tm-brand-inner { gap:10px; } .tm-brand-lockup { font-size:22px; } .tm-mode-switch a { min-height:38px; padding-inline:10px; } .tm-brand-actions { width:100%; margin-left:0; } .tm-classic :is(.page-shell,.page,.ndl-shell,.tm-classic-shell,.desktop-content,.mobile-login-container) { padding-top:16px; padding-bottom:16px; } }
@media print { .tm-brand-bar,.tm-mode-switch,.mobile-hamburger,.mobile-menu { display:none!important; } body.tm-classic { background:#fff; } .tm-classic .tm-classic-shell { max-width:none; padding:0; overflow:visible; } .tm-classic input,.tm-classic button { min-height:0; } }

/* Override the old fixed-hamburger spacer: the task bar now sits in flow. */
body.tm-classic.has-mobile-menu .page-shell,body.tm-classic.spiel-page .page-shell,body.tm-classic.login-page .page-shell,body.tm-classic.tmi-login .page-shell { max-width:var(--tm-content-width); padding:24px var(--tm-content-gutter); overflow-x:auto; }
@media(max-width:768px) { body.tm-classic.has-mobile-menu .page-shell,body.tm-classic.spiel-page .page-shell,body.tm-classic.login-page .page-shell,body.tm-classic.tmi-login .page-shell { padding:16px var(--tm-content-gutter); } }
/* This language footer sits outside the old desktop table and had width:800px inline. */
.tm-classic .desktop-footer-langs { width:100%!important; max-width:var(--tm-content-width); box-sizing:border-box; margin-inline:auto; padding-inline:var(--tm-content-gutter); white-space:normal; overflow-wrap:anywhere; }

.tm-classic :is(font[size="1"],font[size="2"]) { font-size:13px; }
@media(max-width:768px) { .tm-classic input:not([type=checkbox]):not([type=radio]),.tm-classic select { font-size:16px; min-height:44px; } }
@media print { .tm-classic :is(font[size="1"],font[size="2"]) { font-size:inherit; } }
/* The old dashboard used white links on a dark body. Keep them legible on the brand surface. */
@media(max-width:768px) {
  .tm-classic .mobile-login-header { min-height:0; padding:8px 0; color:var(--tm-brand-ink); }
  .tm-classic .mobile-trainer-name { color:var(--tm-brand-ink); font-family:var(--tm-display-font); }
  .tm-classic .mobile-team-league { color:#475569; }
  .tm-classic .mobile-user-info { border-color:var(--tm-brand-line); }
  .tm-classic .mobile-switch-btn { color:var(--tm-brand-ink); background:#fff3cf; min-height:44px; box-sizing:border-box; }
  .tm-classic .mobile-login-header .mobile-nav-links a { color:var(--tm-brand-ink); background:#fff; border:1px solid var(--tm-brand-line); min-height:44px; box-sizing:border-box; }
  .tm-classic .mobile-login-header .mobile-nav-links a:hover { background:#fff3cf; }
  .tm-classic .mobile-login-header .mobile-nav-links a.logout-link { background:#fef2f2; color:#991b1b; border-color:#fecaca; }
}

.tm-task-nav { position:relative; }
@media(max-width:768px) {
  .tm-classic .tm-task-nav .mobile-menu { position:absolute; top:100%; left:0; right:0; width:100%; max-height:70vh; overflow-y:auto; background:var(--tm-brand-ink); }
}

/* Shared mobile refinement: data first, full available content width. */
.tm-classic :is(ul,ol) { padding-inline-start:1.5rem; margin-inline:0; }
.tm-classic li { padding-inline-start:2px; margin-bottom:8px; }
.tm-classic td.classic-zone-divider { padding:0!important; height:1px; line-height:1px; }
@media(max-width:768px) {
  .tm-brand-lockup { font-size:18px; }
  .tm-brand-inner { gap:8px; }
  .tm-mode-switch a { min-height:44px; padding-inline:9px; font-size:12px; }
  body.tm-classic.spiel-page .page-shell { padding-inline:8px; }
  .tm-classic .mobile-nav { padding:12px 8px; }
  .tm-classic .spieltag-nav { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:6px; margin:8px 0; }
  .tm-classic .spieltag-nav .nav-arrow { padding:0 4px; min-height:44px; display:flex; align-items:center; justify-content:center; font-size:13px; }
  .tm-classic .spieltag-nav .nav-current { min-width:0; text-align:center; font-size:14px; padding:0 4px; align-self:center; }
  .tm-classic .spiel-columns { width:100%; min-width:0; }
  .tm-classic .table-wrapper { width:100%; box-sizing:border-box; }
  .tm-classic table.classic-games { width:100%; min-width:0; table-layout:fixed; }
  .tm-classic .classic-games td { font-size:14px!important; line-height:1.3; padding:8px 5px!important; }
  .tm-classic .classic-games td.le { min-width:0; width:calc((100% - 48px)/2); white-space:normal!important; overflow-wrap:anywhere; }
  .tm-classic .classic-games td.le :is(a,.classic-game-name) { font-size:14px!important; }
  .tm-classic .classic-games td.ce2 { width:48px; padding-inline:2px!important; font-size:15px!important; font-weight:700; white-space:nowrap; }
  .tm-classic .classic-games .classic-game-rank,.tm-classic .classic-games .classic-game-quotes { display:none; }
  /* Combined native renderer uses flexible team columns around a fixed score. */
  .tm-classic .panel .tm-table { min-width:0; width:100%; table-layout:auto; }
  .tm-classic .panel .col-home,.tm-classic .panel .col-away { min-width:0; width:calc((100% - 48px)/2); }
  .tm-classic .panel .col-score { width:48px; padding-inline:2px; }
  .tm-classic .panel .col-status { display:none; }
  .tm-classic .panel .team-rank { display:none; }
  .tm-classic .panel .team-cell,.tm-classic .panel .tcol { min-width:0; width:100%; }
  .tm-classic .panel .tn,.tm-classic .panel .tmgr { max-width:100%; }
  .tm-classic .panel .tm-table :is(th,td) { padding:6px!important; }
  .tm-classic .panel+.panel { margin-top:16px; }
  .tm-classic .panel .tm-rank { font-size:13px; }
}

@media(max-width:768px) {
  .tm-classic .mobile-nav form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .tm-classic .mobile-nav form select { width:100%; max-width:100%; margin:0; min-width:0; padding-inline:8px; }
  .tm-classic .mobile-nav form input[type=submit],.tm-classic .mobile-nav form button { grid-column:1 / -1; margin:0; min-height:44px; }
  .tm-classic .spiel-columns>.table-wrapper:last-child :is(td,font) { font-size:14px!important; }
}

@media(max-width:768px) {
  /* Day separators span four historical columns; grid only the actual match rows. */
  .tm-classic #spiele .tm-table,.tm-classic #spiele .tm-table tbody { display:block; }
  .tm-classic #spiele tr:has(.col-home) { display:grid; grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr); align-items:center; }
  .tm-classic #spiele :is(.col-home,.col-score,.col-away) { width:auto; min-width:0; }
  .tm-classic #spiele .col-home { grid-column:1; }
  .tm-classic #spiele .col-score { grid-column:2; }
  .tm-classic #spiele .col-away { grid-column:3; }
  .tm-classic #spiele .day-sep,.tm-classic #spiele .day-sep td { display:block; }
  .tm-classic #spiele .duel-detail:not([hidden]),.tm-classic #spiele .duel-detail:not([hidden])>td { display:block; width:100%; box-sizing:border-box; }
  .tm-classic #spiele .duel-detail[hidden],.tm-classic #spiele .duel-chev { display:none; }
.tm-classic #spiele table.tm-table,.tm-classic #spiele table.tm-table>tbody { display:block; width:100%; }
.tm-classic #spiele colgroup { display:none; }
  .tm-classic #spiele :is(.tn,.tmgr) { white-space:normal; overflow-wrap:anywhere; }
  .tm-classic #tabelle .tm-table { table-layout:auto; }
  .tm-classic #tabelle .tm-table__rank { width:40px; }
  .tm-classic #tabelle :is(th:nth-child(2),.col-trend-cell) { width:20px; }
  .tm-classic #tabelle .tm-table__team { width:auto; }
  .tm-classic #tabelle .tm-table__points { width:40px; }
}


/* Shared match typography, row tones and separate goal/tip boxes. */
:root { --tm-match-surface:oklch(99.6% .003 260); --tm-match-alt:oklch(97.3% .006 260); --tm-match-muted:var(--tm-gray-600,#52525b); --tm-match-rank:var(--tm-gray-500,#71717a); }
:is(.classic-game-row,.tm-classic .classic-games,.tm-classic #spiele) :is(span,div,a,font,td) { font-family:var(--tm-body-font)!important; font-variant-numeric:tabular-nums; }
:is(.classic-game-row,.tm-classic .classic-games,.tm-classic #spiele) :is(.classic-score-home,.classic-score-away,.classic-tip-home,.classic-tip-away) { display:flex; align-items:center; justify-content:center; box-sizing:border-box; border:1px solid var(--tm-brand-line)!important; border-radius:10px!important; background:var(--tm-match-surface)!important; height:40px!important; min-height:40px; align-self:center; letter-spacing:0; line-height:1; }
:is(.classic-game-row,.tm-classic .classic-games,.tm-classic #spiele) :is(.classic-score-home,.classic-score-away) { width:40px!important; font-size:18px!important; font-weight:800; color:var(--tm-brand-ink); }
.classic-game-row :is(.classic-score-home,.classic-score-away)>* { font-size:18px!important; font-weight:800; }
:is(.classic-game-row,.tm-classic .classic-games,.tm-classic #spiele) :is(.classic-tip-home,.classic-tip-away) { width:44px; font-size:15px!important; font-weight:600; color:var(--tm-match-muted); }
.tm-classic :is(.classic-games,#spiele) :is(.classic-tip-separator,.classic-tip-pad,.duel-chev) { display:none; }
.tm-classic .classic-games td.le { min-width:0!important; max-width:none!important; overflow:hidden; white-space:nowrap!important; }
.tm-classic .classic-games td.le :is(a,.classic-game-name) { display:block; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px!important; font-weight:600; color:var(--tm-brand-ink); text-decoration:none; line-height:20px; }
.tm-classic .classic-games .classic-game-manager { display:block; min-height:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px!important; line-height:16px; color:var(--tm-match-muted); }
.tm-classic .classic-games td.classic-game-rank,.tm-classic #spiele .team-rank { display:flex; align-items:center; justify-content:center; align-self:start; height:20px; margin-top:2px; line-height:20px; font-size:12px!important; font-weight:600; color:var(--tm-match-rank); }
.tm-classic .classic-games .classic-game-details { display:contents; }
.tm-classic .classic-games .classic-game-link { position:absolute; inset:0; z-index:1; border-radius:10px; cursor:pointer; }
.tm-classic .classic-game-link:focus-visible,.tm-classic .duel-row:focus-visible { outline:3px solid var(--tm-brand-yellow); outline-offset:-3px; }
.tm-classic .classic-game-link:hover { background:oklch(85% .01 260 / .08); }
.tm-classic #spiele :is(.col-home,.col-away,.col-score,.score-val,.classic-mobile-tips,.team-cell) { display:contents; }
.tm-classic #spiele .tcol { min-width:0; align-self:center; overflow:hidden; }
.tm-classic #spiele .tcol>* { display:block; min-width:0; width:100%; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap!important; }
.tm-classic #spiele .tn { font-size:15px!important; font-weight:600; line-height:20px; }
.tm-classic #spiele .tmgr { min-height:16px; font-size:12px!important; line-height:16px; color:var(--tm-match-muted); }
.tm-classic #spiele table.tm-table,.tm-classic #spiele table.tm-table>tbody { display:block; width:100%; }
.tm-classic #spiele colgroup { display:none; }
.tm-classic .classic-games tr,.tm-classic #spiele tr:has(.col-home) { display:grid; position:relative; min-height:0; box-sizing:border-box; gap:4px 8px; padding:8px; border:1px solid var(--tm-brand-line); border-radius:10px; margin-bottom:8px; background:var(--tm-match-surface)!important; }
.tm-classic #spiele :is(.day-sep,.day-sep td,.duel-detail:not([hidden]),.duel-detail:not([hidden])>td) { display:block; width:100%; box-sizing:border-box; }
.tm-classic #spiele .duel-detail[hidden] { display:none; }
.tm-classic :is(.classic-games,#spiele) tr.classic-game-alt { background:var(--tm-match-alt)!important; }
.tm-classic table.classic-games,.tm-classic .classic-games tbody { display:block; width:100%; }
.tm-classic .classic-games td { width:auto!important; min-width:0; background:transparent!important; padding:0!important; border:0!important; }
.tm-classic .classic-games td:nth-child(7) { display:none; }
.tm-classic .classic-games td.le .classic-team-own { color:var(--tm-red,#dc2626); }
@media(min-width:640px) {
  /* Both teams keep one row; goals and tip totals sit together per opponent. */
  .tm-classic .classic-games tr,.tm-classic #spiele tr:has(.col-home) { grid-template-columns:minmax(0,1fr) 22px 44px 40px 16px 40px 44px 22px minmax(0,1fr); grid-template-rows:40px; }
  .tm-classic .classic-games td.le:first-child,.tm-classic #spiele .tcol--home { grid-column:1; grid-row:1; align-self:center; text-align:end; }
  .tm-classic .classic-games td.le:nth-child(3),.tm-classic #spiele .tcol--away { grid-column:9; grid-row:1; align-self:center; text-align:start; }
  .tm-classic .classic-games .classic-game-rank:nth-child(2),.tm-classic #spiele .team-cell--home .team-rank { grid-column:2; grid-row:1; width:22px; }
  .tm-classic .classic-games .classic-game-rank:nth-child(4),.tm-classic #spiele .team-cell--away .team-rank { grid-column:8; grid-row:1; width:22px; }
  .tm-classic .classic-games td.ce2,.tm-classic .classic-games td.ce:nth-child(5),.tm-classic .classic-games .classic-game-quotes { display:contents; }
  .tm-classic :is(.classic-games,#spiele) .classic-score-home { grid-column:4; grid-row:1; }
  .tm-classic :is(.classic-games,#spiele) .classic-tip-home { grid-column:3; grid-row:1; }
  .tm-classic :is(.classic-games,#spiele) .classic-score-separator { grid-column:5; grid-row:1; align-self:center; text-align:center; }
  .tm-classic :is(.classic-games,#spiele) .classic-score-away { grid-column:6; grid-row:1; }
  .tm-classic :is(.classic-games,#spiele) .classic-tip-away { grid-column:7; grid-row:1; }
  .tm-classic #spiele .tcol--home { align-items:flex-end; }
  .tm-classic #spiele .tcol--away { align-items:flex-start; }
  .tm-classic #spiele .col-status { display:block; grid-column:1 / -1; grid-row:2; padding:0!important; text-align:center; }
  .tm-classic #spiele .col-status:empty { display:none; }
}
@media(max-width:639px) {
  .tm-classic .classic-games tr,.tm-classic #spiele tr:has(.col-home) { grid-template-columns:22px minmax(0,1fr) 40px 44px; grid-template-rows:40px 40px; }
  .tm-classic .classic-games td.le:first-child,.tm-classic #spiele .tcol--home { grid-column:2; grid-row:1; align-self:center; }
  .tm-classic .classic-games td.le:nth-child(3),.tm-classic #spiele .tcol--away { grid-column:2; grid-row:2; align-self:center; }
  .tm-classic .classic-games .classic-game-rank,.tm-classic #spiele .team-rank { grid-column:1; width:22px; }
  .tm-classic .classic-games .classic-game-rank:nth-child(2),.tm-classic #spiele .team-cell--home .team-rank { grid-row:1; }
  .tm-classic .classic-games .classic-game-rank:nth-child(4),.tm-classic #spiele .team-cell--away .team-rank { grid-row:2; }
  .tm-classic .classic-games td.ce2,.tm-classic .classic-games td.ce:nth-child(5),.tm-classic .classic-games .classic-game-quotes { display:contents; }
  .tm-classic :is(.classic-games,#spiele) :is(.classic-score-home,.classic-score-away) { grid-column:3; }
  .tm-classic :is(.classic-games,#spiele) :is(.classic-tip-home,.classic-tip-away) { grid-column:4; }
  .tm-classic :is(.classic-games,#spiele) :is(.classic-score-home,.classic-tip-home) { grid-row:1; }
  .tm-classic :is(.classic-games,#spiele) :is(.classic-score-away,.classic-tip-away) { grid-row:2; }
  .tm-classic :is(.classic-games,#spiele) .classic-score-separator { display:none; }
  .tm-classic #spiele .tcol { align-items:flex-start; text-align:start; }
}

/* Classic homepage: one frame, bounded form controls, and a National hero. */
.classic-home,.classic-home-footer { width:100%; max-width:var(--tm-content-width); box-sizing:border-box; margin-inline:auto; padding:24px var(--tm-content-gutter); }
.classic-home { display:grid; gap:16px; }
.classic-home :is(section,div,form,label),.classic-home-footer :is(div,nav) { min-width:0; box-sizing:border-box; }
.classic-home h1,.classic-home h2 { margin:0; color:var(--tm-brand-ink); font-size:18px; line-height:24px; font-weight:700; }
.classic-home-top { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:16px; }
.classic-home-login,.classic-home-schedule { padding:16px; border:1px solid var(--tm-brand-line); border-radius:10px; background:var(--tm-match-surface); }
.classic-home-form { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; align-items:end; margin-top:12px; }
.classic-home-form label { display:grid; gap:4px; color:var(--tm-match-muted); font-size:12px; font-weight:600; }
.classic-home-form input { display:block; width:100%; min-width:0; max-width:100%; height:44px; padding:8px 12px; border:1px solid var(--tm-brand-line); border-radius:6px; background:var(--tm-match-surface); color:var(--tm-brand-ink); font-size:16px; }
.classic-home-button { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; min-height:44px!important; padding:8px 16px; border:0; border-radius:999px; background:var(--tm-brand-yellow); color:var(--tm-brand-ink)!important; font-family:var(--tm-body-font); font-size:15px; font-weight:700; line-height:20px; text-decoration:none; cursor:pointer; text-align:center; }
.classic-home-button:hover { background:#fde047; }
.classic-home :focus-visible,.classic-home-footer :focus-visible { outline:3px solid var(--tm-brand-yellow); outline-offset:3px; }
.classic-home-help,.classic-home-account { display:flex; flex-wrap:wrap; align-items:center; gap:4px 16px; }
.classic-home-help a { display:inline-flex; align-items:center; min-height:44px; font-size:13px; color:var(--tm-match-muted); }
.classic-home-account { margin-top:12px; }
.classic-home-schedule-row { display:grid; gap:4px; margin-top:12px; font-size:15px; overflow-wrap:anywhere; }
.classic-home-clock { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; padding-top:12px; margin-top:12px; border-top:1px solid var(--tm-brand-line); font-size:12px; color:var(--tm-match-muted); font-variant-numeric:tabular-nums; }
.classic-home-clock time { font-weight:700; }
.classic-home-national { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:24px; align-items:center; background:var(--tm-brand-ink); border-radius:10px; padding:24px; overflow:hidden; }
.classic-home-coaches { display:flex; align-self:stretch; }
.classic-home-coaches img { min-width:0; width:100%; height:220px; object-fit:cover; object-position:50% 58%; border-radius:8px; }
.classic-home-national h2 { font-size:28px; line-height:32px; color:#f8fafc; }
.classic-home-national p { max-width:50ch; margin:12px 0 16px; font-size:16px; line-height:24px; color:#cbd5e1; }
.classic-home-updates { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 24px; border-block:1px solid var(--tm-brand-line); }
.classic-home-info { padding:16px 0; border-bottom:1px solid var(--tm-brand-line); font-size:14px; line-height:20px; overflow-wrap:anywhere; }
.classic-home-info h2 { font-size:15px; line-height:20px; margin-bottom:8px; }
.classic-home-info a { color:var(--tm-red,#dc2626); }
.classic-home-info dl { display:grid; gap:8px; margin:0; }
.classic-home-info dl>div { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:0 8px; }
.classic-home-info dt { font-size:12px; color:var(--tm-match-muted); }
.classic-home-info dd { margin:0; font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.classic-home-info p { margin:0; }
.classic-home-community { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.classic-home-community table { width:100%!important; min-width:0; max-width:100%; table-layout:fixed; background:transparent; }
.classic-home-community td { font-size:12px; overflow-wrap:anywhere; padding:4px!important; }
.classic-home-footer { padding-top:0; }
.classic-home-footer-inner { padding:20px 24px; border-radius:10px; background:var(--tm-brand-ink); color:#cbd5e1; }
.classic-home-footer-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; }
.classic-home-footer-brand { display:inline-flex; align-items:center; gap:12px; font-size:20px; font-weight:800; text-decoration:none; color:#f8fafc; }
.classic-home-footer-brand img { width:40px; height:40px; object-fit:contain; }
.classic-home-footer-links,.classic-home-guides { display:flex; flex-wrap:wrap; gap:4px 8px; }
.classic-home-footer-links a,.classic-home-guides a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; border-radius:999px; color:#e2e8f0; text-decoration:none; font-size:14px; }
.classic-home-footer-links a:hover,.classic-home-guides a:hover { background:#334155; color:#f8fafc; }
.classic-home-guides { margin-top:12px; border-top:1px solid #334155; padding-top:12px; }
.classic-home-guides a { min-width:44px; font-size:12px; font-weight:600; }
.classic-home-copyright { margin:12px 0 0; font-size:12px; color:#94a3b8; }
@media(max-width:767px) {
  .classic-home,.classic-home-footer { padding-inline:8px; }
  .classic-home { padding-block:16px; gap:12px; }
  .classic-home-top { grid-template-columns:minmax(0,1fr); gap:12px; }
  .classic-home-login,.classic-home-schedule { padding:12px; }
  .classic-home-form { gap:8px; }
  .classic-home-form button { grid-column:1 / -1; }
  .classic-home-help { gap:0 12px; }
  .classic-home-schedule-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin-top:8px; }
  .classic-home-clock { padding-top:8px; margin-top:8px; }
  .classic-home-national { grid-template-columns:88px minmax(0,1fr); gap:12px; padding:12px; }
  .classic-home-coaches { align-self:stretch; }
  .classic-home-coaches img { width:88px; height:100%; min-height:168px; object-position:40% 52%; }
  .classic-home-national h2 { font-size:22px; line-height:26px; }
  .classic-home-national p { font-size:15px; line-height:20px; margin:8px 0 12px; }
  .classic-home-national .classic-home-button { width:100%; padding-inline:8px; }
  .classic-home-updates { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
  .classic-home-info { padding-block:12px; }
  .classic-home-community { grid-template-columns:minmax(0,1fr); gap:16px; }
  .classic-home-footer-inner { padding:16px; }
  .classic-home-footer-links { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; }
  .classic-home-footer-links a { justify-content:flex-start; padding-inline:0; }
}

.classic-home-community caption { padding:0 0 8px; font-size:15px; line-height:20px; font-weight:700; text-align:start; color:var(--tm-brand-ink); }
.classic-home-community td { border-bottom:1px solid var(--tm-brand-line); line-height:20px; font-size:13px; }
.classic-community-table[data-kind="leaders"] td:nth-child(1) { width:24px; }
.classic-community-table[data-kind="leaders"] td:nth-child(2) { width:28px; }
.classic-community-table[data-kind="leaders"] td:nth-child(4) { width:64px; text-align:end; white-space:nowrap; }
.classic-community-table[data-kind="leaders"] td:nth-child(3) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.classic-community-table[data-kind="signups"] td:nth-child(1) { width:48px; }
.classic-community-table[data-kind="signups"] td:nth-child(2) { width:56px; }

/* Trainer access belongs in the masthead, beside right-aligned mode navigation. */
.tm-brand-inner > .tm-mode-switch { margin-left:auto; }
.tm-brand-avatar { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; box-sizing:border-box; border:1px solid #64748b; border-radius:50%; color:#fff; text-decoration:none; }
.tm-brand-avatar:hover { background:#334155; }
.tm-brand-avatar:focus-visible { outline:3px solid var(--tm-brand-yellow); outline-offset:3px; }
.tm-brand-avatar--labeled { flex:0 0 auto; width:auto; min-height:44px; padding:0 6px; gap:5px; border-color:var(--tm-brand-yellow); background:var(--tm-brand-yellow); color:var(--tm-brand-ink); font-size:12px; font-weight:700; white-space:nowrap; }
.tm-brand-avatar--labeled:hover { background:#ffe066; }
.tm-brand-dimension { display:inline-flex; align-items:center; padding:2px; border:1px solid #64748b; border-radius:999px; }
.tm-brand-dimension a { display:inline-flex; align-items:center; justify-content:center; min-width:48px; min-height:40px; padding:0 8px; border-radius:999px; color:#e2e8f0; font-size:12px; font-weight:700; text-decoration:none; }
.tm-brand-dimension a[aria-current] { background:var(--tm-brand-yellow); color:var(--tm-brand-ink); }
.tm-brand-dimension a:hover:not([aria-current]) { background:#334155; color:#fff; }
.tm-brand-dimension a:focus-visible { outline:3px solid var(--tm-brand-yellow); outline-offset:3px; }
.tm-brand-bar .tm-mode-switch a[aria-current],.tm-brand-bar .tm-brand-actions .tm-brand-primary { color:var(--tm-brand-ink); }
@media(max-width:768px) {
 .tm-brand-inner > .tm-brand-actions { order:2; justify-content:flex-end; }
 .tm-brand-lockup span { display:none; }
 .tm-brand-inner { flex-wrap:wrap; }
 .tm-brand-inner > .tm-brand-avatar { margin-left:0; }
}
@media(max-width:520px) {
 .tm-brand-inner { gap:6px; }
 .tm-brand-lockup img { width:26px; height:26px; }
 .tm-brand-bar--login .tm-brand-lockup img { width:34px; height:34px; }
 .tm-brand-bar--login .tm-brand-inner { gap:4px 6px; padding-block:8px; }
 .tm-brand-bar--login .tm-mode-switch a { padding-inline:4px; font-size:11px; }
 .tm-brand-bar--login .tm-brand-dimension a { min-width:40px; padding-inline:3px; }
 .tm-brand-dimension { margin-left:auto; }
 .tm-brand-dimension a { min-width:42px; padding-inline:5px; }
 .tm-brand-inner > .tm-mode-switch { margin-left:0; }
}
/* tips.pl: game names sit beside 12px-high 1/0/2 tip images, one per <br> line.
   The 13px brand font made each line taller than its image row, so the list
   drifted below the boxes. Keep these columns on the 12px grid. */
.tm-classic td:has(> font > img[src$="loch.JPG"]) { line-height:12px; }
.tm-classic td:has(> font > img[src$="loch.JPG"]) font { font-size:10px; }
