@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Bitter:wght@400;500;600;700;900&display=swap');

@font-face {
    font-family: 'Muzeum2';
    src: url('/fonts/labkova.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --paper: #f9f8f7;
    --ink: #111;
    --soft-ink: #444;
    --muted: #707070;
    --line: #dadada;
    --panel: #fff;
    --focus: #0b5cab;
    --brand-font: "Muzeum2", Bitter, Georgia, serif;
    --heading-font: Bitter, Georgia, serif;
    --body-font: Barlow, Arial, sans-serif;
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-body-font-family: var(--body-font);
    --bs-border-color: var(--line);
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-link-color: var(--ink);
    --bs-link-hover-color: var(--soft-ink);
    --bs-primary: var(--ink);
    --bs-primary-rgb: 17, 17, 17;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body-font);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--soft-ink);
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin: 0 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

.site-shell {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: linear-gradient(90deg, transparent 0 4vw, var(--paper) 4vw calc(100% - 4vw), transparent calc(100% - 4vw));
}

.nav-wrap {
    width: min(1220px, 100%);
    min-height: 82px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.brand {
    display: inline-grid;
    gap: 0.18rem;
    justify-self: start;
    font-family: var(--brand-font);
    max-width: min(20.7rem, 40vw);
    text-decoration: none;
}

.brand-title {
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-subtitle {
    color: var(--soft-ink);
    font-family: var(--body-font);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
    max-width: 100%;
    text-wrap: balance;
}

.main-nav,
.language-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.6vw, 1.75rem);
}

.main-nav {
    justify-self: end;
}

