/* ========================================
   XIV LO Krakow - Neo-Academic Editorial Design System
   ======================================== */

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

* {
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	/* Naglowek jest position: fixed - bez tego kotwice #... laduja pod paskiem nawigacji. */
	scroll-padding-top: calc(var(--header-height) + var(--space-4));
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
	/* Colors - Neo-Academic Palette */
	--color-burgundy: #06052F;
	--color-burgundy-dark: #06052F;
	--color-burgundy-light: #06052F;
	--color-cream: #FDF6E3;
	--color-ivory: #FAF7F0;
	--color-gold: #c18c28;
	--color-gold-light: #c18c28;
	--color-gold-dark: #c18c28;
	/* Darker accent for use as TEXT/icon color on light backgrounds.
	   --color-gold itself is ~2.9:1 on white/cream, which fails WCAG 1.4.3 (needs 4.5:1
	   for text, 3:1 for graphics/large text) - only safe as text on dark backgrounds. */
	--color-gold-ink: #8a5c0d;
	--color-charcoal: #2D2D2D;
	--color-stone: #6B6B6B;
	--color-stone-light: #9A9A9A;

	/* Semantic Colors */
	--color-background: var(--color-ivory);
	--color-surface: var(--color-cream);
	--color-primary: var(--color-burgundy);
	--color-primary-dark: var(--color-burgundy-dark);
	--color-accent: var(--color-gold);
	--color-text: var(--color-charcoal);
	--color-text-muted: var(--color-stone);

	/* Typography */
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

	/* Font Sizes (Fluid Typography) */
	--text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	--text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
	--text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
	--text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
	--text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
	--text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
	--text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
	--text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
	--text-5xl: clamp(3rem, 2rem + 5vw, 6rem);

	/* Font Weights */
	--weight-light: 300;
	--weight-regular: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;
	--weight-black: 900;

	/* Line Heights */
	--leading-tight: 1.15;
	--leading-snug: 1.35;
	--leading-normal: 1.6;
	--leading-relaxed: 1.75;

	/* Letter Spacing */
	--tracking-tight: -0.025em;
	--tracking-normal: 0;
	--tracking-wide: 0.025em;
	--tracking-wider: 0.05em;
	--tracking-widest: 0.1em;

	/* Spacing Scale */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-10: 2.5rem;
	--space-12: 3rem;
	--space-16: 4rem;
	--space-20: 5rem;
	--space-24: 6rem;
	--space-32: 8rem;

	/* Spacing Aliases (for component compatibility) */
	--spacing-xs: 0.5rem;
	--spacing-sm: 0.75rem;
	--spacing-md: 1rem;
	--spacing-lg: 1.5rem;
	--spacing-xl: 2rem;
	--spacing-2xl: 3rem;
	--spacing-3xl: 4rem;
	--spacing-4xl: 6rem;

	/* Border Radius */
	--radius-sm: 0.25rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--radius-2xl: 1.5rem;
	--radius-full: 9999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--shadow-editorial: 0 25px 50px -12px rgb(6 5 47 / 0.15);

	/* Transitions */
	--transition-fast: 150ms ease;
	--transition-base: 250ms ease;
	--transition-slow: 400ms ease;
	--transition-slower: 600ms ease;

	/* Z-Index Scale */
	--z-dropdown: 100;
	--z-sticky: 200;
	--z-fixed: 300;
	--z-modal-backdrop: 400;
	--z-modal: 500;
	--z-popover: 600;
	--z-tooltip: 700;

	/* Container Widths */
	--container-sm: 640px;
	--container-md: 768px;
	--container-lg: 1024px;
	--container-xl: 1280px;
	--container-2xl: 1400px;

	/* Header Height */
	--header-height: 96px;
	--header-height-scrolled: 64px;
}

/* ========================================
   Base Styles
   ======================================== */
body {
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--weight-regular);
	color: var(--color-text);
	background-color: var(--color-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-tight);
	color: var(--color-charcoal);
}

h1 {
	font-size: var(--text-4xl);
	letter-spacing: var(--tracking-tight);
}

h2 {
	font-size: var(--text-3xl);
	letter-spacing: var(--tracking-tight);
}

h3 {
	font-size: var(--text-2xl);
}

h4 {
	font-size: var(--text-xl);
}

h5 {
	font-size: var(--text-lg);
}

h6 {
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
}

p {
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--color-text);
}

/* Accessibility toggles */
html.a11y-large-text {
	font-size: 112.5%;
}

html.a11y-text-spacing body {
	line-height: 1.5;
}

html.a11y-text-spacing p,
html.a11y-text-spacing li,
html.a11y-text-spacing dd,
html.a11y-text-spacing dt,
html.a11y-text-spacing blockquote {
	line-height: 1.7;
	letter-spacing: 0.04em;
	word-spacing: 0.12em;
}

html.a11y-text-spacing p,
html.a11y-text-spacing ul,
html.a11y-text-spacing ol,
html.a11y-text-spacing blockquote {
	margin-bottom: 1.4em;
}

