/* Mobile-first stylesheet. System fonts only. */
:root {
  --bg: #f7f5ef;
  --text: #1b2733;
  --heading: #0d2a45;
  --muted: #4e5d6b;
  --link: #0b5c8a;
  --link-hover: #073c5c;
  --focus: #e8b04a;
  --accent: #c8402f;
  --panel: #e8eef1;
  --card: #fffdf8;
  --border: #d2d9dc;
  --border-strong: #7d8c96;
  --header-bg: #0d2a45;
  --header-text: #f4f1e8;
  --footer-bg: #0a2135;
  --footer-text: #dfe6ea;
  --footer-link: #a9d6f0;
  --footer-rule: #24415c;
  --button: #0d2a45;
  --button-text: #f4f1e8;
  --radius: 6px;
  --maxw: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; line-height: 1.2; color: var(--heading); }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); margin: 2em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 0.4em; }
p, ul, ol, table { margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--focus); color: #000; padding: 0.6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header { background: var(--header-bg); color: var(--header-text); }
.header-inner { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--header-text); text-decoration: none; font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-weight: 700; font-size: 1.15rem; }
.logo:hover { color: var(--header-text); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--header-text); text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--header-text); }

/* Main */
main { padding-top: 1.2rem; padding-bottom: 3rem; }
.content { max-width: 46rem; }
.page-home .content { max-width: none; }
.page-home .content > p, .page-home .content > ul, .page-home .faq { max-width: 46rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 1rem 0 0; }
.updated { color: var(--muted); font-size: 0.9rem; }
.lead { font-size: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 0.5rem; font-size: 0.88rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.5rem; }
.answer { background: var(--panel); border-left: 4px solid var(--accent); padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note { background: var(--panel); padding: 0.9rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--border); }
.table-wrap { overflow-x: auto; margin-bottom: 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
th { background: var(--panel); color: var(--heading); }
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: 0; list-style: none; margin: 1rem 0 2rem; }
.cards li { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.cards h3 { margin-top: 0; }
.cards a { font-weight: 700; }
.cards p { margin: 0; color: var(--text); }
.faq-item { border-bottom: 1px solid var(--border); padding: 0.4rem 0; }
.faq-item summary { cursor: pointer; list-style-position: outside; }
.faq-item summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq-a { padding: 0.4rem 0 0.2rem; }
.faq-a p:last-child { margin-bottom: 0.4rem; }
.related { max-width: 46rem; margin-top: 2.5rem; padding: 1.2rem 1.3rem; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border); }
.related h2 { margin-top: 0; font-size: 1.25rem; }
.related ul { margin: 0; padding-left: 1.1rem; }
.related span { display: block; color: var(--muted); font-size: 0.92rem; }
.disclaimer { font-size: 0.9rem; }
.disclaimer-box { font-size: 0.95rem; background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0.8rem 1rem; }
form { display: grid; gap: 0.9rem; max-width: 32rem; }
label { font-weight: 600; display: block; margin-bottom: 0.25rem; }
input, textarea { width: 100%; font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card); color: var(--text); }
button { font: inherit; font-weight: 700; padding: 0.7rem 1.3rem; border: 0; border-radius: var(--radius); background: var(--button); color: var(--button-text); cursor: pointer; justify-self: start; }
button:hover { filter: brightness(1.1); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2rem 0 1rem; font-size: 0.95rem; }
.site-footer a { color: var(--footer-link); }
.footer-inner { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.footer-brand { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.3rem; }
.site-footer h2 { font-size: 1rem; margin: 0 0 0.5rem; color: var(--footer-text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.copyright { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--footer-rule); font-size: 0.85rem; }

@media (min-width: 48rem) {
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-nav ul { justify-content: flex-end; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 70rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Personality: chart-room navy, signal red, and a wave line under the masthead */
body { font-size: 1.1rem; }
.site-nav a, .breadcrumbs, .kicker, th, button, label, .updated { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.site-header { position: relative; padding-bottom: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5' fill='none' stroke='%23a9d6f0' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: bottom; }
h1 { font-weight: 700; }
h2 { font-weight: 700; padding-left: 0.7rem; border-left: 5px solid var(--accent); }
.related h2, .site-footer h2 { border-left: 0; padding-left: 0; }
.page-home .hero { margin: 0 0 2rem; padding: 2rem 1.3rem; color: #f4f1e8; border-radius: 4px;
  background: linear-gradient(180deg, #0d2a45 0%, #133a5e 70%, #1f5580 100%); }
.page-home .hero h1, .page-home .hero p { color: #f4f1e8; max-width: 46rem; }
.page-home .hero h1 { margin-top: 0; }
.page-home .hero .kicker { color: #a9d6f0; }
.cards li { border: 1px solid var(--border); border-top: 4px solid #0d2a45; }
.answer { border-left-color: #0b5c8a; background: #eaf3f8; }
.note { border-left: 4px solid var(--accent); }
@media (min-width: 48rem) { .page-home .hero { padding: 2.8rem 2.6rem; } }
