/* Veřejný web spolku (modul Web). Barvy z loga: rákos, voda a zlatý kruh. Bez Bootstrapu. */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--ink: #13302A;
	--muted: #57675F;
	--line: #DCE6E2;
	--paper: #FFFFFF;
	--water-50: #EEF6F8;
	--water-100: #DDEDF2;
	--water: #1C6E8F;
	--water-dark: #155470;
	--pond: #1E5B43;
	--pond-dark: #133D2D;
	--gold: #E1A42A;
	--gold-soft: #FBF0D6;
	--radius: 14px;
	--radius-sm: 8px;
	--wrap: 1160px;
	--font-head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--water); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--water-dark); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
	color: var(--pond-dark);
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.w-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

.w-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--pond); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.w-skip:focus { left: 8px; }

main:focus { outline: none; }

/* ------------------------------------------------------------------ hlavička */

.w-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}

.w-header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.w-brand {
	display: flex; align-items: center; gap: 12px;
	text-decoration: none; color: var(--pond-dark);
	font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
	max-width: 280px;
}
.w-brand img { width: 48px; height: 48px; flex: none; }

.w-nav { margin-left: auto; }
.w-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.w-nav a {
	display: block; padding: 8px 10px; border-radius: var(--radius-sm);
	color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap;
}
.w-nav a:hover { background: var(--water-50); color: var(--pond-dark); }
.w-nav a[aria-current="page"] { color: var(--pond); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.w-nav-sub { position: relative; }
.w-nav-sub > ul {
	display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
	list-style: none; margin: 0; padding: 6px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: 0 12px 30px rgba(19, 48, 42, .12);
}
.w-nav-sub:hover > ul, .w-nav-sub:focus-within > ul { display: block; }

.w-menu-toggle {
	display: none; margin-left: auto; align-items: center; gap: 8px;
	background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 8px 12px; font: 600 .95rem var(--font-body); color: var(--pond-dark); cursor: pointer;
}
.w-menu-icon, .w-menu-icon::before, .w-menu-icon::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.w-menu-icon::before, .w-menu-icon::after { content: ""; position: absolute; left: 0; }
.w-menu-icon::before { top: -6px; }
.w-menu-icon::after { top: 6px; }

@media (max-width: 1080px) {
	.w-menu-toggle { display: inline-flex; }
	.w-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 8px 20px 16px; max-height: calc(100vh - 72px); overflow-y: auto;
	}
	.w-nav.is-open { display: block; }
	.w-nav > ul { flex-direction: column; align-items: stretch; }
	.w-nav a { padding: 12px 8px; font-size: 1.05rem; }
	.w-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
	.w-nav-sub > ul { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}

/* ------------------------------------------------------------------ úvodní pás */

.w-hero {
	position: relative;
	background: var(--water-50);
	padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
	overflow: hidden;
}

.w-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }

.w-hero h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); max-width: 16ch; margin-bottom: .3em; }

.w-hero-tagline { font-size: 1.2rem; color: var(--pond); font-weight: 500; margin-bottom: 1.2em; }

.w-hero-intro { max-width: 60ch; color: var(--ink); }
.w-hero-intro p:last-child { margin-bottom: 0; }

.w-hero-logo { display: flex; justify-content: center; }
.w-hero-logo img {
	width: min(320px, 70vw); border-radius: 50%;
	box-shadow: 0 0 0 10px #fff, 0 0 0 12px var(--gold), 0 24px 48px rgba(19, 48, 42, .18);
}

.w-hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 48px; fill: var(--paper); }

/* nejbližší akce v úvodním pásu */
.w-next {
	display: inline-flex; align-items: center; gap: 16px; margin-top: 28px;
	padding: 14px 20px 14px 14px; max-width: 100%;
	background: var(--paper); border-radius: var(--radius); text-decoration: none; color: var(--ink);
	border: 1px solid var(--water-100);
	box-shadow: 0 8px 24px rgba(28, 110, 143, .12);
}
.w-next:hover { color: var(--ink); border-color: var(--gold); }
.w-next-body { display: flex; flex-direction: column; min-width: 0; }
.w-next-label { font-size: .85rem; color: var(--muted); }
.w-next-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--pond-dark); }
.w-next-meta { font-size: .95rem; color: var(--muted); }

/* datová dlaždice: den a měsíc */
.w-date {
	flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 60px; height: 64px; border-radius: 12px;
	background: var(--gold-soft); color: var(--pond-dark); border: 1px solid #F1D79A;
	line-height: 1;
}
.w-date-day { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.w-date-month { font-size: .85rem; margin-top: 4px; }

/* ------------------------------------------------------------------ úvodní stránka */

.w-home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-top: 32px; padding-bottom: 72px; }

