/* ============================================================
   The Plaskett Family — "Coastal Heritage Album"
   Cream & sepia, deep brown ink, serif display, photo-forward.
   ============================================================ */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('/static/fonts/playfair.woff2') format('woff2');
}
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/static/fonts/ebgaramond.woff2') format('woff2');
}
@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/ebgaramond-italic.woff2') format('woff2');
}

:root {
    --cream: #faf6ef;
    --cream-deep: #f3ecdd;
    --ink: #2f2417;
    --ink-soft: #5a4a37;
    --sepia: #8b5e3c;
    --sepia-light: #b98d64;
    --rule: #d9cdb8;
    --paper-shadow: 0 1px 3px rgba(47, 36, 23, 0.12), 0 8px 24px rgba(47, 36, 23, 0.08);
    --display: 'Playfair Display', Georgia, serif;
    --body: 'EB Garamond', Georgia, serif;
}

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

html { font-size: 19px; }

body {
    font-family: var(--body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--sepia); text-decoration-color: var(--sepia-light); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* ---------- header ---------- */

.site-header {
    text-align: center;
    padding: 2.2rem 1rem 0;
    border-bottom: 3px double var(--rule);
    background: var(--cream);
}

.site-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
}
.site-title:hover { color: var(--sepia); }

.site-tagline {
    font-style: italic;
    color: var(--ink-soft);
    margin: 0.2rem 0 1.2rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.6rem;
    padding-bottom: 0.9rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--sepia); }

/* ---------- hero ---------- */

.hero {
    position: relative;
    max-height: 62vh;
    overflow: hidden;
}
.hero img {
    width: 100%;
    height: 62vh;
    object-fit: cover;
    filter: sepia(0.22) saturate(0.92);
}
/* The film hero: show the WHOLE frame, full page width, no cropping.
   The wide cut is 2222x1280 (~1.74:1); height follows naturally. */
.hero-film { max-height: none; }
.hero-video {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    background: #1e160c;
}
.hero-video-portrait {
    aspect-ratio: 720 / 1280;
    max-height: 82vh;
    object-fit: cover;
}
.hero-film-credit { margin-top: 0.5rem; }
.hero-film-credit a {
    font-size: 0.85rem;
    font-style: italic;
    color: #e8d9b8;
    text-decoration: none;
    border-bottom: 1px dotted rgba(232, 217, 184, 0.6);
}
.hero-film-credit a:hover { color: #fff; }
.hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 4rem 1.5rem 2.2rem;
    background: linear-gradient(transparent, rgba(30, 22, 12, 0.72));
    text-align: center;
}
.hero-overlay h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: #f7f1e4;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.hero-overlay p {
    color: #eadfca;
    font-style: italic;
    margin-top: 0.3rem;
}

/* ---------- layout ---------- */

.container {
    max-width: 46rem;
    margin: 0 auto;
    padding: 0 1.2rem;
}
.container-wide {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.section-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.8rem 0 1.4rem;
    color: var(--sepia);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}
.section-rule::before, .section-rule::after {
    content: "";
    height: 1px;
    background: var(--rule);
    flex: 1;
}

/* ---------- story cards ---------- */

.featured-story {
    background: #fffdf8;
    border: 1px solid var(--rule);
    box-shadow: var(--paper-shadow);
    padding: 2rem 2.2rem;
    margin: 0 auto;
}
.featured-story h2, .story-card h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.25;
}
.featured-story h2 a, .story-card h3 a { color: var(--ink); text-decoration: none; }
.featured-story h2 a:hover, .story-card h3 a:hover { color: var(--sepia); }

.byline {
    font-style: italic;
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0.3rem 0 0.8rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1.4rem;
}
.story-card {
    background: #fffdf8;
    border: 1px solid var(--rule);
    box-shadow: var(--paper-shadow);
    padding: 1.3rem 1.5rem;
}
.story-card .category {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sepia);
}

/* ---------- prose (story bodies) ---------- */

.prose { font-size: 1.08rem; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--display); margin: 1.6em 0 0.5em; }
.prose blockquote {
    font-style: italic;
    font-size: 1.15em;
    color: var(--ink-soft);
    border-left: 3px solid var(--sepia-light);
    padding-left: 1.2rem;
    margin: 1.6em 0;
}
.prose img { box-shadow: var(--paper-shadow); margin: 1.5em auto; }

/* ---------- footer ---------- */

