/* ==========================================================================
   Flashbulb – Joomla 6 Celebrity & Gossip Template
   Tabloid energy (ticker, condensed headlines) + glam pink + clean card grid
   ========================================================================== */

:root {
	--fb-pink: #ff1f7a;
	--fb-red: #e8000d;
	--fb-flash: #ffe600;
	--fb-black: #000;
	--fb-white: #fff;

	--fb-bg: #fff;
	--fb-surface: #fff;
	--fb-blush: #fff0f6;
	--fb-text: #0a0a0a;
	--fb-muted: #5d5a60;
	--fb-line: #ebe5e8;
	--fb-mark: var(--fb-flash);
	--fb-mark-text: #000;

	--fb-display: "Anton", "Oswald", Impact, "Arial Narrow Bold", "Helvetica Neue Condensed", sans-serif;
	--fb-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fb-wrap: 1320px;
	--fb-gap: clamp(16px, 2.4vw, 28px);
	--fb-radius: 16px;
	--fb-radius-sm: 10px;
	--fb-nav-h: 52px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--fb-bg: #000;
	--fb-surface: #141416;
	--fb-blush: #1d0b14;
	--fb-text: #f7f3f5;
	--fb-muted: #a7a2a9;
	--fb-line: #2b292d;
	--fb-mark: var(--fb-pink);
	--fb-mark-text: #fff;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--fb-nav-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--fb-bg);
	color: var(--fb-text);
	font-family: var(--fb-body);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--fb-pink); }

