/* ==========================================================================
   ChciFinance.cz — theme stylesheet
   Struktura vychází z konvence "cf-" (ChciFinance) tříd a CSS proměnných.
   Sekce jsou označeny komentáři, aby se dala šablona snadno převést do WP.
   ========================================================================== */

:root {
  /* -- Barvy: světlý režim ------------------------------------------------ */
  --cf-bg: #f4f7fc;
  --cf-bg-soft: #eef2f9;
  --cf-paper: #ffffff;
  --cf-ink: #16264a;
  --cf-ink-deep: #0d1b38;
  --cf-reading-ink: #202327;
  --cf-reading-paper: #ffffff;
  --cf-muted: #5c6c85;
  --cf-muted-strong: #3c4a63;
  --cf-accent: #2f6fed;
  --cf-link: #1f57c9;
  --cf-accent-dark: var(--cf-link);
  --cf-button-bg: #245fd7;
  --cf-button-hover: #1d4fae;
  --cf-button-ink: #ffffff;
  --cf-control-border: #72839e;
  --cf-focus-color: #0d1b38;
  --cf-focus-gap: #ffffff;
  --cf-accent-soft: #e9f0ff;
  --cf-accent-soft-strong: #d8e5ff;
  --cf-border: #e3e8f2;
  --cf-border-strong: #cdd6e6;
  --cf-success: #117a4d;
  --cf-success-bg: #087045;
  --cf-success-soft: #e5f6ee;
  --cf-warning: #b8791a;
  --cf-badge-ink: #0d1b38;
  --cf-brand-navy: #0d1b38;
  --cf-overlay-scrim: linear-gradient(180deg, rgba(13, 27, 56, 0) 0%, rgba(9, 18, 38, 0.55) 55%, rgba(6, 12, 26, 0.92) 100%);
  --cf-radius-sm: 8px;
  --cf-radius: 14px;
  --cf-radius-lg: 22px;
  --cf-container: 1360px;
  --cf-shadow-sm: 0 4px 14px rgba(16, 34, 64, 0.06);
  --cf-shadow: 0 14px 34px rgba(16, 34, 64, 0.09);
  --cf-shadow-pop: 0 24px 55px rgba(12, 26, 52, 0.18);
  --cf-font: "Plus Jakarta Sans", "CF Jakarta Arial", "CF Jakarta DejaVu", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cf-header-h: 84px;
  /* Runtime measures the outer header separately from its minimum height. */
  --cf-header-height: calc(var(--cf-header-h) + 2px);
  --cf-adminbar-offset: 0px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --cf-bg: #0a1220;
  --cf-bg-soft: #0e1a2d;
  --cf-paper: #121e33;
  --cf-ink: #eef2fb;
  --cf-ink-deep: #ffffff;
  --cf-reading-ink: #edf1f7;
  --cf-reading-paper: #121e33;
  --cf-muted: #a7b3cb;
  --cf-muted-strong: #c7d0e3;
  --cf-accent: #6a97ff;
  --cf-link: #8bacff;
  --cf-accent-dark: var(--cf-link);
  --cf-button-bg: #3268dc;
  --cf-button-hover: #245fd7;
  --cf-button-ink: #ffffff;
  --cf-control-border: #7a8da9;
  --cf-focus-color: #ffbf47;
  --cf-focus-gap: #0d1b38;
  --cf-accent-soft: #16233d;
  --cf-accent-soft-strong: #1b2c4c;
  --cf-border: #223251;
  --cf-border-strong: #2c3e63;
  --cf-success: #38c58a;
  --cf-success-bg: #087045;
  --cf-success-soft: #113828;
  --cf-warning: #e0a83f;
  --cf-badge-ink: #eef2fb;
  --cf-brand-navy: #0d1b38;
  --cf-overlay-scrim: linear-gradient(180deg, rgba(6, 10, 20, 0) 0%, rgba(4, 8, 18, 0.65) 55%, rgba(2, 5, 12, 0.94) 100%);
  --cf-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.32);
  --cf-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  --cf-shadow-pop: 0 24px 55px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

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

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

body {
  --cf-sticky-offset: calc(var(--cf-header-height) + 34px + var(--cf-adminbar-offset));
  margin: 0;
  background: var(--cf-bg);
  color: var(--cf-ink);
  font-family: var(--cf-font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

body.cf-menu-locked,
body.cf-modal-open,
body.cf-panel-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; background: none; }
[hidden] { display: none !important; }
/* Reset pouze navigačních komponent; redakční seznamy si zachovají odrážky. */
:where(.cf-nav-list, .cf-submenu, .cf-quick-authors, .cf-footer-column ul) {
  list-style: none; margin: 0; padding: 0;
}

:focus-visible {
  outline: 3px solid var(--cf-focus-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--cf-focus-gap);
  border-radius: 4px;
}

.js [data-initial-hidden="true"] { display: none; }

html:not(.js) .cf-menu-toggle,
html:not(.js) .cf-search-toggle,
html:not(.js) .cf-theme-toggle,
html:not(.js) .cf-view-tools,
html:not(.js) .cf-header-drawer-toggle,
html:not(.js) .cf-edge-tab,
html:not(.js) .cf-back-to-top,
html:not(.js) .cf-cookie-bar,
html:not(.js) .cf-load-more-wrap { display: none !important; }

/* -- Layout utility -------------------------------------------------------- */
.cf-container {
  width: min(calc(100% - 40px), var(--cf-container));
  margin-inline: auto;
}

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

.cf-skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  max-width: calc(100vw - 24px); overflow-wrap: anywhere;
  transform: translateY(-160%);
  padding: 12px 18px; border-radius: 9px;
  background: var(--cf-brand-navy); color: #fff;
  font-weight: 750; text-decoration: none;
}
.cf-skip-link:focus { transform: translateY(0); }

.cf-noscript {
  width: min(calc(100% - 40px), var(--cf-container));
  margin: 16px auto 0; padding: 14px 18px;
  border: 1px solid #e2a83b; border-radius: var(--cf-radius-sm);
  background: #fff8e7; color: #624610; font-size: .93rem;
}

.cf-kicker {
  margin: 0 0 6px;
  color: var(--cf-accent-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cf-section {
  padding-block: clamp(48px, 6vw, 84px);
}

.cf-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.cf-section-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.cf-section-heading > a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cf-accent-dark); font-weight: 780; font-size: .92rem;
  text-decoration: none; white-space: nowrap; padding-bottom: 4px;
}
.cf-section-heading > a:hover { text-decoration: underline; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.cf-site-header {
  container-type: inline-size;
  container-name: cf-header;
  position: sticky; top: 10px; z-index: 90;
  width: min(calc(100% - 24px), var(--cf-container));
  margin: 12px auto 0;
  border: 1px solid var(--cf-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--cf-paper) 92%, transparent);
  box-shadow: 0 6px 20px rgba(16, 34, 64, 0.06);
  backdrop-filter: blur(18px);
  transition: background-color .25s ease, border-color .25s ease;
}

.cf-header-inner {
  min-height: var(--cf-header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 2.6vw, 34px);
}

/* Selected logo 01: flat CF monogram and locally hosted wordmark. */
.cf-wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content; max-width: 100%; min-width: 0; flex: 0 0 auto;
  min-height: 44px;
  color: var(--cf-ink-deep);
  font-size: 1.14rem; font-weight: 800; letter-spacing: -.045em;
  line-height: 1.3; text-decoration: none;
}
.cf-wordmark-name { min-width: 0; white-space: nowrap; }
.cf-wordmark-dot { color: var(--cf-accent); }
.cf-wordmark-mark {
  display: block; width: 36px; height: 22.3714px;
  flex: 0 0 36px; overflow: visible;
}
.cf-logo-c { fill: currentColor; }
.cf-logo-f { fill: var(--cf-accent); }
@media (forced-colors: active) {
  .cf-logo-c, .cf-logo-f { fill: LinkText; }
}

.cf-primary-nav { flex: 0 1 auto; min-width: 0; }
.cf-nav-list { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
.cf-nav-item { position: relative; }

.cf-nav-link {
  min-height: 42px; display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--cf-ink);
  font-size: .865rem; font-weight: 700; line-height: 1.25;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.cf-nav-link:hover, .cf-nav-link:focus-visible,
.cf-nav-link[aria-expanded="true"] {
  background: var(--cf-accent-soft); color: var(--cf-accent-dark);
}
.cf-nav-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .2s ease; }
.cf-nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.cf-submenu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 40;
  min-width: 240px; padding: 8px; border: 1px solid var(--cf-border);
  border-radius: 12px; background: var(--cf-paper); box-shadow: var(--cf-shadow);
}
.cf-submenu a {
  display: block; min-height: 42px; padding: 10px 12px; border-radius: 8px;
  color: var(--cf-ink); font-size: .89rem; font-weight: 650; text-decoration: none;
}
.cf-submenu a:hover, .cf-submenu a:focus-visible { background: var(--cf-accent-soft); color: var(--cf-accent-dark); }

/* Mega-menu s náhledy článků (napodobuje "Gadgets" hover panel u Cortics) */
.cf-mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-46%);
  z-index: 40; width: min(92vw, 560px); padding: 16px;
  border: 1px solid var(--cf-border); border-radius: var(--cf-radius);
  background: var(--cf-paper); box-shadow: var(--cf-shadow-pop);
}
.cf-mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cf-mega-item { display: flex; gap: 10px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--cf-ink); }
.cf-mega-item:hover { background: var(--cf-accent-soft); }
.cf-mega-item img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.cf-mega-item time { display: block; color: var(--cf-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cf-mega-item h4 { margin: 2px 0 0; font-size: .86rem; line-height: 1.3; font-weight: 750; }
.cf-mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cf-border); }
.cf-mega-foot a { color: var(--cf-accent-dark); font-weight: 780; font-size: .84rem; text-decoration: none; }
.cf-mega-foot span { color: var(--cf-muted); font-size: .78rem; }

