/* =========================================================
   GridBase — Joomla 6 template
   Dependency-free CSS. No frameworks, no build step.
   ========================================================= */

:root {
	--gb-accent: #2563eb;
	--gb-accent-contrast: #ffffff;
	--gb-container: 1200px;

	--gb-text: #1f2430;
	--gb-text-muted: #5b6472;
	--gb-bg: #ffffff;
	--gb-bg-alt: #f4f5f7;
	--gb-border: #e2e5ea;

	--gb-header-bg: #10131a;
	--gb-header-text: #f4f5f7;

	--gb-footer-bg: #171a21;
	--gb-footer-text: #c7cbd3;
	--gb-footer-border: #2a2e37;

	--gb-radius: 10px;
	--gb-gap: 1.75rem;
	--gb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -----------------------------------------------------------
   Reset / base
   ----------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--gb-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--gb-text);
	background: var(--gb-bg-alt);

	/* Sticky footer: the page is a single-column grid with three rows.
	   The middle row (1fr) absorbs all leftover space, so .gb-footer
	   is always pinned to the bottom of the viewport on short pages,
	   and pushed down naturally on tall ones. */
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
}

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

a {
	color: var(--gb-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

.gb-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gb-skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 1000;
	background: var(--gb-accent);
	color: var(--gb-accent-contrast);
	padding: 0.75em 1.25em;
	border-radius: 0 0 6px 0;
}

.gb-skip-link:focus {
	left: 0;
}

/* -----------------------------------------------------------
   Page wrapper: this is the middle "1fr" row on <body>.
   It's a grid itself so .gb-footer inside it still behaves
   predictably regardless of how much content is above it.
   ----------------------------------------------------------- */

.gb-page {
	display: grid;
	grid-template-rows: auto auto auto auto 1fr auto;
	min-height: 100%;
}

.gb-container {
	width: 100%;
	max-width: var(--gb-container);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

/* -----------------------------------------------------------
   Announcement bar
   ----------------------------------------------------------- */

.gb-announcement {
	background: var(--gb-accent);
	color: var(--gb-accent-contrast);
	font-size: 0.875rem;
	padding: 0.5rem 0;
	text-align: center;
}

.gb-announcement a {
	color: inherit;
	text-decoration: underline;
}

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

.gb-header {
	background: var(--gb-bg);
	border-bottom: 1px solid var(--gb-border);
}

body.header-dark .gb-header {
	background: var(--gb-header-bg);
	color: var(--gb-header-text);
	border-bottom-color: #000;
}

.gb-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-block: 1rem;
}

.gb-brand {
	font-size: 1.375rem;
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	margin-right: auto;
}

.gb-brand:hover,
.gb-brand:focus {
	text-decoration: none;
	opacity: 0.85;
}

.gb-header__modules {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Mobile nav toggle — hidden on desktop */
.gb-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: 1px solid var(--gb-border);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.gb-nav-toggle__bar {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: currentColor;
}

/* -----------------------------------------------------------
   Nav
   ----------------------------------------------------------- */

.gb-nav {
	background: var(--gb-bg-alt);
	border-bottom: 1px solid var(--gb-border);
}

.gb-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.gb-nav a {
	display: block;
	padding: 0.85rem 1rem;
	color: var(--gb-text);
	text-decoration: none;
	font-weight: 500;
}

.gb-nav a:hover,
.gb-nav a:focus {
	color: var(--gb-accent);
	text-decoration: none;
}

.gb-nav li.current > a {
	color: var(--gb-accent);
}

/* -----------------------------------------------------------
   Banner strip
   ----------------------------------------------------------- */

.gb-banner {
	padding-block: 1.25rem;
}

/* -----------------------------------------------------------
   Main layout grid — auto-reconfigures based on which sidebar
   positions are published. The class on <body> (layout-XY,
   where X = left sidebar present, Y = right sidebar present)
   drives which grid-template-columns rule applies.
   ----------------------------------------------------------- */

.gb-layout {
	display: grid;
	gap: var(--gb-gap);
	padding-block: 2rem;
	grid-template-columns: 1fr;
	align-items: start;
}

/* Neither sidebar: main content only */
body.layout-00 .gb-layout {
	grid-template-columns: minmax(0, 1fr);
}

/* Left sidebar only */
body.layout-10 .gb-layout {
	grid-template-columns: 260px minmax(0, 1fr);
}

/* Right sidebar only */
body.layout-01 .gb-layout {
	grid-template-columns: minmax(0, 1fr) 260px;
}

/* Both sidebars */
body.layout-11 .gb-layout {
	grid-template-columns: 240px minmax(0, 1fr) 240px;
}

.gb-main {
	min-width: 0;
}

.gb-sidebar {
	min-width: 0;
}

.gb-sidebar > * + * {
	margin-top: 1.25rem;
}

/* Card style used by sidebar modules (style="card") */
.gb-sidebar .card,
.gb-sidebar .moduletable {
	background: var(--gb-bg);
	border: 1px solid var(--gb-border);
	border-radius: var(--gb-radius);
	padding: 1.25rem;
}

.gb-sidebar .card-header,
.gb-sidebar .moduletable h3 {
	margin-top: 0;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--gb-text-muted);
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */

.gb-footer {
	background: var(--gb-footer-bg);
	color: var(--gb-footer-text);
}

.gb-footer a {
	color: #fff;
}

.gb-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	padding-block: 2.5rem;
	border-bottom: 1px solid var(--gb-footer-border);
}

.gb-footer__col h3 {
	color: #fff;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 0.85em;
}

.gb-footer__bottom {
	font-size: 0.875rem;
}

.gb-footer__bottom-inner {
	padding-block: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	justify-content: space-between;
}

.gb-footer__bottom p {
	margin: 0;
}

/* -----------------------------------------------------------
   Full-bleed header/footer option (fluidContainer param)
   ----------------------------------------------------------- */

body.is-fluid .gb-header,
body.is-fluid .gb-footer,
body.is-fluid .gb-nav,
body.is-fluid .gb-announcement {
	width: 100%;
}

/* -----------------------------------------------------------
   Responsive breakpoints
   ----------------------------------------------------------- */

@media (max-width: 900px) {
	/* Collapse sidebars below main content instead of beside it */
	body.layout-10 .gb-layout,
	body.layout-01 .gb-layout,
	body.layout-11 .gb-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	body.layout-10 .gb-sidebar--left,
	body.layout-01 .gb-sidebar--right,
	body.layout-11 .gb-sidebar--left,
	body.layout-11 .gb-sidebar--right {
		order: 2;
	}

	body.layout-10 .gb-main,
	body.layout-01 .gb-main,
	body.layout-11 .gb-main {
		order: 1;
	}
}

@media (max-width: 720px) {
	.gb-nav-toggle {
		display: flex;
	}

	.gb-nav {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.gb-nav.is-open {
		max-height: 600px;
	}

	.gb-nav ul {
		flex-direction: column;
		gap: 0;
		padding-block: 0.5rem;
	}

	.gb-nav a {
		padding: 0.75rem 0.25rem;
	}

	.gb-header__inner {
		flex-wrap: wrap;
	}

	.gb-header__modules {
		order: 3;
		width: 100%;
	}
}

@media (max-width: 560px) {
	.gb-container {
		padding-inline: 1rem;
	}

	.gb-layout {
		padding-block: 1.25rem;
		gap: 1.25rem;
	}

	.gb-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}

/* -----------------------------------------------------------
   Print
   ----------------------------------------------------------- */

@media print {
	.gb-header, .gb-nav, .gb-announcement, .gb-footer, .gb-nav-toggle {
		display: none;
	}
}
