/* MindQ – společné styly webu. Vzhled jednotlivých prvků je přímo v HTML (atribut style),
   tady je jen to, co do atributu nejde: šířky okna, stavy hover a focus, cookie okno. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: #06070d; }

/* Podmíněný obsah: obal nemá vlastní rámeček, takže rozvržení nemění. */
dc-if { display: contents; }
dc-if[hidden] { display: none !important; }

/* Navigace: pod 1240 px výsuvné menu. */
@media (width < 1240px) { dc-if[data-dc-mq="wide"] { display: none !important; } }
@media (min-width: 1240px) { dc-if[data-dc-mq="narrow"] { display: none !important; } }

/* Ruční zalomení řádku z návrhu platí jen tam, kde má stránka rozložení jako na desktopu (od 1240 px). */
@media (max-width: 1239px) { .mq-br { display: none; } }

/* Otevřené mobilní menu se posouvá samo a stránka pod ním stojí. */
html.mq-menu-open { overflow: hidden; }
dc-if[data-dc-if="drawer"] > div { max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain; }
@supports (height: 100dvh) {
  dc-if[data-dc-if="drawer"] > div { min-height: calc(100dvh - 72px) !important; max-height: calc(100dvh - 72px); }
}

/* Stavy tlačítek a odkazů podle stránky Komponenty v návrhu. */
.b-grad, .b-pri, .b-sec, .b-ghost { transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
@media (hover: hover) {
  .b-grad:hover { transform: translateY(-1px); }
  .b-ghost:hover { background: rgba(255, 255, 255, 0.08) !important; }
  .b-sec:hover { background: #f1f3f9 !important; border-color: #7a8398 !important; }
  .b-pri:hover { background: #1c2340 !important; border-color: #1c2340 !important; }
  .l-text:hover { text-decoration: underline !important; text-underline-offset: 4px; }
}
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #1847b3; outline-offset: 2px; }
.on-dark:focus-visible { outline-color: #a9b8ff; }
.l-text:focus-visible { border-radius: 4px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus-visible,
textarea:focus-visible,
select:focus-visible { outline: none; border-color: #1847b3 !important; box-shadow: 0 0 0 3px rgba(51, 113, 255, 0.28) !important; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid #1847b3; outline-offset: 2px; }
button:disabled { opacity: 0.6; cursor: default; }

/* Cookie lišta je vidět, dokud návštěvník nevybral. */
#mq-cookies { display: none; }
html.mq-ask #mq-cookies { display: block; }

/* Okno Nastavení cookies (texty i chování převzaté ze současného webu). */
.mq-ck { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 16px; background: #0d101c; color: #d5d9e6; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.6; }
.mq-ck::backdrop { background: rgba(6, 7, 13, 0.6); }
.mq-ck-box { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mq-ck-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mq-ck-head h2 { margin: 0; font-family: Manrope, Inter, system-ui, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; color: #ffffff; }
.mq-ck-x { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #eef0f7; font-size: 24px; line-height: 1; cursor: pointer; }
.mq-ck-x:focus-visible, .mq-ck-save:focus-visible { outline-color: #a9b8ff; }
.mq-ck-desc { margin: 0; font-size: 14.5px; line-height: 1.55; }
.mq-ck-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.mq-ck-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mq-ck-row strong { font-weight: 600; color: #ffffff; }
.mq-ck-row span span { font-size: 14px; line-height: 1.5; color: #c9cfdf; }
.mq-ck-row input { flex: none; width: 22px; height: 22px; accent-color: #7c8cff; }
.mq-ck-actions { display: flex; justify-content: flex-end; padding-top: 6px; }
.mq-ck-save { min-height: 44px; padding: 0 18px; border: 1px solid #eef0f7; border-radius: 12px; background: #eef0f7; color: #06070d; font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }

/* Hláška, když se formulář nepodaří odeslat. */
.mq-send-error { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: #b3261e; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.mq-reading { background: #f7f8fb; color: #0b1020; padding: 48px max(24px, calc((100% - 1184px) / 2)); }
.mq-reading h2 { font: 700 clamp(24px, 3vw, 36px)/1.2 Manrope, sans-serif; margin: 0 0 20px; }
.mq-reading ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px 32px; list-style: none; padding: 0; margin: 0; }
.mq-reading a { display: block; color: #1847b3; font-weight: 600; text-underline-offset: .2em; }

/* Stavy navržené přímo na prvcích. */
.ps1:focus-within { outline: 2px solid #1847b3 !important; outline-offset: 2px !important; }

.mq-legal-page { background: #f7f8fb; }
.mq-legal { max-width: 1000px; margin: 0 auto; padding: 64px 24px 88px; color: #252d42; font-family: Inter, sans-serif; line-height: 1.7; overflow-wrap: anywhere; }
.mq-legal h1, .mq-legal h2 { font-family: Manrope, sans-serif; color: #0b1020; line-height: 1.25; }
.mq-legal h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 20px; }
.mq-legal h2 { font-size: 23px; margin: 36px 0 12px; }
.mq-legal p { margin: 12px 0; }
.mq-legal ul, .mq-legal ol { padding-left: 24px; }
.mq-legal li { margin: 8px 0; }
.mq-legal a { color: #1847b3; text-decoration: underline; text-underline-offset: 3px; }
.mq-legal button { padding: 12px 20px; background: #0b1020; color: white; border: 0; border-radius: 10px; font: inherit; cursor: pointer; }
.mq-legal table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.mq-legal th, .mq-legal td { text-align: left; padding: 12px; border: 1px solid #d7dce7; }
.mq-legal header > p { color: #525a72; font-size: 14px; }
.mq-skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; background: #fff; color: #1847b3; transform: translateY(-150%); }
.mq-skip:focus { transform: none; }
.mq-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* Doplněk k integration/legal.css pro nové zásady (úvodní věta, rámeček „Krátce“, obsah stránky, podnadpisy). */
.mq-legal-lead { margin: 0 0 24px; font-size: 18px; color: #252d42; }
.mq-legal-box { margin: 0 0 28px; padding: 20px 24px; background: #fff; border: 1px solid #d7dce7; border-radius: 16px; }
.mq-legal-box p { margin: 0 0 8px; }
.mq-legal-box ul { margin: 0; }
.mq-legal-toc ol { margin: 0 0 12px; padding-left: 24px; columns: 2; column-gap: 32px; }
@media (max-width: 720px) { .mq-legal-toc ol { columns: 1; } }
.mq-legal h3 { margin: 28px 0 8px; font-family: Manrope, sans-serif; font-size: 19px; line-height: 1.3; color: #0b1020; }
.mq-legal th, .mq-legal td { vertical-align: top; }
