/* Symulator Miasta — Gorzów Wlkp. | kolorystyka wzorowana na um.gorzow.pl */

:root {
    --red:       #e83537;   /* akcent główny — czerwień UM Gorzów */
    --red-dark:  #db191b;   /* hover */
    --blue:      #06569f;   /* akcent pomocniczy */
    --text:      #4f595d;   /* główny kolor tekstu */
    --text-dark: #3d3d3d;
    --muted:     #7f8d93;
    --bg:        #ffffff;
    --bg-light:  #f5f5f5;
    --border:    #d6d8e0;
    --border2:   #b3bfc4;
    --radius:    4px;
    --font:      'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-w:     1200px;
    --header-h:  auto;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--red-dark); }

code {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--text-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAGŁÓWEK
   ═══════════════════════════════════════════════════════════════════════════ */

.site-header {
    background: #fff;
    border-bottom: 3px solid var(--red);
}

.site-header-top {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 24px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.brand {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-img {
    display: block;
    width: 173px;
    height: 70px;
    object-fit: contain;
}


/* Nawigacja — poziomy pasek pod logo */
.site-header-nav {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.topnav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.topnav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.topnav a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    text-decoration: none;
}
.topnav a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
    text-decoration: none;
}
.topnav a.nav-active {
    color: var(--red);
    border-bottom-color: var(--red);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STOPKA — wzorowana na um.gorzow.pl
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
    margin-top: auto;
    position: relative;
}

/* Główna część stopki — szare tło, 3 kolumny */
.site-footer-main {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.site-footer-main-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 24px 240px;  /* padding-bottom robi miejsce pod linię miasta (226px) */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.footer-col p, .footer-col address {
    font-size: 13px;
    color: var(--text);
    line-height: 1.7;
    font-style: normal;
}

.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--red); }

.footer-col ul {
    list-style: none;
    font-size: 13px;
}

.footer-col ul li {
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
}

.footer-col ul li a {
    color: var(--text);
    display: block;
    padding: 2px 0;
}
.footer-col ul li a:hover { color: var(--red); text-decoration: none; }

/* Logo Polskie.AI — dolny lewy róg stopki, wyrównane z panoramą i z kolumną Kontakt */
.footer-logo-polskieai {
    position: absolute;
    bottom: 20px;
    left: max(24px, calc((100% - 1200px) / 2 + 24px));
    line-height: 0;
}

.footer-logo-polskieai img {
    display: block;
    width: 274px;
    height: 70px;
}

/* Linia miasta — pozycjonowana w dolnym prawym rogu stopki */
.footer-city-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 670px;
    height: 226px;
    max-width: 55%;
    pointer-events: none;
    overflow: hidden;
}

.footer-city-line img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 670px;
    height: 226px;
    max-width: 100%;
    display: block;
}

/* Pasek dołu stopki — copyright */
.site-footer-bar {
    background: #fff;
    border-top: 1px solid var(--border);
}

.site-footer-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--muted);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    color: var(--muted);
    font-size: 12px;
    transition: color .2s;
    text-decoration: none;
}
.footer-social a:hover { color: var(--red); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════════════ */

.breadcrumb {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 6px;
    align-items: center;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); text-decoration: none; }
.breadcrumb .sep { color: var(--border2); }

/* ═══════════════════════════════════════════════════════════════════════════
   KONTENERY TREŚCI
   ═══════════════════════════════════════════════════════════════════════════ */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px;
    flex: 1;
}

/* Karty */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Alerty */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid;
}
.alert-error {
    background: #fef3f1;
    border-color: #f9b7b3;
    color: #90281b;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.landing-hero {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.landing-hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 660px;
    gap: 40px;
    align-items: center;
}

.landing-badge {
    display: inline-block;
    background: #fef0f0;
    border: 1px solid #f5b0b0;
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.landing-hero-text h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.landing-hero-text h1 .accent { color: var(--red); }

.landing-hero-text p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.landing-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Przyciski */
.btn-primary {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: background .2s;
    text-decoration: none;
}
.btn-primary:hover { background: var(--red-dark); text-decoration: none; color: #fff; }
.btn-primary.btn-large { padding: 11px 28px; font-size: 14px; }

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--text);
    padding: 9px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--border2);
    transition: border-color .2s, color .2s;
    text-decoration: none;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

/* Mapa Gorzowa w hero */
.city-map-img {
    display: block;
    width: 649px;
    height: 494px;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* Live stats */
.landing-stats {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--border);
}

