:root {
  color-scheme: light;
  --ink: #1a2332;
  --muted: #4a5568;
  --paper: #f6f7f9;
  --navy: #1e4a73;
  --line: #d5dde6;
  --notice: #e8eef5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.5 ui-sans-serif, system-ui, sans-serif;
}

a { color: var(--navy); }

.banner {
  margin: 0;
  padding: 0.4rem 1rem;
  background: var(--notice);
  color: var(--navy);
  text-align: center;
  font-size: 0.8rem;
}

.wrap { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 2.5rem; }

.crumbs, .tools, footer { font-size: 0.85rem; color: var(--muted); }

h1 {
  margin: 0.2rem 0 0.3rem;
  font: 600 1.8rem/1.2 ui-serif, Georgia, serif;
}

h2 { margin: 1.2rem 0 0.3rem; font: 600 1.25rem/1.3 ui-serif, Georgia, serif; }

.eyebrow, .lede { margin: 0; color: var(--muted); font-size: 0.9rem; }

table { border-collapse: collapse; margin: 0.8rem 0; }

th, td { text-align: left; padding: 0.15rem 0.8rem 0.15rem 0; vertical-align: baseline; }

th { color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.gap {
  margin: 0.8rem 0;
  padding-left: 0.6rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

ul { padding-left: 1.1rem; }

footer { margin-top: 1.5rem; }

/* House ad. Keep identical to HOUSE_AD_CSS in src/lib/house-ad.ts */
.house-ad {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  width: 100%;
  max-width: 72rem;
  min-width: 0;
  min-height: 3rem;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  border: 2px solid #b45309;
  border-radius: 0;
  background: #fef3c7;
  color: #1a2332;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: start;
  text-decoration: none;
}

.house-ad:visited {
  color: #1a2332;
}

.house-ad:hover,
.house-ad:focus-visible {
  border-color: #92400e;
  text-decoration: none;
}

.house-ad-kicker,
.house-ad:visited .house-ad-kicker {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  color: #78350f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.house-ad-copy,
.house-ad:visited .house-ad-copy {
  display: block;
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #1a2332;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.house-ad-btn,
.house-ad:visited .house-ad-btn {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  margin-inline-start: auto;
  padding: 0.45rem 0.95rem;
  border-radius: 0.45rem;
  background: #92400e;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.house-ad:hover .house-ad-btn,
.house-ad:focus-visible .house-ad-btn {
  background: #78350f;
  color: #fff;
}

.house-ad-slot {
  display: contents;
}
