/**
 * Visual design matching the current mzw.com.pl (cesin theme) look:
 * news cards with a gold-accent underline, "more" links with a growing
 * bar, the split-panel exhibitions block, and the dark visiting-hours
 * table. Values are adapted from the live site's own stylesheet
 * (assets/reference/cesin-theme-notes.md has the audit), not guessed.
 *
 * Kept separate from accessibility.css so the WCAG-required rules
 * there (focus states, skip link, touch targets) are never at risk of
 * being overridden by a visual-design change made here.
 */

/*
 * Header: gold logo badge flush left, dark bar filling the rest of the
 * width with the nav inset from the right edge — matching the live
 * site's `.navbar-brand` (gold, 24px padding) and `.bg-dark` (near-black,
 * padding-right: 10vw) rules.
 */
.site-header {
	padding: 0;
	gap: 0;
}

.site-branding {
	background: var(--mzw-color-gold-surface);
	padding: 24px;
}

.site-branding .site-title a {
	color: var(--mzw-color-text);
}

.main-navigation {
	flex: 1 1 auto;
	padding-right: 10vw;
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 1100px) {
	.main-navigation {
		padding-right: 2rem;
	}
}

/*
 * Nav links: no underline, the live site marks the current/hovered item
 * with a small gold dot growing in below the text instead.
 */
.main-navigation a {
	text-decoration: none;
}

.main-navigation ul#primary-menu > li > a {
	font-size: 1.15rem;
	padding: 5px 20px;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
	text-decoration: none;
}

.main-navigation ul#primary-menu > li > a::after {
	content: '';
	display: block;
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 6px;
	background: var(--mzw-color-gold-surface);
	left: 50%;
	margin-left: -3px;
	bottom: -10px;
	opacity: 0;
	transition: all 0.4s ease-in-out;
}

.main-navigation ul#primary-menu > li > a:hover::after,
.main-navigation ul#primary-menu > li > a:focus-visible::after {
	opacity: 1;
	bottom: -2px;
}

.main-navigation [aria-current="page"] {
	text-decoration: none;
	border-bottom: 2px solid var(--mzw-color-gold-surface);
}

@media (max-width: 782px) {
	.main-navigation {
		padding-right: 1rem;
		justify-content: flex-start;
	}
}

/*
 * Column widths, set directly on our own classes rather than through
 * Elementor's container width control — that control's "Custom Width"
 * value didn't take effect (rendered as a bare `width: initial`), and
 * relying on our own CSS avoids depending on it. !important guards
 * against load-order ties with Elementor's own per-post stylesheet,
 * which uses the same class specificity.
 */
.mzw-news-card {
	width: calc(33.333% - 16px) !important;
	flex: 0 0 auto !important;
}

/* 50/50 with a 32px gap between the two — flat 50% left no room for the
   gap and pushed the second column onto its own line. */
.mzw-about-col {
	width: calc(50% - 16px) !important;
	flex: 0 0 auto !important;
}

/* The exhibit row uses a 0px gap, so a flat 50% fits exactly. */
.mzw-exhibit-panel,
.mzw-exhibit-image {
	width: 50% !important;
	flex: 0 0 auto !important;
}

@media (max-width: 767px) {
	.mzw-news-card,
	.mzw-about-col,
	.mzw-exhibit-panel,
	.mzw-exhibit-image {
		width: 100% !important;
	}
}

/* ---------- Aktualności: news cards ---------- */
.mzw-news-card {
	background: #ffffff;
	color: var(--mzw-color-text);
}

.mzw-news-card .elementor-heading-title {
	font-size: 1.5rem;
	margin-top: 1rem;
}

.mzw-news-card .elementor-widget-text-editor p {
	font-size: 0.95rem;
}

.mzw-news-line {
	width: 100%;
	height: 3px;
	display: block;
	background: #efefef;
	margin: 1.5rem 0;
	position: relative;
}

.mzw-news-line::before {
	content: '';
	display: block;
	position: absolute;
	height: 100%;
	width: 30%;
	background: var(--mzw-color-gold-surface);
	left: 0;
	top: 0;
	transition: width 0.4s ease-in-out;
}

.mzw-news-card:hover .mzw-news-line::before {
	width: 90%;
}

/* "Czytaj więcej" / "more" link style: uppercase, growing accent bar. */
.mzw-more a.elementor-button {
	background: none;
	color: var(--mzw-color-text);
	text-transform: uppercase;
	font-weight: 600;
	font-size: 1rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 1rem;
}

.mzw-more a.elementor-button::before {
	content: '';
	height: 2rem;
	width: 3px;
	background: #efefef;
	display: inline-block;
	transition: background 0.4s ease-in-out;
}

.mzw-more a.elementor-button:hover,
.mzw-more a.elementor-button:focus-visible {
	background: none;
	color: var(--mzw-color-text);
}

.mzw-more a.elementor-button:hover::before,
.mzw-more a.elementor-button:focus-visible::before {
	background: var(--mzw-color-gold-surface);
}

/* Same treatment, gold-on-dark variant (used on the exhibitions panel:
   dark background, light-gold text — the pairing already proven at
   12:1 contrast, see accessibility.css). */
.mzw-more-gold a.elementor-button {
	background: none;
	color: var(--mzw-color-gold-surface);
	text-transform: uppercase;
	font-weight: 600;
	font-size: 1.1rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 1rem;
}

.mzw-more-gold a.elementor-button::before {
	content: '';
	height: 2rem;
	width: 3px;
	background: #6b6b6b;
	display: inline-block;
	transition: background 0.4s ease-in-out;
}

.mzw-more-gold a.elementor-button:hover,
.mzw-more-gold a.elementor-button:focus-visible {
	background: none;
	color: var(--mzw-color-gold-surface);
}

/* ---------- O muzeum: plain two-column text ---------- */
.mzw-about-col p:first-child {
	margin-top: 0;
}

/* ---------- Zwiedzanie: dark section, gold time values ---------- */
.mzw-visit {
	background: var(--mzw-color-text);
	color: #ffffff;
}

.mzw-visit .elementor-heading-title {
	color: #ffffff;
}

.mzw-visit table {
	border-collapse: collapse;
	border: none;
}

.mzw-visit table caption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.mzw-visit table th,
.mzw-visit table td {
	border: none;
	padding: 0.4rem 0;
	background: none;
	text-align: left;
	color: #ffffff;
	font-weight: 400;
}

.mzw-visit table th[scope="row"] {
	padding-right: 1rem;
}

.mzw-visit table td {
	color: var(--mzw-color-gold-surface);
	font-weight: 600;
}

.mzw-visit a {
	color: #ffffff;
	text-decoration: underline;
}

.mzw-visit a:hover,
.mzw-visit a:focus-visible {
	color: var(--mzw-color-gold-surface);
}

/* ---------- Wystawy: split panel (dark text panel + image) ---------- */
.mzw-exhibit {
	align-items: center;
	background: var(--mzw-color-text);
	color: #ffffff;
}

.mzw-exhibit-panel {
	padding: 2rem;
}

.mzw-exhibit-panel .elementor-heading-title {
	color: var(--mzw-color-gold-surface);
	font-size: 1.6rem;
}

.mzw-exhibit-panel .elementor-widget-text-editor p {
	color: #ffffff;
}

.mzw-exhibit-image img {
	display: block;
	width: 100%;
	height: auto;
}
