:root {
    --canvas: #fbfaf7;
    --surface: #f2eee8;
    --ink: #1d1b19;
    --muted: #6b655f;
    --line: #d7cfc5;
    --cinnabar: #a7191f;
    --cinnabar-dark: #7d1116;
    --gold: #b48736;
    --white: #fff;
    --font-sans: "Inter var", "Segoe UI", sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --container: 84rem;
}

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

html {
    min-width: 20rem;
    scroll-padding-top: 6rem;
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

a,
a:hover {
    text-decoration: none;
}

a,
button,
summary {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgb(167 25 31 / 15%);
}

:focus-visible {
    outline-offset: 3px;
}

::selection {
    background: #ead0c5;
    color: var(--ink);
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.4rem);
}

h2 {
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.site-container {
    width: min(calc(100% - 2.5rem), var(--container));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgb(251 250 247 / 96%);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: grid;
    min-height: 4.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4.5rem);
}

.brand,
.footer-brand {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.8rem;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.7vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.015em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    color: var(--gold);
}

.primary-nav ul,
.language-nav ul,
.footer-nav ul,
.mobile-navigation ul {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2.5vw, 2.75rem);
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav a,
.language-nav a,
.language-nav span,
.footer-nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 560;
    text-decoration: none;
}

.primary-nav ul,
.footer-nav ul {
    flex-wrap: wrap;
    row-gap: 0;
}

.primary-nav a[aria-current="page"],
.language-nav a[aria-current="page"] {
    border-bottom-color: var(--cinnabar);
    color: var(--cinnabar);
}

.language-nav ul {
    gap: 1.25rem;
}

.language-nav span[aria-disabled="true"],
.mobile-language-nav span[aria-disabled="true"] {
    color: #a39b92;
    cursor: not-allowed;
}

.mobile-navigation {
    display: none;
    position: relative;
    justify-self: end;
}

.mobile-navigation summary {
    display: flex;
    min-height: 2.75rem;
    cursor: pointer;
    align-items: center;
    gap: 0.55rem;
    font-weight: 650;
    list-style: none;
}

.mobile-navigation summary::-webkit-details-marker {
    display: none;
}

.mobile-navigation summary svg {
    width: 1.35rem;
    height: 1.35rem;
}

.mobile-navigation-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    width: min(20rem, calc(100vw - 2rem));
    border: 1px solid var(--line);
    background: var(--canvas);
    padding: 1.25rem;
    box-shadow: 0 1rem 2.5rem rgb(29 27 25 / 14%);
}

.mobile-navigation-panel nav > ul {
    display: grid;
    gap: 0;
}

.mobile-navigation-panel nav:first-child a {
    display: block;
    min-height: 3rem;
    border-bottom: 1px solid var(--line);
    padding-block: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    text-decoration: none;
}

.mobile-language-nav {
    padding-top: 1rem;
}

.mobile-language-nav ul {
    display: flex;
    gap: 1.25rem;
}

.mobile-language-nav a,
.mobile-language-nav span {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
}

.mobile-language-nav a[aria-current="page"] {
    color: var(--cinnabar);
}

.translation-notice {
    border-bottom: 1px solid #e2c698;
    background: #fff5df;
    padding-block: 0.65rem;
    color: #584526;
    font-size: 0.9rem;
}

.home-hero {
    position: relative;
    min-height: clamp(28rem, 31vw, 30rem);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
}

.home-hero-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 31%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 31%, black 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: inherit;
    align-items: center;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.home-hero-copy {
    width: min(45rem, 60%);
}

.home-hero-copy h1 {
    max-width: 15ch;
    margin-bottom: 1rem;
    font-size: clamp(3.5rem, 6vw, 5.4rem);
}

.home-hero-copy > p {
    max-width: 34rem;
    margin-bottom: 1.8rem;
    color: #3f3b37;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.35;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.button,
.text-link,
.row-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-decoration: none;
}

.button {
    min-width: 13.5rem;
    min-height: 3.5rem;
    border: 1px solid var(--cinnabar);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 650;
}

.button svg,
.text-link svg,
.row-action svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}