.main-nav a,
.nav-toggle-label {
    font-family: var(--brand-font);
    font-size: clamp(0.92rem, 1.05vw, 1.12rem);
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a.active {
    color: var(--soft-ink);
}

.language-nav {
    justify-self: end;
    gap: 0.85rem;
}

.language-nav a {
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.search-nav-link {
    position: relative;
    display: inline-flex;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 1.55rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--ink);
    font-size: 0;
    line-height: 1;
    text-indent: -9999px;
    white-space: nowrap;
}

.search-nav-link::before {
    content: "";
    position: absolute;
    left: 0.18rem;
    top: 0.18rem;
    width: 0.84rem;
    height: 0.84rem;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.search-nav-link::after {
    content: "";
    position: absolute;
    left: 0.96rem;
    top: 1.02rem;
    width: 0.52rem;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

.search-nav-link:hover,
.search-nav-link:focus {
    color: var(--soft-ink);
}

.admin-nav-link {
    position: relative;
    display: inline-flex;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 1.55rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--ink);
    font-size: 0;
    line-height: 1;
    text-indent: -999px;
}

.admin-nav-menu {
    position: relative;
}

.admin-nav-menu summary {
    list-style: none;
}

.admin-nav-menu summary::-webkit-details-marker {
    display: none;
}

.admin-nav-link::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    width: 1.08rem;
    height: 0.34rem;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.admin-nav-link::after {
    content: "";
    position: absolute;
    top: 0.48rem;
    width: 1.08rem;
    height: 0.82rem;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 0.55rem 0.55rem / 0 0 0.18rem 0.18rem;
    box-shadow:
        inset 0 -0.2rem 0 0 currentColor,
        inset 0 -0.46rem 0 0 currentColor;
}

.admin-nav-link:hover,
.admin-nav-link:focus {
    color: var(--soft-ink);
}

.admin-nav-dropdown {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    display: none;
    gap: 0;
    min-width: 14rem;
    padding: 0.45rem 0;
    position: absolute;
    right: 0;
    top: calc(100% + 0.65rem);
    z-index: 30;
}

.admin-nav-menu[open] .admin-nav-dropdown {
    display: grid;
}

.admin-nav-dropdown a {
    display: block;
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.55rem 0.85rem;
    text-transform: none;
    white-space: nowrap;
}

.admin-nav-separator {
    border-top: 1px solid var(--line);
    margin: 0.35rem 0;
}

.account-nav-form {
    display: inline-flex;
    margin: 0;
}

.account-nav-link {
    position: relative;
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 1.55rem;
    font-family: var(--brand-font);
    font-size: 0;
    height: 1.55rem;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    text-indent: -999px;
    text-transform: uppercase;
    width: 1.55rem;
}

.account-nav-link:hover,
.account-nav-link:focus {
    color: var(--soft-ink);
}

.account-nav-link--login::before {
    content: "";
    position: absolute;
    right: 0.08rem;
    width: 0.72rem;
    height: 1.08rem;
    border: 2px solid currentColor;
    border-left: 0;
    border-radius: 0 0.28rem 0.28rem 0;
}

.account-nav-link--login::after {
    content: "";
    position: absolute;
    left: 0.1rem;
    width: 0;
    height: 0;
    border-top: 0.44rem solid transparent;
    border-bottom: 0.44rem solid transparent;
    border-left: 0.62rem solid currentColor;
    filter: drop-shadow(-0.5rem 0 0 currentColor);
}

.account-nav-link--logout::before {
    content: "";
    position: absolute;
    left: 0.08rem;
    width: 0.72rem;
    height: 1.08rem;
    border: 2px solid currentColor;
    border-right: 0;
    border-radius: 0.28rem 0 0 0.28rem;
}

.account-nav-link--logout::after {
    content: "";
    position: absolute;
    right: 0.1rem;
    width: 0;
    height: 0;
    border-top: 0.44rem solid transparent;
    border-bottom: 0.44rem solid transparent;
    border-left: 0.62rem solid currentColor;
    filter: drop-shadow(-0.5rem 0 0 currentColor);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: white;
    padding: 0.5rem 0.75rem;
}

.skip-link:focus {
    top: 1rem;
}

.site-main {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: calc(82px + clamp(1.5rem, 4vw, 3rem)) clamp(1rem, 5vw, 2.5rem) 5rem;
}

.home-intro {
    display: grid;
    gap: 1rem;
    max-width: 58rem;
    min-height: calc(100vh - 220px);
    align-content: center;
}

.home-intro h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin: 0;
}

.home-intro p {
    color: var(--soft-ink);
    line-height: 1.65;
    margin: 0;
    max-width: 50rem;
}

.home-intro a {
    color: var(--ink);
    font-weight: 700;
}

.home-operator {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    order: 20;
    padding-top: 1.5rem;
}

.home-operator h2,
.home-operator h3 {
    font-family: var(--body-font);
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.home-operator h2 {
    font-size: 0.82rem;
}

.home-operator h3 {
    font-size: 0.74rem;
}

.home-operator-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

.home-operator p,
.home-operator dl {
    color: var(--soft-ink);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0.45rem 0 0;
}

.home-operator p + p {
    margin-top: 0.75rem;
}

.home-operator dl {
    display: grid;
    gap: 0.35rem;
}

.home-operator dl div {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(6.5rem, 0.45fr) minmax(0, 1fr);
}

.home-operator dt {
    color: var(--ink);
    font-weight: 700;
}

.home-operator dd {
    margin: 0;
}

.home-region-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.home-region-list h2 {
    font-size: 1.05rem;
    letter-spacing: 0;
    margin: 0;
}

.home-region-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-region-list a {
    font-size: 0.98rem;
    font-weight: 400;
}

.home-map {
    position: relative;
    min-height: 42vh;
    display: grid;
    padding: 0 0 clamp(1rem, 3vh, 2rem);
}

.region-map {
    align-items: start;
    min-height: calc(100vh - 124px);
}

.region-map-copy {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    text-align: left;
}

.region-map-copy h1 {
    font-size: clamp(1.55rem, 3.3vw, 2.8rem);
    line-height: 0.98;
    margin: 0;
}

.region-map-copy p {
    color: var(--soft-ink);
    margin: 0;
}

.region-map-list {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.region-map-list a {
    font-weight: 600;
}

.region-map-visual {
    align-items: center;
    background:
        radial-gradient(520px 300px at 48% 46%, rgba(0, 0, 0, 0.055), transparent 64%),
        radial-gradient(720px 360px at 50% 52%, rgba(255, 255, 255, 0.75), transparent 68%);
    display: grid;
    gap: 1.25rem;
    padding: 0;
}

.region-map-svg {
    display: block;
    max-height: calc(100vh - 230px);
    width: 100%;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.12));
}

.region-map-outline {
    fill: rgba(255, 255, 255, 0.74);
    stroke: var(--ink);
    stroke-linejoin: round;
    stroke-width: 0.42;
}

.region-map-point-link {
    cursor: pointer;
    outline: none;
    text-decoration: none;
}

.region-map-point-ring {
    fill: var(--ink);
    stroke: rgba(0, 0, 0, 0.12);
    stroke-width: 0.65;
    transition: fill 160ms ease, stroke-width 160ms ease;
}

.region-map-point {
    fill: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.region-map-point-pulse {
    animation: region-map-pulse 2.6s ease-out infinite;
    fill: none;
    pointer-events: none;
    stroke: rgba(0, 0, 0, 0.16);
    stroke-width: 0.32;
    transform-box: fill-box;
    transform-origin: center;
}

.region-map-point-link:nth-of-type(2n) .region-map-point-pulse {
    animation-delay: 0.28s;
}

.region-map-point-link:nth-of-type(3n) .region-map-point-pulse {
    animation-delay: 0.56s;
}

.region-map-label {
    fill: var(--ink);
    font-family: var(--body-font);
    font-size: 2.55px;
    font-weight: 400;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(249, 248, 247, 0.92);
    stroke-width: 0.75px;
    text-anchor: middle;
    text-decoration: none;
}

.region-map-point-link:hover .region-map-point-ring,
.region-map-point-link:focus .region-map-point-ring {
    fill: #000;
    stroke-width: 0.8;
}

.region-map-point-link:hover .region-map-point,
.region-map-point-link:focus .region-map-point {
    fill: white;
    opacity: 1;
}

@keyframes region-map-pulse {
    0% {
        opacity: 0.9;
        transform: scale(0.75);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.home-admin-link {
    position: absolute;
    right: clamp(1rem, 5vw, 2.5rem);
    bottom: clamp(1rem, 4vh, 2.5rem);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.home-admin-link:hover,
.home-admin-link:focus {
    color: var(--ink);
    text-decoration: underline;
}

.region-links {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.archive-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 220px));
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.btn-primary,
.archive-toolbar .btn:not(.btn-secondary):not(.btn-outline-secondary) {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: white;
    padding: 0.65rem 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    font-family: var(--body-font);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: var(--soft-ink);
    background: var(--soft-ink);
    color: white;
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.55);
}

.archive-table th,
.archive-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.archive-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.archive-table-thumb-heading,
.archive-table-thumb-cell {
    width: 5.25rem;
}

.archive-table-thumb-cell {
    padding-block: 0.55rem;
}

.archive-table-thumb {
    width: 4.25rem;
}

.archive-table-thumb .content-image__state {
    font-size: 0.72rem;
    padding: 0.35rem;
}

.archive-loader {
    align-items: center;
    background: rgba(17, 17, 17, 0.28);
    color: var(--soft-ink);
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    inset: 0;
    min-height: 100vh;
    padding: 1rem;
    place-content: center;
    position: fixed;
    z-index: 9999;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: #111;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.region-description {
    max-width: 70rem;
    margin-bottom: 2.5rem;
}

.region-description h2 {
    margin-top: 2rem;
}

.region-archive-link {
    display: flex;
    justify-content: center;
    margin: 3rem 0 0;
}

.embroidery-neighbor-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 3rem 0 0;
}

.detail-grid,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 3rem;
}

.detail-media {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
}

.region-detail-layout .detail-content {
    grid-column: 2;
}

.region-detail-layout .detail-media {
    grid-column: 1;
    grid-row: 1;
}

.content-image {
    color: var(--muted);
    display: block;
    min-width: 0;
}

.content-image__link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.content-image__frame {
    background: white;
    border: 1px solid rgba(17, 17, 17, 0.08);
    display: block;
    overflow: hidden;
    position: relative;
}

.content-image__img {
    display: block;
    height: 100%;
    opacity: 0;
    transition: opacity 240ms ease;
    width: 100%;
}

.content-image--loaded .content-image__img {
    opacity: 1;
}

.content-image__state {
    align-items: center;
    background: #f0efed;
    color: var(--muted);
    display: grid;
    font-size: 0.92rem;
    inset: 0;
    justify-items: center;
    letter-spacing: 0;
    line-height: 1.35;
    min-height: 100%;
    padding: 1.25rem;
    position: absolute;
    text-align: center;
}

.content-image__state--loading {
    animation: content-image-sheen 1.8s ease-in-out infinite;
    background: linear-gradient(110deg, #eeece9 8%, #f8f7f5 18%, #eeece9 33%);
    background-size: 200% 100%;
}

.content-image--detail .content-image__frame {
    aspect-ratio: 4 / 3;
}

.content-image--detail .content-image__img {
    object-fit: contain;
}

.content-image--thumbnail .content-image__frame {
    aspect-ratio: 1;
}

.content-image--thumbnail .content-image__img {
    object-fit: cover;
}

.content-image--inline .content-image__frame {
    aspect-ratio: 4 / 3;
}

.content-image--inline .content-image__img {
    object-fit: contain;
}

@keyframes content-image-sheen {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.detail-main-image {
    background: white;
    display: block;
}

.detail-main-image img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.detail-thumbnails {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.detail-thumbnails a {
    background: white;
    display: block;
}

.detail-thumbnails img {
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
    width: 100%;
}

.image-lightbox-trigger {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: zoom-in;
    display: block;
    padding: 0;
    text-align: inherit;
    width: 100%;
}

.image-lightbox-trigger .content-image {
    pointer-events: none;
}

.image-lightbox {
    background: rgba(10, 10, 10, 0.94);
    color: white;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    inset: 0;
    position: fixed;
    z-index: 2000;
}

.image-lightbox__toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem clamp(1rem, 3vw, 2rem);
}

.image-lightbox__counter {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1;
}

.image-lightbox__controls {
    display: flex;
    gap: 0.5rem;
}

.image-lightbox button {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: inline-flex;
    font: inherit;
    height: 2.5rem;
    justify-content: center;
    line-height: 1;
    min-width: 2.5rem;
    padding: 0 0.7rem;
}

.image-lightbox button:hover:not(:disabled),
.image-lightbox button:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.image-lightbox button:disabled {
    cursor: default;
    opacity: 0.35;
}

.image-lightbox__close {
    font-size: 1.6rem;
}

.image-lightbox__stage {
    display: grid;
    min-height: 0;
    overflow: hidden;
    padding: 1rem clamp(3.75rem, 7vw, 6rem);
    place-items: center;
    position: relative;
}

.image-lightbox__image-shell {
    display: grid;
    height: 100%;
    min-height: 100%;
    min-width: 100%;
    place-items: center;
    touch-action: none;
    width: 100%;
}

.image-lightbox__image {
    cursor: zoom-in;
    display: block;
    max-height: calc(100vh - 7rem);
    max-width: 100%;
    object-fit: contain;
    transform: translate(var(--lightbox-pan-x), var(--lightbox-pan-y)) scale(var(--lightbox-zoom));
    transform-origin: center;
    user-select: none;
    will-change: transform;
}

.image-lightbox__image--max {
    cursor: zoom-out;
}

.image-lightbox__image--pannable {
    cursor: grab;
}

.image-lightbox__image--pannable:active {
    cursor: grabbing;
}

.image-lightbox__nav {
    font-size: 2.4rem;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.image-lightbox__nav--previous {
    left: clamp(0.75rem, 2vw, 1.5rem);
}

.image-lightbox__nav--next {
    right: clamp(0.75rem, 2vw, 1.5rem);
}

.detail-content {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
}

.detail-heading {
    display: grid;
    gap: 0.75rem;
    position: relative;
}

.detail-heading h1 {
    padding-right: 3.4rem;
    margin: 0;
}

.detail-edit-link {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    height: 2.4rem;
    justify-content: center;
    position: absolute;
    right: 0;
    text-decoration: none;
    top: 0.05rem;
    width: 2.4rem;
}

.detail-edit-link svg {
    display: block;
    height: 2rem;
    overflow: visible;
    width: 2rem;
}

.detail-edit-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.detail-edit-link__frame,
.detail-edit-link__shine {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-edit-link__frame {
    stroke-width: 3.2;
}

.detail-edit-link__pencil {
    fill: currentColor;
}

.detail-edit-link__shine {
    color: var(--paper);
    stroke-width: 2.2;
}

.detail-edit-link:hover,
.detail-edit-link:focus {
    color: var(--soft-ink);
}

.detail-language-switch,
.language-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.detail-language-switch a,
.language-tab {
    border: 1px solid var(--line);
    color: var(--ink);
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    text-decoration: none;
}

.detail-language-switch a.active,
.language-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}

.detail-section,
.editor-section {
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
}

.detail-section summary,
.editor-section summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    min-height: 42px;
}

.detail-section summary::-webkit-details-marker,
.editor-section summary::-webkit-details-marker {
    display: none;
}

.detail-section summary::after,
.editor-section summary::after {
    content: "+";
    font-size: 1.3rem;
    line-height: 1;
}

.detail-section[open] summary::after,
.editor-section[open] summary::after {
    content: "-";
}

.detail-section summary,
.editor-section summary span {
    font-weight: 700;
}

.detail-section > div,
.detail-section > dl,
.detail-section > ul,
.editor-section-body {
    margin-top: 0.85rem;
}

.gallery {
    display: grid;
    gap: 0.75rem;
}

.gallery a {
    display: block;
    background: white;
}

.gallery img {
    display: block;
    width: 100%;
}

.meta-list {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0 2.5rem;
}

.meta-list div {
    align-items: start;
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    min-height: 1.5rem;
}

.meta-list dt,
.meta-list dd {
    line-height: 1.5;
    margin: 0;
}

.meta-list dt {
    font-weight: 700;
}

.attachments {
    margin-top: 2rem;
}

.attachments ul {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.attachments li {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.2rem;
    padding-top: 0.6rem;
}

.attachments span {
    color: var(--soft-ink);
    font-size: 0.95rem;
}

.content-page {
    max-width: 920px;
}

.about-page {
    max-width: none;
}

.about-page p {
    margin: 0;
    padding: 0;
}

.about-project {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.about-project-lead {
    margin-bottom: clamp(2rem, 4vw, 3.125rem);
}

.about-project-callout {
    width: min(100%, 38rem);
    margin-bottom: 1.5rem;
}

.about-project-gallery {
    display: grid;
    gap: 1rem;
}

.about-project-gallery-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-project-gallery img {
    display: block;
    width: 100%;
    object-fit: cover;
    background: white;
}

.about-project-gallery-pair img {
    aspect-ratio: 4 / 3;
}

.about-project-gallery-wide {
    aspect-ratio: 1.499 / 1;
}

.about-project-team {
    align-items: start;
}

.about-project-contact-gap {
    margin-top: 1.5rem !important;
}

.about-project-note {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.about-project-note p {
    grid-column: 1;
}

.labkova-page {
    max-width: none;
}

.labkova-page figure {
    margin: 0;
}

.labkova-page figcaption {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
    margin-top: 0.65rem;
}

.labkova-page p {
    margin: 0 0 1rem;
}

.labkova-hero {
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.75rem);
    align-items: start;
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.labkova-hero img,
.labkova-gallery img,
.labkova-text img {
    display: block;
    width: 100%;
    background: white;
    object-fit: cover;
}

.labkova-hero img {
    aspect-ratio: 0.76;
}

.labkova-page .static-content-image .content-image__frame {
    aspect-ratio: 4 / 3;
}

.labkova-page .static-content-image .content-image__img {
    object-fit: cover;
}

.labkova-hero .static-content-image .content-image__frame {
    aspect-ratio: 0.76;
}

.labkova-gallery .static-content-image .content-image__frame {
    aspect-ratio: 1;
}

.labkova-text .static-content-image .content-image__frame {
    aspect-ratio: 0.609;
}

.labkova-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    line-height: 0.98;
    margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
    text-transform: uppercase;
}

.labkova-lead {
    max-width: 48rem;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.38;
    margin-bottom: clamp(2rem, 5vw, 3.5rem) !important;
}

.labkova-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.labkova-gallery img {
    aspect-ratio: 1;
}

.labkova-text {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.labkova-text h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    margin-top: clamp(1.75rem, 4vw, 3rem);
}

.labkova-text ol {
    margin: 0 0 1.25rem;
    padding-left: 1.3rem;
}

.labkova-text li {
    margin-bottom: 0.55rem;
}

.labkova-text figure {
    position: sticky;
    top: calc(82px + 2rem);
}

.labkova-text img {
    aspect-ratio: 0.609;
}

.admin-shell {
    display: grid;
    gap: 1.5rem;
}

.admin-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.admin-heading h1 {
    margin: 0;
}

.admin-shell form {
    display: grid;
    gap: 1rem;
}

.admin-shell .form-label {
    margin-bottom: -0.45rem;
}

.admin-shell .form-control,
.admin-shell .form-select {
    border-color: var(--line);
    color: var(--ink);
    font-family: var(--body-font);
    min-height: 44px;
}

.admin-shell textarea.form-control {
    min-height: auto;
}

.rich-text-editor {
    border: 1px solid var(--line);
    background: #f4f3f1;
    display: grid;
    gap: 0;
}

.rich-text-editor:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 0.16rem rgba(11, 92, 171, 0.16);
}

.rich-text-editor__toolbar {
    align-items: center;
    background: #eeeeec;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.45rem;
}

.rich-text-editor__toolbar button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--ink);
    display: inline-flex;
    font-family: var(--body-font);
    font-size: 0.92rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    padding: 0 0.6rem;
}

.rich-text-editor__toolbar button:hover,
.rich-text-editor__toolbar button:focus {
    background: white;
    border-color: var(--line);
}

.rich-text-editor__toolbar button.active {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}

.rich-text-editor--html .rich-text-editor__toolbar button[data-rich-command] {
    color: var(--muted);
}

.rich-text-editor__divider {
    align-self: stretch;
    background: var(--line);
    display: inline-block;
    margin: 0.2rem 0.25rem;
    width: 1px;
}

.rich-text-editor__underline {
    text-decoration: underline;
}

.rich-text-editor__icon {
    display: inline-block;
    height: 1.05rem;
    position: relative;
    width: 1.25rem;
}

.rich-text-editor__icon--unordered-list::before {
    content: "";
    background: currentColor;
    border-radius: 50%;
    box-shadow:
        0 0.38rem 0 currentColor,
        0 0.76rem 0 currentColor;
    height: 0.14rem;
    left: 0.08rem;
    position: absolute;
    top: 0.12rem;
    width: 0.14rem;
}

.rich-text-editor__icon--unordered-list::after {
    content: "";
    background: currentColor;
    box-shadow:
        0 0.38rem 0 currentColor,
        0 0.76rem 0 currentColor;
    height: 0.12rem;
    left: 0.38rem;
    position: absolute;
    top: 0.13rem;
    width: 0.78rem;
}

.rich-text-editor__icon--ordered-list::before {
    content: "1\a2\a3";
    font-size: 0.42rem;
    font-weight: 700;
    left: 0;
    line-height: 0.38rem;
    position: absolute;
    top: 0.01rem;
    white-space: pre;
}

.rich-text-editor__icon--ordered-list::after {
    content: "";
    background: currentColor;
    box-shadow:
        0 0.38rem 0 currentColor,
        0 0.76rem 0 currentColor;
    height: 0.12rem;
    left: 0.48rem;
    position: absolute;
    top: 0.13rem;
    width: 0.68rem;
}

.rich-text-editor__icon--link::before,
.rich-text-editor__icon--link::after,
.rich-text-editor__icon--unlink::before,
.rich-text-editor__icon--unlink::after {
    content: "";
    border: 0.13rem solid currentColor;
    border-radius: 0.55rem;
    height: 0.48rem;
    position: absolute;
    top: 0.36rem;
    width: 0.72rem;
}

.rich-text-editor__icon--link::before,
.rich-text-editor__icon--unlink::before {
    left: 0.08rem;
    transform: rotate(-32deg);
}

.rich-text-editor__icon--link::after,
.rich-text-editor__icon--unlink::after {
    right: 0.08rem;
    transform: rotate(-32deg);
}

.rich-text-editor__icon--unlink {
    overflow: hidden;
}

.rich-text-editor__icon--unlink::before {
    clip-path: inset(0 0.34rem 0 0);
}

.rich-text-editor__icon--unlink::after {
    clip-path: inset(0 0 0 0.34rem);
}

.rich-text-editor__icon--clear-format::before {
    content: "A";
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: 700;
    left: 0.16rem;
    line-height: 1;
    position: absolute;
    top: 0.02rem;
}

.rich-text-editor__icon--clear-format::after {
    content: "";
    background: currentColor;
    height: 0.13rem;
    left: 0.03rem;
    position: absolute;
    top: 0.58rem;
    transform: rotate(-24deg);
    transform-origin: center;
    width: 1.15rem;
}

.rich-text-editor__surface {
    background: white;
    color: var(--ink);
    font-family: var(--body-font);
    line-height: 1.62;
    margin: 0.85rem auto;
    min-height: 18rem;
    outline: 0;
    padding: 1.3rem 1.5rem;
    width: min(100% - 1.7rem, 860px);
}

.rich-text-editor__source {
    background: white;
    border: 0;
    color: var(--ink);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0.85rem auto;
    min-height: 18rem;
    outline: 0;
    padding: 1.3rem 1.5rem;
    resize: vertical;
    width: min(100% - 1.7rem, 860px);
}

.rich-text-editor__source[hidden] {
    display: none;
}

.rich-text-editor__surface:empty::before {
    color: var(--muted);
    content: "Kliknete sem a piste text jako v beznem editoru...";
}

.rich-text-editor__surface h2,
.rich-text-editor__surface h3 {
    font-family: var(--heading-font);
    line-height: 1.25;
    margin: 1.2rem 0 0.55rem;
}

.rich-text-editor__surface h2 {
    font-size: 1.55rem;
}

.rich-text-editor__surface h3 {
    font-size: 1.25rem;
}

.rich-text-editor__surface p {
    margin: 0 0 0.85rem;
}

.rich-text-editor__surface ul,
.rich-text-editor__surface ol {
    margin: 0 0 0.9rem;
    padding-left: 1.4rem;
}

.rich-text-editor__surface a {
    color: var(--focus);
}

.rich-text-editor__surface figure {
    margin: 1rem 0;
}

.rich-text-editor__surface img {
    display: block;
    height: auto;
    max-width: 100%;
}

.rich-text-editor__surface figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.45rem;
}

.admin-shell .form-check {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    min-height: 44px;
    padding-left: 0;
}

.admin-shell .form-check-input {
    float: none;
    margin: 0;
}

.admin-shell .btn {
    border-radius: 0;
    font-family: var(--body-font);
    font-weight: 700;
}

.admin-shell .btn-outline-secondary {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-hover-color: white;
    --bs-btn-active-bg: var(--ink);
    --bs-btn-active-border-color: var(--ink);
}

.admin-shell .btn-link {
    --bs-btn-color: var(--ink);
    --bs-btn-hover-color: var(--soft-ink);
    font-weight: 400;
}

.admin-shell .table {
    --bs-table-bg: rgba(255, 255, 255, 0.55);
    --bs-table-border-color: var(--line);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.34);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.72);
    font-family: var(--body-font);
}

