/*
 * Banners (Site/Banners.cs), ported from footballleaguenews.gr's banners.css: the custom format, sponsor strips, HTML and
 * image banners, and the two positions (.bn-top above the matches on desktop, .bn-sticky at the bottom on phones and
 * tablets). Loaded by pages that show a banner and by /admin/ (previews). Colours come per banner as --bn-* / --sp-*.
 */
/* Custom format: logo, text, button; the 21+ bar hangs under the box. .fl-bn-c is the container the narrow layout queries. */
.fl-bn-c { container-type: inline-size; padding-bottom: 22px; text-align: left; }
.fl-bn {
	position: relative; display: block; padding: 34px 20px; border-radius: 8px 8px 0 0;
	background: var(--bn-bg); color: var(--bn-text); text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-family: Manrope, "Segoe UI", Arial, sans-serif;
}
.fl-bn__body { display: grid; grid-template-columns: 100px 1fr 140px; align-items: center; column-gap: 12px; }
.fl-bn__logo { display: block; width: 100px; height: 50px; margin: 0; object-fit: contain; border-radius: 0 !important; }
.fl-bn__text { padding: 0 10px; color: var(--bn-text); font: 700 15px/1.35 Manrope, "Segoe UI", Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.fl-bn__btn {
	display: block; padding: 11px 10px; border-radius: 8px; background: var(--bn-btn-bg); color: var(--bn-btn-text);
	font: 800 14px/20px Manrope, "Segoe UI", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-align: center;
	transition: background .15s, color .15s;
}
.fl-bn:hover .fl-bn__btn { background: var(--bn-btn-hover-bg); color: var(--bn-btn-hover-text); }
.fl-bn small { position: absolute; line-height: normal; }
.fl-bn__terms { right: 22px; bottom: 8px; font: 600 8px Verdana, sans-serif; color: var(--bn-terms); }
.fl-bn__note {
	left: 0; right: 0; bottom: -20px; padding: 5px 0; border-radius: 0 0 8px 8px;
	display: flex; align-items: center; justify-content: center; gap: 5px;
	background: var(--bn-disclaimer-bg); color: var(--bn-disclaimer-text); font: 9px Verdana, sans-serif; text-align: center;
}
/* The ΕΕΕΠ symbol, in the colour of the text around it. */
.fl-eeep-sym {
	display: inline-block; flex: none; width: 1.6em; height: 1.6em; background: currentColor;
	-webkit-mask: url(/eeep-mark.png) center / contain no-repeat; mask: url(/eeep-mark.png) center / contain no-repeat;
}

/* Narrow (sidebar, phones): logo and button on one row, the text under them. */
@container (max-width: 420px) {
	.fl-bn { padding: 14px 15px 26px; }
	.fl-bn__body { grid-template-columns: auto 1fr; grid-template-areas: "logo btn" "text text"; row-gap: 10px; }
	.fl-bn__logo { grid-area: logo; }
	.fl-bn__btn { grid-area: btn; justify-self: end; padding: 10px 14px; }
	.fl-bn__text { grid-area: text; padding: 0; font-size: 14px; }
	.fl-bn__terms { left: 0; right: 0; bottom: 8px; text-align: center; }
}

/* HTML banners: as pasted, shrunk to fit. */
.fl-bn-html { text-align: center; overflow: hidden; }
.fl-bn-html img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.fl-bn-html iframe { max-width: 100%; vertical-align: top; } /* no line-box gap under the frame */

/* Image banners: centred, shrunk to fit (an animated gif plays as is). */
.fl-bn-img { display: block; text-align: center; line-height: 0; }
.fl-bn-img img { display: inline-block; max-width: 100%; height: auto; }

.fl-sp {
	display: block; position: relative; overflow: hidden; border-radius: 6px;
	background: radial-gradient(120% 60% at 100% 0, rgba(120, 140, 230, .35), transparent 55%), var(--sp-bg);
	color: var(--sp-text); font-family: Manrope, "Segoe UI", Arial, sans-serif; text-align: left; text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
.fl-sp:hover { color: var(--sp-text); }
.fl-sp__logo { display: block; max-width: 100%; height: auto; margin: 0; border-radius: 0 !important; }
.fl-sp__logo--text { font: 800 22px/1.1 Manrope, "Segoe UI", Arial, sans-serif; text-transform: uppercase; }
.fl-sp__btn {
	display: block; padding: 13px 18px; border-radius: 4px; background: var(--sp-btn-bg); color: var(--sp-btn-text);
	font: 800 15px/1.2 Manrope, "Segoe UI", Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; text-align: center;
	transition: filter .15s;
}
.fl-sp:hover .fl-sp__btn { filter: brightness(1.35); }
.fl-sp__headline:empty, .fl-sp__text:empty, .fl-sp__note:empty, .fl-sp__name:empty { display: none; }

/* Strip: logo, «SPONSORED BY» + title, button; in a list, an article, the site's other positions. */
.fl-sp--strip { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 22px; padding: 18px 22px; }
.fl-sp--strip .fl-sp__logo { max-height: 56px; object-fit: contain; }
.fl-sp__copy { min-width: 0; }
.fl-sp__by { display: block; margin-bottom: 4px; font: 500 11px/1.3 Manrope, "Segoe UI", Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.fl-sp--strip .fl-sp__headline { display: block; font: 800 15px/1.55 Manrope, "Segoe UI", Arial, sans-serif; text-transform: uppercase; }
.fl-sp--strip .fl-sp__btn { padding: 13px 22px; white-space: nowrap; }
@container (max-width: 520px) {
	.fl-sp--strip { grid-template-columns: 80px 1fr; gap: 12px 16px; padding: 16px; }
	.fl-sp--strip .fl-sp__btn { grid-column: 1 / -1; }
}

.fl-sp-c { container-type:inline-size; }

/* Desktop: above the matches, as wide as the column (970px at most). Hidden on phones and tablets. */
.bn-top { margin:6px 0 12px; }
.bn-top .fl-bn-c, .bn-top .fl-bn-html, .bn-top .fl-bn-img, .bn-top .fl-sp-c { max-width:970px; margin:0 auto; }
.bn-top .fl-bn-c { padding-bottom:22px; }
@media (max-width:1023px) { .bn-top { display:none; } }

/* Phones and tablets: a bar fixed at the bottom; × hides it (app.js). .bn-bar is its look, also in the admin preview. */
.bn-sticky { display:none; }
@media (max-width:1023px) {
  .bn-sticky.bn-bar { display:block; position:fixed; left:0; right:0; bottom:0; z-index:14; }
  body:has(.bn-sticky) #totop { bottom:calc(16px + var(--bn-h, 0px) + env(safe-area-inset-bottom)); }
}
.bn-bar { position:relative; background:#fff; box-shadow:0 -2px 12px rgba(0, 0, 0, .25); padding-bottom:env(safe-area-inset-bottom); }
.bn-bar.fl-bn-sticky--html, .bn-bar.fl-bn-sticky--image { padding-top:5px; padding-bottom:calc(5px + env(safe-area-inset-bottom)); }
.bn-bar .fl-bn { border-radius:0; padding:8px 12px 16px; box-shadow:none; }
.bn-bar .fl-bn__body { grid-template-columns:64px 1fr auto; grid-template-areas:none; column-gap:10px; row-gap:0; }
.bn-bar .fl-bn__logo { grid-area:auto; width:64px; height:32px; }
.bn-bar .fl-bn__text { grid-area:auto; padding:0; font-size:12px; line-height:15px; letter-spacing:.03em; text-align:left; }
.bn-bar .fl-bn__btn { grid-area:auto; padding:8px 12px; font-size:13px; }
.bn-bar .fl-bn__terms { left:auto; right:12px; bottom:2px; }
.bn-bar .fl-bn__note { border-radius:0; }
.bn-bar .fl-sp { border-radius:0; box-shadow:none; }
.bn-bar .fl-sp--strip { grid-template-columns:72px 1fr auto; gap:10px; padding:8px 12px; }
.bn-bar .fl-sp--strip .fl-sp__logo { max-height:36px; }
.bn-bar .fl-sp--strip .fl-sp__headline { font-size:12px; line-height:1.3; }
.bn-bar .fl-sp--strip .fl-sp__btn { grid-column:auto; padding:8px 12px; font-size:13px; }
.bn-sticky__close {
  position:absolute; right:8px; top:-30px; width:28px; height:28px; padding:0; border:0; border-radius:50%;
  background:#0a192f; color:#fff; font-size:20px; line-height:28px; text-align:center;
  box-shadow:0 1px 6px rgba(0, 0, 0, .3); cursor:pointer;
}
/* Without a logo image the name stands in, sized to the logo column. */
.fl-sp--strip .fl-sp__logo--text { font-size:15px; line-height:1.15; overflow-wrap:anywhere; }
.bn-bar .fl-sp--strip .fl-sp__logo--text { font-size:12px; }
