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

:root {
  --color-primary: #0f4c75;
  --color-secondary: #1b262c;
  --color-accent: #bbe1fa;
  --color-bg: #ffffff;
  --color-surface: #f0f7ff;
  --color-text: #1b262c;
  --color-text-muted: #6b7b8d;
  --color-border: #d1dce6;
  --font-main: 'Georgia', 'Times New Roman', 'Palatino', serif;
  --max-width: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(15, 76, 117, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 76, 117, 0.12);
  --shadow-lg: 0 8px 24px rgba(15, 76, 117, 0.16), 0 2px 6px rgba(15, 76, 117, 0.08);
  --shadow-inner: inset 0 2px 4px rgba(15, 76, 117, 0.06);
}

body {
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(15, 76, 117, 0.1);
}

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

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

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-accent);
}

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

strong {
  font-weight: 700;
  color: var(--color-secondary);
}

em {
  font-style: italic;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, #ffffff 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-style: italic;
  color: var(--color-text-muted);
  position: relative;
}

blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(187, 225, 250, 0.2) 100%);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

::selection {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.site-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-bg);
  padding: 2rem 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.site-nav {
  background: var(--color-bg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border-bottom: none;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.site-nav a:focus-visible {
  outline-color: var(--color-primary);
}

.site-main {
  flex: 1;
  padding: 2rem 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--color-primary);
  border-bottom: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.breadcrumbs a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

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

.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 12px 32px rgba(15, 76, 117, 0.2);
  transform: translateY(-4px);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-bg);
}

thead th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

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

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

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

tbody tr:hover {
  background: var(--color-accent);
  box-shadow: var(--shadow-inner);
}

tbody td {
  padding: 1rem;
}

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

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

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

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
  transition: background-color 0.2s ease, color 0.2s ease;
  list-style: none;
  user-select: none;
  position: relative;
}

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

summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.75rem;
  transition: transform 0.2s ease;
  font-size: 0.875rem;
}

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

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

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

details > *:not(summary) {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  animation: slideDown 0.2s ease;
}

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

.site-footer {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-accent);
  padding: 3rem 1rem 2rem;
  margin-top: auto;
  box-shadow: 0 -4px 12px rgba(15, 76, 117, 0.12);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.site-footer a {
  color: var(--color-accent);
  border-bottom-color: transparent;
}

.site-footer a:hover {
  color: var(--color-bg);
  border-bottom-color: var(--color-bg);
}

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

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .site-header {
    padding: 3rem 2rem;
  }

  .site-nav {
    padding: 1rem 2rem;
  }

  .site-nav ul {
    justify-content: flex-start;
    gap: 1rem;
  }

  .site-main {
    padding: 3rem 2rem;
  }

  .card {
    padding: 2.5rem;
  }

  blockquote {
    padding: 2rem 2.5rem;
  }

  .breadcrumbs {
    padding: 1rem 2rem;
  }

  .site-footer {
    padding: 4rem 2rem 2.5rem;
  }

  table {
    font-size: 1rem;
  }

  thead th {
    padding: 1.5rem 1.25rem;
  }

  tbody td {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 20px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  .site-header {
    padding: 4rem 2rem;
  }

  .site-main {
    padding: 4rem 2rem;
  }

  .card {
    padding: 3rem;
  }

  .site-nav ul {
    gap: 1.5rem;
  }

  .site-footer {
    padding: 5rem 2rem 3rem;
  }
}

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

  details > *:not(summary) {
    animation: none;
  }

  .card:hover {
    transform: none;
  }

  .site-nav a:hover {
    transform: none;
  }
}

@media print {
  .site-nav,
  .breadcrumbs,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .site-main {
    padding: 0;
  }

  .container {
    max-width: 100%;
  }

  .card {
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }

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

  table {
    box-shadow: none;
    page-break-inside: avoid;
  }

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