/*
 * Kundemba FC — additions on top of the theme.
 *
 * The theme covers the marketing pages; everything here belongs to the parts
 * it never had: a real league table, cart and checkout, tickets, and the
 * account area. Colours are pulled from the theme's own palette so the two
 * halves read as one site.
 */

/* Kundemba FC play in royal blue and white. --kfc-crest is sampled from the
   club badge; the rest is built around it. The theme's own gold-on-charcoal
   is remapped separately in brand.css, so these two agree. Headings are
   Oswald, body copy Droid Sans. */
:root {
	--kfc-crest: #273991;
	--kfc-accent: #5b7bef;
	--kfc-accent-dark: #3f5ad1;
	--kfc-dark: #1b2a63;
	--kfc-dark-soft: #24356f;
	--kfc-ink: #16224f;
	--kfc-muted: #7b839c;
	--kfc-border: #e2e5ef;
	--kfc-panel: #f8f9fc;
	--kfc-success: #2e9e5b;
	--kfc-warning: #d99100;
	--kfc-danger: #d94040;
	--kfc-radius: 2px;
	--kfc-display: 'Oswald', Arial, Helvetica, sans-serif;
}

/* --- Page scroll --------------------------------------------------------
   The theme gives the wrapper `height: 100%` with `overflow-x: hidden`. CSS
   says an overflow that is not `visible` on one axis forces the other axis to
   compute to `auto` — so the wrapper quietly became a scroll box exactly one
   viewport tall holding the whole page, and the site scrolled inside itself
   with a second scrollbar. `body` already clips horizontally and propagates
   that to the viewport, so the wrapper does not need to. */

.tg-wrapper {
	height: auto;
	min-height: 100%;
	/* `clip` still hides the theme's wide decorations, but unlike `hidden` it
	   creates no scroll container and does not drag the other axis to `auto`. */
	overflow-x: clip;
}

/* The hero was `height: 100%` of that viewport-tall wrapper. Its slider is
   absolutely positioned, so the box has no in-flow content to size itself
   from and cannot simply go `auto` — it needs the viewport named outright.
   svh keeps it inside the visible area on phones, where 100vh sits behind
   the browser's own chrome. */

.tg-sliderbox {
	height: 100vh;
	height: 100svh;
}

/* --- Images ------------------------------------------------------------
   The theme was built around demo art of fixed dimensions. Anything uploaded
   through the staff area can be any size or shape, so every slot gets an
   explicit box: `cover` for photographs, `contain` for crests and cut-outs
   that must not be cropped. */

img {
	max-width: 100%;
	height: auto;
}

/* News, gallery and album covers ---------------------------------------- */
.tg-postimg img,
.tg-albumcard img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	object-position: center;
}

.tg-postdetail .tg-postimg img { height: 420px; }

.tg-relatedposts .tg-postimg img,
.tg-blogpostlist .tg-postimg img { height: 200px; }

.tg-gallery .tg-postimg img { height: 200px; }

.tg-videothumb img { height: 260px; }

/* Squad ------------------------------------------------------------------ */
/* Cut-outs are transparent PNGs — contain, never crop. */
.tg-player figure img,
.tg-playergrid figure img {
	width: 100%;
	height: 260px;
	object-fit: contain;
	object-position: bottom center;
}

/* Staff are photographed, not cut out, so they crop to a common box instead of
   sitting at their own aspect ratio inside it — which left every headshot a
   different width. Anchored to the top so the crop takes the legs, not the face. */
.tg-staffgrid figure img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	object-position: top center;
}

.tg-player-detail .tg-imagewidget figure img {
	width: 100%;
	height: 340px;
	object-fit: cover;
}

.tg-playerslider figure img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

/* Crests ----------------------------------------------------------------- */
/* Sized per context. The fixture rows give each crest a ~10% wide box, so a
   large cap there pushes the club name out of its column. */
.tg-teamlogo img,
.tg-team-logo img {
	width: auto;
	height: auto;
	max-width: 74px;
	max-height: 74px;
	object-fit: contain;
	margin: 0 auto;
}

.tg-matchresult .tg-team-logo img {
	max-width: 62px;
	max-height: 62px;
}

/* Compact rows: fixture slider, ticket rows, head-to-head. */
.tg-upcomingmatch .tg-match .tg-teamlogo img {
	max-width: 34px;
	max-height: 34px;
}

/* Sponsor artwork is a wordmark, roughly 200x35 — sizing it like a crest
   shrinks it to an unreadable smudge. */
.tg-oursponsers .tg-match .tg-teamlogo img {
	width: auto;
	max-width: 160px;
	max-height: 44px;
	object-fit: contain;
}

/* The card is a fixed height, so a long partner name has to trim rather than
   spill out of the bottom of it. */
