:root {
  --color-primary: #2B3A67;
  --color-secondary: #4E937A;
  --color-accent: #D97B3A;
  --color-background: #F6F2EA;
  --color-surface: #FFFFFF;
  --color-text: #1B1E2B;
  --color-text-muted: #5A6072;
  --color-border: #D7D0C6;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(27, 30, 43, 0.08);
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

h1 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

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

h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
}

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

a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

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

header {
  background-color: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
}

header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

header .site-name {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

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

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

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

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

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

main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: var(--color-surface);
  box-shadow: var(--shadow);
}

section {
  margin-bottom: 3rem;
}

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

aside {
  background-color: var(--color-background);
  border-left: 4px solid var(--color-secondary);
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

blockquote {
  background-color: rgba(78, 147, 122, 0.05);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text);
}

blockquote p:last-child {
  margin-bottom: 0;
}

nav[aria-label="Breadcrumb"] {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

nav[aria-label="Breadcrumb"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

nav[aria-label="Breadcrumb"] li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav[aria-label="Breadcrumb"] li:not(:last-child)::after {
  content: "›";
  color: var(--color-text-muted);
  font-weight: 400;
}

nav[aria-label="Breadcrumb"] a {
  color: var(--color-text-muted);
  text-decoration: none;
}

nav[aria-label="Breadcrumb"] a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  border-radius: var(--radius);
}

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

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

th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--color-border);
}

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

tbody tr:nth-child(even) {
  background-color: rgba(246, 242, 234, 0.4);
}

tbody tr:hover {
  background-color: rgba(78, 147, 122, 0.08);
  transition: background-color 0.2s ease;
}

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.table-wrapper table {
  margin: 0;
  border: none;
}

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

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

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

summary {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

summary::before {
  content: "▸";
  font-size: 1rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

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

summary:hover {
  background-color: rgba(78, 147, 122, 0.05);
  color: var(--color-secondary);
}

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

details div {
  padding: 0 1.25rem 1.25rem 2.5rem;
  color: var(--color-text);
}

details p:last-child {
  margin-bottom: 0;
}

footer {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 1.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  text-align: center;
  border-top: 2px solid var(--color-secondary);
}

footer a {
  color: var(--color-surface);
  text-decoration: underline;
}

footer a:hover {
  color: var(--color-accent);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

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

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

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

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

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

  main {
    padding: 3rem 2.5rem;
  }

  thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  table {
    font-size: 1rem;
  }
}

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

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  main {
    padding: 4rem 3rem;
  }
}

@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;
  }

  summary::before {
    transition: none;
  }
}

@media print {
  body {
    background-color: white;
    color: black;
    font-size: 12pt;
  }

  header, footer, nav, aside {
    display: none;
  }

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

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

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

  details {
    border: none;
  }

  details summary {
    display: none;
  }

  details div {
    padding: 0;
  }

  table {
    border: 1px solid black;
  }

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

  th, td {
    border: 1px solid black;
  }

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

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