.site-footer {
    margin-top: 4rem;
    border-top: 3px double var(--rule);
    background: var(--cream-deep);
    text-align: center;
    padding: 2.2rem 1rem 2.6rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.footer-name {
    font-family: var(--display);
    font-weight: 600;
    color: var(--ink);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}
.footer-links { margin-top: 0.6rem; }

/* ---------- misc ---------- */

.stats-line {
    text-align: center;
    font-style: italic;
    color: var(--ink-soft);
    margin: 2rem 0 0.5rem;
}

.coming-soon {
    text-align: center;
    padding: 3rem 1rem;
}
.coming-soon h2 { font-family: var(--display); font-weight: 600; margin-bottom: 0.6rem; }

@media (max-width: 640px) {
    html { font-size: 17px; }
    .site-title { font-size: 1.9rem; }
    .featured-story { padding: 1.4rem 1.2rem; }
}

/* --- P3: stories, writings, search --- */
.page-title {
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 2.2rem 0 0.6rem;
}
.page-intro {
    color: var(--ink-soft);
    font-size: 1.08rem;
    max-width: 46em;
    margin-bottom: 1.8rem;
}
.filter-bar { margin: 0 0 1.6rem; }
.filter-bar a {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
    padding: 0.2rem 0.8rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: capitalize;
}
.filter-bar a.active, .filter-bar a:hover {
    background: var(--sepia);
    border-color: var(--sepia);
    color: #fff;
}
.pager {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: baseline;
    margin: 2.2rem 0;
    color: var(--ink-soft);
}

.story { margin-top: 2.4rem; }
.story-header .category a {
    color: var(--sepia);
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}
.story-header h1 {
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0.3rem 0 0.5rem;
}
.story-header .dek {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ink-soft);
    margin: 0.4rem 0 0;
}
.story-hero { margin: 1.8rem 0; }
.story-hero img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--paper-shadow);
    filter: sepia(0.08);
}
.story-hero figcaption, .photo-gallery figcaption {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-top: 0.5rem;
    font-style: italic;
}
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
    margin: 1.4rem 0 2rem;
}
.photo-gallery figure { margin: 0; }
.photo-gallery img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--paper-shadow);
    filter: sepia(0.08);
}
.story-footer {
    border-top: 1px solid var(--rule);
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.story-footer a { color: var(--sepia); }

.writings-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.writings-list li {
    padding: 0.55rem 0;
    border-bottom: 1px dotted var(--rule);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}
.writings-list a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.12rem;
}
.writings-list a:hover { color: var(--sepia); }
.writings-date { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }

.search-form { display: flex; gap: 0.6rem; margin: 0 0 1.8rem; }
.search-form input[type=search] {
    flex: 1;
    font: inherit;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
}
.search-form button {
    font: inherit;
    padding: 0.55rem 1.3rem;
    border: none;
    border-radius: 4px;
    background: var(--sepia);
    color: #fff;
    cursor: pointer;
}
.search-count { color: var(--ink-soft); margin-bottom: 1.4rem; }
.search-result { margin-bottom: 1.8rem; }
.search-result h3 { font-family: var(--display); font-size: 1.25rem; margin: 0.15rem 0; }
.search-result h3 a { color: var(--ink); text-decoration: none; }
.search-result h3 a:hover { color: var(--sepia); }
.search-result .snippet { color: var(--ink-soft); }
.search-result mark {
    background: #f3e3bf;
    color: var(--ink);
    padding: 0 0.15em;
    border-radius: 2px;
}
.coming-soon-inline { color: var(--ink-soft); font-style: italic; }

/* --- P4: people, places, tree, mines --- */
.surname-cloud a .count {
    opacity: 0.65;
    font-size: 0.8em;
    margin-left: 0.15em;
}
.people-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    columns: 2;
    column-gap: 3rem;
}
@media (max-width: 640px) { .people-list { columns: 1; } }
.people-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dotted var(--rule);
    break-inside: avoid;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: baseline;
}
.people-list a { color: var(--ink); text-decoration: none; }
.people-list a:hover { color: var(--sepia); }
.lifespan { color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }
.descendant-line { color: var(--ink-soft); margin-top: 0.4rem; }
.descendant-line a { color: var(--sepia); }
.family-block p, .ancestry-block p { margin: 0.4rem 0; }
.family-block a, .ancestry-block a { color: var(--sepia); text-decoration: none; }
.family-block a:hover, .ancestry-block a:hover { text-decoration: underline; }
.gen-label { font-weight: 600; }
.events-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.events-list li {
    padding: 0.45rem 0;
    border-bottom: 1px dotted var(--rule);
    color: var(--ink-soft);
}
.events-list a { color: var(--sepia); }
.event-type {
    display: inline-block;
    min-width: 6.5em;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    color: var(--ink);
}
.map-box {
    height: 340px;
    border-radius: 4px;
    box-shadow: var(--paper-shadow);
    margin: 1.4rem 0 2rem;
    z-index: 0;
}
.map-tall { height: 440px; }
.tree-box {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    box-shadow: var(--paper-shadow);
    margin: 1rem 0 2.5rem;
    overflow: hidden;
}

/* --- P5: living photos, album, films --- */
.live-photo { position: relative; cursor: pointer; }
.live-photo video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.live-photo.playing video { opacity: 1; }
.live-badge, .live-badge-inline {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.15em 0.5em;
    border-radius: 999px;
    background: rgba(250, 246, 239, 0.92);
    color: var(--sepia);
    border: 1px solid var(--sepia);
}
.live-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
}
.live-photo.playing .live-badge { opacity: 0; }
.section-rule .rule-link {
    color: inherit;
    text-decoration: none;
}
.section-rule .rule-link:hover { color: var(--sepia); }
.feature-video {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--paper-shadow);
    margin: 1.4rem 0 2.4rem;
    background: #000;
}

