/* Bodovi v2 — C02 tokens (light + dark) + V4 motion/shape tokens.
   Theme: <html data-theme="light|dark">; without the attribute (no-JS) dark applies: dark is the default theme. */
:root {
  --font-display: "Manument RNIDS", system-ui, sans-serif;
  --font-ui: "Manument RNIDS", system-ui, sans-serif;
  --font-body: var(--font-ui);
  --font-numeric: "Almono RNIDS", ui-monospace, "Cascadia Code", monospace;
  --ease-out: cubic-bezier(0.3, 0.9, 0.1, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.16, 1);
  --radius-panel: 20px;
  --radius-island: 24px;
  --radius-pill: 999px;

  /* V4 shared */
  --island: #133f1b;
  --on-island: #fff;
  --accent: #86c94c;
  --brand: #53b54e;
  --action: #206b2c;
  --dock-bg: rgba(19, 63, 27, 0.92);
  --content: 1200px;
  --gutter: 40px;

  /* Light = default (MaksimUm V4 tokens: --color-bg-page white, --warm-surface #f2f1ec, ink #232623, muted, line #deddd7) */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f2f1ec;
  --bg-raised: #ffffff;
  /* surface ramp (Round 25): surface-1 = --bg-subtle = the MaksimUm cream; 2 = fields/track/alt rows; 3 = hover */
  --surface-1: var(--bg-subtle);
  --surface-2: #e9e8e1;
  --surface-3: #deddd7;
  --border: #deddd7;
  --border-strong: #c4c2b9;
  --control: #7b807c;
  --text: #232623;
  --text-2: #5c615d;
  --action-text: #206b2c;
  --brand-soft: #eef3e6;
  --error: #b3261e;
  --bar-in: #6cc067;
  --bar-near: #8ccb4f;
  --bar-above: #c4c2b9;
  --marker-bg: #232623;
  --marker-fg: #ffffff;
  --focus: #206b2c;

  /* legacy aliases used by the /skole/ rules */
  --page-bg: var(--bg-page);
  --surface: var(--bg-subtle);
  --surface-raised: var(--bg-card);
  --border-subtle: var(--border);
  --text-muted: var(--text-2);
  --text-on-island: var(--on-island);
  --dock-text: #fff;
  /* light paper/ink that stay light in both themes (inverted dock over green zones) */
  --paper: #ffffff;
  --ink: #232623;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg-page: #0c110d;
  --bg-card: #151a16;
  --bg-subtle: #151a16;
  --bg-raised: #262c27;
  --surface-1: #151a16;
  --surface-2: #1d231e;
  --surface-3: #262c27;
  --border: #323832;
  --border-strong: #3f463f;
  --control: #6e746b;
  --text: #efefe9;
  --text-2: #a5a89e;
  --action-text: #86cf7f;
  --brand-soft: #1a2a1d;
  --error: #ff9b8f;
  --bar-in: #53b54e;
  --bar-near: #86c94c;
  --bar-above: #3f463f;
  --marker-bg: #efefe9;
  --marker-fg: #0c110d;
  --focus: #86cf7f;
  color-scheme: dark;
}

:root:not([data-theme="light"]) {
  --bg-page: #0c110d;
  --bg-card: #151a16;
  --bg-subtle: #151a16;
  --bg-raised: #262c27;
  --surface-1: #151a16;
  --surface-2: #1d231e;
  --surface-3: #262c27;
  --border: #323832;
  --border-strong: #3f463f;
  --control: #6e746b;
  --text: #efefe9;
  --text-2: #a5a89e;
  --action-text: #86cf7f;
  --brand-soft: #1a2a1d;
  --error: #ff9b8f;
  --bar-in: #53b54e;
  --bar-near: #86c94c;
  --bar-above: #3f463f;
  --marker-bg: #efefe9;
  --marker-fg: #0c110d;
  --focus: #86cf7f;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

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

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

body.bodovi-v2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg-page);
  color: var(--text);
  overflow-x: hidden;
}

:where(body.bodovi-v2) :where(h1, h2, h3, p) {
  margin: 0;
}

.bv2-wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.bv2-num {
  font-family: var(--font-numeric);
  font-weight: 700;
}

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

.bv2-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--island);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.bv2-skip:focus {
  top: 12px;
}

/* ---------- Links (design-system style) ---------- */
:where(body.bodovi-v2) a {
  color: inherit;
}

.bv2-link {
  color: var(--action-text);
  text-decoration: none;
  font-weight: 500;
}

.bv2-link-text {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 2px;
}

.bv2-link-arrow {
  display: inline-block;
  transition: transform 400ms var(--ease-out);
}

.bv2-link:hover .bv2-link-arrow,
.bv2-link:focus-visible .bv2-link-arrow {
  transform: translateX(4px);
}

.bv2-link:hover .bv2-link-text,
.bv2-link:focus-visible .bv2-link-text {
  animation: bv2-underline 400ms var(--ease-out);
}

@keyframes bv2-underline {
  0% {
    background-size: 100% 1px;
    background-position: 100% 100%;
  }
  45% {
    background-size: 0 1px;
    background-position: 100% 100%;
  }
  55% {
    background-size: 0 1px;
    background-position: 0 100%;
  }
  100% {
    background-size: 100% 1px;
    background-position: 0 100%;
  }
}

.bv2-fineprint a,
.bv2-faq p a,
.bv2-preview-note a {
  color: var(--action-text);
}

/* ---------- Header (in flow, never overlays content) ---------- */
.bv2-header {
  background: var(--bg-page);
  transition: opacity 420ms var(--ease-out), visibility 0s linear 0s;
}

.is-docked .bv2-header {
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms var(--ease-out), visibility 0s linear 420ms;
}

.bv2-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "mark nav switch";
  align-items: center;
  column-gap: 28px;
  min-height: 72px;
}

.bv2-header-inner .bv2-wordmark {
  grid-area: mark;
}

.bv2-header-inner .bv2-nav {
  grid-area: nav;
}

.bv2-header-inner .bv2-theme-switch {
  grid-area: switch;
}

.bv2-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.bv2-wordmark-icon {
  flex: none;
  display: block;
  width: 1.15em;
  height: 1.15em;
}

.bv2-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.bv2-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  transition: background 250ms var(--ease-out);
}

.bv2-nav-more {
  margin-left: 0.3em;
}

.bv2-nav-pre {
  margin-right: 0.3em;
}

.bv2-nav a:hover {
  background: var(--card-surface);
}

.bv2-nav a[aria-current="page"] {
  background: var(--field);
  font-weight: 500;
}

.bv2-theme-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--card-surface);
}

.bv2-theme-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 250ms var(--ease-out), color 250ms var(--ease-out);
}

.bv2-theme-switch button[aria-pressed="true"] {
  background: var(--pill-raised);
  box-shadow: var(--pill-shadow);
  color: var(--text);
  font-weight: 600;
}

/* ---------- Dock pill (fixed, appears after 80px scroll) ---------- */
.bv2-dock {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-24px);
  visibility: hidden;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 420ms;
}

.is-docked .bv2-dock {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 0s;
}

.bv2-dock-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  padding: 7px 8px 7px 22px;
  border-radius: var(--radius-pill);
  background: var(--dock-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.bv2-dock .bv2-wordmark {
  color: #fff;
  font-size: 22px;
  flex: none;
}

.bv2-dock .bv2-nav {
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bv2-dock .bv2-nav::-webkit-scrollbar {
  display: none;
}

.bv2-dock .bv2-nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 11px;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
}

.bv2-dock .bv2-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

:root .bv2-dock .bv2-nav a[aria-current="page"] {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.bv2-dock-theme {
  appearance: none;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bv2-dock-theme:hover {
  background: rgba(255, 255, 255, 0.22);
}

.bv2-dock-theme .i-sun,
.bv2-dock-theme[data-mode="dark"] .i-moon {
  display: none;
}

.bv2-dock-theme[data-mode="dark"] .i-sun {
  display: block;
}

.bv2-dock :focus-visible {
  outline-color: #fff;
}

/* ---------- Intro ---------- */
.bv2-intro {
  padding-top: 36px;
  padding-bottom: 24px;
}

.bv2-intro h1 {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.bv2-lead {
  margin-top: 18px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Tool row ---------- */
.bv2-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: stretch;
}

.bv2-calc {
  background: var(--card-surface);
  border-radius: var(--radius-panel);
  padding: 18px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bv2-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 40px;
  max-width: 340px;
  padding: 3px;
  background: var(--track);
  border-radius: var(--radius-pill);
}

.bv2-tab-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: var(--radius-pill);
  background: var(--pill-raised);
  box-shadow: var(--pill-shadow);
  transition: transform 350ms var(--ease-in-out);
}

.bv2-tabs[data-active="direct"] .bv2-tab-slider {
  transform: translateX(100%);
}

.bv2-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  background: transparent;
  border: 0;
  height: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: color 250ms var(--ease-out);
}

.bv2-tab.is-active {
  color: var(--text);
}

.bv2-group {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.bv2-group + .bv2-group {
  margin-top: 20px;
}

/* group label row: small muted uppercase title + round "?" info button */
.bv2-ghead {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  margin-bottom: 8px;
}

.bv2-gtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.bv2-info {
  appearance: none;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

/* 40px hit area around the 24px visual */
.bv2-info::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.bv2-info-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.bv2-info:hover .bv2-info-dot {
  color: var(--text);
}

.bv2-info[aria-expanded="true"] .bv2-info-dot {
  background: var(--action);
  color: #fff;
}

.bv2-info-text {
  margin: 0 0 10px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

.bv2-info-text[hidden] {
  display: none;
}

.bv2-grades,
.bv2-exams {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bv2-field {
  min-width: 0;
}

.bv2-field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bv2-input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 12px;
  border-radius: var(--radius-panel);
  border: 0;
  background: var(--field);
  color: var(--text);
  font-family: var(--font-numeric);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  scroll-margin-block: 96px 160px;
}

.bv2-input::placeholder {
  color: var(--text-2);
  font-weight: 400;
  opacity: 0.6;
}

.bv2-field--wide {
  max-width: 320px;
}

.bv2-input.roll-up {
  animation: bv2-roll-up 300ms var(--ease-out);
}

.bv2-input.roll-down {
  animation: bv2-roll-down 300ms var(--ease-out);
}

@keyframes bv2-roll-up {
  from {
    transform: translateY(18%);
    opacity: 0;
  }
}

@keyframes bv2-roll-down {
  from {
    transform: translateY(-18%);
    opacity: 0;
  }
}

.bv2-error {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--error);
}

.bv2-error:empty {
  display: none;
}

.bv2-fineprint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Score island ---------- */
.bv2-score-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-island);
  color: var(--on-island);
  background:
    radial-gradient(120% 70% at 25% 8%, rgba(134, 201, 76, 0.34), rgba(134, 201, 76, 0) 62%),
    var(--island);
  overflow: hidden;
  min-width: 0;
}

.bv2-score-label {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.bv2-score-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 14px 0 8px;
  font-family: var(--font-numeric);
}

.bv2-score-digits {
  display: inline-flex;
  font-size: 76px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  min-height: 1.05em;
}

.bv2-score-dash {
  display: inline-block;
  line-height: 1.05;
}

.bv2-digit {
  display: inline-block;
  width: 1ch;
  height: 1.05em;
  overflow: hidden;
  position: relative;
}

.bv2-digit-col {
  display: block;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}

.bv2-digit-col span {
  display: block;
  height: 1.05em;
  line-height: 1.05;
  text-align: center;
}

.bv2-score-comma {
  display: inline-block;
  width: 0.9ch;
  text-align: center;
}

.bv2-score-max {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.6);
}

.bv2-meters {
  display: grid;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-panel);
  background: rgba(0, 0, 0, 0.24);
}

.bv2-meter-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 7px;
}

.bv2-meter-label .bv2-num {
  font-size: 14px;
  color: #fff;
}

.bv2-meter-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.bv2-meter-fill {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform 700ms var(--ease-out) 150ms;
}

.bv2-pill-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 8px 0 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 450ms var(--ease-out);
}

.bv2-pill-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8px;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 450ms var(--ease-out);
}

.bv2-pill-cta.is-ready {
  color: var(--island);
}

.bv2-pill-cta.is-ready::before {
  transform: scale(16);
}

.bv2-pill-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  transition: background 450ms var(--ease-out), color 450ms var(--ease-out);
}

.bv2-pill-cta.is-ready .bv2-pill-icon {
  background: var(--action);
  color: #fff;
}

.bv2-pill-cta.is-disabled {
  cursor: not-allowed;
}

.bv2-score-card :focus-visible {
  outline-color: #fff;
}

.bv2-score-secondary {
  align-self: center;
  margin-top: 18px;
  color: #fff;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-align: center;
}

/* ---------- Results preview ---------- */
.bv2-preview-wrap {
  padding-top: 24px;
}

/* calm block: no panel, no nested cards; a hairline number row, tiles are plain links */
.bv2-preview {
  padding: 8px 0 0;
}

.bv2-district {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
}

.bv2-district select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 18px 4px 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  field-sizing: content;
  max-width: 60vw;
  text-overflow: ellipsis;
}

.bv2-district select option {
  color: var(--text);
  background: var(--bg-raised);
}

.bv2-district::after {
  content: "▾";
  position: absolute;
  right: 2px;
  pointer-events: none;
  font-size: 12px;
}

.bv2-preview-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-wrap: balance;
}

/* Teaser disclosure: histogram collapsed by default */
.bv2-disclose {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.bv2-disclose-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--field);
  transition: background-color 250ms var(--ease-out);
}

.bv2-disclose:hover .bv2-disclose-icon {
  background-color: var(--field-hover);
}

.bv2-disclose-icon::before,
.bv2-disclose-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  border-radius: 1px;
  background: currentColor;
}

.bv2-disclose-icon::after {
  transform: rotate(90deg);
  transition: transform 300ms var(--ease-out);
}

.bv2-disclose[aria-expanded="true"] .bv2-disclose-icon::after {
  transform: rotate(0deg);
}

.bv2-preview-note {
  margin-top: 16px;
}

.bv2-entry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bv2-entry-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 20px 24px;
  color: var(--text);
  text-decoration: none;
  border-left: 1px solid var(--border);
  transition: background 250ms var(--ease-out);
}

.bv2-entry-card:first-child {
  border-left: 0;
  padding-left: 0;
}

.bv2-entry-card:hover {
  background: var(--surface-1);
}

.bv2-entry-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.bv2-entry-cnt {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bv2-entry-lbl {
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-2);
}

/* exam label: full "Српски / матерњи" where there is room, short "Српски" on narrow columns */
.bv2-lbl-s {
  display: none;
}

@media (max-width: 639px) {
  .bv2-lbl-l {
    display: none;
  }
  .bv2-lbl-s {
    display: inline;
  }
}

/* ---------- Sections ---------- */
.bv2-section {
  padding-top: 88px;
}

.bv2-section h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.bv2-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.bv2-section-head p {
  margin-top: 10px;
  max-width: 560px;
  color: var(--text-2);
}

.bv2-section-link {
  white-space: nowrap;
  font-size: 16px;
}

/* ---------- Journey rail ---------- */
.bv2-rail {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bv2-rail::before,
.bv2-rail::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  height: 1.5px;
  border-radius: 1px;
}

.bv2-rail::before {
  right: 0;
  background: var(--border-strong);
}

.bv2-rail::after {
  width: 76px;
  background: var(--brand);
  transform-origin: left center;
  transition: transform 900ms var(--ease-out);
}

.bv2-phase {
  position: relative;
  padding: 28px 16px 0 0;
  display: flex;
  flex-direction: column;
  transition: opacity 900ms var(--ease-out);
}

.bv2-phase:not(.is-next) {
  opacity: 0.5;
}

.bv2-ph-dot {
  position: absolute;
  top: 3px;
  left: 76px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--control);
}

.is-next .bv2-ph-dot {
  top: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--brand);
  transition: transform 500ms var(--ease-out) 700ms;
}

.bv2-ph-status {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.is-next .bv2-ph-status {
  color: var(--action-text);
  font-weight: 500;
}

.bv2-ph-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.bv2-ph-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

.bv2-st-short {
  display: none;
}

.js .bv2-rail:not(.is-in)::after {
  transform: scaleX(0);
}

.js .bv2-rail:not(.is-in) .is-next .bv2-ph-dot {
  transform: scale(0);
}

.js .bv2-rail:not(.is-in) .bv2-phase:not(.is-next) {
  opacity: 0;
}

.bv2-archive-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Guide cards ---------- */
.bv2-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.bv2-guide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-surface);
  border-radius: var(--radius-panel);
  padding: 24px;
  min-height: 232px;
}

.bv2-guide h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.bv2-guide p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
}

.bv2-guide .bv2-link {
  margin-top: auto;
  padding-top: 28px;
  font-size: 16px;
}

/* ---------- Two columns ---------- */
.bv2-twocol {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: 72px;
  align-items: start;
}

.bv2-twocol h2 {
  margin-bottom: 14px;
}

.bv2-sources p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 14px;
}

.bv2-sources .bv2-link {
  font-size: 16px;
}

/* ---------- FAQ: native <details> base + Morphing Accordion enhancement ----------
   Pill = --field, answer panel = --card-surface, no borders. The no-JS <summary> and the enhanced
   .macc_trigger share the same box so enhancing the list never shifts the page. */
.bv2-faq-item summary,
.macc_trigger {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 16px 16px 16px 22px;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--field);
  color: var(--text);
  font: 600 17px/1.35 var(--font-ui);
  text-align: left;
  cursor: pointer;
  list-style: none;
  transition: background-color 200ms var(--ease-out);
}

.bv2-faq-item summary::-webkit-details-marker {
  display: none;
}

.bv2-faq-item summary::marker {
  content: "";
}

.bv2-faq-item summary:hover {
  background: var(--field-hover);
}

.bv2-faq-q {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bv2-faq-plus {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--field-hover);
  color: var(--text);
}

.bv2-faq-plus svg {
  display: block;
  width: 14px;
  height: 14px;
  transform-origin: 50% 50%;
}

.bv2-faq-item summary .bv2-faq-plus svg {
  transition: transform 300ms var(--ease-out);
}

.bv2-faq-item[open] summary .bv2-faq-plus svg {
  transform: rotate(135deg);
}

.bv2-faq-item p,
.macc_panel_inner p {
  margin: 0;
  max-width: 680px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}

/* no-JS open state: the answer is a rounded panel under the pill */
.bv2-faq-item[open] > p {
  margin-top: 8px;
  padding: 18px 22px 20px;
  border-radius: var(--radius-panel);
  background: var(--card-surface);
  max-width: none;
}

/* enhanced */
.macc_filter_svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.macc_row {
  --macc-pill: var(--field);
  position: relative;
}

.macc_row:has(.macc_trigger:hover),
.macc_row.is-open {
  --macc-pill: var(--field-hover);
}

/* filtered layer: solid shapes only, text never renders in here */
.macc_goo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.macc_goo_trigger,
.macc_goo_panel,
.macc_trigger_crisp,
.macc_panel_crisp {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius-panel);
  will-change: transform;
}

.macc_goo_trigger,
.macc_trigger_crisp {
  width: 100%;
  background-color: var(--macc-pill);
  transition: background-color 200ms var(--ease-out);
}

.macc_goo_panel,
.macc_panel_crisp {
  background-color: var(--card-surface);
}

/* crisp twins sit outside the filter and own the visible edges; the pill always stacks above the panel */
.macc_trigger_crisp {
  z-index: 3;
  pointer-events: none;
}

.macc_panel_crisp {
  z-index: 1;
  pointer-events: none;
}

.macc_trigger {
  position: relative;
  z-index: 4;
  background: transparent;
}

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

.macc_panel {
  position: relative;
  z-index: 2;
  height: 0;
  overflow: hidden;
}

.macc_panel_inner {
  margin-top: 10px; /* = PANEL_GAP in morphing-accordion.mjs */
  padding: 18px 22px 20px;
}

@media (min-width: 768px) {
  .bv2-faq-item summary,
  .macc_trigger {
    font-size: 18px;
  }
  .bv2-faq-item p,
  .macc_panel_inner p {
    font-size: 18px;
  }
}

/* ---------- Footer (dark zone in both themes) ---------- */
.bv2-footer {
  background: #133f1b;
  color: #fff;
  margin-top: 120px;
  padding: 56px 0 56px;
}

.bv2-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand links"
    "meta meta";
  column-gap: 48px;
  row-gap: 36px;
  align-items: start;
}

.bv2-footer .bv2-wordmark {
  color: #fff;
  font-size: 24px;
}

.bv2-footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

.bv2-footer-brand .bv2-wordmark + p {
  margin-top: 12px;
}

.bv2-footer-brand {
  grid-area: brand;
  max-width: 420px;
}

.bv2-footer-links {
  grid-area: links;
}

.bv2-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 28px;
}

.bv2-footer-links li {
  font-size: 16px;
  line-height: 1.4;
}

.bv2-footer-links a:hover {
  text-decoration: underline;
}

.bv2-footer-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 14px;
}

.bv2-footer-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.bv2-footer-partner,
.bv2-footer-partner a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.bv2-footer-partner a:hover {
  color: #fff;
  text-decoration: underline;
}

.bv2-footer-col h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
}

.bv2-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bv2-footer-col li {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.bv2-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.bv2-footer a:hover {
  color: #fff;
}

.bv2-footer li > a:not(.bv2-link):hover {
  text-decoration: underline;
}

.bv2-footer .bv2-link {
  color: #b6e68f;
  font-weight: 400;
}

.bv2-footer :focus-visible {
  outline-color: #fff;
}

/* ---------- Skole shared bits ---------- */
.bv2-main--skole {
  padding-top: 40px;
  padding-bottom: 8px;
}

.bv2-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bv2-tool-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .bv2-score-card {
    min-height: 0;
  }
  .bv2-pill-cta {
    margin-top: 4px;
  }
}

