/* Wygląd serwisu wzorowany na stronie projektu (Google Sites):
   czarny pasek z komunikatem, czarna nawigacja, hero ze zdjęciem dokumentów,
   treść na bieli (PT Sans + Merriweather), stopka z przyciskiem Discord. */

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --gs-red: #be2727;
    --gs-black: #000;
    --gs-ink: #212121;
}

body.xsp {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--gs-ink);
    background: #fff;
}

h1, h2, h3, h4, .breadcrumb, #gs-nav, .gs-brand, .table th {
    font-family: 'PT Sans', Arial, sans-serif;
}

/* ── Pasek z komunikatem ───────────────────────────────── */
.gs-notice {
    background: var(--gs-black);
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 9px 15px;
    font-family: 'Merriweather', Georgia, serif;
}

/* ── Nawigacja ─────────────────────────────────────────── */
#gs-nav {
    background: var(--gs-black);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#gs-nav .container {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}

#gs-nav a.gs-brand, #gs-nav a.gs-brand:hover, #gs-nav a.gs-brand:focus {
    text-decoration: none !important;
    margin-right: auto;
    flex-shrink: 0;
    line-height: 0;
}

#gs-nav a.gs-brand img {
    height: 50px;
    width: auto;
    display: block;
}

.search-box-left img {
    width: 160px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

#gs-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 26px;
    flex-wrap: wrap;
}

#gs-nav ul a {
    color: rgba(255, 255, 255, 0.87);
    font-size: 16px;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 3px solid transparent;
}

#gs-nav ul a:hover { color: #fff; }

#gs-nav ul li.active a {
    color: #fff;
    font-weight: 700;
    border-bottom-color: var(--gs-red);
}

.gs-search {
    width: 22px;
    height: 22px;
    display: block;
    background: url(../images/search.svg) no-repeat center / 20px;
}

.gs-user {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'PT Sans', Arial, sans-serif;
    white-space: nowrap;
}

.gs-user a { color: #fff; text-decoration: underline; }

/* ── Hero ze zdjęciem ──────────────────────────────────── */
.gs-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.15) 100%),
        url(../images/hero.jpg) center 38% / cover no-repeat;
}

.gs-hero .container {
    padding-top: 86px;
    padding-bottom: 86px;
}

.gs-hero h1 {
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.12;
    margin: 0;
    max-width: 13em;
}

/* ── Treść ─────────────────────────────────────────────── */
#facetMain { background: #fff; }

section.search-box { padding-top: 56px; padding-bottom: 56px; }

.search-box-left {
    float: left;
    width: 25.5%;
    padding-right: 43px;
    text-align: center;
}

.search-box-left img { max-width: 171px; }

.search-box-left .small-text {
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    margin-top: 22px;
}

.search-box-left .small-text.red { color: var(--gs-red); }

.search-box-right { float: right; width: 74.5%; }

.search-box-right .text, .text-main .text {
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 1.4em;
}

section.text-main { padding-top: 56px; padding-bottom: 30px; }

.text-main-left {
    float: left;
    width: 25.5%;
    padding-right: 43px;
    text-align: center;
}

.text-main-left img { max-width: 171px; }

.text-main-right { float: right; width: 74.5%; }

section.isap {
    background: #fff;
    padding: 10px 15px 40px;
}

h1 { font-size: 34px; font-weight: 700; }

/* ── Stopka ────────────────────────────────────────────── */
footer {
    border-top: 1px solid #e4e4e4;
    background: #fff;
}

footer .container {
    display: flex;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
    padding-top: 26px;
    padding-bottom: 26px;
}

.footer-text {
    flex: 1;
    font-size: 13px;
    color: #5f6368;
}

.gs-discord {
    display: inline-block;
    background: var(--gs-red);
    color: #fff !important;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 15px;
    text-decoration: none;
    padding: 11px 64px;
    flex-shrink: 0;
}

.gs-discord:hover { background: #a32121; color: #fff; }

.nav-footer ul {
    display: flex;
    list-style: none;
    gap: 1em;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: 13px;
}

/* ── Roczniki ──────────────────────────────────────────── */
.year-box-row {
    display: grid;
    grid-template-columns: repeat(10, max-content);
    gap: 4px 0;
    margin-bottom: 30px;
}

a.year {
    display: block;
    width: 3em;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 20px;
    color: #818181;
    text-decoration: none;
    line-height: 1.2;
}

a.year:hover {
    color: var(--gs-ink);
}

/* ── Kontakt ───────────────────────────────────────────── */
.contact-btn {
    display: inline-block;
    background: var(--gs-red);
    color: #fff !important;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 3px;
}

.contact-btn:hover { background: #a32121; }

/* ── Tabela powiązań i druki sejmowe ───────────────────── */
.ref-table a.doc-details-link { color: var(--gs-red); }
.ref-table a.doc-details-link:hover { color: #a32121; }
.ref-table { width: 100%; margin: 0; }
.ref-table th { white-space: nowrap; }
.ref-table td { vertical-align: top; }
.ref-date { white-space: nowrap; width: 7em; }

/* ── Select2 dropdown ──────────────────────────────────── */
.select2-dropdown {
    border: 1px solid #d0d0d0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    background: #fff;
}

.select2-results__option {
    font-size: 15px;
    color: var(--gs-ink);
    padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--gs-red);
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f1f3f4;
    color: var(--gs-ink);
}

/* ── Zakładki DU / MP ──────────────────────────────────── */
.act-type li a { background: #e8e8e8; color: var(--gs-ink); }
.act-type li a.active { background: var(--gs-red); color: #fff; }
.act-type li a:hover { background: var(--gs-red); color: #fff; }

/* ── Drobne nadpisania starych styli ───────────────────── */
.table { font-size: 14px; }
.table th { background: var(--gs-black); color: #fff; }
.breadcrumb { background: #f1f3f4; }

@media (max-width: 900px) {
    .gs-hero h1 { font-size: 38px; }
    .gs-hero .container { padding-top: 48px; padding-bottom: 48px; }
    .search-box-left, .text-main-left { display: none; }
    .search-box-right, .text-main-right { float: none; width: 100%; }
    .gs-brand { font-size: 20px; }
}

@media (max-width: 768px) {
    #gs-nav .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 18px;
        padding-top: 10px;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    #gs-nav .container::-webkit-scrollbar { display: none; }
    #gs-nav ul { flex-wrap: nowrap; gap: 18px; }
    #gs-nav ul a { font-size: 14px; }
    #gs-nav a.gs-brand img { height: 38px; }
    .gs-user { display: none; }
}