:focus-visible { outline: 3px solid var(--fb-pink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--fb-display);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: .005em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.fb-wrap {
	max-width: var(--fb-wrap);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

.fb-skip {
	position: absolute;
	left: -9999px;
	top: 12px;
	z-index: 1000;
	background: var(--fb-flash);
	color: #000;
	font-weight: 800;
	padding: 10px 16px;
	border-radius: 999px;
}
.fb-skip:focus { left: 12px; }

.visually-hidden, .sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Breaking ticker ---------- */
.fb-ticker {
	display: flex;
	align-items: stretch;
	background: var(--fb-red);
	color: #fff;
	font-weight: 600;
	font-size: .9375rem;
	overflow: hidden;
}

.fb-ticker__label {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px;
	background: #000;
	color: var(--fb-flash);
	font-family: var(--fb-display);
	font-size: 1.05rem;
	letter-spacing: .03em;
}
.fb-ticker__label::before {
	content: "";
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--fb-red);
	box-shadow: 0 0 0 0 rgba(232, 0, 13, .7);
	animation: fb-pulse 1.4s infinite;
}

.fb-ticker__viewport {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.fb-ticker__viewport::-webkit-scrollbar { display: none; }

.fb-ticker__track { display: flex; width: max-content; }
.fb-ticker__track.is-running { animation: fb-marquee 40s linear infinite; }
.fb-ticker:hover .fb-ticker__track,
.fb-ticker:focus-within .fb-ticker__track { animation-play-state: paused; }
.fb-ticker.is-running .fb-ticker__viewport { overflow: hidden; }

.fb-ticker__item {
	position: relative;
	display: flex;
	align-items: center;
	padding: 9px 30px;
	white-space: nowrap;
}
.fb-ticker__item + .fb-ticker__item::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 7px; height: 7px;
	background: var(--fb-flash);
	transform: translate(-50%, -50%) rotate(45deg);
}
.fb-ticker__item a { color: #fff; text-decoration: none; }
.fb-ticker__item a:hover { text-decoration: underline; color: #fff; }
.fb-ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }

@keyframes fb-marquee { to { transform: translateX(-50%); } }
@keyframes fb-pulse {
	70% { box-shadow: 0 0 0 8px rgba(232, 0, 13, 0); }
	100% { box-shadow: 0 0 0 0 rgba(232, 0, 13, 0); }
}

/* ---------- Topbar ---------- */
.fb-topbar {
	border-bottom: 1px solid var(--fb-line);
	font-size: .8125rem;
	color: var(--fb-muted);
	padding-block: 6px;
}
.fb-topbar ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.fb-topbar a { text-decoration: none; }

/* ---------- Header ---------- */
.fb-header { background: var(--fb-bg); }

.fb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: clamp(14px, 2.6vw, 28px);
}

.fb-brand {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	color: var(--fb-text);
	text-decoration: none;
	min-width: 0;
}
.fb-brand:hover { color: var(--fb-text); }

.fb-brand__logo { max-height: clamp(44px, 7vw, 84px); width: auto; }

.fb-brand__name {
	position: relative;
	display: inline-block;
	font-family: var(--fb-display);
	font-size: clamp(2.6rem, 8vw, 5.6rem);
	line-height: .82;
	letter-spacing: -.012em;
	text-transform: uppercase;
	padding-right: .42em;
}

/* the camera-flash spark next to the wordmark */
.fb-brand__spark {
	position: absolute;
	right: 0; top: -.06em;
	width: .34em; height: .34em;
	background: var(--fb-pink);
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.fb-brand__tagline {
	font-size: .875rem;
	font-weight: 600;
	color: var(--fb-muted);
}

.fb-header__tools { display: flex; align-items: center; gap: 10px; }

.fb-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 2px solid var(--fb-text);
	border-radius: 50%;
	background: transparent;
	color: var(--fb-text);
	cursor: pointer;
	transition: background .15s, color .15s;
}
.fb-iconbtn:hover { background: var(--fb-text); color: var(--fb-bg); }
.fb-i-sun { display: none; }
:root[data-theme="dark"] .fb-i-sun { display: block; }
:root[data-theme="dark"] .fb-i-moon { display: none; }

/* search module (mod_finder) */
.fb-search form { display: flex; }
.fb-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fb-search input[type="search"], .fb-search input[type="text"] {
	width: clamp(140px, 22vw, 260px);
	height: 44px;
	padding: 0 18px;
	border: 2px solid var(--fb-text);
	border-radius: 999px;
	background: var(--fb-bg);
	color: var(--fb-text);
	font: inherit;
	font-size: .9375rem;
}
.fb-search button { display: none; }
.fb-search .awesomplete > ul { color: var(--fb-text); background: var(--fb-surface); }

/* ---------- Main navigation ---------- */
.fb-nav {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #000;
	color: #fff;
	transition: box-shadow .2s;
}
.fb-nav.is-stuck { box-shadow: 0 6px 0 var(--fb-pink); }

.fb-nav ul.mod-menu, .fb-nav > .fb-wrap > ul {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.fb-nav ul::-webkit-scrollbar { display: none; }
.fb-nav li { flex: none; }
.fb-nav li ul { display: none; }

.fb-nav li > a, .fb-nav li > span {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--fb-nav-h);
	padding: 0 15px;
	color: #fff;
	font-weight: 700;
	font-size: .975rem;
	text-decoration: none;
	white-space: nowrap;
}
.fb-nav li > a::after {
	content: "";
	position: absolute;
	left: 15px; right: 15px; bottom: 10px;
	height: 3px;
	background: var(--fb-pink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}
.fb-nav li > a:hover { color: #fff; }
.fb-nav li > a:hover::after,
.fb-nav li.active > a::after,
.fb-nav li.current > a::after { transform: scaleX(1); }
.fb-nav li.current > a, .fb-nav li.active > a { color: var(--fb-flash); }

/* Menu item with Link Class "fb-hot" becomes a pink pill (e.g. "Exklusiv") */
.fb-nav li > a.fb-hot {
	margin-block: 10px;
	height: calc(var(--fb-nav-h) - 20px);
	border-radius: 999px;
	background: var(--fb-pink);
	color: #fff;
}
.fb-nav li > a.fb-hot::after { display: none; }

/* ---------- Layout ---------- */
.fb-main { padding-block: clamp(24px, 4vw, 52px); }

.fb-breadcrumbs { margin-bottom: 20px; font-size: .875rem; color: var(--fb-muted); }
.fb-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fb-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--fb-pink); }
.fb-breadcrumbs a { text-decoration: none; }

.fb-hero { margin-bottom: clamp(28px, 5vw, 56px); }

.fb-layout { display: grid; gap: clamp(28px, 4vw, 56px); }
.fb-layout--sidebar { grid-template-columns: minmax(0, 1fr) 330px; }
.fb-content { min-width: 0; }

@media (min-width: 1001px) {
	.fb-sidebar { position: sticky; top: calc(var(--fb-nav-h) + 24px); align-self: start; }
}
@media (max-width: 1000px) {
	.fb-layout--sidebar { grid-template-columns: 1fr; }
}

/* ---------- Module chrome ---------- */
.fb-module { margin-bottom: clamp(32px, 4vw, 48px); }

.fb-module__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	font-family: var(--fb-display);
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	line-height: 1;
	text-transform: uppercase;
}
.fb-module__title::after {
	content: "";
	flex: 1;
	height: 5px;
	background: var(--fb-text);
}
.fb-module__title > span { position: relative; }
.fb-module__title > span::before {
	content: "";
	display: inline-block;
	width: .5em; height: .5em;
	margin-right: .3em;
	vertical-align: .1em;
	background: var(--fb-pink);
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- Story cards ---------- */
.fb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.fb-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--fb-radius);
	background: var(--fb-blush);
}
.fb-card__media img { width: 100%; height: 100%; object-fit: cover; }