/* --- maps: legend dots --- */
.map-legend { color: var(--ink-soft); font-size: 0.88rem; margin: 0.4rem 0 0; }
.map-legend .dot {
    display: inline-block;
    width: 0.75em; height: 0.75em;
    border-radius: 50%;
    margin: 0 0.3em 0 1em;
    vertical-align: baseline;
}
.map-legend .dot:first-child { margin-left: 0; }
.dot-born  { background: #6f9c58; border: 1px solid #4a6b3a; }
.dot-event { background: #a5825f; border: 1px solid #7a5c3e; }
.dot-land  { background: #c9a94e; border: 1px solid #8a6d1a; }
.dot-died  { background: #8a7460; border: 1px solid #5a4632; }

/* --- rotating home --- */
.home-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin: 1.6rem 0;
}
@media (max-width: 700px) { .home-duo { grid-template-columns: 1fr; } }
.home-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: var(--paper-shadow);
    padding: 1.2rem 1.5rem;
}
.home-card .category { color: var(--sepia); font-size: 0.8rem;
    letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.4rem; }
.home-card h3 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 0.4rem; }
.home-card h3 a { color: var(--ink); text-decoration: none; }
.home-card h3 a:hover { color: var(--sepia); }
.home-card h3 small { color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; }
.home-photo { max-width: 700px; margin: 0 auto 1.5rem; }
.home-photo-link { text-align: center; font-size: 0.95rem; }

/* --- driving tour --- */
.map-tour { height: 560px; }
.tour-title { font-family: var(--display); font-size: 1.45rem; margin: 0 0 0.5rem; }
.tour-intro p { color: var(--ink-soft); max-width: 48em; }
.tour-marker span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #7a5c3e;
    color: #fff;
    font: 700 12px/1 Georgia, serif;
    border: 2px solid #faf6ef;
    box-shadow: 0 1px 4px rgba(60,40,20,0.4);
}
.tour-stops {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    counter-reset: none;
}
.tour-stops li {
    border-bottom: 1px solid var(--rule);
    padding: 1.1rem 0;
}
.tour-stops h3 {
    font-family: var(--display);
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.stop-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7em; height: 1.7em;
    border-radius: 50%;
    background: #7a5c3e;
    color: #fff;
    font-size: 0.75em;
}
.tour-mabel {
    font-style: italic;
    color: var(--ink-soft);
    border-left: 3px solid var(--rule);
    padding-left: 1rem;
    margin: 0.3rem 0 0.5rem;
}
.tour-today { margin: 0; }
.tour-today strong { color: var(--sepia); }

/* --- drive guide upgrade --- */
.tour-download { margin: 1rem 0 0.4rem; display: flex; align-items: center;
                 gap: 0.9rem; flex-wrap: wrap; }
.tour-download span { color: var(--ink-soft); font-size: 0.9rem; max-width: 28em; }
.btn-download {
    display: inline-block;
    background: var(--sepia);
    color: #fff !important;
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.05rem;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    box-shadow: var(--paper-shadow);
}
.btn-download:hover { background: #63482f; }
.tour-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: var(--paper-shadow);
    padding: 1rem 1.3rem;
    margin: 1.2rem 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.tour-facts strong {
    display: block;
    font-family: var(--display);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sepia);
    margin-bottom: 0.2rem;
}
.tour-stop-card { display: flex; gap: 1.6rem; align-items: flex-start; }
.tour-stop-text { flex: 1; }
.tour-stop-photo {
    flex: 0 0 300px;
    margin: 0.3rem 0 0;
}
.tour-stop-photo img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--paper-shadow);
    filter: sepia(0.06);
}
.tour-stop-photo figcaption {
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 0.35rem;
}
@media (max-width: 700px) {
    .tour-stop-card { flex-direction: column; }
    .tour-stop-photo { flex: none; width: 100%; }
}

/* --- person profile header with portrait --- */
.person-header.has-portrait {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}
.person-header-text { flex: 1; }
.person-portrait {
    flex: 0 0 240px;
    margin: 0.4rem 0 0;
}
.person-portrait img {
    width: 100%;
    border-radius: 6px;
    box-shadow: var(--paper-shadow);
    filter: sepia(0.12);
    border: 6px solid #fff;
}
.person-portrait figcaption {
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 0.45rem;
}
.more-writings { text-align: right; margin: -0.4rem 0 1.2rem; }
.more-writings a { color: var(--sepia); }
@media (max-width: 700px) {
    .person-header.has-portrait { flex-direction: column-reverse; }
    .person-portrait { flex: none; max-width: 260px; }
}

/* --- album table of contents --- */
.album-toc {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: var(--paper-shadow);
    padding: 1rem 1.4rem;
    margin: 0 0 1.6rem;
}
.album-toc-title {
    font-family: var(--display);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sepia);
    margin: 0 0 0.5rem;
}
.album-toc ul { list-style: none; margin: 0; padding: 0;
    columns: 2; column-gap: 2.5rem; }
@media (max-width: 640px) { .album-toc ul { columns: 1; } }
.album-toc li { padding: 0.28rem 0; border-bottom: 1px dotted var(--rule);
    display: flex; justify-content: space-between; gap: 0.8rem; break-inside: avoid; }
.album-toc a { color: var(--ink); text-decoration: none; }
.album-toc a:hover { color: var(--sepia); }
.album-toc .count { color: var(--ink-soft); font-size: 0.85rem; }
.section-rule[id] { scroll-margin-top: 1.5rem; }

