@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/BeVietnamPro-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/BeVietnamPro-Medium.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  src: url('/assets/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #211b29;
  --muted: #6f6881;
  --paper: #f8f7fa;
  --paper-strong: #ffffff;
  --line: #ded9e8;
  --brand: #241555;
  --brand-deep: #110a2a;
  --lavender: #8b5cf6;
  --lavender-soft: #e3d7fc;
  --gold: #b18443;
  --gold-soft: #f4e4c7;
  --danger-soft: #f9e8ec;
  --danger-ink: #8f3046;
  --content-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.preview-banner {
  background: var(--gold-soft);
  border-bottom: 1px solid #e5c98f;
  color: #59411f;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  text-align: center;
}

.site-header {
  background: var(--brand-deep);
  border-bottom: 1px solid #4c3973;
  color: white;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: var(--content-width);
  min-height: 92px;
  padding: 16px 24px;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  min-height: 48px;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: 174px;
  object-fit: contain;
  width: 100%;
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.primary-nav a {
  border-bottom: 2px solid transparent;
  color: #e9e3f5;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 10px 9px;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: white;
}

.primary-nav a[aria-current='page'] {
  border-bottom-color: var(--gold);
  color: white;
}

.language-switcher {
  border: 1px solid #6a568c;
  display: grid;
  grid-template-columns: repeat(2, 38px);
  padding: 2px;
}

.language-switcher button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #d7cef5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  height: 34px;
  padding: 0;
}

.language-switcher button[aria-pressed='true'] {
  background: white;
  color: var(--brand-deep);
}

.page-shell {
  display: grid;
  gap: 56px;
  grid-template-columns: 240px minmax(0, 1fr);
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 56px 24px 88px;
}

.side-nav {
  align-self: start;
  position: sticky;
  top: 24px;
}

.side-nav-title {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.side-nav a {
  border-left: 2px solid var(--line);
  color: var(--muted);
  display: block;
  font-size: 14px;
  padding: 9px 14px;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a[aria-current='page'] {
  border-left-color: var(--lavender);
  color: var(--ink);
}

.document {
  min-width: 0;
  width: 100%;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  color: var(--brand);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.02;
  margin: 0;
  overflow-wrap: anywhere;
}

.intro {
  color: var(--muted);
  font-size: 17px;
  margin: 20px 0 0;
  max-width: 720px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
  margin: 22px 0 0;
}

.document-sections {
  margin-top: 48px;
}

.document-section {
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
}

.document-section h2 {
  color: var(--brand);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 10px;
}

.document-section p {
  margin: 0;
  overflow-wrap: anywhere;
}

.document-list {
  margin: 14px 0 20px;
  padding-left: 24px;
}

.document-list li + li {
  margin-top: 8px;
}

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

.link-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px 0;
  text-decoration: none;
}

.link-row:hover .link-title,
.link-row:focus-visible .link-title {
  color: var(--lavender);
}

.link-title {
  color: var(--brand);
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.link-body {
  color: var(--muted);
  display: block;
  font-size: 14px;
}

.link-arrow {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 24px;
}

.contact-action {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  margin-top: 18px;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}

.contact-action:hover,
.contact-action:focus-visible {
  background: var(--lavender);
  border-color: var(--lavender);
}

.pending-contact {
  background: var(--danger-soft);
  color: var(--danger-ink);
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  padding: 8px 12px;
}

.operator-details {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
  grid-template-columns: 1fr;
  margin-top: 42px;
  padding-top: 18px;
}

.operator-details strong {
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
}

.footer-inner {
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 28px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-inner > [data-language-content] {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }

  .header-inner .language-switcher {
    grid-column: 2;
    grid-row: 1;
  }

  .primary-nav {
    justify-content: flex-start;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .page-shell {
    gap: 34px;
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .page-shell > [data-language-content] {
    min-width: 0;
  }

  .side-nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    position: static;
    width: 100%;
  }

  .side-nav-title {
    display: none;
  }

  .side-nav a {
    border-bottom: 2px solid var(--line);
    border-left: 0;
    flex: 0 0 auto;
    padding: 9px 12px;
    white-space: nowrap;
  }

  .side-nav a:hover,
  .side-nav a:focus-visible,
  .side-nav a[aria-current='page'] {
    border-bottom-color: var(--lavender);
  }
}

@media (max-width: 560px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    gap: 12px;
    min-height: 76px;
    padding: 12px 16px;
  }

  .brand-logo {
    max-width: 142px;
  }

  .primary-nav {
    display: none;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .side-nav a {
    min-width: 0;
    text-align: center;
    white-space: normal;
  }

  .side-nav a:last-child {
    grid-column: 1 / -1;
  }

  .page-shell {
    padding: 32px 16px 64px;
  }

  .page-shell > [data-language-content],
  .document,
  .document-section {
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    font-size: 42px;
  }

  .intro {
    font-size: 15px;
  }

  .link-row {
    gap: 14px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
