/* Beltchecker Brackets: the event website (bk.php) and signing up (bk_signup.php), on top of bk-app.css (tokens,
   light and dark). A big cover with the name, date and place; a sticky sign-up bar; sections the organizer fills in. */

/* ---------------------------------------------------------------- event hero */
.ev-hero { position: relative; overflow: hidden; border-radius: 30px; min-height: 420px; display: grid; align-items: end; padding: 34px; color: #fff; background: #0b0b12; isolation: isolate; animation: rise 0.6s var(--ease) both; }
.ev-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); animation: kenburns 18s ease-in-out infinite alternate; }
.ev-hero .bg.none { background: radial-gradient(60% 80% at 15% 20%, rgba(3, 195, 227, 0.55), transparent 60%), radial-gradient(60% 80% at 85% 30%, rgba(109, 92, 240, 0.65), transparent 60%), radial-gradient(70% 70% at 50% 100%, rgba(176, 74, 192, 0.5), transparent 60%), #0b0b12; animation: none; }
.ev-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.78)); }
@keyframes kenburns { to { transform: scale(1.12) translate(-1%, -1%); } }
.ev-hero .org { display: flex; align-items: center; gap: 10px; font: 600 13px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.ev-hero .org img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #fff; }
.ev-hero h1 { margin: 10px 0 6px; font-size: clamp(36px, 6.5vw, 76px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 850; text-wrap: balance; max-width: 16ch; }
.ev-hero .tag { margin: 0 0 14px; font-size: 18px; opacity: 0.9; max-width: 50ch; }
.ev-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-facts span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 600; font-size: 14px; }
.ev-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.ev-cta .btn { min-height: 52px; padding: 0 22px; font-size: 16px; }
.ev-cta .btn.light { background: rgba(255, 255, 255, 0.92); color: #0b0b12; border: 0; }
.ev-count { font: 600 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.ev-count b { font-size: 15px; }

/* sticky sign-up bar on phones */
.ev-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(12, 12, 18, 0.88); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); transform: translateY(140%); transition: transform 0.4s var(--ease); }
.ev-bar.is-on { transform: none; }
.ev-bar b { display: block; font-size: 14px; }
.ev-bar small { font-size: 12px; opacity: 0.75; }
@media (max-width: 760px) { .ev-bar { display: flex; } .ev-hero { min-height: 520px; padding: 22px; border-radius: 24px; } }

/* sections */
.ev-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .ev-grid { grid-template-columns: 1fr; } }
.ev-about { font-size: 17px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; margin: 0; }
.ev-sched { list-style: none; margin: 0; padding: 0; display: grid; }
.ev-sched li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ev-sched li:first-child { border-top: 0; }
.ev-sched time { font: 700 16px var(--mono); color: var(--cyan); }
.ev-price { display: grid; gap: 10px; }
.ev-price .p { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 16px; background: var(--card-2); }
.ev-price .p b { font: 800 26px var(--mono); letter-spacing: -0.02em; }
.ev-price .p.now { outline: 2px solid var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.ev-price .p span { color: var(--ink-2); }
.ev-price .p small { display: block; color: var(--muted); font-size: 12px; }
.ev-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ev-rules div { padding: 14px; border-radius: 16px; background: var(--card-2); }
.ev-rules span { display: block; font-size: 12px; color: var(--muted); }
.ev-rules b { font-size: 15px; }
.ev-rchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ev-rchips span { padding: 8px 13px; border-radius: 999px; background: var(--card-2); font-weight: 700; font-size: 14px; line-height: 1.2; }
.ev-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.ev-faq details:first-of-type { border-top: 0; }
.ev-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.ev-faq summary::after { content: "+"; font: 700 20px var(--mono); color: var(--muted); transition: transform 0.2s; }
.ev-faq details[open] summary::after { transform: rotate(45deg); }
.ev-faq p { margin: 10px 0 0; color: var(--ink-2); white-space: pre-wrap; }
.ev-spons { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-spons a, .ev-spons span { padding: 12px 16px; border-radius: 14px; background: var(--card-2); text-decoration: none; font-weight: 700; }
.ev-venue .addr { font-size: 16px; margin: 0 0 12px; }
.ev-share { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-who { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-who span { padding: 6px 10px; border-radius: 999px; background: var(--card-2); font-size: 13px; }

/* ---------------------------------------------------------------- sign up */
.su-wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 60px; display: grid; gap: 14px; }
.su-event { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.su-cover { width: 64px; height: 64px; border-radius: 14px; background: var(--grad); background-size: cover; background-position: center; }
.su-event b { display: block; font-size: 17px; }
.su-event small { color: var(--muted); }
.su-event em { font-style: normal; font: 800 18px var(--mono); padding-right: 8px; }
.su-form { display: grid; gap: 14px; }
.su-form h1, .su-done h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.su-me { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
.su-me.is-off { opacity: 0.45; }
.su-me b { display: block; font-size: 18px; }
.su-me small { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.su-me small.ok { color: var(--green); margin-top: 4px; }
.su-av { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--card-2); overflow: hidden; }
.su-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.su-login { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line-2); text-decoration: none; }
.su-login small { color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.su-guest { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg label, .bchip { position: relative; cursor: pointer; }
.seg input, .bchip input { position: absolute; opacity: 0; pointer-events: none; }
.seg b { display: grid; place-items: center; min-height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 650; text-align: center; }
.seg input:checked + b { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.belts { display: flex; flex-wrap: wrap; gap: 6px; }
.bchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 650; transition: transform 0.15s var(--ease); }
.bchip i { width: 28px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.bchip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: scale(1.03); }
.field .bchip:has(input:checked) span, .bchip:has(input:checked) span { color: var(--bg); }   /* the label's muted span colour must not win on the chosen belt */
.su-preview { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--cyan) 16%, transparent), color-mix(in srgb, var(--violet) 14%, transparent)); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); }
.su-preview span { font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.su-preview b { font-size: 19px; }
.su-preview small { color: var(--muted); }
.su-preview.pop { animation: pop 0.45s var(--ease); }
@keyframes pop { 0% { transform: scale(0.98); } 50% { transform: scale(1.015); } 100% { transform: none; } }
.consent { align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 2px; }
.btn.big { min-height: 56px; font-size: 17px; border-radius: 16px; }
.small { font-size: 12px; margin: 0; text-align: center; }
.su-done { display: grid; gap: 14px; text-align: center; justify-items: center; }
.su-check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: #fff; background: var(--green); box-shadow: 0 0 0 10px color-mix(in srgb, var(--green) 18%, transparent); animation: pop2 0.6s var(--ease) both; }
.su-check.wait { background: var(--amber); box-shadow: 0 0 0 10px color-mix(in srgb, var(--amber) 18%, transparent); }
@keyframes pop2 { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.su-div { display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--card-2); }
.su-div span { font-size: 12px; color: var(--muted); }
/* The app as a button, no second QR code next to the ticket (UI review 5, 27 Nov 2026) */
.su-follow { display: grid; gap: 16px; align-items: center; text-align: left; padding: 16px; border-radius: 18px; background: var(--card-2); width: 100%; }
.su-follow p { margin: 4px 0 12px; }
.su-follow .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; margin-right: 6px; vertical-align: -3px; }
@media (max-width: 520px) { .su-follow { text-align: center; } .su-follow .btns { justify-content: center; } .su-follow .btn.go { flex-basis: 100%; } }
:root[data-theme="light"] .su-event, :root[data-theme="light"] .su-login { background: #fff; }

/* Gi, no-gi or both */
.seg.seg3 { grid-template-columns: repeat(3, 1fr); }

/* Categories at sign-up: tick one or more */
.cats { display: grid; gap: 8px; }
.cat { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "box name price" "box sub price"; align-items: center; column-gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, rgba(0,0,0,.1)); cursor: pointer; transition: border-color .15s, background .15s; }
.cat input { grid-area: box; width: 20px; height: 20px; accent-color: #5b4bd1; }
.cat b { grid-area: name; }
.cat small { grid-area: sub; color: var(--muted, #666); font-size: 12.5px; }
.cat em { grid-area: price; font-style: normal; font-weight: 700; }
.cat:has(input:checked) { border-color: #5b4bd1; background: color-mix(in srgb, #5b4bd1 8%, transparent); }

/* Event pages: a slim header on the pages after the first, real tabs instead of jumps */
.ev-slim { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; }
.ev-slim > a:first-child { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.ev-slim img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; }
.ev-slim span { display: grid; min-width: 0; }
.ev-slim b { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-slim small { opacity: .7; }

/* The organizer and how to reach them */
.ev-org .org-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin: 0 0 12px; }
.ev-org .org-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--line); flex: none; }
.ev-org .org-head span { display: grid; gap: 2px; min-width: 0; }
.ev-org .org-head b { font-size: 16px; }
.ev-org .org-head small { color: var(--muted); font-size: 13px; }
.ev-org .org-links { display: grid; gap: 8px; }
.ev-org .org-links .btn { justify-content: flex-start; gap: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ev-org .org-links .btn i { width: 16px; text-align: center; color: var(--muted); }
.ev-org .org-links .btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

/* Fable's review 24 Nov 2026: the confirmation, the preview per category, the price spelled out, marked fields, the slim sign-up bar */
.su-sum { width: 100%; margin: 0; display: grid; gap: 0; text-align: left; border-radius: 16px; background: var(--card-2); overflow: hidden; }
.su-sum > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 14px; }
.su-sum > div + div { border-top: 1px solid var(--line); }
.su-sum dt { font-size: 12px; color: var(--muted); padding-top: 2px; }
.su-sum dd { margin: 0; font-weight: 600; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.su-sum dd span { display: block; }
.su-sum dd span + span { margin-top: 4px; }
.su-sum a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .su-sum > div { grid-template-columns: 1fr; gap: 2px; } }
.su-pl { margin: 0; display: grid; gap: 1px; }
.su-pl + .su-pl { margin-top: 8px; }
.su-pl em { font-style: normal; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.su-pl b { font-size: 19px; }
.su-pl small { color: var(--muted); font-size: 12.5px; }
.su-sumline { margin: 4px 0 0; font-size: 13px; font-weight: 650; }
.su-sumline:empty { display: none; }
.bchip[hidden] { display: none; }
.su-form .is-bad > span:first-child { color: var(--red, #e5533f); }
.su-form .is-bad input:not([type=radio]):not([type=checkbox]), .su-form .is-bad textarea, .su-form .cats.is-bad, .su-form .is-bad .belts { box-shadow: 0 0 0 2px var(--red, #e5533f); border-radius: 12px; }
.su-form .chk.is-bad { color: var(--red, #e5533f); }
.su-form .chk.is-bad input { outline: 2px solid var(--red, #e5533f); outline-offset: 2px; }
.su-form [data-err]:not([hidden]) { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--red, #e5533f) 12%, transparent); color: var(--red, #e5533f); font-weight: 600; }
.ev-bar { padding: 6px 6px 6px 14px; border-radius: 14px; gap: 10px; }
.ev-bar b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.ev-bar small { font-size: 11.5px; }
.ev-bar .btn { min-height: 38px; padding: 0 16px; }
@media (max-width: 760px) { body.has-evbar main.app { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.ev-know { display: grid; gap: 12px; }
.ev-k span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.ev-k p { margin: 2px 0 0; white-space: pre-line; }

/* The computed schedule (bkDaySchedule) */
.ev-sched .sm-mat { display: block; }
.ev-sched .sm-mat b { font-weight: 700; color: var(--cyan); margin-right: 2px; }
.ev-sched li.k-block span { line-height: 1.55; }
.ev-sched li.k-note span, .ev-sched li.k-podium span { color: var(--muted); }
.ev-sched li.k-you { margin: 2px -10px; padding: 10px; border-radius: 12px; border: 1px solid rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.1); }
.ev-sched li.k-you b { color: var(--cyan); }
.ev-sched li { grid-template-columns: 104px 1fr; }
@media (max-width: 480px) { .ev-sched li { grid-template-columns: 92px 1fr; gap: 10px; } }
.ev-sched time { white-space: nowrap; }
@media (max-width: 480px) { .ev-sched time { font-size: 14px; } }

/* The organizer's message on the event page */
.annbar { display: grid; gap: 2px; margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.4); }
.annbar[hidden] { display: none; }
.annbar small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8b5cf6; font-weight: 700; }
.annbar span { font-weight: 600; }
/* The ticket on the confirmation (with the private key) */
.su-ticket { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; text-align: left; padding: 16px; border-radius: 18px; background: var(--card-2); width: 100%; margin-bottom: 12px; }
.su-qr { display: grid; justify-items: center; gap: 4px; }
.su-code { font-size: 12px; color: var(--muted); }
.su-code b { font: 800 15px ui-monospace, Menlo, monospace; letter-spacing: .1em; color: var(--ink); }
.su-ticket img { width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 8px; }
.su-ticket p { margin: 4px 0 8px; }
.su-ticket .btn.wallet { background: #000; color: #fff; border-color: #000; }
@media (max-width: 520px) { .su-ticket { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* Inside the athlete app (bk.php?embed=1): only the content */
.bk-embed .ev-slim, .bk-embed .ev-nav, .bk-embed .ev-hero, .bk-embed .ev-bar, .bk-embed .ev-subnav, .bk-embed .ev-appbtn { display: none !important; }
.bk-embed .app.pub { padding-top: 14px; padding-bottom: 28px; }
.bk-embed .ev-grid { margin-top: 0; }

/* The site's pages (Christian, 24 Nov 2026): text tabs with an accent underline, no box, sticky with a soft blur;
   the athlete app at the right end; the event page's jumps as small chips under the bar */
.ev-nav { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; margin: 0 -4px; padding: 0 4px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.ev-tablist { display: flex; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ev-tablist::-webkit-scrollbar { display: none; }
.ev-tablist a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 15px 0 13px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .15s; }
.ev-tablist a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad, linear-gradient(115deg, #03c3e3, #5b4bd1 42%, #9a3ea8 70%, #e0835a)); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease, ease); }
.ev-tablist a:hover { color: var(--ink); }
.ev-tablist a.is-on { color: var(--ink); font-weight: 700; }
.ev-tablist a.is-on::after { transform: none; }
.ev-tablist .n { font: 600 12px var(--mono); color: var(--muted); padding: 1px 7px; border-radius: 999px; background: var(--card-2); }
.ev-tablist a.is-on .n { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.ev-appbtn { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--cyan) 70%, transparent); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s; }
.ev-appbtn:hover { background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.ev-appbtn svg { width: 17px; height: 17px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-tablist .tl-short { display: none; }
@media (max-width: 420px) { .ev-tablist .tl-short { display: inline; } }
.ev-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ev-subnav a { padding: 5px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.ev-subnav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .ev-tablist { gap: 18px; }
  .ev-tablist a { font-size: 14px; padding: 13px 0 11px; }
  /* Open app keeps its word on a phone (UI review 7, 27 Nov 2026) */
  .ev-appbtn { padding: 6px 11px; min-height: 38px; gap: 5px; font-size: 13px; white-space: nowrap; }
  .ev-appbtn svg { width: 15px; height: 15px; }
}
/* A narrow phone: the three tabs and Open app on one line without scrolling (counts and the icon go) */
@media (max-width: 420px) {
  .ev-tablist { gap: 14px; }
  .ev-tablist .n { display: none; }
  .ev-tablist .tl-long { display: none; }
  .ev-appbtn svg { display: none; }
}
/* Powered by Beltchecker Brackets (the foot line) */
.bk-powered { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.bk-powered:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bk-privlink { display: inline-block; white-space: nowrap; margin-left: 10px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bk-privlink:hover { color: var(--ink); }
.bk-powered svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The language menu on the public pages (functions_brackets.php bkLangMenu) */
.bk-langrow { display: flex; justify-content: center; margin: 18px 16px 6px; }
.bk-lang { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.bk-lang svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bk-lang select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2, rgba(127,127,127,.3)); background: var(--surf, transparent); color: var(--ink); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; max-width: 70vw; }

/* Longer languages (German) on a phone: the hero never grows wider than the screen, its buttons wrap */
.ev-hero { grid-template-columns: minmax(0, 1fr); }
.ev-hero > * { min-width: 0; }
.ev-cta .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
/* The tab bar's long words (German) must not widen the page's one column: it scrolls sideways instead */
main.app.pub { grid-template-columns: minmax(0, 1fr); }
.ev-nav { min-width: 0; }
/* Round robin standings: longer column names (Finalizações) scroll inside the card, never widen the page */
.rrwrap { max-width: 100%; overflow-x: auto; }
table.rrt th { white-space: normal; }

/* The subpages (Who is entered, Brackets) keep the cover as a compact hero (Christian, 26 Nov 2026):
   the same photo, crop and gradient as the event page, about half the height, no CTA block */
.ev-hero.ev-hero-sm { min-height: 220px; padding: 24px 28px; border-radius: 24px; margin-bottom: 6px; }
.ev-hero-sm .ev-hero-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ev-hero-sm .ev-hero-in > div { min-width: 0; }
.ev-hero-sm .org { font-size: 12px; }
.ev-hero-sm .org img { width: 28px; height: 28px; border-radius: 8px; }
.ev-hero-sm h1 { margin: 8px 0 10px; font-size: clamp(26px, 3.6vw, 42px); max-width: 24ch; }
.ev-hero-sm h1 a { color: inherit; text-decoration: none; }
.ev-hero-sm h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ev-hero-sm .ev-facts span { padding: 6px 12px; font-size: 13px; }
.ev-hero-sm .btn { flex: none; min-height: 44px; padding: 0 20px; }
.ev-hero-sm .btn.light { background: rgba(255, 255, 255, 0.92); color: #0b0b12; border: 0; }
@media (max-width: 760px) {
  .ev-hero.ev-hero-sm { min-height: 160px; padding: 16px 18px; border-radius: 20px; }
  .ev-hero-sm h1 { margin: 6px 0 8px; font-size: clamp(22px, 6.4vw, 30px); }
  .ev-hero-sm .org { font-size: 11px; }
  .ev-hero-sm .org img { width: 24px; height: 24px; }
  .ev-hero-sm .ev-facts { gap: 6px; }
  .ev-hero-sm .ev-facts span { padding: 4px 10px; font-size: 12px; }
  .ev-hero-sm .ev-hero-in { display: block; }
  .ev-hero-sm .org { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; padding-right: 96px; }
  .ev-hero-sm .org img { vertical-align: middle; margin-right: 8px; }
  .ev-hero-sm .ev-facts span { white-space: nowrap; }
  .ev-hero-sm .btn { position: absolute; top: 14px; right: 14px; min-height: 36px; padding: 0 14px; font-size: 14px; }
}

/* A free Beltchecker profile in one tap, on the confirmation (functions_brackets_profile.php) */
.su-profile { display: grid; gap: 4px; width: 100%; margin: 12px 0 0; padding: 16px 18px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent); background: color-mix(in srgb, var(--cyan) 9%, transparent); color: var(--ink); text-align: left; text-decoration: none; box-sizing: border-box; }
.su-profile b { font-size: 17px; line-height: 1.3; }
.su-profile small { color: var(--muted); font-size: 14px; }
.su-profile span { margin-top: 4px; color: var(--cyan); font-weight: 800; }
.su-profile.is-on { border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 9%, transparent); }

/* ---------------------------------------------------------------- When do I compete? (bk.php $timesHtml) */
.ev-times { display: grid; gap: 14px; margin-bottom: 18px; border-color: color-mix(in srgb, var(--cyan) 40%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 10%, var(--card)), var(--card) 60%); }
.ev-times h2 { margin: 0 0 4px; font-size: 22px; }
.ev-times .tm-head p { margin: 0; }
.tm-find { display: grid; gap: 8px; }
.tm-find input { min-height: 54px; font-size: 18px; width: 100%; }
.tm-pick { display: grid; gap: 6px; }
.tm-pick button { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; text-align: left; min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; cursor: pointer; }
.tm-pick button:hover { border-color: var(--cyan); }
.tm-pick button b { font-size: 16px; }
.tm-pick button small { color: var(--muted); }
.tm-pick button span { display: flex; gap: 4px; margin-left: auto; }
.tm-pick button i { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tm-out:empty { display: none; }
.tm-out { display: grid; gap: 10px; min-width: 0; }
.tm-row, .tm-who, .tm-find { min-width: 0; }
.tm-find[hidden] { display: none; }
/* Picked: a compact "you" card (Christian, 27 Nov 2026): no title or lead, name and academy, a row per category */
.ev-times.is-picked { gap: 10px; }
.ev-times.is-picked .tm-head { display: none; }
.tm-who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tm-who > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.tm-who b { font-size: 18px; line-height: 1.2; }
.tm-who small { color: var(--muted); font-size: 14px; }
.tm-who .link { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.tm-rows { display: grid; gap: 6px; }
.tm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.tm-row.is-live { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.tm-what { display: grid; gap: 3px; min-width: 0; }
.tm-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tm-what b { font-size: 15px; line-height: 1.25; min-width: 0; }
.tm-what small { color: var(--muted); font-size: 13px; }
.tm-cat { flex: none; font: 600 10px var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--cyan) 12%, transparent); transform: translateY(-1px); }
.tm-when { display: grid; justify-items: end; text-align: right; gap: 1px; }
.tm-when small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.tm-when b { font: 700 16px var(--mono); color: var(--cyan); white-space: nowrap; }
.tm-when .tm-by { font-size: 12px; font-weight: 600; color: var(--ink); }
.tm-when .tm-wait { max-width: 14ch; white-space: normal; }
.tm-live { font-weight: 700; color: var(--green); font-size: 14px; }
.tm-done { font-weight: 700; color: var(--gold); font-size: 14px; }
.tm-weigh { margin: 0; font-size: 13px; font-weight: 600; }
.tm-weigh[title] { cursor: help; }
/* In the app's Brackets tab the app button is where you already are */
.bk-embed .tm-app { display: none; }
.tm-app { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.tm-app svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tm-note { display: flex; gap: 8px; align-items: baseline; margin: 0; font-size: 13px; color: var(--muted); }
.tm-note[hidden] { display: none; }
.ev-times .tm-note { font-size: 12px; }
.tm-note i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); transform: translateY(-1px); }
.divlist > .tm-note { margin: 0 0 12px; }
@media (max-width: 480px) {
	.tm-who b { font-size: 17px; }
	.tm-row { padding: 9px 10px; gap: 10px; }
	.tm-app { justify-self: stretch; justify-content: center; }
}
/* Brackets and results: the division menus (Christian, 27 Nov 2026) */
.divlist > .bar { margin-bottom: 0; }
.dfilters { display: grid; gap: 8px; margin: 0 0 4px; }
.dfilters .filter { width: 100%; min-width: 0; min-height: 44px; border-radius: 12px; padding: 0 14px; }
.df-sel { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.df-sel select.is-on { border-color: var(--cyan); color: var(--cyan); font-weight: 600; }
.df-sel:empty { display: none; }
.df-meta { display: flex; gap: 10px; align-items: baseline; margin: 0; font-size: 13px; color: var(--muted); }
.df-meta[hidden], .df-none[hidden] { display: none; }
.df-meta .link, .df-none .link { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Big enough for a thumb on a phone (phone test 28 Nov 2026, point 21): two wide menus per row, 52 px high, 16 px text
   (no zoom on focus in iOS) */
@media (max-width: 600px) {
	.dfilters .filter { min-height: 52px; font-size: 16px; border-radius: 14px; }
	.df-sel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.df-sel select { min-height: 52px; font-size: 16px; padding: 0 14px; border-radius: 14px; background-position: right 12px center; }
	.df-meta { font-size: 15px; min-height: 36px; align-items: center; }
}
/* Inside the app (bk.php?embed=1): no pinch zoom, like the app around it (point 10) */
html:has(body.bk-embed), body.bk-embed { touch-action: pan-x pan-y; }
@media (min-width: 900px) { .dfilters { grid-template-columns: minmax(220px, 300px) 1fr; align-items: start; } .dfilters .df-sel { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } .df-sel select { padding: 0 8px; } .df-meta { grid-column: 1 / -1; } }
/* The filter sheet (Christian, 29 Nov 2026: "must be mobile/finger friendly"; scripts/bc-bk-fsheet.js). On a phone and
   always in the app the menus give way to one Filters button (with the number of active filters), the active filters
   as chips that take themselves off, and a bottom sheet of big chips. The desktop keeps its menus. Nothing changes size
   on hover or press (colour only); reduced motion: no slide. On a real fold the backdrop is .bk-seg1 (left screen). */
.fs-bar { display: none; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-bar[hidden] { display: none !important; }
.fs-pills { display: contents; }
@media (max-width: 600px) { .fs-bar { display: flex; } .dfilters .df-sel, .ent-tools [data-ent-chips] { display: none !important; } }
.bk-embed .fs-bar { display: flex; }
.bk-embed .dfilters .df-sel, .bk-embed .ent-tools [data-ent-chips] { display: none !important; }
.fs-btn, .fs-pill, .fs-chip, .fs-x, .fs-clear, .fs-show { -webkit-tap-highlight-color: transparent; cursor: pointer; font-family: var(--font); transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.fs-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 600; }
.fs-btn svg, .fs-pill svg, .fs-x svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fs-btn svg { width: 20px; height: 20px; }
.fs-btn.is-on { border-color: var(--cyan); }
.fs-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--cyan); color: var(--on-cyan); font: 700 13px var(--mono); }
.fs-n[hidden] { display: none; }
.fs-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 0 14px 0 16px; border-radius: 999px; border: 1px solid rgba(3, 195, 227, 0.5); background: rgba(3, 195, 227, 0.12); color: var(--ink); font-size: 15px; font-weight: 600; }
.fs-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-pill svg { width: 16px; height: 16px; opacity: 0.8; }
.fs-btn:active, .fs-pill:active { background: var(--card-3); }
html.fs-lock, html.fs-lock body { overflow: hidden; }
.fs-back { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.2s ease-out; }
.fs-back[hidden] { display: none; }
.fs-back.is-open { opacity: 1; }
.fs-sheet { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: min(86dvh, 760px); background: var(--sheet); color: var(--ink); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35); transform: translateY(28px); transition: transform 0.26s var(--ease); }
.fs-back.is-open .fs-sheet { transform: none; }
.fs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 4px 20px; }
.fs-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.fs-x { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); }
.fs-x svg { width: 22px; height: 22px; }
.fs-x:active { background: var(--card-2); }
.fs-body { display: grid; gap: 20px; padding: 6px 20px 16px; overflow-y: auto; overscroll-behavior: contain; }
.fs-g h3 { margin: 0 0 10px; font: 600 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); font-size: 16px; font-weight: 600; }
.fs-chip small { font: 600 13px var(--mono); color: var(--muted); }
.fs-chip.is-zero { opacity: 0.5; }
.fs-chip:active { background: var(--card-3); }
.fs-chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); }
.fs-chip[aria-pressed="true"] small { color: inherit; opacity: 0.75; }
.fs-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.fs-clear { min-height: 56px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; }
.fs-clear:disabled { opacity: 0.4; cursor: default; }
.fs-show { min-height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--cyan); color: var(--on-cyan); font-size: 17px; font-weight: 700; }
.fs-show:active { background: color-mix(in srgb, var(--cyan) 85%, #000); }
.fs-btn:focus-visible, .fs-pill:focus-visible, .fs-chip:focus-visible, .fs-x:focus-visible, .fs-clear:focus-visible, .fs-show:focus-visible { outline: 3px solid rgba(3, 195, 227, 0.8); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .fs-btn:hover, .fs-pill:hover, .fs-chip:not([aria-pressed="true"]):hover, .fs-x:hover { background: var(--card-3); } }
@media (prefers-reduced-motion: reduce) { .fs-back, .fs-sheet { transition: none; } .fs-sheet { transform: none; } }
/* Who is entered: each division's mat and expected start; Brackets: the same under the division name */
.eg header .eg-when { font: 600 13px var(--mono); color: var(--cyan); white-space: nowrap; }
.eg header .eg-when em { font-style: normal; color: var(--green); }
.pdiv .pd-when { margin: 6px 0 0; font: 600 13px var(--mono); color: var(--cyan); }
.pdiv .pd-when b { font-weight: 700; }
.pdiv .pd-when .on { color: var(--green); }
/* Brackets: the athlete in focus (Find my match or remembered) very clearly marked, their path softly */
.focusbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 14px; padding: 10px 10px 10px 16px; border-radius: 14px; background: color-mix(in srgb, #5b8cff 14%, var(--card)); border: 1px solid color-mix(in srgb, #5b8cff 55%, transparent); font-weight: 600; }
.focusbar[hidden] { display: none; }
.focusbar .btn { min-height: 40px; }
#brackets .bm.is-mine, #brackets .bt-m.is-mine { border-color: #5b8cff; box-shadow: 0 0 0 2px #5b8cff, 0 8px 24px -10px rgba(91, 140, 255, 0.6); }
#brackets .bm > div.is-you, #brackets .ptree .bt-p.is-you, #brackets .rrt tr.is-mine td { background: color-mix(in srgb, #5b8cff 24%, transparent); }
#brackets .bm > div.is-you span, #brackets .ptree .bt-p.is-you b, #brackets .rrt td.is-you b { font-weight: 800; }
#brackets .rrt tr.is-mine td:first-child { box-shadow: inset 4px 0 0 #5b8cff; }
#brackets .ptree .bt-m.is-path { border-style: dashed; border-color: color-mix(in srgb, #5b8cff 70%, transparent); background: color-mix(in srgb, #5b8cff 7%, var(--card)); }
#brackets .ptree .bt-p .you { flex: none; margin: 0 4px 0 6px; }
#brackets .ptree .bt-p.is-you small { display: none; }

/* On a computer the app link shows a QR code to scan */
.bk-qrpop { border: 0; border-radius: 24px; padding: 32px 32px 26px; width: min(380px, calc(100vw - 32px)); text-align: center; background: #fff; color: #14141c; box-shadow: 0 40px 120px -30px rgba(0,0,0,.45); }
.bk-qrpop::backdrop { background: rgba(10,10,20,.55); backdrop-filter: blur(4px); }
.bk-qrpop .q { width: 220px; height: 220px; margin: 0 auto 18px; }
.bk-qrpop .q svg { width: 100%; height: 100%; display: block; }
.bk-qrpop h2 { margin: 0 0 8px; font-size: 22px; }
.bk-qrpop p { margin: 0 0 16px; color: #5b5b6b; font-size: 15px; line-height: 1.45; }
.bk-qrpop a { font-size: 14px; color: #0b8fb0; }
.bk-qrpop .x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f0f0f4; font-size: 20px; cursor: pointer; }
/* Sweep 27 Nov 2026: the consent box as the category boxes (it shrank to a dot next to the long text on a phone) */
.su-form .chk.consent { align-items: flex-start; gap: 12px; }
.su-form .chk.consent input { flex: none; width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0; accent-color: #5b4bd1; }
/* The event hero on a light photo: a scrim behind the text from the top too, and the host line wraps beside its logo */
.ev-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.38) 40%, rgba(0, 0, 0, 0.82) 100%); }
.ev-hero h1, .ev-hero .tag, .ev-hero .org { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.ev-hero .org { opacity: 1; align-items: center; }
.ev-hero .org img { flex: none; }
.ev-hero .org span { min-width: 0; line-height: 1.35; }
@media (max-width: 760px) { .ev-hero:not(.ev-hero-sm) .org { font-size: 11.5px; letter-spacing: 0.08em; } }
.tm-clash { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 14%, transparent); border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent); font-weight: 600; font-size: 14px; }

/* The tab bar's app button waits until the other app buttons are out of sight; visibility only, so the tabs never move */
.ev-appbtn { transition: background .15s, opacity .2s; }
.ev-appbtn.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
.ev-cta [hidden] { display: none !important; }
/* The tagline sits above the Event tab's content now that every tab shares the compact hero (28 Nov 2026) */
.ev-tagline { margin: 4px 4px 14px; font-size: 18px; color: var(--muted); max-width: 60ch; }
/* The hero's app button (28 Nov 2026): one bright, calm call to action; colour only on hover, nothing changes size */
.ev-getapp { position: relative; flex: none; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 14px; border-radius: 18px; color: #06070b; text-decoration: none; overflow: hidden; isolation: isolate;
	background: linear-gradient(135deg, #5ee7f8 0%, #03c3e3 45%, #8b7bff 100%); box-shadow: 0 10px 30px -8px rgba(3, 195, 227, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.35); transition: box-shadow .2s, filter .2s; }
.ev-getapp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-120%); animation: ev-shine 4.5s ease-in-out 1.2s infinite; }
@keyframes ev-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ev-getapp svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 11px; background: rgba(6, 7, 11, 0.85); fill: none; stroke: #5ee7f8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-getapp span { display: grid; line-height: 1.15; text-align: left; }
.ev-getapp b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ev-getapp small { font-size: 12px; font-weight: 600; opacity: 0.72; }
.ev-getapp:hover { filter: brightness(1.06); box-shadow: 0 14px 38px -8px rgba(3, 195, 227, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.ev-getapp:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) { .ev-hero-sm .ev-getapp { position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 6px 12px 6px 8px; gap: 8px; border-radius: 14px; } .ev-hero-sm .ev-getapp svg { width: 28px; height: 28px; padding: 5px; border-radius: 9px; } .ev-hero-sm .ev-getapp small { display: none; } .ev-hero-sm .ev-getapp b { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ev-getapp::after { animation: none; } }
@media (max-width: 760px) { .ev-hero-sm:has(.ev-getapp) .org { padding-right: 160px; } }
.bk-embed .pdiv { scroll-margin-top: 12px; }

/* The app's Brackets tab (Christian, 29-30 Nov 2026): a person picker on top and only that person's bracket; All
   brackets brings every bracket and the filters (scripts/bc-bk-public.js folPlace) */
.bk-embed .fol-bar { margin: 0 0 14px; }
.bk-embed .fol-hint { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.bk-embed .fol-hint p { margin: 0; font-size: 16px; }
.bk-embed .fol-hint .btn { min-height: 48px; justify-content: center; }
body.is-minemode .divlist > .bar, body.is-minemode [data-dfilters], body.is-minemode [data-dnone], body.is-minemode [data-focusbar], body.is-minemode .nowbar, body.is-minemode .ev-times { display: none !important; }
/* More rounds to the right: a fade and an arrow at the edge while there is more (no layout change, only an overlay) */
[data-ptree] { position: relative; }
[data-ptree] .bt-more { position: absolute; right: 2px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink);
	background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line-2); box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); pointer-events: none; opacity: 0; transition: opacity .2s; }
[data-ptree].has-more .bt-more { opacity: 1; }
[data-ptree] .bt-scroll.has-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 46px), transparent); }
@media (max-width: 560px) { .ptree .bt-p small { display: none; } .ptree .bt-p { font-size: 14px; } }
.bk-embed .divlist { grid-template-columns: minmax(0, 1fr); }
/* "Winner of Quarter-final 1" stays on one line in its box */
.ptree .bt-p.tbd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 32px; font-size: 13px; }
/* Segmented tabs (a person's categories, Gi | No-gi); colour only, the tabs never change size */
.fol-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 14px; background: var(--card-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--line, rgba(255, 255, 255, 0.1)); }
.fol-tabs button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 15px var(--font, inherit); cursor: pointer; transition: background .15s, color .15s; }
.fol-tabs button.is-on { background: var(--ink, #fff); color: var(--bg, #0b0b12); cursor: default; }
.fol-tabs button:not(.is-on):hover { color: var(--ink); }
/* A division's mat and time as two chips (29 Nov 2026): fixed sizes, colour only */
.pdiv > header { align-items: flex-start; }
.pd-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; max-width: 52%; }
.pd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; font: 700 13px var(--mono, ui-monospace, monospace); letter-spacing: 0.02em; white-space: nowrap; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.pd-chip.pd-mat { background: var(--ink); color: var(--bg); text-transform: uppercase; }
.pd-chip.is-live { background: color-mix(in srgb, #22c55e 18%, transparent); color: #22c55e; }
.pd-chip.is-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pd-live 1.6s ease-out infinite; }
@keyframes pd-live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
.pd-chip.is-done, .pd-chip.is-muted { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pd-chip.is-live i { animation: none; } }
/* A division's head (Christian, 2 Dec 2026): category, age and sex as short chips on one line with the mat and status, the
   belt and weight below */
.pdiv header { align-items: center; margin-bottom: 8px; }
.pd-eye { display: flex; gap: 6px; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; }
.pd-eye span { flex: none; padding: 5px 10px; border-radius: 999px; font: 600 12px/1.2 var(--font, system-ui); color: var(--ink-2, var(--ink)); background: color-mix(in srgb, var(--cyan, #22d3ee) 12%, transparent); }
.pdiv .pd-chips { max-width: none; flex-wrap: nowrap; }
.pd-chip { min-height: 26px; padding: 0 10px; font-size: 12px; }
.pdiv .pd-h { margin: 0 0 12px; }
/* The app's podium: names only, no academy (Christian, 2 Dec 2026: academies wrapped over two lines) */
.bk-embed .podium small { display: none; }
/* Two whole rounds side by side on a phone: the highlighted box says it is you, no You tag cutting the name */
@media (max-width: 560px) { .bk-embed [data-ptree] .bt-p .you { display: none; } }
.bk-embed .fol-bar { margin-bottom: 8px; }
.bk-embed .fol-tabs { margin-bottom: 0; }

/* The person picker (Christian, 30 Nov 2026): Schedule's chip row (styles/bk-follow.css .kids), one chip per person,
   the team's name as a quiet mono label before its athletes. The edge fades sit on top of the row, never as a mask on
   the scroller (a mask stops touch scrolling in iOS Safari). Colour only when picked, no size change. */
.bk-embed .kids { position: relative; margin: 0; min-width: 0; }
.bk-embed .kids::before, .bk-embed .kids::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; pointer-events: none; opacity: 0; transition: opacity 0.2s; z-index: 1; }
.bk-embed .kids::before { left: -20px; background: linear-gradient(90deg, var(--bg, #07070b), transparent); }
.bk-embed .kids::after { right: -20px; background: linear-gradient(270deg, var(--bg, #07070b), transparent); }
.bk-embed .kids:has(.kchips.is-l)::before, .bk-embed .kids:has(.kchips.is-r)::after { opacity: 1; }
.bk-embed .kchips { position: relative; display: flex; align-items: stretch; gap: 8px; min-width: 0; margin: 0 -20px; padding: 2px 20px 4px; overflow-x: auto; overscroll-behavior-x: contain; overflow-anchor: none;
	-webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none; }
.bk-embed .kchips::-webkit-scrollbar { display: none; }
.bk-embed .kchips.is-drag { cursor: grabbing; user-select: none; scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) { .bk-embed .kchips { cursor: grab; } .bk-embed .kchips .kchip { cursor: pointer; } }
.bk-embed .kchip { position: relative; flex: none; display: flex; align-items: center; gap: 9px; text-align: left; max-width: 200px; min-height: 50px; padding: 7px 14px 7px 7px; border-radius: 16px;
	border: 1px solid var(--line-2, rgba(255, 255, 255, 0.16)); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: 600 14px var(--font, inherit); cursor: pointer; scroll-snap-align: start;
	-webkit-tap-highlight-color: transparent; transition: background-color .15s, border-color .15s; }
.bk-embed .kchip .av { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--card-2, rgba(255, 255, 255, 0.08)); overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15); }
.bk-embed .kchip .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-embed .kchip .av svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-embed .kchip .kt { display: grid; min-width: 0; }
.bk-embed .kchip .kt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-embed .kchip.is-on { border-color: #22d3ee; background: rgba(34, 211, 238, 0.12); cursor: default; }
.bk-embed .kchip.is-on .av { box-shadow: inset 0 0 0 2px #22d3ee; }
.bk-embed .kchip.k-all .av { border-radius: 11px; color: var(--muted); }
.bk-embed .kchip.k-all.is-on .av { color: #22d3ee; }
.bk-embed .bsel-g { flex: none; align-self: center; max-width: 96px; padding: 0 2px 0 10px; border-left: 1px solid var(--line-2, rgba(255, 255, 255, 0.16)); font: 600 10px/1.25 var(--mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bk-embed .bsel-seg { margin: 10px 0 0; }
.bk-embed .bsel-none { margin: 12px 0 0; padding: 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--muted); text-align: center; }
/* The picked person in their bracket: the box and their name stand out */
body.is-minemode .bt-m.is-mine { box-shadow: 0 0 0 2px #22d3ee, 0 0 22px -6px rgba(34, 211, 238, .7); }
body.is-minemode .bt-p.is-you b { color: #22d3ee; }
/* Unfolded (a foldable, scripts/bc-bk-fold.js): the people left, the bracket right; on a real fold the hinge between */
html.fold-book body.bk-embed.has-bsel main.app.pub { grid-template-columns: 270px minmax(0, 1fr); column-gap: 24px; row-gap: 0; align-items: start; }
html.fold-book body.bk-embed.has-bsel main.app.pub > * { grid-column: 2; margin-bottom: 18px; }
html.fold-book body.bk-embed.has-bsel main.app.pub > .fol-bar { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 14px; max-height: calc(100dvh - 28px); overflow-y: auto; scrollbar-width: none; margin: 0; padding-bottom: 96px; }
html.fold-book body.bk-embed.has-bsel .kids::before, html.fold-book body.bk-embed.has-bsel .kids::after { display: none; }
html.fold-book body.bk-embed.has-bsel .kchips { flex-direction: column; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; cursor: default; }
html.fold-book body.bk-embed.has-bsel .kchip { max-width: none; min-height: 52px; }
html.fold-book body.bk-embed.has-bsel .bsel-g { max-width: none; margin: 10px 0 0; padding: 0 2px; border-left: 0; -webkit-line-clamp: 2; }
html.fold-hinge body.bk-embed.has-bsel main.app.pub { max-width: none; grid-template-columns: calc(var(--fold-x) - 34px) minmax(0, 1fr); column-gap: calc(var(--fold-gap) + 28px); }
/* The app's Brackets tab: the same page head as Schedule and Team (tournament name small, the tab's name big) */
.bk-embed .app-head { padding: 6px 0 4px; }
.bk-embed .app-head .kick { margin: 0; font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan, #03c3e3); }
.bk-embed .app-head h1 { margin: 6px 0 0; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
/* The time column fits its longest time ("about 1:45 PM" in 12-hour format ran into "Mat 1"): one column for the
   whole list (subgrid), never narrower than before; older browsers wrap the time instead (1 Dec 2026) */
.ev-sched li time { white-space: normal; overflow-wrap: anywhere; }
@supports (grid-template-columns: subgrid) {
  .ev-sched { grid-template-columns: minmax(76px, max-content) minmax(0, 1fr); column-gap: 14px; }
  .ev-sched li { grid-column: 1 / -1; grid-template-columns: subgrid; }
  .ev-sched li time { white-space: nowrap; }
}

/* Sign-up, 1 Dec 2026 (functions_brackets_signup.php): the event terms behind the consent box, a child's parent or
   guardian, and the refund line by the pay button */
.su-form .consent a[data-terms] { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.su-terms { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); background-image: linear-gradient(var(--card), var(--card)); color: var(--ink); padding: 20px 20px 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.su-terms::backdrop { background: rgba(8, 8, 14, 0.55); backdrop-filter: blur(4px); }
.su-terms h2 { margin: 0 0 10px; font-size: 20px; }
.su-terms p, .su-termspage p { margin: 0 0 12px; line-height: 1.5; }
.su-terms .su-terms-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.su-termspage h1 { margin: 0 0 14px; font-size: 26px; }
.su-form .su-refund { margin: -6px 0 0; }
/* More from the organizer (brackets_org.php, 1 Dec 2026) */
.ev-org .org-more { margin: 10px 0 0; }
.ev-org .org-more .btn { width: 100%; justify-content: center; }
/* The academy picker at sign-up (functions_brackets_trophy.php) */
.su-acad { position: relative; }
.su-acad-box { position: relative; display: flex; align-items: center; }
.su-acad-box input { width: 100%; }
.su-acad-mark { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 7px; overflow: hidden; display: none; place-items: center; background: color-mix(in srgb, var(--ink, #888) 10%, transparent); font-size: 11px; pointer-events: none; }
.su-acad-mark img { width: 100%; height: 100%; object-fit: cover; }
.su-acad.is-picked .su-acad-mark { display: grid; }
.su-acad.is-picked .su-acad-box input { padding-left: 44px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--green, #16a34a) 55%, transparent); }
.su-acad-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; display: grid; max-height: 320px; overflow-y: auto; border-radius: 14px; border: 1px solid var(--line-2, rgba(127, 127, 127, 0.3)); background: var(--card, #fff); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.su-acad-list[hidden] { display: none; }
.su-acad-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--ink, inherit); text-align: left; font: inherit; cursor: pointer; }
.su-acad-list button + button { border-top: 1px solid var(--line, rgba(127, 127, 127, 0.15)); }
.su-acad-list button:hover, .su-acad-list button.is-act { background: color-mix(in srgb, var(--ink, #888) 7%, transparent); }
.su-acad-list b { display: block; font-weight: 700; }
.su-acad-list small { display: block; font-size: 12.5px; color: var(--muted, #888); }
.su-acad-logo { flex: none; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--ink, #888) 10%, transparent); font-size: 12px; }
.su-acad-logo img { width: 100%; height: 100%; object-fit: cover; }
.su-acad-list .su-acad-none { color: var(--muted, #888); font-size: 14px; }
.two > .su-acad { grid-column: 1 / -1; }
/* Born and Division: on a phone each gets the full width, so "Men / boys" and "Women / girls" stay on one line (QA 2 Dec 2026) */
@media (max-width: 480px) { .two.su-dobsex { grid-template-columns: 1fr; } .su-dobsex .seg b { white-space: nowrap; } }

/* Readable: white text on a deeper cyan-to-violet (black on the bright gradient was hard to read, 2 Dec 2026) */
.ev-getapp { color: #fff; background: linear-gradient(135deg, #0e7490 0%, #0891b2 40%, #5b4bd1 100%); }
.ev-getapp svg { background: rgba(255, 255, 255, 0.16); stroke: #fff; }
.ev-getapp small { opacity: 0.85; }
