:root {
  --navy: #142033;
  --navy-2: #1c2d45;
  --copper: #c45c26;
  --copper-2: #a84b1c;
  --cream: #f6f1ea;
  --paper: #fffdf9;
  --gold: #d4a017;
  --text: #243044;
  --muted: #5b6575;
  --line: #e6ddd2;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-2); }
a:hover { color: var(--copper); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.92rem;
}
.topbar-inner, .nav-inner, .wrap, .footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.topbar-inner {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 1px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 210px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; }
.brand-text span { font-size: 0.78rem; color: var(--muted); }

.menu-toggle {
  display: none;
  background: var(--navy); color: #fff; border: 0; padding: 8px 12px; border-radius: 6px;
}
.nav-menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-menu a {
  text-decoration: none; color: var(--navy); font-weight: 650; padding: 8px 10px; display: block;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--copper); }
.header-cta {
  background: var(--copper); color: #fff !important; border-radius: 8px; padding: 10px 14px !important;
  white-space: nowrap;
}
.header-cta:hover { background: var(--copper-2); color: #fff !important; }

.hero {
  background: var(--navy) center/cover no-repeat;
  color: #fff;
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,22,36,.88) 0%, rgba(14,22,36,.45) 55%, rgba(14,22,36,.2) 100%);
}
.hero-inner { position: relative; padding: 64px 0 48px; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin: 0 0 12px; max-width: 16ch; }
.hero p { max-width: 62ch; font-size: 1.12rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--copper); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 8px;
}
.btn:hover { background: var(--copper-2); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

.keyword-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.keyword-bar .wrap {
  display: flex; gap: 10px; overflow: auto; padding: 12px 0;
}
.chip {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
}
.chip .stars { font-size: 0.8rem; }

.section { padding: 56px 0; }
.section.alt { background: var(--cream); }
.section h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  color: var(--navy);
}
.lead { font-size: 1.12rem; max-width: 70ch; }

.grid-3, .grid-4, .grid-2 {
  display: grid; gap: 18px; margin-top: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card p { margin: 0 0 10px; color: var(--muted); }
.more { font-weight: 700; text-decoration: none; }

.see-also, .refs, .silo-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 28px 0;
}
.see-also h2, .refs h2, .silo-box h2, .box-title, .footer-title, .card-title {
  font-size: 1.15rem;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--navy);
}
.footer-title { color: #fff; }
.article-fig { margin: 24px 0; }
.article-fig img { width: 100%; max-height: 430px; object-fit: cover; border-radius: 12px; }
.article-fig figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.see-also ul, .refs ul, .silo-box ul { margin: 8px 0 0; padding-left: 18px; }
.wiki-nav {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.toc {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  height: fit-content;
  position: sticky; top: 90px;
}
.toc h2 { font-size: 0.95rem; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc a { text-decoration: none; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { color: var(--navy); }
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 36px 0;
  text-align: center;
}
.cta-band a { color: #fff; }
.phone-xl { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; display: block; margin: 8px 0 14px; text-decoration: none; }

.footer {
  background: var(--navy);
  color: #d7deea;
  padding: 40px 0 20px;
}
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer h3 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.copy { border-top: 1px solid #31415a; margin-top: 24px; padding-top: 14px; font-size: 0.88rem; }

.mobile-call {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  background: var(--copper); color: #fff; text-align: center;
  padding: 14px; border-radius: 12px; font-weight: 800; text-decoration: none;
  z-index: 50; box-shadow: var(--shadow);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }

@media (max-width: 900px) {
  .grid-4, .grid-3, .grid-2, .wiki-nav, .footer-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .menu-toggle { display: inline-block; }
  .nav-menu { display: none; width: 100%; flex-direction: column; }
  .nav-inner { flex-wrap: wrap; }
  .nav-menu.is-open { display: flex; }
  .mobile-call { display: block; }
  body { padding-bottom: 72px; }
  .brand img { width: 160px; }
}