.tg-oursponsers .tg-match h3 {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* The latest-result list splits each row into three equal thirds, so a crest
   wider than the theme's own small artwork (34x40) pushes the win/lose label
   into it. */
.tg-allmatchstatus .tg-match .tg-teamlogo img {
	max-width: 34px;
	max-height: 40px;
}

.tg-match .tg-teamlogo img {
	max-width: 46px;
	max-height: 46px;
}

/* Shop ------------------------------------------------------------------- */
.tg-productimg img {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.tg-productdetail .tg-productimg img { height: 420px; }

.tg-productthumbs img {
	width: 72px;
	height: 72px;
	object-fit: cover;
}

/* Sidebar and footer thumbnails ------------------------------------------ */
.tg-toprated li figure img {
	width: 68px;
	height: 68px;
	object-fit: cover;
}

/* Hero and feature art ---------------------------------------------------- */
.tg-sliderbox figure img {
	max-height: 460px;
	width: auto;
	object-fit: contain;
	margin: 0 auto;
}

.tg-upcomingmatch-counter figure img {
	max-height: 320px;
	width: auto;
	object-fit: contain;
}

.tg-videobox figure > img {
	width: 100%;
	height: 420px;
	object-fit: cover;
}

.tg-aboutussection figure img,
.tg-banner figure img {
	width: 100%;
	height: 320px;
	object-fit: cover;
}

/* Shop banner ------------------------------------------------------------
   The theme sets `max-width: none` here and pulls the figure out with negative
   margins so its own cut-out PNG can bleed past the panel. A real product
   photo of any size just overflows, so it is constrained and right-aligned
   instead. */

.tg-shopslider figure {
	margin: 0;
	text-align: right;
}

.tg-shopslider figure img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	max-height: 250px;
	object-fit: contain;
}

/* The panel is club navy, so its copy has to be light — the heading was
   inheriting the body ink and disappearing into the background. */
.tg-shopbanner .tg-shopcontent .tg-contentbox h2,
.tg-shopbanner .tg-shopcontent .tg-contentbox h2 a {
	color: #fff;
}

.tg-shopbanner .tg-shopcontent .tg-contentbox h2 a:hover {
	color: var(--kfc-accent);
}

.tg-shopbanner .tg-shopcontent .tg-price {
	color: rgba(255, 255, 255, 0.92);
}

.tg-shopbanner .tg-shopcontent .tg-price del {
	color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 991px) {
	.tg-shopslider figure img { max-height: 190px; }
}

/* Sponsors --------------------------------------------------------------- */
.tg-sponsorlist img {
	width: auto;
	max-width: 160px;
	max-height: 60px;
	object-fit: contain;
}

/* Comment avatars --------------------------------------------------------- */
.tg-comment > figure img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 50%;
}

@media (max-width: 991px) {
	.tg-postimg img,
	.tg-albumcard img { height: 200px; }
	.tg-postdetail .tg-postimg img { height: 300px; }
	.tg-productimg img { height: 240px; }
	.tg-productdetail .tg-productimg img { height: 320px; }
	.tg-player figure img,
	.tg-playergrid figure img { height: 210px; }
	.tg-staffgrid figure img { height: 230px; }
	.tg-videobox figure > img { height: 300px; }
	.tg-aboutussection figure img { height: 240px; }
}

@media (max-width: 575px) {
	.tg-postimg img,
	.tg-albumcard img,
	.tg-gallery .tg-postimg img { height: 170px; }
	.tg-player figure img,
	.tg-playergrid figure img { height: 180px; }
	.tg-staffgrid figure img { height: 190px; }
	.tg-productimg img { height: 210px; }
}

/* --- Lists ------------------------------------------------------------ */
/* No disc bullets anywhere. Lists that genuinely need a marker — prose from
   the editor, validation summaries — get a hyphen instead. */

/* main.css sets `li { list-style: disc inside none }` on the element itself,
   so a rule on the parent list is not enough to beat it — li has to be
   targeted directly. */
ul,
ol,
li {
	list-style: none;
}

li::marker {
	content: none;
}

.tg-description ul,
.tg-description ol,
.tg-flash ul {
	padding-left: 0;
	margin-left: 0;
}

.tg-description ul > li,
.tg-description ol > li,
.tg-flash ul > li {
	position: relative;
	padding-left: 16px;
}

.tg-description ul > li::before,
.tg-description ol > li::before,
.tg-flash ul > li::before {
	content: '-';
	position: absolute;
	left: 0;
	color: var(--kfc-accent);
}

/* Theme lists that carry their own icon must not get a hyphen as well. */
.tg-description ul.tg-detail > li,
.tg-description ul.tg-socialicons > li {
	padding-left: 0;
}

.tg-description ul.tg-detail > li::before,
.tg-description ul.tg-socialicons > li::before {
	content: none;
}

