/* ============================================================
   TK Gornja Radgona — design system v4 (dark, modern, responsive)
   Structure mirrors tkkamnik.si; dark identity like the club's
   old site; accent = clay orange.
   ============================================================ */

/* ---------- No body-gap between template sections (header/main/footer) ---------- */
.wp-site-blocks > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* ---------- Header (dark) ---------- */
.tkgr-header {
	background: var(--wp--custom--header-bg) !important;
	border-bottom: 1px solid var(--wp--custom--header-border);
	box-shadow: var(--wp--custom--header-shadow);
	z-index: 100;
}

.tkgr-header .wp-block-navigation a:hover,
.tkgr-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--custom--accent);
}

.tkgr-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--custom--header-bg);
}

/* ---------- Eyebrow ---------- */
.tkgr-eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--custom--accent);
	margin: 0 0 0.6rem;
}

.tkgr-eyebrow::before {
	content: "";
	display: inline-block;
	width: 26px;
	height: 2px;
	background: var(--wp--preset--color--primary);
	vertical-align: middle;
	margin-right: 0.6rem;
}

/* ---------- Hero & page-title bands ---------- */
.tkgr-hero {
	background: linear-gradient(135deg, #111216 0%, #1E1712 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tkgr-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(10, 9, 8, 0.85) 25%, rgba(10, 9, 8, 0.4) 75%) !important;
	opacity: 1 !important;
}

.tkgr-hero h1,
.tkgr-hero .wp-block-post-title,
.tkgr-hero .wp-block-query-title {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: #ffffff;
	line-height: 1.02;
	margin: 0.35rem 0 0;
}

.tkgr-hero .tkgr-kicker {
	color: #E9A87E;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0;
}

.tkgr-hero .tkgr-kicker::before {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--primary);
	margin-bottom: 1rem;
}

.tkgr-hero-sub {
	color: rgba(255, 255, 255, 0.8);
	font-size: clamp(15px, 1.6vw, 18px);
	max-width: 520px;
	margin-top: 1.25rem !important;
}

.tkgr-hero .wp-block-post-date {
	color: rgba(255, 255, 255, 0.5);
	margin-top: 1rem;
}

/* ---------- Cards ---------- */
.tkgr-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border-soft);
	border-radius: 14px;
	overflow: hidden;
	height: 100%;
	box-shadow: var(--wp--custom--shadow-card);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tkgr-card:hover {
	transform: translateY(-4px);
	border-color: var(--wp--custom--accent-border);
	box-shadow: var(--wp--custom--shadow-card-hover);
}

.tkgr-card > .wp-block-image {
	margin: 0;
	width: 100%;
	display: block;
}

.tkgr-card > .wp-block-image a {
	display: block;
	width: 100%;
}

.tkgr-card > .wp-block-image img {
	width: 100% !important;
	height: 185px;
	object-fit: cover;
	display: block;
	opacity: 0.92;
}

.tkgr-card-body {
	padding: 1.3rem 1.4rem 1.5rem;
}

.tkgr-card-body h3 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 0.5rem;
}

.tkgr-card-body h3 a {
	color: var(--wp--preset--color--light);
}

.tkgr-card-body h3 a:hover {
	color: var(--wp--custom--accent);
}

.tkgr-card-body p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--wp--preset--color--gray);
	margin: 0 0 0.9rem;
}

.tkgr-card-more {
	font-size: 14px;
	font-weight: 600;
}

/* ---------- News grid ---------- */
.tkgr-news li.wp-block-post {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border-soft);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--wp--custom--shadow-card);
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.tkgr-news li.wp-block-post:hover {
	transform: translateY(-4px);
	border-color: var(--wp--custom--accent-border);
}

.tkgr-news li.wp-block-post > * {
	margin-left: 1.4rem;
	margin-right: 1.4rem;
}

.tkgr-news li.wp-block-post > .wp-block-post-featured-image {
	margin: 0 0 1.1rem;
	width: 100%;
}

.tkgr-news .wp-block-post-featured-image a,
.tkgr-news .wp-block-post-featured-image img {
	display: block;
	width: 100% !important;
}

.tkgr-news .wp-block-post-featured-image img {
	border-radius: 0;
	opacity: 0.92;
}

.tkgr-news .wp-block-post-title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.tkgr-news .wp-block-post-title a {
	color: var(--wp--preset--color--light);
}

.tkgr-news .wp-block-post-title a:hover {
	color: var(--wp--custom--accent);
}

.tkgr-news li.wp-block-post > :last-child {
	margin-bottom: 1.4rem;
}

.tkgr-news .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
	gap: 1.75rem;
}

/* ---------- Lead paragraph ---------- */
.tkgr-lead {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.9;
	color: var(--wp--preset--color--gray);
}

