/* ==========================================================================
   Design tokens
   ========================================================================== */
/*
 * Design tokens.
 *
 * The identity is built on three things: the ellipsis of the "sušg…" mark,
 * the study-field pictograms, and the custom Dottie display face. The token
 * system follows from that — square containers, circular dots, pill buttons,
 * and elevation carried by tone and hairlines rather than drop shadows.
 */
:root {
  /* Shape. Containers are square, dots and buttons are round: the contrast
     between the two is the system, so nothing sits at a generic 4px. */
  --radius: 0px;
  --radius-pill: 999px;
  --radius-dot: 50%;
  --radius-card-a: 0px;
  --radius-card-b: 0px;
  --radius-media: 0px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 96px;
  --space: var(--space-lg);

  /* Neutrals carry a hint of the accent so paper and terracotta read as one
     family. A cold grey next to a warm accent is what makes a palette look
     unconsidered. */
  --color-surface: var(--color-background, #fff);
  --color-surface-alt: color-mix(in srgb, var(--color-accent, #b84636) 4%, #faf9f8);
  --color-surface-dark: var(--color-secondary, #1A1122);
  --color-paper: color-mix(in srgb, var(--color-accent, #b84636) 2.5%, #ffffff);

  --color-border: color-mix(in srgb, var(--color-text, #102030) 12%, transparent);
  --color-border-strong: color-mix(in srgb, var(--color-text, #102030) 22%, transparent);
  /* Form field outlines are a UI component boundary: WCAG 1.4.11 wants 3:1,
     which the decorative card hairline above does not reach. */
  --color-border-field: color-mix(in srgb, var(--color-text, #102030) 48%, transparent);

  --color-muted: color-mix(in srgb, var(--color-text, #102030) 68%, var(--color-surface, #fff));
  --color-primary-hover: color-mix(in srgb, var(--color-primary, #19182b) 82%, black);
  --color-primary-active: color-mix(in srgb, var(--color-primary, #19182b) 70%, black);
  --color-accent-hover: color-mix(in srgb, var(--color-accent, #b84636) 82%, black);

  /* Text colour that is guaranteed to sit legibly on the accent, whatever the
     administrator picks. Overridden per palette by the runtime CSS vars. */
  --color-accent-on: #ffffff;

  /* Accent palette — fully dynamic, follows --color-accent from Customizer */
  --color-fuchsia: var(--color-accent, #b84636);
  --color-fuchsia-hover: var(--color-accent-hover, #93382b);
  --color-fuchsia-light: color-mix(in srgb, var(--color-accent, #b84636) 8%, #fff);
  --color-fuchsia-subtle: color-mix(in srgb, var(--color-accent, #b84636) 16%, #fff);

  /* Flat surfaces — tone, not shadow. */
  --surface-flat: color-mix(in srgb, var(--color-accent, #b84636) 5%, #f7f6f5);
  --surface-flat-strong: color-mix(in srgb, var(--color-accent, #b84636) 10%, #f2f0ef);
  --surface-flat-edge: color-mix(in srgb, var(--color-text, #102030) 10%, transparent);
  --surface-flat-edge-strong: color-mix(in srgb, var(--color-text, #102030) 18%, transparent);

  /* Typography scale */
  --font-heading: var(--font-display, "Dottie", "Sora", system-ui, sans-serif);
  --font-body: var(--font-primary, "Apparat", "Inter", system-ui, sans-serif);
  --font-heading-weight: 400;
  --tracking-display: -0.02em;
  --tracking-eyebrow: 0.16em;

  /* Elevation. A flat design earns depth from hairlines and tone; the shadow
     tokens stay defined so older rules keep working, but they are barely
     visible on purpose. */
  --shadow-sm:         0 0 0 1px var(--surface-flat-edge);
  --shadow-md:         0 0 0 1px var(--surface-flat-edge);
  --shadow-lg:         0 0 0 1px var(--surface-flat-edge-strong);
  --shadow-accent:     none;
  --shadow-flat:       0 0 0 1px var(--surface-flat-edge);
  --shadow-flat-hover: 0 0 0 1px var(--color-accent, #b84636);
}

/* ==========================================================================
   Lucide icon base styles
   ========================================================================== */
.susg-icon {
  display: inline-block;
  vertical-align: -0.125em; /* optical alignment with text */
  flex-shrink: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section-space {
  padding-block: clamp(2rem, 4vw, 4rem);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -100vw;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-surface);
  color: var(--color-text, #102030);
  padding: var(--space-sm) 0.75rem;
  z-index: 2000;
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.pad-inline {
  padding-inline: 2.5rem !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0;
  background: color-mix(in srgb, var(--color-background, #fff) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-backdrop-filter: blur(12px);
  overflow: visible;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 4.5rem;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

.site-brand strong {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.site-brand span {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* Pill CTA button in header */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-fuchsia);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--color-fuchsia-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Pill outline button in header */
.header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  background: var(--surface-flat);
  box-shadow: var(--shadow-flat);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.header-login:hover {
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-flat-hover);
  color: inherit;
}

/* Hide desktop-only header buttons on mobile — they appear in the drawer instead */
.header-cta--desktop,
.header-login--desktop {
  display: none;
}

@media (min-width: 1200px) {
  .header-cta--desktop,
  .header-login--desktop {
    display: inline-flex;
  }
}

/* CTA + login inside mobile drawer */
.drawer-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
}

.drawer-cta-group .header-cta,
.drawer-cta-group .header-login {
  justify-content: center;
  width: 100%;
}

/* Header actions (search + menu toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ==========================================================================
   Search toggle (header)
   ========================================================================== */
.search-toggle {
  border: 0;
  background: transparent;
  padding: var(--space-sm);
  cursor: pointer;
  color: inherit;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: background 0.15s ease;
}

.search-toggle:hover {
  background: var(--color-border);
}

.search-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.header-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 0;
  padding: var(--space-md);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.header-search.is-open {
  display: block;
}

.header-search__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto;
}

.header-search__input {
  flex: 1;
  min-height: 2.75rem;
  border: 1px solid var(--color-border-field);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  font: inherit;
  font-size: 1rem;
  background: var(--color-surface);
}

.header-search__input:focus {
  outline: 2px solid var(--color-primary, #0b5fff);
  outline-offset: -1px;
}

.header-search__submit {
  min-height: 2.75rem;
}

/* ==========================================================================
   Menu toggle
   ========================================================================== */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-flat);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--color-text, #102030);
}

/* Focus-visible for keyboard users */
.menu-toggle:focus-visible,
.main-nav a:focus-visible,
.search-toggle:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-text, #102030);
  outline-offset: 2px;
  /* Second ring in the page colour so the outline stays visible on top of a
     dark or accent-coloured control, where a single dark ring disappears. */
  box-shadow: 0 0 0 4px var(--color-background, #fff);
  border-radius: 2px;
}

/* Explicit :focus fallback for browsers that don't support :focus-visible */
.button:focus,
.filters button:focus,
select:focus,
.filters select:focus {
  outline: 2px solid var(--color-text, #102030);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-background, #fff);
}

/* ==========================================================================
   Navigation — Desktop
   ========================================================================== */
.main-nav--desktop ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: var(--space-sm);
}

.main-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover {
  color: var(--color-fuchsia);
  background: var(--color-fuchsia-light);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--color-fuchsia);
  font-weight: 600;
}

.main-nav--desktop .menu-item-has-children {
  position: relative;
}

.main-nav--desktop .menu-item-has-children > .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  padding: var(--space-sm);
  flex-direction: column;
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.main-nav--desktop .menu-item-has-children:hover > .sub-menu,
.main-nav--desktop .menu-item-has-children:focus-within > .sub-menu,
.main-nav--desktop .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Navigation — Mobile drawer
   ========================================================================== */
.drawer {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 1100;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 27, 0.5);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: min(88vw, 420px);
  background: var(--color-surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer__close {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--surface-flat);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--color-text, #102030);
}

/* Search in mobile drawer */
.drawer-search {
  display: flex;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.drawer-search__input {
  flex: 1;
  min-height: 2.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  font: inherit;
}

.main-nav--mobile ul,
.menu--mobile {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav--mobile > nav > ul > .menu-item > a,
.menu--mobile > .menu-item > a {
  font-weight: 700;
  font-size: 1.05rem;
}

.main-nav--mobile .menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 0;
}

.main-nav--mobile .menu-item > a {
  display: block;
  min-width: 0;
  padding: 0.45rem 0;
}

.main-nav--mobile .sub-menu {
  display: none;
  grid-column: 1 / -1;
  margin: 0.35rem 0 0.1rem;
  border-left: 2px solid color-mix(in srgb, var(--color-fuchsia) 30%, transparent);
  padding-left: 0.85rem;
}

.main-nav--mobile .sub-menu .menu-item {
  border-bottom: 0;
  padding: 0.2rem 0;
}

.main-nav--mobile .sub-menu .menu-item > a {
  font-weight: 400;
  font-size: 0.95rem;
}

.menu--mobile .submenu-open > .sub-menu {
  display: block;
}

.menu--mobile .submenu-toggle {
  border: 0;
  background: var(--surface-flat);
  border-radius: var(--radius);
  font: inherit;
  width: 2rem;
  height: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu--mobile .submenu-toggle:hover {
  background: var(--color-border);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  background: var(--color-surface-alt, #f4f4f5);
}

.breadcrumbs__list {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.8rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  font-size: 0.86rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  margin-right: var(--space-sm);
  color: var(--color-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.filters button,
.button,
.btn {
  border: 0;
  background: var(--color-primary, #0b5fff);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.btn:hover,
.filters button:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.button:active,
.btn:active,
.filters button:active {
  background: var(--color-primary-active);
}

/* The accent is chosen by the school and can be light. --color-accent-on is
   computed from its luminance, so the label stays readable either way. */
.button--accent,
.btn--primary {
  background: var(--color-fuchsia);
  color: var(--color-accent-on, #fff);
}

.button--accent:hover,
.btn--primary:hover,
.button--accent:focus,
.btn--primary:focus {
  background: var(--color-fuchsia-hover);
  color: var(--color-accent-on, #fff);
}

.button--outline,
.btn--ghost {
  background: var(--surface-flat);
  color: var(--color-text, #1A1122);
  border: 0;
  box-shadow: var(--shadow-flat);
}

.button--outline:hover,
.btn--ghost:hover {
  background: var(--surface-flat-strong);
  color: var(--color-text, #1A1122);
  box-shadow: var(--shadow-flat-hover);
}

.button--outline-dark {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
}

.button--outline-dark:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.button--lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
}

.button--sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

/* News cards: keep stable desktop width (3 columns / 1-3 each). */
.card-grid[data-news-grid] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: none;
  transition: box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  background: var(--surface-flat);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-flat-hover);
  transform: translateY(-2px);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card--highlight {
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-accent);
}

.card--muted {
  opacity: 0.7;
}

/* ==========================================================================
   Termíny archive
   ========================================================================== */
.termin-archive {
  max-width: var(--container);
}

.termin-archive__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
  align-items: end;
  gap: var(--space-xl);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--color-border);
}

.termin-archive__hero h1 {
  margin: 0.2rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: var(--tracking-display);
  line-height: 1;
}

.termin-archive__hero > p {
  max-width: 42ch;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.termin-type-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: calc(-1 * var(--space-xl)) 0 clamp(2rem, 5vw, 3.5rem);
}

.termin-type-nav a,
.termin-group__all {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface-flat);
  color: var(--color-text);
  box-shadow: var(--shadow-flat);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.termin-type-nav a:hover,
.termin-group__all:hover {
  background: var(--surface-flat-strong);
  color: var(--color-fuchsia);
  box-shadow: var(--shadow-flat-hover);
}

.termin-archive__period + .termin-archive__period {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.termin-archive__period-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.termin-archive__period-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-fuchsia);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.termin-archive__period-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.termin-archive__count {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--font-heading-weight, 400);
  font-variant-numeric: tabular-nums;
}

.termin-groups {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.termin-group {
  scroll-margin-top: 6rem;
}

.termin-group__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.termin-group__index {
  color: var(--color-fuchsia);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: 0.08em;
}

.termin-group__header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.15;
}

.termin-group__header p {
  margin: 0.15rem 0 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.termin-group__header--past {
  grid-template-columns: 1fr;
}

.termin-group__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.termin-archive-card {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-md);
  min-height: 10rem;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.termin-archive-card:hover {
  border-color: var(--color-fuchsia);
  background: var(--color-paper);
  transform: translateY(-2px);
}

.termin-archive-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  min-height: 3.8rem;
  padding: 0.4rem;
  background: var(--color-fuchsia-light);
  color: var(--color-fuchsia);
  line-height: 1;
}

.termin-archive-card__date strong {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: var(--font-heading-weight, 400);
  font-variant-numeric: tabular-nums;
}

.termin-archive-card__date span {
  margin-top: 0.25rem;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.termin-archive-card__body {
  min-width: 0;
}

.termin-archive-card__when {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.termin-archive-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.25;
}

.termin-archive-card__title a {
  color: inherit;
  text-decoration: none;
}

.termin-archive-card__location {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.termin-archive-card__location svg {
  flex: none;
  margin-top: 0.1rem;
}

.termin-archive-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.termin-archive-card__detail {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--surface-flat);
  color: var(--color-fuchsia);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.termin-archive-card__detail svg {
  display: block;
  width: 1.0625rem;
  height: 1.0625rem;
  margin: 0;
  transform: translateX(0.5px);
}

.termin-archive-card__detail:hover {
  background: var(--color-fuchsia);
  color: var(--color-accent-on, #fff);
}

.termin-groups--past .termin-archive-card {
  min-height: 8.5rem;
  background: var(--color-surface-alt);
}

.termin-archive-card--past .termin-archive-card__date {
  background: var(--surface-flat-strong);
  color: var(--color-muted);
}

.termin-archive__empty {
  display: grid;
  justify-items: center;
  gap: var(--space-sm);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px dashed var(--color-border-strong);
  background: var(--color-surface-alt);
  color: var(--color-muted);
  text-align: center;
}

.termin-archive__empty p {
  max-width: 40rem;
  margin: 0;
}

.termin-archive__empty--compact {
  padding: var(--space-xl);
}

@media (max-width: 1020px) {
  .termin-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .termin-archive__hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-md);
  }

  .termin-type-nav {
    margin-top: -1rem;
  }

  .termin-group__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .termin-group__header {
    grid-template-columns: auto 1fr;
  }

  .termin-group__all {
    grid-column: 2;
    justify-self: start;
  }

  .termin-archive-card {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    padding: var(--space-md);
  }

  .termin-archive-card__date {
    width: 3.25rem;
  }

  .termin-archive-card__actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


/* Obor archive intro */
.archive-obor__header {
  margin-bottom: var(--space-xl);
}

.archive-obor__title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

.archive-obor__lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 480px;
  align-self: flex-end;
}

/* Obor card — photo + icon overlay */
.card--obor {
  border: none;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(16,32,48,.04), 0 2px 8px color-mix(in srgb, var(--color-obor, #4a3f91) 10%, transparent);
}

.card--obor:hover {
  box-shadow: 0 2px 6px rgba(16,32,48,.06), 0 4px 12px color-mix(in srgb, var(--color-obor, #4a3f91) 16%, transparent);
}

/* Photo thumbnail — when post thumbnail is set */
.card--obor .obor__photo {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-obor, var(--color-primary, #0b5fff));
}

.card--obor .obor__photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: saturate(0);
  mix-blend-mode: multiply;
}

.card--obor:hover .obor__photo img {
  transform: scale(1.05);
}

/* Icon badge centered in photo */
.card--obor .obor__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(4rem, 45%, 7rem);
  height: clamp(4rem, 45%, 7rem);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.card--obor .obor__badge .obor__icon {
  width: 62%;
  height: 62%;
  color: inherit;
  background: transparent;
}

.card--obor .obor__badge .obor__icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-obor, var(--color-primary, #0b5fff));
  mix-blend-mode: screen;
}

.card--obor .card__body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border: 0;
  background: var(--color-fuchsia-light);
  border-radius: 0 0 var(--radius) var(--radius);
  flex: 1;
}

/* Fallback — no photo: show icon */
.card--obor .obor__icon-wrap {
  padding: var(--space-md) var(--space-lg) 0;
}

.card--obor .obor__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-obor, var(--color-primary)) 12%, var(--color-surface) 88%);
  color: #fff;
}

.obor__icon svg {
  width: 1.5em;
  height: 1.5em;
  display: block;
  color: inherit;
  fill: currentColor;
}

.obor__icon svg [fill]:not([fill="none"]) {
  fill: currentColor;
}

.obor__icon svg [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

.card--obor h3,
.obor-card__title {
  margin: 0 0 var(--space-xs);
  font-size: 1rem;
  font-weight: 700;
}

.card--obor h3 a,
.obor-card__title a {
  color: inherit;
  text-decoration: none;
}

.card--obor h3 a:hover,
.obor-card__title a:hover {
  color: var(--color-obor, var(--color-fuchsia));
}

.card--obor p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

.card--obor .obor-card__code {
  margin: 0 0 var(--space-xs);
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Obor cards: compact 4-column grid */
.card-grid:has(.card--obor) {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 820px) {
  .card-grid:has(.card--obor) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .card-grid:has(.card--obor) {
    grid-template-columns: 1fr;
  }
}

/* Override alternating radius for obor cards — they have photo, keep it clean */
.card-grid .card--obor:nth-child(odd),
.card-grid .card--obor:nth-child(even) {
  border-radius: var(--radius);
}

/* Section eyebrow label — e.g. "AKTUALITY", "STUDIJNÍ OBORY" */
/* Section eyebrow. The three dots of the "sušg…" mark introduce the label
   instead of a generic coloured rule or icon. */
.fp-section__label {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-fuchsia);
  margin-bottom: var(--space-sm);
}

.fp-section__label::before {
  /* The identity's mark is one ellipsis — "sušg…" — not a repeating dot rule.
     A background pattern rendered as many dots across the label's width;
     this is exactly the three the mark actually has. */
  content: "…";
  flex: none;
  font-size: 1.3em;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* News card with thumbnail */
.card--news {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.card__badge--sticky {
  color: #fff;
  background: color-mix(in srgb, var(--color-fuchsia, #c026d3) 88%, #fff);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--color-accent, #c026d3) 20%, transparent);
}

.card__thumbnail {
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.card__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card--news:hover .card__thumbnail img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.card--news .card__body {
  padding-bottom: calc(var(--space-lg) + 8px);
}

.card--news h2,
.card--news h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.card--news h2 a,
.card--news h3 a {
  color: inherit;
  text-decoration: none;
}

.card--news h2 a:hover,
.card--news h3 a:hover {
  color: var(--color-fuchsia);
}

.card--news .excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 var(--space-xs);
  line-height: 1.5;
}

.card--news .excerpt p { margin: 0; }

.meta {
  color: var(--color-fuchsia);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* DOD card */
.card--dod .meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.card--dod .meta svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
}

/* ==========================================================================
   Obor single
   ========================================================================== */
.obor-single {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: none;
  overflow: clip;
}

.obor-single::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--color-obor, var(--color-primary, #0b5fff));
}

.obor-single__hero-media {
  position: relative;
  margin: calc(-1 * clamp(1rem, 2.5vw, 2rem));
  margin-bottom: var(--space-lg);
  border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) var(--radius) var(--radius);
  overflow: hidden;
  background: var(--color-obor, var(--color-primary, #0b5fff));
}

.obor-single__hero-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(0);
  mix-blend-mode: multiply;
}

.obor-single__hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.4) 68%, rgba(0, 0, 0, 0.62) 100%);
}

.obor-single__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-obor, var(--color-primary));
  margin-bottom: var(--space-lg);
}

.obor-single__heading h1 {
  margin: 0;
}

.obor-single__short-label {
  margin: var(--space-xs) 0 0;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-obor, var(--color-primary, #0b5fff));
  background: color-mix(in srgb, var(--color-obor, var(--color-primary, #0b5fff)) 12%, #fff);
}

.obor-single__header--in-hero {
  margin: 0;
  color: #fff;
}

.obor-single__header--in-hero .obor__icon {
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
}

.obor-single__header--in-hero .obor__icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.obor-single__header--in-hero .obor__icon svg [fill]:not([fill="none"]) {
  fill: #fff;
}

.obor-single__header--in-hero .obor__icon svg [stroke]:not([stroke="none"]) {
  stroke: #fff;
}

.obor-single__header--in-hero h1 {
  color: #fff;
}

.obor-single__header--in-hero .obor-single__short-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.obor-single__content {
  display: grid;
  gap: var(--space-md);
}

.obor-single__content > :first-child {
  margin-top: 0;
}

.obor-single__content > :last-child {
  margin-bottom: 0;
}

/* CTA bar inside single templates */
.cta-bar {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: color-mix(in srgb, var(--color-obor, var(--color-fuchsia, #C026D3)) 10%, #fff);
  border: 0;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-flat);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.cta-bar__text {
  flex: 1;
  min-width: 200px;
}

.cta-bar__text h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.15rem;
}

.cta-bar__text p {
  margin: 0;
  color: var(--color-muted);
}

/* Related content section */
.related-section {
  margin-top: var(--space-2xl);
}

.related-section + .related-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-text, #102030) 10%, transparent);
}

.related-section h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   Document card
   ========================================================================== */
.card-grid.card-grid--documents {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.card--document {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2rem;
  gap: 0 0.9rem;
  align-items: center;
  min-height: 4.75rem;
  padding: 0.9rem 1rem;
}

.doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  background: var(--surface-flat-strong, #eeeef0);
  color: var(--color-muted);
}

.doc-icon--pdf  { background: #fee2e2; color: #b91c1c; }
.doc-icon--doc  { background: #dbeafe; color: #1d4ed8; }
.doc-icon--xls  { background: #dcfce7; color: #15803d; }
.doc-icon--zip  { background: #fef9c3; color: #a16207; }

.doc-body {
  min-width: 0;
}

.doc-title {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.doc-title a:hover {
  color: var(--color-primary);
}

.doc-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}

.doc-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  color: var(--color-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.12s, background 0.12s;
}

.doc-download:hover {
  color: var(--color-primary);
  background: var(--surface-flat);
}

@media (max-width: 720px) {
  .card-grid.card-grid--documents {
    grid-template-columns: 1fr;
  }
}

.single-dokument__download {
  margin-bottom: 1.5rem;
}

.single-dokument__meta {
  margin-left: 0.5rem;
}

/* ==========================================================================
   Filters
   ========================================================================== */
.filters {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-primary, #0b5fff) 6%, var(--color-surface) 94%);
  align-items: flex-end;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
}

.news-filter .button {
  margin: 0;
}

.news-filter .button.is-active {
  background: var(--color-fuchsia);
  color: #fff;
  box-shadow: none;
}

.news-filter .button.is-active:hover {
  background: var(--color-fuchsia-hover);
  color: #fff;
}

.filters label {
  display: grid;
  gap: var(--space-xs);
}

.filters label > span {
  font-weight: 600;
  font-size: 0.9rem;
}

.filters select {
  min-height: 2.2rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  font: inherit;
}

/* ==========================================================================
   Content single
   ========================================================================== */
.content-single {
  max-width: 900px;
}

.content-single > article > header.card--dod {
  margin-bottom: var(--space-xl);
}

.post-single {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: none;
}

.post-single__header {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.post-single__eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.post-single__sticky {
  position: static;
}

.post-single__header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.post-single__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.post-single__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-single__meta li + li::before {
  content: "•";
  color: var(--color-border-strong);
  margin-right: 0.6rem;
}

.post-single__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.post-single__chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  background: var(--color-fuchsia-light);
  color: var(--color-fuchsia);
}

.post-single__chip:hover {
  color: var(--color-fuchsia-hover);
}

.post-single__hero {
  position: relative;
  margin: 0 0 var(--space-lg);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-single__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-single__hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 2.8vw, 1.8rem);
  display: grid;
  gap: var(--space-sm);
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0.44) 66%, rgba(0, 0, 0, 0.72) 100%);
}

.post-single__hero-overlay .fp-section__label {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.post-single__hero-overlay h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.post-single__hero-overlay .post-single__meta {
  color: rgba(255, 255, 255, 0.88);
}

.post-single__hero-overlay .post-single__meta li + li::before {
  color: rgba(255, 255, 255, 0.42);
}

.post-single__chips--hero .post-single__chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.post-single__chips--hero .post-single__chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
}

.post-single__lead {
  margin: 0 0 var(--space-lg);
  font-size: 1.1rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text, #102030) 84%, #fff);
  max-width: 68ch;
}

.post-single__content {
  display: grid;
  gap: var(--space-md);
}

.post-single__content > :first-child {
  margin-top: 0;
}

.post-single__content > :last-child {
  margin-bottom: 0;
}

.post-single__footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 0;
  display: grid;
  gap: var(--space-md);
}

.post-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.post-single__tag {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--color-muted);
  background: color-mix(in srgb, var(--color-text, #102030) 4%, #fff);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.65rem;
}

.post-single__tag:hover {
  color: var(--color-fuchsia);
}

.post-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.post-single__share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.post-single__share-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.share-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: var(--surface-flat);
}

.share-btn--facebook:hover { color: #1877f2; border-color: #1877f2; }
.share-btn--x:hover         { color: #000; border-color: #000; }
.share-btn--linkedin:hover  { color: #0a66c2; border-color: #0a66c2; }
.share-btn--whatsapp:hover  { color: #25d366; border-color: #25d366; }

.share-btn--copy .share-btn__check {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
}

.share-btn--copy[data-copied] {
  color: #059669;
  border-color: #059669;
}

.share-btn--copy[data-copied] svg:first-child { visibility: hidden; }
.share-btn--copy[data-copied] .share-btn__check { display: flex; }

.post-single__adjacent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
}

.post-single__adjacent-link {
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--surface-flat) 70%, #fff);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.2rem;
}

.post-single__adjacent-link span {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-single__adjacent-link strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.post-single__adjacent-link--next {
  text-align: right;
  justify-items: end;
}

.post-single__adjacent-link:hover strong {
  color: var(--color-fuchsia);
}

.single-projekt__media {
  margin: 0 0 1.5rem;
}

.single-projekt__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.not-found__cta {
  margin-top: 2rem;
}

.content-single h1,
.content-single h2,
.content-single h3,
.archive-header h1,
.footer-title {
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-variation, normal);
  font-feature-settings: var(--font-display-features, normal);
  line-height: 1.2;
}

/* Apply font-feature-settings to all heading-font elements */
.parallax-hero__title,
.pattern-hero__title,
.pattern-cta__title,
.fp-section__header h2,
.card--dod.card--highlight h3 a,
.dod-countdown__val {
  font-feature-settings: var(--font-display-features, normal);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--space-md);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table-scroll th,
.table-scroll td {
  border: 1px solid var(--color-border-strong);
  padding: 0.65rem 0.9rem;
  vertical-align: top;
}

.table-scroll th {
  background: var(--color-surface-alt);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.table-scroll tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--color-surface-alt) 50%, transparent);
}

.table-scroll tbody tr:hover td {
  background: color-mix(in srgb, var(--color-fuchsia-light) 40%, transparent);
}

/* ==========================================================================
   Gutenberg core blocks — frontend styles
   ========================================================================== */

/* core/quote */
.wp-block-quote {
  border-left: 4px solid var(--color-fuchsia, #C026D3);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--color-surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.wp-block-quote p { margin: 0 0 var(--space-sm); }

.wp-block-quote cite,
.wp-block-quote footer {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-muted);
  margin-top: var(--space-sm);
}

/* core/separator */
.wp-block-separator,
hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

.wp-block-separator.is-style-wide {
  border-top-width: 2px;
}

.wp-block-separator.is-style-dots {
  border: 0;
  text-align: center;
  line-height: 1;
}

.wp-block-separator.is-style-dots::before {
  content: "···";
  letter-spacing: 0.5em;
  color: var(--color-muted);
  font-size: 1.5rem;
}

/* core/details — FAQ / accordion (flat design: bg + shadow, no border) */
.wp-block-details {
  border: 0;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  background: var(--surface-flat);
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wp-block-details:hover {
  background: var(--surface-flat-strong);
}

.wp-block-details[open] {
  border-left-color: var(--color-fuchsia);
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-sm);
}

.wp-block-details > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-block: 2px;
  user-select: none;
}

/* Hide default marker in WebKit */
.wp-block-details > summary::-webkit-details-marker { display: none; }

.wp-block-details > summary::after {
  content: "▸";
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--color-fuchsia);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.wp-block-details[open] > summary::after {
  transform: rotate(90deg);
}

.wp-block-details > summary:focus-visible {
  outline: 2px solid var(--color-fuchsia);
  outline-offset: 2px;
  border-radius: 3px;
}

.wp-block-details > *:not(summary) {
  margin-top: var(--space-md);
}

/* core/file */
.wp-block-file {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-flat);
  box-shadow: var(--shadow-sm);
  margin-block: var(--space-md);
}

.wp-block-file__content-wrapper {
  flex: 1;
}

.wp-block-file .wp-block-file__button {
  background: var(--color-primary, #0b5fff);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.wp-block-file .wp-block-file__button:hover {
  background: var(--color-primary-hover);
}

/* core/embed — responsive wrappers */
.wp-block-embed {
  margin-block: var(--space-xl);
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper video,
.wp-block-embed__wrapper object,
.wp-block-embed__wrapper embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* core/cover */
.wp-block-cover {
  border-radius: var(--radius);
  overflow: hidden;
}

/* core/image captions */
.wp-block-image figcaption,
.wp-block-gallery figcaption {
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 6px;
}

/* core/image — rounded style */
.wp-block-image.is-style-rounded img {
  border-radius: var(--radius);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.wp-block-gallery figure {
  margin: 0;
}

/* ==========================================================================
   Front-page sections
   ========================================================================== */
.fp-section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.pattern-section {
  padding-inline: 24px;
}

.front-editor-hero {
  padding-block: clamp(2rem, 4vw, 4rem);
}

/* In homepage hero editor area:
   - normal blocks stay in container width
   - alignfull blocks (e.g. Cover) can bleed full viewport width */
.front-editor-hero > :where(:not(.alignfull):not(.alignwide)) {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.front-editor-hero > .alignwide {
  width: min(calc(var(--container) + 120px), calc(100% - 2rem));
  margin-inline: auto;
}

.front-editor-hero > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.pattern-section--hero {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.pattern-section--hero > .pattern-hero {
  margin-inline: 0 !important;
  max-width: min(980px, 100%);
  text-align: left;
}

.pattern-section--md {
  padding-block: 48px;
}

.pattern-section--lg {
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}

.pattern-section--sm {
  padding-block: 24px;
}

.pattern-section--layout-constrained > :where(:not(.alignfull):not(.alignwide)) {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.pattern-section--layout-full > * {
  max-width: none;
}

/* Inner content pages: patterns are already inside a constrained .container,
   so strip WordPress-generated layout constraints.
   - padding-inline: 0 ONLY on .pattern-section itself (not on inner wrappers
     like .card__body which also carry is-layout-* classes and need their padding).
   - max-width: 100% on ALL nested WP layout elements to prevent double-constraint. */
.content-single .pattern-section {
  padding-inline: 0;
}

.content-single .pattern-section[class*="is-layout-"] {
  padding-inline: 0;
  max-width: 100% !important;
}

.content-single .pattern-section [class*="is-layout-"],
.content-single .pattern-section [class*="is-layout-"] > * {
  max-width: 100% !important;
  width: 100% !important;
}

.content-single .pattern-section--md {
  padding-block: clamp(1.25rem, 2.4vw, 2rem);
}

.content-single .pattern-section--sm {
  padding-block: clamp(1rem, 2vw, 1.4rem);
}

.content-single > article > h1 + .pattern-section {
  padding-top: var(--space-sm);
}

.pattern-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.pattern-hero__lead {
  margin: 0.75rem 0 0;
  margin-left: 0;
  margin-right: auto;
  font-size: 1.1rem;
  max-width: min(65ch, 100%);
}

/* Keep hero content truly left-aligned even in WP constrained layout. */
.pattern-section--hero > .pattern-hero.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 65ch;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.pattern-hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.fp-section__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.fp-section__header--spaced {
  margin-bottom: var(--space-xl);
}

/* When header has a wrapping div (label + h2 stacked) */
.fp-section__header > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-section__header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: -1px;
  line-height: 1.15;
}

/* Keep section subtitles clearly below the page H1 on regular content pages. */
.content-single .pattern-section .fp-section__header h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.content-single .pattern-section .fp-section__header--spaced {
  margin-bottom: var(--space-md);
}

.fp-section__header a {
  font-weight: 600;
  font-size: 0.9rem;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  color: inherit;
  text-decoration: none;
  background: var(--surface-flat);
  box-shadow: var(--shadow-flat);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fp-section__header a:hover {
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-flat-hover);
  color: var(--color-fuchsia);
}

.fp-section__label--light {
  color: var(--color-fuchsia-subtle);
}

.pattern-cta__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  /* A CTA heading earns being larger than a regular H2 — but the size
     itself should still be a scale step, not a one-off number invented for
     this one component. Matches theme.json's "xl". */
  font-size: clamp(1.8rem, 2vw + 0.75rem, 2.25rem);
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: -0.01em;
}

.pattern-cta__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  /* Same small-text size as every other card caption on the site
     (.obor-card p, .pattern-step__text) — was 0.95rem, an outlier close
     to but not quite that shared value. */
  font-size: 0.88rem;
  max-width: 56ch;
}

.pattern-feature-card {
  padding: 28px 24px;
  gap: 12px;
}

.pattern-feature-card__title {
  margin: 0;
  /* 1rem / 700 is the card-title size used everywhere else (.obor-card__title,
     .pattern-step__title) — this was 1.05rem, close enough to look like a
     mistake next to them rather than a deliberate different tier. */
  font-size: 1rem;
  font-weight: 700;
}

.pattern-feature-card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pattern-faq {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) 1fr;
  gap: var(--space-xl);
}

.pattern-faq__intro p {
  margin: 0;
  color: var(--color-muted);
}

/* News query pattern: equal-height cards with full-width content */
.pattern-news-query .wp-block-post-template {
  align-items: stretch;
}

.pattern-news-query .card--news {
  height: 100%;
}

.pattern-news-query .card__body {
  padding-top: 12px;
  padding-right: 20px;
  padding-bottom: 28px;
  padding-left: 20px;
}

/* Force inner WP blocks to fill card width (prevent auto-width centering) */
.pattern-news-query .card__body > * {
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.pattern-news-query .wp-block-post-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-fuchsia);
}

.pattern-news-query .wp-block-post-excerpt {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.pattern-news-query .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.pattern-news-query .wp-block-post-title a:hover {
  color: var(--color-fuchsia);
}

/* Backward compatibility for older inserted patterns that still carry WP background utility classes. */
.pattern-news-query .card.has-background-background-color,
.card-grid .pattern-dod-card.has-background-background-color,
.card-grid .pattern-doc-card.has-background-background-color,
.pattern-pedagog.has-background-background-color {
  background: var(--surface-flat) !important;
}

.pattern-news-query .card.has-background-background-color:hover,
.card-grid .pattern-dod-card.has-background-background-color:hover,
.card-grid .pattern-doc-card.has-background-background-color:hover,
.pattern-pedagog.has-background-background-color:hover {
  background: var(--surface-flat-strong) !important;
}

.pattern-dod-card {
  padding: 24px;
  border-radius: var(--radius-card-a);
}

.card-grid .pattern-dod-card,
.card-grid .pattern-doc-card {
  border-radius: var(--radius);
}

.pattern-dod-card .wp-block-post-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-fuchsia);
}

.pattern-dod-card .wp-block-post-excerpt {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.pattern-dod-card .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.pattern-dod-card .wp-block-post-title a:hover {
  color: var(--color-fuchsia);
}

.pattern-doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.pattern-doc-card__meta {
  flex: 1;
  min-width: 0;
}

.pattern-doc-card .wp-block-post-title {
  margin: 0;
  font-size: 0.95rem;
}

.pattern-doc-card .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.pattern-doc-card .wp-block-post-title a:hover {
  color: var(--color-fuchsia);
}

.pattern-doc-card .wp-block-post-date {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.pattern-pedagog {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-card-a);
  gap: 0;
}

.pattern-pedagog__photo {
  width: 140px;
  flex-shrink: 0;
}

.pattern-pedagog__figure {
  margin: 0;
}

.pattern-pedagog__image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  display: block;
}

.pattern-pedagog__body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.pattern-pedagog__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.pattern-pedagog__role {
  margin: 0;
  color: var(--color-fuchsia);
  font-size: 0.82rem;
  font-weight: 600;
}

.pattern-pedagog__contacts {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  gap: 4px;
}

/* DOD highlight — dark fancy card, split layout */
.card--dod.card--highlight {
  background: var(--color-surface-dark);
  border: none;
  border-radius: var(--radius);
  padding: var(--space-xl) clamp(var(--space-lg), 3vw, var(--space-2xl));
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
}

.card--dod.card--highlight h3,
.card--dod.card--highlight h4 {
  margin: 0 0 var(--space-xs);
}

.card--dod.card--highlight h1 {
  margin: 0 0 var(--space-xs);
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: var(--font-heading-weight, 400);
  line-height: 1.15;
}

.card--dod.card--highlight h3 a,
.card--dod.card--highlight h4 a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: var(--font-heading-weight, 400);
  line-height: 1.2;
}

.card--dod.card--highlight .meta {
  color: var(--color-fuchsia-subtle);
  display: block;
  margin-bottom: var(--space-xs);
}

.card--dod.card--highlight .dod-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.card--dod.card--highlight .dod-location {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0;
}

.card--dod.card--highlight .dod-cta {
  margin-top: var(--space-md);
}

.card--dod.card--highlight .dod-countdown-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: clamp(var(--space-lg), 3vw, var(--space-2xl));
}

/* On mobile stack vertically */
@media (max-width: 600px) {
  .card--dod.card--highlight {
    grid-template-columns: 1fr;
  }

  .card--dod.card--highlight .dod-countdown-side {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-left: 0;
    padding-top: var(--space-lg);
    align-items: flex-start;
  }
}

/* DOD Countdown widget */
.dod-countdown-wrap {
  margin: 0;
}

.dod-countdown-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.dod-countdown {
  display: flex;
  gap: 4px;
  align-items: stretch;
}

.dod-countdown__segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 8px 6px 6px;
}

.dod-countdown__val {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: var(--font-heading-weight, 400);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dod-countdown__label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-fuchsia-subtle);
  margin-top: 4px;
  opacity: 0.8;
}

.dod-countdown__sep {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--font-heading-weight, 400);
  color: rgba(255,255,255,.3);
  align-self: center;
  padding-bottom: 1.4rem;
  user-select: none;
}

.dod-countdown--expired .dod-countdown {
  display: none;
}

/* Audience tiles on front page */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.audience-card {
  background: var(--surface-flat);
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  display: flex;
  box-shadow: var(--shadow-flat);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.audience-card:hover {
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-flat-hover);
  transform: translateY(-2px);
  color: inherit;
}

.audience-card:nth-child(1) {
  border-radius: var(--radius);
  background: var(--color-fuchsia-light);
}

.audience-card:nth-child(3) {
  border-radius: var(--radius);
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 900;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary, #0b5fff);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: background 0.15s ease, opacity 0.2s ease;
}

.back-to-top:hover {
  background: var(--color-primary-hover);
}

.back-to-top.is-visible {
  display: inline-flex;
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--color-muted);
}

.empty-state p {
  max-width: 500px;
  margin-inline: auto;
}

.empty-state__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.empty-state__icon .susg-icon {
  width: 100%;
  height: 100%;
}

/* Admin guidance — only visible to logged-in editors */
.admin-hint {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: color-mix(in srgb, var(--color-accent, #ff8a00) 8%, var(--color-surface) 92%);
  border: 1px dashed color-mix(in srgb, var(--color-accent, #ff8a00) 40%, transparent);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--color-text, #102030);
  text-align: left;
  max-width: 480px;
  margin-inline: auto;
}

.admin-hint__title {
  font-weight: 700;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.admin-hint a {
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: var(--space-3xl);
  background: var(--color-surface-alt, #f4f4f5);
  border-top: 0;
  color: color-mix(in srgb, var(--color-text, #102030) 74%, #fff 26%);
}

.site-footer__top {
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(var(--footer-columns, 4), minmax(0, 1fr));
  gap: clamp(var(--space-lg), 3vw, 3.5rem);
}

.site-footer__col {
  min-width: 0;
}

.site-footer .widget {
  margin: 0;
}

.site-footer .widget + .widget {
  margin-top: var(--space-md);
}

.site-footer .widget + nav {
  margin-top: var(--space-md);
}

.site-footer p {
  margin: 0;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
  color: color-mix(in srgb, var(--color-text, #102030) 85%, #fff 15%);
}

.footer-title--col {
  font-size: clamp(0.74rem, 0.71rem + 0.12vw, 0.82rem);
  line-height: 1.25;
}

.site-footer__brand-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 30ch;
  color: color-mix(in srgb, var(--color-text, #102030) 70%, #fff 30%);
}

.site-footer__social {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--color-text, #102030) 60%, #fff 40%);
  border: 0;
  background: color-mix(in srgb, var(--color-surface, #fff) 72%, transparent);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  color: var(--color-fuchsia, #c026d3);
  background: color-mix(in srgb, var(--color-fuchsia, #c026d3) 10%, #fff);
  transform: translateY(-1px);
}

.menu--footer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.menu--footer li {
  margin: 0;
}

.menu--footer a {
  font-size: 0.88rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--color-text, #102030) 64%, #fff 36%);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.menu--footer a:hover {
  color: var(--color-fuchsia, #c026d3);
}

.site-footer .wp-block-navigation ul,
.site-footer .wp-block-navigation__container,
.site-footer .wp-block-page-list,
.site-footer .wp-block-latest-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer .wp-block-navigation-item__content,
.site-footer .wp-block-page-list a,
.site-footer .wp-block-latest-posts a,
.site-footer .wp-block-list a {
  font-size: 0.88rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--color-text, #102030) 64%, #fff 36%);
  text-decoration: none;
}

.site-footer .wp-block-navigation-item__content:hover,
.site-footer .wp-block-page-list a:hover,
.site-footer .wp-block-latest-posts a:hover,
.site-footer .wp-block-list a:hover {
  color: var(--color-fuchsia, #c026d3);
}

.footer-contact {
  display: grid;
  gap: 0.55rem;
}

.site-footer__col--contact nav {
  margin-top: var(--space-sm);
}

.footer-contact__item {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--color-text, #102030) 64%, #fff 36%);
}

.footer-contact__item a {
  color: inherit;
  text-decoration: none;
}

.footer-contact__item a:hover {
  color: var(--color-fuchsia, #c026d3);
}

.footer-contact__cta {
  color: var(--color-fuchsia, #c026d3) !important;
  font-weight: 600;
}

.site-footer__bottom {
  padding-block: var(--space-lg) clamp(1.4rem, 3vw, 2.2rem);
  border-top: 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--color-text, #102030) 70%, #fff 30%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer__bottom p {
  margin: 0;
}

/* Legal nav menu in footer bottom bar */
.menu--legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.menu--legal a {
  color: color-mix(in srgb, var(--color-text, #102030) 70%, #fff 30%);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.menu--legal a:hover {
  color: color-mix(in srgb, var(--color-text, #102030) 82%, #fff 18%);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  margin-top: var(--space-xl);
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.pagination__item a,
.pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-flat);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pagination__item a:hover {
  background: var(--color-primary, #0b5fff);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.pagination__item .current {
  background: var(--color-primary, #0b5fff);
  color: #fff;
  border-color: var(--color-primary, #0b5fff);
}

/* Pedagog profile rounded image */
.is-style-rounded img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .main-nav--desktop {
    display: none;
  }
}

@media (max-width: 959px) {
  .pattern-faq {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .pattern-pedagog {
    flex-wrap: wrap;
  }

  .pattern-pedagog__photo {
    width: 100%;
  }

  .pattern-pedagog__image {
    width: 100%;
    height: auto;
    max-height: 260px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__bottom {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) {
  .menu-toggle,
  .drawer {
    display: none;
  }
}

@media (max-width: 720px) {
  .pattern-section {
    padding-inline: 16px;
  }

  .pattern-doc-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .menu--legal {
    gap: var(--space-sm);
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters label {
    width: 100%;
  }

  .cta-bar {
    flex-direction: column;
    text-align: center;
  }

  .post-single {
    padding: var(--space-lg);
  }

  .post-single__header h1 {
    font-size: clamp(1.6rem, 8vw, 2.15rem);
  }
}

/* Tablet (640–959px) — 2-column cards, narrower grids */
@media (max-width: 959px) and (min-width: 641px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .card-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .fp-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .dod-countdown {
    gap: 4px;
  }

  .dod-countdown__segment {
    min-width: 44px;
  }

  .dod-countdown__val {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   DOD + Calendar — 6+6 grid layout
   ========================================================================== */

/* Section header compact variant (no margin-bottom, used inside grid cells) */
.fp-section__header--compact {
  margin-bottom: var(--space-md);
}

/* Two-column grid: DOD left, calendar right */
.fp-dod-cal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.fp-termin-groups {
  display: grid;
  gap: var(--space-xl);
}

.fp-termin-group__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--font-heading-weight, 400);
  line-height: 1.3;
}

.fp-termin-group__title a {
  color: inherit;
  text-decoration: none;
}

.fp-termin-group__title a:hover {
  color: var(--color-fuchsia);
}

/* Secondary dates stay deliberately compact: the first event carries all
   detail and actions, while these links answer only "when is the next one?". */
.fp-termin-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1px;
  margin: var(--space-sm) 0 0;
  padding: 1px;
  list-style: none;
  background: var(--color-border, rgba(16, 32, 48, 0.12));
  box-shadow: var(--shadow-flat);
}

.fp-termin-more li {
  min-width: 0;
  background: var(--color-surface, #fff);
}

.fp-termin-more a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  color: var(--color-text, #102030);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.fp-termin-more a:hover {
  background: var(--color-surface-alt, #faf9f8);
  color: var(--color-fuchsia);
}

.fp-termin-more__arrow {
  flex: none;
  color: var(--color-fuchsia);
}

@media (max-width: 860px) {
  .fp-dod-cal-grid {
    grid-template-columns: 1fr;
  }
}

/* DOD narrow variant — keeps split layout but with smaller countdown */
.card--dod-narrow {
  grid-template-columns: 1fr auto; /* same split as the wide card */
  align-items: center;
  align-self: start; /* don't stretch to fill the grid row */
  padding: var(--space-lg); /* slightly less padding than the wide card */
}

/* Shrink the heading so it fits in 6 columns */
.card--dod-narrow h3 a,
.card--dod-narrow h4 a {
  font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
}

/* Shrink the countdown side so it fits in 6 columns */
.card--dod-narrow .dod-countdown-side {
  padding-left: var(--space-lg);
}

.card--dod-narrow .dod-countdown__segment {
  min-width: 40px;
  padding: 10px 8px 7px;
}

.card--dod-narrow .dod-countdown__val {
  font-size: 1.4rem;
}

.card--dod-narrow .dod-countdown__label {
  font-size: 0.52rem;
}

.card--dod-narrow .dod-countdown__sep {
  font-size: 1.1rem;
  padding-bottom: 1.1rem;
}

/* Optional compact density for the front-page event column. The information
   hierarchy stays intact; only excess vertical space and control size shrink. */
.fp-dod-col--compact .fp-termin-groups {
  gap: var(--space-lg);
}

.fp-dod-col--compact .fp-termin-group__title {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.fp-dod-col--compact .card--dod-narrow {
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
}

.fp-dod-col--compact .card--dod-narrow .dod-info {
  gap: 2px;
}

.fp-dod-col--compact .card--dod-narrow .meta {
  margin-bottom: 2px;
  font-size: 0.7rem;
}

.fp-dod-col--compact .card--dod-narrow h3 a,
.fp-dod-col--compact .card--dod-narrow h4 a {
  font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
  line-height: 1.15;
}

.fp-dod-col--compact .card--dod-narrow .dod-location {
  font-size: 0.8rem;
  line-height: 1.35;
}

.fp-dod-col--compact .card--dod-narrow .dod-cta {
  margin-top: var(--space-sm);
}

.fp-dod-col--compact .card--dod-narrow .button--lg {
  padding: 0.62rem 1.2rem;
  font-size: 0.88rem;
}

.fp-dod-col--compact .card--dod-narrow .dod-countdown-side {
  gap: 2px;
  padding-left: var(--space-lg);
}

.fp-dod-col--compact .card--dod-narrow .dod-countdown-title {
  margin-bottom: 4px;
  font-size: 0.58rem;
}

.fp-dod-col--compact .card--dod-narrow .dod-countdown {
  gap: 3px;
}

.fp-dod-col--compact .card--dod-narrow .dod-countdown__segment {
  min-width: 34px;
  padding: 7px 5px 5px;
}

.fp-dod-col--compact .card--dod-narrow .dod-countdown__val {
  font-size: 1.15rem;
}

.fp-dod-col--compact .card--dod-narrow .dod-countdown__label {
  margin-top: 3px;
  font-size: 0.46rem;
}

.fp-dod-col--compact .card--dod-narrow .dod-countdown__sep {
  font-size: 0.9rem;
  padding-bottom: 0.9rem;
}

.fp-dod-col--compact .fp-termin-more {
  margin-top: 5px;
}

.fp-dod-col--compact .fp-termin-more a {
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
}

/* Stack to single column only on small screens */
@media (max-width: 560px) {
  .card--dod-narrow {
    grid-template-columns: 1fr;
  }
  .card--dod-narrow .dod-countdown-side {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: var(--space-lg);
  }

  .fp-dod-col--compact .card--dod-narrow .dod-countdown-side {
    padding-left: 0;
    padding-top: var(--space-sm);
  }
}

/* Full-width calendar when DOD is absent */
.fp-dod-cal-grid--cal-only {
  grid-template-columns: 1fr;
}

.fp-dod-cal-grid--cal-only .fp-cal-col {
  max-width: 760px;
}

.fp-dod-cal-grid--termin-only {
  grid-template-columns: minmax(0, 900px);
}

/* Calendar cards retain their light-surface contrast when an administrator
   chooses the dark full-width band in the front-page Termíny settings. */
.fp-section--dark-bg .ics-calendar-card {
  color: var(--color-text, #102030);
}

.fp-section--dark-bg .fp-termin-more a {
  color: var(--color-text, #102030);
}

.fp-section--dark-bg .ics-calendar-card :is(h1, h2, h3, h4, h5, h6),
.fp-section--dark-bg .ics-calendar-card p,
.fp-section--dark-bg .ics-calendar-card .meta,
.fp-section--dark-bg .ics-calendar-card .excerpt {
  color: inherit;
}

/* ==========================================================================
   ICS Calendar widget
   ========================================================================== */
.ics-calendar-card {
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-flat);
}

.ics-calendar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ics-calendar__item {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}

.ics-calendar__item:last-child {
  border-bottom: none;
}

.ics-calendar__item:hover {
  background: var(--color-surface-alt);
}

/* Date column */
.ics-calendar__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.ics-calendar__day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--font-heading-weight, 400);
  color: var(--color-fuchsia);
  line-height: 1;
}

.ics-calendar__month {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Body column */
.ics-calendar__body {
  min-width: 0;
}

.ics-calendar__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ics-calendar__title a {
  color: inherit;
  text-decoration: none;
}

.ics-calendar__title a:hover {
  color: var(--color-fuchsia);
}

.ics-calendar__meta {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge column */
.ics-calendar__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ics-calendar__badge--default {
  background: var(--color-fuchsia-light);
  color: var(--color-fuchsia);
}

.ics-calendar__badge--course {
  background: color-mix(in srgb, #62858e 12%, #fff);
  color: #3d6470;
}

.ics-calendar__badge--important {
  background: color-mix(in srgb, #f59a2a 15%, #fff);
  color: #a05f00;
}

/* Footer — layout moved to blocks.css alongside the rest of the calendar
   footer, so there is one rule set instead of this one plus a second,
   conflicting one added later (that's what made the block look uneven). */
.ics-calendar__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-flat);
  box-shadow: var(--shadow-flat);
  padding: 6px 14px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ics-calendar__more:hover {
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-flat-hover);
  color: var(--color-fuchsia);
}

.ics-calendar__more svg {
  width: 1em;
  height: 1em;
}

/* Empty state */
.ics-calendar__empty {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.ics-calendar__hint {
  margin-top: var(--space-xs);
  font-size: 0.82rem;
}

/* ==========================================================================
   Audience / rozcestník cards — screenshot style
   ========================================================================== */

/* Audience card detail layout for icon-box design */
.audience-card {
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.audience-card__icon-box {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-fuchsia-light);
  color: var(--color-fuchsia);
}

.audience-card__icon-box--fuchsia {
  background: var(--color-fuchsia-light);
  color: var(--color-fuchsia);
}

.audience-card__icon-box--primary {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.audience-card__icon-box--slate {
  background: color-mix(in srgb, #62858e 12%, #fff);
  color: #3d6470;
}

.audience-card__icon-box--doc {
  flex-shrink: 0;
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.audience-card:nth-child(2) .audience-card__icon-box {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.audience-card:nth-child(3) .audience-card__icon-box {
  background: var(--color-fuchsia-subtle);
  color: var(--color-fuchsia);
}

.audience-card__icon-box svg {
  width: 1.35rem;
  height: 1.35rem;
}

.audience-card__text {
  flex: 1;
  min-width: 0;
}

.audience-card__text h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.audience-card__text p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.audience-card__arrow {
  color: var(--color-fuchsia);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.audience-card__arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pattern-doc-card__arrow {
  flex-shrink: 0;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
}

.pattern-doc-card__arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pattern-contact-row {
  font-size: 0.82rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.pattern-contact-link {
  color: inherit;
  text-decoration: none;
}

.pattern-contact-link:hover {
  color: var(--color-fuchsia);
}

.pattern-admission-steps.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.pattern-info-card.card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pattern-admission-steps.card:hover,
.pattern-info-card.card:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.pattern-checklist {
  list-style: none;
  margin: 0;
  /* Every other block (a paragraph, a heading) gets its top spacing for free
     from WordPress's own block-gap system when it follows another block —
     this reset was zeroing that too, which is why a checklist sat glued to
     its heading while a paragraph in the same spot did not. */
  margin-top: var(--wp--style--block-gap, 1.5rem);
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pattern-checklist li {
  position: relative;
  margin: 0;
  padding-left: 1.3rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.pattern-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-fuchsia, #c026d3) 70%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-fuchsia, #c026d3) 20%, transparent);
}

.pattern-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: var(--space-lg);
}

.pattern-link-grid .button {
  width: 100%;
  justify-content: space-between;
}

.pattern-dod-split {
  align-items: flex-start;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.pattern-dod-split > .wp-block-column {
  margin-top: 0;
}

.pattern-dod-split__info > *:last-child,
.pattern-dod-terms > *:last-child {
  margin-bottom: 0;
}

.pattern-dod-terms .card-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.pattern-dod-terms .card--dod {
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}

.pattern-dod-terms .card--dod h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1rem;
}

.pattern-dod-terms .card--dod h3 a {
  color: inherit;
  text-decoration: none;
}

.pattern-dod-terms .card--dod h3 a:hover {
  color: var(--color-fuchsia);
}

.pattern-dod-terms .card--dod p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.pattern-dod-terms .card--dod p + p {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .pattern-dod-split.is-not-stacked-on-mobile {
    flex-wrap: wrap !important;
  }

  .pattern-dod-split.is-not-stacked-on-mobile > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ==========================================================================
   P0 FIX: News grid responsive
   ========================================================================== */
@media (max-width: 959px) {
  .card-grid[data-news-grid] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .card-grid[data-news-grid] {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   P0 FIX: Container-fluid section backgrounds
   ========================================================================== */
/* Full-bleed band behind a constrained section. */
.fp-band {
  width: 100%;
}

.fp-section--alt-bg {
  background: var(--color-surface-alt, #f4f4f5);
}

.fp-section--accent-bg {
  background: var(--color-fuchsia-light, #f4f4f5);
}

.fp-section--dark-bg {
  background: var(--color-surface-dark, #1a1122);
  color: #fff;
}

.fp-section--dark-bg :is(h1, h2, h3, h4, h5, h6) {
  color: #fff;
}

.fp-section--dark-bg p,
.fp-section--dark-bg .meta,
.fp-section--dark-bg .excerpt {
  color: color-mix(in srgb, #fff 80%, #b8c0cc 20%);
}

.fp-section--dark-bg a:not(.button) {
  color: color-mix(in srgb, #fff 90%, var(--color-fuchsia-light, #f4d9f8) 10%);
}

.wp-block-susg-section-wrapper.alignwide {
  width: min(calc(var(--container) + 120px), calc(100% - 2rem));
  margin-inline: auto;
}

.wp-block-susg-section-wrapper.pattern-section--layout-full.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-block-susg-section-wrapper.pattern-section--layout-constrained.alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ==========================================================================
   Custom logo in header
   ========================================================================== */
.site-brand__logo {
  display: inline-flex;
  align-items: center;
}

.site-brand__logo-img {
  max-height: 2rem;
  width: auto;
  display: block;
}

/* ==========================================================================
   Parallax hero — fullwidth multi-layer
   ========================================================================== */
.parallax-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 75vh;
  min-height: 75svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-surface-dark, #1A1122);
}

.parallax-hero--tall {
  min-height: 90vh;
  min-height: 90svh;
}

/* Background layers */
.parallax-hero__layer {
  position: absolute;
  inset: 0;
}

.parallax-hero.is-parallax-active .parallax-hero__layer[data-parallax-speed] {
  will-change: transform;
}

.parallax-hero__layer--back {
  z-index: 1;
}

.parallax-hero__layer--mid {
  z-index: 2;
}

.parallax-hero__layer--front {
  z-index: 3;
}

.parallax-hero__layer img,
.parallax-hero__layer video {
  width: 100%;
  height: 120%; /* extra height for parallax travel */
  object-fit: cover;
  display: block;
}

/* Gradient overlays */
.parallax-hero {
  /* Administrator-controlled darkening (A4): the school picks whatever photo
     it wants, so a single fixed overlay cannot guarantee the title stays
     readable — a light attic photo needs more darkening than a dark one. */
  --hero-overlay: 55;
}

.parallax-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, calc(var(--hero-overlay, 55) * 0.0027)) 40%,
    rgba(0, 0, 0, calc(var(--hero-overlay, 55) * 0.01)) 75%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.parallax-hero__overlay--top {
  /* This is the gradient sitting behind the eyebrow and the title, so it is
     the one the readability setting has to reach. */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, calc(var(--hero-overlay, 55) * 0.01)) 0%,
    rgba(0, 0, 0, 0) 40%
  );
}

/* Grain/noise texture overlay for artistic feel */
.parallax-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Hero content */
.parallax-hero__content {
  position: relative;
  z-index: 10;
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
  color: #fff;
}

.parallax-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
	font-family: "Dottie";
  font-weight: 400;
  font-feature-settings: "ss03" on;
}
/*
.parallax-hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-accent, #e6007e);
  border-radius: 1px;
}*/

.parallax-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-variation-settings: var(--font-display-variation, normal);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 14ch;
}

.parallax-hero__lead {
  margin: var(--space-md) 0 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.78);
}

.parallax-hero__actions {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

/* Scroll indicator */
.parallax-hero__scroll-hint {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: hero-scroll-hint 2.2s ease-in-out infinite;
}

.parallax-hero__scroll-hint svg {
  width: 1.2rem;
  height: 1.2rem;
}

@keyframes hero-scroll-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}

/* ==========================================================================
   Video hero variant
   ========================================================================== */
.parallax-hero--video .parallax-hero__layer--back video {
  height: 100%;
  min-height: 100%;
}

.parallax-hero--video .parallax-hero__layer--back {
  overflow: hidden;
}

/* Video needs a lighter touch than a still photo, but still follows the same
   readability setting rather than a second, disconnected fixed value. */
.parallax-hero--video .parallax-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, calc(var(--hero-overlay, 55) * 0.0015)) 0%,
    rgba(0, 0, 0, calc(var(--hero-overlay, 55) * 0.0022)) 35%,
    rgba(0, 0, 0, calc(var(--hero-overlay, 55) * 0.0095)) 72%,
    rgba(0, 0, 0, calc(var(--hero-overlay, 55) * 0.0136)) 100%
  );
}

/* Muted button for video controls */
.parallax-hero__video-toggle {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 11;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.parallax-hero__video-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.parallax-hero__video-toggle svg {
  width: 1rem;
  height: 1rem;
}

.parallax-hero__video-toggle.is-paused svg {
  /* Replace pause bars with a play triangle via clip-path */
  clip-path: polygon(6px 3px, 20px 12px, 6px 21px);
}

/* Gutenberg content inside parallax hero */
.parallax-hero__content .wp-block-heading,
.parallax-hero__content h1,
.parallax-hero__content h2,
.parallax-hero__content h3 {
  color: #fff;
  font-family: var(--font-display, var(--font-heading));
  font-variation-settings: var(--font-display-variation, normal);
  font-feature-settings: var(--font-display-features, normal);
}

.parallax-hero__content h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 14ch;
  margin: 0;
}

.parallax-hero__content p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 50ch;
}

.parallax-hero__content .wp-block-buttons {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.parallax-hero__content .wp-block-button__link {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Reduced motion: disable parallax layers and scroll hint */
@media (prefers-reduced-motion: reduce) {
  .parallax-hero__layer {
    will-change: auto;
  }
  .parallax-hero__scroll-hint {
    animation: none;
    opacity: 0.45;
  }
}

/* ==========================================================================
   Scroll-triggered reveal animation
   ========================================================================== */
/* Only hide content once the reveal script has announced itself. Without this
   guard a failed script leaves the whole page invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in card grids */
.js .reveal-stagger > .card,
.js .reveal-stagger > .audience-card,
.js .reveal-stagger > article {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > .card,
.reveal-stagger.is-visible > .audience-card,
.reveal-stagger.is-visible > article {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > :nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > :nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > :nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > :nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > :nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > :nth-child(6) { transition-delay: 400ms; }

/* ==========================================================================
   Projekty / Gallery grid on front-page
   ========================================================================== */
.fp-projekty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.fp-projekty-grid__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-alt);
}

.fp-projekty-grid__item:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: auto;
}

.fp-projekty-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-projekty-grid__item:hover img {
  transform: scale(1.04);
}

.fp-projekty-grid__item a {
  display: block;
  width: 100%;
  height: 100%;
}

.fp-projekty-grid__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fp-projekty-grid__item:hover .fp-projekty-grid__caption {
  opacity: 1;
  transform: translateY(0);
}

.fp-projekty-grid__caption h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.fp-projekty-grid__caption span {
  font-size: 0.78rem;
  opacity: 0.75;
}

@media (max-width: 720px) {
  .fp-projekty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fp-projekty-grid__item:nth-child(1) {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .fp-projekty-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Stylistic set switcher in footer
   ========================================================================== */
.font-set-switcher {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  max-width: 19rem;
  margin-top: var(--space-md);
  padding: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--color-text, #102030) 10%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface, #fff) 62%, transparent);
}

.font-set-switcher__sets {
  display: grid;
  gap: 0.4rem;
}

.font-set-switcher__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.font-set-switcher__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-text, #102030) 82%, #fff 18%);
}

.font-set-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 2rem;
  padding: 0.25rem 0.4rem 0.25rem 0.3rem;
  border: 1px solid color-mix(in srgb, var(--color-text, #102030) 12%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface, #fff) 88%, transparent);
  color: color-mix(in srgb, var(--color-text, #102030) 82%, #fff 18%);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.font-set-switcher__sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.3rem;
  padding-inline: 0.12rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-text, #102030) 6%, transparent);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: var(--font-heading-weight, 400);
  font-variation-settings: var(--font-display-variation-live, var(--font-display-variation, normal));
}

.font-set-switcher__btn[data-font-set="ss01"] .font-set-switcher__sample {
  font-feature-settings: "ss01" 1;
}

.font-set-switcher__btn[data-font-set="ss02"] .font-set-switcher__sample {
  font-feature-settings: "ss02" 1;
}

.font-set-switcher__btn[data-font-set="ss03"] .font-set-switcher__sample {
  font-feature-settings: "ss03" 1;
}

.font-set-switcher__axis {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text, #102030) 9%, transparent);
}

.font-set-switcher__axis-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.font-set-switcher__range-row {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
}

.font-set-switcher__range {
  width: 100%;
  min-height: 1.5rem;
  margin: 0;
  accent-color: var(--color-accent, #e6007e);
  cursor: ew-resize;
}

.font-set-switcher__range-label {
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--color-text, #102030) 58%, #fff 42%);
}

.font-set-switcher__value {
  min-width: 3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text, #102030);
  text-align: right;
}

.font-set-switcher__btn:hover {
  border-color: color-mix(in srgb, var(--color-accent, #e6007e) 40%, transparent);
  color: var(--color-accent, #e6007e);
  transform: translateY(-1px);
}

.font-set-switcher__btn.is-active {
  background: var(--color-accent, #e6007e);
  border-color: var(--color-accent, #e6007e);
  color: var(--color-accent-on, #fff);
}

.font-set-switcher__btn.is-active .font-set-switcher__sample {
  background: color-mix(in srgb, currentColor 13%, transparent);
}

.font-set-switcher__btn:focus-visible,
.font-set-switcher__range:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent, #e6007e) 42%, transparent);
  outline-offset: 2px;
}

/* ==========================================================================
   Pattern: Numbered Steps (horizontal step cards)
   ========================================================================== */
.pattern-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 540px) {
  .pattern-steps {
    grid-template-columns: 1fr;
  }
}

.pattern-step {
  background: var(--surface-flat);
  border: 0;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-flat);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.pattern-step:hover {
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-flat-hover);
}

.pattern-step__badge {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent, #e6007e) 75%, #fff), var(--color-accent, #e6007e));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--font-heading-weight, 400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pattern-step__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.pattern-step__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ==========================================================================
   Pattern: Media + Feature List (image left, features right)
   ========================================================================== */
.pattern-media-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.pattern-media-features__image {
  border-radius: var(--radius-card-a, 16px);
  overflow: hidden;
}

.pattern-media-features__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 4;
}

.pattern-media-features__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pattern-media-features__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pattern-feature-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pattern-feature-row__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pattern-feature-row__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pattern-feature-row__icon--accent {
  background: color-mix(in srgb, var(--color-accent, #e6007e) 14%, #fff);
  color: var(--color-accent, #e6007e);
}

.pattern-feature-row__icon--primary {
  background: color-mix(in srgb, var(--color-primary, #6D28D9) 14%, #fff);
  color: var(--color-primary, #6D28D9);
}

.pattern-feature-row__icon--warm {
  background: color-mix(in srgb, #d97706 14%, #fff);
  color: #b45309;
}

.pattern-feature-row__icon--success {
  background: color-mix(in srgb, #059669 14%, #fff);
  color: #047857;
}

.pattern-feature-row__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.pattern-feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

@media (max-width: 768px) {
  .pattern-media-features {
    grid-template-columns: 1fr;
  }

  .pattern-media-features__image img {
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }
}

/* ==========================================================================
   Pattern: Events calendar (filtered query list)
   ========================================================================== */
.pattern-events-list .wp-block-post-template {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pattern-event-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 16px;
  align-items: center;
  padding: clamp(0.8rem, 1.2vw, 1rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text, #102030) 6%, transparent);
}

.pattern-event-row:last-child {
  border-bottom: 0;
}

.pattern-event-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-flat);
  border-radius: var(--radius);
  padding: 6px 8px;
  min-width: 4rem;
  text-align: center;
}

.pattern-event-row__day {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--font-heading-weight, 400);
  line-height: 1;
  color: var(--color-accent, #e6007e);
}

.pattern-event-row__month {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.pattern-event-row__body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.pattern-event-row__body h3 a {
  color: inherit;
  text-decoration: none;
}

.pattern-event-row__body h3 a:hover {
  color: var(--color-accent, #e6007e);
}

.pattern-event-row__body p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.pattern-event-row__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--color-accent, #e6007e) 10%, #fff);
  color: var(--color-accent, #e6007e);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   Fix: pattern-info-card should have visible card style
   ========================================================================== */
.pattern-info-card.card {
  background: var(--surface-flat);
  border: 0;
  box-shadow: var(--shadow-flat);
  padding: clamp(1.2rem, 2vw, 1.8rem);
}

.pattern-info-card.card:hover {
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-flat-hover);
  transform: none;
}

/* ==========================================================================
   Pattern: Service Cards (quick links with icon, title, description, arrow)
   ========================================================================== */
.pattern-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.pattern-service-card {
  position: relative;
  background: var(--surface-flat);
  border: 0;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-flat);
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pattern-service-card:hover {
  background: var(--surface-flat-strong);
  box-shadow: var(--shadow-flat-hover);
  transform: translateY(-2px);
  color: inherit;
}

.pattern-service-card:nth-child(1) {
  background: color-mix(in srgb, var(--color-accent, #e6007e) 6%, var(--surface-flat));
}

.pattern-service-card__icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--radius, 12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pattern-service-card__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.pattern-service-card__icon--dark {
  background: var(--color-surface-dark, #1A1122);
  color: #fff;
}

.pattern-service-card__icon--accent {
  background: var(--color-accent, #e6007e);
  color: #fff;
}

.pattern-service-card__icon--primary {
  background: var(--color-primary, #6D28D9);
  color: #fff;
}

.pattern-service-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.pattern-service-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-muted);
  flex: 1;
}

.pattern-service-card__arrow {
  color: var(--color-accent, #e6007e);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease;
}

.pattern-service-card:hover .pattern-service-card__arrow {
  transform: translateX(4px);
}

/* Multi-link variant (div instead of a, with list of links inside) */
.pattern-service-card--multi {
  cursor: default;
}

.pattern-service-card__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.pattern-service-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-accent, #e6007e);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pattern-service-card__links a:hover {
  color: var(--color-primary, #4f4f4f);
}

/* ==========================================================================
   Table of Contents — sticky sidebar
   ========================================================================== */
.has-toc {
  max-width: none;
  --toc-sidebar-width: 220px;
  --toc-layout-gap: var(--space-xl);
  overflow-x: clip;
}

.toc-layout {
  display: grid;
  grid-template-columns: var(--toc-sidebar-width) minmax(0, 1fr);
  gap: var(--toc-layout-gap);
  align-items: start;
  position: relative;
  isolation: isolate;
}

.toc-layout__content {
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* Sidebar card */
.toc {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: var(--space-lg);
  background: var(--surface-flat);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-flat);
  font-size: 0.85rem;
  line-height: 1.45;
  overscroll-behavior: contain;
  z-index: 3;
}

.toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.toc__title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight, 400);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.toc__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s ease, transform 0.2s ease;
}

.toc__toggle:hover {
  background: var(--color-surface-alt);
}

/* Icon swap: hamburger when collapsed, × when expanded */
.toc__icon-open,
.toc__icon-close {
  display: block;
}

.toc__toggle[aria-expanded="true"] .toc__icon-open {
  display: none;
}

.toc__toggle[aria-expanded="false"] .toc__icon-close {
  display: none;
}

/* Lists */
.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc__item {
  position: relative;
}

.toc__item a {
  display: block;
  padding: 4px 0 4px var(--space-md);
  color: var(--color-text, #102030);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc__item a:hover {
  color: var(--color-accent, #C026D3);
}

.toc__item--active > a {
  color: var(--color-accent, #C026D3);
  border-left-color: var(--color-accent, #C026D3);
  font-weight: 600;
}

/* ---- Mobile: collapse to inline panel --------------------------------- */
@media (max-width: 960px) {
  .has-toc {
    --toc-sidebar-width: 0px;
    --toc-layout-gap: 0px;
  }

  .toc-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: var(--space-md);
  }

  /* Remove header bottom margin when list is collapsed */
  .toc__header:has(+ [hidden]) {
    margin-bottom: 0;
  }

  .toc__toggle {
    display: flex;
  }

  .toc__list[hidden] {
    display: none;
  }
}

/* ==========================================================================
   Event Countdown
   ========================================================================== */
.susg-countdown {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.susg-countdown__event-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text, #102030);
  margin-bottom: var(--space-sm);
}

.susg-countdown__event-label a {
  color: var(--color-accent, #e6007e);
  text-decoration: none;
}

.susg-countdown__event-label a:hover {
  text-decoration: underline;
}

.susg-countdown__event-range {
  margin: calc(var(--space-sm) * -0.5) 0 var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-muted, #5a6a7a);
}

.susg-countdown__timer {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.susg-countdown__segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-flat, #f5f3f8);
  border-radius: var(--radius, 12px);
  border: 0;
}

.susg-countdown__number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent, #e6007e);
  font-variant-numeric: tabular-nums;
}

.susg-countdown__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #6b7280);
  margin-top: 2px;
}

.susg-countdown__expired {
  color: var(--color-text-muted, #6b7280);
  font-style: italic;
}

.susg-countdown--compact {
  text-align: left;
  padding: var(--space-sm) 0 var(--space-md);
}

.susg-countdown--compact .susg-countdown__event-label {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.susg-countdown--compact .susg-countdown__event-range {
  margin: 0 0 var(--space-sm);
  font-size: 0.78rem;
}

.susg-countdown--compact .susg-countdown__timer {
  justify-content: flex-start;
  gap: var(--space-sm);
}

.susg-countdown--compact .susg-countdown__segment {
  min-width: 62px;
  padding: 6px 10px;
  border-radius: var(--radius);
}

.susg-countdown--compact .susg-countdown__number {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.susg-countdown--compact .susg-countdown__label {
  font-size: 0.62rem;
}

.susg-countdown--compact + .susg-countdown--compact {
  border-top: 1px solid var(--color-border, rgba(16, 32, 48, 0.15));
  margin-top: var(--space-sm);
}

@media (max-width: 480px) {
  .susg-countdown__segment {
    min-width: 60px;
    padding: var(--space-xs) var(--space-sm);
  }

  .susg-countdown__number {
    font-size: 1.75rem;
  }

  .susg-countdown--compact .susg-countdown__segment {
    min-width: 56px;
    padding: 5px 8px;
  }

  .susg-countdown--compact .susg-countdown__number {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Icon Box
   ========================================================================== */
.pattern-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--surface-flat);
  border-radius: var(--radius, 12px);
  border: 0;
  box-shadow: var(--shadow-flat);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

a.pattern-icon-box:hover {
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.08));
  transform: translateY(-2px);
}

.pattern-icon-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: var(--space-sm);
  color: #fff;
}

.pattern-icon-box__icon--accent {
  background: var(--color-accent, #e6007e);
}

.pattern-icon-box__icon--primary {
  background: var(--color-primary, #3b82f6);
}

.pattern-icon-box__icon--warm {
  background: #f59e0b;
}

.pattern-icon-box__icon--success {
  background: #10b981;
}

.pattern-icon-box__icon--dark {
  background: var(--color-heading, #102030);
}

.pattern-icon-box__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.pattern-icon-box__text {
  font-size: 0.95rem;
  color: var(--color-text-muted, #6b7280);
  margin: 0;
}

/* ==========================================================================
   Masonry Gallery
   ========================================================================== */
.susg-masonry__grid {
  column-gap: 12px;
}

.susg-masonry__item {
  break-inside: avoid;
  position: relative;
}

.susg-masonry__item img {
  width: 100%;
  display: block;
  border-radius: var(--radius, 8px);
  transition: filter 0.2s ease;
}

.susg-masonry__link {
  display: block;
  cursor: zoom-in;
}

.susg-masonry__link:hover img {
  filter: brightness(0.9);
}

/* ==========================================================================
   Lightbox — zero-dependency custom implementation
   ========================================================================== */

/* Prevent body scroll when lightbox is open */
body.susg-lb-active { overflow: hidden; }

#susg-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  align-items: center;
  justify-content: center;
  padding: 16px 72px;
}

#susg-lb.is-open { display: flex; }

/* Backdrop */
.susg-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 12, 0.96);
  animation: lb-backdrop-in 0.22s ease both;
}

/* Stage — contains loader + image */
.susg-lb__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: calc(100vh - 80px);
  pointer-events: none;
}

/* Image */
.susg-lb__img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  user-select: none;
  pointer-events: auto;
}

.susg-lb__img.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Loader spinner */
.susg-lb__loader {
  display: none;
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: lb-spin 0.65s linear infinite;
}

.susg-lb__loader.is-active { display: block; }

/* Nav buttons */
.susg-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.susg-lb__prev { left: 14px; }
.susg-lb__next { right: 14px; }

.susg-lb__nav svg { width: 22px; height: 22px; flex-shrink: 0; }

.susg-lb__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.susg-lb__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.susg-lb__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Close button */
.susg-lb__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.susg-lb__close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.susg-lb__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.susg-lb__close svg { width: 18px; height: 18px; }

/* Footer: caption + counter */
.susg-lb__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 32px 80px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  pointer-events: none;
}

.susg-lb__caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

.susg-lb__counter {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Gallery cursor hint */
a[data-lb-gallery] { cursor: zoom-in; }

/* Animations */
@keyframes lb-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lb-spin {
  to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 600px) {
  #susg-lb { padding: 12px 0; }
  .susg-lb__prev { left: 6px; }
  .susg-lb__next { right: 6px; }
  .susg-lb__nav  { width: 42px; height: 42px; }
  .susg-lb__footer { padding: 24px 16px 12px; }
}

/* ==========================================================================
   Section wrapper + heading typography overrides
   ========================================================================== */

/* Distinguish inner layout variants on content pages:
   - constrained: whole section width = container
   - full: section background bleeds full viewport, inner content stays constrained */
.content-single .wp-block-susg-section-wrapper.pattern-section--layout-constrained {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: 0;
}

.content-single .wp-block-susg-section-wrapper.pattern-section--layout-constrained > :where(:not(.alignfull):not(.alignwide)) {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

.content-single .wp-block-susg-section-wrapper.pattern-section--layout-full {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-inline: 0;
  position: relative;
  z-index: 0;
  overflow: visible;
}

.content-single .wp-block-susg-section-wrapper.pattern-section--layout-full > :where(:not(.alignfull):not(.alignwide)) {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  position: relative;
  z-index: 1;
}

.content-single .wp-block-susg-section-wrapper.pattern-section--layout-full::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: transparent;
}

.content-single .wp-block-susg-section-wrapper.pattern-section--layout-full.fp-section--alt-bg::before {
  background: var(--color-surface-alt, #f4f4f5);
}

.content-single .wp-block-susg-section-wrapper.pattern-section--layout-full.fp-section--accent-bg::before {
  background: color-mix(in srgb, var(--color-fuchsia-light, #f4d9f8) 60%, #fff 40%);
}

.content-single .wp-block-susg-section-wrapper.pattern-section--layout-full.fp-section--dark-bg::before {
  background: var(--color-surface-dark, #1a1122);
}

/* TOC layouts have an off-center content column.
   Keep full-bleed math explicit here and rely on .has-toc overflow clipping. */
.has-toc .content-single .wp-block-susg-section-wrapper.pattern-section--layout-full::before {
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
}

.content-single .wp-block-susg-section-wrapper.pattern-section--lg {
  padding-block: clamp(2.25rem, 4.4vw, 3.75rem);
}

/* In dark sections, keep text readable in light cards/tiles. */
.fp-section--dark-bg :where(.pattern-info-card.card, .pattern-service-card, .wp-block-susg-contact-card.card) {
  color: var(--color-text, #102030);
}

.fp-section--dark-bg :where(.pattern-info-card.card, .pattern-service-card, .wp-block-susg-contact-card.card) :is(h1, h2, h3, h4, h5, h6, p, .meta, .excerpt) {
  color: inherit;
}

.fp-section--dark-bg :where(.pattern-info-card.card, .pattern-service-card, .wp-block-susg-contact-card.card) .text-muted {
  color: var(--color-muted);
}

.fp-section--dark-bg :where(.pattern-info-card.card, .pattern-service-card, .wp-block-susg-contact-card.card) a:not(.button) {
  color: inherit;
}

/* Headings should respect Customizer-selected heading weight and avoid negative tracking. */
body :is(h1, h2, h3, h4, h5, h6, .wp-block-heading) {
  font-family: var(--font-heading);
  font-variation-settings: var(--font-display-variation-live, var(--font-display-variation, normal));
  font-feature-settings: var(--font-display-features, normal);
  font-weight: var(--font-heading-weight, 400) !important;
  letter-spacing: normal !important;
}

/* Ensure footer stylistic-set switcher affects front-page card titles too. */
:where(.card--obor, .card--news, .pattern-news-query) :is(h2, h3, .obor-card__title, .wp-block-post-title) {
  font-feature-settings: var(--font-display-features, normal);
}

/* ==========================================================================
   Archiv aktualit — layout se sidebarem
   ========================================================================== */
.archive-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-lg, 2rem);
  align-items: start;
}

/* ─── Sidebar widget card ──────────────────────────────────────────── */
.archive-with-sidebar__sidebar .widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: none;
}

.archive-with-sidebar__sidebar .widget + .widget {
  margin-top: 10px;
}

.widget-title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* ─── List widgets (Archives, Categories, Pages…) ──────────────────── */
.archive-with-sidebar__sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.archive-with-sidebar__sidebar .widget ul li {
  display: flex;
  align-items: center;
}

.archive-with-sidebar__sidebar .widget ul li a {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.5rem;
  border-radius: calc(var(--radius) - 1px);
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: background 0.12s, color 0.12s;
}

.archive-with-sidebar__sidebar .widget ul li a:hover {
  background: var(--surface-flat);
  color: var(--color-primary);
}

/* count badge inside list items (categories) */
.archive-with-sidebar__sidebar .widget ul li a .post-count,
.archive-with-sidebar__sidebar .widget ul li .post-count {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ─── Calendar widget ──────────────────────────────────────────────── */
.wp-calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: fixed;
}

.wp-calendar-table caption {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  padding-bottom: 0.5rem;
  color: var(--color-text);
}

.wp-calendar-table thead tr {
  border-bottom: 1px solid var(--color-border);
}

.wp-calendar-table thead th {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  padding: 0 0 0.45rem;
  width: calc(100% / 7);
}

.wp-calendar-table tbody td {
  text-align: center;
  padding: 3px 1px;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.wp-calendar-table tbody td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary, #6D28D9) 10%, transparent);
  transition: background 0.12s, color 0.12s;
}

.wp-calendar-table tbody td a:hover {
  background: var(--color-primary);
  color: #fff;
}

.wp-calendar-table #today {
  font-weight: 700;
  color: var(--color-text);
}

/* tfoot — prev / next navigation (WordPress renders nav inside tfoot, not a separate div) */
.wp-calendar-table tfoot td {
  padding-top: 0.55rem;
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
}

.wp-calendar-table tfoot #prev {
  text-align: left;
}

.wp-calendar-table tfoot #next {
  text-align: right;
}

.wp-calendar-table tfoot a {
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius);
  transition: background 0.12s;
}

.wp-calendar-table tfoot a:hover {
  background: var(--surface-flat);
}

/* ─── Search widget ─────────────────────────────────────────────────── */
.archive-with-sidebar__sidebar .widget_search .search-form {
  display: flex;
  gap: 6px;
}

.archive-with-sidebar__sidebar .widget_search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  /* A form field's outline is a UI component boundary (WCAG 1.4.11, 3:1),
     not a decorative divider — the lighter --color-border token is for
     those and falls well short. */
  border: 1px solid var(--color-border-field);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--color-surface);
  color: var(--color-text);
  outline-offset: 2px;
}

.archive-with-sidebar__sidebar .widget_search input[type="search"]:focus {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.archive-with-sidebar__sidebar .widget_search input[type="submit"] {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface-flat);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.archive-with-sidebar__sidebar .widget_search input[type="submit"]:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.sidebar-placeholder {
  padding: var(--space-md, 1.5rem);
  border: 2px dashed var(--color-border, #d4d4d8);
  border-radius: var(--radius, 4px);
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .archive-with-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Staff directory
   ========================================================================== */

/* ─── Filter bar ────────────────────────────────────────────────────── */
.staff-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.staff-filter__search input {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--color-surface);
  color: var(--color-text);
  min-width: 220px;
}

.staff-filter__search input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}

.staff-filter__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ─── Staff grid ────────────────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

/* ─── Staff card ────────────────────────────────────────────────────── */
.staff-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.staff-card__photo-link {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-flat);
}

.staff-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.staff-card:hover .staff-card__photo {
  transform: scale(1.03);
}

.staff-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border-strong);
  width: 100%;
  height: 100%;
}

.staff-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.staff-card__dept {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary);
}

.staff-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.staff-card__name a {
  text-decoration: none;
  color: var(--color-text);
}

.staff-card__name a:hover {
  color: var(--color-primary);
}

.staff-card__position {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.staff-card__contacts {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staff-card__contact {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--color-muted);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-card__contact:hover {
  color: var(--color-primary);
}

/* ─── Staff single ──────────────────────────────────────────────────── */
.staff-single {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.staff-single__photo {
  width: 100%;
  border-radius: var(--radius-card-a);
  display: block;
}

.staff-single__photo--placeholder {
  aspect-ratio: 3 / 4;
  background: var(--surface-flat);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border-strong);
  border-radius: var(--radius-card-a);
}

.staff-single__contacts {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-single__contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  word-break: break-all;
}

.staff-single__contact:hover { color: var(--color-primary); }

.staff-single__position {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin: 0.25rem 0 var(--space-md);
}

.staff-single__bio {
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.staff-single__form-wrap {
  margin-top: var(--space-xl);
}

.staff-single__form-title {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

/* ─── Contact form ──────────────────────────────────────────────────── */
.staff-contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 560px;
}

.staff-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.staff-contact-form input,
.staff-contact-form textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border-field);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.12s;
}

.staff-contact-form input:focus,
.staff-contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.staff-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.staff-contact-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.staff-contact-form__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.staff-contact-form__note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
}

/* ─── Notices ───────────────────────────────────────────────────────── */
.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid;
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.notice p { margin: 0; }

.notice--success {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #14532d;
}

.notice--error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #7f1d1d;
}

@media (max-width: 768px) {
  .staff-single {
    grid-template-columns: 1fr;
  }

  .staff-single__aside {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-md);
    align-items: start;
  }

  .staff-contact-form__row--2col {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Newsletter section — front page, above the footer
   ========================================================================== */
.newsletter-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: clamp(var(--space-xl), 4vw, var(--space-2xl));
  background: var(--color-surface-dark);
  color: #fff;
}

.newsletter-card__text {
  flex: 1 1 320px;
  min-width: 0;
}

.newsletter-card__text .fp-section__label {
  color: var(--color-fuchsia-subtle);
}

.newsletter-card__heading {
  margin: 0 0 var(--space-sm);
  color: #fff;
  font-size: clamp(1.4rem, 2vw + 0.75rem, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.newsletter-card__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  max-width: 52ch;
}

.newsletter-card__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  flex: 1 1 360px;
  max-width: 30rem;
}

.newsletter-card__input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 2.9rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
}

.newsletter-card__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-card__input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.newsletter-card__submit {
  flex: none;
}

@media (max-width: 640px) {
  .newsletter-card__form {
    flex-direction: column;
    max-width: none;
  }

  .newsletter-card__submit {
    width: 100%;
  }
}



/* ==========================================================================
   Custom CSS
   ========================================================================== */

.b-border {
	border-bottom: 2px var(--color-fuchsia) solid;
}

/* Page template: direct child pages, with an optional article. */
.child-pages--index {
  max-width: 900px;
}

/* Single-column page: readable prose and full-width interactive blocks. */
.page-single-column__content {
  max-width: none;
  min-width: 0;
}
.page-single-column__content > :is(p, ul, ol, blockquote, h2, h3, h4) {
  max-width: 70ch;
}
.page-single-column > .toc {
  position: static;
  max-height: none;
  width: 100%;
  max-width: 900px;
  margin: 0 0 var(--space-xl);
}
.page-single-column__children {
  max-width: 900px;
  margin: var(--space-xl) auto 0;
}
.page-single-column__children--only {
  margin-top: 0;
}

.child-pages__title {
  font-family: var(--font-heading);
  font-variation-settings: var(--font-display-variation, normal);
  font-feature-settings: var(--font-display-features, normal);
  line-height: 1.2;
  margin: 0 0 var(--space-xl);
}

.child-pages__layout {
  display: grid;
  gap: var(--space-2xl);
}

.child-pages--with-content .child-pages__layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
}

.child-pages__nav,
.child-pages__content {
  min-width: 0;
}

.child-pages__nav-title {
  margin: 0 0 var(--space-lg);
  font-size: 1.25rem;
  line-height: 1.3;
}

.child-pages__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-lg);
}

.child-pages__link {
  display: block;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  color: var(--color-text, #102030);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.child-pages__link:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-alt);
}

.child-pages__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.child-pages__name {
  display: block;
  max-width: 45ch;
  font-family: var(--font-heading);
  font-variation-settings: var(--font-display-variation, normal);
  font-feature-settings: var(--font-display-features, normal);
  font-size: 1.25rem;
  line-height: 1.3;
}

.child-pages__description {
  display: block;
  max-width: 65ch;
  margin-top: var(--space-sm);
  color: var(--color-muted);
}

/* The sidebar is quiet navigation; the content-free index keeps its cards. */
.child-pages--with-content .child-pages__list {
  gap: 0;
}

.child-pages--with-content .child-pages__link {
  padding: 0.75rem 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 160ms ease, background-color 160ms ease;
}

.child-pages--with-content .child-pages__link:hover {
  color: var(--color-accent);
}

.child-pages--with-content .child-pages__name {
  font-family: var(--font-body);
  font-variation-settings: var(--font-primary-variation, normal);
  font-feature-settings: normal;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.child-pages--with-content .child-pages__description {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .child-pages--with-content .child-pages__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

/* TablePress: match the theme, including DataTables sorted columns. The
   plugin's variables also keep its striping/hover options authoritative. */
table.tablepress {
  --text-color: var(--color-text, #102030);
  --head-text-color: var(--color-text, #102030);
  --head-bg-color: var(--color-surface-alt);
  --head-active-bg-color: var(--surface-flat-strong);
  --odd-bg-color: var(--color-surface);
  --even-bg-color: var(--color-paper);
  --hover-bg-color: var(--color-fuchsia-light);
  --border-color: var(--color-border);
  --padding: 0.75rem 1rem;
  width: 100%;
  margin-block: var(--space-lg);
  border-collapse: collapse;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
}

table.tablepress > :is(thead, tbody, tfoot) > tr > :is(th, td) {
  padding: var(--padding);
  border: 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  box-shadow: none;
}

table.tablepress > :is(thead, tfoot) > tr > th {
  background: var(--head-bg-color);
  color: var(--head-text-color);
  font-weight: 600;
  border-bottom-color: var(--color-border-strong);
}

table.tablepress > tbody > tr > :is(td, th) {
  background: var(--odd-bg-color);
}

table.tablepress > .row-striping > tr:nth-child(even) > :is(td, th) {
  background: var(--even-bg-color);
}

table.tablepress > .row-hover > tr:hover > :is(td, th) {
  background: var(--hover-bg-color);
}

table.tablepress > thead > tr > th:is(.sorting:hover, .sorting_asc, .sorting_desc, .dt-ordering-asc, .dt-ordering-desc) {
  background: var(--head-active-bg-color);
}

table.tablepress .dt-column-order:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

table.tablepress caption {
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (max-width: 600px) {
  table.tablepress {
    --padding: 0.6rem 0.65rem;
    font-size: 0.875rem;
  }
}

.school-notice { background:var(--color-accent); color:var(--color-accent-on,#fff); padding:.6rem 0; font-size:.95rem; }
.school-notice a { color:inherit; text-underline-offset:.2em; }
.child-pages__back { display:block; margin-bottom:1rem; font-size:.9rem; color:var(--color-muted); }
.child-pages--with-content .child-pages__link.is-current { background:var(--color-surface-alt); color:var(--color-accent); }
.child-pages--with-content .child-pages__link.is-current .child-pages__name { font-weight:600; }
.cal-month__download { font-size:.7rem; line-height:1.3; margin-bottom:.4rem; }
.doc-status { font-weight:600; }

/* Keep desktop navigation labels together and reserve space for header actions. */
.site-brand,
.header-actions {
  flex-shrink: 0;
}
.main-nav--desktop > ul > li {
  flex-shrink: 0;
}
.main-nav--desktop > ul > li > a {
  display: block;
  white-space: nowrap;
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .site-header__inner { gap: 10px; }
  .main-nav--desktop > ul { gap: 2px; }
  .main-nav--desktop > ul > li > a { padding-inline: 7px; }
}

/* Stable opaque colors keep the small typography controls readable in all palettes. */
.font-set-switcher {
  background: #fff;
  color: #102030;
}
.font-set-switcher__label,
.font-set-switcher__value,
.font-set-switcher__range-label {
  color: #102030;
}
.font-set-switcher__btn {
  background: #fff;
  color: #102030;
}
.font-set-switcher__sample {
  background: #edf0f3;
  color: #102030;
}
.font-set-switcher__btn:hover {
  background: #edf0f3;
  color: #102030;
}
.font-set-switcher__btn.is-active {
  background: #102030;
  border-color: #102030;
  color: #fff;
}
.font-set-switcher__btn.is-active .font-set-switcher__sample {
  background: #102030;
  color: #fff;
}