.w-section { padding-top: 32px; padding-bottom: 72px; }

.w-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.w-section-head h2 { margin: 0; }
.w-section-head a { font-weight: 500; white-space: nowrap; }

.w-panel { background: var(--water-50); border-radius: var(--radius); padding: 24px; }
.w-panel h2 { font-size: 1.3rem; }

.w-home-side { display: flex; flex-direction: column; gap: 24px; }

.w-quick { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.w-quick a { display: block; padding: 16px 20px; text-decoration: none; color: var(--ink); border-left: 4px solid transparent; }
.w-quick a + a { border-top: 1px solid var(--line); }
.w-quick a:hover { background: var(--water-50); border-left-color: var(--gold); color: var(--ink); }
.w-quick strong { display: block; font-family: var(--font-head); color: var(--pond-dark); font-size: 1.1rem; }
.w-quick span { font-size: .95rem; color: var(--muted); }

/* ------------------------------------------------------------------ akce */

.w-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.w-event { display: flex; gap: 14px; align-items: flex-start; }
.w-event-body { min-width: 0; }
.w-event-title { font-weight: 600; color: var(--pond-dark); text-decoration: none; font-size: 1.05rem; line-height: 1.3; }
.w-event-title:hover { text-decoration: underline; color: var(--pond-dark); }
.w-event-meta { margin: 4px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }

.w-events-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

.w-calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.w-calendar-head h2 { margin: 0; }
.w-calendar-nav {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 1.4rem; color: var(--pond);
}
.w-calendar-nav:hover { border-color: var(--gold); background: var(--gold-soft); }

.w-calendar-grid { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 24px; }
.w-calendar-grid th { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 6px 0; }
.w-calendar-grid abbr { text-decoration: none; }
.w-calendar-grid td {
	vertical-align: top; height: 92px; padding: 6px; border: 1px solid var(--line); font-size: .85rem;
}
.w-calendar-grid td.is-out { background: #FAFCFC; color: #A3B0AB; }
.w-calendar-grid td.is-today .w-calendar-day { background: var(--pond); color: #fff; }
.w-calendar-day { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; font-weight: 600; }
.w-calendar-event {
	display: block; margin-top: 4px; padding: 2px 6px; border-radius: 6px;
	background: var(--gold-soft); border-left: 3px solid var(--gold);
	color: var(--pond-dark); text-decoration: none; font-weight: 500; line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w-calendar-event:hover { background: #F7E3B2; color: var(--pond-dark); }
.w-calendar-list { display: none; }

@media (max-width: 720px) {
	.w-calendar-grid td { height: 52px; padding: 3px; text-align: center; }
	.w-calendar-grid td.has-events .w-calendar-day { box-shadow: 0 0 0 2px var(--gold); }
	.w-calendar-event { display: none; }
	.w-calendar-list { display: flex; }
}

.w-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 32px; }
.w-facts div { background: var(--water-50); border-radius: var(--radius-sm); padding: 14px 18px; }
.w-facts dt { font-size: .85rem; color: var(--muted); }
.w-facts dd { margin: 2px 0 0; font-weight: 600; }

.w-report { margin-top: 32px; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ------------------------------------------------------------------ příspěvky */

.w-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.w-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.w-card { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.w-card-large { grid-column: 1 / -1; }
.w-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.w-card-link:hover .w-card-title { color: var(--water); }
.w-card-img { aspect-ratio: 3 / 2; background: var(--water-100); overflow: hidden; }
.w-card-img img { width: 100%; height: 100%; object-fit: cover; }
.w-card-large .w-card-link { display: grid; grid-template-columns: 1.3fr 1fr; }
.w-card-large .w-card-img { aspect-ratio: auto; min-height: 280px; }
.w-card-large .w-card-body { align-self: center; padding: 28px; }
.w-card-large .w-card-title { font-size: 1.6rem; }
.w-card-plain { border-top: 4px solid var(--gold); }
.w-card-body { padding: 18px 20px 20px; }
.w-card-date { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.w-card-title { margin: 0 0 8px; transition: color .15s; }
.w-card-perex { margin: 0; color: var(--muted); font-size: .98rem; }

.w-pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; }
.w-pager a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; }

/* ------------------------------------------------------------------ článek, stránky */

.w-page-head { background: var(--water-50); padding: 48px 0 40px; margin-bottom: 8px; }
.w-page-head h1 { margin-bottom: .2em; }
.w-lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0; }

.w-crumbs { margin: 0 0 8px; font-size: .95rem; }

.w-article-head { padding-top: 48px; padding-bottom: 8px; max-width: calc(760px + 40px); }
.w-article-date { color: var(--muted); }
.w-article .w-wrap:not(.w-gallery-wrap) { max-width: calc(760px + 40px); }
.w-article-event { color: var(--muted); }

.w-prose { max-width: 70ch; }
.w-prose h2 { margin-top: 1.6em; }
.w-prose h3 { margin-top: 1.4em; }
.w-prose ul, .w-prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.w-prose li { margin-bottom: .35em; }
.w-prose blockquote { margin: 1.4em 0; padding: 8px 0 8px 20px; border-left: 4px solid var(--gold); color: var(--pond-dark); font-size: 1.1rem; }
.w-prose pre { white-space: pre-wrap; background: var(--water-50); padding: 12px 16px; border-radius: var(--radius-sm); }
.w-pre { white-space: pre-line; }

.w-with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }

.w-sublinks { list-style: none; margin: 0; padding: 0; }
.w-sublinks a { display: block; padding: 8px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--water-100); }
.w-sublinks a[aria-current="page"] { color: var(--pond-dark); font-weight: 700; }

/* galerie a prohlížeč fotek */
.w-gallery-wrap { padding-top: 24px; padding-bottom: 56px; }
.w-gallery-wrap h2 .w-muted { font-weight: 500; font-size: 1rem; }
.w-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.w-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--water-100); }
.w-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.w-gallery a:hover img { transform: scale(1.04); }

