

/* ======================================================================
   Look D, main page (body.t-mapa): white, teal, line-drawing hero, region map.
   ====================================================================== */
body.t-mapa {
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #ffffff; --surface: #ffffff; --soft: #f4f7f6; --line: #dfe6e5;
  --ink: #10201e; --muted: #45585a; --accent: #0f766e; --accent-ink: #ffffff;
  --hero-light: #ffd166;
  font-size: 17px; line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  body.t-mapa { --bg: #0e1715; --surface: #15211f; --soft: #15211f; --line: #2a3a37; --ink: #e6efed; --muted: #a3b5b2; --accent: #5fd0c2; --accent-ink: #0e1715; }
}
body.t-mapa .wrap { max-width: 1180px; gap: 22px; }
body.t-mapa .panel { border-radius: 16px; padding: 18px 20px; }
body.t-mapa .panel#hledat { background: var(--soft); border-color: transparent; }
body.t-mapa .card { border-radius: 16px; border-left-width: 1px; padding: 16px 18px; }
body.t-mapa .sectitle { font-size: 1.6rem; }
body.t-mapa .field select, body.t-mapa .field input[type="search"] { background: var(--surface); border-radius: 10px; padding: 10px 12px; }

.brand-d { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; display: flex; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-d .mark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); display: inline-block; }