@media (max-width: 900px) {
  .bv2-guides {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .bv2-guide {
    min-height: 0;
  }
  .bv2-twocol {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .bv2-wordmark {
    font-size: 24px;
  }

  .bv2-intro {
    padding-top: 16px;
    padding-bottom: 14px;
  }
  .bv2-intro h1 {
    font-size: 34px;
  }
  .bv2-lead {
    font-size: 16px;
    line-height: 1.4;
    margin-top: 6px;
  }

  .bv2-calc {
    padding: 14px 14px 16px;
    gap: 12px;
  }
  .bv2-tabs {
    max-width: none;
  }
  .bv2-group + .bv2-group {
    margin-top: 14px;
  }
  .bv2-input {
    padding: 0 10px;
  }
  .bv2-score-card {
    padding: 16px 18px 18px;
  }
  .bv2-score-row {
    margin: 4px 0 6px;
  }
  .bv2-score-digits {
    font-size: 56px;
    line-height: 1.1;
  }
  .bv2-meters {
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
  }
  .bv2-score-status {
    margin-top: 0;
    min-height: 2.8em;
    font-size: 13px;
  }
  .bv2-score-secondary {
    margin-top: 12px;
  }
  .bv2-score-max {
    font-size: 20px;
  }

  .bv2-preview-title {
    font-size: 21px;
  }
  .bv2-entry-card {
    padding: 16px 10px;
  }
  .bv2-entry-card:first-child {
    padding-left: 0;
  }
  .bv2-entry-cnt {
    font-size: 28px;
  }
  .bv2-entry-lbl {
    font-size: 13px;
  }

  .bv2-section {
    padding-top: 64px;
  }
  .bv2-section h2 {
    font-size: 26px;
  }
  .bv2-journey {
    display: flex;
    flex-direction: column;
  }
  .bv2-journey .bv2-section-head {
    display: contents;
  }
  .bv2-journey .bv2-section-head > div {
    order: 1;
  }
  .bv2-journey .bv2-rail {
    order: 2;
  }
  .bv2-journey .bv2-section-link {
    order: 3;
    align-self: flex-start;
    margin-top: 22px;
  }
  .bv2-journey .bv2-archive-note {
    order: 4;
  }

  .bv2-guide {
    padding: 20px;
  }
  .bv2-guide h3 {
    font-size: 22px;
  }
  .bv2-guide .bv2-link {
    padding-top: 18px;
  }

  .bv2-faq {
    order: -1;
  }
  .bv2-sources {
    background: var(--card-surface);
    border-radius: var(--radius-panel);
    padding: 20px;
  }
  .bv2-sources h2 {
    font-size: 20px;
  }
  .bv2-twocol {
    row-gap: 32px;
  }

  .bv2-footer {
    margin-top: 72px;
    padding: 40px 0 40px;
  }
  .bv2-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "links"
      "meta";
    row-gap: 28px;
  }
}

.bv2-num {
  font-family: var(--font-numeric);
  font-weight: 700;
}

/* ---------- Header icon buttons (mobile) ---------- */
.bv2-header-mobile {
  display: none;
  grid-area: mobile;
  align-items: center;
  gap: 8px;
}

.bv2-icon-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--field);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 250ms var(--ease-out);
}

.bv2-icon-btn:hover {
  background: var(--field-hover);
}

.bv2-icon-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.bv2-theme-btn {
  width: 40px;
  height: 40px;
}

.bv2-theme-btn .i-sun,
.bv2-theme-btn[data-mode="dark"] .i-moon {
  display: none;
}

.bv2-theme-btn[data-mode="dark"] .i-sun {
  display: block;
}

.bv2-dock-burger {
  display: none;
}

/* ---------- Mobile menu (V4 island panel) ---------- */
.bv2-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 460ms;
}

.bv2-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.bv2-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 63, 27, 0.45);
  opacity: 0;
  transition: opacity 420ms var(--ease-out);
}

.is-open .bv2-menu-backdrop {
  opacity: 1;
}

.bv2-menu-panel {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 12px 18px;
  border-radius: var(--radius-island);
  background: var(--island);
  color: var(--on-island);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
  transform-origin: top center;
  transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out);
}

.is-open .bv2-menu-panel {
  opacity: 1;
  transform: none;
}

.bv2-menu-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out);
}

.is-open .bv2-menu-item {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 45ms + 60ms);
}

.bv2-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 4px 16px;
  margin-bottom: 8px;
}

.bv2-menu-head .bv2-wordmark {
  color: #fff;
}

.bv2-menu-close {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.bv2-menu-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.bv2-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.bv2-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: var(--radius-panel);
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: -0.01em;
  transition: background 250ms var(--ease-out);
}

.bv2-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bv2-menu-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.bv2-menu-link[aria-current="page"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.bv2-menu-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 16px 4px 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
}

.bv2-menu-switch button {
  appearance: none;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 250ms var(--ease-out), color 250ms var(--ease-out);
}

.bv2-menu-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--island);
  font-weight: 600;
}

.bv2-menu-guides {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 14px 0 0;
  padding: 14px 16px 0;
}

.bv2-menu-guides a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.bv2-menu-guides a:hover {
  color: #fff;
}

.bv2-menu a:focus-visible,
.bv2-menu button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

html.is-menu-open,
html.is-menu-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .bv2-menu,
  .bv2-menu-backdrop,
  .bv2-menu-panel,
  .bv2-menu-item {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Tablet: keep four links on one line ---------- */
@media (min-width: 900px) and (max-width: 1023px) {
  .bv2-header-inner {
    column-gap: 14px;
  }
  .bv2-nav a {
    padding: 9px 10px;
    font-size: 14.5px;
  }
  .bv2-dock-pill {
    gap: 10px;
  }
}

/* ---------- Mobile + small tablet (<=899): hamburger replaces links ---------- */
@media (max-width: 899px) {
  .bv2-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "mark mobile";
    min-height: 68px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .bv2-header-inner .bv2-nav,
  .bv2-header-inner .bv2-theme-switch {
    display: none;
  }
  .bv2-header-mobile {
    display: flex;
  }
  .bv2-dock {
    padding-inline: 12px;
  }
  .bv2-dock-pill {
    gap: 14px;
    padding: 5px 5px 5px 18px;
  }
  .bv2-dock .bv2-wordmark {
    font-size: 20px;
  }
  .bv2-dock .bv2-nav,
  .bv2-dock-theme {
    display: none;
  }
  .bv2-dock-burger {
    appearance: none;
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
  }
  .bv2-dock-burger:hover {
    background: rgba(255, 255, 255, 0.22);
  }
}

@media (min-width: 900px) {
  .bv2-menu {
    display: none;
  }
}

/* ---------- /skole/ v3 ---------- */
.bv2-main--skole {
  padding-top: 32px;
  padding-bottom: 8px;
}

.bv2-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.bv2-skole-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.bv2-skole-intro {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-2);
}

.bv2-toolbar {
  position: sticky;
  top: 68px;
  z-index: 20;
  margin-inline: calc(-1 * var(--gutter));
  padding: 8px var(--gutter) 12px;
  background: var(--bg-page);
}

.bv2-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bv2-score-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--island);
  color: var(--on-island);
  text-decoration: none;
}

.bv2-score-pill-val {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.bv2-score-pill.is-empty .bv2-score-pill-val {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.bv2-loc-pill {
  appearance: none;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.bv2-loc-pill-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bv2-caret {
  flex: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-2);
}

.bv2-tool-btn {
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--field);
  color: var(--text);
  cursor: pointer;
}

.bv2-tool-btn:hover {
  background: var(--field-hover);
}

.bv2-search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bv2-toolbar.is-searching .bv2-score-pill,
.bv2-toolbar.is-searching .bv2-loc-pill,
.bv2-toolbar.is-searching .bv2-search-btn {
  display: none;
}

.bv2-search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--field);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
}

.bv2-desk-controls {
  display: none;
}

.bv2-chips-wrap {
  margin-inline: calc(-1 * var(--gutter));
  margin-top: 12px;
}

.bv2-chips {
  display: flex;
  gap: 8px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.bv2-chips::-webkit-scrollbar {
  display: none;
}

.bv2-chip {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out);
}

.bv2-chip .count {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
}

.bv2-chip.is-active {
  background: var(--text);
  color: var(--bg-page);
  font-weight: 500;
}

.bv2-chip.is-active .count {
  color: inherit;
  opacity: 0.75;
}

.bv2-results {
  padding-top: 4px;
}

.bv2-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.bv2-group-n {
  font-size: 14px;
  font-weight: 400;
}

.bv2-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bv2-results > .bv2-rows {
  margin-top: 16px;
}

.bv2-row {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--card-surface);
}

.bv2-row:has(> .bv2-row-btn[aria-expanded="true"]) {
  background: var(--field);
}

.bv2-row-btn {
  appearance: none;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px 14px 16px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bv2-row-btn:hover {
  background: var(--field);
}

.bv2-row-btn:focus-visible {
  outline-offset: -3px;
}

.bv2-row-l1,
.bv2-row-l2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bv2-row-name {
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.bv2-row-thr {
  flex: none;
  font-size: 18px;
  line-height: 1.2;
}

.bv2-row-sub {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-2);
}

.bv2-row-delta {
  flex: none;
  letter-spacing: -0.03em;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.bv2-row-delta.is-favor,
.bv2-detail-diff.is-favor {
  color: var(--action-text);
}

.bv2-row-delta.is-above,
.bv2-detail-diff.is-above {
  color: var(--text-2);
}

.bv2-row-detail {
  padding: 2px 16px 16px 16px;
}

.bv2-detail-grid {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px 24px;
  margin: 0 0 12px;
}

.bv2-detail-cell dt {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.bv2-detail-cell dd {
  margin: 0;
  font-size: 16px;
}

.bv2-detail-diff {
  line-height: 1.3;
}

.bv2-row-link {
  font-size: 14px;
}

.bv2-textbtn {
  appearance: none;
  display: block;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--action-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.bv2-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
}

.bv2-divider::before,
.bv2-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.bv2-divider span {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--island);
  color: var(--on-island);
  font-size: 14px;
}

.bv2-more {
  appearance: none;
  display: block;
  width: 100%;
  height: 52px;
  margin: 12px 0 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.bv2-more:hover {
  background: var(--field-hover);
}

.bv2-school-empty {
  padding: 28px 4px;
  color: var(--text-2);
}

/* Filter sheet (mobile) */
html.bv2-sheet-lock {
  overflow: hidden;
}

.bv2-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.bv2-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 63, 27, 0.45);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}

.bv2-sheet.is-open .bv2-sheet-backdrop {
  opacity: 1;
}

.bv2-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: var(--card-surface);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 300ms var(--ease-out);
  outline: none;
}

.bv2-sheet.is-open .bv2-sheet-panel {
  transform: none;
}

.bv2-sheet-handle {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 2px;
  background: var(--border-strong);
}

.bv2-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bv2-sheet-head h2 {
  font-size: 20px;
  font-weight: 600;
}

.bv2-sheet-reset {
  appearance: none;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--action-text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.bv2-sheet-field {
  margin-top: 14px;
}

.bv2-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 52px;
  padding: 0 40px 0 16px;
  border: 0;
  border-radius: var(--radius-panel);
  background-color: var(--field);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.bv2-select option {
  color: var(--text);
  background: var(--bg-raised);
}

.bv2-seg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--track);
}

.bv2-seg button {
  appearance: none;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out);
}

.bv2-seg button[aria-checked="true"] {
  background: var(--pill-raised);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--pill-shadow);
}

.bv2-sheet-apply {
  appearance: none;
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--action);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.bv2-sheet-apply:hover {
  background: var(--island);
}

@media (min-width: 900px) {
  .bv2-main--skole {
    padding-top: 48px;
  }
  .bv2-skole-intro {
    margin-bottom: 24px;
  }
  .bv2-toolbar {
    top: 76px;
    margin-inline: 0;
    padding: 8px 0 12px;
  }
  .bv2-chips-wrap {
    margin-inline: 0;
  }
  .bv2-chips {
    padding-inline: 0;
  }
  .bv2-results {
    max-width: 880px;
  }
}

@media (max-width: 899px) {
  .bv2-toolbar {
    padding-top: 10px;
  }
}

/* ---------- Reading pages (guides, calendar, 404, /skole/beograd/) ----------
   Rendered by scripts/build-guides.mjs from content/pages.sr.json. Tokens only. */
.bv2-main--doc {
  padding-top: 56px;
  padding-bottom: 8px;
}

.bv2-doc-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  column-gap: 80px;
  align-items: start;
}

.bv2-toc {
  position: sticky;
  top: 96px;
  margin-top: 72px;
  font-size: 14px;
}

.bv2-toc-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.bv2-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bv2-toc li + li {
  margin-top: 2px;
}

.bv2-toc a {
  display: block;
  margin-left: -12px;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--text-2);
  line-height: 1.4;
  text-decoration: none;
  transition: color 250ms var(--ease-out), background-color 250ms var(--ease-out);
}

.bv2-toc a:hover {
  background: var(--card-surface);
  color: var(--text);
}

.bv2-toc a.is-active {
  background: var(--field);
  color: var(--text);
  font-weight: 500;
}

.bv2-toc-m {
  display: none;
}

.bv2-doc {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.bv2-doc-grid .bv2-doc {
  margin: 0;
}

.bv2-doc--wide {
  max-width: none;
  margin: 0;
}

.bv2-doc--wide .bv2-lead {
  max-width: 680px;
}

.bv2-doc h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.bv2-doc .bv2-lead {
  margin: 0 0 32px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
}

.bv2-doc h2 {
  scroll-margin-top: 96px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
}

.bv2-doc h2:first-child {
  margin-top: 0;
}

.bv2-doc p,
.bv2-doc ul {
  margin: 0 0 16px;
}

.bv2-doc ul {
  padding-left: 1.25em;
}

.bv2-doc li {
  margin: 0 0 6px;
}

.bv2-doc li::marker {
  color: var(--control);
}

.bv2-doc strong {
  font-weight: 600;
}

.bv2-doc a {
  color: var(--action-text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bv2-doc a:hover {
  text-decoration-thickness: 2px;
}

.bv2-doc .bv2-doc-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--island);
  color: var(--on-island);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 300ms var(--ease-out);
}

.bv2-doc .bv2-doc-cta:hover,
.bv2-doc .bv2-doc-cta:focus-visible {
  background: var(--action);
  text-decoration: none;
}

/* key facts */
.bv2-doc .bv2-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.bv2-doc .bv2-facts li {
  margin: 0;
  padding: 16px 20px;
  border-radius: var(--radius-panel);
  background: var(--card-surface);
}

.bv2-fact-val {
  display: block;
  font-family: var(--font-numeric);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.bv2-fact-text {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
}

/* callout */
/* inline island CTA */
.bv2-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 40px 0;
  padding: 24px;
  border-radius: var(--radius-island);
  background: var(--island);
  color: var(--on-island);
}

.bv2-doc .bv2-cta-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.bv2-doc .bv2-cta-text,
.bv2-cta-text {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

a.bv2-cta-pill,
.bv2-doc a.bv2-cta-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 8px 0 24px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--island);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 300ms var(--ease-out);
}

a.bv2-cta-pill:hover,
a.bv2-cta-pill:focus-visible,
.bv2-doc a.bv2-cta-pill:hover {
  text-decoration: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

a.bv2-cta-pill:focus-visible {
  outline-color: #fff;
}

.bv2-cta-pill-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  transition: transform 400ms var(--ease-out);
}

a.bv2-cta-pill:hover .bv2-cta-pill-icon {
  transform: translateX(3px);
}

/* related guides + source */
.bv2-doc .bv2-related-title {
  margin: 56px 0 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.bv2-doc .bv2-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bv2-doc .bv2-related li {
  margin: 0;
}

.bv2-doc .bv2-related a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-panel);
  background: var(--card-surface);
  color: var(--text);
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 250ms var(--ease-out);
}

.bv2-doc .bv2-related a:hover {
  background: var(--field);
}

.bv2-rel-title {
  font-size: 16px;
  font-weight: 600;
}

.bv2-rel-desc {
  font-size: 14px;
  color: var(--text-2);
}

.bv2-rel-open {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--action-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bv2-rel-arrow {
  display: none;
}

.bv2-source {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.bv2-doc .bv2-source {
  margin: 24px 0 0;
}

.bv2-source a {
  font-weight: 400;
}

/* ---------- Calendar ---------- */
.bv2-cal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  column-gap: 80px;
  align-items: start;
  margin-top: 8px;
}

.bv2-cal-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  grid-column: 2;
  grid-row: 1;
}

.bv2-cal-timeline {
  grid-column: 1;
  grid-row: 1;
}

.bv2-cal-next {
  padding: 24px;
  border-radius: var(--radius-island);
  background: var(--island);
  color: var(--on-island);
}

.bv2-doc .bv2-cal-next-kicker {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.bv2-doc .bv2-cal-next-title {
  margin: 8px 0 6px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.bv2-doc .bv2-cal-next-text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.bv2-archive {
  border-radius: var(--radius-panel);
  background: var(--card-surface);
}

.bv2-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.bv2-archive summary::-webkit-details-marker {
  display: none;
}

.bv2-archive .bv2-disclose-icon {
  width: 20px;
  height: 20px;
}

.bv2-archive[open] .bv2-disclose-icon::after {
  transform: rotate(0deg);
}

.bv2-doc .bv2-archive-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 20px 20px;
  list-style: none;
}

.bv2-doc .bv2-archive-list li,
.bv2-archive-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.bv2-archive-date {
  font-family: var(--font-numeric);
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}

.bv2-doc .bv2-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bv2-doc .bv2-timeline li,
.bv2-timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 36px 40px;
}

.bv2-timeline li:last-child {
  padding-bottom: 0;
}

.bv2-timeline li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -2px;
  width: 2px;
  background: var(--border);
}

.bv2-timeline li:last-child::before {
  display: none;
}

.bv2-timeline li.is-next::before {
  background: var(--brand);
}

.bv2-tl-dot {
  position: absolute;
  left: 4px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--control);
}

.bv2-timeline li.is-next .bv2-tl-dot {
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: var(--brand);
}

.bv2-timeline li.is-pending {
  opacity: 0.6;
}

.bv2-tl-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--field);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.bv2-timeline li.is-next .bv2-tl-tag {
  background: var(--brand-soft);
  color: var(--action-text);
}

.bv2-doc .bv2-tl-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.bv2-timeline li.is-next .bv2-tl-title {
  font-weight: 600;
}

.bv2-doc .bv2-tl-desc {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-2);
}

.bv2-doc .bv2-tl-source {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-2);
}

@media (max-width: 899px) {
  .bv2-main--doc {
    padding-top: 28px;
  }
  .bv2-doc-grid {
    display: block;
  }
  .bv2-toc {
    display: none;
  }
  .bv2-toc-m {
    display: block;
    margin: 0 0 12px;
    border-radius: var(--radius-panel);
    background: var(--card-surface);
  }
  .bv2-toc-m summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
  }
  .bv2-toc-m summary::-webkit-details-marker {
    display: none;
  }
  .bv2-toc-m[open] .bv2-caret {
    transform: rotate(180deg);
  }
  .bv2-toc-m ol {
    margin: 0;
    padding: 0 16px 8px;
    list-style: none;
  }
  .bv2-toc-m a {
    display: block;
    padding: 12px 0;
    color: var(--text);
    font-size: 16px;
    text-decoration: none;
  }
  .bv2-doc {
    font-size: 16px;
  }
  .bv2-doc h1 {
    margin-bottom: 16px;
  }
  .bv2-doc .bv2-lead {
    margin-bottom: 20px;
    font-size: 18px;
  }
  .bv2-doc h2 {
    margin: 32px 0 12px;
    font-size: 24px;
    scroll-margin-top: 88px;
  }
  .bv2-doc .bv2-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 4px;
  }
  .bv2-doc .bv2-facts li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 16px;
  }
  .bv2-fact-val {
    font-size: 20px;
  }
  .bv2-fact-text {
    margin: 0;
    font-size: 14px;
  }
  .bv2-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 32px 0;
    padding: 24px 20px;
  }
  .bv2-doc .bv2-related-title {
    margin-top: 40px;
  }
  .bv2-doc .bv2-related {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .bv2-doc .bv2-related a {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 14px 16px;
  }
  .bv2-rel-title {
    font-size: 16px;
    font-weight: 400;
  }
  .bv2-rel-desc,
  .bv2-rel-open {
    display: none;
  }
  .bv2-rel-arrow {
    display: inline;
    color: var(--text-2);
  }
  .bv2-cal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
  }
  .bv2-cal-aside {
    display: contents;
  }
  .bv2-cal-next {
    order: 1;
    margin-bottom: 32px;
    padding: 20px;
  }
  .bv2-doc .bv2-cal-next-title {
    font-size: 22px;
  }
  .bv2-cal-timeline {
    order: 2;
  }
  .bv2-archive {
    order: 3;
    margin-top: 32px;
  }
  .bv2-doc .bv2-tl-title {
    font-size: 20px;
  }
}

