/* Mobile-first styles; no external fonts or CDNs. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #1c2430;
  --muted: #55606e;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --max: 64rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.site-header { border-bottom: 1px solid #e3e7ec; background: var(--bg); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.hero { background: var(--bg-alt); padding: 3rem 0; }
.hero h1 { margin: 0 0 1rem; font-size: 2rem; line-height: 1.2; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.5rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.75rem 1.5rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
}
.button:hover { filter: brightness(1.1); }

.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { margin-top: 0; }

.site-footer { padding: 1.5rem 0; border-top: 1px solid #e3e7ec; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }

@media (min-width: 48rem) {
  .hero { padding: 5rem 0; }
  .hero h1 { font-size: 3rem; }
  .section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Forms and messages */
main { min-height: 60vh; }
.error { color: #a40e26; font-weight: 600; }
.notice { background: #e8f3ec; border-left: 4px solid #2f7d4f; padding: 0.75rem 1rem; }
.form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input, textarea, select { width: 100%; max-width: 32rem; padding: 0.5rem; font: inherit; border: 1px solid #aab3bf; border-radius: 0.3rem; background: #fff; }
button.button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.button:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.hp { position: absolute; left: -9999px; }
.search { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin-bottom: 1.5rem; }
.search input, .search select { width: auto; flex: 1 1 12rem; }

/* Components shared by the site's sections and pages */
.narrow { max-width: 44rem; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.card { background: var(--bg); border: 1px solid #e3e7ec; border-radius: 0.6rem; padding: 1.25rem; }
.section-alt .card { border-color: #dde2e8; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0 0 0.5rem; }
.card img { display: block; width: 100%; height: auto; border-radius: 0.4rem; margin-bottom: 0.75rem; background: var(--bg-alt); }
.meta { color: var(--muted); font-size: 0.9rem; }
.price { font-weight: 700; }
.badge { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 1rem; background: var(--bg-alt); color: var(--muted); font-size: 0.85rem; }
.empty { padding: 1.5rem; border: 1px dashed #aab3bf; border-radius: 0.6rem; color: var(--muted); text-align: center; }
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
.split img { display: block; width: 100%; height: auto; border-radius: 0.6rem; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 0.75rem 0; border-bottom: 1px solid #e3e7ec; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid #e3e7ec; vertical-align: top; }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.breadcrumbs a { color: inherit; }
.toc { background: var(--bg-alt); border-radius: 0.6rem; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.toc ol, .toc ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
details { border-bottom: 1px solid #e3e7ec; padding: 0.75rem 0; }
summary { cursor: pointer; font-weight: 600; }
.button-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 40rem) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
}