.cf-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.cf-icon-button {
  width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--cf-border); border-radius: 10px;
  background: var(--cf-paper); color: var(--cf-ink); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.cf-icon-button:hover { border-color: var(--cf-border-strong); background: var(--cf-accent-soft); }
.cf-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.cf-menu-toggle, .cf-mobile-panel-link { display: none; }
.cf-menu-toggle .cf-close-icon { display: none; }
.cf-menu-toggle[aria-expanded="true"] .cf-menu-icon { display: none; }
.cf-menu-toggle[aria-expanded="true"] .cf-close-icon { display: block; }

/* Přepínač světlý/tmavý režim */
.cf-theme-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border: 1px solid var(--cf-border); border-radius: 999px;
  background: var(--cf-bg-soft); cursor: pointer; height: 42px;
}
.cf-theme-toggle span {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 999px; color: var(--cf-muted);
}
.cf-theme-toggle span svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.cf-theme-toggle::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: 32px; height: 32px;
  border-radius: 999px; background: var(--cf-paper); box-shadow: var(--cf-shadow-sm);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
html[data-theme="dark"] .cf-theme-toggle::before { transform: translateX(32px); }
html[data-theme="dark"] .cf-theme-toggle span:last-child,
.cf-theme-toggle span:first-child { color: var(--cf-ink-deep); }
html[data-theme="dark"] .cf-theme-toggle span:first-child { color: var(--cf-muted); }

.cf-cta {
  min-height: 42px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--cf-brand-navy); color: #fff;
  font-size: .84rem; font-weight: 780; white-space: nowrap;
  text-decoration: none; cursor: pointer;
}
.cf-cta:hover { background: var(--cf-button-hover); }

/* Shared text buttons: links and filled actions have independent color tokens. */
.cf-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%; padding: 10px 18px; border: 0;
  border-radius: 9px; background: var(--cf-button-bg); color: var(--cf-button-ink);
  font-size: .88rem; font-weight: 780; line-height: 1.4; text-align: center;
  text-decoration: none; white-space: normal; overflow-wrap: anywhere; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cf-button:hover { background: var(--cf-button-hover); }
.cf-button--light { background: #fff; color: var(--cf-brand-navy); }
.cf-button--light:hover { background: #e9f0ff; color: var(--cf-brand-navy); }

/* Search overlay */
.cf-search-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  width: min(94vw, 480px); padding: 16px;
  border: 1px solid var(--cf-border); border-radius: 14px;
  background: var(--cf-paper); box-shadow: var(--cf-shadow-pop);
}
.cf-search-box > label { display: block; margin-bottom: 8px; color: var(--cf-ink-deep); font-size: .87rem; font-weight: 760; }
.cf-search-field-row {
  min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 0 8px 0 14px; border: 1px solid var(--cf-control-border); border-radius: 10px; background: var(--cf-paper);
}
.cf-search-field-row:focus-within { border-color: var(--cf-focus-color); outline: 3px solid var(--cf-focus-color); outline-offset: 2px; box-shadow: 0 0 0 2px var(--cf-focus-gap); }
.cf-search-field-row svg { width: 18px; height: 18px; fill: none; stroke: var(--cf-muted); stroke-width: 1.8; }
.cf-search-field-row input { min-width: 0; padding: 10px 4px; border: 0; outline: 0; background: none; color: var(--cf-ink); font-size: 1rem; }
.cf-search-clear { min-height: 36px; padding: 7px 10px; border: 0; border-radius: 8px; background: var(--cf-accent-soft); color: var(--cf-accent-dark); font-size: .8rem; font-weight: 750; cursor: pointer; }
.cf-search-box > p { margin: 8px 2px 0; color: var(--cf-muted); font-size: .78rem; }
.cf-search-results { margin-top: 10px; max-height: 280px; overflow-y: auto; }
.cf-search-results a { display: block; padding: 8px 6px; border-radius: 8px; text-decoration: none; color: var(--cf-ink); font-size: .88rem; font-weight: 650; }
.cf-search-results a:hover { background: var(--cf-accent-soft); }

/* ==========================================================================
   QUICK PANEL (postranní vysouvací panel)
   ========================================================================== */
.cf-quick-scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(8, 16, 32, .46);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cf-quick-scrim.is-visible { opacity: 1; pointer-events: auto; }

.cf-quick-panel {
  position: fixed; top: 16px; right: 16px; bottom: 16px; z-index: 96;
  width: min(540px, calc(100vw - 32px)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--cf-paper); box-shadow: var(--cf-shadow-pop);
  padding: 30px 28px 36px; border-radius: 24px;
  visibility: hidden; pointer-events: none;
  transform: translateX(calc(100% + 32px)); transition: transform .36s cubic-bezier(.22,.68,0,1), visibility .36s;
}
.cf-quick-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }

.cf-quick-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cf-quick-panel-kicker { margin: 0 0 4px; color: var(--cf-accent-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cf-quick-panel h2 { margin: 0; font-size: 1.2rem; }

.cf-quick-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cf-quick-cats a {
  display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px;
  background: var(--cf-bg-soft); border: 1px solid var(--cf-border);
  color: var(--cf-ink); font-size: .82rem; font-weight: 680; text-decoration: none;
}
.cf-quick-cats a:hover { background: var(--cf-accent-soft); color: var(--cf-accent-dark); border-color: var(--cf-accent-soft-strong); }

.cf-quick-about {
  display: flex; flex-direction: column; gap: 18px; padding: 0 0 24px; margin-bottom: 26px;
  border-bottom: 1px solid var(--cf-border);
}
.cf-quick-about img { width: 100%; height: 230px; border-radius: 14px; object-fit: cover; }
.cf-quick-about-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.cf-quick-about h3 { margin: 0; font-size: .96rem; }
.cf-quick-about p { margin: 0 0 8px; color: var(--cf-muted); font-size: .9375rem; line-height: 1.65; }
.cf-quick-about a { color: var(--cf-accent-dark); font-size: .82rem; font-weight: 780; text-decoration: none; }

.cf-quick-panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; color: var(--cf-muted-strong); }
.cf-mini-switch { flex: 0 0 auto; width: 30px; height: 17px; border-radius: 999px; background: var(--cf-accent); position: relative; }
.cf-mini-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.cf-quick-authors { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.cf-quick-authors li { display: flex; align-items: center; gap: 10px; }
.cf-quick-authors img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.cf-quick-authors .cf-author-name { display: block; font-weight: 720; font-size: .89rem; }
.cf-quick-authors .cf-author-count { display: block; color: var(--cf-muted); font-size: .76rem; }

.cf-quick-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.cf-quick-tags a {
  padding: 6px 12px; border-radius: 999px; background: var(--cf-bg-soft);
  border: 1px solid var(--cf-border); color: var(--cf-muted-strong);
  font-size: .78rem; font-weight: 650; text-decoration: none;
}
.cf-quick-tags a:hover { color: var(--cf-accent-dark); border-color: var(--cf-accent-soft-strong); background: var(--cf-accent-soft); }

.cf-quick-social { display: flex; gap: 8px; }
.cf-quick-social a {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  background: var(--cf-bg-soft); border: 1px solid var(--cf-border); color: var(--cf-ink);
}
.cf-quick-social a:hover { background: var(--cf-accent-soft); color: var(--cf-accent-dark); }
.cf-quick-social svg { width: 17px; height: 17px; fill: currentColor; }

.cf-quick-close {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--cf-border); border-radius: 10px; background: var(--cf-bg-soft); cursor: pointer;
}
.cf-quick-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.cf-edge-tab {
  position: fixed; top: 50%; right: 0; z-index: 60; transform: translateY(-50%);
  width: 30px; height: 62px; display: inline-grid; place-items: center;
  border: 1px solid var(--cf-border); border-right: 0; border-radius: 10px 0 0 10px;
  background: var(--cf-paper); color: var(--cf-accent-dark); box-shadow: var(--cf-shadow-sm); cursor: pointer;
}
.cf-edge-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cf-edge-tab[aria-expanded="true"] { right: min(94vw, 400px); }

/* ==========================================================================
   COOKIE BAR
   ========================================================================== */
.cf-cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px clamp(16px, 4vw, 40px);
  background: var(--cf-brand-navy); color: #eef2fb;
  box-shadow: 0 -10px 30px rgba(0,0,0,.2);
  transform: translateY(0); transition: transform .3s ease;
}
.cf-cookie-bar[hidden] { display: flex; transform: translateY(140%); }
.cf-cookie-bar p { margin: 0; font-size: .86rem; max-width: 640px; color: #cfd9ee; }
.cf-cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cf-cookie-actions button {
  min-height: 40px; padding: 0 16px; border-radius: 9px; font-size: .82rem; font-weight: 750; cursor: pointer;
}
.cf-cookie-decline { border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; }
.cf-cookie-decline:hover { background: rgba(255,255,255,.1); }
.cf-cookie-accept { border: 0; background: var(--cf-button-bg); color: var(--cf-button-ink); }
.cf-cookie-accept:hover { background: var(--cf-button-hover); }

/* ==========================================================================
   HERO
   ========================================================================== */
.cf-hero { padding-top: clamp(32px, 4vw, 52px); text-align: center; }
.cf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 7px 15px; border-radius: 999px; background: var(--cf-accent-soft);
  color: var(--cf-accent-dark); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.cf-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--cf-button-hover); }
.cf-hero h1 { margin: 0 auto; max-width: 900px; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; letter-spacing: -.02em; color: var(--cf-ink-deep); overflow-wrap: anywhere; }
.cf-hero-text { max-width: 620px; margin: 20px auto 0; color: var(--cf-muted); font-size: 1.05rem; line-height: 1.6; }