/* --- Login and signup forms --------------------------------------------
   The template puts Bootstrap's .checkbox class on the input itself, but that
   class is written for the wrapper: it makes the box `display: block`, so the
   label text drops onto a line of its own and the forgot-password link onto a
   third. The row belongs on one line, remember-me left, the link right. */

.tg-loginform .form-group label,
.tg-signupform .form-group label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
}

.tg-loginform .form-group label input.checkbox,
.tg-signupform .form-group label input.checkbox {
	display: inline-block;
	width: auto;
	margin: 0;
}

.tg-loginform .form-group label + a,
.tg-signupform .form-group label + a {
	float: right;
	line-height: 20px;
}

.tg-loginform .form-group label + a i {
	margin-left: 5px;
}

/* --- Flash + form feedback ------------------------------------------- */

.tg-flash {
	padding: 14px 18px;
	margin-bottom: 20px;
	border-left: 3px solid var(--kfc-accent);
	background: #f7f8fa;
	font-size: 14px;
}

.tg-flash-success { border-left-color: var(--kfc-success); }
.tg-flash-error { border-left-color: var(--kfc-danger); }

.tg-error {
	display: block;
	margin-top: 6px;
	color: var(--kfc-danger);
	font-size: 12px;
}

/* --- Auth modals ---------------------------------------------------------
   The theme splits the modal 60/40 and fills the 40 with social sign-in
   buttons. We do not offer those, so the panel was simply blank white. It
   carries the badge instead.

   The panel comes first in the markup and floats right, so when the two
   columns go full width on a phone it lands on top without needing flex
   ordering. The theme gives .tg-formarea 60% with no responsive override at
   all, so on a phone the form was sitting in 60% of the modal; that is reset
   here too. */

.tg-modalbrand {
	width: 40%;
	float: right;
	padding: 40px 24px;
	background: var(--kfc-dark);
	color: #fff;
	text-align: center;
}

/* Floats leave the shorter column short, so the panel stopped halfway down
   the modal. Flex from the tablet breakpoint up makes the two columns equal
   height; `order` puts the badge back on the right, since it comes first in
   the markup so that the phone layout needs no reordering at all. */
@media (min-width: 768px) {
	.tg-modal-content {
		display: flex;
		align-items: stretch;
	}

	.tg-modalbrand,
	.tg-modal-content .tg-formarea {
		float: none;
	}

	.tg-modalbrand {
		order: 2;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

.tg-modalbrand figure {
	margin: 0 0 16px;
}

.tg-modalbrand figure img {
	width: auto;
	max-width: 130px;
	max-height: 120px;
	margin: 0 auto;
	object-fit: contain;
}

.tg-modalbrand h4 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 18px;
	line-height: 24px;
}

.tg-modalbrand p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	line-height: 20px;
}

/* The theme pins the dialog at a fixed 770px and centres it with a -385px
   margin, with no responsive override anywhere — so on any phone the modal
   hung off both edges of the screen and the form was cut in half. Fluid with
   gutters below the width it was built for. */
@media (max-width: 800px) {
	.tg-modalbox.fade .modal-dialog {
		top: 4%;
		left: 0;
		right: 0;
		width: auto;
		margin: 0 15px;
	}
}

@media (max-width: 767px) {
	.tg-modalbrand,
	.tg-modal-content .tg-formarea {
		width: 100%;
		float: none;
	}

	.tg-modalbrand {
		padding: 24px 20px;
	}

	.tg-modalbrand figure {
		margin: 0 0 10px;
	}

	.tg-modalbrand figure img {
		max-width: 90px;
		max-height: 80px;
	}
}

/* --- Notes ---------------------------------------------------------------
   .tg-note carries the short explanatory lines under forms — the sign-up
   note, the newsletter confirmation, the modal errors. It had colour variants
   and nothing else, so it sat as bare text hard against whatever followed. */

.tg-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border-left: 3px solid var(--kfc-border);
	background: var(--kfc-panel);
	font-size: 13px;
	line-height: 20px;
	color: var(--kfc-muted);
}

.tg-note i {
	margin-top: 3px;
	flex: none;
}

.tg-note-success {
	border-left-color: var(--kfc-success);
	color: var(--kfc-success);
}

.tg-note-error {
	border-left-color: var(--kfc-danger);
	color: var(--kfc-danger);
}

/* --- Section headings ----------------------------------------------------
   .tg-border-heading opens a panel on thirteen views — both auth forms, the
   account area, checkout, contact. Neither the theme nor this file had ever
   given it a rule, so the heading ran straight into the first field. The name
   asks for a rule under it; here it is. */

.tg-border-heading {
	width: 100%;
	float: left;
	margin: 0 0 24px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--kfc-border);
}

.tg-border-heading h3 {
	margin: 0;
	font-size: 20px;
	line-height: 28px;
}

