:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #1a1a1a;
  --text-muted: #5a5f6a;
  --border: #e2e4e9;
  --accent: #1d5fbf;
  --accent-bg: #eaf1fc;
  --banner-bg: #fff6e0;
  --banner-border: #e8c66a;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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;
  font-size: 17px;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

.banner {
  background: var(--banner-bg);
  border-bottom: 1px solid var(--banner-border);
  color: #4a3b00;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.banner a { color: #4a3b00; font-weight: 600; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.9rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}
h1 + p em:first-child,
h1 ~ p:first-of-type {
  color: var(--text-muted);
}
h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.6rem;
}

p { margin: 0 0 1rem; }

ul, ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}
li { margin-bottom: 0.45rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  min-width: 480px;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--bg-alt);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }

strong { font-weight: 700; }
em { font-style: italic; }

/* Intro disclosure line at the top of every article — first italic paragraph right after h1 */
.page > p:first-of-type {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.92rem;
  color: #1a3a63;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-inner a { color: var(--text-muted); }
.fineprint { margin-top: 0.5rem; font-size: 0.78rem; }

/* Homepage article-card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
}
.card:hover { border-color: var(--accent); }
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
}
.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.55rem; }
  .page { padding: 1.5rem 1rem 2.5rem; }
}