/* ---------- Copy plan round 6 ---------- */
.bv2-score-status {
  margin: 16px 0 0;
  min-height: 2.8em;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.bv2-score-status[data-kind="valid"] {
  color: #fff;
}

.bv2-score-card .bv2-pill-cta {
  margin-top: 12px;
}

.bv2-preview-lead {
  margin: 0 0 14px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

.bv2-preview-all {
  margin-top: 14px;
  font-size: 16px;
}

.bv2-journey-source {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-2);
}

.bv2-journey-source a {
  color: inherit;
  text-underline-offset: 3px;
}

.bv2-phase.has-date,
.bv2-phase.has-date:not(.is-next) {
  opacity: 1;
}

.bv2-phase.has-date .bv2-ph-status {
  color: var(--text);
  font-weight: 600;
}

.bv2-phase.has-date:not(.is-next) .bv2-ph-dot {
  background: var(--brand);
}

.bv2-faq .bv2-faq-list {
  display: grid;
  gap: 8px;
  max-width: 880px;
  margin-top: 14px;
}

.bv2-timeline li.is-confirmed .bv2-tl-tag {
  background: var(--brand-soft);
  color: var(--action-text);
}

.bv2-timeline li.is-confirmed .bv2-tl-dot {
  background: var(--brand);
}

.bv2-doc .bv2-cta-title,
.bv2-cta--tool .bv2-cta-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.bv2-cta--tool {
  margin: 48px 0 0;
}

.bv2-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 0 17px 0 4px;
  font-size: 13px;
  color: var(--text-2);
}

.bv2-list-head p {
  margin: 0;
}

.bv2-list-count {
  font-weight: 600;
}

.bv2-list-col {
  text-align: right;
}

.bv2-list-head + .bv2-results > .bv2-rows,
.bv2-list-head + .bv2-results > .bv2-group:first-child .bv2-group-head {
  margin-top: 8px;
}

.bv2-school-empty p {
  margin: 0 0 14px;
}

.bv2-empty-action {
  width: auto;
  padding-inline: 20px;
}

.bv2-about {
  margin-top: 56px;
  max-width: 880px;
}

.bv2-about h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

.bv2-about p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

@media (min-width: 900px) {
  .bv2-list-head {
    max-width: 880px;
  }
  .bv2-cta--tool {
    max-width: 880px;
  }
}

@media (max-width: 899px) {
  .bv2-journey .bv2-journey-source {
    order: 5;
    margin-top: 16px;
  }
  .bv2-footer-links ul {
    justify-content: flex-start;
    gap: 10px 24px;
  }
  .bv2-footer-meta {
    flex-direction: column;
  }
  .bv2-cta--tool {
    margin-top: 40px;
  }
}

/* ---------- /skole/ desktop table (>=1024px): full-width one-line rows ---------- */
.bv2-cols {
  display: none;
}

@media (min-width: 1024px) {
  .bv2-results,
  .bv2-list-head {
    max-width: none;
  }
  .bv2-about {
    max-width: 760px;
  }
  .bv2-list-head {
    display: block;
    padding: 0;
  }
  .bv2-list-head .bv2-list-count {
    margin-bottom: 8px;
  }
  .bv2-list-col {
    display: none;
  }
  .bv2-cols:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) minmax(0, 1fr) 176px;
    column-gap: 16px;
    align-items: end;
    padding: 0 17px 0 20px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--text-2);
  }
  .bv2-cols-pts {
    text-align: right;
  }
  .bv2-list-head + .bv2-results > .bv2-rows,
  .bv2-list-head + .bv2-results > .bv2-group:first-child .bv2-group-head {
    margin-top: 6px;
  }
  .bv2-row-btn {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) minmax(0, 1fr) 88px 72px;
    column-gap: 16px;
    align-items: center;
    padding: 10px 16px 10px 20px;
    min-height: 44px;
  }
  .bv2-row-l1,
  .bv2-row-l2,
  .bv2-row-sub {
    display: contents;
  }
  .bv2-row-sep {
    display: none;
  }
  .bv2-row-name,
  .bv2-row-school,
  .bv2-row-muni {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bv2-row-name {
    grid-area: 1 / 1;
    font-size: 16px;
  }
  .bv2-row-school {
    grid-area: 1 / 2;
    font-size: 14px;
    color: var(--text);
  }
  .bv2-row-muni {
    grid-area: 1 / 3;
    font-size: 13px;
    color: var(--text-2);
  }
  .bv2-row-thr {
    grid-area: 1 / 4;
    text-align: right;
    font-size: 16px;
  }
  .bv2-row-delta {
    grid-area: 1 / 5;
    text-align: right;
  }
  .bv2-more {
    margin-top: 12px;
  }
}

/* ---------- Round 9: calculator fields first ---------- */
.bv2-lead--short {
  display: none;
}

@media (max-width: 639px) {
  .bv2-lead--full {
    display: none;
  }
  .bv2-lead--short {
    display: block;
  }
}

@media (min-width: 640px) {
  .bv2-input {
    font-size: 26px;
    padding: 0 14px;
  }
  .bv2-grades,
  .bv2-exams {
    gap: 14px;
  }
  .bv2-group + .bv2-group {
    margin-top: 22px;
  }
  .bv2-ghead {
    margin-bottom: 10px;
  }
  .bv2-field-label {
    font-size: 16px;
    margin-bottom: 6px;
  }
}

/* never let the floating dock cover a focused calculator field */
html.is-calc-focus .bv2-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms linear, visibility 0s linear 120ms;
}

@media (min-width: 721px) {
  .bv2-score-card {
    padding: 20px 24px 22px;
  }
  .bv2-score-row {
    margin: 8px 0 6px;
  }
  .bv2-score-digits {
    font-size: 64px;
    line-height: 1.1;
  }
  .bv2-meters {
    margin-bottom: 14px;
  }
  .bv2-score-status {
    margin-top: 0;
  }
  .bv2-score-secondary {
    margin-top: 12px;
  }
}
.bv2-ghead {
  gap: 4px;
}

/* ---------- Round 11/12: surfaces defined by contrast, not outlines ----------
   Card surface is one step off the page: a touch darker in light mode, a touch
   lighter in dark mode. Fields, tracks and nested boxes are one more step away
   from the card, built by mixing the text token into the card surface so both
   themes stay in sync. Round 11 introduced these for the calculator as --calc-*;
   they are now generic (--card-surface, --field*, --track, --pill-raised) and the
   old names stay as aliases. */
:root {
  --card-surface: var(--bg-subtle);
  --card-accent: var(--action);
  --card-on-accent: var(--on-island);
  --pill-raised: var(--bg-card);
  --pill-shadow: 0 1px 3px color-mix(in srgb, var(--text) 16%, transparent);
  --track: var(--field);
  --field: var(--surface-2);
  --field-hover: var(--surface-3);
  --field-focus: color-mix(in srgb, var(--bg-card) 62%, var(--card-surface));
  --field-focus-filled: color-mix(in srgb, var(--bg-card) 45%, var(--field-valid));
  --field-valid: color-mix(in srgb, var(--card-accent) 11%, var(--card-surface));
  --field-invalid: color-mix(in srgb, var(--error) 9%, var(--card-surface));
  --field-label: color-mix(in srgb, var(--text) 85%, transparent);
  --card-tint: color-mix(in srgb, var(--card-accent) 17%, var(--card-surface));
  --row-alt: color-mix(in srgb, var(--surface-1) 50%, var(--surface-2));

  /* round-11 names, kept working */
  --calc-surface: var(--card-surface);
  --calc-accent: var(--card-accent);
  --calc-on-accent: var(--card-on-accent);
  --calc-pill: var(--pill-raised);
  --calc-track: var(--track);
}

:root[data-theme="dark"] {
  --card-surface: var(--bg-card);
  --card-accent: var(--accent);
  --card-on-accent: var(--island);
  --pill-raised: var(--bg-raised);
  --pill-shadow: none;
  --track: var(--field);
  --field-focus: color-mix(in srgb, var(--text) 10%, var(--card-surface));
  --field-focus-filled: color-mix(in srgb, var(--text) 8%, var(--field-valid));
  --card-tint: color-mix(in srgb, var(--card-accent) 14%, var(--card-surface));
}

:root:not([data-theme="light"]) {
  --card-surface: var(--bg-card);
  --card-accent: var(--accent);
  --card-on-accent: var(--island);
  --pill-raised: var(--bg-raised);
  --pill-shadow: none;
  --track: var(--field);
  --field-focus: color-mix(in srgb, var(--text) 10%, var(--card-surface));
  --field-focus-filled: color-mix(in srgb, var(--text) 8%, var(--field-valid));
  --card-tint: color-mix(in srgb, var(--card-accent) 14%, var(--card-surface));
}

.bv2-calc {
  background: var(--card-surface);
  border: 0;
  border-radius: var(--radius-island);
  padding: 20px;
  gap: 24px;
}

/* tabs: filled track + raised pill, no outlines */
.bv2-tabs {
  height: 44px;
  padding: 4px;
  background: var(--track);
  border: 0;
}

.bv2-tab-slider {
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--pill-raised);
  box-shadow: var(--pill-shadow);
}

.bv2-tab {
  font-size: 15px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.bv2-tab:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: -2px;
}

/* labels */
.bv2-group + .bv2-group {
  margin-top: 28px;
}

.bv2-ghead {
  gap: 6px;
  min-height: 22px;
  margin-bottom: 12px;
}

.bv2-gtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.bv2-field-label {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--field-label);
}

.bv2-grades,
.bv2-exams {
  gap: 10px;
}

.bv2-info-text {
  margin: 0 0 12px;
}

/* "?" button: 22px filled circle, 40px hit area, no outline or tap highlight */
.bv2-info {
  width: 22px;
  height: 22px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.bv2-info::before {
  inset: -9px;
}

.bv2-info-dot {
  width: 22px;
  height: 22px;
  border: 0;
  background: var(--field);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding-top: 2px;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.bv2-info:hover .bv2-info-dot {
  border: 0;
  background: var(--field-hover);
  color: var(--text);
}

.bv2-info:focus-visible .bv2-info-dot {
  box-shadow: 0 0 0 2px var(--card-surface), 0 0 0 4px var(--card-accent);
}

.bv2-info[aria-expanded="true"] .bv2-info-dot {
  background: var(--card-accent);
  border: 0;
  color: var(--card-on-accent);
}

/* filled fields */
.bv2-input {
  height: 60px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--field);
  box-shadow: 0 0 0 0 transparent;
  color: var(--text);
  caret-color: var(--card-accent);
  font-size: 26px;
  text-align: left;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.bv2-input::placeholder {
  color: var(--text-2);
  font-weight: 700;
  opacity: 0.45;
}

.bv2-input:hover {
  background-color: var(--field-hover);
}

.bv2-input:not(:placeholder-shown) {
  background-color: var(--field-valid);
}

.bv2-input:focus,
.bv2-input:focus-visible {
  background-color: var(--field-focus);
  box-shadow: 0 0 0 2px var(--card-accent);
  outline: 0;
}

.bv2-input:focus:not(:placeholder-shown) {
  background-color: var(--field-focus-filled);
}

.bv2-input[aria-invalid="true"],
.bv2-input[aria-invalid="true"]:focus {
  background-color: var(--field-invalid);
  box-shadow: 0 0 0 2px var(--error);
}

.bv2-error {
  margin-top: 8px;
}

.bv2-tool-row {
  gap: 20px;
}

@media (max-width: 720px) {
  .bv2-intro {
    padding-top: 20px;
    padding-bottom: 22px;
  }
  .bv2-intro h1 {
    font-size: 40px;
  }
  .bv2-lead {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 10px;
  }
  .bv2-calc {
    padding: 20px;
    gap: 24px;
  }
  .bv2-group + .bv2-group {
    margin-top: 28px;
  }
  .bv2-input {
    padding: 0 16px;
    font-size: 26px;
  }
}

@media (max-width: 374px) {
  .bv2-field-label {
    font-size: 14px;
    letter-spacing: -0.01em;
  }
  .bv2-grades,
  .bv2-exams {
    gap: 8px;
  }
  .bv2-input {
    padding: 0 12px;
    font-size: 24px;
  }
  .bv2-intro h1 {
    font-size: 36px;
  }
}

@media (min-width: 640px) {
  .bv2-calc {
    padding: 24px;
  }
  .bv2-grades,
  .bv2-exams {
    gap: 14px;
  }
  .bv2-group + .bv2-group {
    margin-top: 28px;
  }
  .bv2-ghead {
    margin-bottom: 12px;
  }
  .bv2-field-label {
    margin-bottom: 8px;
    font-size: 16px;
  }
  .bv2-input {
    padding: 0 16px;
    font-size: 26px;
  }
  .bv2-tool-row {
    gap: 24px;
  }
}

@media (min-width: 1081px) {
  .bv2-calc {
    padding: 32px;
  }
}

/* ---------- Round 12: no outlines sitewide ---------- */
/* search input: filled field, focus ring as box-shadow */
.bv2-search-input {
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 0 0 0 transparent;
  transition: background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.bv2-search-input::placeholder {
  color: var(--text-2);
  opacity: 0.7;
}

.bv2-search-input:hover {
  background-color: var(--field-hover);
}

.bv2-search-input:focus,
.bv2-search-input:focus-visible {
  background-color: var(--field-focus);
  box-shadow: 0 0 0 2px var(--focus);
  outline: 0;
}

.bv2-chip:hover:not(.is-active),
.bv2-loc-pill:hover,
.bv2-select:hover {
  background-color: var(--field-hover);
}

.bv2-chip.is-active:hover {
  background-color: var(--text);
}

/* list rows: separate cards with spacing on mobile/tablet; the desktop table (>=1024px)
   is a ruled list - see the Round 26 table block at the end of this file */

/* ---------- Round 12: homepage journey on mobile (vertical timeline) ---------- */
@media (max-width: 720px) {
  .bv2-journey .bv2-rail {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
    padding: 22px 20px;
    border-radius: var(--radius-panel);
    background: var(--card-surface);
  }
  .bv2-rail::before,
  .bv2-rail::after {
    display: none;
  }
  .bv2-phase,
  .bv2-phase:not(.is-next) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "date";
    row-gap: 4px;
    align-content: start;
    justify-items: start;
    padding: 0 0 20px 32px;
    opacity: 1;
  }
  .bv2-phase:last-child {
    padding-bottom: 0;
  }
  /* rail line: runs from this dot centre to the next one */
  .bv2-phase::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 11px;
    bottom: -11px;
    width: 2px;
    border-radius: 1px;
    background: var(--border-strong);
  }
  .bv2-phase:last-child::before {
    display: none;
  }
  /* dots: 10px, centred on the rail and on the first text line (17px/1.3 = 22px line) */
  .bv2-ph-dot,
  .bv2-rail .bv2-phase:not(.is-next) .bv2-ph-dot {
    left: 8px;
    top: 6px;
    width: 10px;
    height: 10px;
    margin: 0 0 0 -5px;
    background: var(--control);
  }
  .bv2-rail .bv2-phase.is-next .bv2-ph-dot {
    top: 3px;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    background: var(--brand);
  }
  .bv2-ph-title,
  .is-next .bv2-ph-title {
    grid-area: title;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
  }
  .bv2-ph-status,
  .bv2-phase.has-date .bv2-ph-status {
    grid-area: date;
    margin: 0;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
  }
  .bv2-phase.is-next.has-date .bv2-ph-status {
    color: var(--action-text);
    font-weight: 700;
  }
  /* unconfirmed date: muted, small subtle pill */
  .bv2-phase:not(.has-date) .bv2-ph-status {
    margin-top: 2px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--field);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-2);
  }
  .bv2-ph-desc {
    display: none;
  }
  .bv2-st-long {
    display: none;
  }
  .bv2-st-short {
    display: inline;
  }
  .bv2-journey .bv2-section-link {
    margin-top: 20px;
  }
  .bv2-journey .bv2-journey-source {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-2);
  }
}

/* ---------- Round 13: icon tiles (top-left of link cards, title below) ----------
   Inline Streamline Core Line SVGs (scripts/icons.mjs); glyph takes the theme accent via currentColor. */
.bv2-icon-tile {
  --tile-tint: 12%;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0 0 16px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-accent) var(--tile-tint), transparent);
  color: var(--card-accent);
  transition: background-color 250ms var(--ease-out);
}

.bv2-icon-tile svg {
  display: block;
  width: 24px;
  height: 24px;
}

.bv2-guide:hover .bv2-icon-tile,
.bv2-guide:focus-within .bv2-icon-tile,
.bv2-doc .bv2-related a:hover .bv2-icon-tile,
.bv2-doc .bv2-related a:focus-visible .bv2-icon-tile {
  --tile-tint: 18%;
}

/* related cards: the flex gap (6px) already sits above the title, so the tile adds 10px */
.bv2-doc .bv2-related .bv2-icon-tile {
  margin-bottom: 10px;
}

@media (max-width: 899px) {
  /* compact related rows: tile sits left of the title, same row */
  .bv2-doc .bv2-related .bv2-icon-tile {
    width: 36px;
    height: 36px;
    margin: 0 12px 0 0;
    border-radius: 10px;
  }
  .bv2-doc .bv2-related .bv2-icon-tile svg {
    width: 20px;
    height: 20px;
  }
  .bv2-doc .bv2-related .bv2-rel-title {
    flex: 1;
    min-width: 0;
  }
  .bv2-doc .bv2-related a {
    padding: 10px 16px 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bv2-icon-tile {
    transition: none;
  }
}

/* ---------- Round 14: /skole/ filter toolbar - every control a pill ----------
   Desktop (>=1024px): one row of 48px filled pills; Okrug / Opstina / Poredaj are Morphing Selects
   (public/lib/morphing-select.mjs, GSAP self-hosted in /vendor/, /skole/ only) layered over native
   <select>s, which stay in the DOM as the source of truth. Without GSAP the native selects remain
   usable and styled as pills. Below 1024px the compact toolbar + bottom sheet (native selects) stay. */
.bv2-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* sheet selects: filled pills with a custom caret */
.bv2-select {
  height: 48px;
  padding: 0 44px 0 20px;
  border-radius: var(--radius-pill);
  background-position: calc(100% - 24px) 21px, calc(100% - 19px) 21px;
  font-size: 16px;
}

/* chips: segmented pill group on a filled track, inverted pill slides between options */
.bv2-chips {
  --chip-h: 36px;
}

.bv2-chips-track {
  position: relative;
  display: inline-flex;
  flex: none;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--field);
}

.bv2-chip-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--text);
  pointer-events: none;
  will-change: transform, width;
  transition: transform 350ms var(--ease-in-out), width 350ms var(--ease-in-out);
}

.bv2-chip-ind.is-instant {
  transition: none;
}

.bv2-chips-track .bv2-chip {
  position: relative;
  z-index: 1;
  height: var(--chip-h);
  padding: 0 14px;
  background: transparent;
  font-size: 14px;
  transition: background-color 250ms var(--ease-out), color 350ms var(--ease-in-out);
}

.bv2-chips-track .bv2-chip:hover:not(.is-active) {
  background: var(--field-hover);
}

.bv2-chips-track .bv2-chip.is-active,
.bv2-chips-track .bv2-chip.is-active:hover {
  background: transparent;
  color: var(--bg-page);
}

.bv2-chips-track .bv2-chip .count {
  display: inline-block;
  font-size: 13px;
}

.bv2-chip-short {
  display: none;
}

/* native select as a pill (fallback without GSAP) */
.bv2-pillsel {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
  height: 48px;
  max-width: 300px;
  padding: 0 14px 0 18px;
  border-radius: var(--radius-pill);
  background: var(--field);
  transition: background-color 200ms var(--ease-out);
}

.bv2-pillsel:hover {
  background: var(--field-hover);
}

.bv2-pillsel-prefix {
  flex: none;
  font-size: 14px;
  color: var(--text-2);
}

.bv2-pillsel select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  max-width: 200px;
  height: 100%;
  padding: 0 20px 0 0;
  border: 0;
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 5px) 21px, calc(100% - 0px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  cursor: pointer;
  outline: 0;
}

.bv2-pillsel:focus-within {
  box-shadow: 0 0 0 2px var(--card-accent);
}

.bv2-pillsel select option {
  color: var(--text);
  background: var(--bg-raised);
}

.bv2-pillsel.is-enhanced {
  height: auto;
  padding: 0;
  background: transparent;
  max-width: none;
}

.bv2-pillsel.is-enhanced:focus-within {
  box-shadow: none;
}

.bv2-pillsel.is-enhanced > .bv2-pillsel-prefix {
  display: none;
}

.bv2-pillsel:has(.msel_stack.is-open) {
  z-index: 30;
}

/* Morphing Select */
.msel_stack {
  --msel-bg: var(--field);
  position: relative;
  width: max-content;
  min-width: 104px;
  max-width: 300px;
}

.msel_stack:hover,
.msel_stack.is-open {
  --msel-bg: var(--field-hover);
}

.msel_goo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.msel_filter_svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.msel_trigger_bg,
.msel_panel_bg {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--msel-bg);
  transform-origin: 50% 0%;
  will-change: transform, width, height;
  transition: background-color 200ms var(--ease-out);
}

.msel_trigger_bg {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
}

.msel_panel_bg {
  border-radius: var(--radius-panel);
}

.msel_trigger_bg_crisp {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background-color: var(--msel-bg);
  pointer-events: none;
  transition: background-color 200ms var(--ease-out);
}

.msel_content {
  position: relative;
  z-index: 1;
}

.msel_trigger {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: 0;
}

.msel_trigger:focus-visible {
  box-shadow: 0 0 0 2px var(--card-accent);
}

.msel_prefix {
  flex: none;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}

.msel_roller {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 1.4em;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4em;
}

.msel_face {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msel_face_next {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
}

.msel_caret {
  flex: none;
  display: block;
  width: 16px;
  height: 16px;
  color: var(--text-2);
}

.msel_panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 2;
  width: max-content;
  min-width: 100%;
  max-width: 360px;
  visibility: hidden;
  opacity: 0;
}

.msel_scroll {
  position: relative;
  max-height: 360px;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-panel);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text) 25%, transparent) transparent;
}

.msel_list {
  margin: 0;
  padding: 0;
  list-style: none;
  outline: 0;
}

.msel_highlight {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 0;
  height: 40px;
  border-radius: 10px;
  background: var(--pill-raised);
  box-shadow: var(--pill-shadow);
  pointer-events: none;
  z-index: 0;
}