.fb-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 75% 20%, rgba(255, 230, 0, .55), transparent 40%),
		linear-gradient(150deg, var(--fb-pink), #6b00ff);
	color: #fff;
	font-family: var(--fb-display);
	font-size: clamp(3rem, 8vw, 6rem);
}

.fb-card__badge {
	position: absolute;
	top: 12px; left: 12px;
	z-index: 2;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--fb-flash);
	color: #000;
	font-weight: 800;
	font-size: .8125rem;
	box-shadow: 3px 3px 0 #000;
	transform: rotate(-4deg);
}

.fb-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.fb-card__cat {
	align-self: flex-start;
	color: var(--fb-pink);
	font-weight: 800;
	font-size: .875rem;
	text-decoration: none;
}
.fb-card__cat:hover { text-decoration: underline; }

.fb-card__title {
	margin: 0;
	font-family: var(--fb-display);
	font-size: clamp(1.35rem, 2vw, 1.65rem);
	line-height: 1.06;
}
/* Signature: the highlighter stroke */
.fb-card__title a {
	color: var(--fb-text);
	text-decoration: none;
	background-image: linear-gradient(var(--fb-mark), var(--fb-mark));
	background-repeat: no-repeat;
	background-position: 0 92%;
	background-size: 0 42%;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size .28s ease;
}
.fb-card__title a:hover, .fb-card__title a:focus-visible { background-size: 100% 42%; color: var(--fb-text); }

.fb-card__excerpt { margin: 2px 0 0; color: var(--fb-muted); font-size: .9688rem; line-height: 1.5; }
.fb-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 0; color: var(--fb-muted); font-size: .8125rem; }
.fb-card__cat, .fb-card__edit { position: relative; z-index: 2; }
.fb-card--unpublished { opacity: .6; }

/* ---------- Blog / featured grids ---------- */
.blog-items { margin-bottom: clamp(32px, 5vw, 56px); }
.blog-items:not(.items-leading) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: clamp(28px, 3.4vw, 44px) var(--fb-gap);
}
.blog-item { min-width: 0; }

/* Hero: the leading items become a front-page mosaic */
.items-leading {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: var(--fb-gap);
	align-items: start;
}
.items-leading > .blog-item:only-child { grid-column: 1 / -1; }
.items-leading > .blog-item:first-child { grid-row: span 3; }

