/* Layout for the current website. Kept local so navigation and content do not
   depend on a runtime CSS service being available. */
* { box-sizing: border-box; }
html { font-size: 100%; color-scheme: dark; }
body {
    margin: 0;
    color: #fff;
    background: #262b32;
    font-family: "Urbanist", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
body.interior-page {
    background: linear-gradient(#171c22b8, #171c22b8), url("images/img1.jpg") center / cover fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #f0e68c;
    outline-offset: 4px;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
.container, #container { min-height: 100vh; min-height: 100svh; }
#navbar {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 28px 32px;
    color: white;
}
#navbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 4px;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .04em;
}
#navbar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
#navbar #navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 28px;
    width: auto;
}
#navbar .language-switch { margin: 0; justify-self: end; }
.language-switch button { min-height: 44px; }
.swiper {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #262b32;
}
.swiper > .swiper-wrapper {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: flex;
    width: 100%;
    height: 100%;
}
.swiper-slide { flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.content-container { position: relative; z-index: 2; pointer-events: none; }
.content-container #navbar, #content { pointer-events: auto; }
#content { width: min(1240px, 100%); min-height: calc(100svh - 108px); display: flex; align-items: center; margin: 0 auto; padding: 40px 32px 64px; }
.home-content {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 28px;
    width: 100%;
}
/* Let the text determine the row height, then scale the entire logo to match. */
#logo { position: relative; flex: 0 0 var(--logo-width, 280px); }
#logo img { position: absolute; right: 0; top: 0; display: block; height: 100%; width: auto; max-width: none; }
#content-text {
    min-width: 0;
    flex: 0 0 min(680px, 62%);
    padding: 24px;
    border: 1px solid #ffffff30;
    border-radius: 10px;
    background: #000b;
    box-shadow: 0 8px 32px #0003;
}
#textContent { white-space: pre-line; overflow-wrap: anywhere; font-size: 17px; line-height: 1.7; }
#textContent:has(p) { white-space: normal; }
#textContent p { margin: 0 0 16px; white-space: pre-line; }
#textContent p:last-child { margin-bottom: 0; }
.main-container { width: 100%; padding: 36px 32px 64px; }
.about-content {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 32px;
    border-radius: 10px;
    background: #000b;
}
.shop-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; }
.store-info { min-width: 0; }
.store-info p { margin: 0 0 24px; overflow-wrap: anywhere; }
.store-info p:last-child { margin-bottom: 0; }
.store-info strong { color: #f0e68c; }
.store-info a { display: inline-block; padding-block: 8px; min-height: 44px; }
.responsive-iframe-wrapper { width: 100%; height: 400px; }
.responsive-iframe-wrapper iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.archive-content { min-width: 0; }
#yearFilterLabel { margin: 0 0 12px; }
.year-slider { display: flex; align-items: center; gap: 4px; width: 100%; margin-bottom: 24px; }
.scrollable-years { min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.years-container { display: flex; gap: 8px; padding: 5px; }
.year, .arrow-btn, #retryDocuments {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #ffffff80;
    border-radius: 4px;
    background: #ffffff15;
    color: white;
}
.year.active { background: #ffffff40; }
.arrow-btn:disabled { opacity: .4; cursor: default; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #ffffff10; }
th, td { padding: 12px; border: 1px solid #ffffff50; text-align: left; overflow-wrap: anywhere; vertical-align: middle; }
th { background: #ffffff20; }
th:first-child { width: 55%; }
th:nth-child(2) { width: 15%; }
th:nth-child(3) { width: 30%; }
td a { display: inline-flex; align-items: center; min-height: 44px; color: #bde0ff; text-decoration: underline; }
#documentStatus { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    #content { min-height: 0; }
    .home-content { display: flex; flex-direction: column; align-items: center; gap: 24px; }
    #logo img { position: static; width: 120px; height: auto; }
    #logo, #content-text { flex: none; }
    #content-text { width: 100%; }
}
@media (max-width: 760px) {
    body.interior-page { background-attachment: scroll; }
    #navbar { grid-template-columns: 1fr auto; gap: 12px 16px; padding: 16px 20px; }
    #navbar > a { justify-self: start; }
    #navbar .language-switch { grid-column: 2; grid-row: 1; }
    #navbar #navigation { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
    #navbar a { font-size: 14px; letter-spacing: .02em; }
    #navigation a { border: 1px solid #ffffff40; border-radius: 6px; padding: 10px 8px; }
    #content { padding: 20px 20px 40px; }
    .home-content { flex-direction: column; gap: 24px; min-height: 0; }
    #logo { flex: none; }
    #logo img { width: 120px; }
    #content-text { width: 100%; padding: 20px; }
    #textContent { font-size: 16px; line-height: 1.7; }
    .main-container { padding: 20px 20px 40px; }
    .about-content { padding: 24px; }
    .shop-content { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .responsive-iframe-wrapper { height: 300px; }
    th, td { padding: 8px; font-size: 14px; }
    th:first-child { width: 46%; }
    th:nth-child(2) { width: 20%; }
    th:nth-child(3) { width: 34%; }
}
@media (max-width: 360px) {
    #navbar { padding-inline: 12px; }
    #content, .main-container { padding-inline: 12px; }
    .about-content, #content-text { padding: 16px; }
    #navbar a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
