﻿.explore-page {
    --bg: var(--granat-color);
    --panel: #252e4d;
    --line: #303a59;
    --accent: #0099f5;
    background: var(--bg);
    color: #fff;
    font-family: Arial,Helvetica,sans-serif;
    min-height: 100vh
}

    .explore-page * {
        box-sizing: border-box
    }

.explore-topbar {
    height: 68px;
    background: #fff;
    color: #303744;
    display: flex;
    align-items: center
}

.explore-topbar-inner {
    width: min(1296px,calc(100% - 48px));
    margin: auto;
    display: flex;
    gap: 10px;
    font-size: 13px
}

.explore-topbar a {
    color: inherit;
    text-decoration: none
}

.explore-hero {
    height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    background: #314963 url('/images/explore/Katedra_we_Wrocławiu.webp') center/cover no-repeat
}

.explore-hero-shade {
/*    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(7,17,36,.62),rgba(7,17,36,.30)),linear-gradient(0deg,rgba(7,17,36,.38),transparent 60%)*/
}

.explore-hero-inner {
    position: relative;
    width: min(1296px,calc(100% - 48px));
    margin: auto;
    padding-left: 110px
}

.explore-eyebrow {
    font-size: 13px;
    letter-spacing: .045em;
    border-bottom: 1px solid rgba(255,255,255,.7);
    padding-bottom: 5px
}

.explore-hero h1 {
    font-size: clamp(36px,4vw,54px);
    line-height: 1.1;
    margin: 18px 0 15px;
    max-width: 650px
}

.explore-hero p {
    font-size: 19px;
    margin: 0;
    font-weight: 600
}

.explore-scroll-icon {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 23px
}

.explore-main {
    background: var(--bg)
}

.explore-container {
    width: min(1296px,100%);
    margin: auto;
    padding: 36px 0 64px
}

.explore-container--stories {
    padding-top: 0;
    padding-bottom: 100px
}

.explore-inner {
    max-width: 1076px;
    width: calc(100% - 48px);
    margin-inline: auto
}

.explore-region-switch {
    height: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden
}

    .explore-region-switch button {
        border: 0;
        background: transparent;
        color: #fff;
        font: inherit;
        cursor: pointer;
        font-size: 15px
    }

        .explore-region-switch button.is-active {
            background: var(--panel);
            border-bottom: 3px solid var(--accent)
        }

.explore-overview {
    padding-top: 42px
}

    .explore-overview h2 {
        font-size: 42px;
        line-height: 1.1;
        margin: 0 0 18px
    }

.explore-intro {
    font-size: 16px;
    margin: 0
}

.explore-stats {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px
}

.explore-stat {
    display: flex;
    flex-direction: column;
    gap: 5px
}

    .explore-stat strong {
        font-size: 32px;
        line-height: 1;
        font-weight: 700
    }

    .explore-stat span {
        font-size: 15px
    }

.explore-stat-pair {
    display: flex;
    gap: 36px
}

.explore-discover {
    margin-top: 100px
}

    .explore-discover h2 {
        text-align: center;
        margin: 0 0 38px
    }

.explore-tabs {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    margin: 0 15px 22px
}

    .explore-tabs button {
        min-height: 46px;
        border: 1px solid var(--panel);
        border-radius: 5px 5px 0 0;
        background: var(--panel);
        color: #fff;
        font: inherit;
        font-size: 14px;
        cursor: pointer
    }

        .explore-tabs button.is-active {
            background: transparent;
            border-bottom-color: var(--bg);
            font-weight: 700
        }

.explore-feature {
    display: grid;
    grid-template-columns: 41% 1fr;
    gap: 24px
}

    .explore-feature img {
        width: 100%;
        height: 500px;
        object-fit: cover;
        border-radius: 6px;
        display: block;
        background: #29354c
    }

.explore-accordion-item {
    border-top: 1px solid var(--line)
}

    .explore-accordion-item:last-child {
        border-bottom: 1px solid var(--line)
    }

    .explore-accordion-item button {
        width: 100%;
        min-height: 65px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        background: none;
        border: 0;
        color: #fff;
        font: inherit;
        text-align: left;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
        padding: 12px 0
    }

.explore-accordion-symbol {
    font-size: 28px;
    font-weight: 300;
    line-height: 1
}

.explore-accordion-item p {
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    padding: 8px 0 24px
}

.explore-bottom-banner {
    width: 100%;
    height: 380px;
    position: relative;
    background: #293b45 url('/images/explore/widok_1920x360.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center
}

.explore-bottom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,20,33,.35)
}

.explore-bottom-content {
    position: relative;
    max-width: 1076px;
    margin-inline: 24px;
    padding: 18px 28px;
}

    .explore-bottom-content h2 {
        font-size: 32px;
        margin: 0 0 12px
    }

    .explore-bottom-content p {
        font-size: 18px;
        margin: 0
    }
        .explore-bottom-content h2 span,
        .explore-bottom-content p span {
            display: inline;
            line-height: 1.5;
            background: color-mix(in srgb, var(--granat-color) 80%, transparent);
            -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
            padding: 5px 8px;
        }

@media(max-width:1350px) {
    .explore-container {
        padding-left: 24px;
        padding-right: 24px
    }

    .explore-inner {
        width: 100%
    }

    .explore-hero-inner {
        padding-left: 0
    }
}

