:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent-soft: #eff6ff;
  --success: #15803d;
  --warning-bg: #fffbeb;
  --warning-border: #fef3c7;
  --warning-text: #92400e;
  --radius: 12px;
  --max-w: 800px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

nav a:hover, nav a.active {
  color: var(--primary);
  text-decoration: underline;
}

main {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.4rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p.lead {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--text-main);
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.notice-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.notice-box strong {
  color: var(--warning-text);
}

.contact-box {
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  padding: 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.contact-box a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

.nav-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-tile {
  display: block;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-main);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.nav-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.nav-tile h3 {
  margin-top: 0;
  color: var(--primary);
}

.nav-tile p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

footer {
  max-width: var(--max-w);
  margin: 3rem auto 2rem;
  padding: 1rem 1.25rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.5rem;
}

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

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .card {
    padding: 1.25rem;
  }
  h1 {
    font-size: 1.5rem;
  }
}
