:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e3e6ec;
  --text: #14181f;
  --muted: #5b6472;
  --accent: #0f7b6c;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1016;
    --surface: #151a22;
    --border: #262d3a;
    --text: #e8ecf2;
    --muted: #98a3b3;
    --accent: #35c9ae;
    --accent-ink: #06231e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }

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

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

header.site nav a + a { margin-left: 1.1rem; }
header.site nav a:hover { color: var(--accent); }

main { padding: 2.5rem 0 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.6rem; }
h2 { font-size: 1.2rem; margin: 2.4rem 0 0.7rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1rem; margin: 1.4rem 0 0.35rem; }
p { margin: 0 0 0.85rem; }
.lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.6rem; }
a { color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.2rem 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.card h3 { margin-top: 0; }
.card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.5rem; }

.table-scroll { overflow-x: auto; margin: 1rem 0; }

table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }
td.num { white-space: nowrap; }

dl.contact { margin: 0.6rem 0 0; }
dl.contact dt { font-weight: 600; margin-top: 0.7rem; font-size: 0.9rem; }
dl.contact dd { margin: 0; color: var(--muted); }

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.87rem;
  padding: 1.5rem 0 2.5rem;
}

footer.site nav a { color: var(--muted); text-decoration: none; }
footer.site nav a + a { margin-left: 1rem; }
footer.site nav a:hover { color: var(--accent); }
footer.site p { margin: 0.5rem 0 0; }
