#allrecords a{
    color: unset;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 1px;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('https://namorvotilav.ru/fonts/IBMPlexMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss04" on;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('https://namorvotilav.ru/fonts/IBMPlexMono-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    font-feature-settings: "ss04" on;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('https://namorvotilav.ru/fonts/IBMPlexMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss04" on;
}

@font-face {
    font-family: 'American Typewriter';
    src: url('https://namorvotilav.ru/fonts/AmericanTypewriter.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: oklch(0.68 0.2095 31.73);
    --highlight: oklch(0.895 0.045 65.02);
    --text: oklch(0 0 0);
    --bg: oklch(0.9489 0.0076 61.45);
}

*,
::after,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-wrap: pretty;
    hyphens: auto;
}

*:focus {
    outline: none;
}

::selection {
    color: var(--bgk);
    background: var(--accent);
}

html {
    font-synthesis: none !important;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

body {
    background: var(--accent);
    color: var(--text);

    font-family: 'IBM Plex Mono';
    font-size: 16px;
    line-height: 20px;
}

h1 {
    font-family: 'American Typewriter';
    font-weight: 400;
    font-size: 72px;
    line-height: 60px;
    text-transform: uppercase;
    color: var(--bg);
    text-shadow: 1px 4px 0 var(--text), -1px -1px 0 var(--text), 1px -1px 0 var(--text), -1px 4px 0 var(--text);
}

h2 {
    font-family: inherit;
    font-size: 16px;
    line-height: 16px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 400;
    letter-spacing: 10%;
    display: flex;
    gap: 8px;
    white-space: nowrap;
    width: 100%;

    &::before {
        content: '';
        display: inline-block;
        background: black;
        width: 100%;
        height: 1px;
        position: relative;
        top: 8px;
    }

    &:after {
        content: '';
        display: inline-block;
        background: black;
        width: 100%;
        height: 1px;
        position: relative;
        top: 8px;
    }
}

h3 {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: bold;
    text-align: start;
}

a {
    color: inherit;
    text-underline-offset: 4px;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 1px;
}

.pseudo{
    text-decoration-style: dotted !important;
}

p {
    .highlight {
        background: var(--accent);
    }
}

li {
    margin-left: 12px;
    margin-bottom: 16px;
}

button {
    border: none;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 12px 8px;
    width: 100%;
    min-height: 48px;

    cursor: pointer;

    transition: background 500ms ease, color 500ms ease;

    &:hover {
        transition: background 0ms ease, color 0ms ease;
    }

    &:active {
        translate: 0 1px;
    }
}

.button-black {
    background: var(--text);
    color: var(--bg);

    &:hover {
        background: var(--accent);
    }
}

.button-white {
    background: var(--bg);
    color: var(--text);

    &:hover {
        background: var(--text);
        color: var(--bg);
    }
}

.disabled {
    opacity: 50%;
    pointer-events: none;
    cursor: default;
}

.quote {
    display: flex;
    flex-direction: column;
    font-style: italic;
    position: relative;

    &::after {
        content: url('data:image/svg+xml,%3Csvg%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20opacity%3D%220.25%22%3E%3Cpath%20d%3D%22M30%2012C30%2030%2014%2038%2014%2035C14%2033%2024%2024%2018%2024C11.3726%2024%206%2018.6274%206%2012C6%205.37258%2011.3726%200%2018%200C24.6274%200%2030%205.37258%2030%2012Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M58%2012C58%2030%2042%2038%2042%2035C42%2033%2052%2024%2046%2024C39.3726%2024%2034%2018.6274%2034%2012C34%205.37258%2039.3726%200%2046%200C52.6274%200%2058%205.37258%2058%2012Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
        display: block;
        width: 64px;
        height: 64px;
        position: absolute;
        top: 0;
        right: 0;
    }

    .author {
        text-align: right;
    }
}

.wrapper {
    background: var(--bg);
    display: flex;
    height: 100vh;
    overflow: hidden;

    .content {
        display: flex;
        flex-direction: column;
        gap: 64px;
        flex: 1;
        max-width: 480px;
        padding: 0 16px 32px;
        overflow-y: scroll;
        overflow-x: clip;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
        border-right: 1px solid var(--highlight);

        @media (max-width:991px) {
            max-width: 100vw;
            border: none;
        }

        .ubrir-logo {
            margin-top: 16px;
        }

        .nav {
            display: flex;
            justify-content: start;
            gap: 8px;
            margin: 0 -16px;
            margin-bottom: -64px;
            padding: 16px;
            position: sticky;
            top: 0;
            z-index: 4;
            background: linear-gradient(180deg,
                    oklch(from var(--accent) l c h / 100%) 0%,
                    oklch(from var(--accent) l c h / 30%) 50%,
                    oklch(from var(--accent) l c h / 15%) 65%,
                    oklch(from var(--accent) l c h / 7.5%) 75.5%,
                    oklch(from var(--accent) l c h / 3.7%) 82.85%,
                    oklch(from var(--accent) l c h / 1.9%) 88%,
                    oklch(from var(--accent) l c h / 0%) 100%);
            background: var(--accent);
        }

        .chapter {
            display: flex;
            flex-direction: column;
            gap: 16px;
            align-items: center;

            .text-block {
                display: flex;
                flex-direction: column;
                gap: 12px;
                width: 100%;
            }
            
            .pin-list{
                display: flex;
                flex-direction: column;
                gap: 8px;
                width: 100%;

                .pin{
                    display: flex;
                    gap: 4px;
                    align-items: center;
                }
            }

            .district-cover {
                display: grid;
                align-items: center;
                justify-content: center;
                width: calc(100% + 32px);
                height: 320px;
                margin: 0 -16px;
                background-size: cover;

                h1 {
                    text-align: center;
                }
            }

            .gallery {
                display: flex;
                gap: 8px;
                justify-content: flex-start;
                flex-direction: row;
                align-items: center;
                overflow-x: scroll;
                width: calc(100% + 32px);
                margin-inline: -16px;
                padding-inline: 16px;
                margin: 0 -16px;
                scrollbar-width: none;

                img {
                    width: 300px;
                    height: 200px;
                    border-radius: 4px;
                    corner-shape: superellipse(1.6);
                    object-fit: cover;
                    border: 1px solid oklch(from var(--text) l c h / 20%);
                }
            }

            .mashgorodok {
                background-image: linear-gradient(oklch(from var(--bg) l c h / 0%)50%, var(--bg)), url("https://static.tildacdn.com/tild6435-3636-4838-a533-373634306633/_.png");
            }
            .dinamo{
                background-image: linear-gradient(oklch(from var(--bg) l c h / 0%)50%, var(--bg)), url("https://static.tildacdn.com/tild3963-3163-4633-b163-623063633136/_.png");
            }
            .avtozavod{
                background-image: linear-gradient(oklch(from var(--bg) l c h / 0%)50%, var(--bg)), url("https://static.tildacdn.com/tild6134-3734-4134-a266-306434363961/avtozavod_cover.png");
            }
            .promzona{
                background-image: linear-gradient(oklch(from var(--bg) l c h / 0%)50%, var(--bg)), url("https://static.tildacdn.com/tild3530-6335-4262-a262-353366343835/_.png");
            }
            .starii-gorod{
                background-image: linear-gradient(oklch(from var(--bg) l c h / 0%)50%, var(--bg)), url("https://static.tildacdn.com/tild3663-3836-4265-a333-363436343930/__.png");
            }
            .turgoyak{
                background-image: linear-gradient(oklch(from var(--bg) l c h / 0%)50%, var(--bg)), url("https://static.tildacdn.com/tild6461-6631-4430-b832-643664643530/_.png");
            }

        }

        .telegram {
            background: #7AA3D7;
            color: var(--bg);
            margin: 0 -16px;
            padding: 8px 16px 32px;
            display: flex;
            flex-direction: column;

            font-size: 20px;
            line-height: 24px;

            ::selection {
                background: var(--bg);
                color: var(--text);
            }

            select,
            input,
            textarea {
                font-family: inherit;
                border: none;
                background: none;
                color: inherit;
                font-size: inherit;
                line-height: inherit;

                &::placeholder {
                    color: inherit;
                    opacity: 75%;
                }
            }

            select {
                width: fit-content;
                align-self: center;
            }

            h2 {
                padding: 12px 0;
                align-self: center;
                justify-self: center;
                gap: 16px;

                &::before,
                &::after {
                    z-index: unset;
                    width: 24px;
                    height: 24px;
                    top: -4px;
                    background: var(--bg);
                    border-radius: 50%;
                }

                &::before {
                    margin-left: auto;
                }

                &::after {
                    margin-right: auto;
                }
            }

            .title {
                font-size: 12px;
                line-height: 12px;
                text-transform: uppercase;
                font-weight: 700;
                letter-spacing: 4%;
            }

            .telegram-head {
                display: grid;
                grid-template-columns: 1fr 2fr 1fr;
                margin: 0 -16px;

                &>* {
                    display: flex;
                    flex-direction: column;
                    text-align: center;
                    padding: 4px 8px 24px;
                    gap: 8px;
                }

                &>*:not(:last-of-type) {
                    border-right: 1px solid var(--bg);
                }

                .mailbox-no {
                    font-size: 32px;
                    line-height: 48px;

                }
                
                .stamp {
                    position: relative;

                    img {
                        position: absolute;
                        width: 180px;
                        right: -24px;
                        top: -36px;
                        cursor: pointer;
                    }
                }
            }

            .telegram-body {
                display: flex;
                flex-direction: column;

                &>* {
                    display: flex;
                    gap: 16px;
                    padding: 8px 0;
                    border-top: 1px solid var(--bg);
                    align-items: baseline;

                    input,
                    textarea {
                        flex: 1;
                    }

                    textarea {
                        min-height: 80px;
                    }
                }

                .title {
                    width: 88px;
                    min-width: 88px;
                }
            }

            .telegram-foot {
                display: grid;
                grid-template-columns: 1fr 1fr;
                border-top: 1px solid var(--bg);

                &>*:first-of-type {
                    border-right: 1px solid var(--bg);
                }

                .pers-data {
                    display: flex;
                    gap: 8px;
                    align-items: center;

                    input[type="checkbox"] {
                        border: 1px solid var(--bg);
                        all: unset;
                        cursor: pointer;
                        position: relative;

                        &::before {
                            content: '';
                            display: block;
                            width: 24px;
                            height: 24px;
                            border: 1px solid var(--bg);
                            position: relative;
                        }

                        &:checked::after {
                            content: url('data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M23.7305%203.01855C23.9378%202.90569%2024.1325%202.88748%2024.2744%202.9707C24.4163%203.05401%2024.496%203.23292%2024.499%203.46875C24.5017%203.70497%2024.4262%203.97936%2024.293%204.2334C24.0248%204.74428%2023.7578%205.25572%2023.4873%205.76465C23.1575%206.38511%2022.8238%207.00158%2022.4766%207.61133C22.2339%208.03752%2021.989%208.46266%2021.7432%208.88672C21.7178%208.93042%2021.6922%208.97407%2021.667%209.01758C21.5011%209.39697%2021.3345%209.77289%2021.2061%2010.0332C21.1003%2010.2476%2020.9983%2010.389%2020.9102%2010.5117C20.8497%2010.5959%2020.7964%2010.6691%2020.7539%2010.751C20.7311%2010.7949%2020.7019%2010.8561%2020.666%2010.9287C20.5187%2011.2262%2020.2702%2011.731%2019.9971%2012.166C19.8753%2012.3599%2019.723%2012.578%2019.5781%2012.7871C19.3814%2013.0704%2019.1977%2013.3401%2019.126%2013.5C19.1222%2013.5084%2019.1184%2013.5166%2019.1152%2013.5244C19.0028%2013.8015%2018.8339%2014.0997%2018.6865%2014.3633C18.5461%2014.614%2018.4236%2014.8367%2018.3877%2014.9775C18.3446%2015.146%2018.2716%2015.2723%2018.1631%2015.4609C18.0881%2015.5914%2017.9958%2015.7531%2017.8877%2015.9785C17.7624%2016.2403%2017.6594%2016.4174%2017.5723%2016.5703C17.4503%2016.7845%2017.36%2016.9473%2017.29%2017.2158C17.2125%2017.5139%2017.1191%2017.8193%2017.0156%2018.0479C16.9684%2018.1521%2016.9218%2018.2741%2016.875%2018.4014C16.8128%2018.5706%2016.7495%2018.7491%2016.6758%2018.9062C16.6151%2019.0355%2016.5441%2019.1352%2016.4824%2019.2236C16.4632%2019.2513%2016.4448%2019.2786%2016.4277%2019.3047C16.3902%2019.4117%2016.3536%2019.5196%2016.3174%2019.627C16.3162%2019.6459%2016.3145%2019.6665%2016.3135%2019.6875C16.3083%2019.793%2016.3024%2019.9227%2016.2705%2020.0742C16.2219%2020.3047%2016.1429%2020.4963%2016.0596%2020.6963L16.0645%2020.6807C16.0612%2020.6893%2016.058%2020.6984%2016.0547%2020.707C15.9909%2020.8763%2015.9266%2021.045%2015.873%2021.2529C15.8372%2021.3922%2015.8047%2021.5545%2015.7725%2021.7148C15.725%2021.9517%2015.6777%2022.1864%2015.6201%2022.3447C15.5986%2022.4037%2015.5648%2022.4501%2015.5312%2022.4951H15.5303C15.528%2022.4982%2015.5257%2022.5018%2015.5234%2022.5049C15.4271%2022.8989%2015.3326%2023.2925%2015.2383%2023.6865C15.2335%2023.722%2015.2285%2023.7579%2015.2236%2023.793C15.2009%2023.961%2015.1755%2024.1342%2015.1787%2024.2451C15.1802%2024.3719%2015.1196%2024.6603%2015.0527%2024.9688C15.0099%2025.1677%2014.9636%2025.3794%2014.9336%2025.5508C14.9161%2025.6508%2014.8671%2025.7399%2014.8184%2025.8271C14.7712%2025.9139%2014.7256%2025.9932%2014.6982%2026.0986C14.6848%2026.1507%2014.6775%2026.2026%2014.667%2026.2666C14.6582%2026.3215%2014.6501%2026.3757%2014.6367%2026.4346C14.6238%2026.4905%2014.5751%2026.6048%2014.5107%2026.75C14.4691%2026.845%2014.4227%2026.9472%2014.3711%2027.0615C14.3402%2027.1543%2014.3074%2027.2501%2014.2617%2027.3594C14.2367%2027.4176%2014.2135%2027.4729%2014.165%2027.5566C14.1399%2027.5969%2014.1154%2027.6468%2014.0283%2027.7393C13.9615%2027.7952%2013.9596%2027.8393%2013.7139%2027.9355C13.4953%2028.037%2013.0612%2027.9024%2012.9434%2027.7295C12.7612%2027.5218%2012.7223%2027.4311%2012.6475%2027.3213C12.5992%2027.2751%2012.5518%2027.241%2012.5049%2027.2207C12.471%2027.2061%2012.4352%2027.1977%2012.3994%2027.1895C12.3508%2027.1782%2012.3009%2027.1664%2012.251%2027.1416C12.2113%2027.1212%2012.1802%2027.0893%2012.1729%2027.0596C12.1695%2027.0459%2012.1706%2027.0326%2012.1719%2027.0205C12.1733%2027.0067%2012.175%2026.994%2012.1689%2026.9844C12.1643%2026.9774%2012.1538%2026.9729%2012.1416%2026.9678C12.1219%2026.9593%2012.0965%2026.9484%2012.0771%2026.9199C12.005%2026.8131%2011.9278%2026.6909%2011.8477%2026.5713C11.7585%2026.4381%2011.6678%2026.3101%2011.5859%2026.2139C11.5266%2026.1441%2011.4593%2026.047%2011.3867%2025.9404C11.3448%2025.8798%2011.3013%2025.8169%2011.2588%2025.7539C11.1737%2025.6278%2011.0867%2025.499%2011.0078%2025.3955C10.9685%2025.3441%2010.9251%2025.2953%2010.8799%2025.248L10.5811%2024.9492C10.5316%2024.8958%2010.4876%2024.8419%2010.4541%2024.7871C10.4408%2024.765%2010.4388%2024.7252%2010.4365%2024.6748C10.4348%2024.6388%2010.4332%2024.5971%2010.4268%2024.5537C10.322%2024.4316%2010.2165%2024.307%2010.1133%2024.1846C10.107%2024.1825%2010.1003%2024.1799%2010.0938%2024.1777C9.94624%2024.1288%209.74467%2024.063%209.62695%2023.8291C9.59675%2023.7693%209.59332%2023.7184%209.58984%2023.6729C9.58644%2023.6281%209.58257%2023.5883%209.55566%2023.5498C9.52461%2023.5056%209.46998%2023.4685%209.41113%2023.4287C9.32899%2023.3734%209.23514%2023.309%209.18359%2023.2109C9.1801%2023.2043%209.17677%2023.1968%209.17285%2023.1895C9.135%2023.1183%209.07762%2023.0116%209.04297%2022.8887C8.82587%2022.6216%208.6092%2022.3537%208.39258%2022.0859C8.03197%2021.6402%207.67063%2021.1932%207.30371%2020.7529C7.12547%2020.5387%206.99604%2020.2954%206.94531%2020.0703C6.89464%2019.845%206.92644%2019.6568%207.04102%2019.543C7.15441%2019.428%207.34492%2019.3967%207.57324%2019.4561C7.80092%2019.5151%208.04546%2019.659%208.25391%2019.8535C8.59317%2020.1704%208.92828%2020.4911%209.25879%2020.8145C9.27746%2020.83%209.29687%2020.8464%209.31543%2020.8623C9.45378%2020.9807%209.59945%2021.0732%209.74512%2021.167C9.77873%2021.1887%209.81274%2021.2109%209.8457%2021.2324C10.0997%2021.399%2010.4515%2021.843%2010.6436%2022.0879C10.647%2022.0922%2010.6509%2022.0963%2010.6543%2022.1006C10.7006%2022.1594%2010.7457%2022.2121%2010.7988%2022.2744C10.9258%2022.4236%2011.0959%2022.6233%2011.418%2023.0713C11.523%2023.1901%2011.6297%2023.3118%2011.7334%2023.4326C12.1031%2023.8636%2012.4622%2024.2986%2012.8174%2024.7412C13.0028%2024.9717%2013.1801%2025.2112%2013.3486%2025.458C13.4251%2025.2019%2013.5034%2024.9515%2013.5742%2024.7695C13.7283%2024.373%2013.8395%2024.1071%2013.9336%2023.8848C14.3241%2022.7293%2014.7052%2021.5661%2015.0674%2020.3955C15.0681%2020.3922%2015.0723%2020.3825%2015.0732%2020.3789C15.119%2020.2462%2015.1646%2020.1132%2015.2109%2019.9805C15.3531%2019.5733%2015.4979%2019.1658%2015.6445%2018.7598C15.7797%2018.3856%2015.9169%2018.0129%2016.0576%2017.6406C16.126%2017.4197%2016.1904%2017.207%2016.25%2017.0117C16.3341%2016.7364%2016.4127%2016.4905%2016.4883%2016.2939C16.6708%2015.8184%2016.9324%2015.3027%2017.1309%2014.9238C17.1632%2014.862%2017.1947%2014.8024%2017.2227%2014.749C17.3562%2014.4366%2017.4914%2014.1244%2017.6289%2013.8145C17.6446%2013.7968%2017.6615%2013.7784%2017.6777%2013.7607C17.8389%2013.5849%2017.9709%2013.3469%2018.1436%2013.0068C18.1881%2012.9191%2018.2359%2012.8232%2018.2881%2012.7197C18.3969%2012.5036%2018.5257%2012.2501%2018.6836%2011.96C18.7859%2011.772%2018.867%2011.6911%2018.9336%2011.624C18.9529%2011.6047%2018.9713%2011.5865%2018.9883%2011.5674C19.0467%2011.5018%2019.0687%2011.4105%2019.0947%2011.3037C19.1282%2011.1658%2019.1699%2010.9983%2019.3066%2010.8232C19.7445%2010.2633%2019.8203%209.95562%2019.8779%209.7207C19.8947%209.6524%2019.9101%209.59028%2019.9326%209.53027C20.0057%209.33575%2020.1736%209.09301%2020.3164%208.91895C20.4295%208.78069%2020.5725%208.45938%2020.668%208.20703C20.7038%208.11206%2020.77%207.99373%2020.8486%207.85352C20.9293%207.70962%2021.0243%207.5409%2021.1104%207.35449C21.3286%206.88212%2021.4474%206.6325%2021.543%206.43164C21.5701%206.37456%2021.5958%206.3209%2021.6211%206.26758C21.7014%206.0987%2021.8051%205.89354%2021.9111%205.68555C22.0383%205.43621%2022.1675%205.18261%2022.2588%204.98633C22.5566%204.51285%2022.8605%204.04276%2023.1641%203.57324C23.3203%203.33191%2023.523%203.13185%2023.7305%203.01855Z%22%20fill%3D%22%23F2EDE9%22%2F%3E%3C%2Fsvg%3E');
                            display: block;
                            width: 32px;
                            width: 32px;
                            position: absolute;
                            top: -8px;
                            left: -2px;
                        }
                    }

                    label {
                        font-size: 12px;
                        line-height: 12px;
                        text-transform: uppercase;
                        font-weight: bold;
                        letter-spacing: 4%;
                        cursor: pointer;
                        user-select: none;
                    }
                }

                .postal-service {
                    display: flex;
                    flex-direction: column;
                    gap: 8px;
                    text-align: center;
                    padding: 4px 8px;

                    .title {
                        width: 100%;
                    }

                    svg {
                        align-self: center;
                    }
                }
            }

            .telegram-button-wrap {
                padding-top: 16px;
            }

            #form-success {
                text-align: center;
                padding: 16px 0;
            }
        }

        .district-selector {
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding-top: 8px;
            width: 100%;

            .district-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px;

                .district-button {
                    display: flex;
                    flex-direction: column;
                    gap: 4px;
                    background: var(--highlight);
                    padding: 24px 8px;
                    align-items: center;
                    text-align: center;

                    text-decoration: none !important;
                    color: inherit;

                    border-radius: 8px;
                    corner-shape: superellipse(1.6);

                    &:hover {
                        background: var(--accent);

                        p {
                            color: var(--bg)
                        }

                        svg {
                            width: 48px;
                            height: auto;

                            path {
                                fill: var(--bg);
                            }
                        }
                    }

                    svg {
                        width: 48px;
                        height: auto;

                        path {
                            fill: var(--text);
                        }
                    }

                    .subtext {
                        font-size: 12px;
                        line-height: 12px;
                        color: var(--accent);
                        text-transform: uppercase;
                    }
                }

                .active {
                    pointer-events: none;
                    cursor: default;

                    background: var(--accent);

                    p,
                    .subtext {
                        color: var(--bg)
                    }

                    svg {
                        width: 48px;
                        height: auto;

                        path {
                            fill: var(--bg);
                        }
                    }
                }
            }
        }
        
        .logo-wall{
            display: flex;
            gap: 8px;
            width: 100%;
            
            .logo-wall-column {
                display: flex;
                flex-direction: column;
                gap: 8px;
                
                img{
                    height: 64px;
                    width: fit-content;
                }
            }
        }
    }

    .map {
        flex: 1;

        @media (max-width:991px) {
            display: none;
        }

        .map-legend {
            width: 100%;
            display: flex;
            gap: 12px;
            position: relative;
            z-index: 10;
            flex-wrap: wrap;
            padding: 16px;
            background: var(--bg);
            border-bottom: 1px solid var(--highlight);

            @media (max-width: 991px) {
                position: absolute;
                border: none;
                border-top: 1px solid var(--highlight);
                bottom: 0;
            }

            .map-legend-item {
                display: flex;
                gap: 4px;
                align-items: center;
                font-family: 'IBM Plex Mono';
                font-size: 16px;
                line-height: 20px;

                .map-legend-item-dot {
                    display: block;
                    width: 16px;
                    height: 16px;
                    aspect-ratio: 1 / 1;
                    border-radius: 50%;
                }
            }
        }
    }
}