.cf-topic-strip {
  position: relative; margin: 30px auto 0; max-width: 980px;
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 10px;
  padding: 0;
}
.cf-topic-pills {
  display: flex; flex-wrap: nowrap; gap: 10px; min-width: 0; overflow-x: auto; scroll-behavior: auto;
  scrollbar-width: none; padding: 6px 14px; overscroll-behavior-inline: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.cf-topic-pills::-webkit-scrollbar { display: none; }
.cf-topic-pills.is-looping { gap: 0; }
.cf-topic-group { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; padding-right: 10px; }
.cf-topic-pause { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--cf-border); border-radius: 50%; background: var(--cf-paper); color: var(--cf-muted); cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.cf-topic-pause:hover { color: var(--cf-accent-dark); background: var(--cf-accent-soft); }
.cf-topic-pause svg, .cf-carousel-pause svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cf-play-icon { display: none; }
[aria-pressed="true"] > .cf-pause-icon { display: none; }
[aria-pressed="true"] > .cf-play-icon { display: block; }
html:not(.js) .cf-topic-pause { display: none; }
html:not(.js) .cf-topic-strip { grid-template-columns: minmax(0, 1fr); }
.cf-topic-pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--cf-border);
  background: var(--cf-paper); color: var(--cf-ink); font-size: .85rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: all .15s ease;
}
.cf-topic-pill:hover { border-color: var(--cf-accent-soft-strong); background: var(--cf-accent-soft); color: var(--cf-accent-dark); }
.cf-topic-pill.is-active { background: var(--cf-brand-navy); border-color: var(--cf-brand-navy); color: #fff; }

/* ==========================================================================
   FEATURED / HERO ČLÁNEK
   ========================================================================== */
.cf-featured { margin-top: 40px; }
.cf-feature-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--cf-radius-lg); min-height: 420px;
  box-shadow: var(--cf-shadow);
}
.cf-feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cf-feature-card:hover img { transform: scale(1.04); }
.cf-feature-overlay { position: absolute; inset: 0; background: var(--cf-overlay-scrim); }
.cf-feature-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 420px; padding: clamp(22px, 3vw, 40px); color: #fff; }
.cf-feature-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-feature-badges { display: flex; align-items: center; gap: 8px; }

.cf-chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px;
  border-radius: 999px; background: rgba(10, 18, 36, .82); color: #fff;
  font-size: .74rem; font-weight: 700; backdrop-filter: blur(6px);
}
.cf-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.cf-chip--sponsored { background: rgba(255, 255, 255, .92); color: var(--cf-brand-navy); }

