/* ==========================================================================
   STO WSE Fund theme — main stylesheet
   ========================================================================== */

:root {
	--navy: #1b2f7a;
	--navy-ink: #14204f;
	--ink: #1f2a44;
	--muted: #556079;
	--line: #dbe3f0;
	--bg: #f4f7fb;
	--surface: #ffffff;
	--green: #1f7a40;
	--red: #b42f2f;
	--gold: #e9c33f;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(20, 32, 79, .06), 0 6px 20px rgba(20, 32, 79, .06);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-ink); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 2px #14204f; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto; margin: 0;
	padding: 10px 16px; background: #fff; color: var(--navy);
	box-shadow: var(--shadow);
}

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

/* Buttons ---------------------------------------------------------------- */
.button {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.4em;
	border-radius: 999px;
	background: var(--navy); color: #fff;
	font-weight: 600; text-decoration: none;
	transition: background .15s ease, transform .15s ease;
}
.button:hover { background: var(--navy-ink); color: #fff; transform: translateY(-1px); }
.button--small { padding: .5em 1.1em; font-size: .9rem; white-space: nowrap; }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-brand img { max-height: 52px; width: auto; height: auto; display: block; }
.site-brand__name { font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; }

.site-account { display: flex; align-items: center; gap: 14px; }
.site-account__name { font-weight: 600; color: var(--muted); }
.site-lang { font-weight: 700; color: var(--navy); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.site-lang:hover { background: #eef2fb; color: var(--navy); }
.button--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.button--ghost:hover { background: #eef2fb; color: var(--navy); }
@media (max-width: 560px) {
	.site-account__name { display: none; }
	.site-account { gap: 6px; }
	.site-brand img { max-height: 36px; max-width: 58vw; }
}

/* Generic content -------------------------------------------------------- */
.site-main { padding-block: 40px 64px; }
.entry { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin-bottom: 24px; }
.entry-title { color: var(--navy); line-height: 1.2; margin-top: 0; }
.entry-content--intro { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.entry-content--intro:empty { display: none; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-ink); color: #c9d3ee; padding-block: 28px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

@media print {
	.site-header, .site-footer { display: none; }
}