.map-miniature {
    background-image: url('https://static.tildacdn.com/tild6262-3434-4266-a432-396363666133/map-miniature.png');
    background-size: cover;
    aspect-ratio: 1 / 1;
    width: 320px;
    border-radius: 50%;
    border: 1px solid var(--text);
    align-items: center;
    justify-content: center;
    display: none;
    cursor: pointer;

    @media (max-width:991px) {
        display: flex;
    }
}

.map--fullscreen {
    display: flex !important;
    position: fixed !important;
    inset: 0;
    z-index: 1000;
    flex-direction: column;
}

.map-back {
    position: absolute;
    top: 0;
    left: 0;
    padding: 16px;
    z-index: 10;
    cursor: pointer;
    display: none;
}

.map--fullscreen .map-back {
    display: block;
}

/* ─── AUDIOPLAYER ─── */

audio-player {
    display: block;
    width: 100%;
}

.audioplayer {
    display: flex;
    flex-direction: column;
    background: var(--highlight);
    border-radius: 40px;
    overflow: hidden;
}

.player-card {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 12px;

    font-size: 16px;
    line-height: 16px;
}

/* ─── CUSTOM PLAYER CONTROLS ─── */

/* The Jouele source element is hidden — audio engine still initializes */
.jouele-source {
    display: none;
}

