/* Web Svazu zdravotně postižených Rakovník
   Paleta: smrková zelená #1E5B50, slunečnicová #F2B33D, papír #FFFFFF, inkoust #22302B */

* { box-sizing: border-box; }

:root {
  --spruce: #1e5b50;
  --spruce-dark: #14453c;
  --marigold: #f2b33d;
  --marigold-soft: #fdf3dd;
  --ink: #22302b;
  --ink-soft: #4c5a54;
  --tint: #edf3ef;
  --line: #d4ddd8;
}

html {
  font-size: 112.5%; /* 18px – čte se lépe i bez brýlí */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  /* patička vždy u spodního okraje, i na krátkých stránkách */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: 2.1rem; margin: 0 0 1.2rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.9rem; }
h3 { font-size: 1.15rem; margin: 0; }

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

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

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--marigold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

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

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

.site-header { background: var(--spruce); color: #fff; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.4rem;
  padding-bottom: 1rem;
}

.site-name { text-decoration: none; color: #fff; display: block; }
.site-name-main {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.15;
}
.site-name-sub {
  display: block;
  font-size: 1.05rem;
  color: #cfe0d6;
  letter-spacing: 0.02em;
}

.header-phone { margin: 0; color: #cfe0d6; }
.header-phone a { color: #fff; font-weight: 600; }

.site-nav { background: var(--spruce-dark); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 0.75rem 1.1rem 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 4px solid transparent;
}
.site-nav a:hover { background: var(--spruce); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--marigold); }
.site-nav :focus-visible { outline-color: var(--marigold); outline-offset: -3px; }

main.wrap {
  flex: 1;
  width: 100%;
  padding: 2.75rem 1.25rem 4.5rem;
}

.lead { font-size: 1.1rem; max-width: 42rem; }

/* ---------- úvod ---------- */

.intro h1 { max-width: 26em; }
.intro-text { max-width: 42rem; }
.intro-hours {
  max-width: 42rem;
  background: var(--marigold-soft);
  border-left: 5px solid var(--marigold);
  padding: 0.7rem 1rem;
  margin: 1.3rem 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-bottom: 2px solid var(--line);
  margin-top: 2.5rem;
}
.section-head h2 { margin: 0 0 0.5rem; }
.more-link { font-weight: 600; }

/* ---------- seznam akcí (vývěska) ---------- */

.event-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.event-row {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: #fff;
}

.event-date {
  flex: 0 0 5.2rem;
  text-align: center;
  background: var(--marigold);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.5rem 0.3rem 0.45rem;
}
.event-day {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.event-month { display: block; font-size: 0.85rem; font-weight: 600; }

.event-title a { color: var(--ink); text-decoration-color: var(--spruce); }
.event-title a:hover { color: var(--spruce-dark); }
.event-meta { margin: 0.15rem 0 0; color: var(--ink-soft); }
.event-type { font-weight: 600; color: var(--spruce); }
.event-meta .event-type::after { content: " · "; color: var(--ink-soft); font-weight: 400; }

.event-group.past .event-date { background: var(--tint); color: var(--ink-soft); }
.event-group.past .event-meta { color: var(--ink-soft); }

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

.breadcrumb { margin-bottom: 1.75rem; }

.event-kicker {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: var(--spruce);
}
.event-past-note {
  display: inline-block;
  background: var(--tint);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 0;
}
.event-facts > div {
  background: var(--tint);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.event-facts dt { font-weight: 700; color: var(--spruce-dark); }
.event-facts dd { margin: 0.15rem 0 0; }

.event-image img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- obsah z editoru ---------- */

.richtext { max-width: 42rem; }
.richtext img { max-width: 100%; height: auto; }
.richtext h2 { border-bottom: 2px solid var(--line); padding-bottom: 0.25rem; }
.richtext ul, .richtext ol { padding-left: 1.4rem; }
.richtext li { margin-bottom: 0.35rem; }

.contact-facts { margin-top: 0.5rem; }
.contact-facts small { color: var(--ink-soft); }

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

.site-footer {
  background: var(--tint);
  border-top: 4px solid var(--spruce);
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.footer-heading {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.site-footer p { margin: 0 0 0.35rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }

@media (max-width: 40rem) {
  h1 { font-size: 1.7rem; }
  .event-row { align-items: flex-start; }
  .event-date { flex-basis: 4.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
