:root {
	--jl-green: #3156a3;
	--jl-green-dark: #233a75;
	--jl-green-deep: #111d40;
	--jl-lime: #f3c63f;
	--jl-gold: #35c3d2;
	--jl-surface: #f4f5f8;
	--jl-card: #ffffff;
	--jl-ink: #191f32;
	--jl-muted: #656b7c;
	--jl-line: #d9ddea;
	--jl-display: "Oswald", "Arial Narrow", sans-serif;
	--jl-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body.jl-tpl { margin: 0; background: var(--jl-surface); color: var(--jl-ink); font-family: var(--jl-body); line-height: 1.55; }
.jl-tpl a { color: var(--jl-green); text-decoration: none; }
.jl-tpl a:hover { color: var(--jl-green-dark); }

/* Futsal masthead */
.jl-header { position: relative; min-height: 340px; color: #fff; background-color: var(--jl-green-deep); background-image: url("../images/futsal-courtside.png"); background-position: center 58%; background-size: cover; isolation: isolate; }
.jl-header::before { position: absolute; inset: 0; z-index: -1; background: rgba(12, 20, 48, .62); content: ""; }
.jl-header__inner { display: flex; flex-direction: column; width: min(100% - 3rem, 1280px); min-height: 340px; margin-inline: auto; }
.jl-header--compact, .jl-header--compact .jl-header__inner { min-height: 92px; }
.jl-header--compact .jl-header__inner { justify-content: center; }
.jl-header__bar { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: .35rem; padding-top: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.jl-brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .7rem; color: #fff !important; font-family: var(--jl-display); }
.jl-brand__mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255, 255, 255, .5); background: rgba(9, 31, 45, .68); font-size: 1.15rem; }
.jl-brand__name { font-size: 1.4rem; font-weight: 500; white-space: nowrap; }
.jl-brand__name strong { color: var(--jl-lime); font-weight: 700; }
.jl-nav { width: 100%; }
.jl-nav ul { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.jl-nav li a, .jl-nav li span { display: block; padding: .55rem .65rem; border-bottom: 2px solid transparent; color: rgba(255, 255, 255, .82) !important; font-size: .78rem; font-weight: 600; }
.jl-nav li a:hover { border-bottom-color: var(--jl-lime); color: #fff !important; }
.jl-nav li.active > a, .jl-nav li.current > a { border-bottom-color: var(--jl-lime); color: #fff !important; }
.jl-nav-mobile { display: none; }
.jl-masthead { max-width: 660px; margin-block: auto; padding: 2.5rem 0 3.25rem; }
.jl-masthead__eyebrow { margin: 0 0 .65rem; color: var(--jl-lime); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.jl-masthead__title { max-width: 650px; margin: 0; font-family: var(--jl-display); font-size: clamp(2.35rem, 5vw, 4.2rem); font-weight: 600; line-height: 1.02; }
.jl-masthead__copy { max-width: 560px; margin: 1rem 0 0; color: rgba(255, 255, 255, .84); font-size: 1rem; }

/* Breadcrumbs and page layout */
.jl-breadcrumbs { border-bottom: 1px solid var(--jl-line); background: var(--jl-card); }
.jl-breadcrumbs__inner { width: min(100% - 3rem, 1280px); margin-inline: auto; padding-block: .7rem; color: var(--jl-muted); font-size: .82rem; }
.jl-breadcrumbs__inner ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.jl-breadcrumbs__inner li:not(:last-child)::after { margin-left: .45rem; color: var(--jl-green); content: "/"; }
.jl-breadcrumbs__inner a { color: var(--jl-muted); }
.jl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 2rem; width: min(100% - 3rem, 1280px); margin-inline: auto; padding-block: 2.25rem 3rem; }
.jl-layout--error { grid-template-columns: 1fr; }
.jl-main, .jl-main > *, .jl-main-top, .jl-main-bottom, .jl-module-grid__item { min-width: 0; }
.jl-main .row { margin-right: 0; margin-left: 0; }
.jl-module-band { width: min(100% - 3rem, 1280px); margin-inline: auto; padding-bottom: 2.25rem; }
.jl-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.jl-module-grid__item > .moduletable, .jl-module-grid__item > .card { height: 100%; }
.jl-module-band--wide { padding-bottom: 3.5rem; }

/* Competition navigation */
.jl-aside { position: sticky; top: 1rem; }
.jl-aside .card { overflow: hidden; border: 1px solid var(--jl-line); border-radius: 6px; background: var(--jl-card); box-shadow: 0 8px 24px rgba(7, 29, 20, .07); }
.jl-aside .card-header { border: 0 !important; background: var(--jl-green-dark) !important; color: #fff !important; font-family: var(--jl-display); font-size: 1rem; font-weight: 500; }
.jl-aside .card-body { padding: 0 !important; }
.jl-aside ul.mod-menu { display: block; margin: 0; padding: .35rem 0; list-style: none; }
.jl-aside ul.mod-menu li { display: block; width: 100%; }
.jl-aside ul.mod-menu li a { display: flex; align-items: center; gap: .65rem; padding: .58rem 1rem; border-left: 3px solid transparent; color: var(--jl-ink); font-size: .88rem; font-weight: 500; }
.jl-aside ul.mod-menu li a::before { color: var(--jl-green); font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f1e3"; }
.jl-aside ul.mod-menu li a:hover, .jl-aside ul.mod-menu li.active > a { border-left-color: var(--jl-gold); background: #eaf3f7; color: var(--jl-green-dark); }

/* Component and module surfaces */
.jl-main h1 { display: block; margin: 0 0 1.35rem; padding: 1.1rem 1.25rem; border-left: 6px solid var(--jl-lime); border-radius: 4px; background: var(--jl-green-dark); color: #fff; font-family: var(--jl-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
.jl-main h2, .jl-main .h4, .jl-module-band h2, .jl-module-band .h4 { color: var(--jl-green-deep); font-family: var(--jl-display); }
.jl-main h3.h5 { margin-top: 2rem; padding-bottom: .45rem; border-bottom: 2px solid var(--jl-line); color: var(--jl-green); font-family: var(--jl-display); }
.jl-main .card, .jl-module-band .card, .jl-module-grid__item .moduletable { border: 1px solid var(--jl-line); border-radius: 6px; background: var(--jl-card); box-shadow: 0 5px 18px rgba(7, 29, 20, .05); }
.jl-main .table, .jl-module-band .table { --bs-table-bg: var(--jl-card); }
.jl-main .table thead th, .jl-module-band .table thead th { border-color: var(--jl-green-dark); background: var(--jl-green-dark); color: #fff; font-family: var(--jl-display); font-weight: 500; }
.jl-main .table-striped > tbody > tr:nth-of-type(odd) > *, .jl-module-band .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: #eaf3f7; }
.jl-main .list-group-item-action { border-inline-start: 4px solid var(--jl-green); transition: background-color .15s ease, border-color .15s ease; }
.jl-main .list-group-item-action:hover { border-inline-start-color: var(--jl-gold); background: #eaf3f7; }
.jl-main .badge.text-bg-secondary { background: var(--jl-green-dark) !important; color: #fff !important; }
.jl-main .nav-tabs .nav-link, .jl-main .nav-pills .nav-link { color: var(--jl-green-dark); }
.jl-main .nav-tabs .nav-link.active, .jl-main .nav-pills .nav-link.active { border-color: var(--jl-green); background: var(--jl-green) !important; color: #fff !important; }
.jl-main .btn-outline-primary { border-color: var(--jl-green); color: var(--jl-green-dark); }
.jl-main .btn-outline-primary:hover { border-color: var(--jl-green); background: var(--jl-green); color: #fff; }
.jl-main .alert { border: 0; border-left: 4px solid var(--jl-green); border-radius: 4px; background: #eaf3f7; color: var(--jl-ink); }
.jl-main .alert-warning { border-left-color: var(--jl-gold); background: #fff4df; }
.jl-main .alert-danger { border-left-color: #b3261e; background: #fbeae8; }
.jl-main .border.rounded { border-color: var(--jl-line) !important; background: var(--jl-card); }
.jl-main .border.rounded .fs-3 { color: var(--jl-green-deep); font-family: var(--jl-display); font-weight: 700; }
.jl-main .jl-chart-wrap { margin-bottom: 1.5rem; padding: 1rem; border: 1px solid var(--jl-line); border-radius: 6px; background: var(--jl-card); }

/* Footer and error page */
.jl-footer { border-top: 4px solid var(--jl-green); background: var(--jl-green-deep); color: rgba(255,255,255,.72); }
.jl-footer__inner { display: flex; justify-content: center; align-items: center; gap: .55rem; min-height: 76px; padding: 1rem 1.5rem; font-size: .82rem; }
.jl-error { padding: 4rem 1rem; text-align: center; }
.jl-error__code { margin: 0; color: var(--jl-green); font-family: var(--jl-display); font-size: 4rem; font-weight: 700; }
.jl-btn { display: inline-block; margin-top: 1rem; padding: .65rem 1.3rem; border-radius: 4px; background: var(--jl-green); color: #fff !important; font-weight: 600; }

@media (max-width: 1080px) {
	.jl-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 76px; padding-top: 0; }
	.jl-nav--desktop { display: none; }
	.jl-nav-mobile { position: relative; display: block; }
	.jl-nav-mobile summary { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.45); color: #fff; font-weight: 600; cursor: pointer; list-style: none; }
	.jl-nav-mobile summary::-webkit-details-marker { display: none; }
	.jl-nav-mobile nav { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 20; width: min(82vw, 360px); max-height: 65vh; overflow-y: auto; border: 1px solid rgba(255,255,255,.2); background: var(--jl-green-deep); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
	.jl-nav-mobile ul { display: block; margin: 0; padding: .5rem; list-style: none; }
	.jl-nav-mobile li a, .jl-nav-mobile li span { display: block; padding: .65rem .75rem; color: #fff !important; }
}
@media (max-width: 900px) {
	.jl-layout { grid-template-columns: 1fr; }
	.jl-aside { position: static; }
	.jl-module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.jl-header, .jl-header__inner { min-height: 300px; }
	.jl-header { background-position: 70% center; }
	.jl-header__inner, .jl-layout, .jl-module-band, .jl-breadcrumbs__inner { width: min(100% - 2rem, 1280px); }
	.jl-header__bar { min-height: 66px; }
	.jl-brand__name { font-size: 1.15rem; }
	.jl-brand__mark { width: 2.2rem; height: 2.2rem; }
	.jl-nav-mobile summary span:last-child { display: none; }
	.jl-masthead { padding-block: 2rem 2.6rem; }
	.jl-masthead__title { font-size: 2.35rem; }
	.jl-masthead__copy { font-size: .9rem; }
	.jl-layout { padding-block: 1.5rem 2.25rem; }
	.jl-main h1 { font-size: 1.65rem; }
	.jl-main .table-responsive { max-width: calc(100vw - 2rem); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