.msel_option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 32px 0 14px;
  border-radius: 10px;
  cursor: pointer;
}

.msel_option_mask {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.msel_option_mask_inner {
  display: block;
  overflow: hidden;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
}

.msel_option[aria-selected="true"] .msel_option_mask_inner {
  font-weight: 600;
}

.msel_option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--card-accent);
}

.bv2-desk-search-icon {
  display: none;
}

@media (min-width: 1024px) {
  .bv2-sheet {
    display: none !important;
  }
  .bv2-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .bv2-toolbar-row,
  .bv2-desk-controls {
    display: contents;
  }
  .bv2-loc-pill,
  .bv2-search-btn,
  .bv2-search-field {
    display: none !important;
  }
  .bv2-toolbar-row .bv2-score-pill {
    height: 48px;
    padding: 0 14px;
  }
  .bv2-desk-search {
    position: relative;
    flex: 1 1 150px;
    min-width: 140px;
    max-width: 240px;
  }
  .bv2-desk-search-icon {
    display: block;
    position: absolute;
    left: 15px;
    top: 50%;
    margin-top: -9px;
    color: var(--text-2);
    pointer-events: none;
  }
  .bv2-desk-search .bv2-search-input {
    height: 48px;
    padding: 0 12px 0 40px;
    font-size: 14px;
    text-overflow: ellipsis;
  }
  .bv2-desk-search .bv2-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
  }
  .bv2-desk-search .bv2-search-input:focus,
  .bv2-desk-search .bv2-search-input:focus-visible {
    box-shadow: 0 0 0 2px var(--card-accent);
  }
  .bv2-chips-wrap {
    flex: none;
    max-width: 100%;
    margin: 0 0 0 auto;
  }
  .bv2-chips {
    --chip-h: 40px;
    overflow: visible;
  }
  .bv2-chips-track .bv2-chip {
    padding: 0 9px;
    gap: 5px;
  }
  .bv2-chips-track.is-multi .bv2-chip-full {
    display: none;
  }
  .bv2-chips-track.is-multi .bv2-chip-short {
    display: inline;
  }
  .bv2-row-detail {
    padding-left: 20px;
  }
}

/* ---------- Round 16: two-tier pill sizing ----------
   Tier S (40px) = filter / control pills; Tier L (56px) = CTA buttons. Both get more horizontal
   breathing room than before. Defined as tokens so every pill reads from one place. */
:root {
  --pill-sm-h: 40px;
  --pill-sm-px: 18px;
  --pill-sm-fs: 15px; /* chips / filters: 40px, 15px (V4 pill system) */
  --pill-lg-h: 48px; /* CTA pills: 48px, 24px, 16px, no icons */
  --pill-lg-px: 24px;
  --pill-lg-fs: 16px;
  --pill-gap: 12px;
}

/* Tier S - toolbar */
.bv2-toolbar-row {
  gap: var(--pill-gap);
}

.bv2-score-pill,
.bv2-toolbar-row .bv2-score-pill {
  height: var(--pill-sm-h);
  padding: 0 var(--pill-sm-px);
}

.bv2-score-pill-val {
  font-size: 16px;
}

.bv2-score-pill.is-empty .bv2-score-pill-val {
  font-size: var(--pill-sm-fs);
}

.bv2-loc-pill {
  height: var(--pill-sm-h);
  padding: 0 14px 0 var(--pill-sm-px);
  font-size: var(--pill-sm-fs);
}

.bv2-tool-btn {
  width: var(--pill-sm-h);
  height: var(--pill-sm-h);
}

.bv2-search-input {
  height: var(--pill-sm-h);
  padding: 0 var(--pill-sm-px);
}

/* sheet selects (native, mobile): 16px stays so iOS does not zoom on focus */
.bv2-select {
  height: var(--pill-sm-h);
  padding: 0 40px 0 var(--pill-sm-px);
  background-position: calc(100% - 19px) 17.5px, calc(100% - 14px) 17.5px;
}

/* native select pill (fallback without GSAP) */
.bv2-pillsel {
  gap: 8px;
  height: var(--pill-sm-h);
  padding: 0 14px 0 var(--pill-sm-px);
}

.bv2-pillsel-prefix {
  font-size: 14px;
}

.bv2-pillsel select {
  font-size: var(--pill-sm-fs);
  background-position: calc(100% - 5px) 17.5px, calc(100% - 0px) 17.5px;
}

.bv2-pillsel.is-enhanced {
  height: auto;
  padding: 0;
}

/* Morphing Select trigger */
.msel_trigger {
  gap: 8px;
  height: var(--pill-sm-h);
  padding: 0 14px 0 var(--pill-sm-px);
}

.msel_roller,
.msel_face {
  font-size: var(--pill-sm-fs);
}

/* chips: 40px track, 4px inset -> 32px chips */
.bv2-chips {
  --chip-h: calc(var(--pill-sm-h) - 8px);
}

.bv2-chips-track .bv2-chip {
  padding: 0 14px;
  gap: 6px;
  font-size: var(--pill-sm-fs);
}

.bv2-chips-track .bv2-chip .count {
  font-size: 13px;
}

@media (min-width: 1024px) {
  .bv2-toolbar {
    gap: var(--pill-gap);
  }
  .bv2-toolbar-row .bv2-score-pill {
    height: var(--pill-sm-h);
    padding: 0 var(--pill-sm-px);
  }
  .bv2-desk-search {
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 260px;
  }
  .bv2-desk-search-icon {
    left: 16px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
  }
  /* icon 16px at 16px -> placeholder starts 10px after it */
  .bv2-desk-search .bv2-search-input {
    height: var(--pill-sm-h);
    padding: 0 14px 0 42px;
    font-size: var(--pill-sm-fs);
  }
  .bv2-chips {
    --chip-h: calc(var(--pill-sm-h) - 8px);
  }
  .bv2-chips-track .bv2-chip {
    padding: 0 14px;
    gap: 6px;
  }
}

/* Tier L - CTA buttons: 56px, 17px semibold, 28px side padding (8px on the arrow-circle side) */
.bv2-pill-cta {
  height: var(--pill-lg-h);
  padding: 0 8px 0 var(--pill-lg-px);
  font-size: var(--pill-lg-fs);
}

a.bv2-cta-pill,
.bv2-doc a.bv2-cta-pill {
  height: var(--pill-lg-h);
  padding: 0 8px 0 var(--pill-lg-px);
  font-size: var(--pill-lg-fs);
}

.bv2-doc .bv2-doc-cta {
  min-height: var(--pill-lg-h);
  padding: 0 var(--pill-lg-px);
  font-size: var(--pill-lg-fs);
}

.bv2-more {
  height: var(--pill-lg-h);
  padding: 0 var(--pill-lg-px);
  font-size: var(--pill-lg-fs);
  font-weight: 600;
}

.bv2-sheet-apply {
  height: var(--pill-lg-h);
  padding: 0 var(--pill-lg-px);
  font-size: var(--pill-lg-fs);
}

/* Tier S header (>=900px): logo left, nav truly centred (1fr auto 1fr), round theme icon button right.
   The mobile icon-button group is reused on desktop with its burger hidden. */
@media (min-width: 900px) {
  .bv2-header-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "mark nav switch";
  }
  .bv2-header-inner .bv2-wordmark {
    justify-self: start;
  }
  .bv2-header-inner .bv2-nav {
    justify-self: center;
  }
  .bv2-header-mobile {
    display: flex;
    grid-area: switch;
    justify-self: end;
  }
  .bv2-header-mobile .bv2-burger {
    display: none;
  }
  .bv2-header-inner .bv2-theme-btn {
    width: var(--pill-sm-h);
    height: var(--pill-sm-h);
  }
  .bv2-header-inner .bv2-nav a {
    height: var(--pill-sm-h);
    padding: 0 var(--pill-sm-px);
    font-size: var(--pill-sm-fs);
    line-height: 1;
  }
}
/* ---------- /Round 16 ---------- */

@media (prefers-reduced-motion: reduce) {
  .bv2-chip-ind,
  .bv2-chips-track .bv2-chip,
  .msel_trigger_bg,
  .msel_panel_bg,
  .msel_trigger_bg_crisp {
    transition: none;
  }
}

/* ===== Round 18: single-column /skole/ hero, two-row desktop toolbar with an always-visible search field ===== */
/* Round 17 (expanding magnifier, 2-column intro) is superseded and removed. */
.bv2-score-pill--intro {
  display: none;
}

.bv2-dsearch-icon,
.bv2-dsearch-clear {
  display: none;
}

/* mobile/tablet: slightly more air above the page title; toolbar structure unchanged */
@media (max-width: 1023px) {
  .bv2-main--skole {
    padding-top: 40px;
  }
  .bv2-skole-intro {
    margin-bottom: 24px;
  }
}
@media (max-width: 599px) {
  .bv2-main--skole {
    padding-top: 36px;
  }
}

@media (min-width: 1024px) {
  /* hero: single column, rhythm 16 / 28 / 48 */
  .bv2-main--skole {
    padding-top: 72px;
  }
  .bv2-skole-head {
    display: block;
  }
  .bv2-skole-head-text {
    max-width: 720px;
  }
  .bv2-skole-head .bv2-skole-intro {
    margin-top: 16px;
    margin-bottom: 28px;
  }
  .bv2-skole-head .bv2-score-pill--intro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--pill-lg-h);
    padding: 0 24px;
    margin-bottom: 40px;
    font-size: var(--pill-sm-fs);
  }
  .bv2-score-pill-label {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: color-mix(in srgb, var(--on-island) 70%, transparent);
  }
  .bv2-score-pill--intro .bv2-score-pill-val {
    font-size: 20px;
  }
  .bv2-score-pill--intro.is-empty .bv2-score-pill-label {
    display: none;
  }
  .bv2-score-pill--intro.is-empty .bv2-score-pill-val {
    font-size: var(--pill-lg-fs);
  }
  .bv2-toolbar-row > .bv2-score-pill {
    display: none !important;
  }

  /* toolbar: row 1 = selects + search field, row 2 = chip tabs (left) */
  .bv2-toolbar {
    display: block;
    padding: 8px 0 12px;
  }
  .bv2-toolbar-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--pill-gap);
  }
  .bv2-desk-controls {
    display: contents;
  }
  .bv2-desk-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 280px;
    max-width: 480px;
    margin-left: auto;
    height: var(--pill-sm-h);
  }
  .bv2-dsearch-box {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--pill-sm-h);
    border-radius: var(--radius-pill);
    background: var(--field);
    transition: background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  }
  .bv2-dsearch-box:hover {
    background: var(--field-hover);
  }
  .bv2-dsearch-box:focus-within {
    background: var(--field-focus);
    box-shadow: 0 0 0 2px var(--card-accent);
  }
  .bv2-dsearch-icon {
    display: block;
    flex: none;
    margin-left: 14px;
    color: var(--text-2);
    pointer-events: none;
  }
  .bv2-desk-search .bv2-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: var(--pill-sm-h);
    padding: 0 12px 0 10px;
    font-size: var(--pill-sm-fs);
    background: transparent;
    box-shadow: none;
    text-overflow: ellipsis;
  }
  .bv2-desk-search .bv2-search-input:hover,
  .bv2-desk-search .bv2-search-input:focus,
  .bv2-desk-search .bv2-search-input:focus-visible {
    background: transparent;
    box-shadow: none;
  }
  .bv2-dsearch-clear {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text-2);
    cursor: pointer;
  }
  .bv2-desk-search.has-query .bv2-dsearch-clear {
    display: inline-flex;
  }
  .bv2-dsearch-clear:hover,
  .bv2-dsearch-clear:focus-visible {
    background: color-mix(in srgb, var(--text) 10%, transparent);
    color: var(--text);
    outline: 0;
  }

  /* row 2: chip tabs, left-aligned, 16px below row 1; full labels (short ones only if they cannot fit) */
  .bv2-chips-wrap {
    display: block;
    margin: 16px 0 0;
    max-width: 100%;
  }
  .bv2-chips-track.is-multi .bv2-chip-full {
    display: inline;
  }
  .bv2-chips-track.is-multi .bv2-chip-short {
    display: none;
  }
  .bv2-chips-track .bv2-chip {
    padding: 0 var(--pill-sm-px);
    gap: 8px;
  }
  .bv2-list-head {
    margin-top: 12px;
  }
}

/* ===== Round 19: /skole/ desktop toolbar on ONE row (>=1024px) - START =====
   Round 18's second chip row is neutralised. Order: Okrug - Opstina - Poredaj - search (flex) - chips (far right).
   The search is a field while >=200px stays free (decided by a ResizeObserver in bodovi-v2-skole.mjs, class
   .is-compact on #bv2-desk-search), otherwise a 40px magnifier / query pill whose field opens as an overlay. */
.bv2-dsearch-pill {
  display: none;
}

@media (min-width: 1024px) {
  .bv2-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--pill-gap);
    padding: 8px 0 12px;
  }
  .bv2-toolbar-row {
    display: contents;
  }
  .bv2-desk-controls {
    display: contents;
  }
  /* long values truncate (ellipsis) instead of wrapping */
  .bv2-toolbar .bv2-pillsel {
    flex: none;
  }
  .bv2-toolbar .bv2-pillsel:first-of-type .msel_stack {
    max-width: 330px;
  }
  .bv2-toolbar .msel_stack {
    max-width: 260px;
  }
  .bv2-desk-search {
    position: relative;
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 420px;
    margin-left: 0;
    height: var(--pill-sm-h);
  }
  .bv2-chips-wrap {
    display: block;
    flex: none;
    margin: 0 0 0 auto;
    max-width: none;
  }
  .bv2-chips-track.is-multi .bv2-chip-full {
    display: none;
  }
  .bv2-chips-track.is-multi .bv2-chip-short {
    display: inline;
  }
  .bv2-chips-track .bv2-chip {
    padding: 0 14px;
    gap: 6px;
  }

  /* compact search: 40px magnifier (or query pill) in the row; the field is an overlay towards the left */
  .bv2-desk-search.is-compact {
    flex: 0 0 var(--pill-sm-h);
    min-width: var(--pill-sm-h);
    max-width: none;
    width: var(--pill-sm-h);
  }
  .bv2-desk-search.is-compact .bv2-dsearch-pill {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: var(--pill-sm-h);
    min-width: var(--pill-sm-h);
    border-radius: var(--radius-pill);
    background: var(--field);
    color: var(--text);
    transition: background-color 160ms var(--ease-out);
  }
  .bv2-desk-search.is-compact .bv2-dsearch-pill:hover {
    background: var(--field-hover);
  }
  .bv2-dsearch-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--pill-sm-h);
    min-width: var(--pill-sm-h);
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: none;
    color: inherit;
    font: inherit;
    font-size: var(--pill-sm-fs);
    cursor: pointer;
  }
  .bv2-dsearch-open:focus-visible,
  .bv2-dsearch-pill-x:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px var(--card-accent);
  }
  .bv2-dsearch-q,
  .bv2-dsearch-pill-x {
    display: none;
  }
  .bv2-desk-search.is-compact.has-query .bv2-dsearch-pill {
    right: auto;
    left: 0;
    width: max-content;
    max-width: 200px;
  }
  .bv2-desk-search.is-compact.has-query {
    flex: 0 1 190px;
    min-width: var(--pill-sm-h);
    width: auto;
    max-width: 190px;
  }
  .bv2-desk-search.is-compact.has-query .bv2-dsearch-pill {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .bv2-desk-search.is-compact.has-query .bv2-dsearch-open {
    flex: 1 1 auto;
    min-width: var(--pill-sm-h);
    padding: 0 4px 0 12px;
    justify-content: flex-start;
    overflow: hidden;
  }
  .bv2-desk-search.is-compact.has-query .bv2-dsearch-open svg {
    flex: none;
  }
  .bv2-desk-search.is-compact.has-query .bv2-dsearch-q {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bv2-desk-search.is-compact.has-query .bv2-dsearch-pill-x {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text-2);
    cursor: pointer;
  }
  .bv2-desk-search.is-compact.has-query .bv2-dsearch-pill-x:hover {
    background: color-mix(in srgb, var(--text) 10%, transparent);
    color: var(--text);
  }
  .bv2-desk-search.is-compact .bv2-dsearch-box {
    display: none;
  }
  .bv2-desk-search.is-compact.is-open .bv2-dsearch-pill {
    visibility: hidden;
  }
  .bv2-desk-search.is-compact.is-open .bv2-dsearch-box {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 40;
    display: flex;
    width: 300px;
    background: linear-gradient(var(--field-focus), var(--field-focus)), var(--bg-page);
    box-shadow: 0 0 0 2px var(--card-accent), 0 10px 28px rgba(10, 20, 12, 0.16);
  }
  :root[data-theme="dark"] .bv2-desk-search.is-compact.is-open .bv2-dsearch-box {
    box-shadow: 0 0 0 2px var(--card-accent), 0 10px 28px rgba(0, 0, 0, 0.5);
  }

  /* header row of the list sits where the count line was: ~20px under the toolbar */
  .bv2-list-head {
    margin-top: 8px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  /* tight tier: slightly denser pills so selects + search + 4 chips still share one row at 1024 */
  .bv2-toolbar {
    column-gap: 8px;
  }
  .bv2-toolbar .msel_trigger {
    gap: 6px;
    padding: 0 10px 0 14px;
  }
  .bv2-chips-track .bv2-chip {
    padding: 0 9px;
    gap: 4px;
  }
}

/* last resort (set by JS when even the 40px search icon cannot fit): chips wrap to their own right-aligned row */
@media (min-width: 1024px) {
  .bv2-toolbar.is-wrap {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .bv2-toolbar.is-wrap .bv2-chips-wrap {
    margin-left: auto;
  }
}

@media (max-width: 1023px) {
  /* the count line is gone visually (kept as a live region); the column label stays on the right */
  .bv2-list-head .bv2-list-col {
    margin-left: auto;
  }
}
/* ===== Round 19 - END ===== */
/* ===== Round 19b: /skole/ bottom - "O podacima" in two columns + two equal CTA cards ===== */
.bv2-about {
  display: grid;
  gap: 24px;
  margin-top: 56px;
  max-width: none;
}

.bv2-about-facts {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--radius-panel, 20px);
  background: var(--card-surface);
}

.bv2-about-fact {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
}

.bv2-about-fact dt {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
}

.bv2-about-fact dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.bv2-about-fact[hidden] {
  display: none;
}

.bv2-bottom-ctas {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.bv2-bottom-ctas .bv2-cta {
  margin: 0;
  max-width: none;
  border-radius: var(--radius-island);
}

.bv2-bottom-ctas .bv2-cta--tool {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px;
}

@media (min-width: 1024px) {
  .bv2-about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 72px;
  }
  .bv2-about-main p {
    max-width: 520px;
  }
  .bv2-bottom-ctas {
    gap: 24px;
    margin-top: 48px;
  }
}

/* ===== Round 20 footer - START =====
   More vertical room + V4-style footer reveal (clip-path curtain). The footer is fixed to the
   viewport bottom and clipped from the top; a spacer of the footer's height at the end of the
   content scrolls up and the clip uncovers the footer in step. Enabled by bodovi-v2-chrome.js only
   when the footer is shorter than 85% of the viewport (viewport >= 600px tall). */
.bv2-footer {
  --bv2-foot-gap: 120px;
  margin-top: var(--bv2-foot-gap);
  padding: 128px 0 64px;
}
.bv2-footer-inner {
  row-gap: 56px;
}
.bv2-footer-reveal-spacer {
  margin-top: var(--bv2-foot-gap, 120px);
  background: #133f1b;
  pointer-events: none;
}
.bv2-footer.is-revealing {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  margin-top: 0;
}
@media (max-width: 899px) {
  .bv2-footer {
    --bv2-foot-gap: 72px;
    padding: 80px 0 56px;
  }
  .bv2-footer-reveal-spacer {
    --bv2-foot-gap: 72px;
  }
  .bv2-footer-inner {
    row-gap: 36px;
  }
}
/* ===== Round 20 footer - END ===== */

/* ===== Round 20b: /skole/ desktop toolbar order (>=1024px) - START =====
   DOM order (= tab order) is now: chips, Okrug, Opstina, Poredaj, search. The search is last: a field that
   fills the remaining width, or (compact) a magnifier pinned to the right end whose field overlays leftwards. */
@media (min-width: 1024px) {
  .bv2-chips-wrap {
    margin: 0;
  }
  .bv2-desk-search {
    max-width: none;
  }
  .bv2-desk-search.is-compact {
    margin-left: auto;
  }
  .bv2-toolbar.is-wrap .bv2-chips-wrap {
    margin-left: 0;
  }
}
/* ===== Round 20b - END ===== */

/* ===== Mala matura page (/mala-matura/) - START =====
   Rendered by scripts/mala-matura.mjs. Neutral Bodovi sections use the shared surface tokens;
   the MaksimUm zones (.bv2-mm-pal--island / --action) use the V4 green island + lime accent in both themes.
   Self-contained: no shared rule above is changed. */
/* --- palette zones (Color Shift, public/lib/color-shift.mjs) ---
   Every [data-cs] zone declares --pal-bg/-fg/-dim. The neutral values are read from the theme tokens at
   :root so Light/Dark follow; JS blends --cs-* on <main> and the zones go transparent (.is-cs). Inside a
   zone the shared text/surface tokens are re-pointed at the zone palette, so cards keep contrast. */
:root {
  --mm-n-bg: var(--bg-page);
  --mm-n-fg: var(--text);
  --mm-n-dim: var(--text-2);
  --mm-n-s1: var(--surface-1);
  --mm-n-s2: var(--surface-2);
  --mm-n-s3: var(--surface-3);
}

.bv2-mm-pal {
  --pal-dark: 0;
}

/* Zone switch (MaksimUm V4 mechanism): public/lib/color-shift.mjs points --cs-* at the current zone's
   palette; these registered properties transition with V4's 0.7s --ease-in-out. */
@property --cs-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

@property --cs-fg {
  syntax: "<color>";
  inherits: true;
  initial-value: #232623;
}

@property --cs-dim {
  syntax: "<color>";
  inherits: true;
  initial-value: #5c615d;
}

/* surface ramp of the current zone (card, field/track, hover) so neutral zones keep the warm ramp while blending */
@property --cs-s1 {
  syntax: "<color>";
  inherits: true;
  initial-value: #f2f1ec;
}

@property --cs-s2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #e9e8e1;
}

