/* Beltchecker Brackets public page (bk.php), on top of bk-app.css: brackets, tables, Find my match, print. */
.pub { max-width: 1100px; }
.pub-hero h1 { max-width: 20ch; }
.pub-hero .info { margin: 14px 0 0; max-width: 65ch; color: var(--ink-2); }
.hero-btns { margin-top: 18px; }
.join { margin-top: 14px; max-width: 560px; }
.nowbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.nowbar .nm { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.nowbar .nm > b { font-size: 15px; }
.nowbar .pill { justify-self: start; }
.nowbar .vs { font-weight: 700; }
.nowbar small { color: var(--muted); font-size: 12px; }
.find input { min-height: 52px; font-size: 18px; }
.found { display: grid; gap: 10px; margin-top: 12px; }
.ath { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; animation: rise 0.4s var(--ease) both; }
.ath > header { display: flex; align-items: center; gap: 10px; }
.ath > header b { font-size: 17px; }
.ath > header small { color: var(--muted); }
.am { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.am .st { font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 8px; background: var(--card-2); color: var(--muted); }
.am.is-next .st { background: rgba(245, 178, 60, 0.16); color: var(--amber); }
.am.is-live .st { background: rgba(34, 197, 94, 0.16); color: var(--green); }
.am.is-won .st { background: rgba(245, 197, 66, 0.14); color: var(--gold); }
.am small { display: block; color: var(--muted); font-size: 12px; }
.am .eta { font: 700 16px var(--mono); color: var(--cyan); text-align: right; }
.filter { width: auto; min-width: 220px; min-height: 38px; }
.divlist { display: grid; gap: 14px; }
.pdiv header { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 12px; }
.pdiv h3 { font-size: 22px; letter-spacing: -0.02em; }
.pdiv h3 span { color: var(--muted); font-size: 16px; font-weight: 600; }
.podium { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.podium span { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--card-2); font-weight: 700; font-size: 14px; }
.podium small { color: var(--muted); font-weight: 500; }
.podium i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--mono); font-style: normal; color: #111; }
.podium .g i { background: var(--gold); }
.podium .s i { background: #d8dde6; }
.podium .b i { background: #d98a4e; }
.tree { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 22px; overflow-x: auto; padding-bottom: 6px; }
.tree.de + .tree.de { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.rd h4 { margin: 0 0 8px; font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rd .col { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; height: calc(100% - 26px); }
.bm { border-radius: 12px; background: var(--card); border: 1px solid var(--line); overflow: hidden; font-size: 14px; }
.bm > div { display: flex; align-items: center; gap: 8px; padding: 7px 10px; }
.bm > div + div { border-top: 1px solid var(--line); }
.bm span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm b { font: 700 13px var(--mono); color: var(--muted); }
.bm .w span { font-weight: 800; }
.bm .w b { color: var(--ink); }
.bm .l span { color: var(--muted); }
.bm .tbd { color: rgba(255, 255, 255, 0.3); font-style: italic; }
.bm.is-live { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.r { background: var(--red); }
.dot.b { background: var(--blue); }
.rrwrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
table.rrt td { padding: 8px 10px; }
table.rrt td small { display: block; }
table.rrt .pos { font: 800 16px var(--mono); color: var(--muted); width: 30px; }
table.rrt tr:first-child .pos { color: var(--gold); }
.mlist { display: grid; gap: 8px; }
.mlist.row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* Round robin: the table beside the matches, the matches in columns so the card stays short */
@media (min-width: 760px) { .rrwrap { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr); } }
.rrwrap .mlist { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tnote { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.foot { text-align: center; font-size: 13px; padding-top: 20px; }

/* print: every bracket on white paper */
.bk-print { background: #fff; color: #111; }
.bk-print .app { padding: 10mm; max-width: none; }
.bk-print .card { background: #fff; border: 1px solid #ccc; backdrop-filter: none; break-inside: avoid; animation: none; }
.bk-print .eyebrow, .bk-print .muted, .bk-print .lead { color: #555; }
.bk-print .pill { background: #eee; color: #333; }
.bk-print .bm { background: #fff; border-color: #bbb; }
.bk-print .bm > div + div { border-color: #ddd; }
.bk-print .bm .l span, .bk-print .bm b, .bk-print .tree.de + .tree.de { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.rd h4 { color: #555; }
.bk-print .bm .tbd { color: #aaa; }
.bk-print .tree { overflow: visible; grid-auto-columns: minmax(150px, 1fr); }
.bk-print th, .bk-print td { border-color: #ddd; color: #111; }
.bk-print .podium span { background: #f2f2f2; }
@media print { .bk-print .divlist .bar, .bk-print .foot { display: none; } @page { margin: 10mm; } }

:root[data-theme="light"] .bm, :root[data-theme="light"] .nowbar .nm, :root[data-theme="light"] .ath { background: #fff; }
:root[data-theme="light"] .am { background: rgba(16, 16, 24, 0.04); }
:root[data-theme="light"] .bm .tbd { color: rgba(16, 16, 24, 0.3); }
:root[data-theme="light"] .podium span { background: rgba(16, 16, 24, 0.05); }

/* Who is entered: every division with who is in it, yours first with the ones close to it */
.entrants { display: grid; gap: 12px; }
.ent-tools { display: grid; gap: 10px; }
.ent-tools input { min-height: 44px; border-radius: 12px; padding: 0 14px; }
.ent-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ent-chips button { border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ent-chips button.is-on { background: var(--ink, #fff); color: var(--bg, #000); border-color: transparent; }
.ent-groups { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.eg { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.eg.is-mine { border-color: #5b8cff; box-shadow: 0 0 0 1px #5b8cff inset; }
.eg.is-alone { border-style: dashed; }
.eg header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.eg header b { display: block; font-size: 15px; }
.eg header small { opacity: .7; }
.eg .cnt { flex: none; font: 700 18px/1 "Geist Mono", monospace; padding: 6px 10px; border-radius: 10px; background: rgba(127,127,127,.14); }
.eg .alone { color: #e5533f; font-weight: 700; font-size: 13px; }
.ep { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.ep .av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(127,127,127,.18); }
.ep .av img { width: 100%; height: 100%; object-fit: cover; }
.ep b { display: block; font-size: 14px; }
.ep small { opacity: .7; font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ep .sw { width: 22px; height: 7px; border-radius: 2px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.ep .sc { font: 700 12px/1 "Geist Mono", monospace; padding: 4px 7px; border-radius: 999px; border: 1px solid rgba(127,127,127,.35); }
.ep.is-you b::after { content: attr(data-you); margin-left: 6px; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: #5b8cff; color: #fff; }
.ent-mine { display: grid; gap: 10px; margin-bottom: 6px; }
.ent-near { display: flex; flex-wrap: wrap; gap: 6px; }
.ent-near button { border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: inherit; border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.ent-near button b { margin-left: 6px; }
.eg.is-flash { animation: egflash 1.2s ease; }
@keyframes egflash { 0%, 60% { box-shadow: 0 0 0 3px #f5b23c; } 100% { box-shadow: none; } }

.ent-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ent-chips select { min-height: 42px; border-radius: 12px; padding: 0 10px; border: 1px solid var(--line, rgba(127,127,127,.3)); background: transparent; color: inherit; font: inherit; }

/* Who is entered, calmer: belt as a ring, one line per athlete */
.eg { gap: 12px; padding: 16px; }
.eg header b { font-size: 18px; line-height: 1.2; }
.eg .eg-k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; opacity: .65; margin-bottom: 2px; }
.eg-p { display: grid; gap: 8px; }
.ep { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
.ep .av { width: 36px; height: 36px; box-shadow: 0 0 0 3px var(--bc, #999); background: rgba(127,127,127,.15); }
.ep .ep-n { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ep .ep-n b { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ep .ep-n small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; opacity: .6; }
.ep .sc { font-size: 11px; padding: 3px 7px; }

.printstamp { margin: 6px 0 0; font-size: 12px; }

/* The drawn bracket on the public page (shapes from bk-app.css .bt), names are not links here */
.ptree .bt-p { cursor: default; font-size: 14px; }
.ptree .bt-p em { margin-left: auto; padding-left: 8px; font: 700 12px var(--mono); font-style: normal; color: var(--muted); }
.ptree .bt-p small + em { margin-left: 8px; }
.ptree .bt-p.w em { color: var(--ink); }
[data-ptreefb][hidden] { display: none; }

/* Profile links, "You" and the estimated time on the brackets (Fable's review 24 Nov 2026) */
a.pl { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a.pl:hover { text-decoration-color: currentColor; }
.bm .bm-eta { display: block; padding: 3px 10px 5px; font: 600 11px var(--mono); color: var(--muted); border-top: 1px dashed var(--line); }
.bm > div.is-you, .rrt td.is-you { background: color-mix(in srgb, #5b8cff 16%, transparent); }
.rrt td.is-you b::after, .bm > div.is-you span::after { content: "\2190"; margin-left: 6px; color: #5b8cff; }
.ptree .bt-p.is-you { background: color-mix(in srgb, #5b8cff 16%, transparent); }
.ptree .bt-p .you { margin-left: 4px; font-size: 10.5px; padding: 1px 5px; border-radius: 5px; background: #5b8cff; color: #fff; font-weight: 700; }
.ptree .bt-eta { position: absolute; right: 6px; top: -9px; padding: 1px 6px; border-radius: 6px; background: var(--bg, #07070b); border: 1px solid var(--line-2); font: 600 10.5px var(--mono); color: var(--muted); }
.ptree .bt-m { overflow: visible; }
/* Match numbers per mat (functions_brackets_matchno.php): "#27" on the box's top left edge */
.ptree .bt-no { position: absolute; left: 6px; top: -9px; padding: 1px 6px; border-radius: 6px; background: var(--bg, #07070b); border: 1px solid var(--line-2); font: 700 10.5px var(--mono); color: var(--ink, inherit); }
.chipc { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-weight: 650; }
.eg .merged { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Who is entered as one column (Christian, 24 Nov 2026): easy to scan, the same on a phone */
/* Same width as the other pages (Christian, 26 Nov 2026): on wide screens the list flows in two columns like a
   newspaper (a division never splits, a heading stays with its first division); on phones one column as before */
.card.entrants { width: 100%; }
.ent-groups { display: block; grid-template-columns: none; }
@media (min-width: 980px) {
  .ent-groups { columns: 2; column-gap: 32px; }
  .ent-groups .eg { break-inside: avoid; }
  .ent-groups .eg-head { break-after: avoid; break-inside: avoid; }
  .ent-groups .eg-head:first-child, .ent-groups .eg-head { margin-top: 0; padding-top: 18px; }
  .ent-groups .eg-head:first-child { padding-top: 8px; }
}
.eg-head { margin: 26px 0 8px; padding: 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #8a8a99); }
.eg-head:first-child { margin-top: 8px; }
.ent-groups .eg, .ent-mine .eg { display: block; border: 0; border-radius: 14px; padding: 0; margin: 0 0 6px; background: none; box-shadow: none; }
.eg header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-start; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ink, #111) 5%, transparent); }
.eg header b { font-size: 16px; font-weight: 700; }
.eg header .cnt { font: 500 13px var(--font, inherit); padding: 0; border-radius: 0; background: none; color: var(--muted, #8a8a99); }
.eg header .alone { font-size: 13px; font-weight: 500; color: var(--muted, #8a8a99); }
.eg header .alone::before { content: "· "; }
.eg.is-alone header { background: none; border: 1px dashed var(--line, rgba(127,127,127,.3)); }
.eg.is-mine header { background: color-mix(in srgb, #5b8cff 14%, transparent); box-shadow: inset 3px 0 0 #5b8cff; }
.eg .merged { margin: 4px 12px 0; font-size: 12px; color: var(--muted, #8a8a99); }
.eg-p { display: block; padding: 2px 0 8px; }
.ep { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line, rgba(127,127,127,.14)); }
.eg-p .ep:last-child { border-bottom: 0; }
.ep .av { width: 32px; height: 32px; box-shadow: 0 0 0 2.5px var(--bc, #999); font-size: 11px; }
.ep .ep-n { display: grid; gap: 0; min-width: 0; align-items: start; }
.ep .ep-n b { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ep .ep-n small { white-space: normal; overflow: visible; font-size: 13px; opacity: .65; }
.ep .sc { justify-self: end; font-size: 12px; padding: 3px 8px; }
.ep-belt { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted, #8a8a99); white-space: nowrap; }
.ep-belt::before { content: ""; width: 14px; height: 6px; border-radius: 2px; background: var(--bc, #999); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink, #111) 18%, transparent); }
.ep.is-you { background: color-mix(in srgb, #5b8cff 8%, transparent); border-radius: 10px; }
.eg-more { margin: 4px 12px 0; }
.ent-mine > .eg-k { display: block; margin: 0 2px 4px; font-size: 12px; font-weight: 600; opacity: .65; }
/* Names that open a profile or a card: plain text, a quiet underline on hover */
.pub a.pl, .pub button.pl[data-opp] { text-decoration: none; color: inherit; }
.pub a.pl:hover, .pub button.pl[data-opp]:hover { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.pub a.pl[target="_blank"]::after { content: "\2197"; font-size: .72em; margin-left: 3px; opacity: .45; vertical-align: .15em; }

/* Not in the bracket yet (the organizer is updating it) */
.pdiv .pd-wait { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, #5b8cff 9%, transparent); border: 1px dashed color-mix(in srgb, #5b8cff 45%, transparent); }
.pdiv .pd-wait i { color: #5b8cff; margin-right: 4px; }