html.a11y-readable-font body,
html.a11y-readable-font button,
html.a11y-readable-font input,
html.a11y-readable-font textarea,
html.a11y-readable-font select {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font h4,
html.a11y-readable-font h5,
html.a11y-readable-font h6 {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	letter-spacing: 0;
}

html.a11y-underline-links a:not(.logo):not(.button):not(.btn):not(.accessibility-trigger) {
	text-decoration: underline;
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.18em;
}

html.a11y-reduced-motion,
html.a11y-reduced-motion *,
html.a11y-reduced-motion *::before,
html.a11y-reduced-motion *::after {
	scroll-behavior: auto !important;
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
}

html.a11y-high-contrast {
	--color-burgundy: #000000;
	--color-burgundy-dark: #000000;
	--color-burgundy-light: #000000;
	--color-cream: #ffffff;
	--color-ivory: #ffffff;
	--color-gold: #a15c00;
	--color-gold-light: #a15c00;
	--color-gold-dark: #a15c00;
	--color-charcoal: #000000;
	--color-stone: #1f1f1f;
	--color-stone-light: #333333;
	--color-background: #ffffff;
	--color-surface: #ffffff;
	--color-primary: #000000;
	--color-primary-dark: #000000;
	--color-accent: #a15c00;
	--color-text: #000000;
	--color-text-muted: #1f1f1f;
}

html.a11y-high-contrast a,
html.a11y-high-contrast button {
	outline-color: #a15c00;
}

html.a11y-high-contrast body {
	background: #ffffff;
	color: #000000;
}

html.a11y-high-contrast a {
	color: #000000;
	text-decoration: underline;
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.18em;
}

html.a11y-high-contrast button,
html.a11y-high-contrast input,
html.a11y-high-contrast textarea,
html.a11y-high-contrast select {
	border-color: #000000;
}

html.a11y-visible-focus *:focus-visible {
	outline: 4px solid #c15c00 !important;
	outline-offset: 4px !important;
	box-shadow: 0 0 0 7px rgba(193, 92, 0, 0.22) !important;
}

/* ========================================
   Keyframe Animations
   ======================================== */

/* Reveal Up Animation */
@keyframes revealUp {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Gold Shimmer Animation */
@keyframes goldShimmer {
	0% {
		background-position: -200% center;
	}
	100% {
		background-position: 200% center;
	}
}

/* Fade In Animation */
@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

/* Fade In Up Animation */
@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Scale In Animation */
@keyframes scaleIn {
	0% {
		opacity: 0;
		transform: scale(0.95);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Slide In From Right */
@keyframes slideInRight {
	0% {
		opacity: 0;
		transform: translateX(100%);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Slide In From Left */
@keyframes slideInLeft {
	0% {
		opacity: 0;
		transform: translateX(-100%);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Pulse Animation */
@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* Spin Animation */
@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Underline Expand */
@keyframes underlineExpand {
	0% {
		transform: scaleX(0);
		transform-origin: left;
	}
	100% {
		transform: scaleX(1);
		transform-origin: left;
	}
}

/* ========================================
   Utility Classes
   ======================================== */

/* Container */
.container {
	width: 100%;
	max-width: var(--container-xl);
	margin-inline: auto;
	padding-inline: var(--space-4);
}

@media (min-width: 768px) {
	.container {
		padding-inline: var(--space-8);
	}
}

.container-narrow {
	max-width: var(--container-md);
}

.container-wide {
	max-width: var(--container-2xl);
}

/* Text Utilities */
.text-display {
	font-family: var(--font-display);
}

.text-body {
	font-family: var(--font-body);
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.text-muted {
	color: var(--color-text-muted);
}

.text-primary {
	color: var(--color-primary);
}

.text-accent {
	color: var(--color-accent);
}

.text-uppercase {
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
}

/* Gold Shimmer Text Effect */
.text-shimmer {
	background: linear-gradient(
		90deg,
		var(--color-gold-dark) 0%,
		var(--color-gold) 25%,
		var(--color-gold-light) 50%,
		var(--color-gold) 75%,
		var(--color-gold-dark) 100%
	);
	background-size: 200% auto;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: goldShimmer 3s linear infinite;
}

/* Flex Utilities */
.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

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

.items-center {
	align-items: center;
}

.items-start {
	align-items: flex-start;
}

.items-end {
	align-items: flex-end;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-start {
	justify-content: flex-start;
}

.justify-end {
	justify-content: flex-end;
}

.gap-1 {
	gap: var(--space-1);
}

.gap-2 {
	gap: var(--space-2);
}

.gap-3 {
	gap: var(--space-3);
}

.gap-4 {
	gap: var(--space-4);
}

.gap-6 {
	gap: var(--space-6);
}

.gap-8 {
	gap: var(--space-8);
}

/* Grid Utilities */
.grid {
	display: grid;
}

.grid-cols-1 {
	grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Spacing Utilities */
.m-auto {
	margin: auto;
}

.mx-auto {
	margin-inline: auto;
}

.my-4 {
	margin-block: var(--space-4);
}

.my-8 {
	margin-block: var(--space-8);
}

.mb-2 {
	margin-bottom: var(--space-2);
}

.mb-4 {
	margin-bottom: var(--space-4);
}

.mb-6 {
	margin-bottom: var(--space-6);
}

.mb-8 {
	margin-bottom: var(--space-8);
}

.mt-4 {
	margin-top: var(--space-4);
}

.mt-8 {
	margin-top: var(--space-8);
}

.p-4 {
	padding: var(--space-4);
}

.p-6 {
	padding: var(--space-6);
}

.p-8 {
	padding: var(--space-8);
}

.px-4 {
	padding-inline: var(--space-4);
}

.px-6 {
	padding-inline: var(--space-6);
}

.py-4 {
	padding-block: var(--space-4);
}

.py-8 {
	padding-block: var(--space-8);
}

.py-12 {
	padding-block: var(--space-12);
}

.py-16 {
	padding-block: var(--space-16);
}

.py-20 {
	padding-block: var(--space-20);
}

/* Width/Height Utilities */
.w-full {
	width: 100%;
}

.h-full {
	height: 100%;
}

.min-h-screen {
	min-height: 100vh;
}

/* Display Utilities */
.hidden {
	display: none;
}

.block {
	display: block;
}

.inline-block {
	display: inline-block;
}

/* Position Utilities */
.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

.fixed {
	position: fixed;
}

.sticky {
	position: sticky;
}

/* Border Utilities */
.rounded {
	border-radius: var(--radius-md);
}

.rounded-lg {
	border-radius: var(--radius-lg);
}

.rounded-xl {
	border-radius: var(--radius-xl);
}

.rounded-full {
	border-radius: var(--radius-full);
}

/* Shadow Utilities */
.shadow {
	box-shadow: var(--shadow-md);
}

.shadow-lg {
	box-shadow: var(--shadow-lg);
}

.shadow-editorial {
	box-shadow: var(--shadow-editorial);
}

/* Animation Utilities */
.animate-reveal-up {
	animation: revealUp var(--transition-slow) ease-out forwards;
}

.animate-fade-in {
	animation: fadeIn var(--transition-base) ease-out forwards;
}

.animate-fade-in-up {
	animation: fadeInUp var(--transition-slow) ease-out forwards;
}

.animate-scale-in {
	animation: scaleIn var(--transition-base) ease-out forwards;
}

.animate-pulse {
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
	animation: spin 1s linear infinite;
}

/* Staggered Animation Delays */
.delay-100 {
	animation-delay: 100ms;
}

.delay-200 {
	animation-delay: 200ms;
}

.delay-300 {
	animation-delay: 300ms;
}

.delay-400 {
	animation-delay: 400ms;
}

.delay-500 {
	animation-delay: 500ms;
}

/* Transition Utilities */
.transition {
	transition: all var(--transition-base);
}

.transition-fast {
	transition: all var(--transition-fast);
}

.transition-slow {
	transition: all var(--transition-slow);
}

/* Button Base Styles */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-6);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition-base);
}

.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-cream);
}

.btn-primary:hover {
	background-color: var(--color-primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-secondary {
	background-color: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
	background-color: var(--color-primary);
	color: var(--color-cream);
}

.btn-accent {
	background-color: var(--color-accent);
	color: var(--color-charcoal);
}

.btn-accent:hover {
	background-color: var(--color-gold-dark);
	transform: translateY(-2px);
}

/* Card Styles */
.card {
	background-color: var(--color-surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: all var(--transition-base);
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-editorial);
}

.card-body {
	padding: var(--space-6);
}

/* Decorative Elements */
.divider {
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
	border-radius: var(--radius-full);
}

.divider-center {
	margin-inline: auto;
}

/* Section Styles */
.section {
	padding-block: var(--space-16);
}

@media (min-width: 768px) {
	.section {
		padding-block: var(--space-24);
	}
}

.section-header {
	text-align: center;
	margin-bottom: var(--space-12);
}

.section-title {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: var(--weight-semibold);
	color: var(--color-charcoal);
	margin-bottom: var(--space-4);
}

.section-subtitle {
	font-size: var(--text-lg);
	color: var(--color-text-muted);
	max-width: 600px;
	margin-inline: auto;
}

/* Link Styles */
.link {
	color: var(--color-primary);
	text-decoration: none;
	position: relative;
	transition: color var(--transition-fast);
}

.link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--transition-base);
}

.link:hover {
	color: var(--color-burgundy-dark);
}

.link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Overlay */
.overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: var(--z-modal-backdrop);
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-base);
}

.overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Focus Styles */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Selection */
::selection {
	background-color: var(--color-burgundy);
	color: var(--color-cream);
}

/* Responsive Visibility */
@media (max-width: 767px) {
	.hidden-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.hidden-desktop {
		display: none !important;
	}
}

/* Scrollbar Styling */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: var(--color-ivory);
}

::-webkit-scrollbar-thumb {
	background: var(--color-stone-light);
	border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-stone);
}


/* --- src/lib/components/AccessibilityWidget.svelte --- */

	.accessibility-widget {
		--accessibility-top: clamp(96px, 20vh, 180px);
		position: fixed;
		right: var(--space-4);
		top: var(--accessibility-top);
		z-index: var(--z-popover);
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	}

	.accessibility-trigger {
		display: flex;
		align-items: center;
		gap: 0.55rem;
		min-width: 64px;
		min-height: 56px;
		padding: 0.55rem 0.75rem 0.55rem 0.55rem;
		border: 2px solid #ffffff;
		border-radius: 999px;
		background: #061a40;
		box-shadow: 0 14px 34px rgba(6, 5, 47, 0.28);
		color: #ffffff;
		cursor: pointer;
		font-size: 0.88rem;
		font-weight: 850;
		letter-spacing: 0;
		line-height: 1;
		transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
		list-style: none;
	}

	.accessibility-trigger::-webkit-details-marker {
		display: none;
	}

	.trigger-icon {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: #ffffff;
		color: #061a40;
	}

	.trigger-icon svg {
		width: 26px;
		height: 26px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2.1;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.accessibility-trigger:hover {
		border-color: #f4c542;
		background: #7a1027;
		box-shadow: 0 18px 42px rgba(6, 5, 47, 0.38);
	}

	.accessibility-trigger:focus-visible,
	.accessibility-panel a:focus-visible,
	.accessibility-panel button:focus-visible {
		outline: 4px solid #f4c542;
		outline-offset: 4px;
	}

	.accessibility-panel {
		position: absolute;
		top: 0;
		right: calc(100% + var(--space-3));
		width: min(390px, calc(100vw - 32px));
		max-height: min(620px, calc(100vh - var(--accessibility-top) - var(--space-4)));
		overflow: hidden;
		border: 1px solid rgba(6, 26, 64, 0.16);
		border-radius: 16px;
		background: #ffffff;
		box-shadow: 0 24px 70px rgba(6, 5, 47, 0.26);
		color: #111827;
	}

	.panel-scroll {
		max-height: inherit;
		overflow: auto;
		padding: var(--space-4);
		scrollbar-gutter: stable;
	}

	.panel-header {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: var(--space-3);
		padding-bottom: var(--space-3);
		border-bottom: 1px solid #e5e7eb;
	}

	.eyebrow {
		margin: 0 0 0.25rem;
		color: #6b7280;
		font-size: 0.75rem;
		font-weight: 800;
		line-height: 1.2;
		text-transform: uppercase;
	}

	.panel-header h2 {
		margin: 0;
		color: #061a40;
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
		font-size: 1.18rem;
		font-weight: 850;
		line-height: 1.2;
	}

	.close-button {
		display: grid;
		flex: 0 0 auto;
		place-items: center;
		width: 42px;
		height: 42px;
		border: 1px solid #cbd5e1;
		border-radius: 12px;
		background: #f8fafc;
		color: #061a40;
		cursor: pointer;
	}

	.close-button svg {
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2.2;
		stroke-linecap: round;
	}

	.controls {
		display: grid;
		gap: 0.7rem;
		margin-top: var(--space-4);
	}

	.control {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
		min-height: 66px;
		padding: 0.8rem;
		border: 1px solid #d7dee8;
		border-radius: 12px;
		background: #f8fafc;
		color: #111827;
		cursor: pointer;
		text-align: left;
	}

	.control:hover {
		border-color: #9fb2c8;
		background: #eef4fb;
	}

	.control[aria-checked='true'] {
		border-color: #061a40;
		background: #eaf1ff;
	}

	.control-text {
		display: grid;
		gap: 0.2rem;
	}

	.control-label {
		color: #111827;
		font-size: 0.96rem;
		font-weight: 800;
		line-height: 1.2;
	}

	.control-description {
		color: #4b5563;
		font-size: 0.82rem;
		font-weight: 600;
		line-height: 1.35;
	}

	.switch-indicator {
		position: relative;
		flex: 0 0 auto;
		width: 48px;
		height: 28px;
		border: 2px solid #64748b;
		border-radius: 999px;
		background: #ffffff;
	}

	.switch-indicator span {
		position: absolute;
		top: 3px;
		left: 3px;
		width: 18px;
		height: 18px;
		border-radius: 50%;
		background: #64748b;
		transition: transform 0.18s ease, background 0.18s ease;
	}

	.control[aria-checked='true'] .switch-indicator {
		border-color: #061a40;
		background: #061a40;
	}

	.control[aria-checked='true'] .switch-indicator span {
		transform: translateX(20px);
		background: #ffffff;
	}

	.panel-actions {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
		margin-top: var(--space-4);
		padding-top: var(--space-3);
		border-top: 1px solid #e5e7eb;
	}

	.declaration-link {
		color: #061a40;
		font-size: 0.9rem;
		font-weight: 800;
		text-decoration: underline;
		text-decoration-thickness: 0.12em;
		text-underline-offset: 0.18em;
	}

	.reset-button {
		min-height: 42px;
		padding: 0.6rem 0.95rem;
		border: 0;
		border-radius: 12px;
		background: #7a1027;
		color: #ffffff;
		cursor: pointer;
		font-size: 0.9rem;
		font-weight: 850;
	}

	@media (max-width: 640px) {
		.accessibility-widget {
			top: auto;
			right: var(--space-3);
			bottom: var(--space-3);
		}

		.accessibility-trigger {
			width: 60px;
			min-width: 60px;
			min-height: 60px;
			padding: 0;
			justify-content: center;
		}

		.trigger-label {
			position: absolute;
			width: 1px;
			height: 1px;
			overflow: hidden;
			clip: rect(0, 0, 0, 0);
			white-space: nowrap;
			clip-path: inset(50%);
		}

		.accessibility-panel {
			top: auto;
			right: 0;
			bottom: calc(100% + var(--space-3));
			width: min(390px, calc(100vw - 24px));
			max-height: calc(100vh - 108px);
		}

		.panel-actions {
			align-items: stretch;
			flex-direction: column;
		}

		.reset-button {
			width: 100%;
		}
	}



/* --- src/lib/components/EventCard.svelte --- */

	.event-card {
		display: flex;
		align-items: center;
		gap: 1.5rem;
		padding: 1.25rem;
		background: #FFFDF7;
		border-radius: 8px;
		border-left: 4px solid var(--color-gold, #c18c28);
		box-shadow: 0 2px 12px rgba(45, 45, 45, 0.06);
		transition: all 0.3s ease;
		cursor: pointer;
		opacity: 0;
		animation: slideInRight 0.5s ease forwards;
	}

	.event-card:hover {
		transform: translateX(8px);
		box-shadow: 0 4px 20px rgba(6, 5, 47, 0.12);
		border-left-color: var(--color-burgundy, #06052F);
	}

	@keyframes slideInRight {
		from {
			opacity: 0;
			transform: translateX(-20px);
		}
		to {
			opacity: 1;
			transform: translateX(0);
		}
	}

	.event-date {
		flex-shrink: 0;
		width: 60px;
		text-align: center;
		padding: 0.5rem;
		background: linear-gradient(135deg, var(--color-burgundy, #06052F), var(--color-burgundy-dark, #06052F));
		border-radius: 8px;
		color: var(--color-cream, #FDF6E3);
	}

	.event-date .day {
		display: block;
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.75rem;
		font-weight: 600;
		line-height: 1;
	}

	.event-date .month {
		display: block;
		font-size: 0.7rem;
		font-weight: 600;
		letter-spacing: 0.1em;
		margin-top: 0.25rem;
		opacity: 0.9;
	}

	.event-content {
		flex: 1;
		min-width: 0;
	}

	.event-title {
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.1rem;
		font-weight: 600;
		color: var(--color-charcoal, #2D2D2D);
		margin: 0 0 0.5rem 0;
		line-height: 1.3;
	}

	.event-meta {
		display: flex;
		flex-wrap: wrap;
		gap: 1rem;
	}

	.event-time,
	.event-location {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		font-size: 0.85rem;
		color: var(--color-stone, #6B6B6B);
	}

	.event-time svg,
	.event-location svg {
		color: var(--color-gold-ink, #8a5c0d);
	}

	.event-arrow {
		flex-shrink: 0;
		color: var(--color-stone, #6B6B6B);
		opacity: 0;
		transform: translateX(-10px);
		transition: all 0.3s ease;
	}

	.event-card:hover .event-arrow {
		opacity: 1;
		transform: translateX(0);
		color: var(--color-burgundy, #06052F);
	}

	@media (max-width: 480px) {
		.event-card {
			gap: 1rem;
			padding: 1rem;
		}

		.event-date {
			width: 50px;
		}

		.event-date .day {
			font-size: 1.5rem;
		}

		.event-title {
			font-size: 1rem;
		}

		.event-arrow {
			display: none;
		}
	}



/* --- src/lib/components/Footer.svelte --- */

	.footer {
		background-color: var(--color-burgundy);
		color: var(--color-cream);
		margin-top: auto;
	}

	.footer-content {
		padding-block: var(--space-16);
	}

	.footer-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--space-10);
	}

	@media (min-width: 640px) {
		.footer-grid {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	@media (min-width: 1024px) {
		.footer-grid {
			grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
			gap: var(--space-8);
		}
	}

	.footer-column {
		display: flex;
		flex-direction: column;
	}

	.footer-heading {
		font-family: var(--font-display);
		font-size: var(--text-lg);
		font-weight: var(--weight-semibold);
		color: var(--color-cream);
		margin-bottom: var(--space-4);
		position: relative;
		padding-bottom: var(--space-3);
	}

	.footer-heading::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 40px;
		height: 2px;
		background-color: var(--color-gold);
	}

	.footer-description {
		font-size: var(--text-sm);
		line-height: var(--leading-relaxed);
		color: rgba(253, 246, 227, 0.85);
		margin-bottom: var(--space-4);
	}

	.footer-badge {
		display: inline-flex;
		align-items: center;
		padding: var(--space-2) var(--space-4);
		background-color: var(--color-burgundy-dark);
		border: 1px solid var(--color-gold);
		border-radius: var(--radius-sm);
		width: fit-content;
	}

	.badge-text {
		font-family: var(--font-display);
		font-size: var(--text-sm);
		font-weight: var(--weight-medium);
		color: var(--color-gold);
		letter-spacing: var(--tracking-wide);
	}

	.footer-links {
		list-style: none;
		display: flex;
		flex-direction: column;
		gap: var(--space-2);
	}

	.footer-link {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2);
		font-size: var(--text-sm);
		color: rgba(253, 246, 227, 0.85);
		text-decoration: none;
		transition: all var(--transition-fast);
		padding: var(--space-1) 0;
	}

	.footer-link:hover {
		color: var(--color-gold);
		transform: translateX(4px);
	}

	.link-arrow {
		color: var(--color-gold);
		font-weight: var(--weight-bold);
	}

	.contact-list {
		list-style: none;
		display: flex;
		flex-direction: column;
		gap: var(--space-3);
	}

	.contact-item {
		display: flex;
		align-items: flex-start;
		gap: var(--space-3);
		font-size: var(--text-sm);
		color: rgba(253, 246, 227, 0.85);
	}

	.contact-icon {
		width: 18px;
		height: 18px;
		flex-shrink: 0;
		color: var(--color-gold);
		margin-top: 2px;
	}

	.contact-link {
		color: rgba(253, 246, 227, 0.85);
		text-decoration: none;
		transition: color var(--transition-fast);
	}

	.contact-link:hover {
		color: var(--color-gold);
	}

	.footer-social-text {
		font-size: var(--text-sm);
		color: rgba(253, 246, 227, 0.7);
		margin-bottom: var(--space-4);
	}

	.social-links {
		display: flex;
		gap: var(--space-3);
	}

	.social-link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		background-color: var(--color-burgundy-dark);
		border: 1px solid rgba(253, 246, 227, 0.2);
		border-radius: var(--radius-md);
		color: var(--color-cream);
		transition: all var(--transition-fast);
	}

	.social-link:hover {
		background-color: var(--color-gold);
		border-color: var(--color-gold);
		color: var(--color-burgundy-dark);
		transform: translateY(-3px);
	}

	.social-link svg {
		width: 20px;
		height: 20px;
	}

	.social-text {
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 0.75rem;
		font-weight: 800;
		letter-spacing: 0;
	}

	.footer-bottom {
		background-color: var(--color-burgundy-dark);
		border-top: 1px solid rgba(253, 246, 227, 0.1);
	}

	.footer-bottom-content {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: var(--space-3);
		padding-block: var(--space-6);
		text-align: center;
	}

	@media (min-width: 768px) {
		.footer-bottom-content {
			flex-direction: row;
			justify-content: space-between;
		}
	}

	.copyright {
		font-size: var(--text-sm);
		color: rgba(253, 246, 227, 0.7);
	}

	.footer-bottom-links {
		display: flex;
		align-items: center;
		gap: var(--space-3);
	}

	.bottom-link {
		font-size: var(--text-sm);
		color: rgba(253, 246, 227, 0.7);
		text-decoration: none;
		transition: color var(--transition-fast);
	}

	.bottom-link:hover {
		color: var(--color-gold);
	}

	.separator {
		color: rgba(253, 246, 227, 0.3);
	}



/* --- Hero: institutional masthead (no gradient/grid/glow/shimmer) --- */

	.hero {
		position: relative;
		background: var(--color-burgundy-dark);
		border-bottom: 1px solid rgba(193, 140, 40, 0.4);
		padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
	}

	.hero-inner {
		max-width: var(--container-xl);
		margin-inline: auto;
		padding-inline: var(--space-4);
	}

	@media (min-width: 768px) {
		.hero-inner {
			padding-inline: var(--space-8);
		}
	}

	.hero-content {
		border-left: 2px solid var(--color-gold);
		padding-left: clamp(1rem, 3vw, 2rem);
	}

	.school-emblem {
		margin: 0 0 var(--space-3);
		line-height: 1;
	}

	.numeral {
		font-family: var(--font-display);
		font-size: clamp(2.5rem, 6vw, 4rem);
		font-weight: 700;
		line-height: 1;
		color: var(--color-gold);
		letter-spacing: 0.01em;
	}

	.hero-name {
		margin: 0 0 var(--space-6);
		max-width: 46ch;
		letter-spacing: normal;
		text-wrap: balance;
		font-family: var(--font-body);
		font-size: clamp(1.05rem, 1.6vw, 1.35rem);
		font-weight: 400;
		line-height: 1.5;
		color: var(--color-cream);
	}

	.cta-button {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		padding-bottom: 0.25rem;
		border-bottom: 1px solid var(--color-gold);
		color: var(--color-gold);
		font-family: var(--font-body);
		font-size: 1rem;
		font-weight: 600;
		transition: gap 0.3s ease, color 0.3s ease;
	}

	.cta-button:hover {
		gap: 0.75rem;
		color: var(--color-cream);
		border-bottom-color: var(--color-cream);
	}

	.cta-button svg {
		width: 18px;
		height: 18px;
		flex-shrink: 0;
	}



/* --- src/lib/components/Navigation.svelte --- */

	.header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: var(--z-fixed);
		background-color: rgba(253, 246, 227, 0.97);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		box-shadow: 0 1px 0 rgba(6, 5, 47, 0.05);
		transition: box-shadow 0.2s ease;
	}

	.header.scrolled {
		box-shadow: 0 1px 8px rgba(6, 5, 47, 0.12);
	}

	.top-strip {
		height: 28px;
		border-bottom: 1px solid rgba(6, 5, 47, 0.08);
	}

	.top-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 100%;
		max-width: 1400px;
		padding-inline: var(--space-4);
	}

	.social-links {
		display: flex;
		align-items: center;
		gap: var(--space-2);
	}

	.social-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		color: var(--color-burgundy);
		border-radius: var(--radius-sm);
		transition: background var(--transition-fast), color var(--transition-fast);
	}

	.social-link:hover {
		background: rgba(193, 140, 40, 0.16);
		color: var(--color-gold-ink);
	}

	.social-link svg {
		width: 16px;
		height: 16px;
		fill: currentColor;
	}

	.social-text {
		width: auto;
		padding: 0 var(--space-2);
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 0.72rem;
		font-weight: 800;
		letter-spacing: 0;
	}

	.nav {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: calc(var(--header-height) - 28px);
		max-width: 1400px;
		padding-inline: var(--space-4);
	}

	.logo {
		display: flex;
		align-items: center;
		gap: var(--space-3);
		text-decoration: none;
		transition: transform var(--transition-fast);
		min-width: 0;
	}

	.logo:hover {
		transform: scale(1.02);
	}

	.logo-mark {
		width: 42px;
		height: 42px;
		border-radius: 50%;
		object-fit: cover;
		border: 2px solid var(--color-gold);
		background: var(--color-cream);
	}

	.logo-copy {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}

	.logo-text {
		font-family: var(--font-display);
		font-size: var(--text-xl);
		font-weight: var(--weight-bold);
		color: var(--color-burgundy);
		line-height: 1;
		letter-spacing: var(--tracking-tight);
		white-space: nowrap;
	}

	.logo-subtitle {
		font-family: var(--font-body);
		font-size: var(--text-xs);
		color: var(--color-stone);
		font-weight: var(--weight-regular);
		margin-top: 2px;
		white-space: nowrap;
	}

	.nav-links {
		display: none;
		list-style: none;
		gap: 0.15rem;
	}

	@media (min-width: 1180px) {
		.nav-links {
			display: flex;
			align-items: center;
		}
	}

	html.a11y-large-text .nav-links {
		display: none;
	}

	.nav-item {
		position: relative;
	}

	.nav-link {
		display: block;
		padding: 0.6rem 0.55rem;
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 0.94rem;
		font-weight: 650;
		line-height: 1.15;
		color: var(--color-charcoal);
		text-decoration: none;
		border-radius: var(--radius-sm);
		transition: all var(--transition-fast);
		position: relative;
		white-space: nowrap;
	}

	.nav-link.info-link {
		min-width: 3.4rem;
		overflow: visible;
		text-align: center;
		z-index: calc(var(--z-dropdown) + 2);
	}

	.info-tooltip {
		position: absolute;
		top: calc(100% + 0.55rem);
		left: 50%;
		width: max-content;
		max-width: 240px;
		padding: 0.45rem 0.65rem;
		border: 1px solid rgba(193, 140, 40, 0.32);
		border-radius: var(--radius-md);
		background: rgba(6, 5, 47, 0.96);
		box-shadow: 0 12px 28px rgba(6, 5, 47, 0.2);
		color: var(--color-cream);
		font-size: 0.8rem;
		font-weight: 650;
		line-height: 1.2;
		opacity: 0;
		pointer-events: none;
		transform: translate(-50%, -0.25rem) scale(0.96);
		transition: opacity var(--transition-fast), transform var(--transition-base);
	}

	.info-tooltip::before {
		content: '';
		position: absolute;
		top: -5px;
		left: 50%;
		width: 8px;
		height: 8px;
		background: rgba(6, 5, 47, 0.96);
		border-left: 1px solid rgba(193, 140, 40, 0.32);
		border-top: 1px solid rgba(193, 140, 40, 0.32);
		transform: translateX(-50%) rotate(45deg);
	}

	.nav-link.info-link:hover .info-tooltip,
	.nav-link.info-link:focus .info-tooltip {
		opacity: 1;
		transform: translate(-50%, 0) scale(1);
	}

	.chevron {
		margin-left: 0.3rem;
		font-size: 0.85em;
		line-height: 1;
	}

	.nav-link::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%) scaleX(0);
		width: calc(100% - var(--space-6));
		height: 2px;
		background-color: var(--color-gold);
		transition: transform var(--transition-fast);
	}

	.nav-link:hover {
		color: var(--color-burgundy);
	}

	.nav-link:hover::after,
	.nav-link.active::after {
		transform: translateX(-50%) scaleX(1);
	}

	.nav-link.active {
		color: var(--color-burgundy);
		font-weight: var(--weight-semibold);
	}

	.dropdown-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: var(--z-dropdown);
		width: 280px;
		padding: var(--space-2);
		background: var(--color-cream);
		border: 1px solid rgba(6, 5, 47, 0.1);
		border-radius: var(--radius-md);
		box-shadow: 0 18px 42px rgba(6, 5, 47, 0.16);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		clip-path: inset(0 0 100% 0 round var(--radius-md));
		transform: translateY(4px) scale(0.98);
		transform-origin: top center;
		transition:
			opacity 180ms ease,
			clip-path 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
			transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
			visibility 180ms ease;
	}

	.nav-item:hover .dropdown-menu,
	.nav-item:focus-within .dropdown-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		clip-path: inset(0 0 0 0 round var(--radius-md));
		transform: translateY(0) scale(1);
	}

	.dropdown-menu li {
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity 180ms ease, transform 220ms ease;
	}

	.nav-item:hover .dropdown-menu li,
	.nav-item:focus-within .dropdown-menu li {
		opacity: 1;
		transform: translateY(0);
	}

	.nav-item:hover .dropdown-menu li:nth-child(1),
	.nav-item:focus-within .dropdown-menu li:nth-child(1) { transition-delay: 25ms; }
	.nav-item:hover .dropdown-menu li:nth-child(2),
	.nav-item:focus-within .dropdown-menu li:nth-child(2) { transition-delay: 45ms; }
	.nav-item:hover .dropdown-menu li:nth-child(3),
	.nav-item:focus-within .dropdown-menu li:nth-child(3) { transition-delay: 65ms; }
	.nav-item:hover .dropdown-menu li:nth-child(4),
	.nav-item:focus-within .dropdown-menu li:nth-child(4) { transition-delay: 85ms; }
	.nav-item:hover .dropdown-menu li:nth-child(5),
	.nav-item:focus-within .dropdown-menu li:nth-child(5) { transition-delay: 105ms; }
	.nav-item:hover .dropdown-menu li:nth-child(n + 6),
	.nav-item:focus-within .dropdown-menu li:nth-child(n + 6) { transition-delay: 125ms; }

	.dropdown-link {
		display: block;
		padding: 0.65rem 0.75rem;
		border-radius: var(--radius-sm);
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 1rem;
		font-weight: 550;
		line-height: 1.25;
		color: var(--color-charcoal);
		transition: background var(--transition-fast), color var(--transition-fast);
	}

	.dropdown-link:hover,
	.dropdown-link.active {
		background: rgba(193, 140, 40, 0.14);
		color: var(--color-burgundy);
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		background: transparent;
		border: none;
		cursor: pointer;
		z-index: calc(var(--z-fixed) + 10);
	}

	@media (min-width: 1180px) {
		.menu-toggle {
			display: none;
		}
	}

	html.a11y-large-text .menu-toggle {
		display: flex;
	}

	.hamburger {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 24px;
		height: 24px;
		position: relative;
	}

	.hamburger-line {
		display: block;
		width: 24px;
		height: 2px;
		background-color: var(--color-burgundy);
		border-radius: var(--radius-full);
		transition: all var(--transition-fast);
		position: absolute;
	}

	.hamburger-line:nth-child(1) {
		transform: translateY(-7px);
	}

	.hamburger-line:nth-child(2) {
		transform: translateY(0);
	}

	.hamburger-line:nth-child(3) {
		transform: translateY(7px);
	}

	.hamburger.open .hamburger-line:nth-child(1) {
		transform: translateY(0) rotate(45deg);
	}

	.hamburger.open .hamburger-line:nth-child(2) {
		opacity: 0;
	}

	.hamburger.open .hamburger-line:nth-child(3) {
		transform: translateY(0) rotate(-45deg);
	}

	.mobile-nav {
		position: fixed;
		top: var(--header-height);
		right: 0;
		width: 100%;
		max-width: 320px;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-cream);
		transform: translateX(100%);
		transition: transform var(--transition-base);
		z-index: calc(var(--z-fixed) - 1);
		overflow-y: auto;
		box-shadow: var(--shadow-xl);
	}

	.mobile-nav.open {
		transform: translateX(0);
	}

	@media (max-width: 640px) {
		.mobile-nav {
			left: 0;
			right: auto;
			max-width: none;
		}
	}

	@media (min-width: 1180px) {
		.mobile-nav {
			display: none;
		}
	}

	html.a11y-large-text .mobile-nav {
		display: block;
	}

	.mobile-nav-links {
		list-style: none;
		padding: var(--space-4);
	}

	.mobile-nav-link {
		display: block;
		padding: var(--space-4);
		font-family: var(--font-body);
		font-size: var(--text-lg);
		font-weight: var(--weight-medium);
		color: var(--color-charcoal);
		text-decoration: none;
		border-bottom: 1px solid rgba(107, 107, 107, 0.1);
		transition: all var(--transition-fast);
	}

	.mobile-submenu {
		padding: 0 0 var(--space-2) var(--space-5);
	}

	.mobile-submenu-link {
		display: block;
		padding: var(--space-2) var(--space-3);
		border-left: 1px solid rgba(6, 5, 47, 0.14);
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 0.95rem;
		color: var(--color-stone);
	}

	.mobile-submenu-link:hover,
	.mobile-submenu-link.active {
		color: var(--color-burgundy);
		background: rgba(193, 140, 40, 0.12);
	}

	.mobile-nav-link:hover,
	.mobile-nav-link.active {
		color: var(--color-burgundy);
		padding-left: var(--space-6);
	}

	.mobile-nav-link.active {
		font-weight: var(--weight-semibold);
		border-left: 3px solid var(--color-gold);
	}

	.nav-overlay {
		position: fixed;
		inset: 0;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: calc(var(--z-fixed) - 2);
		animation: fadeIn var(--transition-fast) ease-out forwards;
	}

	@media (min-width: 1180px) {
		.nav-overlay {
			display: none;
		}
	}

	html.a11y-large-text .nav-overlay {
		display: block;
	}



/* --- src/lib/components/NewsCard.svelte --- */

  .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #FFFDF7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
  }

  .news-card:focus-visible {
    outline: 3px solid var(--color-gold, #c18c28);
    outline-offset: 3px;
  }

  .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(6, 5, 47, 0.15);
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
  }

  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .card-image.placeholder {
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 80% 20%, rgba(193, 140, 40, 0.35), transparent 32%),
      linear-gradient(135deg, #06052f, #201f58);
  }

  .image-placeholder {
    color: rgba(253, 246, 227, 0.92);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .news-card:hover .card-image img {
    transform: scale(1.08);
  }

  .news-card .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #06052F;
    color: #FDF6E3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    z-index: 1;
  }

  .card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
  }

  .news-card time {
    color: var(--color-gold-ink, #8a5c0d);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Source Serif 4', Georgia, serif;
  }

  .news-card h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    color: #2D2D2D;
    margin: 12px 0;
    line-height: 1.3;
    font-weight: 600;
  }

  .news-card p {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #06052F;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease, color 0.3s ease;
  }

  .news-card:hover .read-more {
    gap: 12px;
    color: var(--color-gold-ink, #8a5c0d);
  }

  .read-more svg {
    transition: transform 0.3s ease;
  }

  .news-card:hover .read-more svg {
    transform: translateX(4px);
  }



/* --- src/lib/components/PageHeader.svelte --- */

  .page-header {
    background: linear-gradient(135deg, #06052F 0%, #06052F 100%);
    padding: calc(80px + var(--header-height)) 0 60px;
    position: relative;
    overflow: hidden;
    text-align: left;
    min-height: 0;
  }

  .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
  }

  .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
  }

  .breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .breadcrumbs a {
    color: #FDF6E3;
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Source Serif 4', Georgia, serif;
    transition: opacity 0.3s ease;
  }

  .breadcrumbs a:hover {
    opacity: 1;
  }

  .separator {
    color: #c18c28;
    opacity: 0.6;
  }

  .current {
    color: #c18c28;
    font-size: 0.9rem;
    font-family: 'Source Serif 4', Georgia, serif;
  }

  .page-header h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #FDF6E3;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
  }

  .header-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #c18c28 0%, #c18c28 50%, #c18c28 100%);
  }