.cf-score {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cf-success-bg); color: #fff; font-size: .86rem; font-weight: 800;
  box-shadow: 0 6px 14px rgba(23, 145, 92, .35);
}
.cf-score--sm { width: 34px; height: 34px; font-size: .74rem; }
.cf-score--mid { background: #245fd7; }
.cf-score--low { background: #a65317; }

.cf-feature-copy { max-width: 720px; }
.cf-feature-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.cf-cat-pill {
  display: inline-flex; align-items: center; min-height: 27px; padding: 0 12px;
  border-radius: 999px; background: #0d2345; border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: .72rem; font-weight: 780; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; backdrop-filter: blur(4px);
}
.cf-cat-pill:hover { background: #17375f; }
.cf-feature-copy h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.18; letter-spacing: -.015em; }
.cf-feature-copy h2 a { color: #fff; text-decoration: none; }
.cf-feature-copy > p { margin: 0; max-width: 560px; color: rgba(255,255,255,.82); font-size: .98rem; line-height: 1.55; }
.cf-feature-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.cf-feature-footer > span { color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 650; }

/* ==========================================================================
   HLAVNÍ MŘÍŽKA OBSAHU (obsah + sidebar)
   ========================================================================== */
.cf-content-grid {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 360px;
  gap: 28px; margin-top: 56px; align-items: start;
}
.cf-content-grid > .cf-articles { grid-column: 2; }
.cf-articles { min-width: 0; }
/* Programový cíl návratu není ovládací prvek; jednotlivé odkazy mají vlastní fokus. */
.cf-articles:focus-visible { outline: 3px solid var(--cf-focus-color); outline-offset: 6px; }
.cf-sidebar { display: flex; flex-direction: column; gap: 30px; position: static; min-width: 0; }
.cf-content-grid > .cf-sidebar { grid-column: 3; }

.cf-view-tools {
  grid-column: 1; position: sticky; top: var(--cf-sticky-offset);
  display: flex; flex-direction: column; gap: 8px;
}
.cf-view-tools button {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--cf-border); border-radius: 11px; background: var(--cf-paper);
  color: var(--cf-muted); cursor: pointer;
}
.cf-view-tools button.is-active { background: var(--cf-brand-navy); border-color: var(--cf-brand-navy); color: #fff; }
.cf-view-tools button:hover:not(.is-active) { border-color: var(--cf-border-strong); color: var(--cf-ink); }
.cf-view-tools svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.cf-results-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius); background: var(--cf-paper);
}
.cf-results-status {
  flex: 1 1 12rem; min-width: 0; margin: 0;
  color: var(--cf-muted-strong); font-size: .86rem; font-weight: 650;
  display: none;
}
.cf-results-status.is-active { display: block; }
.cf-reset-results {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 0 1 auto; min-width: 0; min-height: 44px; max-width: 100%; padding: 10px 14px;
  border: 1px solid var(--cf-border-strong); border-radius: 999px;
  background: var(--cf-paper); color: var(--cf-ink); font-size: .82rem;
  font-weight: 750; line-height: 1.45; text-align: left; text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.cf-reset-results:hover { color: var(--cf-accent-dark); background: var(--cf-accent-soft); border-color: var(--cf-accent-dark); }
.cf-reset-results:focus-visible { outline: 2px solid var(--cf-accent-dark); outline-offset: 3px; }
.cf-reset-results svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cf-reset-results span { min-width: 0; overflow-wrap: anywhere; }

.cf-empty-results { padding: 32px; text-align: center; color: var(--cf-muted); border: 1px dashed var(--cf-border-strong); border-radius: var(--cf-radius); }

/* -- Karty článků: výchozí GRID hustota --------------------------------- */
.cf-article-list { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.cf-article-list[data-density="list"] { grid-template-columns: 1fr; }
.cf-article-list[data-density="titles"] { grid-template-columns: 1fr; gap: 0; }

.cf-article-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--cf-border); border-radius: var(--cf-radius);
  background: var(--cf-paper); overflow: hidden; box-shadow: var(--cf-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.cf-article-card:hover { box-shadow: var(--cf-shadow); transform: translateY(-2px); }

.cf-article-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.cf-article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cf-article-card:hover .cf-article-media img { transform: scale(1.05); }
.cf-media-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.cf-media-time { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 0 10px; border-radius: 999px; background: rgba(10,18,36,.6); color: #fff; font-size: .72rem; font-weight: 700; backdrop-filter: blur(4px); }
.cf-media-time svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.cf-media-coin { width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--cf-brand-navy); }
.cf-media-coin svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.cf-media-score { position: absolute; bottom: 12px; right: 12px; z-index: 2; }
.cf-media-cats { position: absolute; bottom: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }

.cf-article-copy { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cf-article-copy time { color: var(--cf-muted); font-size: .78rem; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.cf-article-copy time svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cf-article-copy :is(h2,h3) { margin: 0; font-size: 1.08rem; line-height: 1.35; letter-spacing: -.01em; }
.cf-article-copy :is(h2,h3) a { color: var(--cf-ink-deep); text-decoration: none; }
.cf-article-copy :is(h2,h3) a:hover { color: var(--cf-accent-dark); }
.cf-article-copy > p { margin: 0; color: var(--cf-muted); font-size: 1rem; line-height: 1.55; }
.cf-card-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--cf-border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-card-author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: var(--cf-ink); }
.cf-card-author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cf-card-author span { font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-card-comments { display: inline-flex; align-items: center; gap: 5px; color: var(--cf-muted); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.cf-card-comments svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cf-card-more {
  display: none; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--cf-border-strong); border-radius: 8px; color: var(--cf-ink);
  font-size: .78rem; font-weight: 750; text-decoration: none; white-space: nowrap;
}

/* -- Hustota: LIST (obrázek vlevo, obsah vpravo) ------------------------ */
.cf-article-list[data-density="list"] .cf-article-card { flex-direction: row; }
.cf-article-list[data-density="list"] .cf-article-media { width: 280px; flex: 0 0 280px; aspect-ratio: auto; }
.cf-article-list[data-density="list"] .cf-article-copy { flex: 1; }
.cf-article-list[data-density="list"] .cf-card-more { display: inline-flex; }

/* -- Hustota: TITLES (jen řádky s titulkem) ----------------------------- */
.cf-article-list[data-density="titles"] .cf-article-card {
  flex-direction: row; align-items: center; border-radius: 0; border: 0; border-bottom: 1px solid var(--cf-border);
  background: transparent; box-shadow: none; padding: 16px 4px;
}
.cf-article-list[data-density="titles"] .cf-article-card:hover { transform: none; box-shadow: none; background: var(--cf-bg-soft); }
.cf-article-list[data-density="titles"] .cf-article-media { display: none; }
.cf-article-list[data-density="titles"] .cf-article-copy { padding: 0; flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf-article-list[data-density="titles"] .cf-article-copy > p { display: none; }
.cf-article-list[data-density="titles"] .cf-article-copy time { flex: 0 0 auto; }
.cf-article-list[data-density="titles"] .cf-article-copy :is(h2,h3) { flex: 1; min-width: min(200px, 100%); }
.cf-article-list[data-density="titles"] .cf-card-footer { margin-top: 0; padding-top: 0; border-top: 0; flex: 0 0 auto; }
.cf-article-list[data-density="titles"] .cf-card-author span { display: none; }

.cf-load-more-wrap { text-align: center; margin-top: 32px; }
.cf-load-more {
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 11px; background: var(--cf-button-bg); color: var(--cf-button-ink);
  font-size: .9rem; font-weight: 780; cursor: pointer; box-shadow: 0 10px 22px rgba(47,111,237,.24);
}
.cf-load-more:hover { background: var(--cf-button-hover); }
.cf-load-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ==========================================================================
   SIDEBAR WIDGETY
   ========================================================================== */
.cf-widget { min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }
.cf-widget-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--cf-border-strong); }
.cf-widget-head h2 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.cf-widget-head:not(:has(.cf-toggle-switch))::after { content: ""; width: 28px; height: 4px; flex: 0 0 28px; border-radius: 8px; background: var(--cf-accent); box-shadow: -10px 0 0 var(--cf-border); }
.cf-toggle-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 0 100%; padding: 4px; gap: 4px; border-radius: 10px; background: var(--cf-bg-soft); border: 1px solid var(--cf-border); }
.cf-toggle-switch button {
  min-width: 0; min-height: 40px; padding: 8px 12px; border: 0; appearance: none; border-radius: 7px;
  background: transparent; font-size: .875rem; font-weight: 700; color: var(--cf-muted-strong); cursor: pointer;
  line-height: 1.3; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.cf-toggle-switch button:hover:not(.is-active) { background: var(--cf-paper); color: var(--cf-ink); }
.cf-toggle-switch button.is-active { color: #fff; background: #2b64d8; box-shadow: 0 2px 7px rgba(20,50,100,.12); }

/* -- Editor's Choice carousel -------------------------------------------- */
.cf-carousel { --cf-focus-color: #ffbf47; --cf-focus-gap: #0d1b38; position: relative; border-radius: var(--cf-radius); overflow: hidden; background: #091323; color: #fff; touch-action: pan-y; }
.cf-carousel-track { position: relative; height: max(var(--cf-carousel-min-height, 390px), 400px); }
.cf-carousel-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s ease;
}
.cf-carousel-slide.is-active { opacity: 1; visibility: visible; }
.cf-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.cf-carousel-slide::after { content: ""; position: absolute; inset: 0; background: var(--cf-overlay-scrim); }
.cf-carousel-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 24px 16px; color: #fff; text-align: center; }
.cf-carousel-copy .cf-feature-cats { margin-bottom: 12px; justify-content: center; }
.cf-carousel-copy .cf-cat-pill { font-size: .75rem; min-height: 28px; padding: 4px 10px; background: rgba(13,35,69,.8); border-color: rgba(255,255,255,.28); }
.cf-carousel-copy h3 { margin: 0 0 14px; font-size: 1.2rem; line-height: 1.35; text-wrap: pretty; }
.cf-carousel-copy h3 a { color: #fff; text-decoration: none; }
.cf-carousel-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.82); font-size: .76rem; font-weight: 650; }
.cf-carousel-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cf-carousel-meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cf-carousel-controls { position: relative; z-index: 3; display: grid; grid-template-columns: 44px 44px minmax(0,1fr) 44px; align-items: center; gap: 2px; padding: 0 12px 8px; background: #091323; }
.cf-carousel-nav, .cf-carousel-pause { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; border: 0; transition: background-color .2s ease; }
.cf-carousel-nav:hover, .cf-carousel-pause:hover { background: rgba(255,255,255,.12); }
.cf-carousel-nav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cf-carousel-dots { display: flex; justify-content: center; gap: 0; min-width: 0; }
.cf-carousel-dots button { display: inline-grid; place-items: center; width: 28px; height: 44px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; padding: 0; }
.cf-carousel-dots button::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.5); transition: width .25s ease, background-color .25s ease; }
.cf-carousel-dots button.is-active::after { width: 16px; background: #fff; }
html:not(.js) .cf-carousel-nav, html:not(.js) .cf-carousel-dots { display: none; }

/* -- Mini list widget ----------------------------------------------------- */
.cf-mini-list { display: flex; flex-direction: column; gap: 0; }
.cf-mini-item { display: flex; gap: 14px; padding-block: 15px; border-bottom: 1px solid var(--cf-border); }
.cf-mini-item:first-child { padding-top: 0; }
.cf-mini-item:last-child { padding-bottom: 0; border-bottom: 0; }
.cf-mini-item img { width: 88px; height: 88px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.cf-mini-copy { min-width: 0; }
.cf-mini-copy .cf-feature-cats { margin-bottom: 5px; gap: 5px; }
.cf-mini-copy .cf-cat-pill { background: var(--cf-accent-soft); border-color: var(--cf-accent-soft-strong); color: var(--cf-accent-dark); font-size: .62rem; min-height: 20px; padding: 0 8px; }
.cf-mini-copy h3 { margin: 0 0 7px; font-size: .94rem; line-height: 1.4; }
.cf-mini-copy h3 a { color: var(--cf-ink-deep); text-decoration: none; }
.cf-mini-copy h3 a:hover { color: var(--cf-accent-dark); }
.cf-mini-meta { display: flex; align-items: center; gap: 10px; color: var(--cf-muted); font-size: .74rem; font-weight: 650; }
.cf-mini-meta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: 3px; }

/* Reklama zůstává zřetelně oddělená; žádné nepotvrzené parametry či CTA. */
.cf-ad-slot { min-width: 0; padding-top: 6px; }
.cf-ad-label { margin: 0 0 10px; color: var(--cf-muted); font-size: .75rem; letter-spacing: .05em; font-weight: 650; text-transform: uppercase; }
.cf-ad-visual { position: relative; min-height: 330px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--cf-radius); background: #0d1b38; isolation: isolate; }
.cf-ad-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cf-ad-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,18,37,.12), rgba(7,18,37,.94) 80%); }
.cf-ad-copy { min-width: 0; width: 100%; padding: 26px; color: #fff; overflow-wrap: anywhere; }
.cf-ad-brand { display: inline-block; margin-bottom: 38px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; color: #fff; font-size: .8rem; font-weight: 750; }
.cf-ad-copy h2 { margin: 0 0 12px; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.025em; }
.cf-ad-copy p { margin: 0; color: #d8e2f1; font-size: .875rem; line-height: 1.55; }

/* -- Anketa (poll widget) -------------------------------------------------- */
.cf-poll { padding: 22px; border: 1px solid var(--cf-border); border-radius: var(--cf-radius); background: var(--cf-paper); }
.cf-poll-option input:focus-visible + label { outline: 3px solid var(--cf-focus-color); outline-offset: 3px; box-shadow: 0 0 0 2px var(--cf-focus-gap); }
.cf-poll fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.cf-poll legend { font-size: .96rem; font-weight: 760; margin-bottom: 12px; padding: 0; color: var(--cf-ink-deep); }
.cf-poll-option { position: relative; margin-bottom: 10px; }
.cf-poll-option label {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--cf-border); border-radius: 10px; cursor: pointer;
  font-size: .84rem; font-weight: 650; overflow: hidden; z-index: 1;
}
.cf-poll-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-poll-option .cf-poll-fill {
  position: absolute; inset: 0; width: 0%; background: var(--cf-accent-soft); z-index: -1;
  transition: width .6s cubic-bezier(.22,.9,.34,1);
}
.cf-poll-option input:checked + label { border-color: var(--cf-accent); }
.cf-poll.is-voted .cf-poll-option .cf-poll-fill { width: var(--cf-pct, 0%); }
.cf-poll-pct { display: none; font-weight: 800; color: var(--cf-accent-dark); }
.cf-poll.is-voted .cf-poll-pct { display: inline; }
.cf-poll.is-voted .cf-poll-option label { cursor: default; }
.cf-poll-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--cf-control-border); flex: 0 0 auto; position: relative; }
.cf-poll-option input:checked + label .cf-poll-radio { border-color: var(--cf-accent); }
.cf-poll-option input:checked + label .cf-poll-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--cf-accent); }
.cf-poll.is-voted .cf-poll-radio { display: none; }
.cf-poll-label { flex: 1; display: flex; align-items: center; gap: 10px; }
.cf-poll-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-poll-count { color: var(--cf-muted); font-size: .78rem; font-weight: 650; }
.cf-poll-vote {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--cf-brand-navy);
  color: #fff; font-size: .82rem; font-weight: 780; cursor: pointer;
}
.cf-poll-vote:hover { background: var(--cf-button-hover); }
.cf-poll-vote:disabled { opacity: .55; cursor: not-allowed; }
.cf-poll-thanks { display: none; color: var(--cf-success); font-size: .82rem; font-weight: 700; }
.cf-poll.is-voted .cf-poll-thanks { display: inline; }
.cf-poll.is-voted .cf-poll-vote { display: none; }

/* ==========================================================================
   KATEGORIE (Read by Category)
   ========================================================================== */
