:root {
  --color-primary: #1E5A7A;
  --color-secondary: #2A8C7B;
  --color-accent: #E07A3F;
  --color-background: #F6F2EA;
  --color-surface: #FFFFFF;
  --color-text: #14212B;
  --color-text-muted: #4E5D66;
  --color-border: #D8D1C6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 43, 0.10);
  --maxw: 1100px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: -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%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  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-serif);
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0.75em;
  color: var(--color-primary);
}

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

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

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  color: var(--color-secondary);
}

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

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 100%);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.25s ease, color 0.2s ease;
  padding-bottom: 2px;
}

a:hover {
  color: var(--color-secondary);
  background-size: 100% 2px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

li {
  margin-bottom: 0.5rem;
}

header {
  background-color: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

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

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

header nav a {
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.breadcrumbs {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

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

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

section {
  margin-bottom: 3rem;
}

aside {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

aside h3, aside h4 {
  margin-top: 0;
  color: var(--color-accent);
}

blockquote {
  background-color: var(--color-surface);
  border-left: 5px solid var(--color-secondary);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(20, 33, 43, 0.06);
}

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

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

details:hover {
  border-color: var(--color-secondary);
}

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

summary {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
  user-select: none;
}

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

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

details[open] summary::after {
  transform: rotate(45deg);
}

summary:hover {
  color: var(--color-secondary);
}

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

details div {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

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

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

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

thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-sans);
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
  background-color: var(--color-background);
}

tbody tr:hover {
  background-color: rgba(30, 90, 122, 0.05);
}

tbody td {
  padding: 1rem;
}

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

@media (min-width: 1024px) {
  thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

footer {
  background-color: var(--color-surface);
  border-top: 2px solid var(--color-border);
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

footer .footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

footer nav {
  margin-bottom: 1rem;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

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

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

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

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

.cta-nav {
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.cta-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-nav a {
  font-weight: 500;
  display: inline-block;
}

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

  h2 {
    font-size: 2.125rem;
  }

  h3 {
    font-size: 1.625rem;
  }

  main {
    padding: 3rem 2rem;
  }

  header .header-inner {
    padding: 1.5rem 2rem;
  }

  .cta-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  section {
    margin-bottom: 4rem;
  }
}

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

  h2 {
    font-size: 2.375rem;
  }

  main {
    padding: 4rem 2.5rem;
  }

  aside {
    float: right;
    width: 45%;
    margin-left: 2rem;
    margin-top: 0.5rem;
  }
}

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

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

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

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

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

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

  details[open] summary::after {
    content: '';
  }

  details div {
    display: block;
  }
}