/* Play/pause button */
.player-btn {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 200ms ease;
}

.player-btn:hover {
    opacity: 0.85;
}

.player-btn-icon {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);

    user-select: none;
}

.player-btn-icon--pause {
    display: none;
}

.player-btn.jouele-is-playing .player-btn-icon--play {
    display: none;
}

.player-btn.jouele-is-playing .player-btn-icon--pause {
    display: block;
}

/* Info column: name → progress → times, correct DOM order */
.player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-name {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}

/* Progress bar */
.player-progress {
    position: relative;
    height: 2px;
    cursor: pointer;
}

.player-progress-base {
    position: absolute;
    inset: 0;
    background: var(--text);
    border-radius: 1px;

    &::after {
        content: '';
        display: block;
        position: relative;
        width: 100%;
        height: 16px;
        top: -7px;
    }
}

.player-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 1px;
    transition: background 200ms linear;
}

.player-progress.jouele-is-playing .player-progress-fill {
    background: var(--accent);
}

.player-progress-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;

    background: var(--text);
    transition: background 100ms linear, border-radius 300ms ease;

    &::after {
        content: '';
        display: block;
        position: relative;
        width: 16px;
        height: 16px;
        left: -4px;
        top: -4px;
    }
}

.player-progress.jouele-is-playing .player-progress-dot {
    background: var(--accent);
    border-radius: 50%;
}

