/* The league's public pages in the look of DESIGN.md «Minimal B» (the home has its own static/css/home.css on top of the same rules).
   Scope: html.opr-min (shell.js sets it on the league's own site, never on a client's branded one) and <main class="ow"> (the pages that opted in).
   It re-skins the shared Tailwind building blocks the pages already use (cards, labels, tables) instead of rewriting every script's markup:
   Barlow instead of monospace, no forced capitals, flat blocks on hairlines, the logo's italic for the page title. Every color is the visitor's theme. */
@font-face { font-family: "Barlow Semi Condensed"; src: url("/static/fonts/barlow-semi-condensed-400-latin-e7deb8e13139.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/static/fonts/barlow-semi-condensed-700-latin-bc8aadf92982.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hauser"; src: url("/static/fonts/Hauser-BoldItalic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }

html.opr-min main.ow { --rule: rgb(var(--c-surface-container-high)); --dim: rgb(var(--c-on-surface-variant)); --ink: rgb(var(--c-on-surface));
  font-family: "Barlow Semi Condensed", system-ui, sans-serif; font-size: 18px; color: var(--ink); }

/* type: one family, sentence case, no tracking; numbers line up */
html.opr-min main.ow :is(.font-label-mono, .font-body-md, .font-headline-lg, .font-stats-value, .font-display-telemetry, table, input, select, button, summary) {
  font-family: "Barlow Semi Condensed", system-ui, sans-serif; letter-spacing: 0; }
html.opr-min main.ow .uppercase { text-transform: none; }
html.opr-min main.ow [class*="tracking-"] { letter-spacing: 0; }
html.opr-min main.ow .font-label-mono { font-size: 16px; line-height: 1.45; }
html.opr-min main.ow :is(td, .font-stats-value) { font-variant-numeric: tabular-nums; }

/* the page title: the logo's italic, the one big thing of the page */
html.opr-min main.ow :is(h1, h1.font-headline-lg) { font: italic 700 72px/.95 "Hauser", serif; text-transform: none; letter-spacing: -.01em; }
html.opr-min main.ow h2 { font-family: "Barlow Semi Condensed", system-ui, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.25; text-transform: none; }
html.opr-min main.ow h3 { font-family: "Barlow Semi Condensed", system-ui, sans-serif; font-weight: 700; font-size: 22px; text-transform: none; }
html.opr-min main.ow .ow-eyebrow { display: none; }   /* (labels above a heading: the heading speaks for itself) */

/* blocks: no cards. A block is flat, separated by one hairline; hover only lightens the text */
html.opr-min main.ow :is(.bg-surface-container-low, .bg-surface-container, .bg-surface-container-high, .bg-surface-container-lowest):not(input):not(select):not(dialog):not(.absolute):not(.fixed):not([role="listbox"]) {   /* (floating lists and menus keep their own ground) */
  background: transparent; }
html.opr-min main.ow :is(.shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl):not(.absolute):not(.fixed):not([role="listbox"]) { box-shadow: none; }
html.opr-min main.ow [class*="rounded"]:not(.rounded-full) { border-radius: 0; }   /* (status dots and avatars stay round) */
html.opr-min main.ow :is(a, article, details, li).bg-surface-container-low,
html.opr-min main.ow :is(a, article, details, li).bg-surface-container-high { border-top: 1px solid var(--rule); padding-left: 0; padding-right: 0; }
html.opr-min main.ow a.bg-surface-container-low:hover h3 { color: rgb(var(--c-primary-container)); }

/* tables: a quiet header, rows on hairlines */
html.opr-min main.ow thead, html.opr-min main.ow thead tr { background: transparent; color: var(--dim); }
html.opr-min main.ow th { font-weight: 400; font-size: 15px; border-bottom: 1px solid var(--rule); }
html.opr-min main.ow tbody tr { background: transparent; border-top: 1px solid var(--rule); }
html.opr-min main.ow tbody tr:hover { background: rgb(var(--c-surface-container-low)); }

/* inputs and filters: quiet */
html.opr-min main.ow :is(input:not([type="checkbox"]):not([type="radio"]), select) { background-color: transparent; border: 1px solid var(--rule); color: var(--ink); }

/* the page's frame: room to breathe */
html.opr-min main.ow > div:first-child { padding-top: 64px; padding-bottom: 72px; }

/* leftovers of the old look the pages share */
html.opr-min main.ow :is(.w-1, .w-1\.5, .w-2):is(.h-6, .h-8, .h-10)[class*="bg-"] { display: none; }   /* the little colored bars beside titles */
html.opr-min main.ow :is(span, p).font-label-mono:has(+ :is(h1, h2)) { display: none; }   /* the label above a heading («Cuenta», «Apariencia»): the heading speaks */
html.opr-min main.ow [class*="border-l-4"], html.opr-min main.ow [class*="border-l-2"] { border-left-width: 0; padding-left: 0; }
html.opr-min main.ow .border:is(.border-surface-container-high, .border-surface-container-highest, .border-outline-variant):not(.absolute):not(.fixed):not([role="listbox"]) { border-width: 1px 0 0 0; }
/* tabs and filters: text, the chosen one underlined; the page's single colored action stays the primary button */
html.opr-min main.ow :is([role="tab"], #lgChips [aria-pressed]) {   /* (only real tabs and the league filters: the server and race cards with aria-pressed stay cards) */
  background: transparent !important; color: var(--dim) !important; font-weight: 400; border-radius: 0; padding-left: 0; padding-right: 0; margin-right: 18px; }
html.opr-min main.ow :is([role="tab"][aria-selected="true"], #lgChips [aria-pressed="true"]) { color: var(--ink) !important; box-shadow: inset 0 -2px var(--ink); }

/* selectable cards (the servers of /live, the races of /reportar): one thin frame all round, the chosen one in the theme's accent */
html.opr-min main.ow article[role="button"] { background: transparent; border: 1px solid var(--rule) !important; box-shadow: none !important; padding: 16px; }
html.opr-min main.ow article[role="button"][aria-pressed="true"] { border-color: rgb(var(--c-primary-container)) !important; }
/* the old look rounded every block with a surface background (and every table wrapper): flat here; floating lists keep theirs */
html.opr-min main.ow :is(a, article, aside, div, form, section, details)[class*="bg-surface-container"]:not(.absolute):not(.fixed),
html.opr-min main.ow :is(.overflow-x-auto, .carlist) { border-radius: 0; }

/* ── the admin panel (admin/*.html, <main class="ow adm">): the same language, set for work. Smaller title, 16px text, the forms of control.css flat on hairlines ── */
html.opr-min main.ow.adm { font-size: 16px; }
html.opr-min main.ow.adm :is(h1, h1.font-headline-lg, h1.h) { font: italic 700 44px/1 "Hauser", serif; }
html.opr-min main.ow.adm > div:first-child { padding-top: 32px; padding-bottom: 56px; }
html.opr-min main.ow.adm :is(.h, .font-headline-md) { font: 700 22px/1.25 "Barlow Semi Condensed", system-ui, sans-serif; letter-spacing: 0; }
html.opr-min main.ow.adm :is(.sec, .row) { background: transparent; border-width: 1px 0 0; border-color: var(--rule); padding-left: 0; padding-right: 0; }
html.opr-min main.ow.adm :is(.in:not([type="checkbox"]):not([type="radio"]), .fld, textarea, .carlist, .choice) { background-color: transparent; border-radius: 0; border: 1px solid var(--rule); color: var(--ink); }
html.opr-min main.ow.adm :is(.in, .fld, textarea, input:not([type="checkbox"]):not([type="radio"]), select):focus { border-color: rgb(var(--c-primary-container)); outline: none; }   /* (boxes and radios keep the browser's focus ring) */
html.opr-min main.ow.adm .choice[aria-pressed="true"] { border-color: rgb(var(--c-primary-container)); }
html.opr-min main.ow.adm .btn { background: transparent; border: 1px solid var(--rule); font-weight: 400; }
html.opr-min main.ow.adm .btn:hover { border-color: var(--dim); background: transparent; }
html.opr-min main.ow.adm .caritem[aria-selected="true"] { box-shadow: inset 2px 0 0 rgb(var(--c-primary-container)); }
html.opr-min main.ow.adm table.t { font-size: 15px; }
html.opr-min main.ow.adm table.t :is(th, td) { border: 0; border-top: 1px solid var(--rule); }
html.opr-min main.ow.adm table.t th { background: transparent; color: var(--dim); font-weight: 400; }
/* bars that stay on top while scrolling keep the page's ground, or the rows show through */
html.opr-min main.ow.adm :is(.sticky, header.sticky) { background: rgb(var(--c-surface)) !important; }
html.opr-min main.ow.adm .w-2.h-12[class*="bg-"] { display: none; }   /* (the one tall bar beside Ligas' title) */
html.opr-min main.ow.adm :is(input, select, textarea, button).border { border-width: 1px !important; border-radius: 0; }   /* controls keep their whole frame (!important: the hairline rule above, which keeps only the top of blocks, is more specific) */
html.opr-min main.ow.adm span[class*="bg-primary-container/"] { background: transparent; padding-left: 0; padding-right: 0; color: var(--dim); }   /* label chips («Próxima carrera»): plain dim text */
html.opr-min main.ow.adm .tab[aria-selected="true"] { border-color: var(--ink); font-weight: 400; }
html.opr-min main.ow.adm :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { border-radius: 0; }
/* eventos.css (dialogs and folding sections of Ligas, ELO, Retos…): same type, no caps or monospace; a section folds on one hairline */
html.opr-min main.ow.adm :is(.ev-head, .ev-lbl, .ev-in, .ev-btn, .ev-btn-main, .ev-sec > summary) { font-family: "Barlow Semi Condensed", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
html.opr-min main.ow.adm :is(.ev-lbl, .ev-sec > summary) { font-size: 16px; line-height: 1.35; }
html.opr-min main.ow.adm .ev-in { font-size: 16px; }
html.opr-min main.ow.adm :is(.ev-btn, .ev-btn-main) { font-size: 15px; }
html.opr-min main.ow.adm .ev-head { font-size: 18px; color: var(--ink); }
html.opr-min main.ow.adm .ev-hint { font-size: 14px; }
html.opr-min main.ow.adm .ev-sec { border-width: 1px 0 0; }
html.opr-min main.ow.adm .ev-sec > summary { padding-left: 0; padding-right: 0; }
html.opr-min main.ow.adm .ev-sec > summary:hover { background: transparent; color: rgb(var(--c-primary-container)); }
html.opr-min main.ow.adm .ev-sec-body { padding-left: 0; padding-right: 0; }
html.opr-min main.ow.adm dialog.ev-dlg { background: rgb(var(--c-surface)); border-radius: 0; }
html.opr-min main.ow.adm :is(button, input[type="submit"]):not(.rounded-full) { border-radius: 0; }   /* (the theme rounds every button by 10px: flat rectangles here, DESIGN.md) */
html.opr-min main.ow.adm :is(.in.bad, .border-error, [aria-invalid="true"]) { border-color: rgb(var(--c-error)) !important; }   /* a field marked wrong keeps its red frame over the quiet one above */

/* controls framed in the theme's outline: the hairline (--rule) is ~1.2:1 on the ground, a button or a field was hard to tell from the page; the outline is 3:1 or more on every theme (ops/themes.json) */
html.opr-min main.ow.adm { --edge: rgb(var(--c-outline)); }
html.opr-min main.ow.adm :is(.btn, .in:not([type="checkbox"]):not([type="radio"]), .fld, textarea, select, .choice) { border-color: var(--edge); }
html.opr-min main.ow.adm .btn:not(:disabled):hover { border-color: var(--ink); background: rgb(var(--c-on-surface) / .08); }
html.opr-min main.ow.adm .btn-main:not(:disabled):hover { filter: brightness(1.18); box-shadow: 0 0 0 2px rgb(var(--c-on-surface) / .55); }   /* (a red button lightens and gets a frame: opacity .9 was not seen) */
html.opr-min main.ow.adm .btn-main:not(:disabled):active { filter: brightness(.9); }
html.opr-min main.ow.adm :is(.btn, .btn-main, .btn-quiet):disabled { opacity: .45; cursor: not-allowed; }
html.opr-min main.ow.adm :is(button, a):focus-visible,
html.opr-min main.ow.adm :is(.in, .fld, textarea, input:not([type="checkbox"]):not([type="radio"]), select):focus-visible { outline: 2px solid rgb(var(--c-primary-container)); outline-offset: 2px; }   /* (the same weight as the «outline: none» of :focus above, and later: the keyboard sees where it is) */
/* what the buttons do, by colour: red = stops or removes (red flag, teleport), amber stripe = a caution (VSC, FCY, the pace car out) */
html.opr-min main.ow.adm .btn.btn-danger { border-color: rgb(var(--c-error)); color: rgb(var(--c-error)); }
html.opr-min main.ow.adm .btn.btn-danger:not(:disabled):hover { background: rgb(var(--c-error) / .16); border-color: rgb(var(--c-error)); }
html.opr-min main.ow.adm .btn.btn-caution { box-shadow: inset 4px 0 0 #f5c400; padding-left: 20px; }
html.opr-min main.ow.adm .btn.btn-caution:not(:disabled):hover { background: rgb(245 196 0 / .16); }
html.opr-min main.ow.adm .btn.btn-caution[aria-pressed="true"] { background: #f5c400; border-color: #f5c400; color: #111; font-weight: 700; opacity: 1; box-shadow: none; }   /* the VSC / FCY out, or the pace car leading: lit like the yellow flag (lit even when it cannot be pressed again) */
html.opr-min:is([data-theme="paper-grid"], [data-theme="stitch-workshop-light"]) main.ow.adm .btn.btn-caution { box-shadow: inset 4px 0 0 #9a7400; }   /* (the light themes, ops/themes.json: the yellow stripe vanished on the pale ground; <html> is always «dark») */
/* the flag out now in its own colour (the same on every theme: they are the track's flags) */
html.opr-min main.ow.adm .btn.flag[aria-pressed="true"] { font-weight: 700; }
html.opr-min main.ow.adm .btn.zone[aria-pressed="true"] { background: #f5c400; border-color: #f5c400; color: #111; font-weight: 700; }   /* a sector with its yellow out (its name ends in «×2» for the double) */
html.opr-min main.ow.adm .btn.zone[data-kind="double"] { box-shadow: inset 0 0 0 3px #111; }
html.opr-min main.ow.adm .btn.flag[data-rc="green"][aria-pressed="true"] { background: #1e8e3e; border-color: #1e8e3e; color: #fff; }
html.opr-min main.ow.adm .btn.flag[data-rc="yellow"][aria-pressed="true"] { background: #f5c400; border-color: #f5c400; color: #111; }
html.opr-min main.ow.adm .btn.flag[data-rc="white"][aria-pressed="true"] { background: #f4f4f4; border-color: #8a8a8a; color: #111; }
html.opr-min main.ow.adm .btn.flag[data-rc="checkered"][aria-pressed="true"] { background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) left / 8px 8px repeat-y, #111; border-color: #111; color: #fff; padding-left: 22px; }
/* «En vivo»: three framed boxes (flags, pace car, one driver) instead of one long column */
html.opr-min main.ow.adm .live-grid { display: grid; gap: 24px 40px; }
@media (min-width: 1280px) { html.opr-min main.ow.adm .live-grid { grid-template-columns: 1fr 1fr; } }
html.opr-min main.ow.adm .live-sep { width: 1px; height: 24px; margin: 0 8px; background: rgb(var(--c-outline)); }
@media (max-width: 767px) { html.opr-min main.ow.adm .live-sep { display: none; } }
html.opr-min main.ow.adm .live-box { border: 1px solid var(--edge); padding: 16px 18px; }
html.opr-min main.ow.adm .live-box :is(.btn, .btn-main, select.in) { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }   /* (a select was taller than the buttons beside it: one height in a row)*/
html.opr-min main.ow.adm .live-h { font: 700 17px/1.2 "Barlow Semi Condensed", system-ui, sans-serif; color: var(--dim); }

/* ── a hosting client's site (html.cl): the same look; the title in the site's own letter (bold, upright), never the league's logo italic ── */
html.opr-min.cl main.ow :is(h1, h1.font-headline-lg) { font: 700 56px/1 "Barlow Semi Condensed", system-ui, sans-serif; letter-spacing: 0; }
html.opr-min.cl main.ow.adm :is(h1, h1.font-headline-lg, h1.h) { font: 700 36px/1.05 "Barlow Semi Condensed", system-ui, sans-serif; }
html.opr-min.cl main.ow:not(.adm) .bg-surface-container-highest.border-l-2 { background: transparent; padding-left: 0; }   /* (the grey strips of a session card: plain lines with their icon) */

/* ── the guide (admin/guia.html): an index on the left and one chapter at a time (admin/js/guia.js); flow diagrams in inline SVG, coloured from the theme ── */
.guide { max-width: 1600px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }   /* (centred, the whole width up to 1600 px: max-w-6xl is not in the compiled Tailwind) */
.guide-wrap { display: grid; gap: 40px; }
.guide-ch[hidden] { display: none !important; }   /* (the chapters carry Tailwind's .flex, which beats the browser's [hidden]) */
.guide-h2:focus { outline: none; }
@media (min-width: 1024px) { .guide-wrap { grid-template-columns: 15rem 1fr; align-items: start; } .guide-nav { position: sticky; top: 88px; } }
.guide-nav { display: flex; flex-direction: column; gap: 2px; }
.guide-nav a { display: block; padding: 8px 12px; border-left: 2px solid rgb(var(--c-outline-variant)); color: rgb(var(--c-on-surface-variant)); text-decoration: none; }
.guide-nav a:hover { color: rgb(var(--c-on-surface)); border-left-color: rgb(var(--c-outline)); }
.guide-nav a[aria-current] { color: rgb(var(--c-on-surface)); border-left-color: rgb(var(--c-primary-container)); font-weight: 700; }
.guide-body { min-width: 0; }
.guide-h2 { font: 700 28px/1.15 "Barlow Semi Condensed", system-ui, sans-serif; color: rgb(var(--c-on-surface)); }
.guide-h3 { font: 700 19px/1.25 "Barlow Semi Condensed", system-ui, sans-serif; color: rgb(var(--c-on-surface)); }
.guide-ch article { border-top: 1px solid rgb(var(--c-outline-variant)); padding-top: 16px; }
.guide-next { border-top: 1px solid rgb(var(--c-outline-variant)); padding-top: 16px; text-align: right; }
.guide-next a { color: rgb(var(--c-primary)); }
.guide-map { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 8px 20px; }
.guide-map > div { display: contents; }
.guide-map dt { font-weight: 700; }
.guide-map dd { color: rgb(var(--c-on-surface-variant)); }
@media (max-width: 640px) { .guide-map { grid-template-columns: 1fr; } .guide-map dd { margin-bottom: 8px; } }
.guide-fig { margin: 4px 0; display: flex; flex-direction: column; gap: 8px; }
.guide-fig img { width: 100%; height: auto; border: 1px solid rgb(var(--c-outline-variant)); }
.guide-fig figcaption { font-size: 14px; color: rgb(var(--c-on-surface-variant)); }
.guide-dg { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
.guide-fig:has(.guide-dg) figcaption { text-align: center; }
.guide-dg .dg-box, .guide-dg .dg-q { fill: rgb(var(--c-surface-container)); stroke: rgb(var(--c-outline)); stroke-width: 1.5; }
.guide-dg .dg-go { fill: rgb(30 142 62 / .22); stroke: #1e8e3e; stroke-width: 1.5; }
.guide-dg .dg-warn { fill: rgb(245 196 0 / .18); stroke: #c79e00; stroke-width: 1.5; }
.guide-dg .dg-ln { stroke: rgb(var(--c-outline)); stroke-width: 1.5; }
.guide-dg .dg-ar { fill: rgb(var(--c-outline)); }   /* arrowheads of the «Página por página» diagrams */
.guide-nav .guide-nav-h { margin-top: 16px; border-left-color: transparent; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }   /* the heading of the second part of the index (a link to its intro) */
.guide-dg .dg-t { fill: rgb(var(--c-on-surface)); font: 600 14px "Barlow Semi Condensed", system-ui, sans-serif; text-anchor: middle; }
.guide-dg .dg-s { fill: rgb(var(--c-on-surface-variant)); font: 13px "Barlow Semi Condensed", system-ui, sans-serif; text-anchor: middle; }
