/*
Theme Name: ZO OSPLD BRNO
Theme URI: https://www.ospld-brno.cz/
Author: ZO OSPLD BRNO
Author URI: https://www.ospld-brno.cz/
Description: Lehká šablona základní organizace OSPLD Brno. Barvy vycházejí z loga, texty se upravují v Přizpůsobení.
Version: 1.0.32
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ospld-brno
Tags: one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, news, editor-style
*/

/* Plus Jakarta Sans, SIL Open Font License. Soubory jsou v šabloně, stránka nevolá Google. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Základní barvy z loga: zlatá horní polovina, námořnická dolní. */
:root {
  --navy: #0c3852;
  --navy-deep: #082838;
  --navy-mid: #0f3d5e;
  --gold: #f4b41a;
  --gold-deep: #eab308;
  --gold-soft: #fff6dc;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #3e4c5e;
  --line: #e2e8f0;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(12, 56, 82, 0.07);
  --header-h: 5rem;
  --font: "Plus Jakarta Sans", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select,
optgroup,
pre,
code,
kbd,
samp,
.wp-block-code,
.wp-block-preformatted,
.wp-block-verse,
body :not(.dashicons):not(#wpadminbar):not(#wpadminbar *) {
  font-family: var(--font);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--navy-mid);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - 2rem));
}

#aktuality,
#vedeni,
#co-resite,
#kontakt {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

body.admin-bar #aktuality,
body.admin-bar #vedeni,
body.admin-bar #co-resite,
body.admin-bar #kontakt {
  scroll-margin-top: calc(var(--header-h) + 52px);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 10000;
  background: var(--gold);
  color: var(--navy);
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

.skip-link:focus {
  top: 0.75rem;
}

body.admin-bar .skip-link:focus {
  top: 3rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  background: linear-gradient(180deg, var(--gold) 0 50%, var(--navy) 50% 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold-deep);
}

.btn-primary:hover {
  background: var(--gold-deep);
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-navy,
.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-mid);
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex: none;
}

.icon-sm {
  width: 1.05rem;
  height: 1.05rem;
}

.text-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
}

/* Krizový pruh */
.alert-bar {
  background: var(--gold);
  color: var(--navy);
}

.alert-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0;
  text-align: center;
}

.alert-kicker {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
}

