/* VYSOKÁ, bytové družstvo - Clean Static Stylesheet */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #1e3a8a;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --radius: 10px;
    --max-width: 920px;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 2.2rem 1.5rem;
    border-bottom: 4px solid #3b82f6;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: #ffffff;
    text-decoration: none;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 0.2rem;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-link.active {
    background-color: #ffffff;
    color: #0f172a;
}

/* Layout Container */
.container {
    max-width: var(--max-width);
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    min-height: calc(100vh - 280px);
}

/* Quick Info Bar on Homepage */
.info-strip {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.info-strip strong {
    color: var(--text-primary);
}

/* Controls (Search & Year Filter) */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.search-input {
    flex: 1 1 260px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: 2px solid #3b82f6;
    border-color: transparent;
}

.view-toggle {
    display: flex;
    gap: 0.4rem;
}

.btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    border-color: #94a3b8;
    color: var(--text-primary);
}

/* Post Cards */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.badge-year {
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
}

.badge-latest {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-title {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.post-title a:hover {
    color: var(--accent-hover);
}

.post-content {
    color: var(--text-secondary);
}

.post-content p {
    margin: 0 0 1rem 0;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content ul, .post-content ol {
    margin: 0.5rem 0 1.25rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.35rem;
}

.post-content a {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Single Page / Legal Document Styling */
.page-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem 2.75rem;
    box-shadow: var(--shadow-sm);
}

.page-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.85rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Stanovy Document Specifics */
.stanovy-toc {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.25rem;
}

.stanovy-toc h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.stanovy-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.4rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}

.stanovy-toc-grid a {
    color: var(--accent);
    text-decoration: none;
}

.stanovy-toc-grid a:hover {
    text-decoration: underline;
}

.stanovy-article-heading {
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 0.85rem 1.25rem;
    margin: 2.25rem 0 1.25rem 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Contacts Table Styling */
.aresData {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.75rem;
    font-size: 0.96rem;
}

.aresData tr {
    border-bottom: 1px solid var(--border-color);
}

.aresData tr:last-child {
    border-bottom: none;
}

.aresData td {
    padding: 1rem 0.75rem;
    vertical-align: top;
}

.aresData td.label {
    width: 32%;
    font-weight: 700;
    color: var(--text-primary);
    background-color: #f8fafc;
    border-radius: 4px;
}

/* Breadcrumb & Post Navigation */
.breadcrumb {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-nav-link {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    max-width: 48%;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease;
}

.post-nav-link:hover {
    border-color: var(--accent);
}

.post-nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
    font-size: 0.88rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 1rem;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .post-card, .page-card {
        padding: 1.25rem 1.25rem;
    }
    .aresData td.label {
        width: 40%;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    .site-header, .controls-bar, .site-footer, .breadcrumb, .post-nav {
        display: none !important;
    }
    body {
        background: #fff;
    }
    .page-card, .post-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}