.landing-stats h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.live-dot.live   { background: #2a7a2a; animation: pulse 2s infinite; }
.live-dot.dead   { background: var(--border2); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

.live-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 14px;
    text-align: center;
}

.stat-card.stat-sex {
    border-top: 3px solid var(--red);
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 5px;
    letter-spacing: -.01em;
}

.stat-value.stat-time { font-size: 14px; font-weight: 600; letter-spacing: 0; }

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 500;
}

.stat-offline-note {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* O symulatorze */
.landing-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.landing-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 4px solid var(--red);
}

.landing-section p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.landing-section p strong { color: var(--text-dark); }

.landing-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--text);
    font-size: 14px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li:last-child { border-bottom: none; }

/* CTA Dla firm */
.landing-section-cta {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.landing-cta-inner {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    align-items: start;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.cta-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cta-icon { font-size: 22px; flex-shrink: 0; line-height: 1.3; }

.cta-feature strong {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.cta-feature p { font-size: 13px; color: var(--text); margin: 0; line-height: 1.5; }

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    position: sticky;
    top: 20px;
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-card p {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.5;
}

.contact-note {
    font-size: 11px !important;
    color: var(--muted) !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* CTA Dla partii */
.landing-section-party {
    background: #fff;
    border: 2px solid var(--red);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.landing-badge-party {
    background: var(--red);
    color: #fff;
}

.landing-party-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.party-problems {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.party-problem {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: #fff8f8;
    border: 1px solid #f5d0d0;
    border-radius: var(--radius);
}

.party-problem-icon { font-size: 20px; flex-shrink: 0; line-height: 1.3; }

.party-problem strong {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.party-problem p { font-size: 13px; color: var(--text); margin: 0; line-height: 1.5; }

.party-solution-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.party-solution-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.party-solution-card p {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.6;
}

.party-solution-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.party-solution-list li {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.4;
}

.party-solution-offer {
    font-size: 13px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 6px;
}

.party-video-cta {
    margin-top: 20px;
}

.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.btn-video:hover { background: #c42d2f; }

/* Modal wideo */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-box {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.video-modal-close:hover { background: rgba(0,0,0,.9); }

.video-modal-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — AKTYWNOŚCI
   ═══════════════════════════════════════════════════════════════════════════ */

.dashboard-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--red);
    flex-wrap: wrap;
}

.dashboard-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.sim-time {
    color: var(--muted);
    font-size: 13px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.activity-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.activity-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.activity-group-icon  { font-size: 18px; }
.activity-group-title { font-weight: 700; font-size: 13px; color: var(--text-dark); }
.activity-group-total { margin-left: auto; font-size: 20px; font-weight: 700; color: var(--red); }

.activity-rows { padding: 2px 0; }

.activity-row {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: var(--bg-light); }

.activity-row-label  { flex: 1; color: var(--text); font-size: 13px; }
.activity-row-count  { font-weight: 700; min-width: 56px; text-align: right; color: var(--text-dark); }
.activity-row-expand { margin-left: 6px; }

/* Seks — wyróżniony lewym paskiem */
.activity-group.sex { border-left: 3px solid var(--red); }
.activity-group.sex .activity-group-header { background: #fef0f0; }
.activity-group.sex .activity-group-total  { color: var(--red); }

/* Expand/collapse */
.btn-expand, .btn-collapse {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}
.btn-expand {
    background: #fff;
    color: var(--red);
    border: 1px solid var(--border2);
}
.btn-expand:hover { background: #fef0f0; border-color: var(--red); text-decoration: none; }
.btn-collapse {
    background: var(--bg-light);
    color: var(--muted);
    border: 1px solid var(--border);
    margin-top: 8px;
}

.expand-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.expand-section-header h2 { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   TABELE
   ═══════════════════════════════════════════════════════════════════════════ */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    text-align: left;
    padding: 8px 10px;
    background: var(--bg-light);
    color: var(--muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid var(--border);
}

tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-light); }
td { padding: 8px 10px; color: var(--text); }
td.center { text-align: center; }
td.activity { color: var(--muted); font-size: 12px; }

.persons-table { margin-top: 8px; }

/* Siatka detali (key-value) */
.detail-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 4px 16px;
    font-size: 13px;
}
.detail-grid .label { color: var(--muted); padding: 4px 0; }
.detail-grid .value { padding: 4px 0; font-weight: 600; color: var(--text-dark); }

/* Paginacja */
.pagination { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.pagination a {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text);
}
.pagination a:hover { background: var(--bg-light); border-color: var(--red); color: var(--red); text-decoration: none; }
.pagination a.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Tagi statusu */
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.tag-child    { background: #e8f3fd; color: #1a5a9a; border: 1px solid #b3d0ef; }
.tag-student  { background: #e8fdf3; color: #1a7a3a; border: 1px solid #a0d4b3; }
.tag-higher   { background: #fdf8e8; color: #7a6010; border: 1px solid #d4c480; }
.tag-employed { background: #edf8ee; color: #2a6a2a; border: 1px solid #90c890; }
.tag-unemp    { background: #fdf4e8; color: #8a4a10; border: 1px solid #d4a870; }
.tag-retired  { background: #f5eeff; color: #5a3080; border: 1px solid #c0a0e0; }

/* Kolory aktywności w tabeli */
tr.act-sleep   td { color: var(--muted); }
tr.act-sex     td.activity { color: var(--red); font-weight: 600; }
tr.act-work    td.activity { color: #1a7a3a; }
tr.act-school  td.activity { color: #7a6010; }

/* Sekcja nagłówka listy */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-header h3 { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.section-count { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); font-size: 13px; padding: 12px 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   DOKUMENTACJA
   ═══════════════════════════════════════════════════════════════════════════ */

.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
    max-width: var(--max-w);
    padding-top: 28px;
}

/* TOC sidebar */
.docs-toc {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.docs-toc-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: var(--radius);
    padding: 14px;
}

.docs-toc-inner h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
}

.docs-toc ul { list-style: none; }
.docs-toc li { line-height: 1; }

.docs-toc li a {
    display: block;
    padding: 4px 6px;
    font-size: 12px;
    color: var(--text);
    border-radius: 3px;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.docs-toc li a:hover { color: var(--red); background: var(--bg-light); text-decoration: none; }

.toc-h1 a { font-weight: 700; font-size: 13px; }
.toc-h2 a { padding-left: 12px; }
.toc-h3 a { padding-left: 22px; font-size: 11px; color: var(--muted); }

/* Docs body */
.docs-content { min-width: 0; }

.docs-body {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
}

.docs-body h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--red);
}

.docs-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 12px;
    padding-left: 10px;
    border-left: 4px solid var(--red);
}

.docs-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 22px 0 8px;
}

.docs-body h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin: 16px 0 6px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.docs-body p { color: var(--text); line-height: 1.75; margin-bottom: 12px; }
.docs-body strong { color: var(--text-dark); }

.docs-body ul, .docs-body ol {
    padding-left: 22px;
    margin-bottom: 14px;
    color: var(--text);
    line-height: 1.75;
}

.docs-body li { margin-bottom: 3px; }

.docs-body pre {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 14px 0;
    overflow-x: auto;
}

.docs-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: var(--text-dark);
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.6;
}

.docs-body table { margin: 14px 0 18px; }

.docs-body table thead th {
    background: var(--bg-light);
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 8px 12px;
}

.docs-body table tbody td {
    color: var(--text);
    border: 1px solid var(--border);
    padding: 7px 12px;
}

.docs-body table tbody tr:hover { background: var(--bg-light); }

.docs-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1000px) {
    .landing-hero-inner      { grid-template-columns: 1fr; }
    .landing-hero-img        { display: none; }
    .landing-section-grid    { grid-template-columns: 1fr; gap: 24px; }
    .landing-cta-inner       { grid-template-columns: 1fr; }
    .landing-party-inner     { grid-template-columns: 1fr; }
    .docs-layout             { grid-template-columns: 1fr; }
    .docs-toc                { position: static; max-height: none; }
    .site-footer-main-inner  { grid-template-columns: 1fr 1fr; padding-bottom: 240px; }
    .footer-city-line        { max-width: 70%; }
}

@media (max-width: 700px) {
    .container               { padding: 12px; }
    .activity-grid           { grid-template-columns: 1fr; }
    .detail-grid             { grid-template-columns: 1fr; }
    .brand-img               { width: 200px; height: 81px; }
    .site-header-top         { padding: 10px 12px; }
    .topnav                  { padding: 0 12px; }
    .topnav a                { padding: 8px 10px; font-size: 12px; }
    .stat-cards              { grid-template-columns: repeat(2, 1fr); }
    .landing-hero-text h1    { font-size: 22px; }
    .docs-body               { padding: 16px; }
    .site-footer-main-inner  { grid-template-columns: 1fr; padding-bottom: 260px; }
    .footer-city-line        { max-width: 90%; }
}