/* --- lightbox --- */
#lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(30, 24, 16, 0.94);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2.5rem 1rem 1rem;
}
#lightbox[hidden] { display: none; }
#lightbox-scroll {
    max-width: 96vw; max-height: 84vh;
    overflow: auto;
    display: flex; align-items: center;
}
#lightbox-img {
    max-width: 94vw; max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: zoom-in;
}
#lightbox.zoomed #lightbox-img {
    max-width: none; max-height: none;
    height: 80vh; width: auto;
    cursor: zoom-out;
}
#lightbox-caption {
    color: #e8ddc9; font-style: italic;
    font-size: 0.95rem; margin: 0.8rem 0 0;
    max-width: 60em; text-align: center;
}
#lightbox-close {
    position: absolute; top: 0.7rem; right: 1.1rem;
    background: none; border: none; color: #e8ddc9;
    font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.photo-gallery figure.clickable img, .story-hero figure.clickable img,
.tour-stop-photo.clickable img, .home-photo figure.clickable img { cursor: zoom-in; }
.expand-btn {
    position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 3;
    background: rgba(250, 246, 239, 0.92);
    border: 1px solid var(--sepia); color: var(--sepia);
    border-radius: 4px; font-size: 1rem; line-height: 1;
    padding: 0.25rem 0.45rem; cursor: pointer;
}

/* --- writings list with teasers --- */
.writings-entry { flex: 1; }
.writings-dek {
    margin: 0.15rem 0 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
    font-family: Georgia, serif;
}
.writings-list li { align-items: flex-start; }