.items-leading > .blog-item:first-child .fb-card {
	display: grid;
	height: 100%;
	min-height: clamp(440px, 52vw, 680px);
	gap: 0;
	overflow: hidden;
	border-radius: calc(var(--fb-radius) + 6px);
	background: #000;
}
.items-leading > .blog-item:first-child .fb-card > .fb-card__media,
.items-leading > .blog-item:first-child .fb-card > .fb-card__body { grid-area: 1 / 1; }
.items-leading > .blog-item:first-child .fb-card__media {
	aspect-ratio: auto;
	height: 100%;
	border-radius: 0;
}
.items-leading > .blog-item:first-child .fb-card__body {
	position: relative;
	z-index: 1;
	align-self: end;
	gap: 10px;
	padding: clamp(80px, 12vw, 160px) clamp(22px, 3.4vw, 42px) clamp(22px, 3.4vw, 42px);
	background: linear-gradient(transparent, rgba(0, 0, 0, .6) 38%, rgba(0, 0, 0, .92));
	color: #fff;
	pointer-events: none;
}
.items-leading > .blog-item:first-child .fb-card__body a { pointer-events: auto; }
.items-leading > .blog-item:first-child .fb-card__cat {
	background: var(--fb-pink);
	color: #fff;
	padding: 4px 12px;
	border-radius: 999px;
}
.items-leading > .blog-item:first-child .fb-card__title {
	font-size: clamp(2rem, 3.6vw, 3.6rem);
	line-height: 1.08;
	max-width: 20ch;
}
/* the lead headline wears the marker permanently */
.items-leading > .blog-item:first-child .fb-card__title a {
	background: var(--fb-flash);
	color: #000;
	padding: 0 .14em;
	transition: none;
}
.items-leading > .blog-item:first-child .fb-card__title a:hover { background: #fff; }
.items-leading > .blog-item:first-child .fb-card__excerpt,
.items-leading > .blog-item:first-child .fb-card__meta { color: rgba(255, 255, 255, .82); max-width: 60ch; }
.items-leading > .blog-item:first-child .fb-card__badge { top: 20px; left: 20px; font-size: .9375rem; }

/* secondary leading items: compact rows */
.items-leading > .blog-item:not(:first-child) .fb-card {
	display: grid;
	grid-template-columns: clamp(96px, 34%, 150px) 1fr;
	gap: 16px;
	align-items: start;
	padding-bottom: var(--fb-gap);
	border-bottom: 1px solid var(--fb-line);
}
.items-leading > .blog-item:last-child .fb-card { border-bottom: 0; padding-bottom: 0; }
.items-leading > .blog-item:not(:first-child) .fb-card__media { aspect-ratio: 1; border-radius: var(--fb-radius-sm); }
.items-leading > .blog-item:not(:first-child) .fb-card__placeholder { font-size: 2.6rem; }
.items-leading > .blog-item:not(:first-child) .fb-card__excerpt { display: none; }
.items-leading > .blog-item:not(:first-child) .fb-card__badge { top: 6px; left: 6px; font-size: .6875rem; padding: 3px 8px; }

@media (max-width: 860px) {
	.items-leading { grid-template-columns: 1fr; }
	.items-leading > .blog-item:first-child { grid-row: auto; }
	.items-leading > .blog-item:first-child .fb-card { min-height: 0; }
	.items-leading > .blog-item:first-child .fb-card__media { min-height: 360px; }
}

/* Camera flash: one burst over the top story */
.fb-flash-burst .items-leading > .blog-item:first-child .fb-card__media::after,
.fb-flash-burst .fb-demo-lead .fb-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: radial-gradient(circle at 62% 32%, #fff 0, rgba(255, 255, 255, .9) 18%, rgba(255, 255, 255, 0) 62%);
	opacity: 0;
	pointer-events: none;
	animation: fb-flash 1.1s .35s ease-out 1 both;
}
@keyframes fb-flash {
	0% { opacity: 0; }
	9% { opacity: 1; }
	100% { opacity: 0; }
}

/* blog extras */
.items-more { margin-top: 16px; }
.items-more ol, .items-more ul { list-style: none; padding: 0; margin: 0; }
.items-more li { padding: 10px 0; border-bottom: 1px solid var(--fb-line); font-weight: 700; }
.items-more a { text-decoration: none; }

.category-desc, .com-content-category-blog__description { max-width: 70ch; color: var(--fb-muted); margin-bottom: 28px; }
.page-header h1, .page-header h2,
.com-content-category-blog > h1, .com-content-category-blog > h2,
.blog-featured > h1 {
	font-size: clamp(2.6rem, 7vw, 5rem);
	text-transform: uppercase;
	line-height: .92;
}

/* ---------- Trending list (module class suffix: fb-trending) ---------- */
.fb-trending ul, .fb-trending ol { list-style: none; margin: 0; padding: 0; counter-reset: fb-rank; }
.fb-trending li {
	counter-increment: fb-rank;
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 0 12px;
	align-items: start;
	padding: 14px 0;
	border-bottom: 1px solid var(--fb-line);
}
.fb-trending li > * { grid-column: 2; margin: 0; }
.fb-trending li::before {
	content: counter(fb-rank);
	grid-column: 1;
	grid-row: 1 / span 3;
	font-family: var(--fb-display);
	font-size: 2.9rem;
	line-height: .86;
	color: transparent;
	-webkit-text-stroke: 2px var(--fb-pink);
}
.fb-trending li:first-child::before { color: var(--fb-pink); }
.fb-trending a { font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none; }
.fb-trending a:hover { text-decoration: underline; }
.fb-trending h4, .fb-trending h3 { font-family: var(--fb-body); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.fb-trending img { display: none; }

/* Generic article lists in sidebar (mod_articles) */
.fb-sidebar .mod-articles, .fb-sidebar .mod-list { list-style: none; padding: 0; margin: 0; }

/* ---------- Spotlight band (videos / galleries) ---------- */
.fb-spotlight {
	--fb-text: #fff;
	--fb-muted: #b9b4bb;
	--fb-line: #2c2a2e;
	--fb-mark: var(--fb-pink);
	--fb-mark-text: #fff;
	position: relative;
	overflow: hidden;
	padding-block: clamp(44px, 7vw, 84px);
	background: #000;
	color: #fff;
}
.fb-spotlight::before {
	content: "";
	position: absolute;
	top: -45%; left: -15%;
	width: 70%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(255, 31, 122, .42), transparent 62%);
	pointer-events: none;
}
.fb-spotlight .fb-wrap { position: relative; }
.fb-spotlight .fb-module { margin-bottom: 0; }

/* ---------- Newsletter band ---------- */
.fb-newsletter {
	padding-block: clamp(40px, 6vw, 72px);
	background: var(--fb-pink);
	color: #000;
}
.fb-newsletter .fb-module { margin-bottom: 0; }
.fb-newsletter .fb-module__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.fb-newsletter .fb-module__title::after { background: #000; }
.fb-newsletter .fb-module__title > span::before { background: var(--fb-flash); }
.fb-newsletter form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.fb-newsletter input[type="email"], .fb-newsletter input[type="text"] {
	flex: 1 1 260px;
	height: 54px;
	padding: 0 22px;
	border: 3px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font: inherit;
}
.fb-newsletter button, .fb-newsletter input[type="submit"] {
	height: 54px;
	padding: 0 28px;
	border: 3px solid #000;
	border-radius: 999px;
	background: #000;
	color: var(--fb-flash);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.fb-newsletter button:hover { background: var(--fb-flash); color: #000; }

/* ---------- Footer ---------- */
.fb-footer {
	--fb-text: #fff;
	--fb-muted: #a8a3aa;
	--fb-line: #2a282c;
	background: #000;
	color: #fff;
	padding-top: clamp(44px, 6vw, 72px);
}
.fb-footer__brand {
	position: relative;
	display: inline-block;
	padding-right: .42em;
	font-family: var(--fb-display);
	font-size: clamp(3rem, 12vw, 9rem);
	line-height: .8;
	text-transform: uppercase;
	margin-bottom: clamp(28px, 4vw, 48px);
}
.fb-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	padding-bottom: 40px;
}
.fb-footer__grid > div:empty { display: none; }
.fb-footer .fb-module__title { font-size: 1.3rem; }
.fb-footer .fb-module__title::after { height: 3px; }
.fb-footer ul { list-style: none; padding: 0; margin: 0; }
.fb-footer li { padding: 5px 0; }
.fb-footer a { color: var(--fb-muted); text-decoration: none; }
.fb-footer a:hover { color: var(--fb-flash); }

.fb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 22px;
	border-top: 1px solid var(--fb-line);
	color: var(--fb-muted);
	font-size: .875rem;
}
.fb-totop {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--fb-flash);
	color: #000 !important;
	font-weight: 800;
}

@media (max-width: 900px) { .fb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fb-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Single article ---------- */
.com-content-article, .item-page { max-width: 820px; }
.fb-layout--sidebar .com-content-article, .fb-layout--sidebar .item-page { max-width: none; }

.com-content-article .page-header h1,
.com-content-article .page-header h2,
.item-page .page-header h2 {
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	line-height: .98;
	text-transform: none;
	max-width: 18ch;
}

.article-info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 26px;
	padding: 12px 0;
	border-block: 1px solid var(--fb-line);
	color: var(--fb-muted);
	font-size: .875rem;
}
.article-info dd { margin: 0; }
.article-info .article-info-term { display: none; }
.article-info .category-name a { color: var(--fb-pink); font-weight: 800; text-decoration: none; }

.com-content-article figure, .item-image { margin: 0 0 28px; }
.com-content-article figure img, .item-image img { width: 100%; border-radius: var(--fb-radius); }
figcaption, .caption { margin-top: 8px; font-size: .8125rem; color: var(--fb-muted); }

.com-content-article__body, [itemprop="articleBody"] {
	max-width: 68ch;
	font-size: 1.15rem;
	line-height: 1.72;
}
.com-content-article__body > p:first-of-type::first-letter {
	float: left;
	margin: .06em .1em 0 0;
	font-family: var(--fb-display);
	font-size: 4.2em;
	line-height: .8;
	color: var(--fb-pink);
}
.com-content-article__body a { color: var(--fb-pink); font-weight: 600; }
.com-content-article__body h2 { margin-top: 1.4em; }

blockquote {
	margin: 2em 0;
	padding: 0 0 0 .9em;
	border-left: 8px solid var(--fb-pink);
	font-family: var(--fb-display);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.12;
}
blockquote p { margin: 0; }

.tags, ul.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.tags a, .tags .btn {
	display: inline-block;
	padding: 6px 14px;
	border: 2px solid var(--fb-text);
	border-radius: 999px;
	color: var(--fb-text);
	font-size: .875rem;
	font-weight: 700;
	text-decoration: none;
}
.tags a:hover { background: var(--fb-pink); border-color: var(--fb-pink); color: #fff; }

.pagenavigation .pagination, .pager { display: flex; justify-content: space-between; gap: 12px; list-style: none; padding: 0; }

/* ---------- Buttons & forms ---------- */
.btn, .fb-btn, button.btn, input[type="submit"].btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 24px;
	border: 2px solid var(--fb-text);
	border-radius: 999px;
	background: var(--fb-text);
	color: var(--fb-bg);
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}
.btn:hover, .fb-btn:hover { background: var(--fb-pink); border-color: var(--fb-pink); color: #fff; }
.btn-secondary, .btn-outline-secondary { background: transparent; color: var(--fb-text); }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="tel"], select, textarea, .form-control, .form-select {
	max-width: 100%;
	min-height: 46px;
	padding: 10px 16px;
	border: 2px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	background: var(--fb-surface);
	color: var(--fb-text);
	font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--fb-pink); outline: none; }
