/* Story article pages (families, places, topics) */

.hchs-story {
    max-width: 42rem;
}

.hchs-story .lede {
    font-size: 1.12rem;
    color: var(--hchs-muted);
    margin: 0 0 1.25rem;
}

.hchs-story figure {
    margin: 1.25rem 0;
}

.hchs-story figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.hchs-story figcaption {
    font-size: 0.88rem;
    color: var(--hchs-muted);
    margin-top: 0.4rem;
}

.hchs-story .float-left {
    float: left;
    max-width: min(280px, 42%);
    margin: 0 1.1rem 0.75rem 0;
}

.hchs-story .float-right {
    float: right;
    max-width: min(280px, 42%);
    margin: 0 0 0.75rem 1.1rem;
}

.hchs-story .children {
    margin: 1rem 0;
    padding-left: 1.2rem;
}

.hchs-story .children li {
    margin-bottom: 0.35rem;
}

.hchs-story .sources {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hchs-line);
    font-size: 0.9rem;
    color: var(--hchs-muted);
}

.hchs-story .seealso {
    margin-top: 1.5rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--hchs-line);
}

.hchs-draft-banner {
    background: rgba(176, 141, 87, 0.15);
    border-left: 4px solid var(--hchs-accent);
    padding: 0.75rem 1rem;
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
}

.hchs-archive-body {
    max-width: 48rem;
}

.hchs-archive-body img {
    max-width: 100%;
    height: auto;
}

.hchs-year-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 1rem 0 2rem;
}

.hchs-year-table th,
.hchs-year-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--hchs-line);
}

.hchs-year-table th {
    width: 4.5rem;
    color: var(--hchs-forest-deep);
    font-family: var(--hchs-font-display);
}

@media (max-width: 600px) {
    .hchs-story .float-left,
    .hchs-story .float-right {
        float: none;
        max-width: 100%;
        margin: 0 0 1rem;
    }
}

/* Narrative thread: previous / next (loops via story-sequence.js) */
.hchs-story-nav {
    margin: 2.5rem 0 1rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--hchs-line);
}

.hchs-story-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem 1rem;
    align-items: start;
}

.hchs-story-nav a {
    text-decoration: none;
    color: var(--hchs-forest-deep);
}

.hchs-story-nav a:hover .ttl {
    text-decoration: underline;
}

.hchs-story-nav .dir {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hchs-accent);
    margin-bottom: 0.25rem;
}

.hchs-story-nav .ttl {
    font-family: var(--hchs-font-display);
    font-size: 1.05rem;
    line-height: 1.3;
}

.hchs-story-nav-prev {
    text-align: left;
}

.hchs-story-nav-next {
    text-align: right;
}

.hchs-story-nav-pos {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--hchs-muted);
    padding-top: 0.35rem;
}

/* Archive drafts: neutralize old FrontPage font colors / spacing */
.hchs-archive-body,
.hchs-archive-body * {
    color: var(--hchs-ink) !important;
    background-image: none !important;
}

.hchs-archive-body a {
    color: var(--hchs-forest) !important;
}

.hchs-archive-body font,
.hchs-archive-body span,
.hchs-archive-body p,
.hchs-archive-body td,
.hchs-archive-body li {
    font-family: var(--hchs-font-body) !important;
    line-height: 1.65;
}

.hchs-archive-body p {
    margin: 0.75rem 0;
}

.hchs-archive-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.75rem 0;
}

.hchs-archive-body table {
    max-width: 100%;
    border-collapse: collapse;
}

@media (max-width: 700px) {
    .hchs-story-nav-inner {
        grid-template-columns: 1fr;
    }

    .hchs-story-nav-next {
        text-align: left;
    }

    .hchs-story-nav-pos {
        order: -1;
        text-align: left;
        padding-top: 0;
    }
}
