/* 8Lanes: the frame, the tabs and the logo of the old system; the buttons, fields and tables even and current (one look everywhere). */

:root {
  --ink: #2b2d3a; --muted: #7a7d8c; --line: #d5d9e2; --line-soft: #e8eaf0; --paper: #fff; --soft: #f4f5f9;
  --brand: #1f4e8c; --brand-dark: #173b6b; --accent: #a51c1f; --ok: #1e7b34; --foul: #b00000; --pass: #666b75;
  --radius: 6px; --focus: 0 0 0 3px rgba(31, 78, 140, .28);
}

[hidden] { display: none !important; }

body { margin: 0; padding: 6px; background: #fff; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.4; }

#frame { max-width: 1100px; margin: 0 auto; background: #000; padding: 5px; border-radius: 6px; }

#header { height: 42px; overflow: hidden; }
/* The old 8Lanes logo above the black frame, on the white page. */
#sitelogo { display: block; max-width: 1100px; margin: 0 auto 4px auto; }
#sitelogo img { display: block; height: 57px; width: auto; }

#signup { float: right; padding: 4px 10px 0 10px; color: #959599; font-size: 12px; }
#signup, #menu1 { list-style: none; margin: 0; }
#signup li { display: inline; margin-left: 8px; }
#signup a, #signup button { color: #959599; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
#signup a:hover, #signup button:hover { color: #fff; }
#signup a.on { color: #fff; font-weight: bold; text-decoration: none; }

/* The old tabs (bg05.gif): black with grey text; the chosen one and the one under the mouse slate with white text. */
#menu1 { padding: 0 0 0 23px; float: left; }
#menu1 li { float: left; margin: 0 0 0 -2px; font-weight: bold; font-size: 14px; }
#menu1 li a { display: block; padding: 14px 12px; color: #a4a1ad; text-decoration: none; border-radius: 5px 5px 0 0; }
#menu1 li a:hover { color: #fff; background: #57596b; text-decoration: none; }
#menu1 li a.active { color: #fff; background: #57596b; }

/* The old inner box: light, the runner of the federation in the bottom right corner (bg07.jpg). */
#content { clear: both; background: #fbf9fe url(/images/bg07.jpg) bottom right no-repeat; padding: 14px 18px 22px 18px; min-height: 360px; border-radius: 5px; }

#sub_menu { background: #e9e8ef; padding: 6px 12px; margin: -14px -18px 14px -18px; font-size: 13px; border-radius: 5px 5px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
#sub_menu a { padding: 3px 9px; border-radius: 999px; }
#sub_menu a:hover { background: #fff; text-decoration: none; }
#sub_menu a.active { font-weight: 600; color: #000; background: #fff; text-decoration: none; }
#sub_menu .name { font-weight: 700; margin-right: 10px; }

#footer { color: #fff; padding: 7px 15px 6px 15px; font-size: 12px; }
#footer a { color: #fff; text-decoration: underline; }

a { color: #51568e; text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 21px; font-weight: 650; margin: 4px 0 12px 0; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; margin: 18px 0 8px 0; }
h3 { color: var(--accent); font-size: 14.5px; }
legend { font-weight: 600; color: var(--accent); padding: 0 4px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px 12px; margin: 10px 0; }

/* Tables: a light header, even rows, the row under the mouse marked. */
table { border-collapse: collapse; margin: 6px 0 12px 0; }
th { color: var(--accent); text-align: left; padding: 6px 14px 6px 6px; font-weight: 600; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 5px 14px 5px 6px; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
:where(table tr:hover > td) { background-color: rgba(31, 78, 140, .04); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.note { color: var(--accent); font-weight: 600; }
.muted { color: var(--muted); }

/* The messages after a save: a coloured strip instead of bare coloured text. */
p.notice, p.error { padding: 8px 12px; border-radius: var(--radius); border-left: 4px solid; }
p.notice { color: #14532d; background: #e9f6ec; border-color: var(--ok); }
p.error { color: #7f1d1d; background: #fdecec; border-color: var(--foul); }
.notice { color: #1e7b34; }
.error { color: #c00; }

/* Fields: one height, one border, a clear mark when in use. */
:where(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=color], [type=range]), select, textarea) {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #c3c9d6; border-radius: var(--radius); padding: 5px 8px; box-sizing: border-box;
}
:where(input, select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
/* An example in an empty box ("nt 1.85") must not look like a mark already entered: light and slanted. */
::placeholder { color: #a9adb8; font-style: italic; opacity: 1; }
:where(input[type=checkbox], input[type=radio]) { accent-color: var(--brand); width: 15px; height: 15px; vertical-align: -2px; }
form.stacked label { display: block; margin: 10px 0 3px 0; font-weight: 600; }
form.stacked input[type=text], form.stacked input[type=password] { width: 260px; }
/* A checkbox and its label on one line, also in a stacked form. */
form.stacked label.inline, form.stacked label.inline-label { display: inline; margin: 0 0 0 4px; font-weight: normal; }
form.stacked > div:has(> input[type=checkbox]) { margin: 8px 0; }

/* Buttons: light with a border by default; the main one of a form blue; the dangerous ones red. The rules below keep their own colours. */
:where(button, .button, input[type=submit]) {
  font: inherit; font-weight: 500; line-height: 1.2; padding: 5px 12px; cursor: pointer; color: var(--ink); background: #fff;
  border: 1px solid #c3c9d6; border-radius: var(--radius); transition: background-color .12s, border-color .12s, box-shadow .12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; vertical-align: middle; text-decoration: none; margin: 1px 0;
}
:where(button, .button, input[type=submit]):hover { background-color: var(--soft); border-color: #a9b1c2; text-decoration: none; }
:where(button, .button, input[type=submit]):active { transform: translateY(1px); }
:where(button, .button, input[type=submit]):focus-visible { outline: none; box-shadow: var(--focus); }
:where(button, .button):disabled { opacity: .5; cursor: default; transform: none; }
:where(form.stacked) :where(button[type=submit]), :where(button.primary, .button.primary) { background: var(--brand); border-color: var(--brand); color: #fff; }
:where(form.stacked) :where(button[type=submit]):hover, :where(button.primary, .button.primary):hover { background: var(--brand-dark); border-color: var(--brand-dark); }
:where(button.confirm, button.danger) { color: var(--foul); border-color: #e3a6a6; }
:where(button.confirm, button.danger):hover { background: #fdecec; border-color: var(--foul); }
/* The main actions of a page (the front page: a new competition, an import): big, in sight. */
a.button { color: var(--ink); }
a.button.primary { color: #fff; }
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
a.big-action { font-size: 16px; font-weight: 600; padding: 12px 22px; border-radius: 8px; box-shadow: 0 1px 3px rgba(20, 30, 60, .15); }
a.big-action.primary { box-shadow: 0 2px 6px rgba(31, 78, 140, .35); }
.archive-link { margin: 0 0 8px; }
/* The list of competitions: Select big and in sight, the archive small and well apart (not pressed by mistake). */
.row-actions { display: flex; align-items: center; gap: 48px; }
button.select-button { font-size: 15px; font-weight: 700; padding: 8px 22px; border-radius: 6px; box-shadow: 0 2px 5px rgba(31, 78, 140, .3); }
button.archive-button { font-size: 12px; padding: 2px 8px; background: transparent; color: #6b6f86; border: 1px solid #c9cbd8; box-shadow: none; }
button.archive-button:hover { background: #f1f1f6; color: var(--ink); }
button.link { background: none; border: 0; padding: 0; color: #51568e; cursor: pointer; font: inherit; box-shadow: none; display: inline; }
button.link:hover { text-decoration: underline; background: none; }
form.inline { display: inline; }

.day { margin-top: 18px; font-weight: bold; }
.links a { margin-right: 4px; }

@media print {
  body { padding: 0; }
  #frame { background: none; }
  #header, #sub_menu, #footer, #sitelogo, .noprint { display: none; }
  #content { background: #fff; border-radius: 0; }
  /* A row is never cut in two, the header of a table is repeated on the next page, a heading stays with its table. */
  tr, td, th { break-inside: avoid; page-break-inside: avoid; }
  thead { display: table-header-group; }
  h1, h2, h3, p.heat-title { break-after: avoid; page-break-after: avoid; }
  table { break-inside: auto; }
}

/* Ranking lists and the marks on results. */
tr.live td { background: #ddf3dd; }
tr.hl-season td { background: #fff4c2; }
tr.hl-alltime td { background: #ffd9b3; }
.badge { display: inline-block; font-size: 11px; font-weight: bold; padding: 0 5px; margin-left: 6px; border-radius: 3px; vertical-align: middle; }
.badge.season { background: #e6c200; color: #222; }
.badge.alltime { background: #e07000; color: #fff; }
.badge.live { background: #2a9d2a; color: #fff; }
.legend span { margin-right: 14px; }
form.filter select { margin-right: 8px; }
/* Running a heat on the web. */
/* A row's fields and buttons stay on one line, evenly spaced. */
form.row { margin: 0 2px 0 0; display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; vertical-align: middle; }
input.short { width: 4.2em; }
select.attempt-pick { min-width: 4.5em; }
input.mid { width: 6.5em; }
tr.nextup td { background: #cff5cf; font-weight: bold; }
tr.out td { color: #888; }
.bar { font-size: 1.4em; font-weight: bold; }
.heats a { margin-right: 8px; }
.heats a.on { font-weight: bold; text-decoration: none; color: #000; }
/* The small buttons of a row (statuses, marks, undo): compact, the same height as the fields. */
button.status { padding: 3px 8px; font-size: 12.5px; min-width: 2.2em; }
input.wide { width: 22em; }

.yc { background: #ffd800; color: #000; padding: 0 4px; border-radius: 3px; font-weight: bold; font-size: 0.85em; }
button.yc { background: #ffd800; color: #000; border-color: #e0bd00; font-weight: 700; }
button.yc:hover { background: #ffe34d; border-color: #c9a900; }
.rc { background: #d40000; color: #fff; padding: 0 4px; border-radius: 3px; font-weight: bold; font-size: 0.85em; }
button.rc { background: #d40000; color: #fff; border-color: #a80000; font-weight: 700; }
button.rc:hover { background: #b80000; border-color: #8a0000; }
textarea { max-width: 100%; vertical-align: top; }

.mark { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 0.6em; font-weight: bold; color: #fff; vertical-align: middle; text-transform: uppercase; }
.mark.checked { background: #2a6db3; }
.mark.official { background: #2a8a2a; }

img.logo { float: right; max-height: 60px; max-width: 160px; margin: 0 0 8px 12px; }

img.flag { height: 0.9em; width: auto; border: 1px solid #888; vertical-align: -0.1em; margin: 0 0.3em 0 0.2em; }
img.photo { max-height: 160px; max-width: 160px; border-radius: 4px; }

span.fs { background: #c33; color: #fff; padding: 0 4px; border-radius: 3px; font-weight: bold; }

label.inline-label { display: inline; font-weight: normal; }

.athlete-head { display: flex; gap: 1em; align-items: center; }
.athlete-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }

.suggestions { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; max-width: 40em; }
/* Entering an athlete in an event: the ones that fit what is typed (entry-search.js). */
.entry-search input { width: 22em; max-width: 100%; }
button.suggestion { text-align: left; background: #fff; border: 1px solid #d6d8e6; padding: 6px 10px; box-shadow: none; color: var(--ink); font-weight: normal; }
button.suggestion:hover, button.suggestion:focus { background: #eef3fa; border-color: #1f4e8c; }
.suggestion { text-align: left; background: #f5f5f5; border: 1px solid #ddd; padding: 4px 8px; cursor: pointer; }
.suggestion:hover:not(:disabled) { background: #e8f0ff; }
.suggestion:disabled { opacity: 0.6; cursor: default; }

.warn { color: #b00000; font-weight: bold; }

/* The steps of an event: where it is and what comes next. */
.steps { margin: 6px 0 14px; }
.steps ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; background: #eef1f5; border: 1px solid #cfd6df; border-radius: 14px; padding: 3px 12px 3px 8px; }
.steps li::before { content: counter(step) ". "; font-weight: bold; color: #667; }
.steps li.done { background: #e6f4ea; border-color: #9ccfa9; }
.steps li.done::before { content: "\2713  "; color: #1e7b34; }
.steps li.current { background: #1f4e8c; border-color: #1f4e8c; }
.steps li.current, .steps li.current a, .steps li.current::before { color: #fff; }
.steps li span { color: #889; }
.steps .next { margin: 8px 0 0; font-size: 0.95em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* The next step of a page, and the main button of a form: big and in sight (not looked for). */
a.next-step { font-size: 15px; font-weight: 700; padding: 8px 18px; border-radius: 6px; box-shadow: 0 2px 5px rgba(31, 78, 140, .3); text-decoration: none; }
button.big-button { font-size: 15px; font-weight: 700; padding: 9px 20px; border-radius: 6px; box-shadow: 0 2px 5px rgba(31, 78, 140, .3); }
.tools { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 12px 0; background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 60, .05); }
.tools h3 { margin: 4px 0 8px; }
/* The field referee's page on a phone. */
.mobile { max-width: 640px; }
.mobile .who { font-size: 1.5em; margin: 4px 0; }
.mobile .up { border: 2px solid #1f4e8c; border-radius: 8px; padding: 8px 12px; margin: 8px 0 14px; }
.mobile .big-input { font-size: 2em; width: 100%; box-sizing: border-box; padding: 8px; margin: 6px 0; }
.mobile .big-input.wind { font-size: 1.4em; }
.big-buttons { display: flex; gap: 8px; }
button.big { font-size: 1.6em; font-weight: 700; padding: 14px 10px; flex: 1; min-width: 64px; border-radius: 10px; }
/* O / X / -: the same colours on the phone (big) and on the web run page (att). */
button.big.ok, button.att.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
button.big.foul, button.att.foul { background: var(--foul); border-color: var(--foul); color: #fff; }
button.big.pass, button.att.pass { background: var(--pass); border-color: var(--pass); color: #fff; }
button.big.ok:hover, button.att.ok:hover { background: #18652a; }
button.big.foul:hover, button.att.foul:hover { background: #920000; }
button.big.pass:hover, button.att.pass:hover { background: #555a63; }
/* A fixed size, so that O, X and - are exactly alike whatever the letter (also when one of them is a small status button too). */
button.att, button.status.att { box-sizing: border-box; width: 36px; min-width: 36px; height: 30px; padding: 0; font-size: 14px; line-height: 1; font-weight: 700; flex: 0 0 auto; }
/* The big ones of the phone: the same width each, whatever the letter. */
.big-buttons > button.big { flex: 1 1 0; min-width: 0; }
.mobile table.order { width: 100%; }
.mobile table.order tr.current { background: #fff6d5; }
.bar-tools { margin: 6px 0 12px; }
.mobile .big-input.step { width: 5em; flex: 0 0 auto; }
/* The attempt clock of a jump or throw (WA TR 25.17): yellow in the last 15 seconds (the yellow flag), red when over. */
.attempt-clock { margin: 8px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.attempt-clock .clock { font-size: 1.8em; font-weight: bold; font-variant-numeric: tabular-nums; padding: 0 8px; border-radius: 6px; }
.attempt-clock .clock.warn { background: #ffd800; color: #000; }
.attempt-clock .clock.over { background: #b00000; color: #fff; }
.attempt-clock.big-clock .clock { font-size: 3.2em; }
.attempt-clock.big-clock form { flex: 1; }
.attempt-clock.big-clock button.big { width: 100%; }
/* The photo finish picture of a race. */
figure.photo-finish { margin: 6px 0 16px; }
figure.photo-finish img { max-width: 100%; max-height: 360px; border: 1px solid #ccc; display: block; }
.photo-finish-tools { margin: 10px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
img.photo-finish-thumb { max-height: 80px; border: 1px solid #ccc; }
/* An athlete's progress charts. */
.progress-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px 20px; }
.progress-charts figure { margin: 0; }
.progress-chart { width: 100%; height: auto; display: block; }
.progress-chart .pt:hover circle:last-of-type { r: 7; }
@media print { .progress-charts { grid-template-columns: 1fr 1fr; } }
.mobile form.undo { margin-top: 10px; }
.mobile form.undo button { font-size: 1.1em; padding: 8px 12px; }
.mobile form.close-flight { margin: 18px 0; }
.mobile form.close-flight button { font-size: 1.2em; padding: 10px 16px; width: 100%; }

/* The competition on a spectator's phone. */
.now { max-width: 640px; font-size: 1.15em; }
.now h1 { font-size: 1.4em; }
.now h2 { margin-top: 18px; border-bottom: 2px solid #1f4e8c; }
.now-event { margin: 8px 0 14px; }
.now table { width: 100%; }
.now td { padding: 4px 6px; }
/* A label after its checkbox, on the same line. */
label.inline { display: inline; font-weight: normal; }
img.logo.plain { float: none; }

/* The CIS screen: the timetable, the round chosen, and every heat and flight running along the bottom. */
.cis { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.cis-timetable ul { list-style: none; margin: 0 0 8px; padding: 0; }
.cis-timetable li a { display: block; padding: 3px 6px; border-radius: 3px; text-decoration: none; }
.cis-timetable li.on a { background: #1f4e8c; color: #fff; }
.cis-timetable li.on a .muted { color: #dfe8f5; }
.cis-timetable li.running a { border-left: 4px solid #2e8b57; }
.cis-timetable li.done a { color: #777; }
/* Along the bottom of the window, always in sight (the old CIS: the bottom row); the page leaves room for it. */
.cis-live { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 8px; overflow-x: auto; max-height: 40vh; padding: 8px; background: #eef3fa; border-top: 3px solid #1f4e8c; box-shadow: 0 -2px 6px rgba(0,0,0,.15); }
.cis-live .cis-heat { flex: 0 0 auto; }
#frame.wide { max-width: none; margin: 0 8px; }
#frame.cis-page { margin-bottom: 190px; }
.cis-heat { display: flex; flex-direction: column; gap: 3px; min-width: 220px; padding: 6px 8px; background: #fff; border: 1px solid #b9c8e0; border-radius: 5px; color: inherit; text-decoration: none; }
.cis-athlete { display: block; padding: 2px 4px; border-radius: 3px; }
.cis-athlete small { display: inline-block; min-width: 4.5em; color: #666; }
.cis-athlete.now { background: #dfe9f7; font-weight: 600; }
.cis-athlete.mark { font-style: italic; color: #8a5a00; }
.cis-result { float: right; margin-left: 8px; }
.fav-star { border: 0; background: none; padding: 0 2px; cursor: pointer; font-size: 1.05em; color: #c08a00; }
.fav, tr.fav td { color: #0b6b2e; font-weight: 800; }
@media (max-width: 800px) { .cis { grid-template-columns: 1fr; } }#sitelogo.wide { max-width: none; margin: 0 8px 4px 8px; }

/* The Tele desk: the television picture and the stadium screen side by side. */
.tele-choose label { margin-right: 14px; }
.tele-desk { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tele-channel { background: #fff; border: 1px solid #e0dfe8; border-radius: 6px; padding: 8px 14px; }
.tele-channel h2 { margin-top: 4px; }
.tele-channel .onair { background: #c00; color: #fff; padding: 1px 8px; border-radius: 3px; font-size: 12px; margin-left: 8px; }
.tele-channel form.stacked select, .tele-channel form.stacked input[type=text] { width: 100%; max-width: 420px; }
.tele-channel button.take { background: #c00; color: #fff; border: 1px solid #900; font-weight: bold; }
.tele-now { background: #f4f3f8; padding: 6px 8px; margin-bottom: 6px; }
@media (max-width: 900px) { .tele-desk { grid-template-columns: 1fr; } }
/* The call room: the heats on the left, the chosen heat's athletes on the right (as the old CallRoom app). */
.callroom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.callroom table { width: 100%; }
.callroom tr.on td { background: #dfe6f5; font-weight: bold; }
.callroom-athletes tr.in td { background: #e2f3e2; }
.callroom-athletes tr.out td { color: #a00; }
.callroom-close { margin-top: 10px; text-align: right; }
@media (max-width: 900px) { .callroom { grid-template-columns: 1fr; } }

/* My schedule and the followed athletes. */
.my-find { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.my-athletes { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.my-schedule tr.day td { background: #eef2f7; }
.my-schedule tr.new { background: #fff6d5; }
button.follow.on { color: #c78a00; }


/* The take-off board camera (VeriLynx) on the board judge's page. */
.takeoff { margin: 8px 0; padding: 4px; border: 2px solid transparent; border-radius: 6px; }
.takeoff.fresh { border-color: #1e7b34; }
.takeoff img.takeoff-img { width: 100%; max-height: 320px; object-fit: contain; background: #000; display: block; }
.takeoff-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.takeoff-strip figure { margin: 0; }
.takeoff-strip img { height: 110px; border: 1px solid #ccc; display: block; }


/* The attempt clock on the CIS screen. */
.cis-clock { font-weight: bold; font-size: 1.3em; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 4px; }
.cis-clock.warn { background: #ffd800; color: #000; }
.cis-clock.over { background: #b00000; color: #fff; }


/* Victory ceremonies. */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.award { border: 1px solid #c9d3e0; border-radius: 6px; padding: 6px 10px; }
.award.given { opacity: 0.6; }
.award h3 { margin: 4px 0; }
.podium td { padding: 2px 6px; }
.podium tr.place1 td { font-size: 1.1em; }


/* Implements. */
.implement-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 8px 0 14px; }
.implements tr.approved td { background: #eaf6ec; }
.implements tr.rejected td { color: #a00; }
.own-implements { margin: 4px 0 10px; }


/* The heat page: the actions of a row and the settings folded, the reason of a card in a window. */
details.row-actions > summary { cursor: pointer; color: var(--brand); white-space: nowrap; list-style: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--radius); display: inline-block; background: #fff; font-size: 12.5px; }
details.row-actions > summary::after { content: " \25BE"; color: var(--muted); }
details.row-actions > summary:hover { background: var(--soft); }
details.row-actions > summary::-webkit-details-marker { display: none; }
details.row-actions[open] > summary { background: #eef2f7; border-color: #b9c4d6; }
details.row-actions > form { margin-top: 4px; }
details.heat-settings { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
details.heat-settings > summary { cursor: pointer; color: var(--brand); padding: 7px 12px; font-weight: 600; }
details.heat-settings[open] > summary { border-bottom: 1px solid var(--line-soft); }
details.heat-settings > form { margin: 8px 14px; }
dialog.card-note { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; max-width: 440px; box-shadow: 0 12px 32px rgba(20, 30, 60, .25); }
dialog.card-note::backdrop { background: rgba(0, 0, 0, 0.35); }
dialog.card-note textarea { width: 100%; box-sizing: border-box; font-size: 1.05em; }
.card-note-question { font-weight: bold; margin-top: 0; }


/* The heat's actions at the bottom on the right, under the results (close, check, make official). */
.heat-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.heat-actions button { font-size: 15px; padding: 8px 18px; }

/* Warnings at the end of a page, folded: the count in sight, the list on a click. */
details.warnings { margin: 14px 0; padding: 8px 12px; border: 1px solid #e3a6a6; border-left: 4px solid var(--foul); border-radius: var(--radius); background: #fdf3f3; color: #7f1d1d; }
details.warnings > summary { cursor: pointer; }
details.warnings ul { margin: 6px 0; }
/* Race walking: the judges' red cards by the walker's name, and the Penalty Zone at the third (WA TR 54.7). */
.walk-cards { display: inline-flex; gap: 3px; }
.walk-card { background: #d40000; color: #fff; font-weight: 700; font-size: 11px; padding: 1px 5px; border-radius: 3px; }
.penalty-zone { margin-left: 6px; background: #ffe9b3; border: 1px solid #c77700; color: #6b3a00; font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 3px; }
/* TV-10 all-time lists: a result of a final stage run in 8Lanes. */
.tv10-new { background: #eef6e8; }
/* TV-10 lists: the choices in one row, the button at their right end (where the mouse goes from the last list). */
.tv10-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.tv10-filter label { display: flex; flex-direction: column; gap: 3px; font-weight: 600; }
.tv10-filter select { margin-right: 0; }

/* ===== The look brought up to date (2026-11): the old frame, tabs, logo and red headings stay; around them light and even. ===== */

/* The page a soft grey, the black frame floating on it with a shadow, a little wider. */
body { background: linear-gradient(180deg, #eef0f5 0%, #e4e7ee 100%) fixed; padding: 10px 12px 24px; }
#sitelogo, #frame { max-width: 1240px; }
#frame { padding: 6px; border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 20, 40, .18), 0 2px 6px rgba(15, 20, 40, .12); }
#menu1 li a { transition: background-color .15s, color .15s; }

/* The inner box white; the runner of the federation faded in from the left, so its picture has no edge. */
#content { position: relative; isolation: isolate; background: #fff; border-radius: 7px; padding: 18px 22px 26px; }
#content::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 867px; max-width: 100%; height: 246px; z-index: -1; pointer-events: none;
  background: url(/images/bg07.jpg) bottom right no-repeat; opacity: .6; border-bottom-right-radius: 7px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
#sub_menu { margin: -18px -22px 16px -22px; padding: 7px 14px; background: #eceef4; border-bottom: 1px solid var(--line-soft); border-radius: 7px 7px 0 0; }

/* Headings: a clear top line, the second level with a thin rule. */
h1 { font-size: 23px; margin: 2px 0 14px; }
h2 { padding-bottom: 4px; border-bottom: 1px solid var(--line-soft); }

/* The rows of links under a heading: the separators quiet, the links easy to hit. */
.links { color: #9aa0ae; }
.links a { display: inline-block; padding: 2px 4px; border-radius: 4px; }
.links a:hover { background: var(--soft); text-decoration: none; }

/* Tables: a light head, quiet stripes, the row under the mouse marked; numbers in even columns. */
th { background: #f5f6fa; border-bottom: 1px solid var(--line); }
tr:first-child > th:first-child { border-top-left-radius: 6px; }
tr:first-child > th:last-child { border-top-right-radius: 6px; }
:where(table.list, table.records-table) tr:nth-child(even) > td { background-color: #eef3fa; }
:where(table tr:hover > td) { background-color: rgba(31, 78, 140, .05); }
td { font-variant-numeric: tabular-nums; }

/* The choices above a list: the button that shows it the main one. */
form.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 14px; }
form.filter select { margin-right: 0; }
form.filter button[type=submit] { background: var(--brand); border-color: var(--brand); color: #fff; }
form.filter button[type=submit]:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* Fields a touch taller and rounder; the messages after a save with a soft shadow. */
:where(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=color], [type=range]), select, textarea) { padding: 6px 9px; }
p.notice, p.error { box-shadow: 0 1px 2px rgba(20, 30, 60, .06); }

/* A phone or a small tablet: the frame to the edges, the tabs in one row to swipe, a wide table scrolls inside the box. */
@media (max-width: 760px) {
  body { padding: 0; background: #fff; }
  #sitelogo { margin: 6px 10px; }
  #sitelogo img { height: 42px; width: auto; }
  #frame { border-radius: 0; padding: 4px 0 0; box-shadow: none; }
  #header { height: auto; overflow: visible; }
  #signup { float: none; text-align: right; padding: 2px 10px; }
  #menu1 { float: none; display: flex; overflow-x: auto; padding: 0 6px; -webkit-overflow-scrolling: touch; }
  #menu1 li { float: none; flex: 0 0 auto; }
  #menu1 li a { padding: 10px 11px; }
  #content { border-radius: 0; padding: 12px 10px 20px; min-height: 0; }
  #content::after { display: none; }
  #sub_menu { margin: -12px -10px 12px -10px; border-radius: 0; }
  form.stacked input[type=text], form.stacked input[type=password] { width: 100%; max-width: 360px; }
  h1 { font-size: 20px; }
}

@media print {
  body { background: #fff; padding: 0; }
  #frame { box-shadow: none; padding: 0; }
  #content::after { display: none; }
  th { background: none; }
  :where(table.list, table.records-table) tr:nth-child(even) > td { background: none; }
}

/* The logo is a picture on white: on the grey page its white is let through (no box around it). */
#sitelogo img { mix-blend-mode: multiply; }

@media (max-width: 760px) {
  /* The choices above a list one under the other, as wide as the screen. */
  form.filter, .tv10-filter { display: flex; flex-direction: column; align-items: stretch; }
  form.filter label, .tv10-filter label { width: 100%; }
  #content select, #content input[type=text] { max-width: 100%; }
}
/* The age classes of the records: one page each, the chosen one marked. */
.record-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.record-tabs a { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.record-tabs a:hover { background: var(--soft); text-decoration: none; }
.record-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
/* A tablet too (up to 1100 px): a table wider than the box scrolls inside it, the page itself stays put. */
@media (max-width: 1100px) {
  #content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* The entry page: the athlete's name stays in sight while the boxes on the right are scrolled to. */
  :where(table.entry-table th:nth-child(3), table.entry-table td:nth-child(3)) { position: sticky; left: 0; z-index: 1; background-color: #fff; box-shadow: 3px 0 4px -2px rgba(20, 30, 60, .18); }
  table.entry-table td:nth-child(3), table.entry-table th:nth-child(3) { min-width: 110px; }
}
/* The event's page: one row to add an athlete (the search, the number of a new one, Add), as in the old 8Lanes. */
.entry-add { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.entry-add .entry-search { flex: 0 1 420px; }
.entry-new { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; padding: 10px; border: 1px solid #d6d8e6; border-radius: 6px; background: #f7f9fc; }
.entry-new label { display: flex; flex-direction: column; gap: 2px; margin: 0; }
/* The order the bar goes up in (high jump, pole vault): behind grey, now bold. */
.bar-heights { color: var(--muted); font-size: .92em; }
.bar-heights span { display: inline-block; margin: 0 .25em; color: var(--ink); }
.bar-heights span.done { color: #a3a7b3; text-decoration: line-through; }
.bar-heights span.now { font-weight: 700; color: #fff; background: var(--brand); border-radius: 4px; padding: 0 .35em; }
.cis-later { display: block; font-size: .92em; }
.cis-later > span { display: inline-block; margin-right: 1em; }
.bar-line { margin: 0 0 .4em; }
/* A high jump as in the old CIS: a column per height, the bar now marked. */
.height-grid th.h, .height-grid td.h { text-align: center; min-width: 3.2em; font-variant-numeric: tabular-nums; }
.height-grid th.now { background: var(--brand); color: #fff; }
.height-grid td.now { background: #eef3fa; font-weight: 700; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.height-grid td.start { box-shadow: inset 0 -3px 0 var(--ok); background: #eaf5ec; }
/* Every table on the screen as in the old CIS: a dark blue row of titles, the lines in turn white and light blue, a clear line between
   them. Low weight (:where): the marked lines (live, season best, next up ...) keep their own colour; printing stays plain. */
@media screen {
  :where(table) th { background: #1f4e8c; color: #fff; border-bottom: none; }
  :where(table) th a, :where(table) th .muted { color: #fff; }
  :where(table) td { border-bottom: 1px solid #c9d1e0; }
  :where(tr:nth-child(even)) > td { background-color: #eef3fa; }
}
.cis-results .height-grid th.now { background: #ffd34d; color: #1b2440; }
.cis-results .height-grid td.now { background: #fff3c4; }
.cis-results .height-grid td.start { box-shadow: inset 0 -3px 0 var(--ok); background: #dff1e3; }
.cis-results td.club { color: #3b4566; white-space: nowrap; max-width: 16em; overflow: hidden; text-overflow: ellipsis; }
.cis-club { display: inline; min-width: 0 !important; margin-left: .3em; color: #556; }
/* Deleting a competition: kept apart and red, so that it is not pressed by mistake. */
.danger-zone { border: 2px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; background: #fff5f5; max-width: 760px; }
button.danger { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== Dark (the button by ET / EN, kept in the browser): light letters on a dark ground. Only on the screen; printing stays light. ===== */
@media screen {
  html[data-theme="dark"] {
    --ink: #e6e9f2; --muted: #9aa3b8; --line: #34405a; --line-soft: #283249; --paper: #121826; --soft: #1b2336;
    --accent: #ff8a8a; --ok: #4cc26a; color-scheme: dark;
  }
  html[data-theme="dark"] body { background: #0a0e17; color: var(--ink); }
  html[data-theme="dark"] #frame { background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
  html[data-theme="dark"] #content { background: #121826; }
  html[data-theme="dark"] #content::after { display: none; }
  html[data-theme="dark"] #sub_menu { background: #1b2336; border-bottom-color: var(--line); }
  html[data-theme="dark"] #sub_menu a:hover, html[data-theme="dark"] #sub_menu a.active { background: #283249; color: #fff; }
  html[data-theme="dark"] #sitelogo img { mix-blend-mode: normal; background: #fff; border-radius: 8px; padding: 2px 8px; }
  html[data-theme="dark"] a { color: #9fb6ff; }
  html[data-theme="dark"] .links { color: #6f7890; }

  /* Fields and buttons. */
  html[data-theme="dark"] :where(input:not([type=checkbox], [type=radio], [type=hidden]), select, textarea) { background: #0e1320; color: var(--ink); border-color: #3b4862; }
  html[data-theme="dark"] :where(button, .button):where(:not(.primary, .danger, .yc, .link)) { background: #1d2639; color: var(--ink); border-color: #3b4862; }
  html[data-theme="dark"] button.link { color: #9fb6ff; }
  html[data-theme="dark"] form.filter button[type=submit], html[data-theme="dark"] button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
  html[data-theme="dark"] p.notice { color: #c6f0d0; background: #12301c; }
  html[data-theme="dark"] p.error { color: #ffd0d0; background: #3a1414; }

  /* Tables: the dark blue head stays; the lines dark in turn. */
  html[data-theme="dark"] :where(tr:nth-child(even)) > td,
  html[data-theme="dark"] :where(table.list, table.records-table) tr:nth-child(even) > td { background-color: #1a2234; }
  html[data-theme="dark"] :where(table) td { border-bottom-color: #2a3550; }
  html[data-theme="dark"] :where(table tr:hover > td) { background-color: rgba(159, 182, 255, .08); }
  html[data-theme="dark"] :where(table.entry-table th:nth-child(3), table.entry-table td:nth-child(3)) { background-color: #121826; }
  html[data-theme="dark"] tr.hl-season td { background: #4a3f0c; }
  html[data-theme="dark"] tr.hl-alltime td { background: #4f2f0c; }
  html[data-theme="dark"] tr.live td, html[data-theme="dark"] tr.nextup td, html[data-theme="dark"] .callroom-athletes tr.in td,
  html[data-theme="dark"] .implements tr.approved td { background: #173a22; }

  /* The boxes and panels that were white. */
  html[data-theme="dark"] :where(.tools, details.heat-settings, .tele-channel, .cis-heat, .entry-new, .record-tabs a, button.suggestion, .suggestion, .steps li) { background: #1b2336; border-color: #34405a; color: var(--ink); }
  html[data-theme="dark"] .record-tabs a.active { background: var(--brand); color: #fff; }
  html[data-theme="dark"] .steps li.done { background: #173a22; border-color: #2f6b40; }
  html[data-theme="dark"] .cis-live { background: #0e1320; }
  html[data-theme="dark"] .cis-athlete.now { background: #283249; }
  html[data-theme="dark"] details.warnings { background: #2a1416; }
  html[data-theme="dark"] .danger-zone { background: #2a1416; }
  html[data-theme="dark"] .height-grid td.now { background: #3a3415; }
  html[data-theme="dark"] .height-grid td.start { background: #173a22; }
  html[data-theme="dark"] .bar-heights span { color: var(--ink); }
  html[data-theme="dark"] .tv10-new, html[data-theme="dark"] .my-schedule tr.day td { background: #1b2336; }
}

/* The button of the look, as quiet as the language links. */
#theme-toggle { color: #959599; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
#theme-toggle:hover { color: #fff; }

/* The Tele desk as the old TvToolbox: the groups of buttons, the chosen one pressed, the big red "On air". */
.tele-state { margin: 6px 0 10px; font-size: 15px; }
.tele-state .onair { color: #fff; background: #c00000; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.tele-groups { display: flex; flex-wrap: wrap; gap: 10px; }
.tele-groups fieldset { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 170px; }
.tele-btn { text-align: left; }
.tele-btn.pressed { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25); }
.tele-fields { margin: 10px 0; gap: 10px; flex-wrap: wrap; }
.tele-air { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.tele-air form { margin: 0; }
button.tele-onair { background: #c00000; border-color: #8f0000; color: #fff; font-size: 20px; font-weight: 800; padding: 14px 26px; }
button.tele-onair.live { background: #fff; color: #c00000; border-width: 3px; }
button.tele-onair small { font-size: 12px; font-weight: 500; opacity: .8; }
html[data-theme="dark"] .tele-btn.pressed { background: var(--brand); color: #fff; }
html[data-theme="dark"] button.tele-onair { background: #c00000; color: #fff; border-color: #8f0000; }
html[data-theme="dark"] button.tele-onair.live { background: #1d2639; color: #ff6b6b; border-color: #ff6b6b; }
.hidden-choice { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); margin: 4px 0 8px; }
.hidden-badge { background: #6b3a00; color: #fff; }
/* The club of an athlete in the lists (start lists, results, summaries): always there, a little quieter than the name. */
td.club-cell { color: var(--muted); white-space: nowrap; max-width: 18em; overflow: hidden; text-overflow: ellipsis; }

/* The clubs page: an EKJL member club, the kind of a club. */
.ekjl-mark { color: #2e7d32; font-weight: bold; }
.kind-choice { border: 1px solid #ccc; padding: .4em .8em; }
.kind-choice label { display: block; }

/* The combined events calculator. */
.combined-calc .calc-total th { font-size: 1.2em; }
.combined-calc .error { color: #c62828; margin-left: .5em; }

/* The venues: the line of the place on a competition's page, the administrators' notes. */
.venue-notes { margin: .3em 0 1em; }
.venue-notes p { white-space: pre-wrap; }
.venue-notes-input { width: 100%; max-width: 60em; }

/* The WA calendar: the category as a badge, the past competitions paler. */
.wa-category { display: inline-block; min-width: 2.2em; text-align: center; padding: 0 .3em; border-radius: 3px; background: #1565c0; color: #fff; font-weight: bold; }
.wa-calendar tr.past td { opacity: .6; }

/* The Estonian list: a result here not in EKJL's list yet. */
.new-mark { display: inline-block; padding: 0 .35em; border-radius: 3px; background: #2e7d32; color: #fff; font-size: .8em; font-weight: bold; }
tr.new-result td { background: rgba(46, 125, 50, .08); }
tr.new-result.live .new-mark { background: #c62828; }

/* The one save button of a long form: always in sight at the bottom of the window. */
.save-all { position: sticky; bottom: 0; background: var(--bg, #fff); padding: .6em 0; border-top: 1px solid #ddd; margin-top: 1.5em; }
html[data-theme=dark] .save-all { background: #1e1e1e; border-color: #444; }

/* The stage of an event, the same in the timetable, the live view and the CIS. */
.stage { display: inline-block; padding: 0 .4em; border-radius: 3px; font-size: .8em; font-weight: bold; vertical-align: middle; }
.stage-live { background: #c62828; color: #fff; }
.stage-unofficial { background: #f9a825; color: #000; }
.stage-checked { background: #1565c0; color: #fff; }
.stage-official { background: #2e7d32; color: #fff; }
.stage-times { color: #666; font-size: .85em; margin-left: .4em; white-space: nowrap; }
html[data-theme=dark] .stage-times { color: #aaa; }
.stage-line { margin: .2em 0 .8em; }
a.live-link { font-weight: bold; color: #c62828; }

/* The texts of the screens. */
table.texts td { vertical-align: top; }
table.texts textarea { width: 100%; min-width: 16em; }

/* A reaction time under 0.100 s: a false start? */
input.fs-warn { background: #ffebee; color: #c62828; font-weight: bold; }

/* The entry fee paid online. */
.payment-box { border: 2px solid #1565c0; border-radius: 6px; padding: .6em 1em; margin: .8em 0; }
.payment-box.paid { border-color: #2e7d32; }
td.due { color: #c62828; font-weight: bold; }
