/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #f6f4ef;
  color: #222;
}

/* Layout wrapper */
.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: #111;
  color: #f8f5ec;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 3px solid #c49b5a;
}

.site-title {
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-subtitle {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Navigation */
.site-nav {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #f8f5ec;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.site-nav a:hover {
  border-color: #f8f5ec;
}

/* Sections (generic + Living Line sections) */
.section,
.ll-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #ddd0b8;
}

.section:last-of-type,
.ll-section:last-of-type {
  border-bottom: none;
}

.section h2,
.ll-section h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  color: #1a1309;
}

.section p,
.ll-section p {
  margin-bottom: 0.8rem;
  font-size: 0.98rem;
}

/* Highlighted lead paragraph */
.highlight {
  font-size: 1.02rem;
  border-left: 3px solid #c49b5a;
  padding-left: 0.75rem;
  margin: 0.8rem 0;
}

/* Generic note text */
.note {
  font-size: 0.88rem;
  color: #555;
}

/* Card list (for surname lines, etc.) */
.card-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0;
}

.card {
  background: #fffaf1;
  border: 1px solid #e0d3b4;
  padding: 1rem;
  border-radius: 4px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Download links */
.download a {
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #8b6a33;
  padding-bottom: 0.05rem;
  color: #5a3b11;
}

.download a:hover {
  color: #2a1a08;
}

/* Quote block */
.quote {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.95rem;
  border-left: 3px solid #333;
  padding-left: 0.75rem;
}

/* Map placeholder */
.map-placeholder {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px dashed #bda883;
  background: #fffdf7;
  text-align: center;
  font-size: 0.9rem;
  color: #66573a;
}

/* Footer */
.site-footer {
  background: #111;
  color: #eee0c5;
  padding: 1.5rem 0 2rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.site-footer .small {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* --- Living Line specific helpers --- */

/* Small uppercase kicker line under headings */
.ll-kicker {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7a6440;
  margin-bottom: 0.75rem;
}

/* Archival-style note text in Living Line sections */
.ll-note {
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.75rem;
}

/* Button style (for email submit, etc.) */
.ll-button {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.45rem 0.9rem;
  background: #1a1309;
  color: #f8f5ec;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ll-button:hover {
  background: #2a1a08;
}

/* Collapsible surname blocks (details/summary) */
.ll-surname-block {
  margin-bottom: 1rem;
  border: 1px solid #e0d3b4;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  background: #fffaf1;
}

.ll-surname-block summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #2a1a08;
}

/* Hide default triangle marker in some browsers */
.ll-surname-block summary::-webkit-details-marker {
  display: none;
}

/* Custom expand/collapse marker */
.ll-surname-block summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

.ll-surname-block[open] summary::before {
  content: "▾";
}

/* Inner content of surname block */
.ll-surname-content {
  margin-top: 0.6rem;
  padding-left: 0.2rem;
  font-size: 0.94rem;
  line-height: 1.45;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .site-header {
    text-align: left;
  }

  .site-nav {
    flex-direction: row;
    row-gap: 0.3rem;
  }

  .site-title {
    font-size: 1.5rem;
  }
}
.district-caption {
  margin-top: 0.75rem;
  text-align: left;
}
/* Master Ledger table */
.ledger-preview {
  margin-top: 1.5rem;
}

.ledger-preview h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #1a1309;
}

.ledger-scroll {
  margin-top: 0.6rem;
  border: 1px solid #e0d3b4;
  border-radius: 4px;
  background: #fffdf7;
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ledger-table thead {
  background: #fffaf1;
}

.ledger-table th,
.ledger-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e0d3b4;
  vertical-align: top;
  text-align: left;
}

.ledger-table th {
  font-weight: 600;
  color: #2a1a08;
  white-space: nowrap;
}

.ledger-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .ledger-table {
    font-size: 0.85rem;
  }
}
/* Living Line logo in header */
.ll-logo {
  max-width: 220px;
  display: block;
  margin-bottom: 0.75rem;
}

/* Living Line seal in footer */
.ll-footer-seal {
  max-width: 160px;
  display: block;
  margin: 0 auto 0.75rem;
}
.about-seal {
  display:block;
  width:90px;
  margin:0 auto 20px auto;
  opacity:0.95;
}