@media(max-width:768px) {
    .explore-topbar {
        height: 52px
    }

    .explore-hero {
        height: 520px
    }

        .explore-hero h1 {
            font-size: 38px
        }

        .explore-hero p {
            font-size: 16px
        }

    .explore-container {
        padding: 24px 18px 64px
    }

    .explore-region-switch {
        height: 58px
    }

        .explore-region-switch button {
            font-size: 13px
        }

    .explore-overview {
        padding-top: 32px
    }

        .explore-overview h2 {
            font-size: 32px
        }

    .explore-stats {
        margin-top: 35px;
        gap: 22px
    }

    .explore-stat strong {
        font-size: 28px
    }

    .explore-discover {
        margin-top: 70px
    }

        .explore-discover h2 {
            font-size: 25px
        }

    .explore-tabs {
        margin: 0 0 16px;
        gap: 4px
    }

        .explore-tabs button {
            font-size: 11px;
            padding: 8px 3px
        }

    .explore-feature {
        grid-template-columns: 1fr;
        gap: 18px
    }

        .explore-feature img {
            height: 310px
        }

    .explore-accordion-item button {
        font-size: 15px
    }

    .explore-bottom-banner {
        height: 300px
    }

    .explore-bottom-content h2 {
        font-size: 26px
    }
}

/* Static SSR: native links and HTML details, no Blazor event handlers */
.explore-region-switch .explore-region-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 15px
}

    .explore-region-switch .explore-region-link.is-active {
        background: var(--panel);
        border-bottom: 3px solid var(--accent)
    }

.explore-tabs a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--panel);
    border-radius: 5px 5px 0 0;
    background: var(--panel);
    color: #fff;
    text-decoration: none;
    font-size: 14px
}

    .explore-tabs a.is-active {
        background: transparent;
        border-bottom-color: var(--bg);
        font-weight: 700
    }

.explore-accordion-item summary {
    list-style: none;
    cursor: pointer;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 0
}

    .explore-accordion-item summary::-webkit-details-marker {
        display: none
    }

    .explore-accordion-item summary::after {
        content: '+';
        font-size: 28px;
        font-weight: 300;
        line-height: 1
    }

.explore-accordion-item[open] summary::after {
    content: '−'
}

@media(max-width:768px) {
    .explore-region-switch .explore-region-link {
        font-size: 13px
    }

    .explore-tabs a {
        font-size: 11px;
        padding: 8px 3px
    }

    .explore-accordion-item summary {
        font-size: 15px
    }
}


/* Poland at a glance */

.explore-poland-overview {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: 24px;
    align-items: start;
}

.explore-poland-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px !important;
    white-space: nowrap;
}

.explore-poland-flag {
    display: inline-block;
    width: 45px;
    height: 28px;
    flex-shrink: 0;
    background: linear-gradient( to bottom, #fff 50%, #dc143c 50% );
}

.explore-poland-overview .explore-stats {
    margin-top: 48px;
    gap: 30px;
}

.explore-poland-overview .explore-stat-pair {
    gap: 36px;
}

.explore-poland-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
}

    .explore-poland-detail strong {
        font-size: 32px;
        line-height: 1.1;
    }

.explore-poland-map {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

    .explore-poland-map img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

@media (max-width: 768px) {
    .explore-poland-overview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .explore-poland-title {
        font-size: 23px !important;
        white-space: normal;
    }

    .explore-poland-map {
        width: 100%;
        height: 100%;
    }
}

.explore-stories {
    margin-top: 72px;
}

.explore-stories h2 {
    margin: 0 0 28px;
    text-align: center;
}

.explore-stories__grid {
    display: grid;
    justify-content: center;
    gap: 10px;
    grid-template-columns: minmax(0, 352px);
}

.explore-story {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 316px;
}

.explore-story__media {
    height: 170px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.explore-story__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-story__body {
    height: 146px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
    gap: 14px;
}

.explore-story__body h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

    .explore-story__body button {
        border: 0;
        border-radius: 999px;
        background: #fff;
        color: var(--granat-color);
        padding: 8px 18px;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        cursor: pointer;
    }

.explore-story-dialog {
    width: min(720px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 28px 28px 36px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 10px;
    background: #1e2a62;
    color: #fff;
    overflow: auto;
}

.explore-story-dialog::backdrop {
    background: rgba(8, 12, 28, .72);
}

.explore-story-dialog img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 4px;
}

.explore-story-dialog h2 {
    margin: 22px 0 12px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.explore-story-dialog p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-line;
}

.explore-story-dialog p:last-child {
    margin-bottom: 0;
}

.explore-story-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.explore-story-dialog__close span {
    position: absolute;
    inset: 0;
}

.explore-story-dialog__close span::before,
.explore-story-dialog__close span::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 17px;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: var(--granat-color);
}

.explore-story-dialog__close span::before {
    transform: rotate(45deg);
}

.explore-story-dialog__close span::after {
    transform: rotate(-45deg);
}

@media (min-width: 762px) {
    .explore-stories__grid {
        grid-template-columns: repeat(2, minmax(0, 352px));
    }
}

@media (min-width: 1124px) {
    .explore-stories__grid {
        grid-template-columns: repeat(3, 352px);
    }
}

@media (max-width: 768px) {
    .explore-story-dialog {
        padding: 16px 16px 24px;
    }

    .explore-story-dialog h2 {
        font-size: 24px;
    }
}