@property --cs-s3 {
  syntax: "<color>";
  inherits: true;
  initial-value: #deddd7;
}

.bv2-mm-main {
  display: block;
  background: var(--cs-bg, transparent);
}

.bv2-mm-main.is-cs,
html.mm-cs {
  transition: --cs-bg 700ms var(--ease-in-out), --cs-fg 700ms var(--ease-in-out), --cs-dim 700ms var(--ease-in-out),
    --cs-s1 700ms var(--ease-in-out), --cs-s2 700ms var(--ease-in-out), --cs-s3 700ms var(--ease-in-out);
}

@media (prefers-reduced-motion: reduce) {
  .bv2-mm-main.is-cs,
  html.mm-cs {
    transition: none;
  }
}

/* floating dock inverts over dark zones, as on V4 */
html.is-dark .bv2-dock-pill {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: inset 0 0 0 1px rgba(19, 63, 27, 0.12), 0 10px 32px rgba(0, 0, 0, 0.18);
}

html.is-dark .bv2-dock .bv2-wordmark,
html.is-dark .bv2-dock .bv2-nav a,
html.is-dark .bv2-dock .bv2-nav a:hover,
html.is-dark .bv2-dock .bv2-nav a[aria-current="page"],
html.is-dark .bv2-dock-pill button {
  color: var(--ink);
}

html.is-dark .bv2-dock .bv2-nav a:hover,
html.is-dark .bv2-dock-pill button {
  background: rgba(19, 63, 27, 0.08);
}

.bv2-mm-main + .bv2-footer {
  margin-top: 0;
}

/* The final zone flows straight into the footer: the reveal spacer (inserted by bodovi-v2-chrome.js
   between <main> and the footer) follows the current zone colour (the --cs-bg set on <html>) and has no gap, so no neutral strip shows
   while the dark footer is uncovered. */
.bv2-mm-main + .bv2-footer-reveal-spacer {
  margin-top: 0;
  background: var(--cs-bg, var(--action));
}

.bv2-mm-pal {
  --pal-bg: var(--mm-n-bg);
  --pal-fg: var(--mm-n-fg);
  --pal-dim: var(--mm-n-dim);
  --pal-s1: var(--mm-n-s1);
  --pal-s2: var(--mm-n-s2);
  --pal-s3: var(--mm-n-s3);
  --t-bg: var(--cs-bg, var(--pal-bg));
  --t-fg: var(--cs-fg, var(--pal-fg));
  --t-dim: var(--cs-dim, var(--pal-dim));
  --t-s1: var(--cs-s1, var(--pal-s1));
  --t-s2: var(--cs-s2, var(--pal-s2));
  --t-s3: var(--cs-s3, var(--pal-s3));
  --text: var(--t-fg);
  --text-2: var(--t-dim);
  --card-surface: var(--t-s1);
  --field: var(--t-s2);
  --field-hover: var(--t-s3);
  background: var(--pal-bg);
  color: var(--t-fg);
}

.bv2-mm-main.is-cs .bv2-mm-pal {
  background: transparent;
}

.bv2-mm-pal--action {
  --pal-dark: 1;
  --pal-bg: var(--action);
  --pal-fg: #fff;
  --pal-dim: #d6e8d9;
  /* green zones: surfaces are the zone colour with white mixed in (unchanged from before Round 25) */
  --pal-s1: color-mix(in srgb, var(--pal-fg) 5.5%, var(--pal-bg));
  --pal-s2: color-mix(in srgb, var(--pal-fg) 7%, var(--pal-s1));
  --pal-s3: color-mix(in srgb, var(--pal-fg) 10%, var(--pal-s1));
}

.bv2-mm-pal--first {
  padding-bottom: 88px;
}

/* --- hero: shared pieces --- */
.bv2-mm-hero {
  position: relative;
}

/* sizes and wrapping follow V4's .mhs (title clamp / balance, lead max-width + pretty wrap) */
.bv2-mm-hero h1 {
  max-width: 13ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.375rem, 5.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* desktop: "Мала матура" / "2027" on two lines, same weight and size; narrower layouts wrap naturally */
@media (min-width: 1024px) {
  .mm-h1-year {
    display: block;
  }
}
@media (max-width: 1023px) {
  .bv2-mm-hero h1 {
    max-width: none;
  }
}

.bv2-mm-lead {
  max-width: 30em;
  margin-top: 28px;
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.45;
  text-wrap: pretty;
  color: var(--text-2);
}

.mm-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin: 32px 0 0;
}

.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--pill-lg-h);
  padding: 0 var(--pill-lg-px);
  border-radius: var(--radius-pill);
  font-size: var(--pill-lg-fs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 250ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.mm-btn--primary {
  background: var(--action);
  color: #fff;
}

.mm-btn--primary:hover,
.mm-btn--primary:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--action) 28%, transparent);
}

.mm-btn--secondary {
  background: var(--field);
  color: var(--text);
}

.mm-btn--secondary:hover,
.mm-btn--secondary:focus-visible {
  background: var(--field-hover);
}

.mm-pic,
.mm-pic img {
  display: block;
  width: 100%;
}

.mm-pic img {
  height: 100%;
  object-fit: cover;
}

/* --- split hero --- */
.bv2-mm-hero .mm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  column-gap: 72px;
  align-items: center;
  padding-top: 88px;
}

.mm-copy {
  align-self: center;
}

.mm-mask {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-panel);
  background: var(--card-surface);
  isolation: isolate;
}

.mm-mask .mm-pic {
  position: absolute;
  inset: -32px 0;
  width: 100%;
  height: calc(100% + 64px);
}

.mm-mask .mm-pic img {
  height: 100%;
  will-change: transform;
}

html.mm-anim .mm-mask {
  clip-path: inset(100% 0 0 0 round var(--radius-panel));
}

html.mm-anim .mm-mask img {
  transform: scale(1.06);
}

.bv2-mm-sec {
  padding-top: 88px;
}

.bv2-mm-sec--rel {
  padding-top: 56px;
}

.bv2-mm-sec h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.bv2-mm-sec h2.bv2-mm-h-sm {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.bv2-mm-sub {
  max-width: 680px;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}

.bv2-mm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
}

.bv2-mm-source {
  max-width: 720px;
  margin-top: 20px;
}

.bv2-mm-source a {
  color: var(--action-text);
}

/* --- what is on the exam --- */

.bv2-mm-sum {
  display: flex;
  align-items: center;
  gap: 16px 40px;
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-panel);
  background: var(--brand-soft);
}

.bv2-mm-sum-formula {
  flex: none;
  font-family: var(--font-numeric);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.bv2-mm-sum p + p {
  margin-top: 12px;
}

.bv2-mm-sum p {
  font-size: 16px;
  line-height: 1.55;
}

/* --- calendar --- */

/* --- how to prepare --- */

/* --- MaksimUm band --- */
.bv2-mm-pal--action {
  padding-top: 88px;
}

.bv2-mm-pal--action {
  padding-bottom: 88px;
}

.bv2-mm-pal--action h2 {
  font-family: var(--font-display);
  color: var(--text);
}

.bv2-mm-pal--action a:focus-visible {
  outline-color: #fff;
}

.bv2-mm-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
}

.bv2-mm-logo {
  display: block;
  flex: none;
  width: 84px;
  height: auto;
}

.bv2-mm-intro-p {
  max-width: 600px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}

.bv2-mm-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pill-gap);
  margin: 32px 0 0;
}

.bv2-mm-intro-photo {
  overflow: hidden;
  border-radius: var(--radius-island);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.bv2-mm-intro-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- related --- */

/* --- tablet and below --- */
@media (max-width: 1023px) {
  .bv2-mm-hero .mm-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 20px;
  }
  .mm-copy {
    align-self: stretch;
  }
  .mm-copy {
    order: 0;
  }
  .mm-media-a {
    order: 1;
    margin-top: 32px;
  }
  
  .mm-mask {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-panel);
  }
  html.mm-anim .mm-mask {
    clip-path: inset(100% 0 0 0 round 16px);
  }
  
  
  
  
  
  
  
  
  
  
}

/* --- mobile and small tablet --- */
@media (max-width: 899px) {
  .bv2-mm-lead {
    font-size: 18px;
  }
  
  .bv2-mm-sec {
    padding-top: 56px;
  }
  .bv2-mm-sec h2 {
    font-size: 28px;
  }
  .bv2-mm-sub {
    font-size: 18px;
  }
  .bv2-mm-sum {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .bv2-mm-pal--first {
    padding-bottom: 56px;
  }
  .bv2-mm-pal--action {
    padding-top: 56px;
  }
  .bv2-mm-pal--action {
    padding-bottom: 56px;
  }
  
  .bv2-mm-intro-photo img {
    aspect-ratio: 4 / 3;
    object-position: 50% 30%;
  }
  
  
}

@media (max-width: 599px) {
  
  .bv2-mm-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bv2-mm-cta-row a {
    justify-content: space-between;
  }
  .bv2-mm-logo {
    width: 72px;
  }
}
/* ===== Mala matura page (/mala-matura/) - END ===== */

/* ==== Round 21: compact expanded row on desktop (Bojan, 20.11.2026) ====
   One line: "Последњи упис 48,66" (label + value inline), extra cells inline, school link right. */
@media (min-width: 1024px) {
  .bv2-rows .bv2-row-detail:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 10px;
    padding-bottom: 14px;
  }
  .bv2-rows .bv2-row-detail .bv2-detail-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 32px;
    margin: 0;
  }
  .bv2-rows .bv2-row-detail .bv2-detail-cell {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .bv2-rows .bv2-row-detail .bv2-detail-cell dt { margin: 0; }
  .bv2-rows .bv2-row-detail .bv2-detail-cell dd { margin: 0; }
  .bv2-rows .bv2-row-detail .bv2-row-link {
    margin: 0 0 0 auto;
    flex: none;
    white-space: nowrap;
  }
}

/* ===== Round 22 mobile: /skole/ polish below 1024px + homepage FAQ italics - START ===== */
:root {
  --chev-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23666b67' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --chev-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2397a89a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* location pill caret = the same 16px chevron as the desktop Morphing Select pills */
.bv2-loc-caret {
  flex: none;
  display: block;
  width: 16px;
  height: 16px;
  color: var(--text-2);
}

@media (max-width: 1023px) {
  /* 1. chips: short labels when there is a score; horizontally scrollable with a right-edge fade */
  .bv2-chips-track.is-multi .bv2-chip-full {
    display: none;
  }
  .bv2-chips-track.is-multi .bv2-chip-short {
    display: inline;
  }
  .bv2-chips {
    overscroll-behavior-x: contain;
  }
  .bv2-chips.is-fade {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  }

  /* 2. the standalone "Бодови при последњем упису" line is gone; the first group header carries a small label */
  .bv2-list-col-full {
    display: none;
  }
  .bv2-list-head {
    margin-top: 8px;
    padding: 0;
  }
  .bv2-list-head .bv2-list-col {
    margin-left: auto;
    font-size: 13px;
    line-height: 1;
    padding-right: 1px;
  }
  .bv2-list-head:has(+ .bv2-results[data-grouped="1"]) {
    margin-top: 0;
  }
  .bv2-list-head:has(+ .bv2-results[data-grouped="1"]) .bv2-list-col {
    display: none;
  }
  .bv2-group-head {
    justify-content: flex-start;
    gap: 6px;
  }
  .bv2-group-n {
    font-size: 13px;
  }
  .bv2-group-n::before {
    content: "\00b7\00a0";
  }
  .bv2-group-pts {
    margin-left: auto;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
  }

  /* 3. sheet selects: same chevron as the desktop pills, no native arrow */
  .bv2-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: var(--chev-url);
    background-size: 16px 16px;
    background-position: right 14px center;
    background-repeat: no-repeat;
    padding: 0 40px 0 var(--pill-sm-px);
  }

  /* 4. rows: one rhythm, 8px between cards, 16px side padding, groups 24px apart */
  .bv2-rows {
    gap: 8px;
  }
  .bv2-row-btn {
    padding: 14px 16px;
  }
  .bv2-group-head {
    margin: 20px 0 10px;
  }
  .bv2-list-head + .bv2-results > .bv2-rows,
  .bv2-list-head + .bv2-results > .bv2-group:first-child .bv2-group-head {
    margin-top: 12px;
  }
  .bv2-results > .bv2-rows {
    margin-top: 12px;
  }
}
@media (min-width: 1024px) {
  .bv2-group-pts,
  .bv2-list-col-short {
    display: none;
  }
}

/* homepage FAQ questions: Manument Italic, regular weight, same size */
.bv2-faq .bv2-faq-item summary,
.bv2-faq .macc_trigger {
  font-style: italic;
  font-weight: 400;
}

/* ---- /kalendar-upisa/: compact MaksimUm card under the "next" island; archive at the end of the timeline ---- */
.bv2-cal-aside {
  gap: 24px; /* clear air between the two green blocks */
}
.bv2-cal-timeline .bv2-archive {
  margin-top: 28px;
}

/* homepage FAQ: 60 / 40 on desktop (accordion left, MaksimUm card right, top-aligned with the first item);
   stacked below 1024px (FAQ first, then the card) */
.bv2-faq-cta {
  margin-top: 32px;
}
@media (min-width: 1024px) {
  .bv2-faq .bv2-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: start;
  }
  .bv2-faq .bv2-faq-grid > h2 {
    grid-column: 1;
    grid-row: 1;
  }
  .bv2-faq .bv2-faq-list {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }
  .bv2-faq-cta {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch; /* the sticky card travels along the whole accordion column */
    margin-top: 14px;    /* = the list's top margin: card top lines up with the first item */
  }
}
/* archive summary: the focus ring follows the rounded card and shows for keyboard focus only */
.bv2-archive summary {
  border-radius: var(--radius-panel);
}
.bv2-archive summary:focus {
  outline: none;
}
.bv2-archive summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.bv2-archive summary:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
@media (max-width: 899px) {
  .bv2-cal-timeline .bv2-archive {
    order: initial;
    margin-top: 24px;
  }
}
/* ===== Round 22 mobile - END ===== */

/* ===== Round 24: shared MaksimUm CTA (design O2, Figma MMPZqVCOpXIym1bzq07iGS 1446:1087 / 1446:1098) - START =====
   One design, three contexts via mmcta(): card (home FAQ column), compact (calendar sidebar), wide (/skole/ bottom).
   Cream card, 16:9 photo first, text, then a row with the green pill (left) and the colour logo (right).
   Wide >=1024px: text column left (logo on top), 4:3 photo right. Dark mode: dark cream surface + white logo. */
:root {
  --mm-cream: var(--bg-subtle);
  --mm-green: #206b2c;
}
/* Dark mode keeps the same light cream card with dark text and the colour logo (Bojan, 20.11.2026): no inversion.
   In light mode the cream is surface-1 (--bg-subtle); in dark mode --bg-subtle is a dark surface, so pin the cream. */
:root[data-theme="dark"] { --mm-cream: #f2f1ec; }
:root:not([data-theme="light"]) { --mm-cream: #f2f1ec; }

.bv2-cta.bv2-cta--mm {
/* pin the light palette inside the card in both themes */
--text: #232623;
--text-2: #5c615d;
color-scheme: light;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
gap: 0;
margin: 0;
padding: 20px 20px 32px;
overflow: hidden;
border: 0;
border-radius: var(--radius-island);
background: var(--mm-cream);
color: var(--text);
}

.bv2-cta-mm-photo {
flex: none;
margin: 0;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: var(--radius-panel);
}
.bv2-cta-mm-photo picture {
display: block;
width: 100%;
height: 100%;
}
.bv2-cta-mm-photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}

.bv2-cta-mm-body {
display: flex;
flex: 1 1 auto;
flex-direction: column;
align-items: flex-start;
padding: 28px 16px 0;
}

.bv2-cta.bv2-cta--mm .bv2-cta-title {
margin: 0;
color: var(--text);
font-size: 34px;
font-weight: 700;
line-height: 1.12;
letter-spacing: -0.015em;
}
.bv2-cta.bv2-cta--mm .bv2-cta-text {
margin: 14px 0 0;
color: var(--text-2);
font-size: 18px;
line-height: 1.5;
}

.bv2-cta-mm-actions {
display: flex;
flex-wrap: nowrap;
align-items: center;
align-self: stretch;
justify-content: space-between;
gap: 16px;
margin-top: auto;
padding-top: 28px;
}
.bv2-cta.bv2-cta--mm a.bv2-cta-pill {
flex: none;
height: 56px;
padding: 0 8px 0 28px;
background: var(--mm-green);
color: #fff;
font-size: 17px;
font-weight: 600;
white-space: nowrap;
}
.bv2-cta.bv2-cta--mm a.bv2-cta-pill:focus-visible {
outline: 2px solid var(--mm-green);
outline-offset: 3px;
}
.bv2-cta.bv2-cta--mm .bv2-cta-pill-icon {
background: #fff;
color: var(--mm-green);
}

/* logo: colour on cream, white on the dark surface */
.bv2-cta-mm-logo {
flex: none;
display: block;
width: auto;
height: 64px;
margin: 0;
}
.bv2-cta-mm-logo--white {
display: none;
}

/* compact (calendar sidebar): same structure scaled down, logo above the heading so the pill label never wraps */
.bv2-cta.bv2-cta--mm-compact {
padding: 16px 16px 24px;
border-radius: var(--radius-island);
}
.bv2-cta--mm-compact .bv2-cta-mm-photo {
border-radius: var(--radius-panel);
}
.bv2-cta--mm-compact .bv2-cta-mm-body {
padding: 20px 8px 0;
}
.bv2-cta.bv2-cta--mm-compact .bv2-cta-title {
font-size: 24px;
}
.bv2-cta.bv2-cta--mm-compact .bv2-cta-text {
margin-top: 10px;
font-size: 16px;
}
.bv2-cta--mm-compact .bv2-cta-mm-actions {
display: contents;
}
.bv2-cta--mm-compact .bv2-cta-mm-logo {
order: -1;
height: 48px;
margin: 0 0 16px;
}
.bv2-cta--mm-compact a.bv2-cta-pill {
margin-top: 24px;
}
.bv2-cta.bv2-cta--mm-compact a.bv2-cta-pill {
height: 52px;
padding-left: 22px;
font-size: 15.5px;
}

/* wide, >=1024px: text left, 4:3 photo right */
@media (min-width: 1024px) {
.bv2-cta.bv2-cta--mm-wide {
  flex-direction: row;
  align-items: center;
  gap: clamp(32px, 4.5vw, 56px);
  padding: 24px 24px 24px clamp(36px, 4.5vw, 56px);
}
.bv2-cta--mm-wide .bv2-cta-mm-photo {
  order: 2;
  flex: 0 1 560px;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-panel);
}
.bv2-cta--mm-wide .bv2-cta-mm-body {
  flex: 1 1 340px;
  min-width: 0;
  padding: 0;
}
.bv2-cta--mm-wide .bv2-cta-mm-actions {
  display: contents;
}
.bv2-cta--mm-wide .bv2-cta-mm-logo {
  order: -1;
  height: 88px;
  margin: 0 0 40px;
}
.bv2-cta.bv2-cta--mm-wide .bv2-cta-title {
  max-width: 500px;
  font-size: 40px;
  line-height: 1.1;
}
.bv2-cta.bv2-cta--mm-wide .bv2-cta-text {
  max-width: 480px;
  font-size: 18px;
}
.bv2-cta--mm-wide a.bv2-cta-pill {
  margin-top: 24px;
}
}

/* phones: card-like sizes */
@media (max-width: 599px) {
  .bv2-cta.bv2-cta--mm {
    padding: 16px 16px 28px;
    border-radius: var(--radius-island);
  }
  .bv2-cta-mm-photo {
    border-radius: var(--radius-panel);
  }
  .bv2-cta-mm-body {
    padding: 22px 8px 0;
  }
  .bv2-cta.bv2-cta--mm .bv2-cta-title {
    font-size: 28px;
  }
  .bv2-cta.bv2-cta--mm .bv2-cta-text {
    font-size: 16px;
  }
  /* too narrow for pill + logo side by side: logo moves above the heading */
  .bv2-cta-mm-actions {
    display: contents;
  }
  .bv2-cta-mm-logo {
    order: -1;
    height: 52px;
    margin: 0 0 16px;
  }
  .bv2-cta.bv2-cta--mm a.bv2-cta-pill {
    margin-top: 24px;
    padding-left: 22px;
    font-size: 15.5px;
  }
}

/* ---- placement ---- */
.bv2-faq-cta {
  margin-top: 32px;
}
@media (min-width: 1024px) {
  .bv2-faq .bv2-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: start;
  }
  .bv2-faq .bv2-faq-grid > h2 {
    grid-column: 1;
    grid-row: 1;
  }
  .bv2-faq .bv2-faq-list {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }
  .bv2-faq-cta {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch; /* the sticky card travels along the whole accordion column */
    margin-top: 14px; /* = the list's top margin: card top lines up with the first item */
  }
  .bv2-faq-cta .bv2-cta.bv2-cta--mm {
    position: sticky;
    top: 96px;
  }
}
@media (max-width: 899px) {
  .bv2-cal-aside .bv2-cta.bv2-cta--mm-compact {
    order: 3;
    margin-top: 40px;
  }
}

