/* ==========================================================================
   Sdílený základ samostatných stránek — zásady ochrany osobních údajů a mapa
   stránek. Hlavní stránka má vlastní styles.css (100 kB, celé o animacích a
   sekcích), který by tyto jednoduché dokumenty zbytečně zatěžoval; tady jde o
   pár kilobajtů se stejnými barvami a písmy, aby web působil jako jeden celek.
   ========================================================================== */
:root {
    --brand-bg: #F5F1E5;
    --brand-blue: #0C304C;
    --brand-blue-hover: #15446c;
    --brand-gold: #CAA240;
    --text: #17252F;
    --text-secondary: #3b5c77;
    --rule: #DED8C6;
    --surface: #FFFFFF;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', 'Merriweather', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    background: var(--brand-bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    background: var(--brand-blue);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 2px; border-radius: 2px; }

/* ---------- horní lišta ---------- */
.topbar {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--brand-blue);
}
.brand img { width: 44px; height: auto; display: block; }
.brand span {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.back-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(12, 48, 76, 0.18);
    background: rgba(255, 255, 255, 0.55);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.back-link:hover { background: #fff; border-color: var(--brand-gold); }

/* ---------- obsah ---------- */
.wrap {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    padding: 1rem 1.25rem 4rem;
    flex: 1;
}
.wrap.wide { max-width: 64rem; }

h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    line-height: 1.12;
    color: var(--brand-blue);
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.updated { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.6rem; }
.lead { color: var(--text-secondary); font-size: 1.08rem; margin-top: 0.9rem; max-width: 52ch; }

.doc-head {
    border-bottom: 2px solid var(--rule);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--brand-blue);
    margin: 2.4rem 0 0.7rem;
    line-height: 1.25;
}
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; color: var(--text); }
p, li { color: var(--text-secondary); }
p { margin-bottom: 0.85rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--brand-blue); text-underline-offset: 2px; }
strong { color: var(--text); }
code {
    font-size: 0.88em;
    background: rgba(12, 48, 76, 0.07);
    padding: 0.08em 0.35em;
    border-radius: 3px;
    word-break: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.4rem;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
}
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--surface); color: var(--text); font-weight: 650; white-space: nowrap; }
td { color: var(--text-secondary); }

.callout {
    background: var(--surface);
    border-left: 3px solid var(--brand-gold);
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    border-radius: 3px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- patička ---------- */
.page-footer {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
    border-top: 1px solid var(--rule);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    justify-content: space-between;
}
.page-footer a { color: var(--text-secondary); }
.page-footer a:hover { color: var(--brand-blue); }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* ==========================================================================
   MAPA STRÁNEK
   ========================================================================== */
.sm-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    margin-top: 2rem;
}
.sm-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(12, 48, 76, 0.08);
    border-radius: 20px;
    padding: 1.4rem 1.4rem 1.2rem;
    box-shadow: 0 8px 32px rgba(12, 48, 76, 0.04);
}
.sm-card--wide { grid-column: 1 / -1; }
.sm-card h2 {
    font-size: 1.2rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--rule);
}
.sm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.sm-card--wide .sm-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    column-gap: 1.25rem;
}
.sm-list li { margin: 0; }
.sm-list a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.65rem 2.1rem 0.65rem 0.8rem;
    border-radius: 12px;
    color: var(--brand-blue);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.sm-list a::after {
    content: "→";
    position: absolute;
    right: 0.85rem;
    top: 0.62rem;
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sm-list a:hover { background: rgba(202, 162, 64, 0.13); }
.sm-list a:hover::after { opacity: 0.9; transform: translateX(3px); }
.sm-name { font-weight: 650; line-height: 1.35; }
.sm-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45; }

/* Jazyky jako dlaždice */
.sm-langs { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.sm-langs li { margin: 0; }
.sm-langs a {
    display: inline-block;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(12, 48, 76, 0.18);
    background: #fff;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.sm-langs a:hover { border-color: var(--brand-gold); background: rgba(202, 162, 64, 0.1); }

.sm-contact { font-size: 0.95rem; }
.sm-contact li { margin-bottom: 0.3rem; }

@media (max-width: 480px) {
    .topbar { padding: 0.8rem 1rem; }
    .brand span { font-size: 1.1rem; }
    .sm-card { padding: 1.1rem 1rem; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