.w-lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(9, 22, 18, .94); color: #fff; }
.w-lightbox::backdrop { background: rgba(9, 22, 18, .94); }
.w-lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.w-lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.w-lightbox figcaption { margin-top: 12px; text-align: center; color: #D8E4E0; min-height: 1.5em; }
.w-lightbox button {
	position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
	width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.w-lightbox button:hover { background: rgba(255, 255, 255, .24); }
.w-lightbox-close { top: 12px; right: 12px; }
.w-lightbox-prev { left: 12px; top: 50%; translate: 0 -50%; }
.w-lightbox-next { right: 12px; top: 50%; translate: 0 -50%; }

/* ------------------------------------------------------------------ revíry */

.w-map { height: min(520px, 70vh); border-radius: var(--radius); border: 1px solid var(--line); margin: 8px 0 40px; z-index: 0; }

.w-fisheries { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px 48px; }
.w-fishery { padding-top: 20px; border-top: 3px solid var(--water-100); }
.w-fishery:target { border-top-color: var(--gold); }

/* ------------------------------------------------------------------ kontakty */

.w-contacts { list-style: none; margin: 8px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.w-contact { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.w-contact p { margin: 0 0 4px; }
.w-contact-role { font-size: .9rem; color: var(--muted); }
.w-contact-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--pond-dark); margin-bottom: 8px !important; }
.w-org { max-width: 420px; }
.w-org address { font-style: normal; }

/* ------------------------------------------------------------------ patička */

.w-footer { background: var(--pond-dark); color: #D6E3DD; padding-top: 48px; font-size: .95rem; }
.w-footer a { color: #fff; }
.w-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.w-footer-name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.15rem; }
.w-footer-head { color: var(--gold); font-weight: 600; margin-bottom: .6em; }
.w-footer address { font-style: normal; }
.w-footer-list { list-style: none; margin: 0; padding: 0; }
.w-footer-list li { margin-bottom: 6px; }
.w-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }

/* ------------------------------------------------------------------ menší obrazovky */

@media (max-width: 960px) {
	.w-home, .w-events-layout, .w-with-side { grid-template-columns: minmax(0, 1fr); }
	.w-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.w-card-large .w-card-link { grid-template-columns: minmax(0, 1fr); }
	.w-card-large .w-card-img { aspect-ratio: 3 / 2; min-height: 0; }
	.w-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	body { font-size: 1rem; }
	.w-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.w-hero-logo { order: -1; justify-content: flex-start; }
	.w-hero-logo img { width: 112px; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--gold); }
	.w-cards, .w-cards-grid { grid-template-columns: minmax(0, 1fr); }
	.w-card-large .w-card-body { padding: 18px 20px 20px; }
	.w-card-large .w-card-title { font-size: 1.3rem; }
	.w-brand-name { font-size: .95rem; }
	.w-footer-grid { grid-template-columns: minmax(0, 1fr); }
	.w-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
	.w-lightbox figure { padding: 56px 8px 16px; }
	.w-page-head { padding: 32px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; }
}

.w-article-head .w-lead { margin-bottom: 24px; }

.w-error { min-height: 40vh; padding-top: 72px; }