/* ===== Round 24 - END ===== */

/* ===== Round 23 pills (V4) - START =====
   MaksimUm V4 pill hover: a circle (140% of the pill width) grows from the centre, behind the label.
   Applies to CTA pills only (tier L + arrow-circle buttons). Filter/control pills (selects, chips, search,
   theme button, nav, icon buttons) keep their simple hover.
   Per-button fill lives in --pill-fill. .bv2-pill-cta uses ::after because ::before is its "ready" fill. */
:root {
  --green-deep: #133f1b;
  --green-lime: #86c94c;
  --pill-grow: 0.45s;
}

.bv2-pill-cta,
a.bv2-cta-pill,
.bv2-doc a.bv2-cta-pill,
.bv2-doc .bv2-doc-cta,
.bv2-more,
.bv2-sheet-apply,
.mm-btn,
.bv2-score-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

a.bv2-cta-pill::before,
.bv2-doc .bv2-doc-cta::before,
.bv2-more::before,
.bv2-sheet-apply::before,
.mm-btn::before,
.bv2-score-pill::before,
.bv2-pill-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 140%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pill-fill, var(--green-deep));
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--pill-grow) var(--ease-out);
  pointer-events: none;
}

/* fills */
.bv2-pill-cta,
a.bv2-cta-pill,
.bv2-doc a.bv2-cta-pill { --pill-fill: var(--green-lime); } /* white pills on green surfaces */
.bv2-cta.bv2-cta--mm a.bv2-cta-pill { --pill-fill: var(--green-deep); } /* MaksimUm card: green pill -> deep green circle */
.bv2-doc .bv2-doc-cta,
.bv2-sheet-apply,
.mm-btn--primary { --pill-fill: var(--green-deep); }
.bv2-score-pill { --pill-fill: var(--action); } /* island-green pill -> action-green circle, white text kept (Round 25) */
.bv2-more,
.mm-btn--secondary { --pill-fill: var(--field-hover); }

/* rest colours: the doc CTA follows V4 .pill--primary (action green at rest, deep green on hover) */
.bv2-doc .bv2-doc-cta { background: var(--action); color: #fff; }

/* the old per-button hover (ring, bg swap) is replaced by the circle: the pill's own fill stays put */
a.bv2-cta-pill:hover,
a.bv2-cta-pill:focus-visible,
.bv2-doc a.bv2-cta-pill:hover,
.bv2-cta.bv2-cta--mm a.bv2-cta-pill:hover,
.bv2-cta.bv2-cta--mm a.bv2-cta-pill:focus-visible,
.mm-btn--primary:hover,
.mm-btn--primary:focus-visible {
  box-shadow: none;
}
.bv2-doc .bv2-doc-cta:hover,
.bv2-doc .bv2-doc-cta:focus-visible { background: var(--action); }
.bv2-sheet-apply:hover { background: var(--action); }
.bv2-more:hover { background: var(--field); }
.mm-btn--secondary:hover,
.mm-btn--secondary:focus-visible { background: var(--field); }

/* arrow circles: keep their own colour, the arrow nudges 3px right (V4 has no arrow circles) */
.bv2-cta-pill-icon svg,
.bv2-pill-icon svg { transition: transform var(--pill-grow) var(--ease-out); }
a.bv2-cta-pill:hover .bv2-cta-pill-icon { transform: none; }

/* keyboard: same fill as hover (the existing focus ring stays) */
a.bv2-cta-pill:focus-visible::before,
.bv2-doc .bv2-doc-cta:focus-visible::before,
.bv2-more:focus-visible::before,
.bv2-sheet-apply:focus-visible::before,
.mm-btn:focus-visible::before,
.bv2-score-pill:focus-visible::before,
.bv2-pill-cta:not(.is-disabled):focus-visible::after {
  transform: translate(-50%, -50%) scale(1);
}
a.bv2-cta-pill:focus-visible .bv2-cta-pill-icon svg,
.bv2-pill-cta:not(.is-disabled):focus-visible .bv2-pill-icon svg { transform: translateX(3px); }

/* pointer devices only: no sticky hover on touch */
@media (hover: hover) {
  a.bv2-cta-pill:hover::before,
.bv2-doc .bv2-doc-cta:hover::before,
.bv2-more:hover::before,
.bv2-sheet-apply:hover::before,
.mm-btn:hover::before,
.bv2-score-pill:hover::before,
.bv2-pill-cta:not(.is-disabled):hover::after {
    transform: translate(-50%, -50%) scale(1);
  }
  a.bv2-cta-pill:hover .bv2-cta-pill-icon svg,
  .bv2-pill-cta:not(.is-disabled):hover .bv2-pill-icon svg { transform: translateX(3px); }
}

/* reduced motion: no growth animation, the colour still changes */
@media (prefers-reduced-motion: reduce) {
  a.bv2-cta-pill::before,
.bv2-doc .bv2-doc-cta::before,
.bv2-more::before,
.bv2-sheet-apply::before,
.mm-btn::before,
.bv2-score-pill::before,
.bv2-pill-cta::after,
.bv2-cta-pill-icon svg,
.bv2-pill-icon svg {
    transition: none;
  }
}
/* ===== Round 23 pills (V4) - END ===== */

/* ===== Round 26 table: /skole/ desktop ruled list (>=1024px) - START =====
   No fill, no zebra. Rows sit on the page background, split by 1px --border hairlines (between rows,
   plus one on top of the first and one under the last row). Hover = soft --surface-1 pill (12px);
   expanded row + its detail line = ONE --surface-1 card (16px). Hairlines next to a pill/card are hidden. */
@media (min-width: 1024px) {
  .bv2-rows {
    gap: 0;
    overflow: visible;
    border-radius: 0;
    background: none;
  }
  .bv2-row {
    overflow: visible;
    border-radius: var(--radius-panel);
    background: transparent;
    transition: background-color 140ms var(--ease-out);
  }
  .bv2-row:nth-child(even) {
    background: transparent;
  }
  .bv2-row::after,
  .bv2-rows > .bv2-row:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    pointer-events: none;
    transition: opacity 140ms var(--ease-out);
  }
  .bv2-row::after {
    bottom: 0;
  }
  .bv2-rows > .bv2-row:first-child::before {
    top: 0;
  }
  .bv2-row-btn,
  .bv2-row-btn:hover {
    background: none;
  }
  .bv2-row:hover,
  .bv2-row:has(> .bv2-row-btn[aria-expanded="true"]) {
    background: var(--surface-1);
  }
  .bv2-row:has(> .bv2-row-btn[aria-expanded="true"]) {
    border-radius: var(--radius-panel);
  }
  /* hide this row's hairlines and the neighbours' ones that touch it */
  .bv2-row:hover::after,
  .bv2-row:hover::before,
  .bv2-row:has(> .bv2-row-btn[aria-expanded="true"])::after,
  .bv2-row:has(> .bv2-row-btn[aria-expanded="true"])::before,
  .bv2-row:has(+ .bv2-row:hover)::after,
  .bv2-row:has(+ .bv2-row > .bv2-row-btn[aria-expanded="true"])::after {
    opacity: 0;
  }
  .bv2-row:hover + .bv2-row::before,
  .bv2-row:has(> .bv2-row-btn[aria-expanded="true"]) + .bv2-row::before {
    opacity: 0;
  }
  /* header: same grid, same insets as the rows; "Бодови уписа" sits in the numbers cell */
  .bv2-cols:not([hidden]) {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) minmax(0, 1fr) 88px 72px;
    padding: 0 16px 0 20px;
  }
  .bv2-cols-pts {
    grid-column: 4;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
    justify-self: end;
  }
  /* breathing room around the ruled groups */
  .bv2-group-head {
    margin: 24px 0 8px;
  }
  .bv2-divider {
    margin: 20px 0 4px;
  }
  .bv2-textbtn {
    margin-top: 8px;
  }
}
/* ===== Round 26 table - END ===== */

/* ===== Round 26 chips: outlined paper active pill (all widths) - START =====
   No dark inverted fill. Active = --bg-raised paper (dark: #262c27 step) + 1.5px inset ring, so size never changes.
   Track stays 40px with 32px chips inside (flush with the 40px select pills). One chip (no score) = standalone 40px pill. */
.bv2-chips-track {
  --chip-ring: color-mix(in srgb, var(--text) 70%, transparent);
}
.bv2-chip-ind {
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1.5px var(--chip-ring);
}
.bv2-chips-track .bv2-chip {
  color: var(--text-2);
}
.bv2-chips-track .bv2-chip:hover:not(.is-active) {
  background: var(--surface-3);
}
.bv2-chips-track .bv2-chip.is-active,
.bv2-chips-track .bv2-chip.is-active:hover {
  background: transparent;
  color: var(--text);
  font-weight: 600;
}
.bv2-chips-track .bv2-chip.is-active .count {
  color: var(--text-2);
  opacity: 1;
  font-weight: 400;
}
.bv2-chips-track:not(.is-multi) {
  padding: 0;
  background: none;
}
.bv2-chips-track:not(.is-multi) .bv2-chip-ind {
  display: none;
}
.bv2-chips-track:not(.is-multi) .bv2-chip,
.bv2-chips-track:not(.is-multi) .bv2-chip.is-active,
.bv2-chips-track:not(.is-multi) .bv2-chip.is-active:hover {
  height: var(--pill-sm-h);
  padding: 0 var(--pill-sm-px);
  gap: 8px;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1.5px var(--chip-ring);
}
/* ===== Round 26 chips - END ===== */

/* ===== Round 26 CTA ready fill fix - START =====
   The "ready" white fill was a fixed 40px circle scaled x16 (640px): it only covered pills narrower than that,
   so the 896px-wide pill in the full-width score card (1024) and the left cap at 1440 stayed green.
   Now the fill is a pill-sized layer revealed by a clip-path circle growing from the arrow circle centre. */
.bv2-pill-cta::before {
  inset: 0;
  right: 0;
  top: 0;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: inherit;
  transform: none;
  clip-path: circle(0 at calc(100% - 28px) 50%);
  transition: clip-path 450ms var(--ease-out);
}
.bv2-pill-cta.is-ready::before {
  transform: none;
  clip-path: circle(200% at calc(100% - 28px) 50%);
}
/* ===== Round 26 CTA ready fill fix - END ===== */

/* ===== Round 26 direct-score panel ("Знам бодове") - START =====
   Heading + subheading + one large field, vertically centred in the space under the tabs
   (the card keeps matching the score card's height). */
#bv2-panel-direct:not([hidden]) {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bv2-direct {
  padding: 16px 0 8px;
}
.bv2-direct-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bv2-direct-sub {
  margin: 10px 0 28px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-2);
}
.bv2-field--direct {
  max-width: 420px;
}
.bv2-direct-wrap {
  position: relative;
}
.bv2-input--direct {
  width: 100%;
  height: 80px;
  padding: 0 88px 0 24px;
  border-radius: var(--radius-panel);
  font-size: 40px;
  font-weight: 700;
}
.bv2-direct-suffix {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--text-2);
  pointer-events: none;
}
@media (max-width: 639px) {
  .bv2-direct {
    padding: 8px 0 4px;
  }
  .bv2-direct-title {
    font-size: 24px;
  }
  .bv2-direct-sub {
    margin: 8px 0 20px;
    font-size: 16px;
  }
  .bv2-field--direct {
    max-width: none;
  }
  .bv2-input--direct {
    height: 72px;
    font-size: 36px;
  }
}
/* ===== Round 26 direct-score panel - END ===== */

/* ===== Round 27 mode toggle ("Знам бодове" / "Израчунај бодове") - START =====
   The calculator's two-tab control is gone. One tier-L secondary pill in the hero always offers the OTHER mode
   (filled --field, V4 circle hover in --surface-3). The calculator card swaps in place with a short crossfade. */
.bv2-intro-text {
  min-width: 0;
}
.bv2-mode-btn {
  appearance: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  align-self: flex-start;
  height: var(--pill-lg-h);
  margin-top: 16px;
  padding: 0 var(--pill-lg-px);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: var(--pill-lg-fs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bv2-mode-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 140%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface-3);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--pill-grow, 0.45s) var(--ease-out);
  pointer-events: none;
}
.bv2-mode-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.bv2-mode-icon svg {
  transition: transform var(--pill-grow, 0.45s) var(--ease-out);
}
.bv2-mode-btn[data-mode="direct"] .bv2-mode-ico-arrow,
.bv2-mode-btn:not([data-mode="direct"]) .bv2-mode-ico-fields {
  display: none;
}
.bv2-mode-btn:focus-visible {
  outline: 2px solid var(--card-accent, var(--action));
  outline-offset: 3px;
}
.bv2-mode-btn:focus-visible::before {
  transform: translate(-50%, -50%) scale(1);
}
.bv2-mode-btn:focus-visible .bv2-mode-ico-arrow {
  transform: translateX(3px);
}
@media (hover: hover) {
  .bv2-mode-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
  }
  .bv2-mode-btn:hover .bv2-mode-ico-arrow {
    transform: translateX(3px);
  }
}

/* hero row from 1024px: text left, button right, aligned to the intro block's bottom edge */
@media (min-width: 1024px) {
  .bv2-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
  .bv2-mode-btn {
    align-self: flex-end;
    margin-top: 0;
    margin-bottom: 4px;
  }
}
/* below 1024px: sits under the intro text, left-aligned, ~16px above the card */
@media (max-width: 1023px) {
  .bv2-intro {
    padding-bottom: 16px;
  }
}

/* from 1081px (card beside the score card) both panels share one grid cell, so the card (and the row under it) keeps one height in either mode */
@media (min-width: 1081px) {
.bv2-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding-top: 28px;
}
#bv2-panel-calc,
#bv2-panel-direct {
  grid-area: 1 / 1;
  min-width: 0;
}
#bv2-panel-calc[hidden],
#bv2-panel-direct[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
#bv2-panel-direct,
#bv2-panel-direct[hidden] {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}
}

/* calculator panel: the two groups stay together (fixed rhythm) and sit vertically centred in the card;
   spare height goes above/below, never as a big hole between the groups (Claude review, 20.11.2026) */
#bv2-panel-calc {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#bv2-panel-calc[hidden] {
  display: none;
}
@media (min-width: 1081px) {
  #bv2-panel-calc[hidden] {
    display: block !important;
  }
}
#bv2-panel-calc .bv2-group + .bv2-group {
  margin-top: 36px;
}
@media (min-width: 1081px) {
  .bv2-calc {
    padding-top: 28px;
    padding-bottom: 32px;
  }
}

/* crossfade ~0.25s (out 125ms, in 125ms); instant under reduced motion */
.bv2-calc.is-fading > #bv2-panel-calc,
.bv2-calc.is-fading > #bv2-panel-direct {
  opacity: 0;
  transition: opacity 125ms linear;
}
.bv2-calc.is-entering > #bv2-panel-calc:not([hidden]),
.bv2-calc.is-entering > #bv2-panel-direct:not([hidden]) {
  animation: bv2-mode-in 125ms linear;
}
@keyframes bv2-mode-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bv2-mode-btn::before,
  .bv2-mode-icon svg {
    transition: none;
  }
  .bv2-calc.is-fading > #bv2-panel-calc,
  .bv2-calc.is-fading > #bv2-panel-direct {
    transition: none;
  }
  .bv2-calc.is-entering > #bv2-panel-calc:not([hidden]),
  .bv2-calc.is-entering > #bv2-panel-direct:not([hidden]) {
    animation: none;
  }
}

/* score card in direct mode: only the total and the CTA, centred, bars hidden */
.bv2-score-card.is-direct {
  justify-content: center;
}
.bv2-score-card.is-direct .bv2-meters {
  display: none;
}
.bv2-score-card.is-direct .bv2-score-status {
  min-height: 0;
  margin-top: 8px;
  margin-bottom: 8px;
}
/* single intro text for all widths: 16px under 640px keeps it to 3 lines at 390 */
@media (max-width: 639px) {
  .bv2-intro .bv2-lead {
    font-size: 16px;
  }
}
/* ===== Round 27 mode toggle - END ===== */

/* ===== Round 28 hero + top cards - START =====
   Status line is screen-reader only (aria-live kept). Both cards size to content and stay equal height.
   Hero sits on the same 2-column grid as the cards (calculator column | 400px score column) from 1081px. */
.bv2-score-status.bv2-sr-only {
  min-height: 0;
  margin: 0;
}
@media (min-width: 1024px) {
  .bv2-intro {
    padding-top: 80px;
    padding-bottom: 52px;
  }
  .bv2-intro .bv2-lead {
    margin-top: 20px;
  }
}
@media (min-width: 1024px) and (max-width: 1080px) {
  .bv2-intro {
    display: block;
  }
  .bv2-mode-btn {
    margin: 16px 0 0;
  }
}
@media (min-width: 1081px) {
  .bv2-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    column-gap: 24px;
    align-items: start;
  }
  .bv2-intro .bv2-mode-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    margin: 0;
  }
  .bv2-tool-row .bv2-calc {
    padding: 32px;
  }
  #bv2-panel-calc {
    justify-content: flex-start;
  }
  .bv2-tool-row .bv2-score-card {
    padding: 28px;
    justify-content: center;
  }
  .bv2-score-card .bv2-score-row {
    margin: 8px 0 16px;
  }
  .bv2-score-card .bv2-score-digits {
    font-size: 68px;
  }
  .bv2-score-card .bv2-meters {
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
  }
  .bv2-score-card .bv2-meter-label {
    margin-bottom: 6px;
  }
  .bv2-score-card .bv2-pill-cta {
    margin-top: 0;
    height: var(--pill-lg-h);
  }
  .bv2-score-card.is-direct .bv2-score-row {
    margin-bottom: 20px;
  }
}
/* ===== Round 28 hero + top cards - END ===== */

/* ===== Round 29 journey - START =====
   "Пут до уписа": more air, pill CTA (same component as the hero "Знам бодове" toggle), balanced lead,
   wider column gap, dots on the left edge of their column (= where the date/title/description text starts). */
.bv2-journey {
  --j-gap: 44px;
  padding-top: 120px;
  padding-bottom: 112px;
}
.bv2-journey .bv2-section-head {
  align-items: flex-end;
  gap: 24px 40px;
}
.bv2-journey .bv2-section-head p {
  margin-top: 16px;
  max-width: 42ch;
  text-wrap: pretty;
  text-wrap: balance;
}
.bv2-journey .bv2-journey-cta {
  align-self: flex-end;
  margin: 0 0 4px;
  text-decoration: none;
}
.bv2-journey .bv2-rail {
  margin-top: 56px;
  column-gap: var(--j-gap);
}
.bv2-journey .bv2-phase {
  padding: 32px 0 0;
}
.bv2-journey .bv2-ph-status {
  margin-bottom: 8px;
}
.bv2-journey .bv2-ph-desc {
  margin-top: 10px;
  line-height: 1.5;
}
.bv2-journey .bv2-ph-dot,
.bv2-journey .bv2-phase:not(.is-next) .bv2-ph-dot {
  left: 0;
  margin-left: 0;
}
.bv2-journey .is-next .bv2-ph-dot {
  left: 0;
  margin-left: 0;
}
/* progress fill: rail start -> the next step's dot (column i starts at i * (100% + gap) / 5) */
.bv2-journey .bv2-rail::after {
  width: 0;
}
.bv2-journey .bv2-rail:has(.bv2-phase:nth-child(2).is-next)::after {
  width: calc((100% + var(--j-gap)) / 5);
}
.bv2-journey .bv2-rail:has(.bv2-phase:nth-child(3).is-next)::after {
  width: calc(2 * (100% + var(--j-gap)) / 5);
}
.bv2-journey .bv2-rail:has(.bv2-phase:nth-child(4).is-next)::after {
  width: calc(3 * (100% + var(--j-gap)) / 5);
}
.bv2-journey .bv2-rail:has(.bv2-phase:nth-child(5).is-next)::after {
  width: calc(4 * (100% + var(--j-gap)) / 5);
}
.bv2-journey .bv2-journey-source {
  margin-top: 40px;
}
@media (max-width: 1099px) {
  .bv2-journey { --j-gap: 28px; }
}
@media (max-width: 899px) {
  .bv2-journey { --j-gap: 20px; }
}
@media (max-width: 720px) {
  .bv2-journey {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .bv2-journey .bv2-section-head p {
    margin-top: 12px;
    max-width: 36ch;
  }
  .bv2-journey .bv2-journey-cta {
    order: 2;
    align-self: flex-start;
    margin: 24px 0 0;
  }
  .bv2-journey .bv2-rail {
    order: 3;
    margin-top: 32px;
    column-gap: 0;
  }
  .bv2-journey .bv2-phase,
  .bv2-journey .bv2-phase:not(.is-next) {
    padding: 0 0 20px 32px;
  }
  .bv2-journey .bv2-phase:last-child {
    padding-bottom: 0;
  }
  .bv2-journey .bv2-ph-status {
    margin-bottom: 0;
  }
  .bv2-journey .bv2-ph-dot,
  .bv2-journey .bv2-rail .bv2-phase:not(.is-next) .bv2-ph-dot {
    left: 8px;
    margin: 0 0 0 -5px;
  }
  .bv2-journey .bv2-rail .bv2-phase.is-next .bv2-ph-dot {
    left: 8px;
    margin-left: -8px;
  }
  .bv2-journey .bv2-archive-note {
    order: 4;
  }
  .bv2-journey .bv2-journey-source {
    order: 5;
    margin-top: 24px;
  }
}
/* ===== Round 29 journey - END ===== */

/* ===== Round 30 direct-mode spacing (Bojan, 20.11.2026) - START =====
   "Знам бодове": double the space heading/desc -> field (28 -> 56) and number -> CTA in the score card (20 -> 40),
   so the groups fill the cards and leave less empty space above/below. */
.bv2-direct-sub {
  margin-bottom: 56px;
}
@media (max-width: 640px) {
  .bv2-direct-sub {
    margin-bottom: 36px;
  }
}
@media (min-width: 1081px) {
  .bv2-score-card.is-direct .bv2-score-row {
    margin-bottom: 40px;
  }
}
/* ===== Round 30 direct-mode spacing - END ===== */

/* ===== Round 31 green secondary pills (Bojan, 20.11.2026) - START =====
   Hero mode toggle ("Знам бодове" / "Израчунај бодове") and the journey "Погледај календар уписа" pill (same component):
   V4 primary green with white text; hover circle = deep island green. Same in light and dark. */
.bv2-mode-btn {
  background: var(--action);
  color: #fff;
}
.bv2-mode-btn::before {
  background: var(--island);
}
/* ===== Round 31 green secondary pills - END ===== */

/* ===== Round 32 table columns (Bojan, 20.11.2026) - START =====
   Smer gets the most room; Општина narrower; "Бодови уписа" = width of its label, flush right (last column).
   With a score the delta sits just left of the points. Focus ring follows the row radius, keyboard only. */
@media (min-width: 1024px) {
  .bv2-row-btn,
  .bv2-cols:not([hidden]) {
    grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.3fr) minmax(0, 0.7fr) 64px 104px;
    column-gap: 20px;
  }
  .bv2-row-delta {
    grid-area: 1 / 4;
  }
  .bv2-row-thr {
    grid-area: 1 / 5;
  }
  .bv2-cols-pts {
    grid-column: 5;
  }
  .bv2-row-btn:focus {
    outline: none;
  }
  .bv2-row-btn:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
    border-radius: var(--radius-panel);
  }
}
/* ===== Round 32 table columns - END ===== */

