/* ClanHub - dark red "clanbase" look (from SaD_MOHAA_Reunion_Ladder_2026_v2.html) */
:root { --bg:#2b0606; --panel:#3c0c0c; --panel2:#4b1414; --row:#5b2a2a; --row2:#522222; --line:#7d2323;
  --box:#c81414; --fg:#ece2e2; --dim:#c09a9a; --gold:#f5b800; --idc:#d9d27a; --win:#1f9d1f; --loss:#e01818;
  --ink:#2a1400; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 12px/1.5 Verdana, Tahoma, Geneva, sans-serif;
  padding: 12px max(16px, env(safe-area-inset-left)); }
a { color: var(--idc); } a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.site { max-width: 1040px; margin: 0 auto; }
.top { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; padding: 6px 4px 12px; }
.brand { font: 700 22px/1 Arial, Helvetica, sans-serif; color: var(--gold); letter-spacing: 1px; text-decoration: none; }
.brand span { color: var(--fg); }
.top small { color: var(--dim); font-size: 11px; }
.cols { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; gap: 10px; align-items: start; }
.cols.nolside { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 6vh auto 0; }
.box { border: 2px solid var(--box); background: var(--panel); margin-bottom: 10px; min-width: 0; }
.box > h2 { margin: 0; padding: 3px 8px; background: var(--panel2); border-bottom: 1px solid var(--line);
  font: 700 11px/1.6 Verdana, sans-serif; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.in { padding: 8px; }
.menu { list-style: none; margin: 0; padding: 6px 8px; }
.menu li { padding: 1px 0; }
.menu a { color: var(--fg); text-decoration: none; }
.menu a:hover, .menu a.on { color: var(--gold); text-decoration: underline; }
.menu .grp { color: var(--gold); font-weight: 700; margin-top: 6px; }
.menu .grp:first-child { margin-top: 0; }
.pagetitle { font: 700 30px/1.1 Arial, Helvetica, sans-serif; color: #fff; margin: 0 0 6px; }
.lead { margin: 0 0 12px; color: var(--dim); max-width: 70ch; }
.sec { font: 700 18px/1.2 Arial, Helvetica, sans-serif; color: var(--gold); margin: 18px 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--box); }
.sec.first { margin-top: 0; }
.tw { overflow-x: auto; margin-bottom: 10px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 11px; }
th, td { padding: 4px 7px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { background: var(--panel2); color: var(--gold); font-weight: 700; }
tbody tr { background: var(--row); } tbody tr:nth-child(even) { background: var(--row2); }
td.wrap { white-space: normal; }
.n { text-align: center; font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); } .gold { color: var(--gold); } .open { color: var(--gold); }
.plus { color: #4ee04e; font-weight: 700; } .minus { color: #ff5a5a; font-weight: 700; }
.name { font-weight: 700; color: #fff; font-size: 12px; }
.role-leader { color: var(--gold); } .role-officer { color: var(--idc); } .role-member { color: var(--dim); }
.form { display: inline-flex; gap: 2px; vertical-align: middle; }
.form b { width: 15px; height: 15px; display: inline-block; text-align: center; font: 700 9px/15px Verdana, sans-serif; color: #fff; }
.form b.W { background: var(--win); } .form b.L { background: var(--loss); } .form b.D { background: #7a6a2a; }
.sc { display: inline-block; min-width: 26px; padding: 1px 4px; text-align: center; font-weight: 700; color: #fff; background: var(--panel2); }
.sc.w { background: var(--win); } .sc.l { background: var(--loss); }
.flag { display: inline-flex; width: 18px; height: 12px; border-radius: 1px; overflow: hidden; vertical-align: -1px; margin-right: 5px; }
.flag span { flex: 1; }
.btn { font: 700 10px/1 Verdana, sans-serif; color: var(--gold); background: var(--panel2); border: 1px solid var(--gold);
  padding: 4px 8px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; min-height: 24px; }
.btn:hover { background: var(--gold); color: var(--ink); }
.btn.big { font-size: 12px; padding: 7px 14px; }
.btn.red { color: #ff5a5a; border-color: #ff5a5a; } .btn.red:hover { background: #ff5a5a; color: #2a0000; }
.btn.link { border: 0; background: none; color: var(--idc); padding: 0; font: inherit; min-height: 0; text-decoration: underline; }
form.inline { display: inline; }
.frm td { white-space: normal; background: var(--row); } .frm th { width: 140px; vertical-align: middle; }
input, select, textarea { background: var(--bg); color: var(--fg); border: 1px solid var(--line); font: 12px Verdana, sans-serif;
  padding: 4px 6px; min-height: 26px; }
textarea { width: 100%; min-height: 50px; }
.stack label { display: block; color: var(--dim); margin-top: 8px; }
.stack input, .stack select { width: 100%; }
.pills { display: inline-flex; gap: 4px; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label { font: 700 12px Verdana, sans-serif; padding: 4px 12px; border: 1px solid var(--line); cursor: pointer; }
.pills input:checked + label { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pills input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.teams { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: stretch; }
.team { flex: 1 1 220px; border: 1px solid var(--line); background: var(--panel); }
.team h3 { margin: 0; padding: 4px 8px; background: var(--panel2); border-bottom: 2px solid var(--box); font: 700 15px/1.3 Arial, sans-serif; color: var(--gold);
  display: flex; justify-content: space-between; align-items: center; }
.team ol { margin: 0; padding: 6px 8px 6px 26px; }
.team li { padding: 2px 0; }
.team .cap { color: var(--gold); font-size: 10px; margin-left: 4px; }
.vs { align-self: center; font: 700 18px Arial, sans-serif; color: var(--dim); }
.bigscore { font: 700 40px/1 Arial, sans-serif; text-align: center; padding: 6px 0; }
.mlist { list-style: none; margin: 0; padding: 0; font-size: 11px; }
.mlist li { padding: 1px 0; }
.mlist li::before { content: "\25B8 "; color: var(--box); }
.mlist li.hd { color: var(--gold); font-weight: 700; margin-top: 6px; }
.mlist li.hd::before { content: ""; }
.mlist li.hd:first-child { margin-top: 0; }
.flash { border: 2px solid var(--win); background: #123a12; padding: 6px 10px; margin-bottom: 10px; }
.err { border: 2px solid var(--loss); background: #4a1010; padding: 6px 10px; margin-bottom: 10px; }
.pw { font-family: ui-monospace, Consolas, monospace; color: #fff; }
.avail td { padding: 3px 2px; font-size: 10px; font-weight: 700; text-align: center; min-width: 22px; }
.avail td.res { background: var(--line); color: #fff; } .avail td.pick { background: var(--win); color: #fff; }
.avail td.clash { background: var(--loss); color: #fff; }
.comment { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.comment:nth-child(odd) { background: var(--row); } .comment:nth-child(even) { background: var(--row2); }
.foot { text-align: center; font-size: 10px; color: var(--dim); padding: 10px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .menu { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .menu .grp { margin-top: 0; }
  .pagetitle { font-size: 24px; }
}
/* "?" help marks: tooltip on hover AND on tap/focus (title= doesn't show on phones) */
.help { display: inline-block; width: 15px; height: 15px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--gold);
  color: var(--gold); font: 700 10px/13px Verdana, sans-serif; text-align: center; cursor: help; position: relative; vertical-align: 2px;
  text-transform: none; letter-spacing: 0; }
/* the tip itself is one floating element on <body> (static/tips.js): tables sit in overflow
   boxes that would clip a CSS ::after tooltip */
#tip { position: fixed; z-index: 1000; max-width: min(320px, calc(100vw - 24px)); padding: 8px 10px;
  background: #1c0404; color: var(--fg); border: 2px solid var(--box); font: 400 11px/1.5 Verdana, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.55); pointer-events: none; }
#tip[hidden] { display: none; }
/* server control: big touch targets for phones */
.ctl .btn.big { min-height: 40px; padding: 10px 14px; font-size: 12px; }
.ctl-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.ctl-row select, .ctl-row input { flex: 1 1 160px; min-height: 40px; font-size: 14px; min-width: 0; }
.ctl-score { font: 700 30px/1 Arial, sans-serif; text-align: center; padding: 4px 0; }
.ctl-score small { display: block; font: 400 11px Verdana, sans-serif; color: var(--dim); margin-top: 3px; }
.ctl .btn.red { min-height: 32px; }

/* menu icons belong to the modern theme only (modern.css sizes and shows them) */
.ico { display: none; }
.ico svg { width: 16px; height: 16px; }