/* --- the land ledger --- */
.land-ledger { list-style: none; padding: 0; margin: 0 0 2rem; }
.land-ledger li {
    display: flex;
    gap: 1.2rem;
    padding: 0.9rem 0;
    border-bottom: 1px dotted var(--rule);
}
.land-year {
    flex: 0 0 3.6em;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sepia);
}
.land-body { flex: 1; }
.land-head { margin: 0 0 0.2rem; }
.land-type {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #efe5d2;
    color: var(--sepia);
    margin-right: 0.4rem;
}
.land-type-homestead, .land-type-accumulation { background: #e2ecdb; color: #4a6b3a; }
.land-type-mining_claim, .land-type-mining_deed { background: #f3e8c8; color: #8a6d1a; }
.land-desc { margin: 0 0 0.25rem; color: var(--ink-soft); font-size: 0.95rem; }
.land-meta { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.land-meta a { color: var(--sepia); }
.poem-card .poem-context {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.45rem;
    border-top: 1px dotted var(--rule);
    padding-top: 0.45rem;
}

/* --- story illustrations --- */
.story-illustration { margin: 1.6rem 0; }
.story-illustration img {
    width: 100%;
    border-radius: 6px;
    box-shadow: var(--paper-shadow);
    border: 8px solid #fff;
}

/* --- poem keepsake layout (v2: quiet, book-like) --- */
.poem-frame {
    max-width: 38em;
    margin: 2rem auto 2.5rem;
}
.poem-sheet {
    position: relative;
    background: #fffdf6;
    border: 1px solid #d8ccb8;
    box-shadow: var(--paper-shadow);
    padding: 10px;
}
.poem-inner {
    position: relative;
    border: 1px solid #e4dac6;
    padding: 2.2rem 1.6rem 2rem;
    text-align: center;
}
/* corner brackets: pure CSS, 20px, can never be the wrong size */
.poem-sheet::before, .poem-sheet::after,
.poem-inner::before, .poem-inner::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    border-color: #b09468;
    border-style: solid;
    border-width: 0;
}
.poem-sheet::before { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.poem-sheet::after  { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.poem-inner::before { bottom: 6px; left: 6px; border-bottom-width: 2px; border-left-width: 2px; }
.poem-inner::after  { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; }
.poem-divider {
    width: 140px; height: 18px;
    display: block;
    margin: 0.2rem auto;
    opacity: 0.9;
}
.poem-title {
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0.9rem 0 0.1rem;
    color: var(--ink);
}
.poem-byline {
    font-style: italic;
    color: var(--ink-soft);
    margin: 0 0 1.7rem;
    font-size: 0.92rem;
}
.stanza {
    font-family: var(--italic, Georgia), serif;
    font-style: italic;
    font-size: 1.12rem;
    line-height: 1.8;
    color: #4a3c2a;
    margin: 0 0 1.4rem;
}
.stanza:last-of-type { margin-bottom: 1.7rem; }
@media (max-width: 640px) {
    .poem-inner { padding: 1.6rem 0.8rem 1.5rem; }
    .stanza { font-size: 1.03rem; }
}

/* --- story marks: small thematic icons --- */
.story-mark {
    width: 20px; height: 20px;
    color: var(--sepia);
    vertical-align: -4px;
    margin-right: 0.45rem;
    flex: none;
}
.story-mark.mark-detail { width: 28px; height: 28px; vertical-align: -8px; }
.story-mark.mark-inline { vertical-align: -4px; margin-right: 0.5rem; }
.story-mark.mark-poem {
    display: block;
    width: 26px; height: 26px;
    margin: 0 auto 0.5rem;
}

/* inline person links inside story prose */
.prose a.person-link {
    color: var(--sepia);
    text-decoration: none;
    border-bottom: 1px dotted #b09468;
}
.prose a.person-link:hover { border-bottom-style: solid; }

/* generated record summaries for people without written biographies */
.record-summary p { font-size: 1.06rem; }
.record-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--ink-soft);
    border-left: 3px solid var(--rule);
    padding-left: 1rem;
    margin-top: 1rem;
}

/* ---------- share buttons ---------- */
.share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.share-label { font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }
.share-btn {
    display: inline-block;
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid var(--rule);
    transition: background 0.15s, color 0.15s;
}
.share-fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-fb:hover { background: #145dc0; color: #fff; }
.share-copy { background: var(--cream-deep); color: var(--ink-soft); }
.share-copy:hover { background: var(--sepia); color: #fff; border-color: var(--sepia); }

/* ---------- Facebook follow ---------- */
.footer-follow { margin-top: 1rem; }
.fb-follow-btn {
    display: inline-block;
    padding: 0.5rem 1.3rem;
    background: #1877f2;
    color: #fff !important;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.fb-follow-btn:hover { background: #145dc0; }

/* ---------- people browse hint + results-first ---------- */
.browse-hint {
    background: var(--cream-deep);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 0.8rem 1.1rem;
    font-size: 0.98rem;
    color: var(--ink-soft);
    margin: 0 0 1.8rem;
}
.browse-hint a { white-space: nowrap; }
.browse-hint .count {
    background: var(--sepia); color: #fff; border-radius: 999px;
    padding: 0 0.4rem; font-size: 0.78rem;
}
.surname-results { margin-bottom: 1rem; }
.clear-filter { margin: 0.4rem 0 0; }
.clear-filter a { font-size: 0.9rem; font-style: italic; }

.footer-follow { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.fb-group-btn { background: #42638c; }
.fb-group-btn:hover { background: #2f4a6b; }

/* ---------- identify: filters + auto-descriptions ---------- */
.id-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0; }
.id-chip { padding: 0.3rem 0.9rem; border-radius: 999px; border: 1px solid var(--rule);
    background: #fff; color: var(--ink-soft); font: inherit; font-size: 0.85rem; cursor: pointer; text-transform: capitalize; }
.id-chip.active, .id-chip:hover { background: var(--sepia); color: #fff; border-color: var(--sepia); }
.id-desc { font-size: 0.92rem; color: var(--ink); margin: 0 0 0.2rem; }
.id-era { font-size: 0.8rem; color: var(--sepia); font-style: italic; margin: 0 0 0.5rem; }

/* ---------- copyright / legal notice ---------- */
.copyright-notice {
    max-width: 52rem;
    margin: 1.8rem auto 0;
    padding: 1.2rem 1.4rem;
    border-top: 1px solid var(--rule);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ink-soft);
    text-align: left;
}
.copyright-notice p { margin: 0 0 0.6rem; }
.copyright-line { text-align: center; font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.copyright-head {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--sepia);
    font-size: 0.72rem;
    text-align: center;
    margin-top: 0.4rem !important;
}
.copyright-warn {
    border: 1px solid var(--sepia-light);
    background: rgba(139, 94, 60, 0.06);
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    color: var(--ink);
}
.copyright-warn strong:first-child { color: #a3341f; letter-spacing: 0.05em; }

/* toned-down copyright notice */
.copyright-notice .copyright-fine { font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- place survey plat ---------- */
.place-plat { margin: 1rem 0 1.5rem; }
.place-plat .plat-img { width: 100%; max-width: 100%; border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--paper-shadow); cursor: zoom-in; background: #fff; }
.place-plat figcaption { font-style: italic; color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.4rem; text-align: center; }
.plat-pdf-link { display: inline-block; padding: 0.6rem 1.2rem; background: var(--cream-deep); border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; font-size: 1rem; }
.plat-pdf-link:hover { background: var(--sepia); color: #fff; }

/* ============================================================
   Los Burros Mining District Explorer
   ============================================================ */

.lb { padding-bottom: 2rem; }
.lb-kicker {
    font-family: var(--body);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sepia);
    margin-bottom: 0.3rem;
}
.lb-kicker a { color: var(--sepia); text-decoration: none; }
.lb-hero { text-align: center; margin: 0.4rem 0 1.2rem; }
.lb-hero .page-intro { text-align: left; }

/* ---- section sub-navigation ---- */
.lb-subnav {
    display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem;
    justify-content: center;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.7rem 0.5rem; margin: 1rem 0 1.8rem;
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.lb-subnav a { color: var(--ink-soft); text-decoration: none; padding: 0.15rem 0.1rem; }
.lb-subnav a:hover { color: var(--sepia); }
.lb-subnav a.active { color: var(--ink); border-bottom: 2px solid var(--sepia); }

/* ---- map + legend ---- */
.lb-map-section { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; margin-bottom: 1.6rem; }
.lb-map-legend {
    background: var(--cream-deep); border: 1px solid var(--rule);
    border-radius: 6px; padding: 1rem 1.1rem; font-size: 0.92rem;
}
.lb-map-legend h3 { font-family: var(--display); font-weight: 600; margin-bottom: 0.5rem; }
.lb-legend-note { color: var(--ink-soft); font-size: 0.86rem; margin: 0.5rem 0; }
.lb-legend-list { list-style: none; margin: 0.6rem 0; }
.lb-legend-list li { display: flex; align-items: center; gap: 0.5rem; margin: 0.35rem 0; }
.lb-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--cream); display: inline-block; flex: none; }
.lb-dot-settlement { background: #8b5e3c; }
.lb-dot-mine { background: #5a4a37; }
.lb-dot-ref { background: #b0392b; }
.lb-ring { width: 15px; height: 15px; border-radius: 50%; border: 1px dashed var(--sepia); background: rgba(139,94,60,0.10); display: inline-block; flex: none; }
@media (max-width: 720px) { .lb-map-section { grid-template-columns: 1fr; } }

.lb-pop { font-family: var(--body); max-width: 240px; }
.lb-pop-meta { font-size: 0.78rem; color: var(--sepia); text-transform: uppercase; letter-spacing: 0.05em; margin: 0.15rem 0 0.35rem; }
.lb-pop-warn { color: #b0392b; font-size: 0.82rem; margin-top: 0.3rem; }
.lb-pop-src { font-size: 0.76rem; color: var(--ink-soft); font-style: italic; margin-top: 0.35rem; }

/* ---- confidence badges ---- */
.conf-badge {
    display: inline-block; font-family: var(--body);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
    padding: 0.08rem 0.5rem; border-radius: 999px;
    border: 1px solid transparent; vertical-align: middle; white-space: nowrap;
}
.conf-verified   { background: #e4efe1; color: #3f6b3f; border-color: #bcd7b4; }
.conf-strong     { background: var(--cream-deep); color: var(--sepia); border-color: var(--rule); }
.conf-approx     { background: #f6ecd4; color: #9a6a1e; border-color: #e4cf9d; }
.conf-tradition  { background: #efe6f0; color: #7a4f83; border-color: #d9c6dc; }
.conf-disputed   { background: #f6ddd8; color: #b0392b; border-color: #e6b9af; }
.conf-unverified { background: #eceae4; color: #7a7266; border-color: #d6d1c6; }
.conf-field      { background: #dcecec; color: #3d6d6d; border-color: #b6d5d5; }
.conf-field-item { display: inline-flex; align-items: baseline; gap: 0.4rem; margin-right: 1rem; }
.conf-field .conf-field-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.lb-fact-row { margin: 0.8rem 0 1.2rem; }
.lb-fact-row .conf-field { margin-right: 1.4rem; }

/* ---- overview cards ---- */
.lb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.lb-card {
    display: block; text-decoration: none; color: inherit;
    background: var(--cream); border: 1px solid var(--rule); border-radius: 6px;
    padding: 1.1rem 1.2rem; box-shadow: var(--paper-shadow); transition: transform 0.12s ease;
}
.lb-card:hover { transform: translateY(-2px); color: inherit; }
.lb-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.4rem; }
.lb-card p { color: var(--ink-soft); font-size: 0.92rem; }
.lb-card-count { font-family: var(--body); font-size: 0.9rem; color: var(--sepia); background: var(--cream-deep); border-radius: 999px; padding: 0 0.5rem; margin-left: 0.3rem; }

/* ---- safety notice ---- */
.lb-safety { background: #f6ede2; border: 1px solid #e2cdb2; border-left: 4px solid var(--sepia); border-radius: 4px; padding: 1rem 1.2rem; margin: 1.6rem 0; }
.lb-safety h2 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5rem; }
.lb-safety ul { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; color: var(--ink-soft); }
.lb-safety li { margin: 0.3rem 0; }

/* ---- prose helpers ---- */
.lb-body { max-width: 42rem; }
.lb-body h2 { font-family: var(--display); font-weight: 600; margin: 1.6rem 0 0.5rem; }
.lb-lead { font-size: 1.08rem; }
.lb-note { background: var(--cream-deep); border-left: 3px solid var(--sepia-light); padding: 0.5rem 0.8rem; margin: 0.8rem 0; font-size: 0.92rem; color: var(--ink-soft); }
.lb-note.lb-warn, .lb-warn { border-left-color: #b0392b; color: #8a3226; }
.lb-facts { margin: 0.6rem 0 0.6rem 1.1rem; }
.lb-facts li { margin: 0.4rem 0; }
.lb-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.86rem; }
.lb-aliases { color: var(--ink-soft); font-style: italic; font-size: 0.9rem; margin-bottom: 0.6rem; }
.lb-mini-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--sepia); font-weight: 600; margin-right: 0.35rem; }
.lb-section-head { font-family: var(--display); font-weight: 600; margin: 2rem 0 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.3rem; }
.lb-related { margin-top: 1.8rem; color: var(--ink-soft); }
.entity-nolink { color: var(--ink); }

.lb-marker-quote { border-left: 4px solid var(--sepia); background: var(--cream-deep); padding: 0.9rem 1.2rem; margin: 1rem 0; font-style: italic; }
.lb-marker-quote cite { display: block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-soft); font-style: normal; }

/* ---- tables ---- */
.lb-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.lb-table th, .lb-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lb-table th { font-family: var(--body); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sepia); }
.lb-reuse { font-size: 0.84rem; color: var(--ink-soft); }

/* ---- source citations ---- */
.lb-sources { margin: 1.6rem 0; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.lb-sources-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sepia); font-weight: 600; }
.lb-sources ol { margin: 0.5rem 0 0 1.2rem; font-size: 0.88rem; color: var(--ink-soft); }
.lb-sources li { margin: 0.3rem 0; }
.src-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sepia-light); margin-left: 0.4rem; }

/* ---- mines catalog ---- */
.lb-filters { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1rem 0 0.4rem; }
.lb-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.lb-filter-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sepia); font-weight: 600; margin-right: 0.2rem; }
.lb-chip { font-family: var(--body); font-size: 0.82rem; background: var(--cream); border: 1px solid var(--rule); border-radius: 999px; padding: 0.12rem 0.7rem; cursor: pointer; color: var(--ink-soft); }
.lb-chip:hover { border-color: var(--sepia-light); }
.lb-chip.active { background: var(--sepia); color: var(--cream); border-color: var(--sepia); }
.lb-result-count { font-size: 0.82rem; color: var(--ink-soft); margin: 0.4rem 0 1rem; }
.lb-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.lb-mine-card { background: var(--cream); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.1rem; box-shadow: var(--paper-shadow); }
.lb-mine-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.4rem; }
.lb-mine-card h2 a { text-decoration: none; }
.lb-mine-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.3rem 0 0.5rem; }
.lb-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--cream-deep); color: var(--ink-soft); border-radius: 3px; padding: 0.08rem 0.45rem; }
.lb-tag-mineral { background: #f6ecd4; color: #9a6a1e; }
.lb-tag-status { font-weight: 600; }
.lb-status-abandoned { background: #eceae4; color: #7a7266; }
.lb-status-patented { background: #e4efe1; color: #3f6b3f; }
.lb-status-intermittent { background: #f6ecd4; color: #9a6a1e; }
.lb-status-lost { background: #f6ddd8; color: #b0392b; }
.lb-tag-link { text-decoration: none; }
.lb-tag-link:hover { background: var(--sepia); color: var(--cream); }
.lb-mine-disc { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.lb-mine-summary { font-size: 0.9rem; margin-bottom: 0.6rem; }
.lb-mine-foot { font-size: 0.8rem; }
.lb-empty { color: var(--ink-soft); font-style: italic; padding: 1rem 0; }

/* ---- mine detail ---- */
.lb-chain { list-style: none; margin: 0.5rem 0; }
.lb-chain li { padding: 0.4rem 0; border-bottom: 1px dotted var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.lb-chain-holder { font-weight: 600; }
.lb-chain-role { color: var(--ink-soft); font-style: italic; }
.lb-chain-date { color: var(--sepia); font-size: 0.86rem; }
.lb-people-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.4rem 0; }

/* ---- families & people ---- */
.lb-family-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.1rem; margin-bottom: 1.4rem; }
.lb-family-card { background: var(--cream); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem; box-shadow: var(--paper-shadow); }
.lb-family-card h2 { font-family: var(--display); font-weight: 600; }
.lb-family-members { font-size: 0.9rem; margin: 0.5rem 0; }
.lb-family-mines { font-size: 0.88rem; margin-top: 0.4rem; }
.lb-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.9rem; }
.lb-person-card { background: var(--cream); border: 1px solid var(--rule); border-radius: 6px; padding: 0.9rem 1rem; }
.lb-person-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.lb-person-occ { font-size: 0.8rem; color: var(--sepia); text-transform: uppercase; letter-spacing: 0.04em; margin: 0.15rem 0; }
.lb-person-role { font-size: 0.88rem; color: var(--ink-soft); margin: 0.35rem 0; }
.lb-person-mines { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0; }
.lb-person-foot { font-size: 0.82rem; display: flex; align-items: center; gap: 0.6rem; }
.lb-person-more { margin-left: auto; white-space: nowrap; }

/* ---- timeline ---- */
.lb-timeline { list-style: none; margin: 1rem 0; border-left: 2px solid var(--rule); padding-left: 0; }
.lb-tl-item { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.4rem 0 1rem 1.2rem; position: relative; }
.lb-tl-item::before { content: ""; position: absolute; left: -7px; top: 0.7rem; width: 11px; height: 11px; border-radius: 50%; background: var(--sepia); border: 2px solid var(--cream); }
.lb-tl-date { font-family: var(--display); font-weight: 600; color: var(--sepia); }
.lb-tl-body h2 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.3rem; }
.lb-tl-src { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; margin-top: 0.3rem; }
@media (max-width: 600px) { .lb-tl-item { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---- expedition ---- */
.lb-trip { border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.3rem; margin: 1.2rem 0; background: var(--cream); }
.lb-trip h2 { font-family: var(--display); font-weight: 600; }
.lb-trip-meta { font-size: 0.85rem; color: var(--sepia); margin-bottom: 0.5rem; }
.lb-trip-outcome { margin: 0.6rem 0; }
.lb-stops { list-style: none; margin: 0.5rem 0; }
.lb-stops li { padding: 0.35rem 0; border-bottom: 1px dotted var(--rule); }
.lb-stop-name { font-weight: 600; }
.lb-stop-photos { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: #3f6b3f; margin-left: 0.5rem; }
.lb-stop-pending { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9a6a1e; margin-left: 0.5rem; }
.lb-stop-note { display: block; font-size: 0.84rem; color: var(--ink-soft); }
.lb-honest { background: var(--cream-deep); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.lb-honest h2 { font-family: var(--display); font-weight: 600; margin-bottom: 0.4rem; }

/* ---- research notes ---- */
.lb-rq-item { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
.lb-rq-item h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.lb-rq-cat { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sepia); margin: 0.15rem 0 0.5rem; }
.lb-rq-status { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.05rem 0.45rem; border-radius: 999px; vertical-align: middle; }
.lb-rq-open { background: #f6ecd4; color: #9a6a1e; }
.lb-rq-in-progress { background: #dcecec; color: #3d6d6d; }
.lb-rq-resolved { background: #e4efe1; color: #3f6b3f; }

/* ---- historic-map overlay controls ---- */
.lb-overlay-controls { margin-top: 1rem; border-top: 1px solid var(--rule); padding-top: 0.7rem; }
.lb-overlay-controls h3 { font-family: var(--display); font-weight: 600; margin-bottom: 0.4rem; }
.lb-overlay { font-size: 0.86rem; }
.lb-overlay-toggle { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; cursor: pointer; }
.lb-overlay-opacity { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0; }
.lb-overlay-opacity label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.lb-overlay-opacity input[type=range] { flex: 1; accent-color: var(--sepia); }
.lb-overlay-attr { font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.2rem; }
.lb-overlay-align { font-size: 0.76rem; color: #8a5a20; margin-top: 0.2rem; }

/* ---- relationship network ---- */
.lb-net-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem 1.5rem; margin: 0.4rem 0 1rem; }
.lb-net-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--ink-soft); }
.lb-nl { display: inline-flex; align-items: center; gap: 0.35rem; }
.lb-nl-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lb-nl-line { width: 20px; height: 0; border-top-width: 2px; border-top-style: solid; display: inline-block; }
.lb-nl-line.solid { border-color: #5a4a37; }
.lb-nl-line.dashed { border-top-style: dashed; border-color: #b98d64; }

.lb-net-wrap { display: grid; grid-template-columns: 1fr 18rem; gap: 1rem; align-items: start; }
.lb-net-graph { background: var(--cream-deep); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
#lb-net { width: 100%; height: auto; display: block; }
#lb-net text { pointer-events: none; }
.lb-net-panel { background: var(--cream); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.1rem; min-height: 12rem; font-size: 0.9rem; position: sticky; top: 1rem; }
.lb-net-panel h2 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.lb-net-panel h3 { font-family: var(--body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sepia); margin: 0.8rem 0 0.4rem; }
.lb-net-hint { color: var(--ink-soft); font-style: italic; }
.lb-net-kind { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sepia); }
.lb-net-more { display: inline-block; margin: 0.4rem 0; }
.lb-net-edges { list-style: none; margin: 0; }
.lb-net-edges li { padding: 0.3rem 0; border-bottom: 1px dotted var(--rule); }
.lb-net-verb { font-style: italic; color: var(--ink-soft); }
.lb-net-src { display: block; font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.15rem; }
.lb-net-fallback { margin-top: 1.2rem; }
.lb-net-fallback summary { cursor: pointer; font-weight: 600; color: var(--sepia); }
.lb-net-fallback ul { list-style: none; margin: 0.6rem 0 0; columns: 2; }
.lb-net-fallback li { margin: 0.25rem 0; font-size: 0.86rem; break-inside: avoid; }
.lb-net-pred { font-style: italic; color: var(--ink-soft); }
.lb-net-date { color: var(--sepia); font-size: 0.82rem; }
@media (max-width: 760px) {
  .lb-net-wrap { grid-template-columns: 1fr; }
  .lb-net-panel { position: static; }
  .lb-net-fallback ul { columns: 1; }
}

/* ---- focused detail-page maps (mine detail, Manchester) ---- */
.lb-focusmap { height: 360px; }
.lb-detail-map { margin: 0.9rem 0 1.1rem; }
.lb-detail-map .lb-overlay-controls { margin-top: 0.6rem; border-top: none; padding-top: 0; }
.lb-map-caption { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; margin: 0.4rem 0 0.2rem; }

/* ---- classified claim map (story_maps/{slug}.json) ----
   For stories where sources disagree about WHERE something happened. Each point
   declares what it means — documentary, newspaper, eyewitness — so the map shows
   the disagreement instead of hiding it behind one confident pin. */
.claim-map-caption { font-size: 0.86rem; color: var(--ink-soft); font-style: italic; margin: 0.5rem 0 0.9rem; }
.claim-legend { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; }
.claim-legend-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; line-height: 1.45; }
.claim-dot { flex: 0 0 auto; width: 0.72rem; height: 0.72rem; border-radius: 50%; margin-top: 0.32rem; border: 2px solid; }
.claim-documentary .claim-dot { background: #a5825f; border-color: #6b4f2a; }
.claim-newspaper   .claim-dot { background: #7a94a6; border-color: #3d5a6c; }
.claim-eyewitness  .claim-dot { background: #c1705c; border-color: #8a3b2e; }
.claim-context     .claim-dot { background: #8fa383; border-color: #5d6b53; }
.claim-legend-text { display: block; }
.claim-class { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sepia); }
.claim-conf { display: block; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }
@media (min-width: 700px) { .claim-legend { grid-template-columns: 1fr 1fr; gap: 0.7rem 1.4rem; } }