.admin-shell .table th {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.admin-shell fieldset {
    display: grid;
    gap: 0.85rem;
}

.admin-shell legend {
    color: var(--ink);
    font-family: var(--body-font);
    margin-bottom: 0;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.admin-index-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-index-link {
    border-top: 2px solid var(--ink);
    display: grid;
    gap: 0.35rem;
    min-height: 6rem;
    padding: 1rem 0;
    text-decoration: none;
}

.admin-index-link strong {
    font-family: var(--heading-font);
    font-size: 1.35rem;
}

.admin-index-link span {
    color: var(--soft-ink);
    font-weight: 600;
}

.help-manual {
    max-width: 980px;
}

.help-lead {
    color: var(--soft-ink);
    font-size: 1.05rem;
    margin: 0.35rem 0 0;
}

.help-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.help-toc a {
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
    padding: 0.45rem 0.7rem;
    text-decoration: none;
}

.help-toc a:hover,
.help-toc a:focus {
    background: var(--ink);
    color: white;
}

.help-section {
    border-top: 2px solid var(--ink);
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.help-section h2,
.help-section h3 {
    margin-bottom: 0;
}

.help-section p,
.help-section li {
    line-height: 1.65;
}

.help-section ol,
.help-section ul {
    margin-bottom: 0;
}

.help-two-column {
    align-items: start;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.help-visual {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem;
}

.help-visual figcaption {
    color: var(--soft-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.help-browser-bar {
    background: var(--line);
    height: 0.55rem;
    width: 42%;
}

.help-nav-row,
.help-arrow-row,
.help-form-row,
.help-check-row,
.help-summary-row {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
}

.help-nav-row span,
.help-arrow-row span,
.help-form-row,
.help-summary-row {
    background: white;
    border: 1px solid var(--line);
    padding: 0.55rem 0.7rem;
}

.help-nav-row.muted span {
    background: rgba(255, 255, 255, 0.55);
    color: var(--soft-ink);
}

.help-form-row span {
    color: var(--soft-ink);
}

.help-check-row {
    background: white;
    border: 1px solid var(--line);
    justify-content: flex-start;
    padding: 0.55rem 0.7rem;
}

.help-checkbox {
    border: 1px solid var(--ink);
    display: inline-block;
    height: 1rem;
    position: relative;
    width: 1rem;
}

.help-checkbox.checked::after {
    content: "";
    border-bottom: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
    height: 0.75rem;
    left: 0.32rem;
    position: absolute;
    top: 0.02rem;
    transform: rotate(42deg);
    width: 0.35rem;
}

.help-photo-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-photo-grid > div {
    background: white;
    border: 1px solid var(--line);
    display: grid;
    gap: 0.55rem;
    padding: 0.65rem;
}

.help-photo-thumb {
    background:
        linear-gradient(135deg, rgba(42, 67, 72, 0.22), rgba(42, 67, 72, 0.02)),
        repeating-linear-gradient(45deg, rgba(42, 67, 72, 0.16) 0 0.35rem, transparent 0.35rem 0.7rem);
    border: 1px solid var(--line);
    display: block;
    min-height: 5.5rem;
}

.help-photo-thumb.main {
    outline: 3px solid var(--ink);
    outline-offset: -3px;
}

.help-photo-grid button {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.help-map-shape {
    align-items: center;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
    clip-path: polygon(10% 18%, 56% 8%, 92% 28%, 80% 78%, 35% 92%, 6% 62%);
    display: grid;
    justify-items: center;
    min-height: 12rem;
    padding: 2rem;
}

.help-map-shape span:first-child {
    color: var(--soft-ink);
    font-weight: 700;
}

.help-map-shape span:last-child {
    font-family: var(--heading-font);
    font-size: 1.5rem;
}

.help-note {
    background: rgba(255, 255, 255, 0.62);
    border-left: 4px solid var(--ink);
    padding: 0.85rem 1rem;
}

.help-checklist {
    columns: 2;
}

.language-tabs,
.editor-section-body,
.language-panel,
.editor-grid {
    display: grid;
    gap: 0.85rem;
}

.editor-section {
    background: rgba(255, 255, 255, 0.38);
    padding: 0.2rem 0 0;
}

.editor-section summary {
    padding: 0.35rem 0;
}

.editor-section summary small {
    color: var(--soft-ink);
    font-weight: 400;
}

.language-tab {
    background: transparent;
    font-family: var(--body-font);
    font-weight: 700;
}

.language-panel {
    border: 0;
    margin: 0;
    padding: 0;
}

.language-panel legend {
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.media-editor {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    padding-top: 1.25rem;
}

.media-editor > div {
    display: grid;
    gap: 0.85rem;
}

.media-editor h2 {
    font-size: 1.2rem;
    margin: 0;
}

.media-uploader {
    display: grid;
    gap: 0.85rem;
    max-width: 760px;
}

.selected-file {
    color: var(--soft-ink);
    font-size: 0.92rem;
    margin: -0.4rem 0 0;
}

.admin-image-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.admin-image-card {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.admin-image-card a {
    background: white;
    display: block;
}

.admin-image-card img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.admin-image-card figcaption {
    display: grid;
    gap: 0.2rem;
    font-size: 0.9rem;
}

.admin-image-card span,
.admin-image-card small,
.admin-attachment-list span {
    color: var(--soft-ink);
}

.admin-attachment-list {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-attachment-list li {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.25rem;
    padding-top: 0.65rem;
}

.upload-status {
    border-top: 1px solid var(--line);
    margin: 0;
    padding-top: 0.75rem;
}

.taxonomy-grid {
    display: grid;
    gap: 2rem;
}

.taxonomy-section {
    display: grid;
    gap: 0.75rem;
}

.taxonomy-editor {
    border-top: 2px solid var(--ink);
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.taxonomy-editor form {
    display: grid;
    gap: 0.75rem;
}

.compact-actions {
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.site-footer {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 6rem clamp(1rem, 5vw, 2.5rem) 3rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.footer-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(80px, 150px));
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logos img {
    width: 100%;
}

.license {
    font-size: 0.8rem;
}

.background-pattern {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4vw;
    background-image: url('/assets/pattern2.png');
    background-repeat: repeat-y;
    background-position: top left;
    background-size: 4vw auto;
    opacity: 0.67;
    pointer-events: none;
    z-index: 25;
}

.background-pattern-left {
    left: 1vw;
}

.background-pattern-right {
    right: 1vw;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

@media (min-width: 981px) and (max-width: 1180px) {
    .nav-wrap {
        gap: 0.85rem;
    }

    .brand {
        max-width: 18.5rem;
    }

    .main-nav {
        gap: 0.7rem;
    }

    .main-nav a,
    .nav-toggle-label {
        font-size: 0.88rem;
    }

    .language-nav {
        gap: 0.55rem;
    }
}

@media (max-width: 980px) {
    .background-pattern {
        opacity: 0.22;
    }

    .nav-wrap {
        grid-template-columns: 1fr auto;
        padding: 0.85rem 1rem;
        min-height: 68px;
    }

    .brand {
        max-width: min(58vw, 23rem);
        white-space: normal;
    }

    .nav-toggle-label {
        display: block;
        justify-self: end;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        justify-self: stretch;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0 0.25rem;
    }

    .nav-toggle:checked ~ .main-nav {
        display: flex;
    }

    .search-nav-link {
        width: auto;
        height: auto;
        flex: 0 1 auto;
        overflow: visible;
        color: inherit;
        font-size: clamp(0.98rem, 1.15vw, 1.12rem);
        line-height: 1;
        text-indent: 0;
    }

    .search-nav-link::before,
    .search-nav-link::after {
        display: none;
    }

    .admin-nav-link {
        width: auto;
        height: auto;
        flex: 0 1 auto;
        overflow: visible;
        color: inherit;
        font-size: clamp(0.98rem, 1.15vw, 1.12rem);
        line-height: 1;
        text-indent: 0;
    }

    .admin-nav-link::before,
    .admin-nav-link::after {
        display: none;
    }

    .admin-nav-menu {
        width: 100%;
    }

    .admin-nav-dropdown {
        background: transparent;
        border: 0;
        box-shadow: none;
        margin-top: 0.65rem;
        min-width: 0;
        padding: 0 0 0 1rem;
        position: static;
        width: 100%;
    }

    .admin-nav-dropdown a {
        font-size: 0.98rem;
        padding: 0.45rem 0;
        white-space: normal;
    }

    .account-nav-form {
        width: 100%;
    }

    .account-nav-link {
        width: auto;
        height: auto;
        flex: 0 1 auto;
        overflow: visible;
        color: inherit;
        font-size: clamp(0.98rem, 1.15vw, 1.12rem);
        line-height: 1;
        padding: 0;
        text-indent: 0;
    }

    .account-nav-link::before,
    .account-nav-link::after {
        display: none;
    }

    .help-two-column {
        grid-template-columns: 1fr;
    }

    .help-checklist {
        columns: 1;
    }

    .language-nav {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .site-main {
        padding: calc(150px + 1.5rem) 1rem 3rem;
    }

    .home-intro {
        align-content: start;
        min-height: auto;
    }

    .home-map {
        min-height: calc(100vh - 120px);
    }

    .region-map-visual,
    .archive-toolbar,
    .home-operator-grid,
    .detail-grid,
    .detail-layout,
    .about-project,
    .about-project-note,
    .labkova-hero,
    .labkova-text {
        grid-template-columns: 1fr;
    }

    .region-detail-layout .detail-content,
    .region-detail-layout .detail-media {
        grid-column: auto;
        grid-row: auto;
    }

    .home-operator dl div {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .about-project-gallery {
        order: -1;
    }

    .labkova-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .labkova-text figure {
        position: static;
    }

    .archive-table thead {
        display: none;
    }

    .archive-table tr,
    .archive-table td {
        display: block;
    }

    .archive-table-thumb-cell {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .footer-logos {
        grid-template-columns: repeat(2, minmax(80px, 140px));
    }
}

@media (max-width: 620px) {
    .background-pattern {
        display: none;
    }

    .home-map {
        min-height: 62vh;
    }

    .region-map {
        min-height: auto;
    }

    .region-map-copy h1 {
        font-size: 1.8rem;
    }

    .home-admin-link {
        position: static;
        justify-self: end;
        margin-top: 1rem;
    }

    .labkova-gallery {
        grid-template-columns: 1fr;
    }
}
