﻿:root {
  --brand: #00594f;
  --brand-dark: #003d36;
  --accent: #2f7d20;
  --accent-soft: #e8f3e5;
  --text: #1b1f23;
  --muted: #4f5b57;
  --surface: #ffffff;
  --surface-muted: #f4f8f6;
  --border: #c9d8d2;
  --focus: #ffbf47;
}

body[data-theme="normal"] {
  --primary-color: var(--brand);
  --focus-outline: var(--brand-dark);
  --focus-bg: var(--brand-dark);
  --focus-text: #ffffff;
}

body[data-theme="normal"] nav,
body[data-theme="normal"] .panel-toggle-btn {
  background-color: var(--brand);
}

body[data-theme="normal"] nav a:hover,
body[data-theme="normal"] nav a:focus-visible {
  background-color: #f7ff6a !important;
  color: var(--brand-dark) !important;
  outline: 4px solid var(--brand-dark) !important;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 2px #ffffff !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-180%);
  background: var(--focus);
  color: #111;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: min(310px, 58vw);
  height: auto;
  display: block;
}

.top-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav a {
  font-weight: 700;
}

.hero {
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  padding: clamp(2rem, 6vw, 4.5rem) 0;
}

.hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--brand-dark);
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

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

main {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

section {
  max-width: 920px;
}

section ul {
  padding-left: 1.35rem;
}

section li+li {
  margin-top: 0.35rem;
}

.documents {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.documents ul {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.documents a {
  display: block;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-left: 5px solid var(--accent);
  background: var(--surface);
  color: var(--brand-dark);
  font-weight: 700;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  color: #ffffff;
  background: var(--brand-dark);
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer address,
.site-footer strong {
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
}

.site-footer h2 {
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.epartner-header {
  background: var(--surface);
}

.epartner-header .logos {
  margin-bottom: 1rem;
}

.epartner-wordmark {
  width: min(360px, 70vw);
  height: auto;
  display: block;
  margin: 1.5rem auto 1rem;
}

body[data-theme="high-contrast"] .documents a {
  background: #000000;
  color: #ffffff;
  border-color: #ffff00;
}

.panel-toggle-btn {
  width: 68px;
  height: 68px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: var(--brand);
}

body[data-theme="normal"] .panel-toggle-btn,
body[data-theme="dark"] .panel-toggle-btn {
  background-color: var(--brand);
  color: #ffffff;
}

.panel-toggle-btn svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.panel-toggle-btn:hover {
  background: var(--brand-dark);
}

body[data-theme="normal"] .panel-toggle-btn:hover,
body[data-theme="dark"] .panel-toggle-btn:hover {
  background-color: var(--brand-dark);
}

.panel-toggle-btn span {
  display: none;
}

#nav-panel-list .nav-panel-subitem a {
  padding-left: 1.5rem;
  font-size: 0.95em;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav ul {
    flex-direction: column;
  }
}