:root {
  --paper: #f3e7c7;
  --paper-raised: #fff8e8;
  --ink: #292a24;
  --muted-ink: #6f6757;
  --specimen: #355f70;
  --specimen-soft: #d9e4df;
  --amber: #b7832f;
  --line: #b7aa8c;
  --shadow: rgba(66, 54, 34, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

html,
body,
.language-document {
  min-height: 100%;
  height: auto !important;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 280px;
  margin: 0;
  overflow: auto !important;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 6%, rgba(183, 131, 47, 0.13), transparent 24rem),
    radial-gradient(circle at 92% 28%, rgba(53, 95, 112, 0.11), transparent 28rem),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 37px,
      rgba(71, 67, 55, 0.055) 38px
    ),
    var(--paper);
  font-family: Georgia, 'Times New Roman', Times, serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--specimen);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #214755;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-raised);
  transform: translateY(-180%);
}

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

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  min-height: 430px;
  padding: clamp(28px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px 58px 8px 58px;
  background: rgba(255, 248, 232, 0.87);
  box-shadow: 0 26px 70px var(--shadow);
}

.masthead::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(53, 95, 112, 0.21);
  border-radius: 50%;
  content: '';
}

.eyebrow,
.document-number,
.meta-chip,
.language-switch,
.toc-label,
.section-index,
.contact-label,
.site-footer {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.summary {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--muted-ink);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.5;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 231, 199, 0.62);
}

.language-switch button {
  min-width: 52px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted-ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed='true'] {
  color: var(--paper-raised);
  background: var(--specimen);
}

.specimen-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  text-align: center;
}

.specimen-frame {
  display: grid;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid rgba(53, 95, 112, 0.45);
  border-radius: 50%;
  background: rgba(217, 228, 223, 0.54);
}

.specimen-frame img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(41, 42, 36, 0.2));
}

.document-number {
  margin: 20px 0 0;
  color: var(--specimen);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.meta-chip {
  padding: 8px 12px;
  border: 1px solid rgba(111, 103, 87, 0.45);
  border-radius: 999px;
  color: var(--muted-ink);
  background: rgba(255, 248, 232, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.document-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  margin-top: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 248, 232, 0.54);
}

.toc-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  color: var(--muted-ink);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}

.policy-article {
  min-width: 0;
}

.policy-section {
  position: relative;
  padding: 0 0 40px;
  scroll-margin-top: 24px;
}

.policy-section + .policy-section {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.section-index {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.policy-section p {
  margin: 0 0 14px;
  color: #49483f;
  font-size: 17px;
  line-height: 1.72;
}

.provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.provider-links a {
  padding: 9px 12px;
  border: 1px solid rgba(53, 95, 112, 0.4);
  border-radius: 4px 16px 4px 16px;
  background: rgba(217, 228, 223, 0.5);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-top: 24px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--specimen);
  border-radius: 6px 34px 6px 34px;
  background: var(--specimen);
  color: var(--paper-raised);
  align-items: center;
}

.contact-label {
  margin: 0 0 8px;
  color: #d9c08d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0;
  color: var(--paper-raised);
}

.contact-card a {
  padding: 13px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-raised);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  margin-top: 34px;
  color: var(--muted-ink);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .masthead {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    border-radius: 6px 38px 6px 38px;
  }

  .specimen-panel {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    text-align: left;
    align-items: center;
  }

  .specimen-frame {
    width: 132px;
    height: 132px;
  }

  .document-number {
    margin: 0;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .masthead {
    padding: 26px 20px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .specimen-panel {
    grid-template-columns: 96px 1fr;
  }

  .specimen-frame {
    width: 96px;
    height: 96px;
  }

  .metadata {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-grid {
    margin-top: 34px;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card a {
    text-align: center;
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: white;
  }

  .site-shell {
    width: 100%;
    padding: 0;
  }

  .masthead,
  .contact-card {
    box-shadow: none;
  }

  .language-switch,
  .toc,
  .specimen-panel {
    display: none;
  }

  .document-grid {
    display: block;
  }
}