/* --- src/routes/+error.svelte --- */

	.error-container {
		min-height: 100vh;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: var(--color-cream, #FDF6E3);
		padding: var(--spacing-lg, 2rem);
	}

	.error-content {
		text-align: center;
		max-width: 600px;
	}

	.error-code {
		font-family: var(--font-display, 'Fraunces', serif);
		font-size: clamp(4rem, 10vw, 8rem);
		color: var(--color-burgundy, #06052F);
		margin: 0 0 var(--spacing-md, 1rem);
		font-weight: 700;
		line-height: 1;
	}

	.error-message {
		font-family: var(--font-body, 'Source Serif 4', serif);
		font-size: clamp(1.25rem, 2.5vw, 1.5rem);
		color: var(--color-burgundy, #06052F);
		margin: 0 0 var(--spacing-xl, 3rem);
		opacity: 0.8;
	}

	.back-link {
		display: inline-block;
		padding: var(--spacing-sm, 0.75rem) var(--spacing-lg, 2rem);
		background-color: var(--color-burgundy, #06052F);
		color: var(--color-cream, #FDF6E3);
		text-decoration: none;
		font-family: var(--font-body, 'Source Serif 4', serif);
		font-size: 1rem;
		border-radius: 4px;
		transition: opacity 0.2s ease;
	}

	.back-link:hover {
		opacity: 0.9;
	}



/* --- src/routes/+layout.svelte --- */

	.app {
		display: flex;
		flex-direction: column;
		min-height: 100vh;
	}

	.main-content {
		flex: 1;
		padding-top: var(--header-height);
	}

	.main-content.admin-content {
		padding-top: 0;
	}

	.main-content:focus-visible {
		outline: none;
	}

	.skip-link {
		position: fixed;
		top: 0;
		left: 0;
		z-index: calc(var(--z-fixed) + 20);
		padding: 0.9rem 1.4rem;
		background: var(--color-burgundy);
		color: var(--color-cream);
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-weight: 700;
		text-decoration: none;
		border-radius: 0 0 var(--radius-md) 0;
		transform: translateY(-120%);
		transition: transform 0.15s ease;
	}

	.skip-link:focus {
		transform: translateY(0);
		outline: 3px solid var(--color-gold);
		outline-offset: -3px;
	}



/* --- src/routes/+page.svelte --- */

	.section {
		padding: var(--spacing-3xl) 0;
	}

	.section-header {
		text-align: center;
		margin-bottom: var(--spacing-2xl);
	}

	.section-title {
		font-family: var(--font-display);
		font-size: clamp(2rem, 5vw, 3rem);
		color: var(--color-burgundy-dark);
		margin-bottom: var(--spacing-sm);
	}

	.section-subtitle {
		font-size: 1.125rem;
		color: var(--color-stone);
		max-width: 600px;
		margin: 0 auto;
	}

	.section-footer {
		text-align: center;
		margin-top: var(--spacing-2xl);
	}

	.view-all-link {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		color: var(--color-burgundy);
		font-weight: 600;
		font-size: 1rem;
		transition: gap 0.3s ease, color 0.3s ease;
	}

	.view-all-link:hover {
		gap: 0.75rem;
		color: var(--color-gold-ink);
	}

	.news-section {
		background: var(--color-cream);
	}

	.news-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
		gap: var(--spacing-lg);
	}

	.news-item {
		min-width: 0;
	}

	.events-section {
		background: var(--color-ivory);
	}

	.events-timeline {
		position: relative;
		max-width: 700px;
		margin: 0 auto;
	}

	.timeline-line {
		display: none;
	}

	@media (min-width: 768px) {
		.timeline-line {
			display: block;
			position: absolute;
			left: 32px;
			top: 0;
			bottom: 0;
			width: 2px;
			background: linear-gradient(
				to bottom,
				var(--color-gold),
				var(--color-burgundy)
			);
			opacity: 0.3;
		}
	}

	.events-list {
		display: flex;
		flex-direction: column;
		gap: var(--spacing-md);
	}

	.about-section {
		background: var(--color-burgundy-dark);
		color: var(--color-cream);
	}

	.about-section .section-title {
		color: var(--color-cream);
	}

	.about-content {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--spacing-2xl);
		align-items: start;
	}

	@media (min-width: 1024px) {
		.about-content {
			grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
			gap: var(--space-16);
		}
	}

	.about-text {
		text-align: left;
	}

	.about-description {
		font-size: 1.1rem;
		line-height: 1.8;
		margin-bottom: var(--spacing-md);
		color: var(--color-cream);
		opacity: 0.9;
	}

	.about-link {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		margin-top: var(--spacing-md);
		color: var(--color-gold);
		font-weight: 600;
		transition: gap 0.3s ease;
	}

	.about-link:hover {
		gap: 0.75rem;
	}

	/* Fact sheet, not cards: hairline rules, no glass, no count-up. */
	.stats-grid {
		display: grid;
		grid-template-columns: 1fr;
		border-top: 1px solid rgba(193, 140, 40, 0.45);
	}

	.stat-card {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: var(--space-6);
		padding: var(--space-4) 0;
		border-bottom: 1px solid rgba(253, 246, 227, 0.16);
		text-align: left;
	}

	.stat-value {
		order: 2;
		font-family: var(--font-display);
		font-size: clamp(1.75rem, 3.5vw, 2.5rem);
		font-weight: 700;
		color: var(--color-gold);
		line-height: 1;
		font-variant-numeric: lining-nums tabular-nums;
	}

	.stat-label {
		order: 1;
		font-size: 1rem;
		line-height: 1.4;
		color: var(--color-cream);
		opacity: 0.85;
	}

	@keyframes fadeInUp {
		from {
			opacity: 0;
			transform: translateY(20px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.gallery-section {
		background: var(--color-cream);
	}

	.gallery-masonry {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: var(--spacing-md);
	}

	@media (min-width: 768px) {
		.gallery-masonry {
			grid-template-columns: repeat(3, 1fr);
		}
	}

	.gallery-item {
		position: relative;
		aspect-ratio: 4 / 3;
		overflow: hidden;
		border-radius: 8px;
		cursor: pointer;
		opacity: 0;
		animation: fadeInUp 0.5s ease forwards;
		border: none;
		padding: 0;
		background: none;
	}

	.gallery-item:nth-child(1),
	.gallery-item:nth-child(4) {
		grid-row: span 2;
		aspect-ratio: auto;
	}

	@media (max-width: 767px) {
		.gallery-item:nth-child(1),
		.gallery-item:nth-child(4) {
			grid-row: span 1;
			aspect-ratio: 4 / 3;
		}
	}

	.gallery-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.5s ease;
	}

	.gallery-item:hover img {
		transform: scale(1.1);
	}

	.gallery-overlay {
		position: absolute;
		inset: 0;
		background: linear-gradient(
			to top,
			rgba(45, 45, 45, 0.9) 0%,
			rgba(45, 45, 45, 0.4) 40%,
			transparent 100%
		);
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		padding: var(--spacing-md);
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.gallery-item:hover .gallery-overlay,
	.gallery-item:focus .gallery-overlay {
		opacity: 1;
	}

	.gallery-category {
		font-size: 0.75rem;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		color: var(--color-gold);
		margin-bottom: 0.25rem;
	}

	.gallery-title {
		font-family: var(--font-display);
		font-size: 1rem;
		color: white;
		margin: 0;
	}

	.contact-section {
		background: var(--color-ivory);
	}

	.contact-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--spacing-2xl);
	}

	@media (min-width: 1024px) {
		.contact-grid {
			grid-template-columns: 1fr 1.2fr;
		}
	}

	.contact-info {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--spacing-md);
	}

	@media (min-width: 640px) {
		.contact-info {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	@media (min-width: 1024px) {
		.contact-info {
			grid-template-columns: 1fr;
		}
	}

	.contact-card {
		display: flex;
		align-items: flex-start;
		gap: var(--spacing-md);
		padding: var(--spacing-md);
		background: white;
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.contact-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	}

	.contact-card .contact-icon {
		flex-shrink: 0;
		width: 48px;
		height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: linear-gradient(135deg, var(--color-burgundy), var(--color-burgundy-dark));
		border-radius: 8px;
		color: var(--color-cream);
	}

	.contact-details h3 {
		font-family: var(--font-display);
		font-size: 0.9rem;
		font-weight: 600;
		color: var(--color-burgundy-dark);
		margin-bottom: 0.25rem;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}

	.contact-details p {
		color: var(--color-charcoal);
		margin: 0;
	}

	.contact-details a {
		color: var(--color-charcoal);
		transition: color 0.3s ease;
	}

	.contact-details a:hover {
		color: var(--color-burgundy);
	}

	.map-container {
		min-height: 300px;
		border-radius: 12px;
		overflow: hidden;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
		background: white;
	}

	.map-container iframe {
		display: block;
	}

	.map-placeholder {
		min-height: 300px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: var(--spacing-xl);
		padding: var(--spacing-xl);
		background:
			linear-gradient(135deg, rgba(6, 5, 47, 0.92), rgba(6, 5, 47, 0.74)),
			repeating-linear-gradient(
				45deg,
				rgba(253, 246, 227, 0.08) 0,
				rgba(253, 246, 227, 0.08) 1px,
				transparent 1px,
				transparent 18px
			);
		color: var(--color-cream);
	}

	.map-kicker {
		display: inline-block;
		margin-bottom: var(--spacing-xs);
		color: var(--color-gold);
		font-size: 0.78rem;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.08em;
	}

	.map-placeholder h3 {
		margin: 0 0 var(--spacing-xs);
		font-family: var(--font-display);
		font-size: clamp(1.35rem, 3vw, 2rem);
		color: var(--color-cream);
	}

	.map-placeholder p {
		margin: 0;
		max-width: 32rem;
		color: rgba(253, 246, 227, 0.86);
		font-size: 1.05rem;
	}

	.map-actions {
		display: flex;
		flex-wrap: wrap;
		gap: var(--spacing-sm);
	}

	.map-button,
	.map-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 0.75rem 1rem;
		border-radius: 8px;
		font-weight: 800;
		text-decoration: none;
		cursor: pointer;
		transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	}

	.map-button {
		border: 1px solid var(--color-gold);
		background: var(--color-gold);
		color: var(--color-burgundy-dark);
	}

	.map-link {
		border: 1px solid rgba(253, 246, 227, 0.5);
		background: transparent;
		color: var(--color-cream);
	}

	.map-button:hover,
	.map-link:hover {
		transform: translateY(-1px);
	}

	.map-link:hover {
		background: rgba(253, 246, 227, 0.12);
		border-color: var(--color-cream);
	}

	.lightbox {
		position: fixed;
		inset: 0;
		z-index: 1000;
		background: rgba(0, 0, 0, 0.95);
		display: flex;
		align-items: center;
		justify-content: center;
		padding: var(--spacing-lg);
		animation: fadeIn 0.3s ease;
	}

	@keyframes fadeIn {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	.lightbox-close {
		position: absolute;
		top: var(--spacing-lg);
		right: var(--spacing-lg);
		color: white;
		background: none;
		border: none;
		cursor: pointer;
		padding: 0.5rem;
		transition: transform 0.3s ease;
	}

	.lightbox-close:hover {
		transform: scale(1.1);
	}

	.lightbox-content {
		max-width: 90vw;
		max-height: 90vh;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.lightbox-content img {
		max-width: 100%;
		max-height: 80vh;
		object-fit: contain;
		border-radius: 4px;
	}

	.lightbox-caption {
		text-align: center;
		margin-top: var(--spacing-md);
		color: white;
	}

	.lightbox-category {
		font-size: 0.8rem;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		color: var(--color-gold);
	}

	.lightbox-caption h3 {
		font-family: var(--font-display);
		font-size: 1.25rem;
		margin: 0.5rem 0 0;
	}



/* --- src/routes/[...path]/+page.svelte --- */

	.page-content:has(.page-shell) {
		min-height: 48vh;
		background:
			linear-gradient(180deg, rgba(253, 246, 227, 0.92), rgba(250, 247, 240, 0.98)),
			var(--color-cream);
		padding: var(--space-16) var(--space-4) var(--space-20);
	}

	.page-shell {
		display: grid;
		grid-template-columns: minmax(220px, 300px) minmax(0, 820px);
		gap: var(--space-10);
		max-width: 1180px;
		margin: 0 auto;
		align-items: start;
	}

	.page-aside {
		position: sticky;
		top: calc(var(--header-height) + var(--space-6));
		padding-block: var(--space-2);
	}

	.page-article {
		border: 1px solid rgba(6, 5, 47, 0.08);
		border-radius: var(--radius-lg);
		background: rgba(255, 253, 247, 0.82);
		box-shadow: 0 18px 45px rgba(6, 5, 47, 0.07);
	}

	.rich-content {
		padding: clamp(1.5rem, 4vw, 3.5rem);
		color: var(--color-charcoal);
	}

	.page-aside .eyebrow {
		margin: 0 0 var(--space-3);
		color: var(--color-gold-ink);
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 0.78rem;
		font-weight: 800;
		letter-spacing: 0;
		line-height: var(--leading-relaxed);
		text-transform: uppercase;
	}

	.page-aside h2 {
		margin-bottom: var(--space-6);
		color: var(--color-burgundy);
		font-size: var(--text-2xl);
		letter-spacing: var(--tracking-tight);
	}

	.rich-content * {
		letter-spacing: 0;
	}

	.rich-content h2,
	.rich-content h3 {
		position: relative;
		margin-top: var(--space-10);
		margin-bottom: var(--space-4);
		color: var(--color-burgundy);
	}

	.rich-content h2:first-child,
	.rich-content h3:first-child {
		margin-top: 0;
	}

	.rich-content h2 {
		padding-top: var(--space-5);
		border-top: 1px solid rgba(6, 5, 47, 0.12);
		font-size: var(--text-xl);
	}

	.rich-content h3 {
		font-size: var(--text-lg);
	}

	.rich-content p {
		margin-bottom: var(--space-4);
		font-size: 1.06rem;
		line-height: 1.78;
	}

	.rich-content p:empty {
		display: none;
	}

	.rich-content hr {
		margin: var(--space-6) 0;
		border: 0;
		border-top: 1px solid rgba(6, 5, 47, 0.12);
	}

	.rich-content ul,
	.rich-content ol {
		display: grid;
		gap: var(--space-2);
		margin: var(--space-4) 0 var(--space-6);
		padding-left: 1.2rem;
		list-style: disc;
	}

	.rich-content ol {
		list-style: decimal;
	}

	.rich-content li {
		line-height: 1.65;
		padding-left: var(--space-1);
	}

	.rich-content a {
		display: inline-flex;
		align-items: center;
		max-width: 100%;
		color: var(--color-burgundy);
		font-weight: 700;
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.rich-content h2 + ul li a,
	.rich-content h3 + ul li a {
		padding: 0.45rem 0;
	}

	.rich-content figure {
		margin: 0;
		max-width: 100%;
	}

	.rich-content .wp-block-table {
		margin: 0;
		overflow: visible;
		border: 0;
	}

	.rich-content table,
	.rich-content .wp-block-table table,
	.rich-content table.has-fixed-layout {
		/* block + overflow-x: szerokie tabele (np. dyzury) skroluja sie na telefonie
		   zamiast rozpychac strone. */
		display: block;
		width: 100%;
		margin: var(--space-5) 0 var(--space-8);
		border-collapse: collapse;
		overflow-x: auto;
		font-size: 0.98rem;
		table-layout: auto;
	}

	.rich-content .wp-block-table thead {
		border-bottom: 0;
	}

	.rich-content th,
	.rich-content td,
	.rich-content .wp-block-table th,
	.rich-content .wp-block-table td,
	.rich-content .wp-block-table .has-fixed-layout th,
	.rich-content .wp-block-table .has-fixed-layout td {
		padding: 0.7rem 0.9rem;
		border: 1px solid rgba(6, 5, 47, 0.12);
		text-align: left;
		vertical-align: top;
		word-break: normal;
		overflow-wrap: break-word;
	}

	.rich-content thead th,
	.rich-content .wp-block-table thead th {
		background: var(--color-burgundy);
		color: var(--color-cream);
		font-weight: 700;
		white-space: nowrap;
	}

	.rich-content tbody tr:nth-child(even) {
		background: rgba(6, 5, 47, 0.04);
	}

	.rich-content blockquote {
		margin: var(--space-6) 0;
		padding: var(--space-4) var(--space-5);
		border-left: 4px solid var(--color-gold);
		background: rgba(193, 140, 40, 0.08);
		color: var(--color-charcoal);
	}

	.rich-content img {
		width: 100%;
		height: auto;
		margin: var(--space-5) 0 var(--space-8);
		border-radius: var(--radius-md);
		border: 1px solid rgba(6, 5, 47, 0.1);
		box-shadow: 0 14px 35px rgba(6, 5, 47, 0.12);
	}

	.rich-content code {
		display: inline-block;
		max-width: 100%;
		padding: 0.2rem 0.45rem;
		border-radius: var(--radius-sm);
		background: rgba(6, 5, 47, 0.08);
		color: var(--color-burgundy);
		font-family: var(--font-mono);
		font-size: 0.94em;
		overflow-wrap: anywhere;
	}

	.page-shell .back-link {
		display: inline-flex;
		align-items: center;
		min-height: 42px;
		padding: 0 var(--space-4);
		border-radius: var(--radius-md);
		background: var(--color-burgundy);
		color: var(--color-cream);
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 0.94rem;
		font-weight: 700;
		transition: background var(--transition-fast), transform var(--transition-fast);
	}

	.page-shell .back-link:hover {
		background: var(--color-gold);
		color: var(--color-burgundy);
		transform: translateY(-1px);
	}

	@media (max-width: 900px) {
		.page-shell {
			grid-template-columns: 1fr;
			gap: var(--space-6);
		}

		.page-aside {
			position: static;
		}
	}

	@media (max-width: 640px) {
		.page-content:has(.page-shell) {
			padding-inline: var(--space-3);
		}

		.page-article {
			border-radius: var(--radius-md);
		}

		.rich-content {
			padding: var(--space-5);
		}
	}



/* --- src/routes/aktualnosci/+page.svelte --- */

  .page-content {
    background: #FDF6E3;
    min-height: 60vh;
    padding: 60px 0 80px;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.3s forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .filter-label {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: #2D2D2D;
    font-size: 1rem;
  }

  .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-btn {
    background: transparent;
    border: 2px solid #06052F;
    color: #06052F;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .filter-btn:hover {
    background: rgba(6, 5, 47, 0.1);
  }

  .filter-btn.active {
    background: #06052F;
    color: #FDF6E3;
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  @media (max-width: 1024px) {
    .news-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 640px) {
    .news-grid {
      grid-template-columns: 1fr;
    }

    .filters {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  .no-results {
    text-align: center;
    padding: 60px 20px;
  }

  .no-results p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    color: #555;
  }



/* --- src/routes/aktualnosci/[slug]/+page.svelte --- */

  .article-page {
    background: #FDF6E3;
    min-height: 60vh;
  }

  .article-content {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #FDF6E3, transparent);
  }

  .article-container {
    max-width: 800px;
    margin: -60px auto 0;
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
  }

  .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(6, 5, 47, 0.1);
  }

  .category {
    background: #06052F;
    color: #FDF6E3;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  time {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--color-gold-ink, #8a5c0d);
    font-size: 1rem;
    font-weight: 500;
  }

  .article-body {
    margin-bottom: 50px;
  }

  .article-body p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2D2D2D;
    margin-bottom: 24px;
  }

  .article-body ul,
  .article-body ol,
  .article-body blockquote,
  .article-body pre {
    margin-bottom: 24px;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 28px;
  }

  .article-body a {
    color: #7A0019;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .article-body blockquote {
    padding-left: 20px;
    border-left: 4px solid #c18c28;
    color: #555;
  }

  .article-body p:first-child {
    font-size: 1.3rem;
    color: #555;
  }

  .article-footer {
    padding-top: 30px;
    border-top: 2px solid rgba(6, 5, 47, 0.1);
  }

  .back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #06052F;
    color: #FDF6E3;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .back-button:hover {
    background: #06052F;
    transform: translateX(-5px);
  }

  @media (max-width: 640px) {
    .hero-image {
      height: 250px;
    }

    .article-body p {
      font-size: 1.05rem;
    }

    .article-body p:first-child {
      font-size: 1.15rem;
    }
  }



/* --- src/routes/dla-uczniow/+page.svelte --- */

	.page-content {
		background: #FDF6E3;
	}

	.section {
		padding: 80px 0;
	}

	.container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 24px;
	}

	.section-title {
		font-family: 'Fraunces', Georgia, serif;
		font-size: clamp(1.8rem, 4vw, 2.5rem);
		color: #06052F;
		text-align: center;
		margin-bottom: 40px;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
	}

	@keyframes fadeInUp {
		from {
			opacity: 0;
			transform: translateY(30px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.schedule-grid {
		display: grid;
		grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
		gap: 32px;
		align-items: start;
		max-width: 960px;
		margin: 0 auto;
	}

	.schedule-wrapper,
	.plan-panel {
		opacity: 0;
		animation: fadeInUp 0.6s ease 0.2s forwards;
	}

	.panel-title {
		margin-bottom: 16px;
		color: #06052f;
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.35rem;
	}

	.schedule-table {
		width: 100%;
		border-collapse: collapse;
		background: #FFFDF7;
		border-radius: 12px;
		overflow: hidden;
		box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
	}

	.schedule-table th {
		background: #06052F;
		color: #FDF6E3;
		padding: 16px;
		font-family: 'Fraunces', Georgia, serif;
		font-weight: 600;
		text-align: left;
	}

	.schedule-table td {
		padding: 14px 16px;
		font-family: 'Source Serif 4', Georgia, serif;
		color: #2D2D2D;
		border-bottom: 1px solid rgba(6, 5, 47, 0.1);
	}

	.schedule-table tr:last-child td {
		border-bottom: none;
	}

	.schedule-table tr:hover td {
		background: rgba(6, 5, 47, 0.05);
	}

	.lesson-nr {
		font-weight: 600;
		color: #06052F;
		width: 100px;
	}

	.plan-panel {
		padding: 28px;
		border: 1px solid rgba(6, 5, 47, 0.12);
		border-radius: 12px;
		background: #fffdf7;
		box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
	}

	.plan-current {
		margin-bottom: 8px;
		color: var(--color-gold-ink, #8a5c0d);
		font-family: 'Source Serif 4', Georgia, serif;
		font-weight: 700;
	}

	.plan-subtitle {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		line-height: 1.6;
	}

	.plan-list {
		display: grid;
		gap: 8px;
		margin: 20px 0 24px;
		padding-left: 1.1rem;
		list-style: disc;
		font-family: 'Source Serif 4', Georgia, serif;
		color: #2d2d2d;
	}

	.plan-button {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 20px;
		border-radius: 9px;
		background: #06052f;
		color: #fdf6e3;
		font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
		font-size: 0.92rem;
		font-weight: 700;
		transition: background 0.2s ease, transform 0.2s ease;
	}

	.plan-button:hover {
		background: #c18c28;
		color: #06052f;
		transform: translateY(-1px);
	}

	.plan-archive {
		margin-top: 16px;
		font-family: 'Source Serif 4', Georgia, serif;
		color: #777;
		font-size: 0.9rem;
	}

	.announcements-section {
		background: #2D2D2D;
	}

	.announcements-section .section-title {
		color: #FDF6E3;
	}

	.announcements-list {
		max-width: 800px;
		margin: 0 auto;
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.announcement-card {
		background: #FFFDF7;
		padding: 24px;
		border-radius: 12px;
		position: relative;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
		border-left: 4px solid transparent;
	}

	.announcement-card.important {
		border-left-color: #c18c28;
	}

	.badge {
		position: absolute;
		top: -10px;
		right: 20px;
		background: #c18c28;
		color: #2D2D2D;
		padding: 6px 14px;
		border-radius: 20px;
		font-size: 0.75rem;
		font-weight: 700;
		text-transform: uppercase;
	}

	.announcement-content h3 {
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.25rem;
		color: #2D2D2D;
		margin-bottom: 10px;
	}

	.announcement-content p {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		line-height: 1.6;
		margin-bottom: 12px;
	}

	.announcement-content time {
		font-family: 'Source Serif 4', Georgia, serif;
		color: var(--color-gold-ink, #8a5c0d);
		font-size: 0.9rem;
		font-weight: 500;
	}

	.clubs-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}

	.club-card {
		background: #FFFDF7;
		padding: 28px;
		border-radius: 12px;
		box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
		transition: transform 0.3s ease, box-shadow 0.3s ease;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
	}

	.club-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 12px 40px rgba(6, 5, 47, 0.12);
	}

	.club-card h3 {
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.2rem;
		color: #06052F;
		margin-bottom: 16px;
	}

	.club-details {
		margin-bottom: 16px;
	}

	.club-details p {
		display: flex;
		align-items: center;
		gap: 8px;
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		font-size: 0.95rem;
		margin-bottom: 8px;
	}

	.club-details svg {
		color: var(--color-gold-ink, #8a5c0d);
		flex-shrink: 0;
	}

	.club-card .description {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #777;
		font-size: 0.9rem;
		line-height: 1.5;
	}

	.council-section {
		background: linear-gradient(135deg, #06052F 0%, #06052F 100%);
	}

	.council-section .section-title {
		color: #FDF6E3;
	}

	.council-content {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 60px;
		align-items: center;
	}

	.council-intro {
		font-family: 'Source Serif 4', Georgia, serif;
		font-size: 1.15rem;
		color: rgba(253, 246, 227, 0.9);
		line-height: 1.8;
		margin-bottom: 40px;
	}

	.council-members {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.member {
		background: rgba(253, 246, 227, 0.1);
		padding: 20px;
		border-radius: 12px;
		border: 1px solid rgba(193, 140, 40, 0.3);
	}

	.member .role {
		display: block;
		font-family: 'Source Serif 4', Georgia, serif;
		color: #c18c28;
		font-size: 0.85rem;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		margin-bottom: 6px;
	}

	.member .name {
		font-family: 'Fraunces', Georgia, serif;
		color: #FDF6E3;
		font-size: 1.1rem;
	}

	.council-image {
		border-radius: 16px;
		overflow: hidden;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	}

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

	@media (max-width: 1024px) {
		.schedule-grid {
			grid-template-columns: 1fr;
			max-width: 560px;
		}

		.clubs-grid {
			grid-template-columns: repeat(2, 1fr);
		}

		.council-content {
			grid-template-columns: 1fr;
			gap: 40px;
		}
	}

	@media (max-width: 640px) {
		.clubs-grid {
			grid-template-columns: 1fr;
		}

		.council-members {
			grid-template-columns: 1fr;
		}

		.section {
			padding: 60px 0;
		}
	}

	.page-content:has(.schedule-grid) {
		padding: 0;
		min-height: 0;
	}

	.club-card .description,
	.council-intro,
	.plan-subtitle,
	.plan-current,
	.plan-archive {
		display: block;
		overflow: visible;
		-webkit-line-clamp: unset;
	}



/* --- src/routes/dla-uczniow/plan-lekcji/+page.svelte --- */

	.plan-page {
		min-height: 60vh;
		padding: 56px 0 80px;
		background: #fdf6e3;
	}

	.container {
		max-width: 1280px;
		margin: 0 auto;
		padding: 0 24px;
	}

	.plan-heading {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		margin-bottom: 24px;
	}

	.plan-heading p {
		margin: 4px 0 0;
		color: #5d5a55;
		font-family: 'Source Serif 4', Georgia, serif;
	}

	.plan-heading .current-label {
		margin: 0;
		color: #06052f;
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.45rem;
		font-weight: 700;
	}

	.external-link,
	.archive-links a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 10px 18px;
		border-radius: 9px;
		background: #06052f;
		color: #fdf6e3;
		font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
		font-size: 0.9rem;
		font-weight: 700;
		text-decoration: none;
	}

	.plan-frame {
		overflow: hidden;
		border: 1px solid rgba(6, 5, 47, 0.15);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 8px 30px rgba(6, 5, 47, 0.1);
	}

	.plan-frame iframe {
		display: block;
		width: 100%;
		height: min(72vh, 820px);
		border: 0;
	}

	section.archive {
		margin-top: 36px;
		text-align: center;
	}

	section.archive h2 {
		margin-bottom: 16px;
		color: #06052f;
		font-family: 'Fraunces', Georgia, serif;
	}

	.archive-links {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px;
	}

	.archive-links a {
		border: 1px solid #06052f;
		background: transparent;
		color: #06052f;
	}

	@media (max-width: 700px) {
		.plan-heading {
			align-items: stretch;
			flex-direction: column;
		}

		.plan-frame iframe {
			height: 68vh;
		}
	}



/* --- src/routes/dokumenty/+page.svelte --- */

  .page-content {
    background: #FDF6E3;
    min-height: 60vh;
    padding: 60px 0 80px;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.3s forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .filter-label {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: #2D2D2D;
    font-size: 1rem;
  }

  .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-btn {
    background: transparent;
    border: 2px solid #06052F;
    color: #06052F;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .filter-btn:hover {
    background: rgba(6, 5, 47, 0.1);
  }

  .filter-btn.active {
    background: #06052F;
    color: #FDF6E3;
  }

  .documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .document-card {
    background: #FFFDF7;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
  }

  .document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(6, 5, 47, 0.12);
  }

  .document-card .doc-icon {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #06052F 0%, #06052F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDF6E3;
  }

  .document-card .file-type {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #c18c28;
    color: #2D2D2D;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .doc-info {
    flex: 1;
    min-width: 0;
  }

  .document-card .category-badge {
    display: inline-block;
    position: static;
    top: auto;
    left: auto;
    background: rgba(6, 5, 47, 0.1);
    color: #06052F;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }

  .doc-info h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    color: #2D2D2D;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .doc-meta {
    display: flex;
    gap: 16px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.85rem;
    color: #777;
  }

  .doc-meta .size {
    color: var(--color-gold-ink, #8a5c0d);
    font-weight: 600;
  }

  .download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #06052F;
    color: #FDF6E3;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .download-btn:hover {
    background: #06052F;
    transform: translateY(-2px);
  }

  .no-results {
    text-align: center;
    padding: 60px 20px;
  }

  .no-results p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    color: #555;
  }

  @media (max-width: 900px) {
    .documents-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 640px) {
    .document-card {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
      padding: 24px;
    }

    .document-card .doc-icon {
      align-self: center;
    }

    .doc-info {
      min-width: 0;
    }

    .doc-meta {
      justify-content: center;
      flex-wrap: wrap;
    }

    .filters {
      flex-direction: column;
      align-items: flex-start;
    }
  }



/* --- src/routes/galeria/+page.svelte --- */

  .page-content {
    background: #FDF6E3;
    min-height: 60vh;
    padding: 60px 0 80px;
  }

  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
  }

  .year-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .year-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid rgba(6, 5, 47, 0.16);
    border-radius: 999px;
    background: rgba(250, 247, 240, 0.75);
    color: #06052F;
    cursor: pointer;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .year-button:hover,
  .year-button.active {
    background: #06052F;
    border-color: #06052F;
    color: #FDF6E3;
  }

  .masonry-grid {
    columns: 4;
    column-gap: 20px;
  }

  .empty-gallery {
    padding: 56px 24px;
    border: 1px dashed rgba(6, 5, 47, 0.2);
    border-radius: 8px;
    text-align: center;
    background: rgba(250, 247, 240, 0.75);
  }

  .empty-gallery h2 {
    margin-bottom: 10px;
    color: #06052F;
  }

  .empty-gallery p {
    margin: 0;
    color: #6B6B6B;
  }

  .masonry-grid .gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: none;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    aspect-ratio: auto;
    grid-row: auto;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .masonry-grid .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    transition: transform 0.5s ease;
  }

  .masonry-grid .gallery-item:hover img {
    transform: scale(1.08);
  }

  .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 45, 45, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .gallery-item:hover .overlay,
  .gallery-item:focus .overlay {
    opacity: 1;
  }

  .overlay .title {
    font-family: 'Fraunces', Georgia, serif;
    color: #FDF6E3;
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .overlay .category {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #c18c28;
    font-size: 0.85rem;
  }

  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(45, 45, 45, 0.97);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #FDF6E3;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 10;
  }

  .close-btn:hover {
    background: rgba(253, 246, 227, 0.1);
    transform: rotate(90deg);
  }

  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(253, 246, 227, 0.1);
    border: none;
    color: #FDF6E3;
    cursor: pointer;
    padding: 16px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
  }

  .nav-btn:hover {
    background: rgba(193, 140, 40, 0.3);
    transform: translateY(-50%) scale(1.1);
  }

  .nav-prev {
    left: 20px;
  }

  .nav-next {
    right: 20px;
  }

  .lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    gap: 0;
    background: #2D2D2D;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }

  .lightbox-content.has-description {
    gap: 0;
  }

  .lightbox-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
  }

  .lightbox-content.has-description img {
    max-height: 85vh;
    border-radius: 0;
  }

  .lightbox-sidebar {
    width: 320px;
    flex-shrink: 0;
    padding: 32px;
    background: #2D2D2D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    border-left: 1px solid rgba(193, 140, 40, 0.2);
  }

  .lightbox-sidebar h3 {
    font-family: 'Fraunces', Georgia, serif;
    color: #FDF6E3;
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .lightbox-sidebar .lightbox-category {
    display: inline-block;
    font-family: 'Source Serif 4', Georgia, serif;
    color: #c18c28;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 4px 12px;
    background: rgba(193, 140, 40, 0.15);
    border-radius: 20px;
    width: fit-content;
  }

  .lightbox-description {
    font-family: 'Source Serif 4', Georgia, serif;
    color: rgba(253, 246, 227, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .lightbox-counter {
    font-family: 'Source Serif 4', Georgia, serif;
    color: rgba(253, 246, 227, 0.5);
    font-size: 0.85rem;
    margin-top: auto;
  }

  .lightbox-info-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    background: linear-gradient(to top, rgba(45, 45, 45, 0.95), transparent);
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .lightbox-info-bottom h3 {
    font-family: 'Fraunces', Georgia, serif;
    color: #FDF6E3;
    font-size: 1.3rem;
    margin: 0;
  }

  .lightbox-info-bottom .lightbox-category {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #c18c28;
    font-size: 0.9rem;
  }

  .lightbox-info-bottom .lightbox-counter {
    margin-left: auto;
    font-family: 'Source Serif 4', Georgia, serif;
    color: rgba(253, 246, 227, 0.5);
    font-size: 0.85rem;
  }

  @media (max-width: 1200px) {
    .masonry-grid {
      columns: 3;
    }
  }

  @media (max-width: 900px) {
    .lightbox {
      padding: 50px 60px;
    }

    .lightbox-content {
      flex-direction: column;
      max-height: 90vh;
    }

    .lightbox-content.has-description {
      max-width: 95vw;
    }

    .lightbox-sidebar {
      width: 100%;
      max-height: 200px;
      overflow-y: auto;
      padding: 20px 24px;
      border-left: none;
      border-top: 1px solid rgba(193, 140, 40, 0.2);
    }

    .lightbox-sidebar h3 {
      font-size: 1.2rem;
    }

    .lightbox-description {
      font-size: 0.95rem;
      margin-bottom: 12px;
    }

    .lightbox-image-wrapper img {
      max-height: 60vh;
    }
  }

  @media (max-width: 768px) {
    .masonry-grid {
      columns: 2;
      column-gap: 12px;
    }

    .masonry-grid .gallery-item {
      margin-bottom: 12px;
    }

    .lightbox {
      padding: 20px 50px;
    }

    .nav-btn {
      padding: 12px;
    }

    .nav-prev {
      left: 10px;
    }

    .nav-next {
      right: 10px;
    }

    .lightbox-info-bottom {
      flex-wrap: wrap;
      padding: 16px 20px;
    }

    .lightbox-info-bottom h3 {
      font-size: 1.1rem;
      width: 100%;
    }
  }

  @media (max-width: 480px) {
    .masonry-grid {
      columns: 1;
    }

    .lightbox {
      padding: 15px 45px;
    }

    .nav-btn {
      padding: 10px;
    }

    .nav-btn svg {
      width: 28px;
      height: 28px;
    }
  }



/* --- src/routes/kontakt/+page.svelte --- */

  .page-content {
    background: #FDF6E3;
    min-height: 60vh;
    padding: 60px 0 80px;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.2s forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.8rem;
    color: #06052F;
    margin-bottom: 30px;
  }

  .info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .info-card {
    background: #FFFDF7;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
    transition: transform 0.3s ease;
  }

  .info-card:hover {
    transform: translateY(-3px);
  }

  .info-card .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #06052F 0%, #06052F 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDF6E3;
    flex-shrink: 0;
  }

  .info-content h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .info-content p {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #2D2D2D;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .info-content a {
    color: #06052F;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .info-content a:hover {
    color: var(--color-gold-ink, #8a5c0d);
  }

  .map-container {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(45, 45, 45, 0.15);
  }

  .map-container iframe {
    display: block;
  }

  .social-section h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    color: #2D2D2D;
    margin-bottom: 16px;
  }

  .social-section .social-links {
    display: flex;
    gap: 12px;
  }

  .social-section .social-link {
    width: 48px;
    height: 48px;
    background: #06052F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDF6E3;
    transition: all 0.3s ease;
  }

  .social-section .social-link span {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
  }

  .social-section .social-link:hover {
    background: #c18c28;
    transform: translateY(-3px);
  }

  .contact-form-section {
    background: #FFFDF7;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(45, 45, 45, 0.1);
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-group label {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.95rem;
    color: #2D2D2D;
    font-weight: 600;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 18px;
    border: 2px solid rgba(6, 5, 47, 0.2);
    border-radius: 10px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    color: #2D2D2D;
    background: #FDF6E3;
    transition: all 0.3s ease;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #06052F;
    box-shadow: 0 0 0 4px rgba(6, 5, 47, 0.1);
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: #999;
  }

  .form-group textarea {
    resize: vertical;
    min-height: 150px;
  }

  .submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #06052F 0%, #06052F 100%);
    color: #FDF6E3;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 5, 47, 0.3);
  }

  .success-message {
    text-align: center;
    padding: 60px 20px;
  }

  .success-message svg {
    color: #28a745;
    margin-bottom: 20px;
  }

  .success-message h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    color: #2D2D2D;
    margin-bottom: 12px;
  }

  .success-message p {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #555;
    font-size: 1.05rem;
  }

  @media (max-width: 1024px) {
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }

  @media (max-width: 640px) {
    .info-cards {
      grid-template-columns: 1fr;
    }

    .info-content p {
      white-space: normal;
      font-size: 0.9rem;
    }

    .contact-form-section {
      padding: 24px;
    }
  }



/* --- src/routes/o-szkole/+page.svelte --- */

	.page-content {
		background: #FDF6E3;
	}

	.section {
		padding: 80px 0;
	}

	.container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 24px;
	}

	.section-title {
		font-family: 'Fraunces', Georgia, serif;
		font-size: clamp(1.8rem, 4vw, 2.5rem);
		color: #06052F;
		text-align: center;
		margin-bottom: 20px;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
	}

	.section-intro {
		font-family: 'Source Serif 4', Georgia, serif;
		font-size: 1.15rem;
		color: #555;
		text-align: center;
		max-width: 800px;
		margin: 0 auto 50px;
		line-height: 1.8;
		opacity: 0;
		animation: fadeInUp 0.6s ease 0.2s forwards;
	}

	@keyframes fadeInUp {
		from {
			opacity: 0;
			transform: translateY(30px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.timeline {
		position: relative;
		max-width: 800px;
		margin: 0 auto;
		padding-left: 40px;
	}

	.timeline::before {
		content: '';
		position: absolute;
		left: 15px;
		top: 0;
		bottom: 0;
		width: 3px;
		background: linear-gradient(to bottom, #06052F, #c18c28);
		border-radius: 2px;
	}

	.timeline-item {
		position: relative;
		padding-bottom: 40px;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
	}

	.timeline-marker {
		position: absolute;
		left: -40px;
		width: 30px;
		height: 30px;
		background: #06052F;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.timeline-marker .year {
		position: absolute;
		left: -80px;
		width: 60px;
		text-align: right;
		font-family: 'Fraunces', Georgia, serif;
		font-weight: 700;
		color: var(--color-gold-ink, #8a5c0d);
		font-size: 0.9rem;
	}

	.timeline-content {
		background: #FFFDF7;
		padding: 24px;
		border-radius: 12px;
		box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
		margin-left: 20px;
	}

	.timeline-content h3 {
		font-family: 'Fraunces', Georgia, serif;
		color: #2D2D2D;
		font-size: 1.2rem;
		margin-bottom: 8px;
	}

	.timeline-content p {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		line-height: 1.6;
	}

	.mission-section {
		background: linear-gradient(135deg, #06052F 0%, #06052F 100%);
	}

	.mission-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 40px;
	}

	.mission-card {
		background: rgba(253, 246, 227, 0.95);
		padding: 40px;
		border-radius: 16px;
		text-align: center;
		opacity: 0;
		animation: fadeInUp 0.6s ease 0.3s forwards;
	}

	.card-icon {
		width: 80px;
		height: 80px;
		background: #06052F;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto 24px;
		color: #FDF6E3;
	}

	.mission-card h2 {
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.8rem;
		color: #06052F;
		margin-bottom: 16px;
	}

	.mission-card p {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		line-height: 1.8;
		font-size: 1.05rem;
	}

	.directors-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
		justify-content: center;
		gap: 30px;
		margin-top: 40px;
	}

	.director-card {
		background: #FFFDF7;
		border-radius: 16px;
		overflow: hidden;
		box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
		transition: transform 0.3s ease, box-shadow 0.3s ease;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
	}

	.director-card:hover {
		transform: translateY(-8px);
		box-shadow: 0 12px 40px rgba(6, 5, 47, 0.15);
	}

	.director-image {
		height: 280px;
		overflow: hidden;
	}

	.director-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.5s ease;
	}

	.director-card:hover .director-image img {
		transform: scale(1.05);
	}

	.director-info {
		padding: 24px;
		text-align: center;
	}

	.director-info h3 {
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.3rem;
		color: #2D2D2D;
		margin-bottom: 8px;
	}

	.director-info .role {
		display: block;
		font-family: 'Source Serif 4', Georgia, serif;
		color: var(--color-gold-ink, #8a5c0d);
		font-weight: 600;
		font-size: 0.9rem;
		margin-bottom: 16px;
	}

	.director-info p {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		line-height: 1.6;
		font-size: 0.95rem;
	}

	.tables-section {
		background: #f7efdc;
	}

	.tables-stack {
		display: grid;
		gap: 72px;
	}

	.tables-stack > div {
		min-width: 0;
	}

	.section-caption {
		margin: -8px 0 24px;
		color: #6b655d;
		font-family: 'Source Serif 4', Georgia, serif;
		text-align: center;
	}

	.table-scroll {
		max-width: 100%;
		overflow-x: auto;
		border: 1px solid rgba(6, 5, 47, 0.12);
		border-radius: 14px;
		background: #fffdf7;
		box-shadow: 0 6px 24px rgba(45, 45, 45, 0.08);
	}

	.school-table {
		width: 100%;
		min-width: 980px;
		border-collapse: collapse;
		font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
		font-size: 0.92rem;
	}

	.school-table th,
	.school-table td {
		padding: 14px 16px;
		border-bottom: 1px solid rgba(6, 5, 47, 0.1);
		border-right: 1px solid rgba(6, 5, 47, 0.08);
		text-align: center;
		vertical-align: middle;
	}

	.school-table th:last-child,
	.school-table td:last-child {
		border-right: 0;
	}

	.school-table tbody tr:last-child > * {
		border-bottom: 0;
	}

	.school-table thead th {
		background: #06052f;
		color: #fdf6e3;
		font-weight: 750;
	}

	.school-table tbody th {
		color: #06052f;
		font-weight: 750;
	}

	.school-table tbody tr:nth-child(even) {
		background: rgba(193, 140, 40, 0.06);
	}

	.class-tables-grid {
		display: grid;
		grid-template-columns: repeat(var(--class-columns, 3), minmax(0, 1fr));
		gap: 20px;
		/* Karty trzymaja podobna szerokosc niezaleznie od liczby kolumn. */
		max-width: min(100%, calc(var(--class-columns, 3) * 380px));
		margin: 0 auto;
	}

	.class-table-card {
		overflow: hidden;
		border: 1px solid rgba(6, 5, 47, 0.12);
		border-radius: 14px;
		background: #fffdf7;
		box-shadow: 0 6px 24px rgba(45, 45, 45, 0.08);
	}

	.class-table-card h3 {
		margin: 0;
		padding: 15px 18px;
		background: #c18c28;
		color: #06052f;
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.15rem;
		text-align: center;
	}

	.compact-table {
		min-width: 0;
		font-size: 0.88rem;
	}

	.compact-table th,
	.compact-table td {
		padding: 13px 12px;
	}

	.compact-table th:first-child {
		width: 28%;
	}

	.achievements-section {
		background: #2D2D2D;
	}

	.achievements-section .section-title {
		color: #FDF6E3;
	}

	.achievements-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 30px;
		margin-top: 40px;
	}

	.achievement-card {
		background: rgba(253, 246, 227, 0.05);
		border: 2px solid rgba(193, 140, 40, 0.3);
		border-radius: 16px;
		padding: 40px 20px;
		text-align: center;
		transition: all 0.3s ease;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
	}

	.achievement-card:hover {
		background: rgba(253, 246, 227, 0.1);
		border-color: #c18c28;
		transform: translateY(-5px);
	}

	.achievement-card .number {
		display: block;
		font-family: 'Fraunces', Georgia, serif;
		font-size: 3rem;
		font-weight: 700;
		color: #c18c28;
		margin-bottom: 8px;
	}

	.achievement-card .label {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #FDF6E3;
		font-size: 1rem;
	}

	@media (max-width: 1024px) {
		.class-tables-grid {
			grid-template-columns: 1fr;
			max-width: 720px;
			margin: 0 auto;
		}

		.achievements-grid {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	@media (max-width: 768px) {
		.mission-grid {
			grid-template-columns: 1fr;
		}

		.timeline {
			padding-left: 30px;
		}

		.timeline-marker .year {
			left: -65px;
			width: 50px;
			font-size: 0.8rem;
		}
	}

	@media (max-width: 640px) {
		.directors-grid {
			grid-template-columns: minmax(0, 1fr);
		}

		.achievements-grid {
			grid-template-columns: 1fr;
		}

		.section {
			padding: 60px 0;
		}
	}



/* --- src/routes/rekrutacja/+page.svelte --- */

	.page-content {
		background: #FDF6E3;
	}

	.section {
		padding: 80px 0;
	}

	.container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 24px;
	}

	.section-title {
		font-family: 'Fraunces', Georgia, serif;
		font-size: clamp(1.8rem, 4vw, 2.5rem);
		color: #06052F;
		text-align: center;
		margin-bottom: 50px;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
	}

	@keyframes fadeInUp {
		from {
			opacity: 0;
			transform: translateY(30px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.timeline {
		max-width: 900px;
		margin: 0 auto;
		position: relative;
		padding-left: 0;
	}

	.timeline::before {
		content: '';
		position: absolute;
		left: 258px;
		top: 0;
		bottom: 0;
		width: 3px;
		background: linear-gradient(to bottom, #06052F, #c18c28);
		border-radius: 2px;
	}

	.timeline-item {
		display: grid;
		grid-template-columns: 220px 40px 1fr;
		gap: 20px;
		margin-bottom: 30px;
		padding-bottom: 0;
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
	}

	.timeline-date {
		text-align: right;
		font-family: 'Source Serif 4', Georgia, serif;
		font-weight: 600;
		color: var(--color-gold-ink, #8a5c0d);
		font-size: 0.95rem;
		padding-top: 6px;
		white-space: nowrap;
	}

	.timeline-marker {
		width: 20px;
		height: 20px;
		background: #06052F;
		border-radius: 50%;
		border: 4px solid #FDF6E3;
		box-shadow: 0 0 0 3px #06052F;
		position: relative;
		left: auto;
		display: block;
		z-index: 1;
		justify-self: center;
		margin-top: 6px;
	}

	.timeline-content {
		background: #FFFDF7;
		padding: 24px;
		border-radius: 12px;
		box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
		margin-left: 0;
	}

	.timeline-content h3 {
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.15rem;
		color: #2D2D2D;
		margin-bottom: 8px;
	}

	.timeline-content p {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		line-height: 1.5;
		font-size: 0.95rem;
		display: block;
		overflow: visible;
		-webkit-line-clamp: unset;
		margin-bottom: 0;
	}

	.documents-section {
		background: #2D2D2D;
	}

	.documents-section .section-title {
		color: #FDF6E3;
	}

	.documents-list {
		max-width: 700px;
		margin: 0 auto;
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.document-item {
		display: flex;
		align-items: center;
		gap: 16px;
		background: rgba(253, 246, 227, 0.05);
		padding: 20px 24px;
		border-radius: 10px;
		border: 1px solid rgba(193, 140, 40, 0.2);
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
		transition: all 0.3s ease;
		text-decoration: none;
		cursor: pointer;
	}

	.document-item:hover {
		background: rgba(253, 246, 227, 0.1);
		border-color: #c18c28;
		transform: translateX(8px);
	}

	.document-item:hover .download-icon {
		transform: translateY(3px);
	}

	.document-item .doc-icon {
		color: #c18c28;
		flex-shrink: 0;
		width: 24px;
		height: 24px;
		background: none;
		border-radius: 0;
		display: block;
		position: static;
	}

	.doc-name {
		font-family: 'Source Serif 4', Georgia, serif;
		color: #FDF6E3;
		font-size: 1.05rem;
		flex: 1;
	}

	.download-icon {
		color: rgba(253, 246, 227, 0.5);
		flex-shrink: 0;
		transition: all 0.3s ease;
	}

	.document-item:hover .download-icon {
		color: #c18c28;
	}

	.documents-note {
		text-align: center;
		color: rgba(253, 246, 227, 0.6);
		font-family: 'Source Serif 4', Georgia, serif;
		font-size: 0.9rem;
		margin-top: 24px;
	}

	.profiles-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	.profile-card {
		background: #FFFDF7;
		border-radius: 16px;
		overflow: hidden;
		box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
		opacity: 0;
		animation: fadeInUp 0.6s ease forwards;
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.profile-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 12px 40px rgba(6, 5, 47, 0.12);
	}

	.profile-header {
		background: linear-gradient(135deg, #06052F 0%, #06052F 100%);
		padding: 24px;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.profile-header h3 {
		font-family: 'Fraunces', Georgia, serif;
		color: #FDF6E3;
		font-size: 1.3rem;
		margin: 0;
	}

	.points {
		background: #c18c28;
		color: #2D2D2D;
		padding: 6px 14px;
		border-radius: 20px;
		font-size: 0.8rem;
		font-weight: 700;
	}

	.profile-card .subjects {
		padding: 24px 24px 0;
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		font-size: 0.95rem;
	}

	.profile-card .subjects strong {
		color: #06052F;
	}

	.profile-card .description {
		display: block;
		overflow: visible;
		-webkit-line-clamp: unset;
		-webkit-box-orient: unset;
		margin-bottom: 0;
		padding: 16px 24px 24px;
		font-family: 'Source Serif 4', Georgia, serif;
		color: #777;
		line-height: 1.6;
		font-size: 0.95rem;
	}

	.faq-section {
		background: linear-gradient(135deg, #06052F 0%, #06052F 100%);
	}

	.faq-section .section-title {
		color: #FDF6E3;
	}

	.faq-list {
		max-width: 800px;
		margin: 0 auto;
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.faq-item {
		background: rgba(253, 246, 227, 0.95);
		border-radius: 12px;
		overflow: hidden;
	}

	.faq-question {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20px 24px;
		background: none;
		border: none;
		cursor: pointer;
		text-align: left;
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.1rem;
		color: #2D2D2D;
		gap: 16px;
	}

	.faq-question:hover {
		background: rgba(6, 5, 47, 0.05);
	}

	.chevron {
		color: #06052F;
		transition: transform 0.3s ease;
		flex-shrink: 0;
	}

	.faq-item.open .chevron {
		transform: rotate(180deg);
	}

	.faq-answer {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease, padding 0.3s ease;
	}

	.faq-item.open .faq-answer {
		max-height: 300px;
	}

	.faq-answer p {
		padding: 0 24px 24px;
		font-family: 'Source Serif 4', Georgia, serif;
		color: #555;
		line-height: 1.7;
		font-size: 1rem;
	}

	@media (max-width: 900px) {
		.timeline::before {
			left: 20px;
		}

		.timeline-item {
			grid-template-columns: 40px 1fr;
			grid-template-rows: auto auto;
		}

		.timeline-date {
			grid-column: 2;
			grid-row: 1;
			text-align: left;
			margin-bottom: 8px;
		}

		.timeline-marker {
			grid-column: 1;
			grid-row: 1 / 3;
		}

		.timeline-content {
			grid-column: 2;
			grid-row: 2;
		}

		.profiles-grid {
			grid-template-columns: 1fr;
		}
	}

	@media (max-width: 640px) {
		.section {
			padding: 60px 0;
		}
	}


/* --- WordPress shell --- */
@font-face {
	font-family: "Fraunces";
	src: url("./fonts/fraunces-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("./fonts/fraunces-500.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("./fonts/fraunces-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("./fonts/source-serif-4-500.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	size-adjust: 94.86%;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("./fonts/source-serif-4-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("./fonts/source-serif-4-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 0;
}

.skip-link {
	position: fixed;
	top: 0;
	left: 0;
	z-index: calc(var(--z-fixed) + 20);
	padding: 0.9rem 1.4rem;
	background: var(--color-burgundy);
	color: var(--color-cream);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0 0 var(--radius-md) 0;
	transform: translateY(-120%);
	transition: transform 0.15s ease;
}
.skip-link:focus {
	transform: translateY(0);
	outline: 3px solid var(--color-gold);
	outline-offset: -3px;
}

.site-main {
	flex: 1;
	padding-top: var(--header-height);
}

html.admin-bar .header {
	top: 32px;
}
html.admin-bar .site-main {
	padding-top: calc(var(--header-height) + 32px);
}
@media (max-width: 782px) {
	html.admin-bar .header { top: 46px; }
	html.admin-bar .site-main { padding-top: calc(var(--header-height) + 46px); }
}

.page-content {
	background: #FDF6E3;
	min-height: 60vh;
	padding: 60px 0 80px;
}
.page-content:has(.schedule-grid),
.page-content:has(.announcements-section),
.page-content:has(.profiles-section) {
	padding: 0;
	min-height: 0;
}
.page-content:has(.schedule-grid) .section-title {
	margin-bottom: 40px;
}
.page-content:has(.schedule-grid) .council-intro {
	letter-spacing: -0.015em;
}
.page-content > .container,
.entry-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}
.entry-content {
	font-family: var(--font-body);
	color: var(--color-text);
}
.entry-content p { margin-bottom: 1rem; }
.entry-content h2, .entry-content h3 { margin: 1.6rem 0 0.7rem; }
.entry-content ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1rem; }
.entry-content ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 1rem; }
.entry-content a { color: var(--color-burgundy); text-decoration: underline; text-underline-offset: 0.15em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.entry-content th, .entry-content td { border: 1px solid rgba(6,5,47,0.15); padding: 0.55rem 0.75rem; }

.news-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--spacing-lg);
}

.has-dropdown .chevron { display: inline; }

.wp-block-group, .wp-block-columns { margin: 0; }

/* Un-clash Svelte scoped header vs footer social icons */
.header .social-links {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	line-height: 0;
}
.header .social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	line-height: 0;
	background: transparent;
	border: 0;
	border-radius: var(--radius-sm);
	color: var(--color-burgundy);
}
.header .social-link svg {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: currentColor;
	overflow: visible;
}
.header .social-text {
	width: auto;
	height: 24px;
	padding: 0 var(--space-2);
	font-size: 0.72rem;
	line-height: 1;
}
.footer .social-links {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}
.footer .social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	line-height: 0;
	background-color: var(--color-burgundy-dark);
	border: 1px solid rgba(253, 246, 227, 0.2);
	border-radius: var(--radius-md);
	color: var(--color-cream);
}
.footer .social-link svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.footer .social-text { font-size: 0.75rem; line-height: 1; }

.nav-overlay[hidden] { display: none; }
.nav-overlay.open { display: block; }

.news-card { opacity: 1; }
.stat-card { opacity: 1; }
.gallery-item { opacity: 1; }

.wp-site-blocks > header,
.wp-site-blocks > footer { margin: 0; }

.nav-link.nav-link { text-decoration: none; }

/* /o-szkole: beat unscoped rekrutacja timeline + WP shell .page-content padding */
.site-main.school-shell > header.page-header {
	padding: 80px 0 60px;
}

.page-content.school-page {
	padding: 0;
	min-height: 0;
	background: #FDF6E3;
}

.school-page .section-title {
	margin-bottom: 20px;
}

.school-page .timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding-left: 40px;
}

.school-page .timeline::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(to bottom, #06052F, #c18c28);
	border-radius: 2px;
}

.school-page .timeline-item {
	display: block;
	grid-template-columns: none;
	grid-template-rows: none;
	gap: normal;
	margin-bottom: 0;
	position: relative;
	padding-bottom: 40px;
	opacity: 0;
	animation: fadeInUp 0.6s ease forwards;
}

.school-page .timeline-marker {
	position: absolute;
	left: -40px;
	width: 30px;
	height: 30px;
	background: #06052F;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: auto;
	grid-column: auto;
	grid-row: auto;
	z-index: 1;
}

.school-page .timeline-marker .year {
	position: absolute;
	left: -80px;
	width: 60px;
	text-align: right;
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 700;
	color: var(--color-gold-ink, #8a5c0d);
	font-size: 0.9rem;
}

.school-page .timeline-content {
	background: #FFFDF7;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(45, 45, 45, 0.08);
	margin-left: 20px;
	min-width: 0;
	width: auto;
	grid-column: auto;
	grid-row: auto;
}

.school-page .timeline-content h3 {
	font-family: 'Fraunces', Georgia, serif;
	color: #2D2D2D;
	font-size: 1.2rem;
	margin: 0 0 8px;
	line-height: 1.15;
}

.school-page .timeline-content p {
	font-family: 'Source Serif 4', Georgia, serif;
	color: #555;
	line-height: 1.6;
	font-size: var(--text-base);
}

@media (max-width: 768px) {
	.school-page .timeline {
		padding-left: 30px;
	}

	.school-page .timeline-marker .year {
		left: -65px;
		width: 50px;
		font-size: 0.8rem;
	}
}

/* Un-clash Svelte scoped header vs footer social icons */
.header .social-links {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	line-height: 0;
}
.header .social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	line-height: 0;
	background: transparent;
	border: 0;
	border-radius: var(--radius-sm);
	color: var(--color-burgundy);
}
.header .social-link svg {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: currentColor;
	overflow: visible;
}
.header .social-text {
	width: auto;
	height: 24px;
	padding: 0 var(--space-2);
	font-size: 0.72rem;
	line-height: 1;
}
.footer .social-links {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}
.footer .social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	line-height: 0;
	background-color: var(--color-burgundy-dark);
	border: 1px solid rgba(253, 246, 227, 0.2);
	border-radius: var(--radius-md);
	color: var(--color-cream);
}
.footer .social-link svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.footer .social-text { font-size: 0.75rem; line-height: 1; }
.news-card, .stat-card, .gallery-item { opacity: 1; }
.nav-overlay[hidden] { display: none; }
.nav-overlay.open { display: block; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > header, .wp-site-blocks > footer { margin: 0; }

/* Fixed header offset: Svelte wraps PageHeader in .main-content { padding-top: var(--header-height) }. */
header.page-header {
	padding-top: calc(80px + var(--header-height));
	text-align: left;
}
.site-main > header.page-header {
	padding: 80px 0 60px;
}

/* Home .contact-icon (48px navy tile) must not restyle footer stroke icons. */
.footer svg.contact-icon,
.footer .contact-icon {
	width: 18px;
	height: 18px;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--color-gold);
	display: block;
	margin-top: 2px;
	flex-shrink: 0;
}

/* Home .contact-info / .map-container / .contact-grid leak onto /kontakt. */
.page-content .contact-info {
	display: block;
}
.page-content .contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	opacity: 1;
	animation: fadeIn 0.6s ease 0.2s backwards;
}
.page-content .map-container {
	min-height: 0;
	margin-bottom: 30px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(45, 45, 45, 0.15);
	background: transparent;
}
.page-content .map-container iframe {
	display: block;
	width: 100%;
	height: 250px;
	border: 0;
	border-radius: 16px;
}
.social-section .social-links {
	display: flex;
	gap: 12px;
}
.social-section .social-link {
	width: 48px;
	height: 48px;
	background: #06052F;
	border: 0;
	border-radius: 50%;
	color: #FDF6E3;
}
.social-section .social-link svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}
.social-section .social-link:hover {
	background: #c18c28;
	transform: translateY(-3px);
}
@media (max-width: 1024px) {
	.page-content .contact-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* Dumped page `.container { padding: 0 24px; max-width: 1200px }` unscoped
   and overrides Navigation/Footer containers. Restore Svelte values. */
.header .nav.container,
.header .top-inner.container {
	max-width: 1400px;
	padding-block: 0;
	padding-inline: var(--space-4);
}
.footer .footer-content.container {
	max-width: var(--container-xl);
	padding-block: var(--space-16);
	padding-inline: var(--space-4);
}
.footer .footer-bottom-content.container {
	max-width: var(--container-xl);
	padding-block: var(--space-6);
	padding-inline: var(--space-4);
}
@media (min-width: 768px) {
	.footer .footer-content.container,
	.footer .footer-bottom-content.container {
		padding-inline: var(--space-8);
	}
}

/* News cards: keep Svelte badge (navy on photo) after later .category-badge rules. */
.news-card .category-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	display: inline-block;
	background: #06052F;
	color: #FDF6E3;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0;
	z-index: 1;
}

.page-content .navigation.pagination {
	display: none;
}

/* Homepage: beat leaked inner-page CSS (Svelte scoped styles concatenated). */
.site-main.is-layout-flow > * + *,
.wp-block-group-is-layout-flow > * + * {
	margin-block-start: 0;
}
.wp-block-group.site-main {
	padding-left: 0;
	padding-right: 0;
	margin: 0;
}

.header .container,
.header .nav,
.header .top-inner {
	max-width: 1400px;
}

.news-section .container,
.events-section .container,
.about-section .container,
.gallery-section .container,
.contact-section .container {
	max-width: var(--container-xl);
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--space-4);
}
@media (min-width: 768px) {
	.news-section .container,
	.events-section .container,
	.about-section .container,
	.gallery-section .container,
	.contact-section .container {
		padding-inline: var(--space-8);
	}
}

.section.news-section,
.section.events-section,
.section.about-section,
.section.gallery-section,
.section.contact-section {
	padding: var(--spacing-3xl) 0;
}

.news-section .section-title,
.events-section .section-title,
.gallery-section .section-title,
.contact-section .section-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	color: var(--color-burgundy-dark);
	margin-bottom: var(--spacing-sm);
	text-align: center;
	opacity: 1;
	animation: none;
}

.about-section .section-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	color: var(--color-cream);
	margin-bottom: var(--spacing-sm);
	opacity: 1;
	animation: none;
	text-align: inherit;
}

.gallery-section .gallery-masonry {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-md);
}
@media (min-width: 768px) {
	.gallery-section .gallery-masonry {
		grid-template-columns: repeat(3, 1fr);
	}
}

.gallery-section .gallery-item {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
	opacity: 1;
	animation: none;
	border: none;
	padding: 0;
	background: none;
	margin-bottom: 0;
	display: block;
	width: auto;
	break-inside: auto;
}
.gallery-section .gallery-item:nth-child(1),
.gallery-section .gallery-item:nth-child(4) {
	grid-row: span 2;
	aspect-ratio: auto;
}
@media (max-width: 767px) {
	.gallery-section .gallery-item:nth-child(1),
	.gallery-section .gallery-item:nth-child(4) {
		grid-row: span 1;
		aspect-ratio: 4 / 3;
	}
}
.gallery-section .gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.contact-section .contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-2xl);
	opacity: 1;
	animation: none;
}
@media (min-width: 1024px) {
	.contact-section .contact-grid {
		grid-template-columns: 1fr 1.2fr;
	}
}
.contact-section .map-container {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-height: 300px;
	height: 100%;
	margin-bottom: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	background: white;
}
.contact-section .map-container iframe {
	flex: 1 1 auto;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	border: 0;
}
.contact-section .map-placeholder {
	flex: 1 1 auto;
	height: 100%;
	min-height: 300px;
	box-sizing: border-box;
}
.contact-section .map-placeholder h3 {
	color: var(--color-cream);
}
.contact-section .contact-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-burgundy), var(--color-burgundy-dark));
	border-radius: 8px;
	color: var(--color-cream);
	margin-top: 0;
}

/* /galeria: undo leaked homepage .gallery-item (4/3 cover) and later .container 1200px. */
[data-xivlo-gallery] {
	text-align: left;
}
[data-xivlo-gallery] .page-content {
	background: #FDF6E3;
	min-height: 60vh;
	padding: 60px 0 80px;
}
[data-xivlo-gallery] .page-content > .container {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
}
[data-xivlo-gallery] .masonry-grid {
	columns: 4;
	column-gap: 20px;
}
[data-xivlo-gallery] .gallery-item,
[data-xivlo-gallery] .gallery-item:nth-child(1),
[data-xivlo-gallery] .gallery-item:nth-child(4) {
	aspect-ratio: auto;
	height: auto;
	grid-row: auto;
	width: 100%;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	margin-bottom: 20px;
	border: none;
	padding: 0;
	background: none;
}
[data-xivlo-gallery] .gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: unset;
	max-width: 100%;
}
@media (max-width: 1200px) {
	[data-xivlo-gallery] .masonry-grid {
		columns: 3;
	}
}
@media (max-width: 768px) {
	[data-xivlo-gallery] .masonry-grid {
		columns: 2;
		column-gap: 12px;
	}
	[data-xivlo-gallery] .gallery-item {
		margin-bottom: 12px;
	}
}
@media (max-width: 480px) {
	[data-xivlo-gallery] .masonry-grid {
		columns: 1;
	}
}

/* Header uses 1400px like Navigation.svelte; later .container { max-width: 1200px } was shrinking it. */
.header .nav.container,
.header .top-inner.container {
	max-width: 1400px;
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--space-4);
}
.header .logo {
	flex-shrink: 0;
}

/* Home: beat /aktualnosci .news-grid { gap: 30px; repeat(3, 1fr) }. */
.news-section .news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--spacing-lg);
}
.news-section .news-item {
	min-width: 0;
}
@media (max-width: 1024px) {
	.news-section .news-grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	}
}
@media (max-width: 640px) {
	.news-section .news-grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	}
}