/* Times */
.player-times {
    display: flex;
    gap: 0.5em;
    align-items: baseline;
    color: var(--text);
    line-height: 1;

    user-select: none;
}

.player-time-elapsed {
    color: var(--accent);
}

.player-time-elapsed.jouele-is-unavailable {
    display: none;
}

.player-time-total.jouele-is-unavailable {
    /* keep visible — duration is pre-populated as text so it shows before audio loads */
    display: revert;
}

/* ─── TRANSCRIPT TOGGLE BUTTON ─── */

.transcript-toggle {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;

    user-select: none;
}

.transcript-toggle:hover {
    background: oklch(from var(--bg) l c h / 50%);
}

.transcript-toggle[aria-expanded="true"] {
    background: var(--bg);
}

.transcript-icon {
    width: 24px;
    height: 24px;
    display: block;
    fill: var(--text);
}

.transcript-toggle[aria-expanded="true"] .transcript-icon {}

/* ─── TRANSCRIPT ANIMATION ─── */

/* height: 0 + overflow: hidden collapses the transcript to zero height.
           JS measures scrollHeight and sets an explicit pixel value to make the
           transition animatable, then resets to auto after opening completes. */
.transcript {
    height: 0;
    overflow: hidden;
    transition: height 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.transcript-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transition: opacity 250ms ease;
    padding: 0 16px 24px;
}

