/* Local brand fonts (DM Sans, IBM Plex Mono; SIL OFL 1.1, licences in ../fonts/). */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular-LatinExt.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02ba, U+02bd-02c5, U+02c7-02cc, U+02ce-02d7, U+02dd-02ff, U+0304,
    U+0308, U+0329, U+1d00-1dbf, U+1e00-1e9f, U+1ef2-1eff, U+2020, U+20a0-20ab, U+20ad-20c0,
    U+2113, U+2c60-2c7f, U+a720-a7ff;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304,
    U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff,
    U+fffd;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Bold-LatinExt.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02ba, U+02bd-02c5, U+02c7-02cc, U+02ce-02d7, U+02dd-02ff, U+0304,
    U+0308, U+0329, U+1d00-1dbf, U+1e00-1e9f, U+1ef2-1eff, U+2020, U+20a0-20ab, U+20ad-20c0,
    U+2113, U+2c60-2c7f, U+a720-a7ff;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304,
    U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff,
    U+fffd;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Regular-LatinExt.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02ba, U+02bd-02c5, U+02c7-02cc, U+02ce-02d7, U+02dd-02ff, U+0304,
    U+0308, U+0329, U+1d00-1dbf, U+1e00-1e9f, U+1ef2-1eff, U+2020, U+20a0-20ab, U+20ad-20c0,
    U+2113, U+2c60-2c7f, U+a720-a7ff;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304,
    U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff,
    U+fffd;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Bold-LatinExt.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02ba, U+02bd-02c5, U+02c7-02cc, U+02ce-02d7, U+02dd-02ff, U+0304,
    U+0308, U+0329, U+1d00-1dbf, U+1e00-1e9f, U+1ef2-1eff, U+2020, U+20a0-20ab, U+20ad-20c0,
    U+2113, U+2c60-2c7f, U+a720-a7ff;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304,
    U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff,
    U+fffd;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: var(--vv-font-sans);
  font-size: var(--ui-font-size);
  line-height: var(--ui-leading-normal);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
}

a {
  color: var(--vv-secondary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--vv-deep);
}

:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: var(--vv-weight-bold);
  line-height: var(--ui-leading-tight);
  letter-spacing: -0.01em;
}

h1,
.ui-h1 {
  font-size: var(--ui-text-2xl);
}

h2,
.ui-h2 {
  font-size: var(--ui-text-xl);
}

h3,
.ui-h3 {
  font-size: var(--ui-text-lg);
}

h4,
.ui-h4 {
  font-size: var(--ui-text-md);
}

.ui-text-sm {
  font-size: var(--ui-text-sm);
}

.ui-text-xs {
  font-size: var(--ui-text-xs);
}

/* Numbered steps in running text ("Jak to bude probíhat"). */
.ui-ol {
  display: grid;
  gap: var(--ui-space-2);
  padding-left: 1.25rem;
  list-style: decimal;
}

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

.ui-strong {
  font-weight: var(--vv-weight-bold);
}

.ui-mono {
  font-family: var(--vv-font-mono);
  font-size: 0.92em;
}

.ui-num {
  font-variant-numeric: tabular-nums;
}

.ui-eyebrow {
  color: var(--vv-accent-strong);
  font-family: var(--vv-font-mono);
  font-size: var(--ui-text-xs);
  font-weight: var(--vv-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.ui-skip-link {
  position: absolute;
  left: var(--ui-space-2);
  top: -4rem;
  z-index: var(--ui-z-toast);
  padding: var(--ui-space-2) var(--ui-space-4);
  border-radius: var(--ui-radius-control);
  background: var(--vv-primary);
  color: #fff;
}

.ui-skip-link:focus {
  top: var(--ui-space-2);
}

/* Icons (Material Symbols Outlined, loaded from Google Fonts in layouts/base.html) */
.ui-icon {
  display: inline-block;
  flex: none;
  width: 1.25rem;
  overflow: hidden;
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.ui-icon--lg {
  width: 1.75rem;
  font-size: 1.75rem;
}

.ui-icon--xl {
  width: 3rem;
  font-size: 3rem;
}

/* Layout primitives */
.ui-container {
  width: min(calc(100% - 2 * var(--ui-page-pad)), var(--vv-content-max));
  margin-inline: auto;
}

.ui-container--reading {
  max-width: var(--vv-reading-max);
}

.ui-stack {
  display: flex;
  flex-direction: column;
  gap: var(--ui-stack-gap, var(--ui-gap));
}

.ui-stack--sm {
  --ui-stack-gap: var(--ui-space-2);
}

.ui-stack--lg {
  --ui-stack-gap: var(--ui-space-8);
}

.ui-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ui-cluster-gap, var(--ui-space-3));
}

.ui-cluster--sm {
  --ui-cluster-gap: var(--ui-space-2);
}

.ui-cluster--between {
  justify-content: space-between;
}

.ui-cluster--end {
  justify-content: flex-end;
}

.ui-grid {
  display: grid;
  gap: var(--ui-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-grid-min, 16rem)), 1fr));
}

.ui-grid--sm {
  --ui-grid-min: 11rem;
}

.ui-grid--lg {
  --ui-grid-min: 22rem;
}

.ui-split {
  display: grid;
  gap: var(--ui-gap);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .ui-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  body {
    background: #fff;
  }

  .ui-no-print {
    display: none !important;
  }
}