.news-section .view-all-link,
.events-section .view-all-link,
.gallery-section .view-all-link,
.about-section .about-link {
	font-synthesis: none;
}
.news-section .view-all-link svg,
.events-section .view-all-link svg,
.gallery-section .view-all-link svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.about-section .about-link svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("./fonts/source-serif-4-500.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* Local 400 face uses size-adjust 94.86%, which reflows home news excerpts. */
@font-face {
	font-family: "Source Serif 4 Home";
	src: url("./fonts/source-serif-4-500.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	size-adjust: 98.02%;
	font-display: swap;
}
.news-section .news-card time,
.news-section .news-card p,
.news-card time,
.news-card p,
.recruit-shell .profile-card .description,
.students-page .club-card .description {
	font-family: "Source Serif 4 Home", "Source Serif 4", Georgia, serif;
}

/* Basic catch-all (.page-shell): beat later unscoped .page-content / h2 from other routes. */
.page-content:has(.page-shell) {
	min-height: 48vh;
	background:
		linear-gradient(180deg, rgba(253, 246, 227, 0.92), rgba(250, 247, 240, 0.98)),
		var(--color-cream);
	padding: var(--space-16) var(--space-4) var(--space-20);
}
.page-content:has(.page-shell) .page-aside h2 {
	margin-bottom: var(--space-6);
	color: var(--color-burgundy);
	font-size: var(--text-2xl);
	letter-spacing: var(--tracking-tight);
}
.page-content:has(.page-shell) .page-aside .eyebrow {
	margin: 0 0 var(--space-3);
	color: var(--color-gold-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: var(--leading-relaxed);
	text-transform: uppercase;
}
.page-content:has(.page-shell) .page-shell .back-link {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 var(--space-4);
	border-radius: var(--radius-md);
	background: var(--color-burgundy);
	color: var(--color-cream);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.94rem;
	font-weight: 700;
}
/* Local 400 face is 94.86% (home body); 700 is unadjusted. Google Fonts at
   .rich-content 1.06rem / 700 needs these scale factors or wrap points drift. */
@font-face {
	font-family: "Source Serif 4 Page";
	src: url("./fonts/source-serif-4-500.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	size-adjust: 96.07%;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4 Page";
	src: url("./fonts/source-serif-4-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	size-adjust: 95.54%;
	font-display: swap;
}
.page-content:has(.page-shell) .rich-content {
	font-family: "Source Serif 4 Page", "Source Serif 4", Georgia, "Times New Roman", serif;
}
/* 18px list text is a different Google opsz than 1.06rem paragraphs; 96.07%
   wraps one extra line on /o-szkole/pedagog-psycholog. Keep 700 on Page. */
@font-face {
	font-family: "Source Serif 4 PageLi";
	src: url("./fonts/source-serif-4-500.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	size-adjust: 95%;
	font-display: swap;
}
.page-content:has(.page-shell) .rich-content :is(ul, ol, li) {
	font-family: "Source Serif 4 PageLi", "Source Serif 4 Page", "Source Serif 4", Georgia, "Times New Roman", serif;
}
.page-content:has(.page-shell) .rich-content :is(ul, ol, li) :is(strong, b, a) {
	font-family: "Source Serif 4 Page", "Source Serif 4", Georgia, "Times New Roman", serif;
}
.page-content:has(.page-shell) .rich-content th,
.page-content:has(.page-shell) .rich-content td {
	overflow-wrap: normal;
	word-break: normal;
}
/* nowrap thead columns size to 700 glyphs; Page 700 is 95.54% and shrinks the duty table. */
@font-face {
	font-family: "Source Serif 4 PageTh";
	src: url("./fonts/source-serif-4-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	size-adjust: 98.5%;
	font-display: swap;
}
.page-content:has(.page-shell) .rich-content thead th {
	font-family: "Source Serif 4 PageTh", "Source Serif 4 Page", "Source Serif 4", Georgia, serif;
}

/* Article body is 1.3rem/1.15rem Source Serif 400. Local static 500@94.86% is
   still wider than Google variable 400 (2128px vs 2176px at 20.8px), so the
   lead paragraph wraps 4 lines instead of 3. */
@font-face {
	font-family: "Source Serif 4 Article";
	src: url("./fonts/source-serif-4-500.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	size-adjust: 92.75%;
	font-display: swap;
}
.article-body p,
.article-body li {
	font-family: "Source Serif 4 Article", "Source Serif 4", Georgia, serif;
}

/* Two document titles sit on the wrap edge (Fraunces 600 @ 1.15rem). Local
   500-file-as-600 is narrower than Google variable 600. */
@font-face {
	font-family: "Fraunces Docs";
	src: url("./fonts/fraunces-500.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	size-adjust: 101%;
	font-display: swap;
}
[data-xivlo-docs] .doc-info h3 {
	font-family: "Fraunces Docs", Fraunces, Georgia, serif;
}
@media (max-width: 640px) {
	.page-content:has(.page-shell) {
		padding-inline: var(--space-3);
	}
}