.cf-category-grid { display: flex; gap: 20px; }
.cf-category-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  flex: 1 1 0; min-width: 0; height: clamp(340px, 27vw, 440px); border-radius: var(--cf-radius); overflow: hidden;
  text-decoration: none; color: #fff; box-shadow: var(--cf-shadow-sm);
  transition: flex-grow .38s cubic-bezier(.22,.75,.2,1);
}
.cf-category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cf-category-card.is-expanded { flex-grow: 1.5; }
.cf-category-card.is-expanded img { transform: scale(1.025); }
.cf-category-overlay { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(15,26,52,.15) 10%, rgba(8,15,32,.86) 100%); }
.cf-category-copy { position: relative; z-index: 2; padding: 22px; }
.cf-category-copy::before {
  content: ""; position: absolute; inset: -48px 0 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0, rgba(8,15,32,.68) 48px, rgba(8,15,32,.86) 100%);
}
.cf-category-copy strong { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.cf-category-copy span { display: block; color: rgba(255,255,255,.82); font-size: .8rem; line-height: 1.45; }
.cf-category-count {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 5px 10px; border-radius: 999px; background: #0d2345; border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: .66rem; font-weight: 780; letter-spacing: .03em; text-transform: uppercase;
  opacity: 0; transform: translateY(-4px); transition: all .2s ease; backdrop-filter: blur(4px);
}
.cf-category-card:is(.is-expanded, :focus-visible) .cf-category-count { opacity: 1; transform: translateY(0); }
html:not(.js) .cf-category-card:hover { flex-grow: 1.5; }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.cf-newsletter { margin-top: clamp(48px, 6vw, 84px); }
.cf-newsletter-inner {
  text-align: center; max-width: 620px; margin-inline: auto; padding: 48px 20px;
  border-radius: var(--cf-radius-lg); background: var(--cf-bg-soft); border: 1px solid var(--cf-border);
}
.cf-newsletter-inner h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cf-newsletter-inner > p { margin: 0 auto; max-width: 460px; color: var(--cf-muted); }
.cf-newsletter-form { display: flex; gap: 10px; margin: 24px auto 0; max-width: 440px; }
.cf-newsletter-form input {
  flex: 1; min-height: 50px; padding: 0 16px; border: 1px solid var(--cf-control-border); border-radius: 10px;
  background: var(--cf-paper); color: var(--cf-ink); font-size: .94rem;
}
.cf-newsletter-form input:focus { outline: 3px solid var(--cf-focus-color); outline-offset: 2px; border-color: var(--cf-focus-color); box-shadow: 0 0 0 2px var(--cf-focus-gap); }
.cf-newsletter-form button {
  min-height: 50px; padding: 12px 22px; border: 0; border-radius: 10px; background: var(--cf-button-bg);
  color: var(--cf-button-ink); font-weight: 780; font-size: .92rem; cursor: pointer; white-space: normal; overflow-wrap: anywhere;
}
.cf-newsletter-form button:hover { background: var(--cf-button-hover); }
.cf-newsletter-note { margin: 12px 0 0; color: var(--cf-muted); font-size: .78rem; }
.cf-newsletter-success { display: none; margin: 12px 0 0; color: var(--cf-success); font-size: .86rem; font-weight: 700; }
.cf-newsletter.is-sent .cf-newsletter-form,
.cf-newsletter.is-sent .cf-newsletter-note { display: none; }
.cf-newsletter.is-sent .cf-newsletter-success { display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.cf-site-footer { margin-top: clamp(56px, 7vw, 96px); }
.cf-footer-panel {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 52px);
  border: 1px solid var(--cf-border); border-radius: var(--cf-radius-lg);
  background: var(--cf-paper); box-shadow: var(--cf-shadow-sm);
}
.cf-footer-about p { margin: 16px 0 18px; color: var(--cf-muted); font-size: .9rem; line-height: 1.6; max-width: 380px; }
.cf-footer-social { display: flex; gap: 8px; margin-top: 18px; }
.cf-footer-social a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--cf-bg-soft); border: 1px solid var(--cf-border); color: var(--cf-ink); }
.cf-footer-social a:hover { background: var(--cf-accent-soft); color: var(--cf-accent-dark); }
.cf-footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.cf-footer-column h2 { margin: 0 0 16px; font-size: 1rem; }
.cf-footer-column ul { display: flex; flex-direction: column; gap: 10px; }
.cf-footer-column a { color: var(--cf-muted-strong); font-size: .89rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cf-footer-column a:hover { color: var(--cf-accent-dark); }
.cf-footer-column a svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.cf-footer-contacts dt { color: var(--cf-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-top: 12px; }
.cf-footer-contacts dt:first-child { margin-top: 0; }
.cf-footer-contacts dd { margin: 3px 0 0; font-weight: 680; }
.cf-footer-contacts dd a { color: var(--cf-ink); text-decoration: none; }
.cf-footer-contacts dd a:hover { color: var(--cf-accent-dark); }

.cf-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 22px clamp(24px, 4vw, 52px) 36px;
  color: var(--cf-muted); font-size: .82rem;
}
.cf-footer-bottom-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cf-footer-bottom-links a { color: var(--cf-muted); text-decoration: none; }
.cf-footer-bottom-links a:hover { color: var(--cf-accent-dark); }
.cf-to-top {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--cf-border-strong); background: var(--cf-paper); color: var(--cf-ink);
  font-size: .8rem; font-weight: 700; cursor: pointer;
}
.cf-to-top:hover { background: var(--cf-accent-soft); color: var(--cf-accent-dark); }
a.cf-to-top { text-decoration: none; }
.cf-to-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.cf-back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--cf-border); background: var(--cf-paper); color: var(--cf-ink);
  box-shadow: var(--cf-shadow); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.cf-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.cf-back-to-top:hover { background: var(--cf-button-bg); color: var(--cf-button-ink); border-color: var(--cf-button-bg); }
.cf-back-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ==========================================================================
   RESPONZIVNÍ CHOVÁNÍ
   ========================================================================== */
@media (max-width: 1180px) {
  .cf-content-grid { grid-template-columns: 56px minmax(0,1fr); }
  .cf-content-grid > .cf-sidebar { grid-column: 1 / -1; grid-row: 3; }
  .cf-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.cf-sidebar > .cf-widget:first-child { grid-column: auto; grid-row: auto; }
  .cf-article-list { grid-template-columns: 1fr; }
  .cf-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cf-category-card { height: 340px; }
}

@media (max-width: 1320px) {
  .cf-primary-nav {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 85;
    width: min(100%, 20rem); max-height: var(--cf-nav-available, calc(100dvh - 110px)); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    background: var(--cf-paper); padding: 10px; border-radius: var(--cf-radius);
    border: 1px solid var(--cf-border); box-shadow: var(--cf-shadow-pop);
    transform: translateY(-6px); opacity: 0; visibility: hidden; transition: all .18s ease;
  }
  .cf-primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; transition-property: transform, opacity; }
  .cf-nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .cf-nav-link { width: 100%; justify-content: space-between; min-height: 48px; white-space: normal; overflow-wrap: anywhere; }
  .cf-nav-link svg { flex-shrink: 0; }
  .cf-submenu, .cf-mega { position: static; box-shadow: none; margin-top: 4px; transform: none; width: 100%; min-width: 0; }
  .cf-mega-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-menu-toggle { display: inline-grid; }
  .cf-mobile-panel-link { display: block; }
}

.cf-nav-scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(8, 16, 32, .32);
  opacity: 0; pointer-events: none; transition: opacity .18s ease; backdrop-filter: blur(2px);
}
.cf-nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .cf-content-grid { grid-template-columns: 1fr; }
  .cf-view-tools { grid-column: 1; grid-row: 1; position: static; flex-direction: row; }
  .cf-content-grid > .cf-articles { grid-column: 1; grid-row: 2; }
  .cf-content-grid > .cf-sidebar { grid-column: 1; }
  .cf-sidebar { grid-template-columns: 1fr; }
  .cf-sidebar > .cf-widget:first-child { grid-row: auto; }
  .cf-footer-panel { grid-template-columns: 1fr; gap: 30px; }
  .cf-category-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-article-list[data-density="list"] .cf-article-card { flex-direction: column; }
  .cf-article-list[data-density="list"] .cf-article-media { width: 100%; flex: 0 0 auto; aspect-ratio: 16/10; }
}

@media (max-width: 620px) {
  .cf-wordmark { font-size: 1rem; gap: 6px; }
  .cf-wordmark-mark { width: 32px; flex-basis: 32px; height: 19.8857px; }
  .cf-icon-button svg { width: 17px; height: 17px; }
  .cf-category-grid { grid-template-columns: 1fr; gap: 16px; }
  .cf-category-card { height: 310px; }
  .cf-category-count { opacity: 1; transform: none; }
  .cf-carousel-copy { padding-inline: 20px; }
  .cf-mini-item img { width: 80px; height: 80px; }
  .cf-topic-pill { min-height: 44px; }
  .cf-newsletter-form { flex-direction: column; }
  .cf-article-list[data-density="titles"] .cf-article-copy { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ==========================================================================
   ŠABLONA JEDNOTLIVÉHO ČLÁNKU
   ========================================================================== */
.cf-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 28px 0 18px; color: var(--cf-muted); font-size: .84rem; font-weight: 620; }
.cf-breadcrumb a { color: var(--cf-muted-strong); text-decoration: none; }
.cf-breadcrumb a:hover { color: var(--cf-accent-dark); }
.cf-breadcrumb span[aria-current] { color: var(--cf-ink); font-weight: 700; }
.cf-breadcrumb svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }

.cf-post-header { padding-bottom: 26px; }
.cf-post-header .cf-feature-cats { margin-bottom: 14px; }
.cf-post-header .cf-cat-pill { background: var(--cf-accent-soft); border-color: var(--cf-accent-soft-strong); color: var(--cf-accent-dark); }
.cf-post-header h1 { margin: 0 0 16px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.16; letter-spacing: -.02em; color: var(--cf-ink-deep); overflow-wrap: anywhere; }
.cf-post-lead { margin: 0 0 20px; font-size: 1.06rem; line-height: 1.6; color: var(--cf-muted-strong); font-weight: 560; max-width: 780px; }
.cf-post-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--cf-border); }
.cf-post-author { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--cf-ink); }
.cf-post-author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.cf-post-author span { font-size: .87rem; font-weight: 720; }
.cf-post-meta-item { display: inline-flex; align-items: center; gap: 6px; color: var(--cf-muted); font-size: .84rem; font-weight: 620; }
.cf-post-meta-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cf-post-meta .cf-chip--sponsored { background: #81530b; color: #fff; }
.cf-post-score { margin-left: auto; }

.cf-post-hero { position: relative; margin-top: 24px; border-radius: var(--cf-radius-lg); overflow: hidden; box-shadow: var(--cf-shadow); }
.cf-post-hero img { width: 100%; max-height: 480px; object-fit: cover; }

.cf-post-toolbar {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: start;
  margin-top: 26px; padding: 18px 22px; border: 1px solid var(--cf-border); border-radius: var(--cf-radius);
  background: var(--cf-paper);
}
.cf-toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .84rem; font-weight: 780; color: var(--cf-muted-strong); }
.cf-toc-title svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.cf-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cf-toc a { color: var(--cf-muted-strong); font-size: .84rem; font-weight: 650; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.cf-toc a:hover { color: var(--cf-accent-dark); }
.cf-toc a.is-active { color: var(--cf-accent-dark); border-color: var(--cf-accent); }
.cf-toolbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.cf-share-row { display: flex; align-items: center; gap: 6px; }
.cf-share-row span { color: var(--cf-muted); font-size: .78rem; font-weight: 700; margin-right: 2px; }
.cf-share-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--cf-border); background: var(--cf-bg-soft); color: var(--cf-ink); cursor: pointer;
}
.cf-share-btn:hover { background: var(--cf-accent-soft); color: var(--cf-accent-dark); }
.cf-share-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.cf-copy-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--cf-border-strong); border-radius: 9px; background: var(--cf-paper);
  font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.cf-copy-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.cf-copy-link.is-copied { background: var(--cf-success-soft); border-color: var(--cf-success); color: var(--cf-success); }
