/* liga.aktywni.app — the league's own layer over the hub styles (style.css + motywy.css).
   Variant A "Hub" (owner 2026-11-22) with the owner's fixes: footer always at the bottom, a short menu,
   the match score centred, a much bigger score on the big screen. */

/* footer at the bottom even on short pages */
body.inner { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.inner > main { flex: 1 0 auto; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── header: logo, three links, the next-round pill; "Menu" on phones ── */
.hd-in { min-height: 4.25rem; gap: 1rem; }
.brand { margin-right: auto; gap: .6rem; }
.brand b { font-size: 1.125rem; }
.nav { gap: .15rem; }
.nav a { font-size: 1rem; padding: .45rem .75rem; }
.next-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.next-pill > i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ball-y, #FBC53A); flex: none; }
.next-pill > i.lvp { background: #6EE7A0; animation: pulse 1.8s ease-out infinite; }
.next-pill:hover { background: #1E47A6; }
.menu-btn { display: none; }
@media (min-width: 48.01rem) {
  .nav { display: flex; position: static; flex-direction: row; background: none; border: 0; padding: 0; }
}
@media (max-width: 48rem) {
  .menu-btn { display: inline-flex; align-items: center; width: auto; height: auto; min-height: 2.5rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .9375rem var(--text); cursor: pointer; order: 3; }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .nav { padding: .25rem 1rem .75rem; box-shadow: 0 16px 24px -16px rgba(18, 22, 31, .25); }
  .nav a { padding: .85rem .25rem; border-radius: 0; font-size: 1.0625rem; }
  .nav a + a { border-top: 1px solid var(--line); }
  .nav a[aria-current="page"] { background: none; color: var(--ct); }
}
@media (max-width: 26rem) { .brand b { display: none; } .next-pill { font-size: .8125rem; padding: .45rem .75rem; } }

/* ── footer ── */
.ft { padding: 2.5rem 0 1.25rem; }
.ft-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 1.5rem 3rem; }
.ft-about { margin: 0; max-width: 34rem; }
.ft-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: flex-end; font-weight: 500; }
.ft-links a { color: var(--ink); }
.ft-base { margin-top: 2rem; }
.ft-base a { color: var(--ink3); }
@media (max-width: 48rem) { .ft-in { grid-template-columns: 1fr; } .ft-links { justify-content: flex-start; } }

/* ── home ── */
.lh-hero { position: relative; color: #fff; background: #14295E; overflow: hidden; }
.lh-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.lh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 41, 94, .84), rgba(20, 41, 94, .38)); }
.lh-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 2.5rem; align-items: end; padding-top: 5.5rem; padding-bottom: 3.5rem; }
.lh-k { margin: 0 0 .5rem; font-weight: 600; opacity: .85; }
.lh-hero h1 { margin: 0; color: #fff; font-size: clamp(3rem, 7.4vw, 6rem); line-height: .95; letter-spacing: -.035em; }
.lh-lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 34rem; margin: 1rem 0 0; opacity: .92; }
.lh-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; }
.lh-btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.25rem; border-radius: var(--r, 12px); background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.lh-btn:hover { background: var(--mist); }
.lh-btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.lh-btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.lh-card { background: #fff; color: var(--ink); border-radius: var(--r, 12px); padding: 1.1rem 1.35rem 1rem; }
.lh-ck { margin: 0 0 .5rem; font-weight: 700; }
.lh-card ul { list-style: none; margin: 0; padding: 0; }
.lh-card li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.lh-card li a { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 600; min-width: 0; }
.lh-card li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-card li a:hover span { text-decoration: underline; }
.lh-card li b { margin-left: auto; font-weight: 800; white-space: nowrap; }
.lh-g { font-weight: 800; color: var(--brand); min-width: 1.6rem; }
.lh-cf { margin: .6rem 0 0; font-size: .875rem; }
.lh-cf a { color: var(--brand); font-weight: 600; }
@media (max-width: 56rem) { .lh-in { grid-template-columns: 1fr; padding-top: 3.5rem; padding-bottom: 2rem; gap: 1.75rem; } }

.lh-blk { padding-top: 3.5rem; }
.lh-blk:last-child { padding-bottom: 3.5rem; }
.lh-hd { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.lh-hd h2 { margin: 0; font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -.025em; }
.lh-hd p { margin: 0; color: var(--ink2); }
.lh-hd a { color: var(--ct); font-weight: 600; }
.lh-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lh-cols li + li { border-left: 1px solid var(--line); }
.lh-cols a { display: grid; gap: .6rem; align-content: start; height: 100%; padding: 1.1rem 1.25rem 1.25rem; color: inherit; text-decoration: none; }
.lh-cols a:hover { background: var(--mist); }
.lh-cols time { font-weight: 800; font-size: 1.375rem; color: var(--brand); }
.lh-t { display: flex; align-items: center; gap: .6rem; font-size: 1.0625rem; min-width: 0; }
.lh-t b { overflow-wrap: anywhere; }
.lh-m { color: var(--ink3); font-size: .875rem; }
@media (max-width: 64rem) { .lh-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lh-cols li:nth-child(3) { border-left: 0; } .lh-cols li:nth-child(n + 3) { border-top: 1px solid var(--line); } }
@media (max-width: 36rem) { .lh-cols { grid-template-columns: 1fr; } .lh-cols li + li { border-left: 0; border-top: 1px solid var(--line); } }
.lh-blk.lv-today { margin: 0; border-bottom: 0; }
.lh-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.lh-facts div { padding: 1rem 1.25rem 0 0; }
.lh-facts div + div { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.lh-facts dt { font-weight: 700; margin-bottom: .25rem; }
.lh-facts dd { margin: 0; color: var(--ink2); }
@media (max-width: 56rem) { .lh-facts { grid-template-columns: 1fr 1fr; row-gap: 1rem; } .lh-facts div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 36rem) { .lh-facts { grid-template-columns: 1fr; } .lh-facts div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* results rows: the details line is centred under the score, like the score itself */
.mt-meta { text-align: center; }

/* ── match page: everything on the page's centre line ── */
.board-wrap { text-align: center; }
.board-wrap .crumbs { justify-content: center; }
.mboard { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); max-width: 64rem; margin-left: auto; margin-right: auto; }
.board-s > b { font-size: clamp(3.5rem, 10vw, 7rem); }
.board-meta { max-width: 40rem; margin: 0 auto; }
.board-live { max-width: 64rem; margin-left: auto; margin-right: auto; }

/* ── big screen: the score takes most of the screen (rosters single column, crests smaller) ── */
.ek { gap: clamp(12px, 2vw, 40px); }
.ek-big { font-size: clamp(120px, min(23vw, 54vh), 820px); line-height: .82; }
.ek-time { font-size: clamp(88px, min(17vw, 36vh), 560px); }
.ek-sw { font-size: clamp(28px, 3.6vw, 80px); }
.ek-sets, .ek-tu { font-size: clamp(16px, 1.7vw, 32px); }
.ek-chips span { font-size: clamp(15px, 1.5vw, 28px); }
.ek-crest { width: clamp(56px, min(6.5vw, 11vh), 132px); }
.ek-name { font-size: calc(clamp(20px, min(2.5vw, 4.8vh), 60px) * var(--k, 1)); }
.ek-roster { columns: 1; width: min(100%, 15em); font-size: clamp(12px, min(.95vw, 1.9vh), 20px); line-height: 1.45; }
/* phone held sideways / short screens: no rosters */
@media (max-height: 520px) { .ek-roster { display: none; } .ek-big { font-size: clamp(96px, min(21vw, 50vh), 820px); } }
/* portrait (phone, tablet upright): teams on top, the score full width below */
@media (max-aspect-ratio: 1/1) { .ek-big { font-size: clamp(96px, 30vw, 560px); } .ek-time { font-size: clamp(72px, 22vw, 400px); } }

/* ── O lidze ── */
.lo-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.lo-grid h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin: 2rem 0 .75rem; }
.lo-grid > div > h2:first-child, .lo-hall h2 { margin-top: 0; }
.lo-grid p { max-width: 42rem; }
.lo-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; max-width: 42rem; }
.lo-hall { padding: 1.25rem 1.35rem 1.4rem; background: var(--mist); border-radius: var(--r, 12px); }
.lo-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0; }
.lo-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; }
.lo-am { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.lo-am li { padding: .3rem .7rem; border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 500; }
@media (max-width: 56rem) { .lo-grid { grid-template-columns: 1fr; } }
.lo-404 { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ── tables: hairlines instead of a rounded box (variant A) ── */
.tbl-wrap { border: 0; border-radius: 0; }
.tbl th { background: none; border-bottom: 1px solid var(--line); font-weight: 600; padding: .55rem .5rem; }
.tbl td { padding: .65rem .5rem; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.tbl td.l a, .tbl td.l span { font-weight: 600; }
.tbl caption { font-size: 1.25rem; font-weight: 800; }
.tbl tbody tr:has(a):hover td { background: var(--mist); }
@media (min-width: 80rem) { .grp-tables .opt2 { display: table-cell; } .grp-tables th.opt2 { display: table-cell; } }
