/* Čí(st) Brno — městský atlas, čtenářský deník a studentský magazín. */

:root {
  --paper: #F6F2E8;
  --paper-2: #EEE7D6;
  --card: #FCFAF4;
  --ink: #222522;
  --ink-2: #474A45;
  --ink-3: #62655F;
  --line: rgba(34, 37, 34, 0.15);
  --line-strong: rgba(34, 37, 34, 0.38);
  --green: #264F48;
  --green-2: #33645B;
  --green-tint: #DDE8E2;
  --brick: #C04B32;
  --brick-text: #A63E27;
  --brick-tint: #F5E0D7;
  --ochre: #8A5A12;
  --ochre-tint: #F2E6C9;
  --slate: #3E5C76;
  --plum: #7A3B5C;
  --moss: #4F6B2A;
  --focus: #0B57D0;

  --l1: #264F48; --l2: #A63E27; --l3: #8A5A12; --l4: #3E5C76;
  --l5: #6B4E3D; --l6: #2F6B3E; --l7: #7A3B5C; --l8: #4F6B2A;

  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 1px 0 rgba(34, 37, 34, 0.06), 0 6px 18px -10px rgba(34, 37, 34, 0.25);
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brick-text); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Nadpisy, na které přesouváme fokus po přechodu stránky, nepotřebují rámeček */
h1[tabindex='-1']:focus, h2[tabindex='-1']:focus, legend[tabindex='-1']:focus, main:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.22; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 72px; }
.narrow { max-width: 760px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- hlavička ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 242, 232, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.logo { text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-word { font-family: var(--serif); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo-paren { color: var(--brick); font-weight: 400; }
.logo:hover { color: var(--ink); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
}
.nav-list a:hover { background: var(--paper-2); color: var(--ink); }
.nav-list a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--brick); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 10px 12px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .main-nav { order: 3; margin-left: 0; width: auto; }
  .add-tip { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
    font: inherit; font-weight: 500; color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--line-strong); box-shadow: var(--shadow);
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a[aria-current='page'] { box-shadow: inset 4px 0 0 var(--brick); padding-left: 16px; }
  .header-inner { position: relative; }
  .logo-word { font-size: 1.3rem; }
}
@media (max-width: 400px) {
  .logo-word { font-size: 1.15rem; }
  .add-tip { padding: 0 12px; }
}

/* ---------- tlačítka ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--paper-2); color: var(--ink); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: #1c3d38; color: #fff; }
.btn-brick { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn-brick:hover { background: #a63e27; border-color: #a63e27; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-danger { background: transparent; border-color: var(--brick-text); color: var(--brick-text); }
.btn-danger:hover { background: var(--brick-tint); color: var(--brick-text); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 0.9rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn .icon { width: 18px; height: 18px; }

.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--green);
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.link-button:hover { color: var(--brick-text); }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  font-weight: 500; text-decoration: none; color: var(--ink-2);
}
.back-link:hover { color: var(--brick-text); }

.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- drobné prvky ---------- */

.kicker {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.kicker .icon { width: 16px; height: 16px; }

.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 46em; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  line-height: 1.5; white-space: nowrap;
}
.badge-demo { color: var(--ochre); background: var(--ochre-tint); border-style: dashed; }
.badge-event { color: var(--brick-text); background: var(--brick-tint); }
.badge-past { color: var(--ink-3); background: var(--paper-2); }
.badge-live { color: #fff; background: var(--brick); border-color: var(--brick); }
.badge-soft { color: var(--green); background: var(--green-tint); border-color: transparent; }

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; border: 1px solid var(--line-strong); white-space: nowrap;
}
.status-mark { font-size: 0.95em; }
.status-draft { background: var(--card); color: var(--ink-2); border-style: dashed; }
.status-pending { background: var(--ochre-tint); color: #5f3e0b; border-color: #c9a35a; }
.status-published { background: var(--green-tint); color: var(--green); border-color: #8fb3a8; }
.status-archived { background: var(--paper-2); color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tag {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 0.82rem; color: var(--ink-2); text-decoration: none;
  background: transparent; line-height: 1.6;
}
a.tag:hover { border-color: var(--ink); color: var(--ink); }

/* Perspektivy jako čísla linek */
.line-badge {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink);
  font-size: 0.84rem; font-weight: 500; line-height: 1.3;
}
.line-no {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px;
  background: var(--lc, var(--green)); color: #fff;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; flex-shrink: 0;
}
.line-no.big { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 8px; }
a.line-badge:hover { color: var(--brick-text); }
.l1 { --lc: var(--l1); } .l2 { --lc: var(--l2); } .l3 { --lc: var(--l3); } .l4 { --lc: var(--l4); }
.l5 { --lc: var(--l5); } .l6 { --lc: var(--l6); } .l7 { --lc: var(--l7); } .l8 { --lc: var(--l8); }

.section { margin-top: clamp(48px, 7vw, 88px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line-strong); padding-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 44em; }
.section-num { font-family: var(--mono); color: var(--brick-text); font-size: 0.85rem; display: block; margin-bottom: 4px; letter-spacing: 0.08em; }
.more-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* Poznámka na okraji */
.margin-note {
  position: relative; padding: 14px 16px 14px 18px; background: var(--card);
  border-left: 3px solid var(--brick); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.6; color: var(--ink);
}
.margin-note-label {
  display: block; font-family: var(--mono); font-style: normal; font-size: 0.74rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--brick-text); margin-bottom: 6px;
}
.margin-note.quiet { border-left-color: var(--ink-3); }
.margin-note.quiet .margin-note-label { color: var(--ink-3); }

.notice {
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--card); margin: 0 0 20px;
}
.notice-demo { border-style: dashed; border-color: #b9944f; background: var(--ochre-tint); color: #4d340b; }
.notice-error { border-color: var(--brick-text); background: var(--brick-tint); color: #6a2617; }
.notice-ok { border-color: #8fb3a8; background: var(--green-tint); color: #183632; }
.notice strong { font-weight: 600; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- úvodní stránka ---------- */

.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line-strong); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-word { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; margin-bottom: 10px; }
.hero .lead { margin-bottom: 22px; }
.hero-actions { margin-bottom: 22px; }

.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; font: inherit;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--card); color: var(--ink);
}
.search-form .btn { min-height: 50px; }

.hero-atlas { position: relative; }
.hero-atlas svg { width: 100%; height: auto; }
.hero-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.hero-legend div { font-size: 0.93rem; line-height: 1.45; color: var(--ink-2); border-top: 2px solid var(--ink); padding-top: 8px; }
.hero-legend strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-atlas { order: 2; }
  .hero-atlas svg { max-height: 220px; }
}
@media (max-width: 600px) {
  .hero-atlas svg { display: none; }
  .hero-legend { margin-top: 0; }
}

.quick-types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.quick-types a {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card);
  text-decoration: none; color: var(--ink);
}
.quick-types a:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.quick-types .qt-label { font-weight: 600; line-height: 1.25; }
.quick-types .qt-count { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.quick-types .icon { width: 24px; height: 24px; color: var(--brick-text); }
@media (max-width: 960px) { .quick-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .quick-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.persp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.persp-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 18px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  border-top: 5px solid var(--lc);
}
.persp-card h3 { margin: 0; font-size: 1.12rem; }
.persp-card h3 a { color: var(--ink); text-decoration: none; }
.persp-card h3 a::after { content: ''; position: absolute; inset: 0; }
.persp-card:hover { border-color: var(--ink); border-top-color: var(--lc); }
.persp-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.persp-card h3 a:focus-visible { outline: none; }
.persp-card p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.persp-card .persp-count { margin-top: auto; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.method-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .method-teasers { grid-template-columns: 1fr; } }

.collab {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 44px); background: var(--green); color: #F6F2E8; border-radius: 10px;
  position: relative; overflow: hidden;
}
.collab h2 { color: #fff; }
.collab p { color: #E3ECE8; }
.collab .btn { border-color: #F6F2E8; }
.collab .btn-ghost { color: #fff; }
.collab .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.collab ol { margin: 0; padding-left: 1.2em; color: #E3ECE8; }
.collab ol li { margin-bottom: 8px; }
.collab ol li::marker { font-family: var(--mono); color: #F3B7A8; }
@media (max-width: 860px) { .collab { grid-template-columns: 1fr; } }

/* ---------- karty ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.cards-compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-title a:focus-visible { outline: none; }
.card-art { aspect-ratio: 16 / 10; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.t-metoda .card-art, .t-inspirace .card-art { aspect-ratio: 16 / 8; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-kicker { margin: 0; }
.card-title { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { text-decoration: underline; text-decoration-thickness: 1px; }
.card-fact { margin: 0; font-weight: 600; font-size: 0.92rem; color: var(--green); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.card-fact span + span::before { content: '·'; margin-right: 10px; color: var(--ink-3); }
.card-annotation { margin: 0; color: var(--ink-2); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { margin-top: auto; padding-top: 4px; position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; }

/* typové akcenty */
.t-kniha { --tc: var(--brick-text); }
.t-online { --tc: var(--slate); }
.t-trasa { --tc: var(--green); }
.t-misto { --tc: var(--ochre); }
.t-udalost { --tc: var(--brick-text); }
.t-experiment { --tc: var(--moss); }
.t-metoda { --tc: var(--green); }
.t-inspirace { --tc: var(--plum); }
.card .kicker { color: var(--tc, var(--ink-3)); }

/* Událost: datum místo obrázku */
.card-date {
  display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--brick-tint);
  border-bottom: 1px solid var(--line); color: #5a2213;
}
.card-date.past { background: var(--paper-2); color: var(--ink-3); }
.date-block { display: grid; place-items: center; min-width: 64px; padding: 6px 8px; background: var(--card); border: 2px solid currentColor; border-radius: 6px; line-height: 1; }
.date-day { font-family: var(--serif); font-weight: 900; font-size: 1.9rem; }
.date-month { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; margin-top: 4px; letter-spacing: 0.06em; }
.card-date-text { font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.card-date-text small { display: block; font-weight: 400; }

/* Typografické zástupné ilustrace */
.art { width: 100%; height: 100%; position: relative; display: flex; align-items: stretch; }
.art svg { width: 100%; height: 100%; }
.cover {
  position: absolute; inset: 12px auto 12px 50%; transform: translateX(-50%);
  aspect-ratio: 3 / 4; height: calc(100% - 24px);
  display: flex; flex-direction: column; justify-content: space-between; padding: 10% 9%;
  background: var(--cv, var(--green)); color: #F6F2E8; border-radius: 2px 5px 5px 2px;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.18), 3px 4px 0 rgba(34, 37, 34, 0.18);
  overflow: hidden;
}
.cover-title {
  font-family: var(--serif); font-weight: 900; font-size: 0.8rem; line-height: 1.22; overflow-wrap: break-word; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.cover-author { font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.9; }
.cover-rule { height: 2px; background: currentColor; opacity: 0.6; width: 40%; }
.cover-big .cover-title { font-size: clamp(1rem, 2.2vw, 1.45rem); -webkit-line-clamp: 6; }
.cover-big .cover-author { font-size: 0.8rem; }
.cv1 { --cv: #264F48; } .cv2 { --cv: #A63E27; } .cv3 { --cv: #3E5C76; } .cv4 { --cv: #8A5A12; } .cv5 { --cv: #222522; } .cv6 { --cv: #6B4E3D; }

.art-online { flex-direction: column; justify-content: center; padding: 14% 10%; gap: 10px; background: #E7EBEE; }
.browser { background: var(--card); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); display: block; }
.browser-body { padding: 10px; font-family: var(--serif); font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.browser-body small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.75rem; color: var(--ink-3); margin-top: 4px; }

.art-exp { background: #E9EDE0; padding: 10% 10%; }
.index-card {
  width: 100%; background: var(--card); border-radius: 3px; padding: 12px 14px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 21px, rgba(62, 92, 118, 0.25) 21px 22px);
  background-position: 0 30px; box-shadow: 2px 3px 0 rgba(34, 37, 34, 0.15); transform: rotate(-1.5deg);
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); line-height: 22px;
}
.index-card b { display: block; font-family: var(--serif); font-size: 0.95rem; color: var(--moss); line-height: 1.3; margin-bottom: 6px; }

.art-method { background: var(--green); color: #F6F2E8; padding: 8% 9%; flex-direction: column; justify-content: space-between; }
.art-method .num { font-family: var(--serif); font-weight: 900; font-size: 3rem; line-height: 1; color: #F3B7A8; }
.art-method .intent-icons { display: flex; gap: 8px; }
.art-method .intent-icons .icon { width: 26px; height: 26px; }
.art-insp { background: #EFE3EA; align-items: center; justify-content: center; }
.stamp {
  width: 64%; aspect-ratio: 1; border: 3px double var(--plum); border-radius: 50%;
  display: grid; place-items: center; text-align: center; color: var(--plum); transform: rotate(-8deg);
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px; line-height: 1.3;
}
.stamp b { display: block; font-family: var(--serif); font-size: 0.95rem; text-transform: none; letter-spacing: 0; margin: 4px 0; }

/* ---------- katalog ---------- */

.catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .catalog-layout { grid-template-columns: 1fr; gap: 16px; } }

.filters { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 4px; }
@media (max-width: 960px) { .filters { position: static; max-height: none; overflow: visible; } }
.filters-details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; background: var(--card);
}
.filters-details > summary::-webkit-details-marker { display: none; }
.filters-details > summary::after { content: '▾'; }
.filters-details[open] > summary::after { content: '▴'; }
@media (min-width: 961px) { .filters-details > summary { display: none; } }

.filter-group { border: 0; padding: 0; margin: 0 0 22px; }
.filter-group legend, .filter-title {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3); padding: 0; margin-bottom: 8px; font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 11px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card);
  font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; text-align: left; line-height: 1.25;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed='true']::before { content: '✓'; font-weight: 700; }
.chip .chip-count { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }
.chip[aria-pressed='true'] .chip-count { color: #cfd3cc; }
.chip.is-empty:not([aria-pressed='true']) { color: var(--ink-3); border-style: dashed; }
.chip .line-no { width: 20px; height: 20px; font-size: 0.72rem; }

.catalog-search { margin-bottom: 18px; }
.catalog-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.catalog-search .search-form { max-width: none; }

.results-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.results-count { font-weight: 600; margin: 0; }
.sort-select { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.sort-select select, .field select {
  min-height: 40px; padding: 0 32px 0 10px; font: inherit; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23222522' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; color: var(--ink);
}
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 2px 6px 2px 11px;
  border-radius: 999px; background: var(--green-tint); border: 1px solid #8fb3a8; color: var(--green);
  font: inherit; font-size: 0.86rem; cursor: pointer;
}
.active-filter:hover { background: #cfdfd8; }
.active-filter .x { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(38, 79, 72, 0.12); font-size: 0.9rem; }

.persp-intro {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 18px; margin-bottom: 22px; background: var(--card); border: 1px solid var(--line-strong);
  border-left: 6px solid var(--lc); border-radius: var(--radius);
}
.persp-intro h2 { margin: 0 0 6px; font-size: 1.4rem; }
.persp-intro p { margin: 0 0 8px; color: var(--ink-2); }

.state-empty, .state-error, .state-loading {
  padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--card);
}
.state-empty h2, .state-error h2 { font-size: 1.3rem; }
.state-loading { color: var(--ink-3); border-style: solid; }
.skeleton { background: linear-gradient(90deg, var(--paper-2), #f3eee2, var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- detail ---------- */

.detail-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.detail-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.detail-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--paper-2); aspect-ratio: 4 / 3; position: relative; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media figcaption, .media-credit { font-size: 0.8rem; color: var(--ink-3); margin-top: 6px; }
.detail-media .card-date { height: 100%; flex-direction: column; justify-content: center; text-align: center; }
.detail-media .date-block { min-width: 120px; padding: 14px; }
.detail-media .date-day { font-size: 3.4rem; }
@media (max-width: 860px) { .detail-head { grid-template-columns: 1fr; } .detail-media { max-height: 300px; aspect-ratio: 16 / 9; } }

.detail-actions { margin: 20px 0 0; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: 28px; }
@media (max-width: 860px) { .detail-body { grid-template-columns: 1fr; } }
.detail-main > * + * { margin-top: 26px; }
.detail-aside > * + * { margin-top: 20px; }
.prose p { max-width: 42em; }
.prose h2 { font-size: 1.35rem; margin-top: 0; }

.facts { margin: 0; display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 18px; font-size: 0.97rem; }
.facts dt { color: var(--ink-3); font-weight: 500; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .unknown { color: var(--ink-3); font-style: italic; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }

.panel { padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
.panel h2, .panel h3 { font-size: 1.08rem; font-family: var(--sans); font-weight: 600; margin-bottom: 12px; }

.stops { list-style: none; padding: 0; margin: 0; position: relative; }
.stops li { position: relative; padding: 0 0 14px 44px; min-height: 30px; }
.stops li::before {
  content: counter(stop); counter-increment: stop; position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--green); background: var(--card);
  display: grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; color: var(--green);
}
.stops li::after { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; border-left: 2px dotted var(--green); }
.stops li:last-child::after { display: none; }
.stops { counter-reset: stop; }

.meta-foot { font-size: 0.9rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.meta-foot p { margin: 0 0 4px; }

.related { margin-top: 56px; }

.task-box { padding: 18px; border: 2px dashed var(--moss); border-radius: var(--radius); background: #F1F4EA; }
.task-box h2 { color: var(--moss); }
.task-box ol { margin: 0; padding-left: 1.4em; }

/* ---------- metody ---------- */

.method-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 28px; }
@media (max-width: 860px) { .method-intro { grid-template-columns: 1fr; } }
.atlas-feature {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px;
  padding: clamp(20px, 4vw, 36px); border: 2px solid var(--ink); border-radius: 10px; background: var(--card);
  position: relative; overflow: hidden;
}
.atlas-feature h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.atlas-feature .crossed { text-decoration: line-through; text-decoration-color: var(--brick); text-decoration-thickness: 3px; }
.atlas-feature ul { padding-left: 1.1em; margin: 0 0 1em; }
.atlas-feature li { margin-bottom: 6px; }
@media (max-width: 860px) { .atlas-feature { grid-template-columns: 1fr; } }

.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: step; position: relative; padding: 0 0 16px 52px; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 8px;
  background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 500;
}

.guide { border: 2px solid var(--green); border-radius: 10px; background: var(--card); padding: 20px; }
.guide-progress { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; margin: 10px 0 18px; }
.guide-progress span { display: block; height: 100%; background: var(--green); transition: width 0.2s; }
.guide-step { font-size: 1.15rem; font-family: var(--serif); line-height: 1.55; min-height: 4.5em; }
.guide-checks { list-style: none; padding: 0; margin: 16px 0 0; }
.guide-checks li { margin-bottom: 6px; }
.guide-checks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.guide-checks input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }

.split-label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; display: inline-block; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.split-label.documented { background: var(--green-tint); color: var(--green); }
.split-label.ours { background: var(--brick-tint); color: var(--brick-text); }

.insp-grid { display: grid; grid-template-columns: max-content 1fr; gap: 14px 20px; margin: 0; }
.insp-grid dt { font-family: var(--serif); font-weight: 700; color: var(--plum); }
.insp-grid dd { margin: 0; }
@media (max-width: 640px) { .insp-grid { grid-template-columns: 1fr; gap: 4px; } .insp-grid dd { margin-bottom: 12px; } }

/* ---------- události ---------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs [aria-current='page'], .tabs [aria-selected='true'] { color: var(--ink); border-bottom-color: var(--brick); }
.tabs .count { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }

.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.event-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; align-items: start;
  padding: 16px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.event-row:hover { border-color: var(--ink); }
.event-row:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.event-title { margin: 0 0 4px; font-size: 1.15rem; font-family: var(--serif); }
.event-title a { color: var(--ink); text-decoration: none; }
.event-title a::after { content: ''; position: absolute; inset: 0; }
.event-title a:focus-visible { outline: none; }
.event-row:hover .event-title a { text-decoration: underline; }
.event-badges { gap: 6px; position: relative; z-index: 1; }
.event-row .date-block { color: var(--brick-text); }
.event-row.past .date-block { color: var(--ink-3); }
.event-row p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.event-when { font-weight: 600; color: var(--ink) !important; }
.event-row .event-badges { grid-column: 2; }

/* ---------- formuláře ---------- */

.form-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; gap: 16px; } }

.stepper { list-style: none; padding: 0; margin: 0; position: sticky; top: 90px; counter-reset: st; }
.stepper li { counter-increment: st; }
.stepper button, .stepper span {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px;
  border: 0; background: none; font: inherit; color: var(--ink-3); text-align: left; border-radius: var(--radius);
}
.stepper button { cursor: pointer; color: var(--ink-2); }
.stepper button:hover { background: var(--paper-2); }
.stepper .st-no {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.85rem; flex-shrink: 0;
}
.stepper [aria-current='step'] { color: var(--ink); font-weight: 600; }
.stepper [aria-current='step'] .st-no { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stepper .done .st-no { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 860px) {
  .stepper { position: static; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .stepper li { flex: 1; min-width: max-content; }
  .stepper .st-label { font-size: 0.88rem; }
}

.form-section { border: 0; padding: 0; margin: 0 0 32px; }
.form-section > legend, .form-section-title {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin-bottom: 6px; padding: 0;
}
.form-section-intro { color: var(--ink-2); margin-bottom: 18px; }
.form-subsection { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.form-subsection h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }

.field { margin-bottom: 18px; max-width: 720px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; max-width: 720px; }
.field > label, .field > .field-label, .field legend {
  display: block; font-weight: 600; margin-bottom: 5px; padding: 0; font-size: 1rem;
}
.req { color: var(--brick-text); font-weight: 600; font-size: 0.85rem; margin-left: 6px; white-space: nowrap; }
.opt { color: var(--ink-3); font-weight: 400; font-size: 0.85rem; margin-left: 6px; }
.field-help { font-size: 0.88rem; color: var(--ink-3); margin: 0 0 6px; }
.field input[type='text'], .field input[type='url'], .field input[type='number'], .field input[type='date'],
.field input[type='time'], .field input[type='password'], .field input[type='email'], .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 9px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-2); }
.field [aria-invalid='true'] { border: 2px solid var(--brick-text); background: #FFF8F5; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--brick-text); font-weight: 600; font-size: 0.92rem; margin: 6px 0 0; }
.field-error::before { content: '!'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brick-text); color: #fff; font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; }
.char-count { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); text-align: right; margin-top: 3px; }
.char-count.over { color: var(--brick-text); font-weight: 700; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.check-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 4px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer; font-size: 0.92rem;
}
.check-chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.check-chip input:checked + span::before { content: '✓'; font-weight: 700; }
.check-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
.check-line input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }

.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 20px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; }
.type-option label {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card);
}
.type-option label:hover { border-color: var(--ink); }
.type-option .icon { width: 26px; height: 26px; color: var(--tc); }
.type-option strong { font-size: 1.05rem; }
.type-option small { color: var(--ink-2); font-size: 0.9rem; line-height: 1.4; }
.type-option input:checked + label { border: 2px solid var(--ink); background: #fff; box-shadow: inset 0 -4px 0 var(--brick); }
.type-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.example-box { font-size: 0.9rem; padding: 10px 12px; background: var(--paper-2); border-radius: var(--radius); margin: 0 0 8px; color: var(--ink-2); }
.example-box b { font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); display: block; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line-strong); margin-top: 8px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.privacy-box { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.privacy-box > div { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--card); }
.privacy-box h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.privacy-box ul { margin: 0; padding-left: 1.1em; font-size: 0.93rem; }
.privacy-box .private { border-style: dashed; background: var(--paper-2); }
@media (max-width: 640px) { .privacy-box { grid-template-columns: 1fr; } }

.preview-frame { border: 2px dashed var(--line-strong); border-radius: 10px; padding: clamp(14px, 3vw, 28px); background: var(--paper); margin-bottom: 20px; }
.preview-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.preview-cards { max-width: 340px; margin-bottom: 24px; }

.image-preview { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.image-preview img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-strong); }

.thanks { text-align: left; max-width: 640px; padding: clamp(24px, 5vw, 48px); background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; }
.thanks h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }

/* ---------- redakce ---------- */

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.admin-toolbar .field { margin: 0; max-width: none; }
.admin-toolbar .grow { flex: 1; min-width: 200px; }
.admin-label { display: inline-block; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border: 1px solid var(--ink); border-radius: 4px; }

.admin-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.admin-row h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 4px 0 2px; }
.admin-row h3 a { color: var(--ink); }
.admin-row-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 0.85rem; color: var(--ink-3); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 760px) { .admin-row { grid-template-columns: 1fr; } .admin-actions { justify-content: flex-start; } }
.star-toggle[aria-pressed='true'] { background: var(--ochre-tint); border-color: #b9944f; color: #5f3e0b; }

.editor-bar {
  position: static; z-index: 10; margin-top: 24px; padding: 12px var(--gutter);
  margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
  background: rgba(246, 242, 232, 0.97); border-top: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.editor-bar .spacer { flex: 1; }
@media (min-width: 761px) { .editor-bar { position: sticky; bottom: 0; } }
.private-box { padding: 12px 14px; border: 1px dashed var(--brick-text); border-radius: var(--radius); background: #FFF8F5; font-size: 0.95rem; }
.private-box b { color: var(--brick-text); }

.login-box { max-width: 480px; }

dialog {
  border: 1px solid var(--ink); border-radius: 10px; padding: 24px; max-width: min(480px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}
dialog::backdrop { background: rgba(34, 37, 34, 0.45); }
dialog h2 { font-size: 1.3rem; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120%); z-index: 60;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); font-weight: 500; box-shadow: var(--shadow);
  transition: transform 0.2s ease, visibility 0.2s; pointer-events: none; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- patička ---------- */

.site-footer { border-top: 1px solid var(--line-strong); background: var(--paper-2); padding: 40px 0 28px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.footer-logo { font-size: 1.4rem; margin-bottom: 8px; }
.footer-about p { max-width: 36em; color: var(--ink-2); font-size: 0.95rem; }
.footer-small { font-size: 0.85rem !important; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-nav a { color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-nav a:hover { text-decoration: underline; }
.quiet-link { color: var(--ink-3); font-size: 0.88rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

.mt-0 { margin-top: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .btn, .filters { display: none !important; }
}
