/* Lions12 Platform – shared design language for News, Atlas Lions, Botola Pro and Matches.
   Colours match the Lions12 theme; every selector is prefixed .l12p so nothing else is restyled. */
.l12p {
	--l12p-bg: var(--l12-bg, #121417);
	--l12p-card: var(--l12-card, #1b1e22);
	--l12p-fg: var(--l12-fg, #f6f6f6);
	--l12p-muted: var(--l12-muted, #aeb3ba);
	--l12p-red: var(--l12-red, #ef2b2d);
	--l12p-green: var(--l12-green, #1f9e5a);
	--l12p-border: var(--l12-border, #363b42);
	--l12p-radius: 10px;
	--l12p-gap: clamp(12px, 2vw, 20px);
	color: var(--l12p-fg);
	display: grid;
	gap: clamp(28px, 4vw, 44px);
	margin: clamp(28px, 4vw, 44px) 0;
	font-family: inherit;
}
.l12p *, .l12p *::before, .l12p *::after { box-sizing: border-box; }
.l12p a { color: inherit; }
.l12p a:focus-visible { outline: 2px solid var(--l12p-red); outline-offset: 2px; }

/* Section heading – same rhythm as News Hub / Atlas Lions headings: red rule, title, see-all. */
.l12p-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--l12p-border); position: relative; }
.l12p-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--l12p-red); }
.l12p-title { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.l12p-explore .l12p-title { margin-bottom: 14px; }
.l12p-desc { margin: 4px 0 0; color: var(--l12p-muted); font-size: .9rem; }

/* Buttons */
.l12p-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--l12p-border); border-radius: 999px; font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.l12p-btn:hover { border-color: var(--l12p-red); background: rgba(239, 43, 45, .08); }

/* Labels */
.l12p-kicker { display: inline-block; color: var(--l12p-red); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.l12p-date { display: block; color: var(--l12p-muted); font-size: .78rem; }
.l12p-empty { color: var(--l12p-muted); margin: 0 0 12px; }

/* Article cards */
.l12p-grid { display: grid; gap: var(--l12p-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.l12p-card { display: flex; flex-direction: column; background: var(--l12p-card); border: 1px solid var(--l12p-border); border-radius: var(--l12p-radius); overflow: hidden; min-width: 0; }
.l12p-card__media { display: block; aspect-ratio: 16 / 9; background: #0d0f11; }
.l12p-card__img, .l12p-card__ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.l12p-card__ph { background: linear-gradient(135deg, #1b1e22, #2a1416); }
.l12p-card__body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.l12p-card__title { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.l12p-card__title a { text-decoration: none; }
.l12p-card__title a:hover { color: var(--l12p-red); }

/* Match lists reuse the Matches centre card; only the list spacing lives here. */
.l12p-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.l12p-matches__item { display: grid; gap: 0; min-width: 0; }
.l12p-matches__item .l12m-card { margin: 0; }
.l12p-report { display: block; margin-top: -1px; padding: 8px 12px; border: 1px solid var(--l12p-border); border-top: 0; border-radius: 0 0 var(--l12p-radius) var(--l12p-radius); background: var(--l12p-card); font-size: .82rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l12p-report:hover { color: var(--l12p-red); }
.l12p-report__label { color: var(--l12p-green); font-weight: 800; text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }

/* Team cards */
.l12p-teams { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.l12p-team { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; background: var(--l12p-card); border: 1px solid var(--l12p-border); border-radius: var(--l12p-radius); text-decoration: none; }
.l12p-team:hover { border-color: var(--l12p-green); }
.l12p-team img, .l12p-teams__ph { width: 32px; height: 32px; object-fit: contain; flex: none; }
.l12p-teams__ph { border-radius: 50%; background: var(--l12p-border); }
.l12p-team span { display: grid; min-width: 0; }
.l12p-team b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l12p-team small { color: var(--l12p-muted); font-size: .75rem; }

/* Explore Lions12 – links between the four sections */
.l12p-hubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .l12p-hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .l12p-hubs { grid-template-columns: 1fr; } }
.l12p-hub { display: grid; gap: 4px; height: 100%; padding: 14px 16px; background: var(--l12p-card); border: 1px solid var(--l12p-border); border-left: 3px solid var(--l12p-green); border-radius: var(--l12p-radius); text-decoration: none; }
.l12p-hub:hover { border-left-color: var(--l12p-red); }
.l12p-hub.is-current { border-left-color: var(--l12p-red); background: rgba(239, 43, 45, .06); }
.l12p-hub b { font-size: 1rem; }
.l12p-hub small { color: var(--l12p-muted); font-size: .8rem; line-height: 1.35; }

@media (max-width: 599px) {
	.l12p-head { align-items: flex-start; }
	.l12p-grid { grid-template-columns: 1fr; gap: 10px; }
	.l12p-card { flex-direction: row; }
	.l12p-card__media { flex: 0 0 112px; aspect-ratio: auto; min-height: 84px; }
	.l12p-card__body { padding: 10px 12px; }
	.l12p-card__title { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .l12p * { transition: none !important; } }

/* Guards: page builders and other plugins (e.g. Botola Pro Center) style generic h2/a inside the
   content area. These keep the shared look identical on all four pages. */
body .l12p a, body .l12p a:visited { color: inherit; text-decoration: none; }
body .l12p h2.l12p-title { color: var(--l12p-fg); font-family: inherit; text-transform: none; border: 0; padding: 0; background: none; }
body .l12p h3.l12p-card__title { color: var(--l12p-fg); font-family: inherit; text-transform: none; border: 0; padding: 0; background: none; }
body .l12p .l12p-card__title a:hover, body .l12p .l12p-report:hover { color: var(--l12p-red); }
body .l12p .l12p-head { border-bottom: 1px solid var(--l12p-border); }
