/* Mapa funkcí na webu (schuzo.cz/mapa) — generuje scripts/mapa_web.php z assets/css/mapa.css; NEUPRAVOVAT ručně. — samostatná veřejná stránka; písma z aplikace (CSP nepovolí Google Fonts). */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;

  src: url('fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');

  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;

  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');

  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }



/* Instrument Sans — text, tlačítka (variabilní 400–700) */

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;

  src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2');

  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;

  src: url('fonts/instrument-sans-latin.woff2') format('woff2');

  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Layout: čtyři sloupce = životní cyklus rozhodnutí (příprava → projednání → rozhodnutí → plnění), pod nimi pás podpůrných funkcí;
   šipky kreslí SVG nad mřížkou. Barvy a písma podle aplikace Schuzo (papír + inkoust, žlutá pečeť jen jednou). */
:root {
  --paper: #F6F4EE; --card: #FFFFFF; --ink: #13304D; --text: #1F2A36; --muted: #5E6B78;
  --line: #DAD5C8; --line-soft: #E8E4DA; --seal: #F4B740; --seal-ink: #13304D; --wire: #9AA5B1; --wire-hot: #13304D;
  --focus: #2A78AB;
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
.mapa-page { background: var(--paper); color: var(--text); font: 16px/1.55 var(--body); padding-inline: 20px; padding-block: 28px 56px; }
.wrap { max-width: 1240px; margin: 0 auto; display: grid; gap: 28px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.map-lead { max-width: 62ch; color: var(--muted); font-size: 1.08rem; margin: 10px 0 0; }

/* Role */
.roles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.roles span { font-weight: 600; color: var(--muted); margin-right: 4px; }
.role { font: 600 .92rem var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.role[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.role:focus-visible, .node:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Mapa */
.map-box { position: relative; }
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 56px; position: relative; z-index: 1; }
.lane { display: grid; align-content: start; gap: 14px; }
.lane-h { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.lane-h b { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.12rem; letter-spacing: -.01em; }
.lane-h small { color: var(--muted); font-size: .82rem; }
.node { position: relative; text-align: left; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; transition: opacity .2s, border-color .2s; }
.node b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.node small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.node.core { background: var(--seal); border-color: var(--seal); }
.node.core b, .node.core small { color: var(--seal-ink); }
.node.sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.node.core.sel { box-shadow: 0 0 0 2px var(--seal-ink) inset; }
.node.dim { opacity: .28; }
.node .law { position: absolute; top: 10px; right: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.node.core .law { color: var(--seal-ink); }
svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
svg.wires path { fill: none; stroke: var(--wire); stroke-width: 1.5; transition: stroke .2s, opacity .2s; }
svg.wires path.hot { stroke: var(--wire-hot); stroke-width: 2.2; }
svg.wires path.dim { opacity: .18; }
svg.wires marker path { fill: var(--wire); stroke: none; }

.map-band { display: grid; gap: 12px; }
.map-band-h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.map-band-h b { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.12rem; }
.map-band-h small { color: var(--muted); font-size: .82rem; }
.map-band-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; z-index: 1; }

/* Detail */
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 32px; }
.detail h2 { grid-column: 1 / -1; }
.detail .kicker { grid-column: 1 / -1; margin-bottom: -10px; }
.detail p { margin: 0; max-width: 62ch; }
.detail dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; align-content: start; }
.detail dt { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.detail dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 .82rem var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }

/* Lhůty */
.timeline { display: grid; gap: 14px; }
.tl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.tl > div { padding: 14px 12px 0 0; display: grid; gap: 4px; position: relative; }
.tl > div::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.tl .when { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tl .what { font-weight: 600; color: var(--text); }
.tl .why { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.map-foot { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.map-foot b { color: var(--ink); }

@media (max-width: 1000px) { .lanes { gap: 0 32px; } .map-band-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) {
  .lanes { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  svg.wires { display: none; }
  .map-band-grid { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ink); margin-left: 6px; }
  .tl > div { padding: 0 0 16px 18px; }
  .tl > div::before { top: 4px; left: -7px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.back { font-weight: 600; color: var(--ink); text-decoration: none; } .back:hover { text-decoration: underline; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