.cf-font-toggle {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--cf-border); background: var(--cf-bg-soft); font-weight: 800; font-size: .76rem; cursor: pointer;
}
.cf-font-toggle:hover { background: var(--cf-accent-soft); color: var(--cf-accent-dark); }

.cf-post-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 28px; margin-top: 30px; align-items: start; }
.cf-post-main { min-width: 0; }
.cf-post-layout .cf-sidebar { position: sticky; top: var(--cf-sticky-offset); }

.cf-article-body { max-width: 72ch; margin-inline: auto; font-size: 1.125rem; color: var(--cf-reading-ink); overflow-wrap: break-word; }
.cf-article-body.cf-font-lg { font-size: 1.25rem; }
.cf-article-body h2 { margin: 34px 0 14px; font-size: 1.42rem; letter-spacing: -.01em; color: var(--cf-ink-deep); scroll-margin-top: 130px; }
.cf-article-body h2:first-child { margin-top: 0; }
.cf-article-body p { margin: 0 0 16px; line-height: 1.75; color: inherit; }
.cf-article-body :is(p, li) strong { color: inherit; }
.cf-article-body ul.cf-callout-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0 24px; padding: 0; }
.cf-article-body ul.cf-callout-list li {
  display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius); background: var(--cf-bg-soft); line-height: 1.6; color: var(--cf-reading-ink);
}
.cf-callout-list li::before {
  content: ""; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--cf-accent-soft); border: 1px solid var(--cf-accent-soft-strong);
}
.cf-callout-list li strong { color: inherit; }
.cf-callout-list li > span { min-width: 0; overflow-wrap: anywhere; }

.cf-blockquote {
  position: relative; margin: 26px 0; padding: 22px 26px 22px 30px; border-left: 3px solid var(--cf-accent);
  border-radius: 0 var(--cf-radius) var(--cf-radius) 0; background: var(--cf-bg-soft);
}
.cf-blockquote p { margin: 0 0 10px; font-size: 1.05rem; font-style: italic; color: var(--cf-reading-ink); line-height: 1.6; }
.cf-blockquote cite { display: block; font-size: .84rem; font-style: normal; font-weight: 650; color: var(--cf-muted); }
.cf-blockquote::before {
  content: "\201C"; position: absolute; top: 6px; right: 18px; font-size: 3.4rem; font-family: Georgia, serif;
  color: var(--cf-accent-soft-strong); line-height: 1;
}

.cf-tags-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 32px 0; padding-top: 22px; border-top: 1px solid var(--cf-border); }
.cf-tags-row > span { display: inline-flex; align-items: center; gap: 6px; color: var(--cf-muted); font-size: .82rem; font-weight: 700; }
.cf-tags-row svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cf-tag-pill { padding: 7px 13px; border-radius: 999px; background: var(--cf-bg-soft); border: 1px solid var(--cf-border); color: var(--cf-muted-strong); font-size: .8rem; font-weight: 650; text-decoration: none; }
.cf-tag-pill:hover { color: var(--cf-accent-dark); border-color: var(--cf-accent-soft-strong); background: var(--cf-accent-soft); }

/* -- Redakční hodnocení ---------------------------------------------------- */
.cf-rating-box { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: center; padding: 26px; border: 1px solid var(--cf-border); border-radius: var(--cf-radius-lg); background: var(--cf-paper); margin: 10px 0 30px; }
.cf-rating-box h2 { margin: 0 0 16px; font-size: 1.15rem; }
.cf-rating-row { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .86rem; }
.cf-rating-row span:first-child { font-weight: 680; color: var(--cf-ink); }
.cf-rating-row span:last-child { font-weight: 780; color: var(--cf-ink-deep); text-align: right; }
.cf-rating-bar { height: 7px; border-radius: 999px; background: var(--cf-bg-soft); overflow: hidden; }
.cf-rating-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--cf-accent); }
.cf-rating-overall { text-align: center; padding-left: 30px; border-left: 1px solid var(--cf-border); }
.cf-rating-overall strong { display: block; font-size: 2.6rem; line-height: 1; color: var(--cf-success); letter-spacing: -.02em; }
.cf-rating-overall span { display: block; margin-top: 6px; color: var(--cf-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.cf-summary-box { padding: 26px; border-radius: var(--cf-radius-lg); background: var(--cf-bg-soft); border: 1px solid var(--cf-border); margin-bottom: 30px; }
.cf-summary-box h2 { margin: 0 0 12px; font-size: 1.1rem; }
.cf-summary-box p { margin: 0 0 18px; color: var(--cf-muted-strong); line-height: 1.65; }
.cf-summary-box .cf-cta { background: var(--cf-brand-navy); }

/* -- Komentáře -------------------------------------------------------------- */
.cf-comments-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 20px; flex-wrap: wrap; }
.cf-comments-head h2 { margin: 0; font-size: 1.15rem; }
.cf-comments-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; color: var(--cf-accent-dark); font-weight: 750; font-size: .86rem; cursor: pointer; max-width: 100%; min-width: 0; min-height: 44px; white-space: normal; }
.cf-comments-toggle span { min-width: 0; overflow-wrap: anywhere; }
.cf-comments-toggle svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.cf-comments-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cf-comment-list { display: none; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.cf-comment-list.is-open { display: flex; }
.cf-comment { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--cf-border); border-radius: var(--cf-radius); }
.cf-comment img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cf-comment strong { display: block; font-size: .89rem; }
.cf-comment time { display: block; color: var(--cf-muted); font-size: .74rem; margin-bottom: 6px; }
.cf-comment p { margin: 0; color: var(--cf-muted-strong); font-size: .88rem; line-height: 1.55; }

.cf-reply-form { padding: 24px; border: 1px solid var(--cf-border); border-radius: var(--cf-radius-lg); background: var(--cf-paper); }
.cf-reply-form h2 { margin: 0 0 6px; font-size: 1.1rem; }
.cf-reply-form > p.cf-form-note { margin: 0 0 18px; color: var(--cf-muted); font-size: .82rem; }
.cf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cf-form-field.is-full { grid-column: 1 / -1; }
.cf-form-field label { font-size: .82rem; font-weight: 700; color: var(--cf-ink); }
.cf-form-field input, .cf-form-field textarea {
  padding: 11px 13px; border: 1px solid var(--cf-control-border); border-radius: 9px; background: var(--cf-paper);
  color: var(--cf-ink); font-size: .92rem; resize: vertical;
}
.cf-form-field input:focus, .cf-form-field textarea:focus { outline: 3px solid var(--cf-focus-color); outline-offset: 2px; border-color: var(--cf-focus-color); box-shadow: 0 0 0 2px var(--cf-focus-gap); }
.cf-form-check { grid-column: 1/-1; display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; font-size: .82rem; color: var(--cf-muted); }
.cf-reply-form button[type="submit"] {
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--cf-button-bg);
  color: var(--cf-button-ink); font-weight: 780; font-size: .9rem; cursor: pointer;
}
.cf-reply-form button[type="submit"]:hover { background: var(--cf-button-hover); }
.cf-reply-success { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--cf-success-soft); color: var(--cf-success); font-size: .86rem; font-weight: 700; }
.cf-reply-form.is-sent .cf-reply-success { display: block; }
.cf-reply-form.is-sent form { display: none; }

/* -- Prev / next navigace mezi články -------------------------------------- */
.cf-post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0; }
.cf-pager-link { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--cf-border); border-radius: var(--cf-radius); text-decoration: none; color: var(--cf-ink); }
.cf-pager-link img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.cf-pager-link span.cf-pager-label { display: block; color: var(--cf-muted); font-size: .72rem; font-weight: 780; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.cf-pager-link strong { display: block; font-size: .88rem; line-height: 1.35; }
.cf-pager-next { text-align: right; flex-direction: row-reverse; }
.cf-pager-link:hover strong { color: var(--cf-accent-dark); }

.cf-related { margin-top: 46px; }

@media (max-width: 1180px) {
  .cf-post-layout { grid-template-columns: 1fr; }
  .cf-post-layout .cf-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); display: grid; }
}
@media (max-width: 900px) {
  .cf-post-toolbar { grid-template-columns: 1fr; }
  .cf-rating-box { grid-template-columns: 1fr; }
  .cf-rating-overall { border-left: 0; border-top: 1px solid var(--cf-border); padding: 18px 0 0; }
  .cf-form-grid { grid-template-columns: 1fr; }
  .cf-post-pager { grid-template-columns: 1fr; }
  .cf-post-layout .cf-sidebar { grid-template-columns: 1fr; }
  .cf-related .cf-article-list { grid-template-columns: 1fr !important; }
}

/* Klávesnice, textové zvětšení a vypnutý JavaScript. */
.cf-article-card, .cf-feature-cats, .cf-footer-column { min-width: 0; }
.cf-carousel-copy, .cf-category-copy, .cf-mini-copy { overflow-wrap: break-word; }
.cf-feature-cats { flex-wrap: wrap; }