/* --- Form rhythm ---------------------------------------------------------
   These forms inherited Bootstrap's 15px form-group and nothing more, so the
   note, the submit button and the "already have an account?" line below it
   all ran together. */

.tg-loginform .form-group {
	margin-bottom: 20px;
}

.tg-loginform .tg-btn-lg {
	margin-top: 4px;
}

.tg-loginform .tg-description {
	width: 100%;
	float: left;
	margin: 22px 0 0;
}

.tg-loginform .tg-description p {
	margin: 0;
}

.tg-empty {
	padding: 60px 20px;
	color: var(--kfc-muted);
	text-align: center;
	font-size: 15px;
}

/* --- Logo ------------------------------------------------------------- */
/* The theme fixes .tg-logo at 97x160 and stretches the image to fill the
   width, which only ever suited its own tall badge. Any other crest ends up
   small and sitting at the top of the box. Centre it properly instead and let
   it scale to fit whatever shape gets uploaded. */

.tg-nav .tg-logo {
	width: 124px;
	height: 160px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tg-nav .tg-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.tg-nav .tg-logo a img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* The footer mark floats left at its natural size; cap it so a large upload
   does not tower over the column. */
.tg-footercol .tg-logo a img {
	width: auto;
	height: auto;
	max-width: 200px;
	max-height: 92px;
	object-fit: contain;
}

@media (max-width: 991px) {
	.tg-nav .tg-logo { width: 92px; height: 110px; }
}

/* On mobile the menu toggles are floated into the same block as the logo, so
   `margin: 0 auto` centres it against the space the floats leave rather than
   the bar itself. Take it out of flow and pin it to the true centre. */
@media (max-width: 767px) {
	.tg-nav .navbar-header {
		min-height: 96px;
		position: absolute;
	}

	.tg-nav .tg-logo {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		margin: 0;
		width: 80px;
		height: 84px;
	}

	.tg-topaddnav .navbar-header .navbar-toggle,
	.tg-nav .navbar-header .navbar-toggle {
		margin: 28px 0 27px;
	}
}

/* --- Fixture rows on small screens -------------------------------------
   Two things break here on a phone. The theme floats the home / vs / away
   boxes at fixed widths, which collide once the crest and a real club name
   share the row. And the match detail only appears on :hover, which a touch
   screen cannot do — so it is shown inline instead. */

@media (max-width: 767px) {
	/* The theme floats home / vs / away at a third each, which collides once a
	   crest and a real club name share the row. The template stacks them on a
	   phone — crest and name on one line, "vs" between — so that is what the
	   whole phone range does here, not just under 480px. */
	.tg-match .tg-matchdetail {
		padding: 16px;
	}

	.tg-match .tg-matchdetail .tg-box,
	.tg-upcomingmatch .tg-match .tg-box {
		float: none;
		width: 100%;
		text-align: center;
	}

	.tg-match .tg-box .tg-teamlogo,
	.tg-match .tg-box:first-child .tg-teamlogo,
	.tg-match .tg-box:last-child .tg-teamlogo {
		float: none;
		display: inline-block;
		padding: 0 8px 0 0;
		vertical-align: middle;
	}

	.tg-match h3 {
		display: inline-block;
		margin: 6px 0;
		font-size: 16px;
		line-height: 1.3;
		vertical-align: middle;
		overflow-wrap: anywhere;
	}

	.tg-upcomingmatch .tg-match .tg-teamlogo img {
		max-width: 30px;
		max-height: 30px;
	}

	/* .tg-matchdetail above this is a 100%-wide left float, so a plain static
	   block starts at the card's top and paints its dark panel straight over
	   the crests and team names. Joining the float flow and clearing puts it
	   underneath, where the template shows it on a phone. */
	.tg-matchhover {
		position: static;
		float: left;
		clear: both;
		width: 100%;
		height: auto;
		padding: 12px 14px;
		/* Swiper and the theme both set transform inline on this element. */
		transform: none !important;
	}

	.tg-matchhover address {
		width: 100%;
		float: none;
		margin: 0 0 10px;
	}

	.tg-matchhover .tg-btnbox {
		text-align: left;
	}

	/* Vertical sliders become plain stacked lists on a phone.
	   kundemba.js destroys the Swiper instances here, because a vertical
	   slider swallows the touch drag and leaves the reader unable to scroll
	   past it. Destroying takes the `swiper-container-vertical` class with it,
	   though — and that class is the only thing making .swiper-wrapper a
	   column. Left alone, the wrapper stays `display: flex` and lays the rows
	   out sideways inside a container the theme has given a fixed height and
	   `overflow: hidden`, so all but the first row vanish. Every slider that
	   gets destroyed has to be flattened here to match. */
	.tg-upcomingmatch-slider,
	.tg-upcomingmatch-slider .swiper-wrapper,
	.tg-otherfixtures-slider,
	.tg-otherfixtures-slider .swiper-wrapper,
	.tg-sponser-slider,
	.tg-sponser-slider .swiper-wrapper,
	.tg-pointstable-slider,
	.tg-pointstable-slider .swiper-wrapper {
		height: auto !important;
		transform: none !important;
	}

	.tg-upcomingmatch-slider .swiper-wrapper,
	.tg-otherfixtures-slider .swiper-wrapper,
	.tg-sponser-slider .swiper-wrapper,
	.tg-pointstable-slider .swiper-wrapper {
		display: block;
	}

	.tg-upcomingmatch-slider .swiper-slide,
	.tg-otherfixtures-slider .swiper-slide,
	.tg-sponser-slider .swiper-slide,
	.tg-pointstable-slider .swiper-slide {
		height: auto !important;
		margin: 0 0 10px;
	}

	/* The arrows drive a slider that no longer exists. */
	.tg-upcomingmatch-slider .tg-themebtnnext,
	.tg-upcomingmatch-slider .tg-themebtnprev,
	.tg-otherfixtures-slider .tg-themebtnnext,
	.tg-otherfixtures-slider .tg-themebtnprev,
	.tg-sponser-slider .tg-themebtnnext,
	.tg-sponser-slider .tg-themebtnprev,
	.tg-pointstable-slider .tg-themebtnnext,
	.tg-pointstable-slider .tg-themebtnprev {
		display: none;
	}
}

/* --- Tags ---------------------------------------------------------------
   .tg-theme-tag has a dark background but the theme never sets a text colour,
   so it inherits the body ink. Recolouring the theme mapped both of those to
   the same navy, leaving the label invisible everywhere color.css did not
   happen to give the tag an accent. */

.tg-theme-tag {
	color: #fff;
}

/* --- Fixture / result rows ----------------------------------------------
   The row inverts to navy on hover. The theme's own markup puts the tie in a
   bare <h4>, so its hover colour simply applies; ours wraps it in a link to
   the match, and a link does not inherit that — the team names stayed body
   navy on a navy fill and disappeared. The competition tag has the same
   trouble: it is handed the accent, which is far too close to the fill to
   read. Everything in a hovered row goes white, bar the "vs", which keeps the
   accent the way the template has it. */

.tg-ticket h4 a {
	color: inherit;
}

.tg-ticket:hover h4,
.tg-ticket:hover h4 a,
.tg-ticket:hover .tg-theme-tag,
.tg-ticket:hover .tg-matchmetadata,
.tg-ticket:hover .tg-matchmetadata li,
.tg-ticket:hover .tg-matchmetadata address,
.tg-ticket:hover .tg-matchmetadata time {
	color: #fff;
}

.tg-ticket:hover h4 span,
.tg-ticket:hover h4 a span {
	color: var(--kfc-accent);
}

/* --- Buttons and widget headings ---------------------------------------/* --- Buttons and widget headings ---------------------------------------
   Both were gold-on-charcoal in the theme. Recoloured to the club palette
   that becomes blue-on-navy, which is unreadable — so the text goes white
   and the accent is kept for the hover fill. */

.tg-btn,
.tg-btn:hover,
.tg-btn:focus,
.tg-btn:active,
.tg-btn span {
	color: #fff;
}

.tg-widget h3 {
	background: var(--kfc-dark);
	color: #fff;
}

/* The price filter's readout is pinned to 80px by the theme, which clips a
   five-figure shilling amount down to "TZS 7". */
.tg-price-range p {
	width: 100%;
}

.tg-price-range p input {
	width: auto !important;
	min-width: 150px;
	color: var(--kfc-ink);
	font-weight: 700;
}

/* --- Legibility on dark ------------------------------------------------
   The theme's accent used to be gold, which read well on its charcoal. The
   club's blue does not, so anything sitting on a navy panel or over a photo
   is set in white and keeps the accent for hover only. */

.tg-postimg figcaption {
	background: rgba(27, 42, 99, 0.82);
}

.tg-postmetadata,
.tg-postmetadata li,
.tg-postmetadata li span {
	color: rgba(255, 255, 255, 0.85);
}

.tg-postmetadata li a {
	color: #fff;
}

.tg-postmetadata li a:hover {
	color: var(--kfc-accent);
}

.tg-postmetadata li + li:before {
	background: rgba(255, 255, 255, 0.45);
}

/* Page banner ------------------------------------------------------------
   The title is a watermark, not a heading: the theme sets it a shade lighter
   than the banner (#55545d on #373542) and the :after gradient fades its
   lower half into the background. Making it white broke that effect, so it
   gets the same relationship against the club navy instead.

   The gradient is also pinned to the banner's exact colour — the theme faded
   to a near-match, which leaves a faint band. */

.tg-banner .tg-pagetitle h1 {
	color: #41539b;
}

.tg-banner .tg-pagetitle h1:after {
	background: linear-gradient(to bottom, rgba(27, 42, 99, 0) 40%, rgba(27, 42, 99, 1) 100%);
}

.tg-breadcrumb,
.tg-breadcrumb li,
.tg-breadcrumb li a {
	color: rgba(255, 255, 255, 0.88);
}

.tg-breadcrumb li a:hover {
	color: var(--kfc-accent);
}

.tg-breadcrumb li.active {
	color: #fff;
	font-weight: 600;
}

/* --- Header extras ---------------------------------------------------- */

/* A long account name used to wrap and shove the language switcher onto a
   second line. Clip it with an ellipsis instead; the full name stays in the
   link's title attribute. */
.tg-addnav .tg-username {
	display: inline-block;
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}

/* The theme floats these list items, so they wrap onto a second line as soon
   as the bar runs out of room — which is how the language switcher ended up
   under "Log out". A flex row keeps them on one line. Only above mobile,
   where the same markup becomes a stacked dropdown panel. */
@media (min-width: 768px) {
	.tg-addnav > ul {
		float: none;
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
	}

	.tg-addnav > ul > li {
		float: none;
		flex: 0 0 auto;
		display: flex;
		align-items: center;
	}
}

@media (max-width: 1199px) {
	.tg-addnav .tg-username { max-width: 110px; }
	.tg-addnav ul li { padding: 0 11px; }
}

@media (max-width: 767px) {
	.tg-addnav .tg-username { max-width: 100%; }
}

.tg-cart .tg-cartcount {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--kfc-accent);
	color: #fff;
	font-size: 10px;
	line-height: 17px;
	text-align: center;
}

