:root {
  --ink: #1c1917;
  --muted: #6a5e52;
  --clay: #e8d4b8;
  --clay-soft: #f3e6d4;
  --clay-wash: #f7efe4;
  --clay-header: #e2c9a8;
  --royal: #1a3f9c;
  --royal-deep: #0c2a6e;
  --page: #fffdf9;
  --card: #fffdf9;
  --line: #ddcbb3;
  --action: #1a3f9c;
  --action-hover: #0c2a6e;
  --page-pad-x: 1.25rem;
  /* Inset past the brand so body isn’t flush under “Jesus” */
  --content-indent: 2rem;
  /* Wider measure — text crosses more of the page */
  --content-max: 56rem;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  background-color: var(--page);
  line-height: 1.55;
}
a { color: var(--action); }
/*
  brand | nav
  title | ad  — title beside ad; body below is indented + wider (not flush under brand)
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand nav"
    "title ad";
  justify-content: space-between;
  align-items: start;
  column-gap: 1.5rem;
  row-gap: 0.55rem;
  padding: 0.75rem var(--page-pad-x) 0.85rem;
  background: var(--page);
  border-bottom: none;
}
.brand {
  grid-area: brand;
  align-self: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  width: max-content;
  max-width: 100%;
}
.page-heading {
  grid-area: title;
  margin: 0;
  padding: 0.1rem 0 0;
  padding-left: var(--content-indent);
  background: none;
  min-width: 0;
  max-width: var(--content-max);
}
.page-heading .eyebrow {
  margin: 0 0 0.35rem;
}
.page-heading h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.2;
}
.page-heading:empty {
  display: none;
}
.site-header-ad {
  grid-area: ad;
  width: 100%;
  min-width: 0;
  align-self: start;
}
.site-header-ad .ad-slot {
  display: block;
  width: 100%;
  margin: 0;
}
.site-header-ad .ad-frame {
  min-height: 2.75rem;
  height: auto;
}
.ad-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-frame {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.55rem 0.75rem;
  min-height: 2.75rem;
  width: 100%;
  box-sizing: border-box;
  background: var(--page);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.names-intro {
  margin-bottom: 1.35rem;
}
@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "title"
      "ad";
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}
.site-nav > a,
.nav-group-label {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.site-nav > a:hover,
.nav-group-label:hover { color: var(--ink); }
.nav-group {
  position: relative;
}
.nav-group-label::after {
  content: " ▾";
  font-size: 0.7em;
}
.nav-group-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 10.5rem;
  padding: 0.4rem 0;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  z-index: 40;
}
.nav-group:hover .nav-group-menu,
.nav-group:focus-within .nav-group-menu,
.nav-group.open .nav-group-menu {
  display: block;
}
.nav-group-menu a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-group-menu a:hover {
  background: #f5f5f4;
  color: var(--action);
}
/* Body: inset past brand, wide enough to cross the page toward the right */
.wrap {
  max-width: var(--content-max);
  margin: 0 var(--page-pad-x) 0 calc(var(--page-pad-x) + var(--content-indent));
  padding: 0.85rem 0 3.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.wrap-wide {
  max-width: min(72rem, 100%);
  margin: 0 var(--page-pad-x) 0 calc(var(--page-pad-x) + var(--content-indent));
  padding: 0.85rem 0 3.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 720px) {
  .page-heading {
    padding-left: 0;
  }
  .wrap,
  .wrap-wide {
    margin-left: var(--page-pad-x);
    margin-right: var(--page-pad-x);
    max-width: none;
  }
}
.page-title-block {
  margin: 0 0 1.25rem;
  padding: 0;
  background: none;
  border-radius: 0;
}
.site-footer {
  border-top: none;
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  background: var(--page);
}
.hero h1, h1 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.page-home .hero {
  padding: 1.5rem 0 0.5rem;
}
.page-home .hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
}
.lede-strong {
  color: var(--ink);
  font-size: 1.12rem;
  max-width: 38rem;
}
.page-home .lede {
  max-width: 38rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.lede { font-size: 1.1rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
}
.btn.primary {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.btn.primary:hover { background: var(--action-hover); }
.grid-2 {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.grid-2 article, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.1rem 1.2rem;
}
.post-list, .path-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.post-list li, .path-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list a, .path-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.sub { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.empty { color: var(--muted); }
.shelf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}
.shelf-filters a {
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}
.shelf-filters a.on {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.body {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}
.body p { margin: 0 0 1rem; }
/* Visible scripture quotes (CSS-drawn so they always show) */
q.scripture {
  quotes: none;
  font-style: normal;
  color: inherit;
}
q.scripture::before,
q.scripture::after {
  color: var(--royal);
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15em;
  line-height: 0;
}
q.scripture::before { content: "\201C"; margin-right: 0.06em; }
q.scripture::after { content: "\201D"; margin-left: 0.06em; }
.body h2, .body h3 {
  font-family: var(--serif);
  margin: 1.75rem 0 0.6rem;
}
.plain {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 1.02rem;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.field {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font: inherit;
  background: var(--page);
}
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.help { color: var(--muted); font-size: 0.88rem; margin: 0.35rem 0 0; }
.err { color: #b91c1c; font-size: 0.9rem; margin: 0.25rem 0 0; }
.flash {
  list-style: none;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.4rem;
}
.search-form { display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.name-group {
  margin-top: 2.25rem;
}
.name-group h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.name-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--page);
}
.name-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.name-table th,
.name-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.name-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  background: var(--page);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.name-table tr:last-child td { border-bottom: none; }
.name-en {
  font-weight: 700;
  color: var(--ink);
  min-width: 7.5rem;
}
.name-orig {
  min-width: 11rem;
}
.orig-main {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}
.orig-lang,
.orig-from {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.name-refs {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 7rem;
}
.name-helps {
  font-weight: 600;
  color: var(--ink);
  min-width: 12rem;
  line-height: 1.4;
}
.names-footnote {
  margin-top: 2rem;
  max-width: 40rem;
}
@media (min-width: 720px) {
  .page-home .grid-2 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