html:not(.js) .cf-toggle-switch, html:not(.js) .cf-poll form { pointer-events: none; }
.cf-newsletter-form button:disabled, .cf-newsletter-form input:disabled { cursor: not-allowed; opacity: .68; }
a[aria-disabled="true"] { cursor: default; opacity: .6; }
.cf-prototype-note { margin: 14px 0 0; color: var(--cf-muted); font-size: .75rem; line-height: 1.5; }
.cf-poll-foot { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   VERZE 6 — čitelnost, místní náhledy a odolné ovládání
   ========================================================================== */

body.admin-bar { --cf-adminbar-offset: 32px; }
.cf-site-header { top: calc(10px + var(--cf-adminbar-offset)); }
.cf-view-tools,
.cf-post-layout .cf-sidebar { top: var(--cf-sticky-offset); }
.cf-quick-panel { top: calc(16px + var(--cf-adminbar-offset)); }

/* Pevné komponenty nesmějí nutit obsah mimo šířku okna. */
.cf-header-inner, .cf-header-actions, .cf-post-toolbar > *,
.cf-post-layout > *, .cf-footer-panel > *, .cf-form-field,
.cf-category-grid, .cf-feature-copy, .cf-dialog-body { min-width: 0; }
.cf-card-footer, .cf-feature-badges, .cf-toolbar-actions,
.cf-reading-tools, .cf-cookie-actions { flex-wrap: wrap; }
.cf-newsletter-inner { width: 100%; }
.cf-newsletter-form input, .cf-form-field input, .cf-form-field textarea {
  min-width: 0; width: 100%;
}
.cf-cta, .cf-load-more, .cf-reply-form button[type="submit"] {
  justify-content: center; text-align: center; white-space: normal;
  line-height: 1.35; padding-block: 10px;
}
.cf-card-more, .cf-copy-link { min-height: 44px; }
.cf-share-btn, .cf-font-toggle { width: 44px; height: 44px; }
.cf-share-row { flex-wrap: wrap; }
.cf-cat-pill { max-width: 100%; white-space: normal; line-height: 1.35; padding-block: 4px; }
.cf-media-cats { max-width: calc(100% - 24px); }
.cf-feature-content { gap: 56px; }
.cf-feature-footer > span { overflow-wrap: anywhere; }
.cf-breadcrumb { overflow-wrap: anywhere; }
.cf-section-heading { flex-wrap: wrap; }
.cf-section-heading > a { white-space: normal; }

.cf-category-card { height: auto; min-height: clamp(340px, 27vw, 440px); }

/* Kontroly karuselu mají vlastní řádek pod fotografií a nikdy nepřekrývají štítky. */
.cf-carousel { isolation: isolate; }
.cf-carousel-copy { padding-bottom: 22px; }
.cf-carousel-controls { border-top: 1px solid rgba(255,255,255,.1); padding-top: 4px; }
.cf-carousel-controls button:focus-visible { outline-offset: -4px; }
.cf-carousel-copy .cf-feature-cats { gap: 6px; }
.cf-carousel-dots button { min-width: 24px; }
.cf-mini-meta { flex-wrap: wrap; gap: 6px 10px; }
.cf-mini-item { align-items: flex-start; }

/* Vyhledávání: rubrika i stav jsou čitelné bez nejednoznačných ikon. */
.cf-search-panel { max-height: calc(100dvh - var(--cf-header-h) - 40px); overflow-y: auto; }
.cf-search-results { overscroll-behavior: contain; }
.cf-search-results .cf-search-result { min-height: 52px; padding: 12px 10px; }
.cf-search-result-category { display: block; margin-top: 4px; color: var(--cf-muted); font-size: .75rem; font-weight: 600; }
.cf-search-results p { margin: 10px 6px; color: var(--cf-muted-strong); font-size: .875rem; }
.cf-search-clear:disabled { opacity: .55; cursor: default; }
.cf-card-date, .cf-topic-note { color: var(--cf-muted); font-size: .78rem; font-weight: 650; }
span.cf-card-author { font-size: .78rem; font-weight: 700; }
.cf-mega-label { display: block; color: var(--cf-muted); font-size: .72rem; font-weight: 650; }
.cf-poll-note, .cf-editorial-note { margin: 0 0 16px; color: var(--cf-muted); font-size: .875rem; line-height: 1.65; }
.cf-editorial-link { color: var(--cf-accent-dark); font-size: .875rem; font-weight: 750; text-underline-offset: .18em; }

/* Články a běžné bloky editoru. Navigační reset se na ně nevztahuje. */
:where(.cf-article-body, .editor-styles-wrapper) :is(ul, ol):not(.cf-callout-list) {
  margin-block: 1.1em 1.35em; padding-inline-start: 1.5em;
}
:where(.cf-article-body, .editor-styles-wrapper) ul:not(.cf-callout-list) { list-style: disc; }
:where(.cf-article-body, .editor-styles-wrapper) ol { list-style: decimal; }
:where(.cf-article-body, .editor-styles-wrapper) :is(ul, ol):not(.cf-callout-list) > li {
  margin-block: .45em; padding-inline-start: .15em; line-height: 1.7;
}
.cf-article-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.35; }
.cf-article-body h3 { margin: 1.8em 0 .65em; font-size: 1.2rem; line-height: 1.4; }
.cf-article-body a:not([class]) {
  color: var(--cf-accent-dark); text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.cf-article-body a:not([class]):hover { text-decoration-thickness: 2px; }
.cf-has-toc { scroll-padding-top: 0; }
.cf-article-body :is(h2, h3, h4, [id]) { scroll-margin-top: var(--cf-toc-offset, calc(var(--cf-header-h) + 44px + var(--cf-adminbar-offset))); }
.cf-post-main > :is(.cf-tags-row, .cf-summary-box, .cf-editorial-meta, .cf-editorial-record, .cf-reply-form) {
  max-width: 81ch; margin-inline: auto;
}
.cf-editorial-meta, .cf-editorial-record {
  display: grid; gap: 10px; padding: 20px 22px; margin-block: 24px;
  border: 1px solid var(--cf-border); border-radius: var(--cf-radius);
  background: var(--cf-paper); color: var(--cf-muted-strong); font-size: .875rem; line-height: 1.65;
}
.cf-editorial-meta :is(p, dd), .cf-editorial-record :is(p, dd) { margin: 0; }
.cf-editorial-meta dt, .cf-editorial-record dt { color: var(--cf-ink-deep); font-weight: 750; }
.cf-editorial-meta :is(a, strong), .cf-editorial-record strong { color: var(--cf-ink-deep); }
.cf-editorial-meta h2, .cf-editorial-record h2 { margin: 0 0 4px; font-size: 1rem; }
.cf-post-header > .cf-editorial-record { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cf-editorial-record > div { min-width: 0; }
.cf-editorial-record dd { margin-top: 3px; overflow-wrap: anywhere; }
.cf-editorial-status {
  padding: 12px 16px; margin-block: 14px 0; border-left: 3px solid var(--cf-accent);
  border-radius: 0 9px 9px 0; background: var(--cf-accent-soft);
  color: var(--cf-muted-strong); font-size: .875rem; line-height: 1.6;
}
.cf-editorial-status strong { color: var(--cf-ink-deep); }
.cf-editorial-status span { display: block; margin-top: 3px; }
.cf-table-wrap, .cf-comparison-table-wrap, .cf-article-body .wp-block-table {
  max-width: 100%; margin-block: 22px; overflow-x: auto;
  overscroll-behavior-inline: contain; scrollbar-width: thin;
  border: 1px solid var(--cf-border-strong); border-radius: 10px;
}
:is(.cf-table-wrap, .cf-comparison-table-wrap, .cf-article-body .wp-block-table) table {
  width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; line-height: 1.6;
}
.cf-comparison-table caption { padding: 14px 16px; text-align: left; color: var(--cf-ink-deep); font-weight: 750; }
.cf-article-body :is(.cf-table-wrap, .cf-comparison-table-wrap, .wp-block-table) :is(td, tbody th) { color: var(--cf-reading-ink); }
:is(.cf-table-wrap, .cf-comparison-table-wrap, .cf-article-body .wp-block-table) :is(th, td) {
  min-width: 9rem; padding: 14px 16px; border-bottom: 1px solid var(--cf-border); vertical-align: top;
}
:is(.cf-table-wrap, .cf-comparison-table-wrap, .cf-article-body .wp-block-table) th {
  background: var(--cf-bg-soft); color: var(--cf-ink-deep); font-weight: 750;
}
:is(.cf-table-wrap, .cf-comparison-table-wrap, .cf-article-body .wp-block-table) tr:last-child td { border-bottom: 0; }
.cf-reply-form h3 { margin: 0 0 6px; font-size: 1.1rem; }
.cf-related { container-type: inline-size; }
/* Floating controls need enough room beyond the widest article container. */
@media (max-width: 1536px) {
  .cf-article-page :is(.cf-back-to-top, .cf-edge-tab) { display: none; }
}
.cf-related .cf-article-list[data-density="grid"] { grid-template-columns: minmax(0, 1fr); }
.cf-related .cf-article-copy { min-width: 0; overflow-wrap: anywhere; }
@container (min-width: 14rem) and (max-width: 47.999rem) {
  .cf-related .cf-article-card { display: grid; grid-template-columns: 30% minmax(0, 1fr); }
  .cf-related .cf-article-media { aspect-ratio: auto; min-height: 140px; }
  .cf-related .cf-media-cats { display: none; }
  .cf-related .cf-article-copy { padding: 16px; gap: 8px; }
}
@container (min-width: 48rem) {
  .cf-related .cf-article-list[data-density="grid"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.cf-reading-tools { display: flex; align-items: center; gap: 8px; }
.cf-reading-progress {
  position: fixed; top: var(--cf-adminbar-offset); inset-inline: 0;
  height: 3px; z-index: 110; pointer-events: none; background: transparent;
}
.cf-reading-progress > :is(span, div) {
  display: block; height: 100%; width: var(--cf-progress, 0%); background: var(--cf-accent);
}

/* Místní náhledy používají nativní dialog, včetně jeho modalit a Escape. */
.cf-dialog {
  width: min(640px, calc(100% - 32px)); max-height: min(86dvh, 850px);
  padding: 0; border: 1px solid var(--cf-border-strong); border-radius: var(--cf-radius-lg);
  background: var(--cf-paper); color: var(--cf-ink); box-shadow: var(--cf-shadow-pop);
  overflow-y: auto; overscroll-behavior: contain;
}
.cf-dialog::backdrop { background: rgba(8,16,32,.58); backdrop-filter: blur(3px); }
.cf-dialog-body { padding: clamp(22px, 4vw, 34px); overflow-wrap: anywhere; }
.cf-dialog-body > :is(h1, h2):first-child { padding-right: 44px; }
.cf-dialog-body :is(h1, h2) { margin: 0 0 16px; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.35; }
.cf-dialog-body h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.cf-dialog-body p { margin: 0 0 16px; color: var(--cf-muted-strong); line-height: 1.7; }
.cf-dialog-body > :last-child { margin-bottom: 0; }
.cf-dialog-body img { width: 100%; max-height: 280px; margin: 18px 0; border-radius: 12px; object-fit: cover; }
.cf-dialog-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border: 1px solid var(--cf-border);
  border-radius: 10px; background: var(--cf-bg-soft); color: var(--cf-ink); cursor: pointer;
  font-size: 1.5rem; line-height: 1;
}
.cf-dialog-close:hover { background: var(--cf-accent-soft); }
.cf-dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.cf-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.cf-dialog-actions > :is(a, button) { min-height: 44px; }
.cf-form-status {
  margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--cf-border-strong);
  border-radius: 10px; background: var(--cf-accent-soft); color: var(--cf-ink);
  font-size: .875rem; line-height: 1.6;
}
.cf-form-status:empty { display: none; }

@media (max-width: 1180px) {
  .cf-content-grid > .cf-sidebar, .cf-post-layout .cf-sidebar {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px;
  }
  .cf-sidebar > .cf-widget:first-child { grid-row: auto; }
  .cf-post-main { max-width: 100%; }
  .cf-category-card { min-height: 340px; }
}
@media (max-width: 900px) {
  .cf-content-grid > .cf-sidebar, .cf-post-layout .cf-sidebar { grid-template-columns: 1fr; }
  .cf-post-layout .cf-sidebar { gap: 30px; }
  .cf-post-toolbar { gap: 18px; }
  .cf-toolbar-actions { gap: 10px; }
}
@media (max-width: 782px) {
  body.admin-bar { --cf-adminbar-offset: 46px; }
}
@media (max-width: 620px) {
  :root { --cf-header-h: 68px; }
  .cf-container { width: calc(100% - 28px); }
  .cf-site-header { width: calc(100% - 20px); margin-top: 10px; }
  .cf-header-inner { padding: 8px 10px; gap: 4px 8px; flex-wrap: wrap; }
  .cf-header-actions { gap: 4px; margin-left: auto; }
  .cf-header-actions .cf-icon-button { width: 44px; height: 44px; }
  .cf-header-drawer-toggle { display: none; }
  .cf-theme-toggle {
    width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 10px;
  }
  .cf-theme-toggle::before { display: none; }
  .cf-theme-toggle span { width: 42px; height: 42px; }
  .cf-theme-toggle span:last-child { display: none; }
  html[data-theme="dark"] .cf-theme-toggle span:first-child { display: none; }
  html[data-theme="dark"] .cf-theme-toggle span:last-child { display: inline-grid; }
  .cf-primary-nav { right: 0; width: min(320px, calc(100vw - 20px)); max-height: calc(100dvh - 100px); }
  .cf-nav-link { white-space: normal; }
  .cf-submenu { min-width: 0; }
  .cf-search-panel { width: calc(100vw - 20px); max-height: calc(100dvh - 100px); padding: 14px; }
  .cf-search-field-row { gap: 4px; padding-left: 10px; }
  .cf-search-clear { padding-inline: 8px; }
  .cf-quick-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 22px 20px 28px; border-radius: 18px; }
  .cf-edge-tab { width: 28px; height: 56px; }
  .cf-hero { padding-top: 30px; }
  .cf-eyebrow { font-size: .7rem; padding: 7px 11px; }
  .cf-featured { margin-top: 26px; }
  .cf-feature-content { padding: 22px 20px; gap: 44px; }
  .cf-feature-card, .cf-feature-content { min-height: 430px; }
  .cf-content-grid { margin-top: 36px; gap: 22px; }
  .cf-category-card { min-height: 310px; }
  .cf-article-copy { padding: 18px; }
  .cf-post-toolbar { padding: 18px; }
  .cf-post-meta { gap: 12px; }
  .cf-post-header > .cf-editorial-record { grid-template-columns: 1fr; gap: 14px; }
  .cf-post-lead { font-size: 1.06rem; }
  .cf-article-body { font-size: 1.125rem; }
  .cf-article-body.cf-font-lg { font-size: 1.25rem; }
  .cf-callout-list li { padding: 12px !important; gap: 10px !important; }
  .cf-summary-box, .cf-reply-form, .cf-editorial-meta, .cf-editorial-record { padding: 20px; }
  .cf-newsletter-inner { padding: 32px 18px; }
  .cf-footer-panel { padding: 28px 22px; }
  .cf-footer-bottom { padding-inline: 8px; }
  .cf-back-to-top { right: 16px; bottom: 16px; }
}
@media (max-width: 400px) {
  .cf-header-inner { padding-inline: 8px; gap: 6px; }
  .cf-wordmark { font-size: .9rem; gap: 4px; }
  .cf-wordmark-mark { width: 28px; height: 17.4px; flex-basis: 28px; }
  .cf-header-actions { gap: 3px; }
  .cf-carousel-controls { padding-inline: 8px; }
  .cf-carousel-dots button { width: 24px; }
  .cf-category-copy { padding: 20px; }
}
@media (max-width: 360px) {
  .cf-feature-badges { gap: 6px; }
  .cf-chip { padding-inline: 9px; }
}
@media (max-width: 600px) {
  /* Mobilní administrátorská lišta WordPressu při rolování nezůstává pevná. */
  body.admin-bar .cf-site-header { top: 10px; }
  body.admin-bar .cf-reading-progress { top: 0; }
}
@media (hover: none) {
  .cf-article-card:hover { transform: none; }
  .cf-article-card:hover .cf-article-media img,
  .cf-feature-card:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-category-card.is-expanded { flex-grow: 1; }
  .cf-category-card.is-expanded img, .cf-feature-card:hover img,
  .cf-article-card:hover .cf-article-media img { transform: none; }
}
@media (forced-colors: active) {
  .cf-icon-button, .cf-topic-pill, .cf-cat-pill, .cf-share-btn,
  .cf-cta, .cf-dialog-close, .cf-carousel-controls button { border: 1px solid ButtonText; }
  :focus-visible { outline-color: Highlight; }
}

/* Final integration: mobile drawer access belongs in the menu, leaving reading controls unobstructed. */
.js #informace-pracovni-verze { display: none; }
html:not(.js) :is(.cf-search-toggle, .cf-theme-toggle, .cf-menu-toggle, .cf-header-drawer-toggle, .cf-edge-tab, .cf-view-tools, .cf-topic-pause, .cf-carousel-prev, .cf-carousel-next, .cf-carousel-dots, .cf-comments-toggle, .cf-font-toggle, .cf-share-row, .cf-copy-link, .cf-load-more, .cf-back-to-top) { display: none; }
.cf-dialog textarea { display: block; width: 100%; min-height: 96px; margin-top: 8px; padding: 12px; border: 1px solid var(--cf-control-border); border-radius: 8px; background: var(--cf-paper); color: var(--cf-ink); font: inherit; resize: vertical; overflow-wrap: anywhere; }
.cf-dialog textarea:focus { outline: 3px solid var(--cf-focus-color); outline-offset: 2px; border-color: var(--cf-focus-color); box-shadow: 0 0 0 2px var(--cf-focus-gap); }
.cf-dialog label { font-weight: 650; }
.cf-comment-preview { margin: 16px 0 0; padding: 16px; border-left: 3px solid var(--cf-accent); background: var(--cf-bg-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 620px) { .cf-edge-tab { display: none; } }

/* A text-size-aware header: rem responds to enlarged text while px viewport
   breakpoints alone would keep the crowded desktop navigation visible. */
@container cf-header (max-width: 82.5rem) {
  .cf-primary-nav {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 85;
    width: min(100%, 20rem); max-height: var(--cf-nav-available, calc(100dvh - 110px));
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    background: var(--cf-paper); padding: 10px; border-radius: var(--cf-radius);
    border: 1px solid var(--cf-border); box-shadow: var(--cf-shadow-pop);
    transform: translateY(-6px); opacity: 0; visibility: hidden;
    transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
  }
  .cf-primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; transition-property: transform, opacity; }
  .cf-nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .cf-nav-link { width: 100%; justify-content: space-between; min-height: 48px; white-space: normal; overflow-wrap: anywhere; }
  .cf-nav-link svg { flex-shrink: 0; }
  .cf-submenu, .cf-mega { position: static; box-shadow: none; margin-top: 4px; transform: none; width: 100%; min-width: 0; }
  .cf-mega-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-menu-toggle { display: inline-grid; }
  .cf-mobile-panel-link { display: block; }
}
.cf-mega-item > span { min-width: 0; overflow-wrap: anywhere; }
.cf-mega-foot { flex-wrap: wrap; }

/* Without scripts, show the actual destinations in normal document flow.
   A long expanded header must not remain sticky above the article. */
html:not(.js) .cf-site-header { position: static; backdrop-filter: none; }
html:not(.js) .cf-primary-nav {
  position: static; flex: 1 0 100%; order: 3; width: 100%; max-height: none;
  visibility: visible; opacity: 1; transform: none; overflow: visible;
}
html:not(.js) .cf-nav-list { flex-direction: column; align-items: stretch; }
html:not(.js) .cf-nav-link { width: 100%; white-space: normal; overflow-wrap: anywhere; }
html:not(.js) :is(.cf-submenu, .cf-mega) {
  display: block !important; position: static; width: 100%; min-width: 0;
  transform: none; box-shadow: none; margin-block: 4px 12px;
}
html:not(.js) .cf-mega-grid { grid-template-columns: minmax(0, 1fr); }
html:not(.js) :is(.cf-header-actions, .cf-mobile-panel-link) { display: none; }

/* Only the suffix may wrap at extreme text enlargement; the name stays intact. */
@media (max-width: 620px) {
  .cf-wordmark-name { white-space: normal; }
  .cf-wordmark-dot { display: inline-block; }
}