.tg-cart > a { position: relative; }

.tg-cart-remove {
	display: inline;
	margin: 0;
	padding: 0;
}

.tg-cart-remove .tg-delete {
	border: 0;
	background: none;
	padding: 0;
}

.tg-cart-empty .tg-product-detail h3 {
	padding: 12px 0;
	color: var(--kfc-muted);
	font-size: 13px;
}

.tg-localeswitcher .dropdown-menu {
	min-width: 120px;
	padding: 6px 0;
}

.tg-localeswitcher .dropdown-menu > li > a {
	padding: 6px 14px;
	font-size: 12px;
	text-transform: none;
}

/* --- League table ----------------------------------------------------- */

/* The theme lays this column out with 100%-wide left floats (.tg-section-name,
   .tg-section-heading). Bootstrap's .table-responsive sets overflow-x, which
   makes the wrapper a block formatting context — and a BFC refuses to overlap a
   float, so it was squeezed to zero width against the heading above it and
   clipped the whole table away. Joining the float flow is the theme's own idiom
   and puts it back at full width. */
.tg-tablewrapper {
	width: 100%;
	float: left;
	margin-bottom: 30px;
}

.tg-tablekey {
	width: 100%;
	float: left;
	clear: both;
}

.tg-leaguetable {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.tg-leaguetable th,
.tg-leaguetable td {
	padding: 12px 8px;
	border-bottom: 1px solid var(--kfc-border);
	text-align: center;
	white-space: nowrap;
}

/* Only the head row is chrome — the team cell is a row header, not a heading. */
.tg-leaguetable thead th {
	background: var(--kfc-dark);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tg-leaguetable thead th abbr {
	border: 0;
	text-decoration: none;
	cursor: help;
}

.tg-leaguetable tbody th {
	font-weight: 400;
}

.tg-leaguetable .tg-teamcol {
	text-align: left;
	min-width: 190px;
}

.tg-leaguetable .tg-teamcol img {
	width: 24px;
	height: 24px;
	margin-right: 10px;
	object-fit: contain;
	vertical-align: middle;
}

.tg-leaguetable tr.tg-ownclub {
	background: rgba(39, 57, 145, 0.07);
	font-weight: 700;
}

.tg-form {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 3px;
	border-radius: 50%;
	color: #fff;
	font-size: 10px;
	line-height: 20px;
	text-align: center;
}

.tg-form-w { background: var(--kfc-success); }
.tg-form-d { background: var(--kfc-muted); }
.tg-form-l { background: var(--kfc-danger); }

.tg-pointtable.tg-ownclub { border-color: var(--kfc-accent); }

/* Qualification and relegation bands: a colour strip against the position, and
   a key underneath, because a bare colour tells a first-time reader nothing. */

.tg-leaguetable .tg-poscol {
	position: relative;
	padding-left: 16px;
}

.tg-zone {
	display: inline-block;
	width: 4px;
	height: 18px;
	margin-right: 6px;
	border-radius: 2px;
	background: transparent;
	vertical-align: middle;
}

.tg-zone-champion { background: var(--kfc-accent); }
.tg-zone-continental { background: var(--kfc-success); }
.tg-zone-relegation { background: var(--kfc-danger); }

.tg-tablekey {
	margin-bottom: 40px;
	font-size: 12px;
	color: var(--kfc-muted);
}

.tg-zonekey {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.tg-zonekey li {
	display: inline-block;
	margin: 0 18px 6px 0;
	list-style: none;
}

.tg-zonekey .tg-zone { height: 12px; }

.tg-deduction {
	color: var(--kfc-danger);
	font-weight: 700;
	cursor: help;
}

.tg-deductionnote,
.tg-tablestamp {
	margin: 0 0 4px;
	font-size: 12px;
	line-height: 20px;
}

.tg-tablestamp { font-style: italic; }

/* --- Ticket list --------------------------------------------------------
   The price tiers hang off the bottom of the match row rather than floating
   loose under it, so a fixture reads as one block: the match, then what it
   costs to get in. */

.tg-ticketmatch {
	width: 100%;
	float: left;
	margin: 0 0 20px;
}

.tg-ticketprices {
	width: 100%;
	float: left;
	margin: 0;
	padding: 14px 20px;
	list-style: none;
	background: var(--kfc-panel);
	border-top: 2px solid var(--kfc-accent);
}

.tg-ticketprices li {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 30px 0 0;
	padding: 4px 0;
	list-style: none;
	font-size: 13px;
	line-height: 20px;
}

.tg-ticketprices .tg-tiername {
	font-family: var(--kfc-display);
	font-size: 14px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--kfc-dark);
}

.tg-ticketprices .tg-tierprice {
	font-weight: 700;
	color: var(--kfc-crest);
}

.tg-ticketprices .tg-tierstock {
	font-size: 12px;
	color: var(--kfc-muted);
}

.tg-ticketprices li.is-soldout .tg-tiername,
.tg-ticketprices li.is-soldout .tg-tierprice {
	color: var(--kfc-muted);
	text-decoration: line-through;
}

.tg-ticketprices li.is-soldout .tg-tierstock {
	color: var(--kfc-danger);
	text-decoration: none;
}

@media (max-width: 575px) {
	.tg-ticketprices li {
		width: 100%;
		margin: 0;
		justify-content: space-between;
	}
}

/* --- Squad ------------------------------------------------------------ */

.tg-squadnumber {
	position: absolute;
	left: 0;
	bottom: 10px;
	padding: 2px 10px;
	background: var(--kfc-accent);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

.tg-positionfilter {
	margin-bottom: 30px;
	padding: 0;
	list-style: none;
	text-align: center;
}

.tg-positionfilter li { display: inline-block; margin: 0 4px 8px; }

.tg-positionfilter a {
	display: block;
	padding: 8px 18px;
	border: 1px solid var(--kfc-border);
	color: var(--kfc-dark);
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tg-positionfilter li.active a,
.tg-positionfilter a:hover {
	border-color: var(--kfc-accent);
	background: var(--kfc-accent);
	color: #fff;
}

/* --- Match timeline --------------------------------------------------- */

.tg-timeline { margin: 0 0 30px; padding: 0; list-style: none; }

.tg-timeline li {
	display: flex;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--kfc-border);
	font-size: 14px;
}

.tg-timeline .tg-minute {
	flex: 0 0 54px;
	color: var(--kfc-accent);
	font-weight: 700;
}

.tg-timeline .tg-eventicon { flex: 0 0 30px; color: var(--kfc-muted); }
.tg-timeline.tg-away li { flex-direction: row-reverse; text-align: right; }

/* --- Cart, checkout, account ------------------------------------------ */

.tg-carttable {
	width: 100%;
	margin-bottom: 30px;
	border-collapse: collapse;
}

.tg-carttable th,
.tg-carttable td {
	padding: 16px 12px;
	border-bottom: 1px solid var(--kfc-border);
	vertical-align: middle;
}

.tg-carttable th {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tg-carttable img {
	width: 70px;
	height: 70px;
	margin-right: 14px;
	padding: 4px;
	border: 1px solid var(--kfc-border);
	background: #fff;
	/* Shop art is a cut-out, so it must sit inside the box, not be cropped. */
	object-fit: contain;
	float: left;
}

/* main.css centres every table cell; the product column reads as a label and
   wants to be left-aligned under its thumbnail. */
.tg-carttable th:first-child,
.tg-carttable td:first-child {
	text-align: left;
}

.tg-carttable td > div {
	overflow: hidden;
}

.tg-carttable td strong {
	display: block;
	font-family: var(--kfc-display);
	font-size: 15px;
	line-height: 1.35;
	color: var(--kfc-ink);
}

.tg-carttable td small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--kfc-muted);
}

.tg-qty-wrap { display: inline-flex; align-items: center; }

.tg-qty-step {
	width: 30px;
	height: 34px;
	border: 1px solid var(--kfc-border);
	background: #fff;
	line-height: 1;
}

/* The theme styles every input[type=number] at 50px tall with 15px/20px of
   padding. Overriding the height without the padding left a 52x34 box whose
   content area was 12x4 — the quantity was rendering, just squeezed out of
   sight. The native spinners go too; the plus and minus buttons are the
   control here. */
.tg-qty-input {
	width: 52px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--kfc-border);
	border-left: 0;
	border-right: 0;
	font-size: 14px;
	line-height: 32px;
	text-align: center;
	color: var(--kfc-ink);
	appearance: textfield;
	-moz-appearance: textfield;
}

.tg-qty-input::-webkit-outer-spin-button,
.tg-qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.tg-totals {
	padding: 24px;
	border: 1px solid var(--kfc-border);
	background: #fafbfc;
}

.tg-totals dl { margin: 0; }
.tg-totals dt { float: left; clear: left; font-weight: 400; }
.tg-totals dd { text-align: right; }

.tg-totals .tg-grand {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--kfc-border);
	font-size: 18px;
	font-weight: 700;
}

