/* Blue Ledger: mobile-first, system fonts only, no external assets. */
:root {
  --deep: #0d3b4f;
  --tide: #14637a;
  --foam: #7fd1c7;
  --paper: #f7f9f8;
  --ink: #1c2a30;
  --muted: #546a72;
  --line: #d5e2e2;
  --card: #ffffff;
  --note: #eaf6f3;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 Charter, "Bitstream Charter", Cambria, Georgia, serif;
}
a { color: var(--tide); text-underline-offset: 2px; }
a:hover { color: var(--deep); }
img { max-width: 100%; height: auto; }

.masthead { background: var(--deep); color: #e8f3f1; }
.masthead__row { max-width: 46rem; margin: 0 auto; padding: 1rem 1.1rem 0.6rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #fff; text-decoration: none;
  font: 700 1.45rem/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.01em;
}
.wordmark__drop {
  width: 0.9rem; height: 0.9rem; background: var(--foam);
  border-radius: 0 50% 50% 50%; transform: rotate(45deg); display: inline-block;
}
.strapline { margin: 0.3rem 0 0; font: 0.88rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #b9d8d4; }
.topnav { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.topnav ul {
  list-style: none; margin: 0 auto; padding: 0 0.6rem; max-width: 46rem;
  display: flex; flex-wrap: wrap;
}
.topnav a {
  display: block; padding: 0.6rem 0.55rem; color: #dbeeea; text-decoration: none;
  font: 600 0.9rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.topnav a[aria-current], .topnav a.is-within { color: #fff; box-shadow: inset 0 -3px 0 var(--foam); }

.sheet { max-width: 46rem; margin: 0 auto; padding: 1rem 1.1rem 2.5rem; }
.trail { font: 0.85rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--muted); margin: 0.2rem 0 0.8rem; }
.trail a { color: var(--muted); }

.entry h1 {
  font: 700 1.75rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--deep); margin: 0.6rem 0 0.7rem; letter-spacing: -0.01em;
}
.entry h2 { font: 700 1.2rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--deep); margin: 1.9rem 0 0.5rem; }
.entry h3 { font: 700 1.02rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 1.3rem 0 0.4rem; }
.entry p, .entry ul, .entry ol, .entry dl { margin: 0 0 1rem; }
.entry li { margin-bottom: 0.35rem; }
.lede { font-size: 1.1rem; color: #2c3f46; }
.factbox {
  background: var(--note); border-left: 4px solid var(--foam);
  padding: 0.8rem 1rem; margin: 1.4rem 0; border-radius: 0 6px 6px 0;
}
.factbox p:last-child, .factbox ul:last-child { margin-bottom: 0; }
.factbox h2, .factbox h3 { margin-top: 0; }
.aside-note { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 2rem; }
dl.schedule dt { font: 700 0.95rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tide); margin-top: 0.9rem; }
dl.schedule dd { margin: 0.2rem 0 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--line); }
th { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--deep); background: #eef4f3; }

.rule {
  font: 700 0.82rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--tide);
  border-bottom: 2px solid var(--line); padding-bottom: 0.35rem; margin: 2.2rem 0 0.9rem;
}
.rule a { color: inherit; text-decoration: none; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.tile {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.8rem 0.9rem; text-decoration: none; color: var(--ink);
}
.tile:hover { border-color: var(--tide); }
.tile strong { display: block; font: 700 1rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--deep); }
.tile__blurb { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }
.tiles__tag {
  display: inline-block; font: 600 0.7rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--tide);
  background: var(--note); border-radius: 3px; padding: 0.25rem 0.4rem; margin-bottom: 0.35rem;
}
.tiles--compact .tile__blurb { display: none; }
.related { margin-top: 2.4rem; }
.related h2 { font: 700 1rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--deep); margin: 0 0 0.7rem; }

.colophon { background: #e6eeed; border-top: 1px solid var(--line); color: var(--muted); }
.colophon__row { max-width: 46rem; margin: 0 auto; padding: 1.3rem 1.1rem 2rem; font-size: 0.87rem; }
.colophon p { margin: 0 0 0.6rem; }

@media (min-width: 40rem) {
  body { font-size: 18px; }
  .entry h1 { font-size: 2.15rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles--compact { grid-template-columns: 1fr 1fr 1fr; }
  .sheet { padding-top: 1.6rem; }
}