/* ===== Round 33 calendar - START =====
   /kalendar-upisa/: timeline scaled one type step up (Bojan, 20.11.2026) + sidebar no longer clipped.
   Rail runs through the dot centres: rail x = 10px; dot centre y = 14px (centre of the date pill). */
.bv2-doc .bv2-timeline li,
.bv2-timeline li {
  padding: 0 0 64px 44px;
}
.bv2-timeline li:last-child {
  padding-bottom: 0;
}
.bv2-timeline li::before {
  left: 9px;
  top: 14px;
  bottom: -14px; /* ends at the centre of the next dot */
  width: 2px;
}
.bv2-tl-dot {
  left: 5px;
  top: 9px;
  width: 10px;
  height: 10px;
  z-index: 1;
}
.bv2-timeline li.is-next .bv2-tl-dot {
  left: 1px;
  top: 5px;
  width: 18px;
  height: 18px;
}
.bv2-tl-tag {
  padding: 3px 13px;
  font-size: 14px;
  line-height: 1.5;
}
.bv2-doc .bv2-tl-title {
  margin: 14px 0 0;
  max-width: 64ch;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.22;
}
.bv2-doc .bv2-tl-desc {
  margin: 12px 0 0;
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.55;
}
.bv2-doc .bv2-tl-source {
  margin: 16px 0 0;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.5;
}

/* sidebar: sticky only when both cards fit the viewport (green island + MaksimUm card ~ 760px + 96px top);
   otherwise it scrolls normally with the page - never clipped */
.bv2-cal-aside {
  position: static;
  align-self: start;
  overflow: visible;
}
@media (min-width: 900px) and (min-height: 880px) {
  .bv2-cal-aside {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 719px) {
  .bv2-doc .bv2-timeline li,
  .bv2-timeline li {
    padding: 0 0 48px 38px;
  }
  .bv2-timeline li::before {
    top: 13px;
    bottom: -13px;
  }
  .bv2-tl-dot {
    left: 5px;
    top: 8px;
    width: 10px;
    height: 10px;
  }
  .bv2-timeline li.is-next .bv2-tl-dot {
    left: 2px;
    top: 5px;
    width: 16px;
    height: 16px;
  }
  .bv2-tl-tag {
    padding: 2px 12px;
    font-size: 13px;
  }
  .bv2-doc .bv2-tl-title {
    margin-top: 12px;
    font-size: 23px;
  }
  .bv2-doc .bv2-tl-desc {
    margin-top: 10px;
    font-size: 16px;
  }
  .bv2-doc .bv2-tl-source {
    margin-top: 12px;
    font-size: 13px;
  }
}
/* ===== Round 33 calendar - END ===== */

/* ===== Round 34 calendar copy - START =====
   /kalendar-upisa/ (Bojan, 20.11.2026): unconfirmed steps are not disabled (normal title contrast, only the date tag is muted);
   green rail only between confirmed dates, future dots neutral; confirmed date tag is the Pravilnik link; one sources line at the end. */
.bv2-timeline li.is-pending {
  opacity: 1;
}
.bv2-doc .bv2-timeline li.is-pending .bv2-tl-title,
.bv2-doc .bv2-timeline li .bv2-tl-title {
  color: var(--text);
}
.bv2-doc .bv2-timeline li .bv2-tl-desc {
  color: var(--text-2);
}
.bv2-timeline li .bv2-tl-tag,
.bv2-timeline li.is-pending .bv2-tl-tag {
  background: var(--field);
  color: var(--text-2);
}
.bv2-timeline li.is-next .bv2-tl-tag,
.bv2-timeline li.is-confirmed .bv2-tl-tag {
  background: var(--brand-soft);
  color: var(--action-text);
}
.bv2-tl-tag--link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.bv2-tl-tag--link:hover {
  text-decoration: underline;
}
.bv2-tl-tag--link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.bv2-timeline li::before,
.bv2-timeline li.is-next::before {
  background: var(--border-strong);
}
.bv2-timeline li.has-rail::before {
  background: var(--brand);
}
.bv2-timeline li .bv2-tl-dot,
.bv2-timeline li.is-pending .bv2-tl-dot {
  background: var(--border-strong);
}
.bv2-timeline li.is-next .bv2-tl-dot,
.bv2-timeline li.is-confirmed .bv2-tl-dot {
  background: var(--brand);
}
.bv2-cal-timeline .bv2-source {
  margin-top: 28px;
}
/* ===== Round 34 calendar copy - END ===== */

/* ===== Round 35 expanded row: full names (Bojan, 20.11.2026) - START =====
   When a row is opened, Смер / Школа / Општина show their full text (wrapping to 2+ lines) instead of an ellipsis. */
@media (min-width: 1024px) {
  .bv2-row-btn[aria-expanded="true"] {
    align-items: start;
  }
  .bv2-row-btn[aria-expanded="true"] .bv2-row-name,
  .bv2-row-btn[aria-expanded="true"] .bv2-row-school,
  .bv2-row-btn[aria-expanded="true"] .bv2-row-muni {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
}
/* ===== Round 35 expanded row - END ===== */

/* ===== Round 36 expanded row tint (Bojan, 20.11.2026) - START =====
   The opened row needs more contrast than the hover: use the greener brand tint (light #ECEEDD / dark #1A2A1D),
   also while hovered. Plain hover stays the neutral --surface-1. */
@media (min-width: 1024px) {
  .bv2-row:has(> .bv2-row-btn[aria-expanded="true"]),
  .bv2-row:has(> .bv2-row-btn[aria-expanded="true"]):hover {
    background: var(--brand-soft);
  }
}
@media (max-width: 1023.98px) {
  .bv2-row:has(> .bv2-row-btn[aria-expanded="true"]) {
    background: var(--brand-soft);
  }
}
/* ===== Round 36 expanded row tint - END ===== */

/* ===== Round 37 gap between filled rows (Bojan, 20.11.2026) - START =====
   Adjacent opened (tinted) rows must not merge: 4px of air above/below every opened row. */
.bv2-row:has(> .bv2-row-btn[aria-expanded="true"]) {
  margin-block: 4px;
}
/* ===== Round 37 gap between filled rows - END ===== */

/* ===== Round 38 mobile row tint bug (Bojan, 20.11.2026) - START =====
   On touch, the sticky :hover painted the row button (--field) over the opened card's tint, so the top half
   looked different. The button never paints its own fill when the row is open, and hover fill only on real hover. */
.bv2-row-btn:hover {
  background: none;
}
@media (hover: hover) and (pointer: fine) {
  .bv2-row-btn:hover {
    background: var(--field);
  }
}
.bv2-row-btn[aria-expanded="true"],
.bv2-row-btn[aria-expanded="true"]:hover {
  background: none;
}
@media (min-width: 1024px) {
  .bv2-row-btn:hover {
    background: none;
  }
}
/* ===== Round 38 mobile row tint bug - END ===== */

/* ===== Round 39 icons without tiles (Bojan, 20.11.2026) - START =====
   Icons stand alone: no tinted square behind them. Glyph a bit larger, left-aligned with the text below. */
.bv2-icon-tile,
.bv2-guide:hover .bv2-icon-tile,
.bv2-guide:focus-within .bv2-icon-tile,
.bv2-doc .bv2-related a:hover .bv2-icon-tile,
.bv2-doc .bv2-related a:focus-visible .bv2-icon-tile {
  width: auto;
  height: auto;
  place-items: start;
  border-radius: 0;
  background: none;
}
.bv2-icon-tile svg {
  width: 32px;
  height: 32px;
}
@media (max-width: 899px) {
  .bv2-doc .bv2-related .bv2-icon-tile {
    width: auto;
    height: auto;
    border-radius: 0;
  }
  .bv2-doc .bv2-related .bv2-icon-tile svg {
    width: 24px;
    height: 24px;
  }
}
/* ===== Round 39 icons without tiles - END ===== */

/* ===== A2 QA fixes (2026-11-25) ===== */
/* Highlighted comparison card + max-points cell: text-2 on the card tint was 3.3:1 -> use full text colour */

/* Exam errors: on narrow screens each message spans the full width instead of wrapping to 3 lines in a third-width column */
@media (max-width: 560px) {
  .bv2-exams {
    grid-template-rows: auto auto;
    row-gap: 4px;
  }
  .bv2-exams > .bv2-field {
    display: contents;
  }
  .bv2-exams > .bv2-field:nth-child(1) > :not(.bv2-error) { grid-column: 1; }
  .bv2-exams > .bv2-field:nth-child(2) > :not(.bv2-error) { grid-column: 2; }
  .bv2-exams > .bv2-field:nth-child(3) > :not(.bv2-error) { grid-column: 3; }
  .bv2-exams > .bv2-field > .bv2-field-label { grid-row: 1; }
  .bv2-exams > .bv2-field > .bv2-input { grid-row: 2; }
  .bv2-exams > .bv2-field > .bv2-error {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 2px;
  }
}

/* 320px: long pill labels wrap instead of pushing the page wider; grid children may shrink */
@media (max-width: 420px) {
  a.bv2-cta-pill,
  .bv2-doc a.bv2-cta-pill {
    flex: 0 1 auto;
    max-width: 100%;
    height: auto;
    min-height: 56px;
    padding: 8px 8px 8px 20px;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
  }
  
}
/* ===== A2 QA fixes - END ===== */

/* ===== V4 alignment (2026-11-24) - START =====
   1. CTA pills: 48px / 24px / 16px medium, hug their text, no icons (docs/design/v4-pill-system-2026-11-24.md).
      Chips / filters / switches: 40px / 15px (--pill-sm-*).
   2. Manument metrics 79/21 live in fonts/fonts.css (Almono stays 83/17).
   3. Headings: Manument ExtraBold Italic for H1/H2, V4 --fs-hero and .mm-h2 clamps; smaller inside the tool. */
:root {
  --fs-hero: clamp(36px, 3.9vw, 56px); /* one page-H1 size site-wide (= home calculator H1) */
  --fs-h2: clamp(36px, 3.9vw, 56px);
  --fs-h2-tool: clamp(26px, 2.4vw, 32px);
  --tracking-heading: -0.01em;
}

body.bodovi-v2 :is(a.bv2-cta-pill,
.bv2-doc a.bv2-cta-pill,
.bv2-cta.bv2-cta--mm a.bv2-cta-pill,
.bv2-cta.bv2-cta--mm-compact a.bv2-cta-pill,
.bv2-cta--mm-wide a.bv2-cta-pill,
.bv2-pill-cta,
.bv2-doc .bv2-doc-cta,
.bv2-sheet-apply,
.mm-btn) {
  height: var(--control-cta-height, 48px);
  min-height: 0;
  padding: 0 24px;
  justify-content: center;
  gap: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
body.bodovi-v2 { --control-cta-height: 48px; --control-chip-height: 40px; }
/* "show more" and empty-state actions are secondary controls: chip tier */
body.bodovi-v2 .bv2-more {
  height: var(--control-chip-height);
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
}
.bv2-pill-cta .bv2-pill-label { text-align: center; }
/* MaksimUm card: pill + logo */
.bv2-cta-mm-actions { flex-wrap: wrap; row-gap: 16px; }

/* headings: H1 */
body.bodovi-v2 :is(.bv2-doc h1, .bv2-mm-hero h1, .bv2-intro h1, .bv2-skole-h1) {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  letter-spacing: var(--tracking-heading);
}
body.bodovi-v2 :is(.bv2-doc h1, .bv2-mm-hero h1) {
  font-size: var(--fs-hero);
  line-height: 1.02;
  text-wrap: balance;
  max-width: 16ch;
}
body.bodovi-v2 .bv2-mm-hero h1 { max-width: 13ch; }
/* tool pages (home calculator, /skole/): smaller hero heading, same style */
body.bodovi-v2 .bv2-intro h1 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.04; }
body.bodovi-v2 .bv2-skole-h1 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.06; }

/* headings: H2 */
body.bodovi-v2 :is(.bv2-mm-sec h2, .bv2-mm-mu h2) {
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}
body.bodovi-v2 .bv2-mm-sec h2.bv2-mm-h-sm { font-size: 22px; font-style: normal; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
/* guide articles and tool sections: H2 in the tool tier */
body.bodovi-v2 :is(.bv2-doc h2:not([class]), .bv2-section h2, .bv2-about h2, .bv2-hist h2, .bv2-faq .bv2-faq-grid > h2) {
  font-style: italic;
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
}
body.bodovi-v2 :is(.bv2-doc h2:not([class]), .bv2-section h2) { font-size: var(--fs-h2-tool); line-height: 1.1; }
body.bodovi-v2 .bv2-about h2 { font-size: 22px; line-height: 1.2; }
body.bodovi-v2 .bv2-cta.bv2-cta--mm .bv2-cta-title { font-style: italic; letter-spacing: var(--tracking-heading); }
/* ===== V4 alignment - END ===== */
/* V4 pill system: the hero mode toggle and the journey link are CTA pills, so no icon inside */
body.bodovi-v2 .bv2-mode-btn { height: 48px; padding: 0 24px; font-size: 16px; font-weight: 500; gap: 0; }
body.bodovi-v2 .bv2-mode-icon { display: none; }

/* ===== Audit fixes (2026-11-24) - START =====
   docs/design/bodovi-out-of-place-audit-2026-11-24.md. Notes are plain secondary text (V4 .mms__note / .kal__note),
   boxed surfaces are reserved for real objects (cards, islands, popover). Radii: pill, 20 (panel), 24 (island). */

/* one note style for source / disclaimer / helper lines */
.bv2-note,
.bv2-source,
.bv2-mm-source,
.bv2-journey-source {
  max-width: 52ch;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.bv2-note a,
.bv2-source a,
.bv2-mm-source a,
.bv2-journey-source a {
  color: inherit;
  text-underline-offset: 3px;
}
.bv2-note--inline,
.bv2-doc .bv2-note--inline {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 14px;
  font-style: italic;
}

/* /skole/: "i" popover with the chip definitions (replaces the boxed note) */
.bv2-compare-help {
  position: relative;
  margin: 12px 0 0;
}
.bv2-compare-help[hidden] {
  display: none;
}
.bv2-info-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bv2-info-btn:hover {
  color: var(--text);
}
.bv2-info-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}
.bv2-info-i {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-numeric);
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}
.bv2-pop {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  width: min(440px, 100%);
  margin-top: 4px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-raised);
  color: var(--text-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.bv2-pop[hidden] {
  display: none;
}
.bv2-pop p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.bv2-pop p + p {
  margin-top: 10px;
}
.bv2-pop strong {
  color: var(--text);
  font-weight: 600;
}

/* /skole/ "О подацима": hairline definition list, no fill */
.bv2-about-facts {
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
}
.bv2-about-fact {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* one CTA system: green island for the tool CTA (same as the guides), one MaksimUm card */
.bv2-bottom-ctas .bv2-cta--tool {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 0;
  padding: 28px 24px;
}
@media (min-width: 1024px) {
  .bv2-bottom-ctas .bv2-cta--tool {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 40px;
  }
}

/* mala-matura: exam figures as one row of numbers, formula inline (no tiles, no tinted box) */

.bv2-mm-sum {
  display: block;
  margin-top: 24px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.bv2-mm-sum-formula {
  display: inline;
  margin-right: 12px;
  font-size: 24px;
  vertical-align: baseline;
}
.bv2-mm-sum > div {
  display: inline;
}
.bv2-mm-sum > div > p:first-child {
  display: inline;
}
.bv2-mm-sum .bv2-mm-links {
  margin-top: 12px;
}

/* calendar: one line instead of five "date not confirmed" chips */
.bv2-timeline li.bv2-tl-note {
  padding-top: 0;
  padding-bottom: 8px;
}
.bv2-timeline li.bv2-tl-note::before {
  content: none;
}
.bv2-timeline li.bv2-tl-note .bv2-note {
  margin: 0;
  font-size: 14px;
  font-style: italic;
}
.bv2-doc--wide > .bv2-cta--mm {
  margin-top: 64px;
}

/* home: "Знам бодове" pill sits under the lead paragraph */
.bv2-intro .bv2-mode-btn {
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
  align-self: flex-start;
  margin: 24px 0 0;
}
/* ===== Audit fixes - END ===== */

/* home results block: one quiet note line under the link */
.bv2-preview .bv2-note {
  margin-top: 14px;
}

/* ===== Hero (2026-11-25): one H1 size and one spacing rhythm on every page =====
   docs/design/bodovi-out-of-place-audit-2026-11-24.md, section "Hero". V4 .mhs: H1 -> lead 28px, lead max 30em,
   lead -> content 32px+. Same tokens for doc pages, Mala matura, home and /skole/. */
:root {
  --hero-top: clamp(40px, 6vw, 80px);       /* header -> H1 (doc pages) */
  --hero-top-tool: clamp(28px, 4vw, 48px);  /* header -> H1 on tool pages (home, /skole/): calculator stays near the fold */
  --hero-gap: clamp(16px, 2vw, 28px);       /* H1 -> lead */
  --hero-after: clamp(32px, 4.5vw, 64px);   /* lead -> content (doc pages) */
  --hero-after-tool: clamp(24px, 3vw, 36px);
  --hero-lead-max: 34em;
}
body.bodovi-v2 :is(.bv2-doc h1, .bv2-mm-hero h1, .bv2-intro h1, .bv2-skole-h1) {
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
  margin: 0;
}
body.bodovi-v2 .bv2-doc h1 { max-width: 22ch; }
body.bodovi-v2 .bv2-doc h1 + p:not(.bv2-lead) { margin-top: var(--hero-gap); }
body.bodovi-v2 .bv2-mm-hero h1 { max-width: 16ch; }
body.bodovi-v2 :is(.bv2-doc .bv2-lead, .bv2-doc--wide .bv2-lead, .bv2-lead, .bv2-mm-lead, .bv2-skole-intro) {
  max-width: var(--hero-lead-max);
  margin-top: var(--hero-gap);
  margin-bottom: 0;
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}
body.bodovi-v2 .bv2-main--doc { padding-top: var(--hero-top); }
body.bodovi-v2 .bv2-doc > .bv2-lead { margin-bottom: var(--hero-after); }
body.bodovi-v2 .bv2-mm-hero .mm-hero-grid { padding-top: var(--hero-top); }
body.bodovi-v2 .bv2-intro { padding-top: var(--hero-top-tool); padding-bottom: var(--hero-after-tool); }
body.bodovi-v2 .bv2-skole-head-text .bv2-skole-intro { margin-bottom: var(--hero-after-tool); }
/* ===== Hero - END ===== */

/* ---------- Home H1 inline illustration (port of the V4 InlineImageHeadline photo slot; motion in bodovi-v2-h1img.js) ----------
   Static final state = the pill (no JS, reduced motion). Sizes in em so the slot follows the H1 font-size. The slot
   is glued to the word before it (nowrap), so it never opens a line; the real spaces are cancelled by the negative
   margin (visible gap 0.16em, as on the V4 О нама hero). Decorative image: aria-hidden, alt="". */
.bv2-iih {
  display: flow-root;
}
.bv2-iih-glue {
  white-space: nowrap;
}
.bv2-iih-slot {
  position: relative;
  display: inline-block;
  width: 2.2em;
  height: 1em;
  border-radius: 0.36em;
  overflow: hidden;
  isolation: isolate;
  vertical-align: -0.245em; /* centred on the Manument x-height (0.255em), as in V4 */
  margin: 0 -0.1em 0 -0.05em;
  background: #f4ead6; /* paper tone of the illustration while it loads */
}
/* the picture overscans the slot by 8% above and below (room for the scroll parallax, as the V4 photo slot) */
.bv2-iih-img {
  position: absolute;
  left: 0;
  top: -8%;
  display: block;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
/* hidden until bodovi-v2-h1img.js has built the lines (inline script, 3 s at most) */
.bv2-iih[data-iih-wait] {
  visibility: hidden;
}
/* SplitText line masks (V4 InlineImageHeadline): descender headroom 0.18em plus 0.1em above for accented capitals;
   the collapsed margins keep the static line positions and the block height exactly */
.iih-line {
  padding: 0.1em 0 0.18em;
}
.iih-line-mask {
  margin: -0.1em 0 -0.28em;
}
.iih-line-mask:last-child {
  margin-bottom: -0.18em;
}

/* ===== Round 41: V4 motion parity (bodovi-v2-fx.js) - START =====
   Page hero H1 + lead are hidden only while html.bv2-fx is armed (theme.js, no reduced motion, 3 s fail-safe). */
html.bv2-fx :is(.bv2-doc h1:not([data-iih]), .bv2-doc .bv2-lead, .bv2-mm-hero h1, .bv2-mm-lead, .bv2-skole-h1, .bv2-skole-intro, .bv2-intro .bv2-lead) {
  visibility: hidden;
}
/* V4 Reveal.astro: below-the-fold blocks fade up 18px once (class added by script only, so no-JS shows everything) */
@media (prefers-reduced-motion: no-preference) {
  .bv2-onr {
    opacity: 0;
    transform: translateY(18px);
  }
  .bv2-onr.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }
}
/* home entry counts: digit reel (V4 PzPricing digit reels) */
.bv2-entry-cnt .bv2-reel {
  display: inline-flex;
}
.bv2-entry-cnt .bv2-digit {
  height: 1.1em;
}
.bv2-entry-cnt .bv2-digit-col {
  transition-duration: 900ms;
}
.bv2-entry-cnt .bv2-digit-col span {
  height: 1.1em;
  line-height: 1.1;
}
@media (prefers-reduced-motion: reduce) {
  .bv2-entry-cnt .bv2-digit-col {
    transition: none;
  }
}
/* ===== Round 41 - END ===== */

/* ===== Round 40: /mala-matura/ restructure (hero A, table, calendar rows, numbered prep list, one MaksimUm section) - START ===== */
.bv2-link-arrow--down {
  transition: transform 400ms var(--ease-out);
}
.bv2-link:hover .bv2-link-arrow--down,
.bv2-link:focus-visible .bv2-link-arrow--down {
  transform: translateY(3px);
}
.mm-hero-link {
  font-size: 16px;
}
.mm-hero-link .bv2-link-text {
  padding-bottom: 3px;
}

/* exam table */
.bv2-mm-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
}
.bv2-mm-table thead th {
  padding: 0 16px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  color: var(--text-2);
}
.bv2-mm-table thead th:first-child {
  padding-left: 0;
}
.bv2-mm-table tbody th,
.bv2-mm-table tbody td {
  padding: 16px;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  vertical-align: top;
  text-align: left;
}
.bv2-mm-table tbody th {
  padding-left: 0;
  font-weight: 400;
}
.bv2-mm-table tbody tr:last-child th,
.bv2-mm-table tbody tr:last-child td {
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.bv2-mm-table td {
  font-family: var(--font-numeric);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.bv2-mm-table td.is-max {
  color: var(--action-text);
}
.bv2-mm-t-name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.bv2-mm-t-desc {
  display: block;
  max-width: 46ch;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}
.bv2-mm-sum {
  margin-top: 20px;
}
.bv2-mm-sum p {
  max-width: none;
}
.bv2-mm-links {
  margin-top: 20px;
}

/* calendar rows */
.bv2-mm-cal {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.bv2-mm-cal li {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 240px) 1fr;
  align-items: baseline;
  gap: 4px 24px;
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.bv2-mm-cal li:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.bv2-mm-cal-date {
  font-family: var(--font-numeric);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.bv2-mm-cal-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.bv2-mm-cal-desc {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}
.bv2-mm-note {
  max-width: 680px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

/* numbered preparation list */
.bv2-mm-prep {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.bv2-mm-prep li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0 16px;
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.bv2-mm-prep li:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.bv2-mm-prep-n {
  font-family: var(--font-numeric);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--action-text);
}
.bv2-mm-prep h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.bv2-mm-prep p {
  max-width: 62ch;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}
.bv2-mm-prep .bv2-mm-step-link {
  margin-top: 8px;
}

/* the single MaksimUm section (green zone) */
.bv2-mm-mu {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "head photo"
    "how photo"
    "foot photo";
  grid-template-rows: auto auto 1fr;
  column-gap: 72px;
  row-gap: 32px;
  align-items: start;
}
.bv2-mm-mu-head { grid-area: head; }
.bv2-mm-how { grid-area: how; }
.bv2-mm-mu-foot { grid-area: foot; align-self: start; }
.bv2-mm-intro-photo { grid-area: photo; align-self: start; }
.bv2-mm-mu h2 {
  margin-top: 20px;
  color: var(--text);
}
.bv2-mm-mu .bv2-mm-intro-p {
  max-width: 600px;
  margin-top: 16px;
}
.bv2-mm-mu-foot .bv2-mm-intro-p {
  margin-top: 0;
}
.bv2-mm-intro-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.bv2-mm-how-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.bv2-mm-how-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.bv2-mm-how-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.bv2-mm-how-list img {
  display: block;
  width: 112px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.bv2-mm-how-body {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 8px;
  align-items: baseline;
}
.bv2-mm-how-n {
  font-family: var(--font-numeric);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.bv2-mm-how-body h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.bv2-mm-how-body p {
  grid-column: 2;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}
.bv2-mm-mu-foot .bv2-mm-cta-row {
  margin-top: 24px;
}
.bv2-mm-pal--action {
  padding-top: 88px;
  padding-bottom: 88px;
}

/* related guides: the sibling pages' card style (.bv2-doc .bv2-related), two items */
.bv2-mm-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.bv2-mm-related li { margin: 0; }
.bv2-mm-related a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-panel);
  background: var(--card-surface);
  color: var(--text);
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 250ms var(--ease-out);
}
.bv2-mm-related a:hover,
.bv2-mm-related a:focus-visible {
  background: var(--field);
}
.bv2-mm-related .bv2-icon-tile {
  margin-bottom: 10px;
}

@media (max-width: 1023px) {
  .bv2-mm-cal li {
    grid-template-columns: minmax(160px, 200px) 1fr;
  }
  .bv2-mm-cal-desc {
    grid-column: 1 / -1;
  }
  .bv2-mm-mu {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "photo" "how" "foot";
    grid-template-rows: auto;
    row-gap: 28px;
  }
  .bv2-mm-intro-photo img {
    aspect-ratio: 4 / 3;
    object-position: 50% 30%;
  }
}

@media (max-width: 899px) {
  .bv2-mm-table,
  .bv2-mm-table tbody {
    display: block;
  }
  .bv2-mm-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .bv2-mm-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 16px 0;
    border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  }
  .bv2-mm-table tbody tr:last-child {
    border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  }
  .bv2-mm-table tbody th {
    grid-column: 1 / -1;
    padding: 0;
    border: 0 !important;
  }
  .bv2-mm-table tbody td {
    padding: 0;
    border: 0 !important;
    font-size: 18px;
    white-space: normal;
  }
  .bv2-mm-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-body, inherit);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-2);
  }
  .bv2-mm-related {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .bv2-mm-related a {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 12px 16px 12px 12px;
  }
  .bv2-mm-related .bv2-icon-tile {
    margin: 0 12px 0 0;
  }
  .bv2-mm-related .bv2-icon-tile svg {
    width: 24px;
    height: 24px;
  }
  .bv2-mm-related .bv2-rel-title {
    flex: 1;
    min-width: 0;
    font-weight: 400;
  }
  .bv2-mm-related .bv2-rel-desc,
  .bv2-mm-related .bv2-rel-open {
    display: none;
  }
  .bv2-mm-related .bv2-rel-arrow {
    display: inline;
    color: var(--text-2);
  }
  .bv2-mm-pal--action {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .bv2-mm-how-list li {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }
  .bv2-mm-how-list img {
    width: 96px;
  }
  .bv2-mm-prep li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0 12px;
    padding: 14px 0;
  }
  .bv2-mm-prep-n {
    font-size: 24px;
  }
  .bv2-mm-cal li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 0;
  }
}
/* ===== Round 40 - END ===== */

/* ===== Мала помоћ (2026-11-25) - START =====
   One reusable promo (home, Пробна мала матура) + the quiet official-resources block on /mala-matura/.
   Neutral surface card, icon tile, V4 CTA pill (the .bv2-mode-btn pill used by the journey link). No illustration. */
.bv2-mp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  margin: 0;
  padding: 24px 28px;
  border-radius: var(--radius-panel);
  background: var(--card-surface);
  color: var(--text);
}
.bv2-doc .bv2-mp {
  margin: 40px 0;
}
.bv2-mp .bv2-icon-tile {
  margin: 0;
}
.bv2-mp-body {
  min-width: 0;
}
body.bodovi-v2 aside.bv2-mp h2.bv2-mp-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
}
.bv2-mp .bv2-mp-text {
  max-width: 52ch;
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}
body.bodovi-v2 .bv2-mp a.bv2-mp-cta {
  margin: 0;
  align-self: center;
  background: var(--action);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 899px) {
  .bv2-mp {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px;
  }
  .bv2-mp .bv2-mp-cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .bv2-mp-wrap {
    padding-top: 56px;
  }
}
.bv2-mp-wrap {
  padding-bottom: 0;
}

/* official resources: small upright type, inline links, hairline above; no cards, illustrations or buttons */
.bv2-mm-official {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
body.bodovi-v2 .bv2-mm-official h2 {
  font-family: var(--font-body, inherit);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text);
}
.bv2-mm-off-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
}
.bv2-mm-off-links a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-radius: 2px;
}
.bv2-mm-off-links a:hover {
  color: var(--text);
}
.bv2-mm-off-links a:focus-visible {
  outline: 2px solid var(--action-text, var(--action));
  outline-offset: 3px;
}
.bv2-mm-off-note {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.bv2-mm-pal--first {
  padding-bottom: 64px;
}
@media (max-width: 899px) {
  .bv2-mm-official {
    margin-top: 40px;
  }
  .bv2-mm-pal--first {
    padding-bottom: 48px;
  }
}
/* ===== Мала помоћ - END ===== */

/* ===== Guides round (2026-11-25): two-column footer, FAQ questions, calendar prose, disclosure line ===== */
.bv2-footer-cols {
  grid-area: links;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 32px 64px;
}
.bv2-footer-cols .bv2-footer-links {
  grid-area: auto;
}
.bv2-footer-cols .bv2-footer-links ul {
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
}
.bv2-footer-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
@media (max-width: 899px) {
  .bv2-footer-cols {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 28px 40px;
  }
}
.bv2-doc h3.bv2-faq-q {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.bv2-doc .bv2-disclosure {
  margin-top: 8px;
}
.bv2-cal-prose {
  max-width: 720px;
  margin-top: 56px;
}
.bv2-doc-table-wrap {
  max-width: 100%;
  margin: 8px 0 24px;
  overflow-x: auto;
}
.bv2-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
}
.bv2-doc-table caption {
  caption-side: bottom;
  padding-top: 8px;
  text-align: left;
  font-size: 13px;
  color: var(--text-2);
}
.bv2-doc-table th,
.bv2-doc-table td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.bv2-doc-table thead th {
  font-weight: 600;
  white-space: nowrap;
}
.bv2-doc-table tbody th {
  font-weight: 500;
}
@media (max-width: 599px) {
  .bv2-doc-table th,
  .bv2-doc-table td {
    min-width: 96px;
  }
}

/* Functional graphics (plan 2026-11-26): datestrip, steps (flow, map), compare2, ranklist, worksheet table. Tokens only, no new colours. */
.bv2-doc .bv2-fg { margin: 28px 0 32px; padding: 0; }
.bv2-doc .bv2-fg .bv2-fg-label { display: inline-block; margin: 0 0 12px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--field); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.bv2-doc .bv2-fg :is(ol, ul, dl, li, dd, dt, p, h3) { margin: 0; padding: 0; list-style: none; }
.bv2-doc .bv2-fg li::marker { content: ""; }
.bv2-doc .bv2-fg .bv2-fg-cap { margin: 12px 0 0; max-width: 62ch; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.bv2-fg .bv2-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bv2-fg .bv2-tl-tag { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--action-text); font-size: 13px; line-height: 1.5; }
.bv2-fg .bv2-tl-tag.is-plain { background: var(--field); color: var(--text-2); }
.bv2-fg .bv2-fg-num { font-family: var(--font-numeric); }

/* datestrip */
.bv2-ds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bv2-ds--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bv2-ds--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bv2-doc .bv2-ds > li { position: relative; padding: 18px 18px 16px; border-radius: var(--radius-panel); background: var(--card-surface); }
.bv2-ds > li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 30px; width: 8px; height: 8px; border-top: 2px solid var(--control); border-right: 2px solid var(--control); transform: rotate(45deg); }
.bv2-ds-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.bv2-ds-day { font-family: var(--font-numeric); font-size: 32px; font-weight: 700; line-height: 1.1; }
.bv2-ds-mon { font-size: 16px; font-weight: 500; }
.bv2-ds-wd { flex-basis: 100%; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.bv2-doc .bv2-ds-list { display: grid; gap: 10px; margin-top: 14px; }
.bv2-doc .bv2-ds-list li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.35; }
.bv2-ds-time { font-family: var(--font-numeric); font-size: 13px; color: var(--text-2); }
.bv2-doc .bv2-ds > li.is-final { background: var(--brand-soft); }
.bv2-ds > li.is-final .bv2-ds-day { color: var(--action-text); }
.bv2-ds > li.is-final .bv2-ds-list li { border-top-color: var(--border-strong); }

