:root {
  --color-primary: #2E3A8C;
  --color-secondary: #0F766E;
  --color-accent: #D97706;
  --color-background: #F7F6F2;
  --color-surface: #FFFFFF;
  --color-text: #111827;
  --color-text-muted: #4B5563;
  --color-border: #D1D5DB;
  --cp-radius: 14px;
  --cp-shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
  --cp-max: 1120px;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-system);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

p, ul, ol, table, blockquote {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.page-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 1rem;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
}

.header-inner {
  max-width: var(--cp-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.site-name a {
  color: inherit;
  text-decoration: none;
}

.site-name a:hover {
  color: var(--color-secondary);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-primary);
}

main {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 3rem 1rem;
  width: 100%;
}

.breadcrumbs {
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumbs nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.breadcrumbs a:hover {
  color: var(--color-primary);
}

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

section {
  margin-bottom: 4rem;
}

section:last-child {
  margin-bottom: 0;
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

ul, ol {
  padding-left: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
}

ul li::marker {
  color: var(--color-primary);
}

blockquote {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-surface);
  border-radius: var(--cp-radius);
  overflow: hidden;
  box-shadow: var(--cp-shadow);
  margin: 2rem 0;
}

caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 1rem 0.75rem;
  background-color: var(--color-surface);
  color: var(--color-text);
}

thead {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
  background-color: rgba(46, 58, 140, 0.02);
}

tbody tr:hover {
  background-color: rgba(46, 58, 140, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

details {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--cp-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

details:hover {
  box-shadow: var(--cp-shadow);
}

details[open] {
  box-shadow: var(--cp-shadow);
}

summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '▸';
  display: inline-block;
  color: var(--color-primary);
  font-size: 1.125rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details[open] summary::before {
  transform: rotate(90deg);
}

summary:hover {
  background-color: rgba(46, 58, 140, 0.03);
  color: var(--color-primary);
}

summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

details .details-content {
  padding: 0 1.5rem 1.5rem 3rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 1rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--cp-max);
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer-inner p {
  margin-bottom: 0.5rem;
}

.resources-section {
  background-color: var(--color-surface);
  padding: 2rem;
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow);
  margin-top: 3rem;
}

.resources-section h2 {
  margin-top: 0;
}

.resources-section ul {
  margin-bottom: 0;
}

.contact-info {
  background-color: var(--color-surface);
  padding: 2rem;
  border-radius: var(--cp-radius);
  border: 2px solid var(--color-border);
  margin: 2rem 0;
}

.contact-info a {
  word-break: break-all;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-name {
    font-size: 1.75rem;
  }

  main {
    padding: 4rem 2rem;
  }

  .two-column-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }

  details .details-content {
    padding: 0 1.5rem 1.5rem 3.5rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  main {
    padding: 5rem 2rem;
  }

  nav ul {
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background-color: white;
    color: black;
  }

  header, footer, nav, .breadcrumbs {
    display: none;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.875rem;
  }

  details {
    border: 1px solid #000;
  }

  details summary {
    font-weight: bold;
  }

  details[open] .details-content {
    display: block;
  }

  table {
    box-shadow: none;
    border: 1px solid #000;
  }

  thead {
    background-color: #f0f0f0;
    color: black;
  }

  blockquote {
    border-left: 4px solid #000;
    box-shadow: none;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  table, figure, blockquote {
    page-break-inside: avoid;
  }
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-surface);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}