.button-primary {
    background: var(--cinnabar);
    color: var(--white);
}

.button-secondary {
    background: var(--canvas);
    color: var(--cinnabar);
}

.content-section {
    padding-block: clamp(3rem, 4vw, 3.75rem);
}

.listing-section,
.related-section {
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.marked-section {
    position: relative;
    padding-inline-start: clamp(2rem, 4vw, 4.25rem);
}

.marked-section::before {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 1rem;
    width: 2px;
    content: "";
    background: var(--cinnabar);
    pointer-events: none;
}

.marked-section::after {
    position: absolute;
    top: 2.4rem;
    inset-inline-start: 0.7rem;
    width: 0.65rem;
    height: 0.65rem;
    border: 2px solid var(--gold);
    content: "";
    background: var(--canvas);
    transform: rotate(45deg);
    pointer-events: none;
}

.marked-section-light::before {
    background: rgb(255 255 255 / 85%);
}

.marked-section-light::after {
    background: var(--cinnabar-dark);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.text-link {
    min-height: 2.75rem;
    color: var(--cinnabar);
    font-size: 0.9rem;
    font-weight: 650;
}

.empty-state {
    display: grid;
    min-height: 10rem;
    place-items: center;
    align-content: center;
    border: 1px solid #e3ddd5;
    background: var(--surface);
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 0.6rem;
}

.empty-state p {
    max-width: 42rem;
    margin-bottom: 0;
    color: var(--muted);
}

.empty-state .button {
    margin-top: 1.5rem;
}

.empty-state-large {
    min-height: 18rem;
}

.content-section .empty-state {
    min-height: 7rem;
    padding: 1.75rem;
}

.empty-state-dark {
    border-color: rgb(255 255 255 / 18%);
    background: rgb(255 255 255 / 4%);
}

.empty-state-dark p {
    color: rgb(255 255 255 / 78%);
}

.khuree-list,
.news-list,
.home-news-list {
    border-block: 1px solid var(--line);
}

.khuree-row {
    display: grid;
    grid-template-columns: minmax(13rem, 0.9fr) minmax(18rem, 1.7fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-block: 1.75rem;
}

.khuree-row + .khuree-row,
.news-row + .news-row,
.home-news-row + .home-news-row {
    border-top: 1px solid var(--line);
}

.khuree-row h2,
.khuree-row h3,
.news-row h2,
.news-row h3,
.home-news-row h3 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.15;
}

.khuree-row h2 a,
.khuree-row h3 a,
.news-row h2 a,
.news-row h3 a,
.home-news-row h3 a {
    text-decoration: none;
}

.khuree-row > p,
.news-row > div > p,
.home-news-row > div > p {
    margin-bottom: 0;
    color: var(--muted);
}

.row-meta,
.news-owner,
.news-date,
.result-count {
    color: var(--muted);
    font-size: 0.88rem;
}

.row-action {
    min-width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
    color: var(--cinnabar);
    font-size: 0.9rem;
    font-weight: 650;
}

.news-band {
    padding-block: clamp(3rem, 4vw, 3.75rem);
    background: var(--cinnabar-dark);
    color: var(--white);
}

.news-band .text-link,
.news-band .row-action {
    color: var(--white);
}

.news-band .home-news-list,
.news-band .home-news-row + .home-news-row {
    border-color: rgb(255 255 255 / 24%);
}

.home-news-row {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding-block: 1.5rem;
}

.home-news-row .news-date,
.home-news-row .news-owner,
.home-news-row > div > p {
    color: rgb(255 255 255 / 72%);
}

.page-intro {
    border-bottom: 1px solid var(--line);
    padding-block: clamp(4rem, 8vw, 7rem);
}

.page-intro h1 {
    margin-bottom: 1rem;
}

.page-intro p {
    max-width: 48rem;
    margin-bottom: 0;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    line-height: 1.4;
}

.result-count {
    margin-bottom: 1rem;
}

.directory-filter {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(14rem, 0.65fr) auto;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: var(--surface);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.directory-filter-compact {
    grid-template-columns: minmax(16rem, 1fr) auto;
}

.event-filter {
    grid-template-columns: minmax(16rem, 1fr) minmax(12rem, 0.45fr) auto;
}

.event-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-periods a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    border: 1px solid var(--line);
    padding: 0.55rem 1rem;
    text-decoration: none;
}

.event-periods a[aria-current="page"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.event-calendar-subscribe {
    display: flex;
    max-width: 48rem;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.event-calendar-subscribe span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.filter-field {
    display: grid;
    gap: 0.45rem;
}

.filter-field label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--canvas);
    color: var(--ink);
    font: inherit;
    padding: 0.75rem 0.9rem;
}

.filter-field input[aria-invalid="true"] {
    border-color: var(--cinnabar);
}

.filter-hint,
.filter-error {
    font-size: 0.84rem;
    line-height: 1.45;
}

.filter-hint {
    color: var(--muted);
}

.filter-error {
    color: var(--cinnabar-dark);
    font-weight: 650;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.directory-filter .button {
    min-width: 8.5rem;
    cursor: pointer;
    font-family: inherit;
}

.filter-reset {
    min-height: 2.75rem;
    align-content: center;
    color: var(--cinnabar);
    font-size: 0.9rem;
    font-weight: 650;
}

.khuree-row-with-cover {
    grid-template-columns: minmax(9rem, 12rem) minmax(13rem, 0.8fr) minmax(18rem, 1.4fr) auto;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.khuree-card-media {
    display: block;
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 4 / 3;
}

.khuree-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directory-pagination {
    margin-top: 2.5rem;
}

.directory-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.directory-pagination a,
.directory-pagination span {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    padding: 0.5rem 0.8rem;
    text-decoration: none;
}

.directory-pagination span[aria-current="page"] {
    border-color: var(--cinnabar);
    background: var(--cinnabar);
    color: var(--white);
}

.news-row {
    display: grid;
    grid-template-columns: minmax(9rem, 0.45fr) minmax(18rem, 1.6fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-block: 1.75rem;
}

.search-results {
    border-block: 1px solid var(--line);
}

.search-result {
    display: grid;
    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1.65fr);
    gap: clamp(1.25rem, 4vw, 4rem);
    padding-block: 1.75rem;
}

.search-result + .search-result {
    border-top: 1px solid var(--line);
}

.search-result-meta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.search-result-type {
    color: var(--cinnabar);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.search-result-content h3 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.15;
}

.search-result-content h3 a {
    text-decoration: none;
}

.search-result-content > p {
    max-width: 52rem;
    margin-bottom: 0;
    color: var(--muted);
}

.search-result-content .search-result-context {
    margin-bottom: 0.45rem;
    color: #4c4742;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-row time {
    color: var(--muted);
    font-size: 0.88rem;
}

.news-owner {
    margin: 0.45rem 0 0;
}

.event-venue {
    margin: 0.35rem 0;
    color: var(--muted);
    font-weight: 650;
}

.detail-page,
.news-article {
    padding-top: 1.5rem;
}

.breadcrumbs {
    padding-block: 1.25rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    margin-inline-start: 0.45rem;
    content: "/";
    color: #9c948b;
}

.detail-header {
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.detail-header h1 {
    max-width: 17ch;
    margin-bottom: 0.75rem;
    font-size: clamp(3rem, 6.5vw, 5.5rem);
}

.alternative-names,
.verified-status {
    margin-bottom: 0.25rem;
    color: var(--muted);
}

.khuree-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

.khuree-gallery-item {
    overflow: hidden;
    margin: 0;
    background: var(--surface);
    aspect-ratio: 4 / 3;
}

.khuree-gallery-cover {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
}

.khuree-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-status {
    color: var(--cinnabar);
    font-size: 0.9rem;
    font-weight: 650;
}

.khuree-detail-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(20rem, 1.25fr);
    gap: clamp(3rem, 7vw, 7rem);
    padding-block: clamp(3rem, 7vw, 6rem);
}

.facts-list {
    border-top: 1px solid var(--line);
}

.facts-list > div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.6fr) minmax(10rem, 1fr);
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
    padding-block: 1rem;
}

.facts-list dt {
    color: var(--muted);
    font-size: 0.86rem;
}

.facts-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.detail-back-link {
    margin-top: 2rem;
}

.khuree-detail-aside {
    min-width: 0;
}

.khuree-map {
    margin-top: 3rem;
}

.khuree-map h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.map-placeholder,
.khuree-map-frame {
    width: 100%;
    min-height: 22rem;
    border: 1px solid var(--line);
}

.map-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    background: var(--surface);
    padding: 1.5rem;
    text-align: center;
}

.map-placeholder p {
    max-width: 28rem;
    margin-bottom: 0;
    color: var(--muted);
}

.map-placeholder .button {
    min-width: 0;
    cursor: pointer;
    font-family: inherit;
}

.khuree-map-frame {
    display: block;
    background: var(--surface);
}

.map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.reading-column {
    max-width: 47rem;
}

.reading-column section + section {
    margin-top: 3rem;
}

.reading-column h2 {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.8rem;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.prose {
    max-width: 46rem;
    font-family: var(--font-serif);
    font-size: clamp(1.08rem, 1.5vw, 1.24rem);
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.35em;
}

.article-body.prose :is(ul, ol) {
    margin-block: 0 1.35em;
    padding-inline-start: 1.6em;
}

.article-body.prose ul {
    list-style-type: disc;
}

.article-body.prose ol {
    list-style-type: decimal;
}

.article-body.prose li + li {
    margin-block-start: 0.35em;
}

.article-body.prose a {
    overflow-wrap: anywhere;
}

.muted-text {
    color: var(--muted);
}

.related-section {
    border-top: 1px solid var(--line);
}

.news-article {
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.article-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 60rem;
    margin: 2.25rem 0 0;
}

.article-meta > div {
    border-inline-start: 1px solid var(--line);
    padding-inline: 1.5rem;
}

.article-meta > div:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
}

.article-meta dt {
    color: var(--muted);
    font-size: 0.8rem;
}

.article-meta dd {
    margin: 0.2rem 0 0;
}

.article-body {
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.article-lead {
    color: #423d38;
    font-size: 1.3em;
}

.event-meta {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.event-information {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}

.event-information h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.event-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.information-page {
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.information-page-header {
    max-width: 58rem;
    padding-block: clamp(2rem, 5vw, 4rem);
}

.information-page-header h1 {
    max-width: 19ch;
}

.information-page-header p {
    max-width: 42rem;
    margin: 1.25rem 0 0;
    color: #423d38;
    font-family: var(--font-serif);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.6;
}

.information-page-body {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

.system-page {
    display: grid;
    min-height: min(42rem, 72vh);
    align-items: center;
    padding-block: clamp(4rem, 10vw, 8rem);
}

.system-page-inner {
    max-width: 58rem;
}

.system-page-code {
    margin-bottom: 1rem;
    color: var(--cinnabar);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.system-page h1 {
    max-width: 17ch;
}

.system-page h1 + p {
    max-width: 42rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.system-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.error-header .language-nav {
    display: block;
}

.error-header .language-nav ul {
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
}

.footer-nav ul {
    justify-content: center;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}

@media (hover: hover) {
    .primary-nav a:hover,
    .language-nav a:hover,
    .footer-nav a:hover,
    .breadcrumbs a:hover,
    .facts-list a:hover {
        color: var(--cinnabar);
    }

    .button-primary:hover {
        background: var(--cinnabar-dark);
        border-color: var(--cinnabar-dark);
    }

    .button-secondary:hover {
        background: #f4e9e6;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .primary-nav a,
    .language-nav a,
    .button,
    .text-link,
    .row-action {
        transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
    }
}

@media (max-width: 64rem) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .primary-nav,
    .language-nav {
        display: none;
    }

    .mobile-navigation {
        display: block;
    }

    .home-hero-copy {
        width: min(38rem, 72%);
    }

    .khuree-row,
    .news-row {
        grid-template-columns: minmax(12rem, 0.7fr) minmax(16rem, 1.3fr) auto;
        gap: 1.5rem;
    }

    .khuree-row-with-cover {
        grid-template-columns: 8rem minmax(10rem, 0.7fr) minmax(14rem, 1.2fr) auto;
        gap: 1rem;
    }

    .directory-filter {
        grid-template-columns: minmax(16rem, 1fr) minmax(14rem, 0.7fr);
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
    }

    .footer-nav {
        display: none;
    }
}

@media (max-width: 48rem) {
    .site-container {
        width: min(calc(100% - 2rem), var(--container));
    }

    .brand span {
        max-width: 11rem;
        white-space: normal;
    }

    .home-hero {
        display: flex;
        min-height: auto;
        flex-direction: column;
    }

    .home-hero-media {
        position: relative;
        order: 1;
        width: 100%;
        height: clamp(15rem, 64vw, 24rem);
        object-position: 68% center;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .home-hero-inner {
        order: 2;
        min-height: 0;
        padding-block: 3rem;
    }

    .home-hero-copy {
        width: 100%;
    }

    .home-hero-copy h1 {
        max-width: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .khuree-row,
    .news-row,
    .home-news-row {
        grid-template-columns: 1fr auto;
        gap: 0.75rem 1rem;
    }

    .search-result {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .directory-filter {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: auto;
        flex-wrap: wrap;
    }

    .khuree-row-with-cover {
        grid-template-columns: 7rem minmax(0, 1fr) auto;
        gap: 0.75rem 1rem;
    }

    .khuree-row-with-cover .khuree-card-media {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .khuree-row-with-cover .khuree-card-heading,
    .khuree-row-with-cover > p {
        grid-column: 2;
    }

    .khuree-row-with-cover > .row-action {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .khuree-row > div,
    .news-row > div:nth-child(2),
    .home-news-row > div:nth-child(2) {
        grid-column: 1;
    }

    .khuree-row > p,
    .news-row > div:first-child,
    .home-news-row > .news-date {
        grid-column: 1;
    }

    .khuree-row > .row-action,
    .news-row > .row-action,
    .home-news-row > .row-action {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .khuree-row-with-cover > p {
        grid-column: 2;
    }

    .khuree-row-with-cover > .row-action {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .khuree-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .khuree-gallery-cover {
        grid-column: 1 / -1;
        aspect-ratio: 4 / 3;
    }

    .article-meta {
        grid-template-columns: 1fr;
    }

    .article-meta > div,
    .article-meta > div:first-child {
        border-inline-start: 0;
        border-bottom: 1px solid var(--line);
        padding: 0.9rem 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }
}

@media (max-width: 30rem) {
    .site-container {
        width: min(calc(100% - 1.5rem), var(--container));
    }

    .header-inner {
        min-height: 4.25rem;
        gap: 0.75rem;
    }

    .brand {
        font-size: 0.95rem;
    }

    .brand-mark {
        width: 1.65rem;
        height: 1.65rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .marked-section {
        padding-inline-start: 1.6rem;
    }

    .marked-section::before {
        inset-inline-start: 0.35rem;
    }

    .marked-section::after {
        inset-inline-start: 0.05rem;
    }

    .khuree-row,
    .news-row,
    .home-news-row {
        display: block;
    }

    .khuree-row-with-cover {
        display: grid;
        grid-template-columns: 1fr;
    }

    .khuree-row-with-cover .khuree-card-media,
    .khuree-row-with-cover .khuree-card-heading,
    .khuree-row-with-cover > p,
    .khuree-row-with-cover > .row-action {
        grid-column: 1;
        grid-row: auto;
    }

    .khuree-row-with-cover .khuree-card-media {
        margin-bottom: 0.5rem;
    }

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

    .khuree-gallery-cover {
        grid-column: 1;
    }

    .map-placeholder,
    .khuree-map-frame {
        min-height: 18rem;
    }

    .khuree-row .row-action,
    .news-row .row-action,
    .home-news-row .row-action {
        width: fit-content;
        margin-top: 0.75rem;
    }

    .facts-list > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}
