.municipality-switch {
  display: inline-flex;
  margin-top: 32px;
  border: 1px solid #15201d;
  background: #fffdf7;
}
.municipality-lang-switch {
  justify-self: end;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid #171918;
  background: #faf7ef;
}
.municipality-lang-switch button {
  min-width: 42px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #6e716d;
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: .1em;
  cursor: pointer;
}
.site-header .municipality-lang-switch button.active { background: #171918; color: #faf7ef; box-shadow: none; }
.municipality-lang-switch button:focus-visible { outline: 2px solid #c93237; outline-offset: 2px; }
.municipality-switch a {
  min-width: 130px;
  padding: 13px 22px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.municipality-switch label { min-width: 230px; padding: 8px 14px; border-left: 1px solid #15201d; display: grid; gap: 2px; }
.municipality-switch label span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.municipality-switch select { border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.municipality-switch select:focus-visible { outline: 2px solid #c93237; outline-offset: 3px; }
.municipality-switch a.active { background: #15201d; color: #fff; }
.municipality-switch label.active { background: #15201d; color: #fff; }
.municipality-switch label.dynamic-country-picker { position: relative; min-width: 330px; padding: 8px 14px 10px; transition: background .16s ease, color .16s ease; }
.dynamic-country-picker > span:first-child { color: #c7ccc6; }
.country-picker-readout { display: flex; align-items: center; gap: 10px; margin-top: 4px; pointer-events: none; }
.country-picker-readout img { width: 30px; height: 20px; object-fit: cover; border: 1px solid #ffffff66; }
.country-picker-readout > span { min-width: 0; display: grid; gap: 2px; }
.country-picker-readout strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.country-picker-readout small { color: #c7ccc6; font-size: 9px; font-weight: 500; }
.country-picker-readout > b { margin-left: auto; color: #d9ff69; font-size: 18px; }
.municipality-switch .dynamic-country-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.municipality-switch .dynamic-country-picker:hover,
.municipality-switch .dynamic-country-picker:focus-within { background: #293630; box-shadow: inset 0 -4px 0 #d9ff69; }
.municipal-country-card footer { gap: 18px; align-items: center; }
.municipal-country-card footer a { padding: 8px 0; font-weight: 700; text-underline-offset: 4px; }
.municipal-country-card footer a:last-child { margin-left: auto; text-align: right; }
.municipal-controls { grid-template-columns: .8fr 1fr 1.35fr .65fr auto; }
.municipal-controls .control-disabled { opacity: .42; }
.capital-card { border-top: 4px solid #c74c2f; }
.capital-card header small { color: #c74c2f; }
.capital-country-code { width: 31px; height: 21px; display: grid; place-items: center; background: #15201d; color: #fff; font-size: 9px; letter-spacing: .08em; }
.czechia-hero h1 em { color: #a8b63f; }
.czechia-municipalities-page #insights .section-heading {
  grid-template-columns: minmax(0, .82fr) minmax(320px, .7fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  margin-bottom: 52px;
}
.czechia-municipalities-page #insights .section-heading h2 {
  max-width: 650px;
  font: 500 clamp(44px, 5vw, 68px)/.96 Georgia, serif;
  letter-spacing: -.055em;
}
.czechia-municipalities-page #insights .section-heading p {
  max-width: 520px;
  margin: 42px 0 0;
  color: #69716c;
  font-size: 16px;
}
.czechia-municipalities-page #insights .insight-grid { gap: 12px; }
.czechia-municipalities-page #insights .insight-grid article {
  min-width: 0;
  min-height: 220px;
  padding: 24px;
  border: 1px solid #bac1b8;
  border-top: 4px solid #15201d;
  background: #fffdf7;
  display: flex;
  flex-direction: column;
}
.czechia-municipalities-page #insights .insight-grid strong {
  font-size: clamp(34px, 3.55vw, 52px);
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.czechia-municipalities-page #insights .insight-grid h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}
.czechia-municipalities-page #insights .insight-grid p {
  margin: auto 0 0;
  color: #69716c;
  font-size: 12px;
}
.czechia-municipalities-page .municipality-size-benchmark { padding: 84px 40px 92px; background: #171918; color: #fff; }
.benchmark-loading { margin: 0; color: #b9bdb7; font: 11px monospace; text-transform: uppercase; }
.municipal-size-heading { display: grid; grid-template-columns: minmax(0,.92fr) minmax(300px,.58fr); gap: clamp(48px,7vw,104px); align-items: start; }
.municipal-size-heading .kicker { color: #a8b63f; }
.municipal-size-heading h2 { max-width: 720px; margin: 18px 0 0; font: 500 clamp(44px,5vw,68px)/.96 Georgia,serif; letter-spacing: -.055em; }
.municipal-size-heading p { max-width: 470px; margin: 44px 0 0; color: #b9bdb7; font-size: 15px; line-height: 1.65; }
.municipal-size-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 52px 0 32px; }
.municipal-size-kpis article { min-width: 0; min-height: 158px; padding: 22px; border: 1px solid #ffffff26; border-top: 3px solid #a8b63f; background: #232624; display: flex; flex-direction: column; }
.municipal-size-kpis span,.municipal-size-kpis small { display: block; color: #aeb2ac; font: 9px/1.35 monospace; text-transform: uppercase; letter-spacing: .06em; }
.municipal-size-kpis strong { display: block; margin: 18px 0 8px; color: #a8b63f; font: 500 clamp(31px,3vw,42px)/1 Georgia,serif; }
.municipal-size-kpis small { margin-top: auto; }
.municipal-size-chart-card { background: #faf7ef; color: #171918; box-shadow: 9px 9px 0 #a8b63f; }
.municipal-size-legend { min-height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: flex-end; gap: 22px; border-bottom: 1px solid #d2ccc1; color: #6e716d; font: 9px monospace; text-transform: uppercase; }
.municipal-size-legend span { display: flex; align-items: center; gap: 7px; }
.municipal-size-legend i { position: relative; display: inline-block; width: 22px; height: 8px; }
.municipal-size-legend .mean-key { background: #171918; }
.municipal-size-legend .median-key::before { content:""; position:absolute; left:7px; top:-1px; width:8px; height:8px; border-radius:50%; background:#faf7ef; border:2px solid #171918; }
.municipal-size-legend .eu-key { height: 0; border-top: 2px dashed #c93237; }
.municipal-size-chart-scroll { overflow-x: auto; padding: 10px 18px 0; }
.municipal-size-chart-scroll svg { display: block; width: 100%; min-width: 820px; height: auto; font-family: Arial,sans-serif; }
.municipal-size-axis line { stroke: #d9d4ca; stroke-width: 1; }
.municipal-size-axis text { fill: #6e716d; font: 9px monospace; }
.municipal-size-eu { stroke: #c93237; stroke-width: 2; stroke-dasharray: 5 5; }
.municipal-size-track { fill: #e8e3d9; }
.municipal-size-mean { fill: #171918; }
.municipal-size-median { fill: #faf7ef; stroke: #171918; stroke-width: 2; }
.municipal-size-name { fill: #171918; font-size: 12px; font-weight: 700; }
.municipal-size-rank { fill: #9a9b95; font: 9px monospace; }
.municipal-size-value { fill: #171918; font: 700 11px monospace; }
.municipal-size-row.active .municipal-size-mean { fill: #a8b63f; }
.municipal-size-row.active .municipal-size-median { fill: #171918; stroke: #a8b63f; stroke-width: 3; }
.municipal-size-row.active .municipal-size-name,.municipal-size-row.active .municipal-size-value,.municipal-size-row.active .municipal-size-rank { fill: #c93237; font-weight: 800; }
.municipal-size-toggle { width: 100%; padding: 15px 20px; border: 0; border-top: 1px solid #d2ccc1; background: transparent; color: #171918; font: 700 10px monospace; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.municipal-size-toggle:hover { background: #a8b63f; }
.municipal-size-outliers { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 26px; background: #ffffff32; border: 1px solid #ffffff32; }
.municipal-size-outliers article { padding: 22px 24px; background: #232624; }
.municipal-size-outliers span,.municipal-size-outliers small { display: block; color: #aeb2ac; font: 9px/1.35 monospace; text-transform: uppercase; }
.municipal-size-outliers strong { display: block; margin: 10px 0 5px; font: 500 clamp(27px,3vw,41px)/1 Georgia,serif; }
.municipal-size-method { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: end; margin-top: 24px; padding-top: 20px; border-top: 1px solid #ffffff32; }
.municipal-size-method p { max-width: 850px; margin: 0; color: #b9bdb7; font-size: 11px; line-height: 1.65; }
.municipal-size-method a { color: #a8b63f; font: 700 9px/1.4 monospace; text-decoration: none; text-transform: uppercase; }
.czechia-destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #aeb6ac;
  border: 1px solid #aeb6ac;
}
.czechia-destination-grid > a {
  min-height: 330px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: #fffdf7;
  color: inherit;
  text-decoration: none;
}
.czechia-destination-grid > a:hover { background: #f0efc9; }
.czechia-destination-grid span { font-size: 58px; letter-spacing: -.05em; }
.czechia-destination-grid h3 { margin: 35px 0 10px; font-size: 28px; }
.czechia-destination-grid p { font-size: 14px; line-height: 1.55; }
.czechia-destination-grid b { margin-top: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.country-context-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1px; border: 1px solid #aeb6ac; background: #aeb6ac; }
.country-context-grid > article { min-height: 270px; padding: 30px; background: #fffdf7; display: flex; flex-direction: column; }
.country-context-grid h3 { margin: 8px 0 14px; font-size: 30px; }
.country-context-grid p { max-width: 680px; font-size: 15px; line-height: 1.6; }
.country-context-grid a { margin-top: auto; color: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.country-flag { width: 54px; height: 36px; object-fit: cover; border: 1px solid #aeb6ac; margin-bottom: 16px; }
@media (max-width: 1000px) {
  .municipal-controls { grid-template-columns: 1fr 1fr; }
  .czechia-destination-grid { grid-template-columns: 1fr; }
  .country-context-grid { grid-template-columns: 1fr; }
  .municipal-size-heading { grid-template-columns: 1fr; gap: 22px; }
  .municipal-size-heading p { margin-top: 0; }
  .czechia-municipalities-page #insights .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .czechia-municipalities-page #insights .section-heading p { margin-top: 0; }
  .municipal-size-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .municipality-switch { margin-top: 20px; width: 100%; }
  .municipality-switch a { min-width: 95px; }
  .municipality-switch label { min-width: 0; flex: 1; }
  .municipality-switch label.dynamic-country-picker { min-width: 0; }
  .municipal-controls { grid-template-columns: 1fr; }
  .czechia-destination-grid > a { min-height: 280px; }
  .municipality-lang-switch button { min-width: 36px; padding-inline: 8px; }
  .czechia-municipalities-page .municipality-size-benchmark { padding: 64px 20px 70px; }
  .czechia-municipalities-page #insights .section-heading { margin-bottom: 34px; }
  .czechia-municipalities-page #insights .insight-grid article { min-height: 190px; }
  .czechia-municipalities-page #insights .insight-grid strong { font-size: clamp(38px, 12vw, 52px); }
  .municipal-size-kpis,.municipal-size-outliers { grid-template-columns: 1fr; }
  .municipal-size-kpis article { min-height: 142px; }
  .municipal-size-legend { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 14px; }
  .municipal-size-method { grid-template-columns: 1fr; gap: 14px; }
}