/* ---------- Stat tiles ---------- */
.tkgr-stats .wp-block-column {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border-soft);
	border-radius: 14px;
	padding: 1.6rem 1.5rem 1.4rem;
}

.tkgr-stat-num {
	font-family: var(--wp--preset--font-family--sans);
	font-size: clamp(28px, 3.5vw, 38px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--wp--custom--accent);
	margin: 0;
	line-height: 1.1;
}

.tkgr-stat-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
	margin: 0.3rem 0 0;
}

/* ---------- Panels ---------- */
.tkgr-panel {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border-soft);
	border-radius: 14px;
	padding: 0.5rem 1.75rem;
}

/* ---------- Clean tables ---------- */
.tkgr-table-clean table {
	border-collapse: collapse;
	width: 100%;
}

.tkgr-table-clean td,
.tkgr-table-clean th {
	border: 0;
	border-bottom: 1px solid var(--wp--custom--header-border);
	padding: 0.85rem 0.5rem;
	font-size: 15px;
	text-align: left;
}

.tkgr-table-clean tr:last-child td {
	border-bottom: 0;
}

.tkgr-table-clean td:first-child {
	font-weight: 600;
	color: var(--wp--preset--color--light);
	width: 42%;
}

.tkgr-table-clean thead th {
	background: transparent;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.wp-block-table {
	overflow-x: auto;
}

/* ---------- Organi kluba cards ---------- */
.tkgr-organi {
	flex-wrap: wrap !important;
}

.tkgr-organi .wp-block-column {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border-soft);
	border-radius: 14px;
	padding: 1.4rem 1.5rem;
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: 0;
}

.tkgr-stats .wp-block-column,
.tkgr-card,
.tkgr-panel {
	box-sizing: border-box;
}

.tkgr-organi h3 {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--light);
	margin: 0 0 0.75rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.tkgr-organi ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tkgr-organi li {
	font-size: 15px;
	padding: 0.32rem 0;
	color: var(--wp--preset--color--gray);
}

/* ---------- Documents list ---------- */
.tkgr-doclist ul {
	list-style: none;
	padding: 0;
}

.tkgr-doclist li {
	border: 1px solid var(--wp--custom--border-strong);
	border-radius: 10px;
	padding: 0.9rem 1.2rem;
	margin-bottom: 0.6rem;
	background: var(--wp--preset--color--surface);
	transition: border-color 0.15s ease;
}

.tkgr-doclist li:hover {
	border-color: var(--wp--custom--accent-border);
}

.tkgr-doclist li a {
	font-weight: 600;
	font-size: 15px;
}

/* ---------- Gallery ---------- */
.wp-block-gallery .wp-block-image img {
	border-radius: 12px;
	opacity: 0.92;
}

/* ---------- Map ---------- */
.tkgr-map iframe {
	border-radius: 14px;
	border: 1px solid var(--wp--custom--border-strong);
	filter: grayscale(0.2);
}

/* ---------- Footer ---------- */
.tkgr-footer {
	background: #111216;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tkgr-footer p,
.tkgr-footer h3 {
	color: #9DA1A8;
	font-size: 15px;
}

.tkgr-footer h3 {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #E9A87E;
	margin-bottom: 0.75rem;
}

.tkgr-footer a {
	color: #C9CBCF;
}

.tkgr-footer a:hover {
	color: #ffffff;
}

.tkgr-footer-bottom {
	background: rgba(0, 0, 0, 0.4);
}

.tkgr-footer-bottom p {
	color: #6E727A;
	font-size: 13px;
}

/* ---------- Selection & focus ---------- */
::selection {
	background: rgba(210, 98, 42, 0.45);
	color: #fff;
}

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--custom--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- Left-aligned content pages ---------- */
/* Page content shares the 1120px container with the title band; children
   align to its LEFT edge instead of centering. Full/wide aligned blocks
   keep their own behavior. Prose stays capped for readable line length. */
.wp-block-post-content.is-layout-constrained > :not(.alignfull):not(.alignwide) {
	margin-left: 0 !important;
}

.wp-block-post-content > p,
.wp-block-post-content > ul,
.wp-block-post-content > ol {
	max-width: 760px;
}

.wp-block-post-content > .tkgr-panel,
.wp-block-post-content > .tkgr-doclist,
.wp-block-post-content > figure.wp-block-table {
	max-width: 880px;
}

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.tkgr-hero {
		min-height: 60vh !important;
	}

	.tkgr-card > .wp-block-image img {
		height: 200px;
	}

	.tkgr-organi .wp-block-column {
		flex-basis: 100% !important;
	}

	.tkgr-panel {
		padding: 0.25rem 1.1rem;
	}
}

@media (min-width: 782px) and (max-width: 1080px) {
	.tkgr-organi .wp-block-column {
		flex-basis: calc(50% - 1rem) !important;
	}
}