label, .form-label { font-weight: 700; }
.control-group, .mb-3 { margin-bottom: 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 32px 0; }
.pagination .page-link {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 2px solid var(--fb-line);
	border-radius: 999px;
	color: var(--fb-text);
	font-weight: 700;
	text-decoration: none;
}
.pagination .active .page-link { background: var(--fb-pink); border-color: var(--fb-pink); color: #fff; }
.pagination .disabled .page-link { opacity: .4; }
.com-content-category-blog__counter, .counter { color: var(--fb-muted); font-size: .875rem; }

/* ---------- System messages ---------- */
joomla-alert, .alert {
	display: block;
	margin-bottom: 20px;
	padding: 14px 18px;
	border-radius: var(--fb-radius-sm);
	border-left: 6px solid var(--fb-pink);
	background: var(--fb-blush);
	color: var(--fb-text);
}
joomla-alert[type="danger"], .alert-danger { border-left-color: var(--fb-red); }
joomla-alert[type="warning"], .alert-warning { border-left-color: var(--fb-flash); }

/* ---------- Error page ---------- */
.fb-errorbox { padding-block: clamp(40px, 8vw, 100px); }
.fb-errorbox__code {
	margin: 0;
	font-family: var(--fb-display);
	font-size: clamp(7rem, 26vw, 18rem);
	line-height: .8;
	color: transparent;
	-webkit-text-stroke: 3px var(--fb-pink);
}
.fb-errorbox__title { max-width: 16ch; margin-top: .3em; }
.fb-errorbox__msg { color: var(--fb-muted); }
.fb-errorbox__debug { margin-top: 32px; overflow-x: auto; font-size: .8125rem; }

/* ---------- Component view (print/modal) ---------- */
.fb-component { padding: 24px; }

/* ---------- Header on small screens ---------- */
@media (max-width: 640px) {
	.fb-header__inner { flex-wrap: wrap; }
	.fb-header__tools { width: 100%; }
	.fb-search { flex: 1; }
	.fb-search input[type="search"], .fb-search input[type="text"] { width: 100%; }
	.fb-ticker__label { padding-inline: 12px; font-size: .95rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
	.fb-ticker, .fb-nav, .fb-header__tools, .fb-sidebar, .fb-spotlight, .fb-newsletter, .fb-footer { display: none !important; }
	body { background: #fff; color: #000; }
}

/* dark mode: keep the nav bar readable against the black page */
:root[data-theme="dark"] .fb-nav { border-block: 1px solid var(--fb-line); }

/* ==========================================================================
   1.1 – Layout rows from the drag & drop builder
   ========================================================================== */
.fb-main { padding-block: clamp(20px, 3vw, 40px) 0; }
.fb-row { margin-bottom: clamp(32px, 4.4vw, 60px); }
.fb-row--blush, .fb-row--dark, .fb-row--pink, .fb-row--flash { padding-block: clamp(40px, 6vw, 80px); }
.fb-main > .fb-row:not(.fb-row--plain):last-child { margin-bottom: 0; }

.fb-row__inner {
	display: grid;
	grid-template-columns: var(--fb-cols, 1fr);
	gap: clamp(24px, 3.4vw, 48px);
	align-items: start;
}
.fb-row--full > .fb-row__inner { padding-inline: clamp(12px, 2vw, 24px); }
.fb-cell { min-width: 0; }
.fb-cell > .fb-module:last-child { margin-bottom: 0; }

.fb-row--blush { background: var(--fb-blush); }

.fb-row--dark {
	--fb-text: #fff;
	--fb-muted: #b9b4bb;
	--fb-line: #2c2a2e;
	--fb-mark: var(--fb-pink);
	--fb-bg: #000;
	--fb-surface: #141416;
	--fb-blush: #1d0b14;
	position: relative;
	overflow: hidden;
	background: #000;
	color: #fff;
}
.fb-row--dark::before {
	content: "";
	position: absolute;
	top: -45%; left: -15%;
	width: 70%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(255, 31, 122, .42), transparent 62%);
	pointer-events: none;
}
.fb-row--dark > .fb-row__inner { position: relative; }

.fb-row--pink {
	--fb-text: #000;
	--fb-muted: #3d0d22;
	--fb-line: rgba(0, 0, 0, .18);
	--fb-mark: #fff;
	--fb-bg: var(--fb-pink);
	--fb-surface: #fff;
	background: var(--fb-pink);
	color: #000;
}
.fb-row--pink .fb-module__title > span::before { background: var(--fb-flash); }
.fb-row--pink .fb-card__cat, .fb-row--pink .fbm-a__cat { color: #000; }

.fb-row--flash {
	--fb-text: #000;
	--fb-muted: #3b3700;
	--fb-line: rgba(0, 0, 0, .18);
	--fb-mark: var(--fb-pink);
	--fb-bg: var(--fb-flash);
	--fb-surface: #fff;
	background: var(--fb-flash);
	color: #000;
}
.fb-row--flash .fb-module__title > span::before { background: #000; }

@media (min-width: 1001px) {
	.fb-cell--sidebar-left, .fb-cell--sidebar-right { position: sticky; top: calc(var(--fb-nav-h) + 24px); }
}
@media (max-width: 1000px) {
	.fb-row--n3 > .fb-row__inner, .fb-row--n4 > .fb-row__inner,
	.fb-row--n5 > .fb-row__inner, .fb-row--n6 > .fb-row__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fb-row--main > .fb-row__inner { grid-template-columns: 1fr; }
	.fb-row--main .fb-cell--component { order: -1; }
}
@media (max-width: 640px) {
	.fb-row__inner { grid-template-columns: 1fr !important; }
}

/* leaderboard under the navigation */
.fb-headerad { padding-block: 14px; border-bottom: 1px solid var(--fb-line); }
.fb-headerad .fb-wrap { display: flex; justify-content: center; }
/* coloured rows that follow each other touch without a white gap */
.fb-row:not(.fb-row--plain):has(+ .fb-row:not(.fb-row--plain)) { margin-bottom: 0; }