.transcript.open .transcript-inner {
    opacity: 1;
    transition: opacity 250ms ease 250ms;
}

/* ––– MAP POPUP ––– */

/* Tip arrow: match popup background for every anchor position MapLibre can use */
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
    border-top-color: var(--accent) !important;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
    border-bottom-color: var(--accent) !important;
}

.maplibregl-popup-anchor-left .maplibregl-popup-tip {
    border-right-color: var(--accent) !important;
}

.maplibregl-popup-anchor-right .maplibregl-popup-tip {
    border-left-color: var(--accent) !important;
}

.maplibregl-popup-content {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 18px;
    background: var(--accent) !important;
    border-radius: 8px;
    corner-shape: superellipse(1.6);
    box-shadow: none;
    color: var(--bg);
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;

    h3 {
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 5%;
    }

    button {
        margin-top: 8px;
    }

    .maplibregl-popup-close-button {
        width: 24px;
        height: 24px;
        font-size: 24px;
        line-height: 24px;
        color: inherit;
        margin-top: 0;

        &:hover {
            opacity: 1;
            background: transparent;
        }
    }
}

.pswp__button--arrow--prev .pswp__icn,
.pswp__button--arrow--next .pswp__icn {
    display: none;
}

.pswp__button--arrow--prev::before,
.pswp__button--arrow--next::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background: url('https://static.tildacdn.com/tild6337-3031-4364-b338-643561363137/back.svg') center / contain no-repeat;
    filter: brightness(0) invert(1);
    position: relative;
    left: 16px;
}

.pswp__button--arrow--next::before {
    transform: rotate(180deg);
}

.pswp__custom-caption {
    position: absolute;
    bottom: 72px;
    text-align: center;
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    line-height: 20px;
    padding: 8px 12px;
    background: var(--bg);
    z-index: 100;
    pointer-events: none;
}