/* ==========================================================================
   Web římskokatolické farnosti Dolní Benešov - Stylopis
   ========================================================================== */

/* --------------------------------------------------------------------------
   Písma (Self-hosted @fontsource přes www/assets/fonts/)
   -------------------------------------------------------------------------- */

/* Inter - 400 normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.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;
}

/* Inter - 600 semi-bold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.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;
}

/* Inter - 700 bold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700-normal.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;
}

/* Source Serif 4 - 400 normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-400-normal.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;
}

/* Source Serif 4 - 600 semi-bold */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-600-normal.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;
}

/* Source Serif 4 - 700 bold */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-700-normal.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;
}

/* --------------------------------------------------------------------------
   Proměnné designu (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #FAF7F2;
  --color-card: #FFFFFF;
  --color-subtle: #F2ECE2;
  --color-text: #2B2623;
  --color-text-muted: #5F5650;
  --color-burgundy: #7A1F2B;
  --color-burgundy-hover: #5A141E;
  --color-burgundy-light: #F7EAEB;
  --color-gold: #B8913B;
  --color-gold-dark: #8C6820;
  --color-gold-light: #FAF3E0;
  --color-border: #E6DFD3;
  --color-border-dark: #D1C5B4;

  --color-footer-bg: #241E1C;
  --color-footer-text: #FAF7F2;
  --color-footer-muted: #BDB4AA;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 72rem;
  --prose-max: 46rem; /* ~70-75ch */

  --shadow-sm: 0 1px 3px rgba(43, 38, 35, 0.05);
  --shadow-md: 0 4px 14px rgba(43, 38, 35, 0.07);
  --shadow-lg: 0 10px 28px rgba(43, 38, 35, 0.1);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* --------------------------------------------------------------------------
   Reset & Základní nastavení
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-burgundy);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 1rem;
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--color-burgundy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

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

/* --------------------------------------------------------------------------
   Layout & Kontejnery
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--prose-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-main {
  flex: 1 0 auto;
  padding-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   Hlavička (Header) & Navigace
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.5rem 0;
}

.site-brand:hover {
  color: var(--color-burgundy);
}

.site-brand-icon {
  width: 28px;
  height: 28px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Navigace */
.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0.85rem;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-burgundy);
  background-color: var(--color-burgundy-light);
}

/* Dropdown podstránky */
.has-dropdown {
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  background: none;
  border: none;
  padding: 0.6rem 0.4rem;
  margin-left: -0.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.dropdown-toggle:hover {
  color: var(--color-burgundy);
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.has-dropdown[data-open="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 101;
}

.has-dropdown[data-open="true"] .dropdown-menu {
  display: block;
}

.dropdown-item a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item a:hover {
  background-color: var(--color-subtle);
  color: var(--color-burgundy);
}

/* Mobilní hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.hamburger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.hamburger-bars span {
  display: block;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   Úvodní strana (Hero, Dlaždice, Poslední aktuality)
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero-symbol {
  width: 40px;
  height: 40px;
  color: var(--color-gold);
  margin: 0 auto 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--color-burgundy);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 auto;
  font-weight: 400;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 1.5rem auto 0;
}

/* Sekce dlaždic */
.section-tiles {
  padding: 3rem 0;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tile-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.tile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.tile-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-gold-light);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tile-icon {
  width: 24px;
  height: 24px;
}

.tile-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.tile-card:hover .tile-title {
  color: var(--color-burgundy);
}

.tile-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
}

.tile-arrow {
  color: var(--color-burgundy);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Sekce posledních aktualit */
.section-latest-posts {
  padding: 1rem 0 3rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0;
  font-size: 1.75rem;
  color: var(--color-burgundy);
}

.section-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-burgundy);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.post-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: var(--color-subtle);
  border-bottom: 1px solid var(--color-border);
}

.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-date {
  font-size: 0.825rem;
  color: var(--color-burgundy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.post-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-burgundy);
}

.post-card-perex {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.btn-more-posts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background-color: var(--color-burgundy);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.btn-more-posts:hover {
  background-color: var(--color-burgundy-hover);
  color: #ffffff;
}

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

/* --------------------------------------------------------------------------
   Podstránky & Typografie obsahu (.prose)
   -------------------------------------------------------------------------- */
.page-header {
  padding: 2.5rem 0 1.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-burgundy);
  text-decoration: underline;
}

.breadcrumbs-separator {
  color: var(--color-border-dark);
}

.breadcrumbs-current {
  color: var(--color-text);
  font-weight: 600;
}

.page-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-burgundy);
}

.page-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.prose {
  line-height: 1.75;
  font-size: 1.0625rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose ul, .prose ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--color-gold);
  background-color: var(--color-subtle);
  font-style: italic;
  color: var(--color-text);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.prose th {
  background-color: var(--color-subtle);
  font-family: var(--font-serif);
  font-weight: 600;
}

.prose tr:nth-child(even) td {
  background-color: #FAF7F2;
}

.prose img {
  border-radius: var(--radius-sm);
  margin: 1.5rem auto;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Aktuality (Seznam & Detail)
   -------------------------------------------------------------------------- */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.post-list-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.5rem;
}

.post-list-image {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.post-list-content {
  flex-grow: 1;
}

.post-list-title {
  margin-bottom: 0.5rem;
}

.post-list-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-list-title a:hover {
  color: var(--color-burgundy);
}

/* Stránkování */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: #ffffff;
}

.pagination a:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.pagination .current {
  background-color: var(--color-burgundy);
  border-color: var(--color-burgundy);
  color: #ffffff;
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Detail aktuality */
.post-detail-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-detail-perex {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Kontakt (/kontakt)
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 1.25rem;
  column-gap: 1.5rem;
  margin: 0;
}

.contact-dl dt {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-burgundy);
  font-size: 1.05rem;
}

.contact-dl dd {
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
}

.contact-mass-times {
  white-space: pre-line;
}

/* --------------------------------------------------------------------------
   Chybové stránky (404, 500)
   -------------------------------------------------------------------------- */
.error-page {
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-burgundy);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 30rem;
  margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   Patička (Footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  border-top: 3px solid var(--color-gold);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-col p {
  color: var(--color-footer-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--color-footer-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(230, 223, 211, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-footer-muted);
}

.footer-bottom a {
  color: var(--color-footer-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-footer-text);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Flash zprávy
   -------------------------------------------------------------------------- */
.flashes {
  margin: 1rem 0;
}

.flash {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.flash.success {
  background-color: #E8F5E9;
  border: 1px solid #C8E6C9;
  color: #2E7D32;
}

.flash.info {
  background-color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-dark);
}

.flash.danger, .flash.error {
  background-color: var(--color-burgundy-light);
  border: 1px solid var(--color-burgundy);
  color: var(--color-burgundy);
}

/* --------------------------------------------------------------------------
   Responzivita & Přístupnost (Media queries)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 2px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
  }

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

  .dropdown-toggle {
    padding: 0.75rem 1.5rem;
    margin-left: auto;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-gold);
    background-color: var(--color-subtle);
    border-radius: 0;
    margin: 0 1.5rem 0.5rem;
    min-width: unset;
  }

  .post-list-item {
    flex-direction: column;
  }

  .post-list-image {
    width: 100%;
    height: 180px;
  }

  .contact-dl {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .page-title {
    font-size: 1.85rem;
  }
  .tiles-grid, .posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Desktop: dlouhé menu se zalomí do dalšího řádku místo zalamování textu položek */
@media (min-width: 861px) {
  .site-header-inner {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 0.25rem;
  }

  .site-brand {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .primary-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-link {
    white-space: nowrap;
  }
}