.tg-paymethod {
	display: block;
	margin-bottom: 10px;
	padding: 16px;
	border: 1px solid var(--kfc-border);
	cursor: pointer;
}

.tg-paymethod input { margin-right: 10px; }
.tg-paymethod:hover { border-color: var(--kfc-accent); }

.tg-ticketrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	border-bottom: 1px solid var(--kfc-border);
	gap: 16px;
}

.tg-ticketrow .tg-ticketmeta { flex: 1; }
.tg-ticketrow .tg-ticketprice { font-weight: 700; white-space: nowrap; }

.tg-ticketstub {
	padding: 30px;
	border: 2px dashed var(--kfc-border);
	text-align: center;
}

.tg-ticketstub img { max-width: 240px; margin: 0 auto 20px; }

.tg-ticketcode {
	display: inline-block;
	padding: 8px 16px;
	background: var(--kfc-dark);
	color: #fff;
	font-family: "Courier New", monospace;
	font-size: 20px;
	letter-spacing: 0.12em;
}

.tg-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 10px;
	color: #fff;
	font-size: 11px;
	text-transform: uppercase;
}

.tg-status-success { background: var(--kfc-success); }
.tg-status-warning { background: var(--kfc-warning); }
.tg-status-danger { background: var(--kfc-danger); }
.tg-status-gray { background: var(--kfc-muted); }