/* Hero: text + line drawing (look I). Light, no banner image. */
.line-hero { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 16px clamp(16px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; }
.line-hero .txt { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.line-hero .kicker { margin: 0; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--accent); }
.line-hero h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.02; max-width: 13ch; margin: 0; }
.line-hero .lede-d { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.22rem); max-width: 48ch; color: var(--muted); }
.line-hero .note { margin: 0; font-size: 0.86rem; color: var(--muted); max-width: 62ch; }
.line-hero .cta { background: var(--accent); color: var(--accent-ink); }
.line-hero .art { flex: 1 1 380px; min-width: 0; width: 100%; max-width: 560px; height: auto; display: block; }
.line-hero .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.line-hero .f-soft { fill: var(--soft); }
.line-hero .f-surf { fill: var(--surface); }
.line-hero .f-tint { fill: #e6f2f0; }
.line-hero .f-acc { fill: var(--accent); }
.line-hero .f-sun { fill: var(--hero-light); }
@media (prefers-color-scheme: dark) { .line-hero .f-tint { fill: #1d2e2b; } }
@media (max-width: 620px) { .line-hero .art { max-width: 380px; } }

/* Main nav, same pattern as the mental-health pages: brand left, links right. "Obory" opens a dropdown. */
.d-nav { position: relative; max-width: 1140px; margin: 0 auto; padding: 18px 16px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
/* The link row has the same width as on the mental-health pages (--nav-links-w in vlidna.css), so "Všechny obory" sits on the same spot on every page. */
.d-links { width: min(530px, 100%); display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-weight: 600; }
.d-links a, .d-obory { font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; padding: 4px 0; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; }
.d-links a:hover, .d-obory:hover { border-bottom-color: #a8d5cd; }
.d-links a[aria-current="page"], .d-obory[aria-expanded="true"] { border-bottom-color: var(--accent); }
.d-obory .chev { display: inline-block; transition: transform 0.25s ease; }
.d-obory[aria-expanded="true"] .chev { transform: rotate(180deg); }
.d-links a:focus-visible, .d-obory:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.d-drop { position: absolute; z-index: 50; top: calc(100% + 10px); right: 16px; transform-origin: calc(100% - 60px) -8px; width: min(420px, calc(100vw - 32px)); margin: 0; background: var(--menu-bg); border-radius: 24px; padding: 12px; box-shadow: 0 18px 44px rgba(6,30,27,0.28); box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  .d-drop:not([hidden]):not(.closing) { animation: mn-drop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .d-drop.closing { animation: d-out 0.2s cubic-bezier(0.4, 0, 1, 1) both; }
  .d-drop.closing .sw-search, .d-drop.closing .sw-bubble { animation: none; }
}
@keyframes d-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(0.95); } }

/* Region map: 14 regions laid out roughly where they are */
.krajmap-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.krajmap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 96px; gap: 8px; margin-top: 12px; }
.krajmap button { font: inherit; text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; color: #10201e; background: #e6f2f0; min-height: 56px; }
.krajmap button[data-tone="2"] { background: #cfe7e3; }
.krajmap button[data-tone="3"] { background: #a8d5cd; }
.krajmap button .k { font-weight: 600; font-size: 0.93rem; line-height: 1.2; }
.krajmap button .n { font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.krajmap button:hover { box-shadow: inset 0 0 0 2px #0f766e; }
.krajmap button[aria-pressed="true"] { background: #0f766e; color: #ffffff; box-shadow: 0 0 0 3px var(--ink); }
.krajmap button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .krajmap { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .krajmap button { grid-column: auto !important; grid-row: auto !important; }
}

/* Quick field buttons above the filters */
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.quick button { font: inherit; font-weight: 600; font-size: 0.95rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; min-height: 44px; cursor: pointer; }
.quick button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.quick button:disabled { opacity: 0.5; cursor: not-allowed; }
.quick-msg { margin: -6px 0 12px; font-size: 0.92rem; color: var(--muted); }

/* ---- Menu tab beside the brand. Opens a teal panel; "Obory" (white) sits at its bottom and opens the search bubble + specialised pages. ---- */
body.t-mapa { --menu-bg: #0f766e; }
@media (prefers-color-scheme: dark) { body.t-mapa { --menu-bg: #0b4f4a; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar .left { display: flex; align-items: center; gap: 12px 16px; position: relative; }
.mn-btn { font: inherit; font-weight: 600; font-size: 0.93rem; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px 0 9px; line-height: 1; border-radius: 999px; border: 1px solid var(--menu-bg); background: transparent; color: var(--menu-bg); cursor: pointer; }
@media (prefers-color-scheme: dark) { .mn-btn { color: var(--accent); border-color: var(--accent); } }
.mn-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mn-btn svg path { transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: 12px 12px; }
.mn-btn[aria-expanded="true"] { background: var(--menu-bg); color: #ffffff; border-color: var(--menu-bg); }
.mn-btn[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); }
.mn-btn[aria-expanded="true"] .b2 { opacity: 0; }
.mn-btn[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }
.mn-btn:focus-visible, .mn-obory:focus-visible, .mn-links a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.mn-panel { position: absolute; z-index: 50; top: calc(100% + 12px); left: 0; width: min(420px, calc(100vw - 32px)); background: var(--menu-bg); color: #ffffff; border-radius: 24px; padding: 12px; box-shadow: 0 18px 44px rgba(6,30,27,0.28); transform-origin: 24px -8px; }
.mn-panel[hidden], .sw-panel[hidden] { display: none; }
.mn-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mn-links a { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #ffffff; text-decoration: none; padding: 11px 14px; border-radius: 14px; }
.mn-links a:hover { background: rgba(255,255,255,0.14); }
.mn-links a[aria-current="page"] { background: rgba(255,255,255,0.2); }
.mn-obory { margin-top: 10px; width: 100%; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: #ffffff; color: #0b4f4a; cursor: pointer; }
.mn-obory .chev { display: inline-block; transition: transform 0.25s ease; }
.mn-obory[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sw-panel { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.sw-search { display: flex; align-items: center; gap: 10px; background: #ffffff; color: #10201e; border-radius: 999px; padding: 4px 8px 4px 18px; }
.sw-search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #45585a; stroke-width: 2.2; stroke-linecap: round; }
.sw-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; border: 0; background: transparent; color: #10201e; padding: 10px 0; }
.sw-search input:focus { outline: none; }
.sw-search:focus-within { box-shadow: 0 0 0 3px #ffd166; }
.sw-list { display: flex; flex-direction: column; gap: 8px; }
.sw-bubble { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: #10201e; text-decoration: none; background: #ffffff; border: 0; border-radius: 20px; padding: 12px 18px; cursor: pointer; }
.sw-bubble strong { font-family: var(--font-display); font-size: 1.05rem; color: #0b4f4a; }
.sw-bubble span { font-size: 0.9rem; color: #45585a; }
.sw-bubble:hover, .sw-bubble:focus-visible { box-shadow: 0 0 0 3px #ffd166; outline: none; }
.sw-bubble.here { background: #e3f1ef; }
.sw-bubble.note { cursor: default; font-size: 0.92rem; color: #45585a; border-radius: 18px; }
.sw-bubble.note:hover { box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .mn-panel:not([hidden]):not(.closing) { animation: mn-drop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mn-panel:not([hidden]) .mn-links li, .mn-panel:not([hidden]) .mn-obory { animation: sw-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 60ms); }
  .sw-panel:not([hidden]) .sw-search, .sw-panel:not([hidden]) .sw-bubble { animation: sw-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
  .mn-panel.closing { animation: mn-out 0.16s ease-in both; }
  .sw-panel.closing .sw-search, .sw-panel.closing .sw-bubble { animation: sw-out 0.16s ease-in both; animation-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .mn-panel:not([hidden]), .sw-panel:not([hidden]) .sw-search, .sw-panel:not([hidden]) .sw-bubble { animation: sw-fade 0.15s ease-out both; }
}
@keyframes mn-drop { from { opacity: 0; transform: translateY(-8px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes mn-out { to { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@keyframes sw-pop { from { opacity: 0; transform: translateY(-10px) scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes sw-out { to { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@keyframes sw-fade { from { opacity: 0; } to { opacity: 1; } }

/* About page */
.line-hero .dash { stroke-dasharray: 2 9; }
/* About page: calm text header (K2) and plain sections in one reading column. */
.about-head { max-width: 792px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 16px 8px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; width: 100%; }
.about-head .kicker { margin: 0; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--accent); }
.about-head h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.02; margin: 0; }
.about-head .lede-d { margin: 0; font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.about-head .rule { width: 64px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 8px; }
.about { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; }
.about-sec { padding: 26px 0; border-top: 1px solid var(--line); }
.about-sec:first-child { border-top: 0; padding-top: 8px; }
.about h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 10px; }
.about p { margin: 0 0 12px; max-width: 68ch; } .about p:last-child { margin-bottom: 0; }
.about ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.about li::marker { color: var(--accent); }
.about-warn h2 { color: var(--bad); }
.about + footer { max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; }
.line-hero a.cta:focus-visible { outline: 3px solid var(--ink); }