.alert-text {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.alert-bar a {
  color: var(--navy);
  font-weight: 800;
  text-underline-offset: 0.15em;
}

/* Hlavička */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(12px);
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header .container {
  width: min(1440px, calc(100% - 2rem));
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  min-height: var(--header-h);
}

.brand {
  order: 1;
  min-width: 0;
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.site-navigation {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.header-tools {
  order: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-cta {
  white-space: nowrap;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}

.mobile-cta {
  display: none;
}

.custom-logo-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

.brand-on-dark .custom-logo-link {
  background: #0a0a0a;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.brand-sub {
  margin: 0;
  max-width: 20rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.brand-wordmark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 0.95;
  color: var(--navy);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-wordmark {
    background-image: linear-gradient(180deg, var(--gold) 0 48%, var(--navy) 48% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.nav-menu,
.footer-menu,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.1rem 0.85rem;
}

.nav-menu > li > a {
  white-space: nowrap;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.05rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current_page_item > a {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-menu li {
  position: relative;
}

.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  z-index: 30;
  min-width: 220px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  display: block;
}

.nav-menu .sub-menu a {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 700;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu .current-menu-item > a {
  background: var(--gold-soft);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.menu-toggle.is-active .menu-bars {
  background: transparent;
}

.menu-toggle.is-active .menu-bars::before,
.menu-toggle.is-active .menu-bars::after {
  top: 0;
}

.menu-toggle.is-active .menu-bars::before {
  transform: rotate(45deg);
}

.menu-toggle.is-active .menu-bars::after {
  transform: rotate(-45deg);
}

/* Úvod */
.hero {
  background: var(--surface);
  padding: 3.25rem 0 3.75rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.05rem, 4.2vw, 3.3rem);
  max-width: 14ch;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-card {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.3rem 0.4rem;
  box-shadow: 0 18px 44px rgba(12, 56, 82, 0.16);
}

.hero-card h2 {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pillar-index {
  color: var(--gold);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.pillar strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
}

.pillar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

/* Sekce */
.section {
  padding: 4.1rem 0;
}

.section-alt {
  background: var(--bg);
}

.section-plain {
  background: var(--surface);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.section-head h2,
.news-column .section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card-grid,
.people-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.action-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem 1.1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

a.action-card:hover {
  color: var(--text);
  border-color: var(--gold-deep);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--navy);
}

.action-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.action-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  flex: 1;
}

.action-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Aktuality a termíny */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.85fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.news-item {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.news-list .news-item:first-child {
  padding-top: 0;
}

.news-item.has-thumb {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.news-thumb img {
  display: block;
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 10px;
}

.news-body time {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.news-title {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.news-title a {
  color: var(--navy);
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.15em;
}

.news-body p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.news-more-wrap {
  margin: 1.25rem 0 0;
}

.team-more {
  margin: 1.5rem 0 0;
  text-align: center;
}

.empty-note,
.empty-state p {
  color: var(--muted);
}

.notices-panel {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.25rem 0.6rem;
}

.notices-panel h2 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.35rem;
}

.notices-lead {
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.82);
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.notice-date {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.875rem;
}

.notices-panel a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
}

.notices-panel a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.notices-panel :focus-visible,
.hero-card :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

/* Lidé */
.person-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.person-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.person-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.person-role {
  margin: 0.15rem 0 0;
  color: var(--navy);
  font-style: italic;
  font-weight: 400;
}

.person-dept {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.person-contact {
  margin-top: 0.7rem;
}

.person-contact p {
  margin: 0 0 0.2rem;
}

.person-contact a {
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.person-contact a:hover {
  text-decoration: underline;
}

/* Patička */
.site-footer {
  background: var(--navy);
  color: #fff;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.95fr);
  gap: 2rem 2.2rem;
  padding: 3rem 0 2.2rem;
}

.footer-org {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-legal,
.footer-tagline,
.footer-address,
.footer-note,
.footer-urgent p {
  color: rgba(255, 255, 255, 0.86);
}

.footer-legal {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.footer-tagline {
  margin: 0 0 1rem;
  color: var(--gold);
  font-weight: 700;
}

.footer-address {
  font-style: normal;
}

.footer-address p,
.footer-urgent p {
  margin: 0 0 0.55rem;
}

.footer-label {
  font-weight: 800;
  color: #fff;
}

.footer-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-line .icon {
  color: var(--gold);
}

.footer-title {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-menu,
.footer-links {
  margin: 0 0 0.4rem;
}

.footer-menu a,
.footer-links a,
.site-footer .footer-line a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-menu a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-note {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

.urgent-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.urgent-phone:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.95rem 0 1.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

/* Vnitřní stránky */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 0 1.6rem;
}

.page-hero h1 {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-hero-lead {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  align-items: center;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.section-tight {
  padding: 2rem 0 4rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.entry-meta a {
  color: var(--navy);
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.share-label {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-bar .btn {
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
}

.share-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.entry-thumb {
  margin: 0 0 1.25rem;
}

.entry-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.entry-content {
  font-size: 1.125rem;
  line-height: 1.75;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h4 {
  margin: 1.8rem 0 0.6rem;
}

.entry-content .content-title {
  margin: 1.75rem 0 1.2rem;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
}

.entry-content .content-title h1,
.entry-content h1 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 0.45rem;
  box-sizing: border-box;
  text-align: center;
  color: var(--navy);
  background: transparent;
  border-bottom: 3px solid var(--gold);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 1.25rem;
}

.content-card {
  margin: 1.5rem 0 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.entry-content .content-card-header {
  margin: 0;
  padding: 0.9rem 1.2rem;
  background: var(--navy);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.3;
  border-bottom: 3px solid var(--gold);
}

.content-card-body {
  padding: 1.1rem 1.2rem 0.35rem;
}

.content-card-body > *:first-child {
  margin-top: 0;
}

.entry-content h3,
.entry-content .content-card-body h3,
.entry-content .wp-block-group.content-card > h3,
.entry-content .wp-block-group.content-card .wp-block-group__inner-container > h3 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1.6rem auto 1.15rem;
  padding: 0.85rem 1.35rem 0.7rem;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-bottom: 3px solid var(--gold);
  border-radius: 14px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.entry-content .wp-block-group.content-card > .content-card-header,
.entry-content .wp-block-group.content-card .wp-block-group__inner-container > .content-card-header,
.entry-content .wp-block-group.is-style-karta > h2.wp-block-heading:first-child,
.entry-content .wp-block-group.is-style-karta .wp-block-group__inner-container > h2.wp-block-heading:first-child {
  margin: 0 0 1rem;
  max-width: none;
  padding: 0.9rem 1.2rem;
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  border-radius: 0;
}

.entry-content .wp-block-group.content-card > :not(.content-card-header),
.entry-content .wp-block-group.content-card .wp-block-group__inner-container > :not(.content-card-header) {
  margin-left: 1.2rem;
  margin-right: 1.2rem;
}

.entry-content .wp-block-column > .content-card {
  height: 100%;
  margin-top: 0;
}

.entry-content .wp-block-column .content-card-header {
  font-size: 1.12rem;
}

.entry-content .content-note {
  margin: 0.85rem 0 1.25rem;
  padding: 0.9rem 1.05rem;
  background: #f3f6f9;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.entry-content .content-note h4,
.entry-content .content-note h5,
.entry-content .content-note h6 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}

.entry-content .content-note h4:last-child,
.entry-content .content-note h5:last-child,
.entry-content .content-note h6:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.entry-content .content-note p:last-child,
.entry-content .content-note .content-note-body > *:last-child {
  margin-bottom: 0;
}

.entry-content .content-card .wp-block-group {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content figure {
  margin: 0 0 1rem;
}

.entry-content ul {
  list-style: none;
  margin-left: 0.35rem;
  padding-left: 0;
}

.entry-content ul li {
  position: relative;
  padding-left: 1.85rem;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: calc((1.75em - 0.7rem) / 2);
  top: calc((1lh - 0.7rem) / 2);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold) 0 50%, var(--navy) 50% 100%);
}

.entry-content li + li {
  margin-top: 0.35rem;
}

.entry-content ol {
  padding-left: 1.85rem;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.15em;
}

.entry-content hr,
.entry-content .wp-block-separator:not(.is-style-dots) {
  clear: both;
  width: 100%;
  max-width: none;
  height: 3px;
  margin: 1.75rem 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--gold) 32%, var(--gold) 68%, var(--navy));
  opacity: 1;
  color: var(--gold);
}

.entry-content blockquote {
  margin: 1.75rem 0 0.4rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
}

.entry-content blockquote p,
.entry-content blockquote strong,
.entry-content blockquote b,
.entry-content blockquote em {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  font-style: italic;
  line-height: inherit;
}

.entry-content img {
  border-radius: 12px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--navy);
  color: #fff;
}

.entry-content .wp-block-table {
  overflow-x: auto;
}

.entry-content iframe,
.entry-content video,
.entry-content embed {
  max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
  color: var(--muted);
  font-size: 0.875rem;
}

.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
  background: var(--gold);
  color: var(--navy);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.edit-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.page-links {
  margin-top: 1.25rem;
  font-weight: 700;
}

.back-home {
  margin-top: 1rem;
}

.post-navigation {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  font-weight: 700;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .meta {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.pagination .nav-links,
.comments-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.search-form label {
  flex: 1 1 220px;
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 8rem;
}

.comments-area {
  margin-top: 2.2rem;
  padding-top: 0.5rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin: 0;
  padding-left: 1.2rem;
}

.comment-body {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.comment-meta {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.comment-form p {
  margin-bottom: 0.9rem;
}

.comment-form .form-submit {
  margin-bottom: 0;
}

/* Úzké obrazovky */
@media (max-width: 1180px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 3.6rem);
  }

  .custom-logo {
    max-height: 36px;
  }

  .header-tools {
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .mobile-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.85rem;
  }

  .mobile-cta + .mobile-cta {
    margin-top: 0.5rem;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 180;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--header-h) - 1rem);
    max-height: calc(100dvh - var(--header-h) - 1rem);
    overflow: auto;
    padding: 0.35rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(12, 56, 82, 0.08);
  }

  .js .site-navigation.is-open {
    display: flex;
  }

  html:not(.js) .site-navigation {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.8rem;
  }

  .nav-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu a {
    width: 100%;
    font-size: 1.05rem;
  }

  .nav-menu .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0.25rem 0.75rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    list-style: none;
  }
}

@media (max-width: 980px) {
  .card-grid,
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-urgent {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 2rem 0 2.4rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .people-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-urgent {
    order: -1;
  }

  .news-item.has-thumb {
    grid-template-columns: 1fr;
  }

  .news-thumb img {
    height: 11rem;
  }

  .entry-content {
    overflow-x: auto;
  }
}

@media (max-width: 420px) {
  .custom-logo {
    max-height: 36px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .action-card,
  .person-card,
  .btn,
  .menu-bars,
  .menu-bars::before,
  .menu-bars::after {
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  }

  a.action-card:hover,
  .person-card:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  .site-header,
  .alert-bar,
  .site-footer,
  .menu-toggle,
  .hero-actions,
  .skip-link,
  .edit-link,
  .breadcrumb,
  .share-bar,
  .post-navigation,
  .comments-area,
  .team-more,
  .header-cta,
  .mobile-cta {
    display: none !important;
  }

  body,
  .page-hero,
  .section,
  .section-alt,
  .content-card,
  .content-card-body,
  .content-note,
  .notices-panel,
  .hero-card,
  .person-card {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .container {
    width: auto !important;
    max-width: none !important;
  }

  .page-hero {
    border: 0 !important;
    padding: 0 0 0.4rem !important;
  }

  .page-hero h1,
  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .content-card-header,
  .entry-meta,
  .entry-meta a {
    color: #000 !important;
    background: transparent !important;
  }

  .content-card,
  .content-note,
  .entry-content blockquote,
  .person-card {
    break-inside: avoid;
    border-color: #bbb !important;
    box-shadow: none !important;
  }

  .content-card-header,
  .entry-content h3 {
    border-bottom: 2px solid #000 !important;
  }

  .entry-content h3 {
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0.35rem 0 0.15rem !important;
    border-radius: 0 !important;
    text-align: left !important;
  }

  .entry-content .btn,
  .entry-content .wp-block-button__link,
  .entry-content .wp-element-button {
    background: transparent !important;
    color: #000 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  .entry-content ul li::before {
    background: #000 !important;
  }

  img,
  svg {
    max-width: 100% !important;
  }

  .entry-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 400;
  }

  article[data-print-url]::after {
    content: "ZO OSPLD BRNO  ·  " attr(data-print-url);
    display: block;
    margin-top: 1.4rem;
    padding-top: 0.55rem;
    border-top: 1px solid #000;
    color: #000;
    font-size: 10pt;
    font-weight: 400;
  }
}