/* --- Verification screen ---------------------------------------------- */

.tg-verify {
	max-width: 520px;
	margin: 60px auto;
	padding: 40px;
	border: 1px solid var(--kfc-border);
	text-align: center;
}

.tg-verify .tg-verifyicon { font-size: 64px; margin-bottom: 20px; }
.tg-verify.tg-valid .tg-verifyicon { color: var(--kfc-success); }
.tg-verify.tg-invalid .tg-verifyicon { color: var(--kfc-danger); }
.tg-verify.tg-used .tg-verifyicon { color: var(--kfc-warning); }

/* --- Sponsors --------------------------------------------------------- */

.tg-sponsorlist {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 30px;
}

.tg-sponsorlist img {
	max-height: 60px;
	filter: grayscale(100%);
	opacity: 0.65;
	transition: all 0.3s ease;
}

.tg-sponsorlist a:hover img {
	filter: none;
	opacity: 1;
}

/* --- Small screens ---------------------------------------------------- */

@media (max-width: 767px) {
	.tg-carttable img { float: none; margin: 0 0 10px; }
	.tg-leaguetable { font-size: 12px; }
	.tg-leaguetable th, .tg-leaguetable td { padding: 9px 5px; }

	/* Eleven columns will not fit a phone. The ones a reader can live without
	   drop out rather than leaving the table to scroll sideways, and the club
	   name is allowed to trim so it can never run into the next column. */
	.tg-leaguetable .tg-hidesmall { display: none; }
	.tg-leaguetable .tg-poscol { padding-left: 10px; }
	.tg-leaguetable .tg-teamcol { min-width: 0; max-width: 130px; }
	.tg-leaguetable .tg-teamcol img { width: 20px; height: 20px; margin-right: 6px; }

	.tg-leaguetable .tg-teamcol span {
		display: inline-block;
		max-width: 96px;
		overflow: hidden;
		text-overflow: ellipsis;
		vertical-align: middle;
	}
	.tg-ticketrow { flex-wrap: wrap; }
	.tg-verify { margin: 30px 15px; padding: 25px; }
}

@media (max-width: 479px) {
	.tg-leaguetable th, .tg-leaguetable td { padding: 9px 4px; }
	.tg-leaguetable .tg-teamcol span { max-width: 74px; }
}
