:root {
  --color-primary: #1E5A6A;
  --color-secondary: #2F7B6E;
  --color-accent: #D18A2C;
  --color-background: #F6F3EE;
  --color-surface: #FFFFFF;
  --color-text: #1B2326;
  --color-text-muted: #4E5B60;
  --color-border: #C9D2CF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 35, 38, 0.10);
  --measure: 68ch;
  --transition-speed: 0.25s;
}

* {
  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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

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

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

h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
}

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

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

p {
  margin-bottom: 1.25rem;
  max-width: var(--measure);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-speed) ease, text-decoration-color var(--transition-speed) ease;
}

a:hover {
  color: var(--color-secondary);
  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.5rem 1rem;
  box-shadow: var(--shadow);
}

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

@media (min-width: 768px) {
  header .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  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: 0.5rem 1.5rem;
  align-items: center;
}

nav a {
  font-weight: 500;
  white-space: nowrap;
}

.breadcrumbs {
  background-color: var(--color-surface);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs nav {
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--color-text-muted);
}

main {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

@media (min-width: 1024px) {
  main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 3rem 2rem;
  }
  
  main.single-column {
    grid-template-columns: 1fr;
    max-width: 900px;
  }
}

article {
  min-width: 0;
}

aside {
  min-width: 0;
}

@media (min-width: 1024px) {
  aside {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

section {
  margin-bottom: 3rem;
}

blockquote {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 8px rgba(27, 35, 38, 0.06);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(27, 35, 38, 0.08);
  font-size: 0.95rem;
}

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

caption {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  text-align: left;
  padding: 1rem 1rem 0.75rem;
  background-color: var(--color-surface);
}

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 {
  transition: background-color var(--transition-speed) ease;
}

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

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

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

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

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

details[open] {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(30, 90, 106, 0.12);
  background-color: rgba(246, 243, 238, 0.3);
}

summary {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  user-select: none;
}

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

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

details[open] summary::after {
  content: "−";
}

summary:hover {
  background-color: rgba(30, 90, 106, 0.05);
  color: var(--color-secondary);
}

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

details .details-content {
  padding: 0 1.25rem 1.25rem;
}

details[open] .details-content {
  animation: slideDown var(--transition-speed) ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

li {
  margin-bottom: 0.5rem;
}

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

footer .footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  footer .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

@media (min-width: 768px) {
  footer nav ul {
    justify-content: flex-end;
  }
}

footer a {
  font-size: 0.9rem;
}

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

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

@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
  
  header, footer, nav, aside {
    display: none;
  }
  
  main {
    max-width: 100%;
    padding: 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  @page {
    margin: 2cm;
  }
}