/* steps */
.bv2-st { display: grid; gap: 12px; }
.bv2-st--flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bv2-st--map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bv2-doc .bv2-st > li { position: relative; border-radius: var(--radius-panel); background: var(--card-surface); }
.bv2-doc .bv2-st--flow > li { padding: 16px 16px 18px; }
.bv2-st--flow > li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 30px; width: 8px; height: 8px; border-top: 2px solid var(--control); border-right: 2px solid var(--control); transform: rotate(45deg); }
.bv2-st-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--action-text); font-family: var(--font-numeric); font-size: 15px; font-weight: 700; line-height: 1; flex: none; }
.bv2-st li.is-final .bv2-st-n { background: var(--brand); border-color: var(--brand); color: #0c110d; }
.bv2-st-title { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.bv2-st-text { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.bv2-st-tag { margin-top: 8px; }
.bv2-st--flow .bv2-st-title { margin-top: 12px; }
.bv2-st--flow .bv2-st-tag { display: block; width: fit-content; margin-top: 8px; }
.bv2-doc .bv2-st--map > li > a { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border-radius: var(--radius-panel); color: inherit; text-decoration: none; transition: background-color 250ms var(--ease-out); }
.bv2-st--map > li > a:hover { background: var(--surface-3); }
.bv2-st--map > li > a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bv2-st--map > li.is-final { grid-column: 1 / -1; }
.bv2-st--map .bv2-st-body { display: block; min-width: 0; }
.bv2-st--map .bv2-st-title { font-size: 16px; }
.bv2-st--map .bv2-st-tag { display: inline-block; }

/* compare2 */
.bv2-c2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bv2-doc .bv2-c2-col { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; padding: 20px 20px 8px; border-radius: var(--radius-panel); background: var(--card-surface); }
.bv2-doc .bv2-c2-col > h3 { padding-bottom: 14px; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.2; }
.bv2-c2--r2 .bv2-c2-col { grid-row: span 3; }
.bv2-c2--r3 .bv2-c2-col { grid-row: span 4; }
.bv2-c2--r5 .bv2-c2-col { grid-row: span 6; }
.bv2-c2--r6 .bv2-c2-col { grid-row: span 7; }
.bv2-c2-kicker { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 400; color: var(--text-2); }
.bv2-c2-col > dl { display: contents; }
.bv2-doc .bv2-c2-row { padding: 12px 0; border-top: 1px solid var(--border); }
.bv2-doc .bv2-c2-row dt { margin-bottom: 2px; font-size: 13px; color: var(--text-2); }
.bv2-doc .bv2-c2-row dd { font-size: 15px; line-height: 1.4; }

/* ranklist */
.bv2-rk-wrap { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) 76px; gap: 20px; }
.bv2-rk { display: grid; gap: 0; }
.bv2-doc .bv2-rk > li { display: block; }
.bv2-rk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--card-surface); border: 1px solid transparent; }
.bv2-rk > li.is-first .bv2-rk-row { border-color: var(--brand); }
.bv2-rk-pos { font-family: var(--font-numeric); font-size: 24px; font-weight: 700; line-height: 1; }
.bv2-rk-name { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; }
.bv2-rk-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.bv2-rk-then { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 0 6px 38px; font-size: 13px; color: var(--text-2); }
.bv2-rk-then svg { flex: none; stroke: var(--control); }
.bv2-rk > li.is-more .bv2-rk-row { background: none; border: 1px dashed var(--border-strong); }
.bv2-rk > li.is-more .bv2-rk-name { font-weight: 500; color: var(--text-2); }
.bv2-rk-axis { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.bv2-rk-axis svg { flex: 1; width: 12px; min-height: 120px; stroke: var(--control); }
.bv2-rk-axis svg path { vector-effect: non-scaling-stroke; }
.bv2-rk-axis span { writing-mode: vertical-rl; transform: rotate(180deg); }

/* worksheet table (existing table block, variant template) */
.bv2-doc-table.is-template td { color: var(--text-2); }
.bv2-doc-table.is-template .ph { font-style: normal; border-bottom: 1px dashed var(--border-strong); }

@media (max-width: 899px) {
  .bv2-st--flow { grid-template-columns: 1fr; }
  .bv2-doc .bv2-st--flow > li { padding-left: 62px; }
  .bv2-st--flow > li::after { display: none; }
  .bv2-st--flow .bv2-st-n { position: absolute; left: 16px; top: 16px; }
  .bv2-st--flow .bv2-st-title { margin-top: 0; }
  .bv2-st--flow > li:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 52px; bottom: -14px; width: 2px; background: var(--border-strong); }
}
@media (max-width: 679px) {
  .bv2-ds { grid-template-columns: 1fr; }
  .bv2-ds > li::after { display: none; }
  .bv2-st--map { grid-template-columns: 1fr; gap: 8px; }
  .bv2-st--map .bv2-st-text { display: none; }
  .bv2-doc .bv2-st--map > li > a { padding: 14px 16px; }
  .bv2-c2 { grid-template-columns: 1fr; }
  .bv2-doc .bv2-c2-col { grid-template-rows: none; grid-row: auto; display: block; }
  .bv2-c2-col > dl { display: block; }
  .bv2-rk-wrap { grid-template-columns: 1fr; }
  .bv2-rk-axis { display: none; }
  .bv2-rk-row { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .bv2-rk-row .bv2-tl-tag { grid-column: 2; width: fit-content; }
  .bv2-rk-then { padding-left: 30px; }
}
/* reveal: the shared below-the-fold fade-up above covers these figures (REVEAL in bodovi-v2-fx.js) */

/* worksheet: header may wrap, columns share the width (no horizontal scroll at 390) */
.bv2-doc-table.is-template { table-layout: fixed; }
.bv2-doc-table.is-template thead th { white-space: normal; vertical-align: bottom; }
@media (max-width: 599px) {
  .bv2-doc-table.is-template { font-size: 14px; }
  .bv2-doc-table.is-template thead th { font-size: 13px; padding-right: 6px; }
  .bv2-doc-table.is-template thead th:first-child, .bv2-doc-table.is-template tbody th { width: 27%; }
  .bv2-doc-table.is-template th, .bv2-doc-table.is-template td { min-width: 0; padding-right: 8px; overflow-wrap: anywhere; }
}

@media (max-width: 899px) {
  .bv2-ds--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* /skole/ points histogram (graphics.mjs `histogram`): static HTML columns, tokens only, same in dark and light. */
.bv2-hist { display: grid; gap: 20px; margin-top: 24px; padding: 20px 16px 16px; border-radius: var(--radius-panel); background: var(--card-surface); }
.bv2-hist h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.bv2-hist-lead { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.bv2-fg--hist { --hi-plot: 112px; margin: 0; min-width: 0; }
.bv2-fg--hist .bv2-hi { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.bv2-fg--hist .bv2-hi li { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: calc(var(--hi-plot) + 54px); padding-inline: 3px; margin: 0; list-style: none; }
.bv2-fg--hist .bv2-hi li::marker { content: ""; }
.bv2-hi-n { margin-bottom: 4px; font-family: var(--font-numeric); font-size: 13px; line-height: 1.2; text-align: center; color: var(--text); }
.bv2-hi-bar { display: block; height: calc(var(--hi-plot) * var(--r)); border-radius: 6px 6px 0 0; background: var(--action-text); }
.bv2-hi-x { display: block; margin-top: 0; padding-top: 7px; border-top: 1px solid var(--border-strong); font-family: var(--font-numeric); font-size: 11px; line-height: 1.2; text-align: center; color: var(--text-2); white-space: nowrap; }
.bv2-hi-axis { margin: 6px 0 0; font-size: 12px; line-height: 1.3; text-align: center; color: var(--text-2); }
.bv2-fg--hist .bv2-fg-cap { margin: 10px 0 0; max-width: 62ch; font-size: 13px; line-height: 1.5; color: var(--text-2); }
@media (min-width: 600px) {
  .bv2-hist { padding: 24px; }
  .bv2-fg--hist { --hi-plot: 150px; }
  .bv2-fg--hist .bv2-hi li { padding-inline: 8px; }
  .bv2-hi-n { font-size: 15px; }
  .bv2-hi-x { font-size: 13px; }
}
@media (min-width: 960px) {
  .bv2-hist { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 28px 32px; }
  .bv2-fg--hist { --hi-plot: 168px; }
}

/* histogram follows the district: bars ease to the new height only when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .bv2-hi-bar { transition: height 0.45s var(--ease-out); }
}
