/**
 * Jim Mallory's version: his content and order, in the site's current design tier.
 * Design refresh, October 2026. Scoped to body.jim-site and .jim-* classes.
 *
 * Principles
 *  - The page is paper: WHITE, per Jim's letter of 8/30/2026 ("some of the pictures, especially
 *    the maps, lost definition on a parchment background, thus the change to white"). Brown ink
 *    is kept for three moments only: the home hero band, the Contribute band, the footer.
 *    A faint warm wash marks bands that hold no pictures (mission, roster, projects).
 *  - Jim's order is the spine. A gold-ring numeral (.jim-badge) marks it wherever it appears:
 *    the nine subjects, chapter heroes, stops.
 *  - Pictures sit on white with their credits underneath. No boxes, no colored rails.
 *  - Left-aligned reading column of about 70 characters; body 19px; every text tone AA or
 *    better on white (ink 16.8:1, ink-2 11.4:1, ink-3 8.9:1, link 7.6:1).
 * Class names the completeness check reads (keep): p.jim-p, p.footnote, [data-jim-src],
 * article.jim-stop#stop-N, .jim-home-content, .jim-tabs-list, .jim-standalone, img.jim-banner.
 */

:root {
    --jim-paper: #FFFFFF;
    --jim-wash: #F7F3EB;          /* bands without pictures */
    --jim-wash-2: #EFE8DA;
    --jim-ink: #2C1810;
    --jim-ink-2: #4A3728;
    --jim-ink-3: #5C4636;
    --jim-rule: #E3D9C8;          /* hairlines */
    --jim-rule-2: #CDBEA3;
    --jim-gold: #C9A962;          /* rules, rings, small accents; never body text on white */
    --jim-gold-ink: #7D6128;      /* gold-family text on white, 5.6:1 */
    --jim-gold-on-dark: #D8BE84;  /* gold text on brown, 8:1 */
    --jim-link: #1F6168;          /* 7.6:1 on white */
    --jim-link-hover: #7A2E12;
    --jim-night: #2C1810;
    --jim-night-2: #1F120B;
    --jim-on-dark: #F4EDE0;
    --jim-on-dark-2: #E2D6C1;
    --jim-measure: 44rem;         /* reading column, ~70 characters at 19px */
    --jim-brand-h: 96px;
    --jim-bar-h: 76px;
    --jim-head-offset: var(--jim-bar-h);  /* height of the header part that stays on screen */
    --jim-radius: 4px;
}

body.jim-site {
    padding-top: 0;
    background: var(--jim-paper);
    color: var(--jim-ink);
    font-size: 1.125rem;
}
body.jim-site .site-main { background: transparent; }
/* the old archive templates paste the letterhead under their hero; Jim's masthead already carries it */
body.jim-site .hero-logo-bar-static { display: none !important; }
body.jim-site :focus-visible { outline: 3px solid var(--jim-link); outline-offset: 2px; }
.container.jim-wide { max-width: 1264px; padding-left: 24px; padding-right: 24px; }
.container.jim-narrow { max-width: 900px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 575.98px) {
    .container.jim-wide, .container.jim-narrow { padding-left: 16px; padding-right: 16px; }
}

/* ------------------------------------------------------------------ badge + buttons */

.jim-badge {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    border: 1.5px solid var(--jim-gold); background: var(--jim-paper); color: var(--jim-ink);
    font-family: var(--font-heading); font-size: 1.3rem; line-height: 1; font-variant-numeric: lining-nums;
    padding-top: 0.1em;
}

.jim-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem;
    padding: 0.7rem 1.35rem; border-radius: 3px; border: 1.5px solid var(--jim-ink);
    background: var(--jim-ink); color: #fff; font-family: var(--font-body); font-weight: 700;
    font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
}
.jim-btn:hover, .jim-btn:focus-visible { background: var(--jim-link-hover); border-color: var(--jim-link-hover); color: #fff; }
.jim-btn--gold { background: var(--jim-gold); border-color: var(--jim-gold); color: var(--jim-ink); }
.jim-btn--gold:hover, .jim-btn--gold:focus-visible { background: #E2C987; border-color: #E2C987; color: var(--jim-ink); }
.jim-btn--ghost { background: transparent; border-color: rgba(244, 237, 224, 0.7); color: var(--jim-on-dark); }
.jim-btn--ghost:hover, .jim-btn--ghost:focus-visible { background: var(--jim-on-dark); border-color: var(--jim-on-dark); color: var(--jim-ink); }

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

.site-header.jim-header {
    position: sticky; top: calc(var(--jim-brand-h) * -1); z-index: 1000;
    background: var(--jim-paper); box-shadow: none; transition: box-shadow .2s ease;
}
.jim-header.is-stuck { box-shadow: 0 1px 0 var(--jim-rule), 0 10px 24px -18px rgba(44, 24, 16, 0.45); }
.jim-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--jim-brand-h); }
.jim-brand-link { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
.jim-banner { display: block; height: 56px; width: auto; max-width: 100%; }

.jim-util-nav { display: flex; align-items: center; gap: 2rem; font-size: 1.0625rem; }
.jim-util-nav > a, .jim-dd > summary {
    color: var(--jim-ink-2); text-decoration: none; cursor: pointer; padding: 0.5rem 0;
    text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.jim-util-nav > a:hover, .jim-dd > summary:hover { color: var(--jim-link); text-decoration: underline; }
.jim-util-nav [aria-current="page"] { color: var(--jim-ink); text-decoration: underline; text-decoration-color: var(--jim-gold); text-decoration-thickness: 2px; }
.jim-dd { position: relative; }
.jim-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.jim-dd > summary::-webkit-details-marker { display: none; }
.jim-dd > summary::after {
    content: ""; width: 0.45rem; height: 0.45rem; margin-top: -0.25rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.jim-dd[open] > summary::after { transform: rotate(225deg); margin-top: 0.2rem; }
.jim-dd > ul {
    position: absolute; right: -1rem; top: calc(100% + 0.5rem); z-index: 1100; min-width: 300px;
    list-style: none; margin: 0; padding: 0.5rem 0; background: var(--jim-paper);
    border: 1px solid var(--jim-rule); border-radius: var(--jim-radius);
    box-shadow: 0 18px 40px -16px rgba(44, 24, 16, 0.35);
}
.jim-dd ul a { display: block; padding: 0.65rem 1.25rem; color: var(--jim-ink); text-decoration: none; line-height: 1.35; }
.jim-dd ul a:hover { background: var(--jim-wash); color: var(--jim-link); }
.jim-dd .jim-dd-all { border-top: 1px solid var(--jim-rule); margin-top: 0.35rem; padding-top: 0.35rem; }
.jim-dd .jim-dd-all a { color: var(--jim-link); font-weight: 700; }

/* The nine subjects: a numbered contents strip under the logo (Jim: "at the top and under the LOGO") */
.jim-menu { background: var(--jim-paper); border-top: 1px solid var(--jim-rule); border-bottom: 1px solid var(--jim-rule); }
.jim-tabs-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 0.75rem; }
.jim-tab { flex: 0 1 auto; min-width: 0; }
.jim-tab a {
    display: flex; flex-direction: column; justify-content: flex-start; height: var(--jim-bar-h);
    padding: 0.75rem 0.1rem 0; color: var(--jim-ink); text-decoration: none; font-size: 1rem; line-height: 1.2;
    box-shadow: inset 0 -3px 0 transparent; text-wrap: balance;
}
.jim-tab-n { font-family: var(--font-heading); color: var(--jim-gold-ink); font-size: 0.9375rem; line-height: 1; margin-bottom: 0.3rem; }
.jim-tab-t { display: block; }
.jim-tab a:hover .jim-tab-t, .jim-tab a:focus-visible .jim-tab-t { color: var(--jim-link); text-decoration: underline; text-underline-offset: 3px; }
.jim-tab.is-active a { box-shadow: inset 0 -3px 0 var(--jim-gold); }
.jim-tab.is-active .jim-tab-t { font-weight: 700; }
.jim-ext-icon { display: inline-block; margin-left: 0.3rem; vertical-align: 0.02em; color: var(--jim-ink-3); }
.jim-menu-util { display: none; }
.jim-menu-btn { display: none; }
@media (min-width: 1200px) { .jim-tab-t { max-width: 11.5em; } }

@media (max-width: 1199.98px) {
    :root { --jim-brand-h: 64px; --jim-bar-h: 0px; --jim-head-offset: 64px; }
    .site-header.jim-header { top: 0; transition: transform .25s ease, box-shadow .2s ease; box-shadow: 0 1px 0 var(--jim-rule); }
    body.jim-head-hidden .site-header.jim-header { transform: translateY(-100%); box-shadow: none; }
    body.jim-head-hidden { --jim-head-offset: 0px; }
    .jim-banner { height: 36px; }
    .jim-util-nav { display: none; }
    .jim-menu-btn {
        display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0 1rem;
        border: 1px solid var(--jim-rule-2); border-radius: 3px; background: var(--jim-paper);
        color: var(--jim-ink); font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; cursor: pointer;
    }
    .jim-menu-icon { position: relative; width: 20px; height: 14px; }
    .jim-menu-icon::before, .jim-menu-icon::after, .jim-menu-icon span {
        content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
    }
    .jim-menu-icon::before { top: 0; }
    .jim-menu-icon span { top: 6px; }
    .jim-menu-icon::after { top: 12px; }
    .jim-menu-btn[aria-expanded="true"] .jim-menu-icon::before { transform: translateY(6px) rotate(45deg); }
    .jim-menu-btn[aria-expanded="true"] .jim-menu-icon span { opacity: 0; }
    .jim-menu-btn[aria-expanded="true"] .jim-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

    .jim-menu { border-bottom: 0; }
    .jim-js .jim-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--jim-brand-h));
        overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 40px -20px rgba(44, 24, 16, 0.4);
        border-bottom: 1px solid var(--jim-rule);
    }
    .jim-js .jim-menu.is-open { display: block; }
    .jim-tabs-list { flex-direction: column; gap: 0; padding: 0.25rem 0; }
    .jim-tab a {
        flex-direction: row; align-items: center; gap: 0.9rem; height: auto; min-height: 56px; padding: 0.7rem 0;
        border-bottom: 1px solid var(--jim-rule); font-size: 1.125rem; box-shadow: none;
    }
    .jim-tab:last-child a { border-bottom: 0; }
    .jim-tab-n {
        display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; margin: 0;
        border: 1.5px solid var(--jim-gold); border-radius: 50%; font-size: 1.05rem; color: var(--jim-ink); flex: 0 0 auto; padding-top: 0.1em;
    }
    .jim-tab.is-active a { box-shadow: none; }
    .jim-tab.is-active .jim-tab-n { background: var(--jim-gold); }
    .jim-menu-util { display: block; background: var(--jim-wash); border-top: 1px solid var(--jim-rule); }
    .jim-menu-util ul { list-style: none; margin: 0 auto; padding: 0.5rem 24px; max-width: 1264px; display: flex; flex-wrap: wrap; gap: 0 2rem; }
    .jim-menu-util a { display: inline-flex; align-items: center; min-height: 48px; color: var(--jim-ink); font-size: 1.0625rem; text-decoration: underline; text-decoration-color: var(--jim-rule-2); text-underline-offset: 4px; }
}
@media (max-width: 575.98px) {
    .jim-banner { height: 22px; }
    .jim-menu-util ul { padding: 0.5rem 16px; }
    .jim-menu-btn .jim-menu-label { font-size: 1rem; }
}

/* ------------------------------------------------------------------ page heroes (chapters, standalone pages, projects, /journey/) */

.jim-page { padding: 0 0 5rem; }
.jim-page.jim-home-page { padding-bottom: 0; }
.jim-hero { padding: 3.75rem 0 3.25rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--jim-rule); }
.jim-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 4rem; align-items: center; }
.jim-hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.jim-hero-grid--solo .jim-hero-text { max-width: 58rem; }
.jim-hero-kicker { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.25rem; }
.jim-eyebrow { font-size: 1.0625rem; line-height: 1.35; color: var(--jim-ink-2); font-style: italic; }
.jim-page-title {
    font-family: var(--font-heading); font-weight: 400; color: var(--jim-ink); letter-spacing: -0.005em;
    font-size: clamp(2.2rem, 3.9vw, 3.45rem); line-height: 1.1; margin: 0 0 1.1rem; text-wrap: balance;
}
.jim-page-sub { font-size: 1.25rem; line-height: 1.45; color: var(--jim-ink-2); margin: 0.2rem 0 0; max-width: 46rem; }
.jim-hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0; margin: 0 0 1.75rem; font-size: 1.125rem; color: var(--jim-ink-2); }
.jim-fact + .jim-fact { margin-left: 1.25rem; padding-left: 1.25rem; border-left: 1px solid var(--jim-rule-2); }
.jim-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.jim-hero-media { margin: 0; justify-self: end; max-width: 100%; }
.jim-hero-media-link { display: block; line-height: 0; }
.jim-hero-img {
    display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; margin-left: auto;
    border-radius: 2px; box-shadow: 0 0 0 1px rgba(44, 24, 16, 0.08);
}
.jim-hero-credit { margin-top: 0.7rem; font-size: 1rem; line-height: 1.45; color: var(--jim-ink-3); text-align: right; }
.jim-hero-from { display: block; color: var(--jim-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; margin-bottom: 0.15rem; }
.jim-hero-cap { display: block; }
@media (max-width: 991.98px) {
    .jim-hero { padding: 2.25rem 0 2.25rem; margin-bottom: 2.25rem; }
    .jim-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .jim-hero-media { justify-self: start; }
    .jim-hero-img { margin-left: 0; max-height: 320px; }
    .jim-hero-credit { text-align: left; }
}
@media (max-width: 575.98px) {
    .jim-badge { width: 2.4rem; height: 2.4rem; font-size: 1.15rem; }
    .jim-page-title { font-size: 2.05rem; }
}

/* ------------------------------------------------------------------ Jim's content */

.jim-content { font-size: 1.1875rem; line-height: 1.72; color: var(--jim-ink); overflow-wrap: break-word; }
.jim-content > p, .jim-content > .jim-list, .jim-content > .jim-sources, .jim-content > .jim-quote,
.jim-content > .jim-hr, .jim-content > .jim-pdf, .jim-content .jim-doc > p { max-width: var(--jim-measure); }
.jim-content p { margin: 0 0 1.15rem; }
.jim-content a { color: var(--jim-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.jim-content a:hover { color: var(--jim-link-hover); }
.jim-content u { text-decoration-color: var(--jim-ink-3); text-underline-offset: 3px; }
.jim-content strong { font-weight: 700; }
.jim-content .footnote, .jim-content .jim-credit, .jim-content .jim-cap, .jim-content .jim-fig-title { overflow-wrap: anywhere; }

/* Jim's bold lines inside a stop read as sub-headings */
.jim-content .jim-strong {
    font-family: var(--font-heading); font-weight: 400; font-size: 1.45rem; line-height: 1.3;
    margin: 2.5rem 0 0.9rem; text-align: left; color: var(--jim-ink);
}
.jim-content .jim-strong strong { font-weight: 400; }

.jim-quote {
    margin: 1.75rem 0 1.9rem; padding: 0 0 0 1.75rem; background: none; border: 0;
    font-family: var(--font-body); font-style: normal; font-size: 1.1875rem; line-height: 1.7; color: var(--jim-ink-2);
}
.jim-quote p:last-child { margin-bottom: 0; }

.jim-list { margin: 0 0 1.4rem; padding-left: 1.35rem; }
.jim-list li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.jim-list li::marker { color: var(--jim-gold-ink); }

.jim-hr { border: 0; border-top: 1px solid var(--jim-rule); margin: 2.5rem 0; opacity: 1; }

/* pictures: on white, the credit under each */
.jim-fig { margin: 2.25rem 0 2.6rem; }
.jim-content .jim-fig-title {
    font-family: var(--font-heading); font-weight: 400; font-size: 1.3rem; line-height: 1.3;
    margin: 0 0 0.85rem; color: var(--jim-ink); max-width: var(--jim-measure);
}
.jim-content .jim-fig-title strong { font-weight: 400; }
.jim-fig-row { display: flex; justify-content: flex-start; align-items: flex-start; gap: 1.1rem; margin: 0 0 0.25rem; }
.jim-fig-row + .jim-fig-row { margin-top: 1.1rem; }
.jim-fig-row--1 .jim-fig-item { width: var(--jim-w, 100%); max-width: 100%; min-width: min(100%, 280px); }
.jim-fig-row:not(.jim-fig-row--1) .jim-fig-item { flex: 0 1 var(--jim-w, 50%); min-width: 0; }
.jim-fig-item { margin: 0; }
.jim-zoom { display: block; cursor: zoom-in; line-height: 0; }
.jim-fig img, .jim-img {
    display: block; width: 100%; height: auto; margin: 0; border-radius: 2px; background: #fff;
    box-shadow: 0 0 0 1px rgba(44, 24, 16, 0.08);
}
.jim-zoom:focus-visible img { outline: 3px solid var(--jim-link); outline-offset: 3px; }
.jim-fig-caption { margin-top: 0.7rem; max-width: var(--jim-measure); }
.jim-content .jim-cap, .jim-content .jim-credit { font-size: 1rem; line-height: 1.5; margin: 0.25rem 0 0; color: var(--jim-ink-2); }
.jim-content .jim-credit { color: var(--jim-ink-3); }
.jim-content .jim-fig-item .jim-credit { margin-top: 0.55rem; }
.jim-content .jim-credit--loose { text-align: left; margin-bottom: 1.1rem; }
.jim-content .jim-enlarge { margin: 0.75rem 0 0; font-weight: 700; font-size: 1.0625rem; }
.jim-enlarge a { display: inline-flex; align-items: center; gap: 0.45rem; cursor: zoom-in; line-height: 1.4; }
.jim-enlarge a::before {
    content: ""; width: 1rem; height: 1rem; flex: 0 0 auto;
    background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1.5a5.5 5.5 0 1 0 3.4 9.8l3.4 3.4 1.1-1.1-3.4-3.4A5.5 5.5 0 0 0 7 1.5zm0 1.6a3.9 3.9 0 1 1 0 7.8 3.9 3.9 0 0 1 0-7.8zM6.3 4.6v1.7H4.6v1.4h1.7v1.7h1.4V7.7h1.7V6.3H7.7V4.6z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1.5a5.5 5.5 0 1 0 3.4 9.8l3.4 3.4 1.1-1.1-3.4-3.4A5.5 5.5 0 0 0 7 1.5zm0 1.6a3.9 3.9 0 1 1 0 7.8 3.9 3.9 0 0 1 0-7.8zM6.3 4.6v1.7H4.6v1.4h1.7v1.7h1.4V7.7h1.7V6.3H7.7V4.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jim-img-missing { display: block; padding: 2rem; border: 1px dashed var(--jim-rule-2); color: var(--jim-ink-3); }

/* runs of single pictures: a row of figures */
.jim-fig-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem 1.5rem; margin: 2.25rem 0 2.6rem; align-items: start; }
.jim-fig--cell { margin: 0; }
.jim-fig--cell .jim-fig-row--1 .jim-fig-item { width: 100%; min-width: 0; }
.jim-content .jim-fig--cell .jim-fig-title { font-size: 1.125rem; margin-bottom: 0.6rem; }

/* Honor and Respect: picture, place, caption, credit, as a grid of entries */
.jim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; margin: 2.5rem 0 1rem; align-items: start; }
.jim-grid .jim-fig--cell { display: flex; flex-direction: column; }
.jim-grid .jim-fig--cell .jim-fig-row { order: 1; margin: 0; }
/* one picture per entry: unwrap the row so every entry reads picture, place, caption, credit */
.jim-grid .jim-fig--cell .jim-fig-row--1, .jim-grid .jim-fig--cell .jim-fig-row--1 .jim-fig-item { display: contents; }
.jim-grid .jim-fig--cell .jim-fig-row--1 .jim-zoom { order: 1; }
.jim-content .jim-grid .jim-fig--cell .jim-fig-row--1 .jim-credit { order: 4; margin-top: 0.3rem; }
/* entries where Jim put the place in the caption, not as a bold title: give that line the title's voice */
.jim-content .jim-grid .jim-fig--cell:not(:has(.jim-fig-title)) .jim-fig-caption > .jim-cap:first-child {
    font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.3; color: var(--jim-ink); margin: 0.9rem 0 0.15rem;
}
.jim-grid .jim-fig--cell img {
    /* the whole picture, never cropped: a fixed 4:3 frame cut the heads off Jim's upright photos (Jim 10/2/2026).
       Tall ones stop at max-height and keep their shape, left-aligned with the caption. */
    max-height: 34rem; object-fit: contain; object-position: left top; background: transparent; box-shadow: none;
}
.jim-content .jim-grid .jim-fig--cell .jim-fig-title { order: 2; font-size: 1.25rem; margin: 0.9rem 0 0.15rem; }
.jim-grid .jim-fig--cell .jim-fig-caption { order: 3; margin-top: 0.15rem; }
.jim-content .jim-grid .jim-cap strong { font-weight: 400; }
.jim-grid > :not(.jim-fig) { grid-column: 1 / -1; }
@media (max-width: 991.98px) { .jim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.25rem; } }
@media (max-width: 575.98px) {
    .jim-fig-row:not(.jim-fig-row--1):not(.jim-fig-row--2) { flex-wrap: wrap; }
    .jim-fig-row:not(.jim-fig-row--1):not(.jim-fig-row--2) .jim-fig-item { flex: 1 1 45%; }
    .jim-fig-row { gap: 0.75rem; }
    .jim-fig-flow { grid-template-columns: 1fr 1fr; gap: 1.25rem 0.9rem; }
    .jim-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
    .jim-content .jim-cap, .jim-content .jim-credit { font-size: 1rem; }
}

/* a historical document inside the narrative: set as print, in the serif */
.jim-doc {
    margin: 2.5rem 0; padding: 1.75rem 2rem 1.25rem; background: var(--jim-paper);
    border: 1px solid var(--jim-rule-2); border-radius: 2px;
    font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.65;
}
.jim-content .jim-doc-label {
    font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--jim-ink-3);
    margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--jim-rule);
}
@media (max-width: 575.98px) { .jim-doc { padding: 1.25rem 1rem 0.75rem; } }

.jim-pdf { margin: 0.75rem 0 1.6rem; }
.jim-content .jim-pdf-link {
    display: inline-flex; align-items: center; gap: 0.55rem; min-height: 3rem; padding: 0.65rem 1.15rem;
    border: 1.5px solid var(--jim-link); border-radius: 3px; background: var(--jim-paper); color: var(--jim-link);
    text-decoration: none; font-weight: 700; font-size: 1.0625rem; line-height: 1.3;
}
.jim-content .jim-pdf-link:hover { background: var(--jim-link); color: #fff; }

/* sources: on every page, as refined numbered notes under a hairline */
.jim-sources { margin: 2.5rem 0 0.5rem; padding: 1.4rem 0 0; border-top: 1px solid var(--jim-rule); }
.jim-content .jim-sources-label { font-size: 1rem; font-weight: 700; color: var(--jim-ink-2); margin: 0 0 0.75rem; letter-spacing: 0.01em; }
.jim-content .footnote {
    font-size: 1.0625rem; line-height: 1.55; color: var(--jim-ink-2); margin: 0 0 0.55rem;
    padding: 0.05rem 0 0.05rem 2.15em; text-indent: -2.15em; border: 0; scroll-margin-top: calc(var(--jim-head-offset) + 1.5rem);
    border-radius: 2px;
}
.jim-content .footnote--plain { padding-left: 0; text-indent: 0; }
.jim-content .footnote:target { background: #FBF0D2; box-shadow: -0.5rem 0 0 #FBF0D2, 0.5rem 0 0 #FBF0D2; color: var(--jim-ink); }
.jim-content .fn-ref, .jim-content a.fn-ref { color: var(--jim-link); text-decoration: none; font-weight: 700; padding: 0 1px; }
.jim-content a.fn-ref:hover { text-decoration: underline; }
.jim-content sup { font-size: 0.72em; line-height: 0; }
.jim-content .fn-nosource { color: var(--jim-ink-3); font-weight: 700; }
.jim-content img.jim-img-inline { display: inline; width: auto; height: 1.15em; vertical-align: -0.2em; margin: 0; box-shadow: none; border-radius: 0; background: transparent; }

/* ------------------------------------------------------------------ chapter pages */

.jim-chapter-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 4.5rem; align-items: start; }
.jim-chapter-main { max-width: 54rem; min-width: 0; }
.jim-chapter-intro { margin-bottom: 2rem; }

.jim-index { position: sticky; top: calc(var(--jim-head-offset) + 1.25rem); transition: top .25s ease; }
.jim-index-inner { position: relative; max-height: calc(100vh - var(--jim-head-offset) - 2.75rem); overflow-y: auto; overscroll-behavior: contain; padding: 0 0.5rem 1rem 0; scrollbar-width: thin; }
.jim-index-label { font-weight: 700; font-size: 1rem; color: var(--jim-ink-2); margin: 0 0 0.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--jim-rule); }
.jim-index-list, .jim-jump-list { list-style: none; margin: 0; padding: 0; }
.jim-index-list a, .jim-jump-list a {
    display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0.5rem; padding: 0.5rem 0.6rem;
    border-radius: 3px; color: var(--jim-ink-2); text-decoration: none; font-size: 1rem; line-height: 1.35;
}
.jim-index-list a:hover, .jim-jump-list a:hover { background: var(--jim-wash); color: var(--jim-link); }
.jim-index-list a.is-current { background: var(--jim-wash-2); color: var(--jim-ink); }
.jim-index-list a.is-current .jim-idx-t { font-weight: 700; }
.jim-index-list a.is-current .jim-idx-n { color: var(--jim-ink); }
.jim-idx-n { font-family: var(--font-heading); text-align: right; color: var(--jim-gold-ink); font-size: 1.05rem; font-variant-numeric: lining-nums tabular-nums; }

.jim-stop { padding: 4.5rem 0 0; margin: 4.5rem 0 0; border-top: 1px solid var(--jim-rule); scroll-margin-top: calc(var(--jim-head-offset) + 1.25rem); }
.jim-chapter-main > .jim-stop:first-of-type, .jim-chapter-intro + .jim-stop { border-top: 0; padding-top: 0; margin-top: 0; }
.jim-stop-head { margin: 0 0 2rem; max-width: var(--jim-measure); }
.jim-stop-num { display: flex; align-items: center; gap: 0.85rem; margin: 0 0 1rem; font-size: 1.0625rem; color: var(--jim-ink-2); }
.jim-stop-of { color: var(--jim-ink-3); }
.jim-stop-title {
    font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.85rem, 2.8vw, 2.5rem);
    line-height: 1.16; margin: 0 0 0.6rem; color: var(--jim-ink); text-wrap: balance;
}
.jim-stop-title a { color: var(--jim-ink); text-decoration: none; }
.jim-stop-title a:hover { color: var(--jim-link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.jim-stop-title strong { font-weight: 400; }
.jim-stop-sub { color: var(--jim-ink-2); margin: 0.2rem 0 0; font-size: 1.1875rem; line-height: 1.45; }
.jim-stop-sub strong { font-weight: 400; }
.jim-stop-foot { display: flex; gap: 0.5rem 2rem; flex-wrap: wrap; margin-top: 2.25rem; font-size: 1rem; }
.jim-stop-foot a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: var(--jim-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.jim-jump { display: none; }

@media (max-width: 991.98px) {
    .jim-chapter-layout { display: block; }
    .jim-index { display: none; }
    .jim-jump {
        display: block; position: sticky; top: var(--jim-head-offset); z-index: 40; margin: 0 -24px 2.5rem;
        background: var(--jim-paper); border-top: 1px solid var(--jim-rule); border-bottom: 1px solid var(--jim-rule);
        transition: top .25s ease;
    }
    .jim-jump[open] { box-shadow: 0 18px 30px -18px rgba(44, 24, 16, 0.4); }
    .jim-jump > summary {
        list-style: none; cursor: pointer; min-height: 56px; padding: 0 24px; font-weight: 700; font-size: 1.0625rem;
        display: flex; align-items: center; gap: 0.6rem; color: var(--jim-ink);
    }
    .jim-jump > summary::-webkit-details-marker { display: none; }
    .jim-jump-count {
        display: inline-flex; align-items: center; justify-content: center; min-width: 1.9rem; height: 1.9rem; padding: 0 0.4rem;
        border: 1.5px solid var(--jim-gold); border-radius: 999px; font-family: var(--font-heading); font-weight: 400; font-size: 1rem;
    }
    .jim-jump > summary::after {
        content: ""; margin-left: auto; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
    }
    .jim-jump[open] > summary::after { transform: rotate(225deg); margin-top: 0.3rem; }
    .jim-jump-list { max-height: 62vh; overflow-y: auto; padding: 0 16px 0.75rem; border-top: 1px solid var(--jim-rule); }
    .jim-jump-list a { font-size: 1.0625rem; padding: 0.7rem 0.5rem; }
    .jim-stop { padding-top: 3.25rem; margin-top: 3.25rem; scroll-margin-top: calc(64px + 56px + 1rem); }
    .jim-content .footnote { scroll-margin-top: calc(64px + 56px + 1rem); }
}
@media (max-width: 575.98px) { .jim-jump { margin: 0 -16px 2rem; } .jim-jump > summary { padding: 0 16px; } }

/* previous / next subject (chapters, standalone pages), previous / next stop (single stop) */
.jim-chapnav, .jim-prevnext {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid var(--jim-rule);
}
.jim-chapnav > a, .jim-prevnext > a {
    display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.4rem 1.35rem; border: 1px solid var(--jim-rule);
    border-radius: var(--jim-radius); text-decoration: none; color: var(--jim-ink); background: var(--jim-paper);
}
.jim-chapnav > a:hover, .jim-prevnext > a:hover { border-color: var(--jim-ink-3); }
.jim-chapnav > a:hover .jim-chapnav-title > span:last-child, .jim-prevnext > a:hover .jim-pn-title > span:last-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.jim-chapnav-label, .jim-pn-label { font-size: 1rem; color: var(--jim-ink-3); }
.jim-chapnav-title, .jim-pn-title { display: flex; align-items: center; gap: 0.85rem; font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.25; }
.jim-chapnav-next, .jim-next { text-align: right; align-items: flex-end; }
.jim-chapnav-next .jim-chapnav-title, .jim-next .jim-pn-title { flex-direction: row-reverse; }
.jim-chapnav .jim-badge, .jim-prevnext .jim-badge { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
@media (max-width: 767.98px) {
    .jim-chapnav, .jim-prevnext { grid-template-columns: 1fr; }
    .jim-chapnav > span:empty, .jim-prevnext > span:empty { display: none; }
    .jim-chapnav-next, .jim-next { text-align: left; align-items: flex-start; }
    .jim-chapnav-next .jim-chapnav-title, .jim-next .jim-pn-title { flex-direction: row; }
}

/* single stop page */
.jim-single { padding-top: 2.25rem; }
.jim-crumbs { font-size: 1.0625rem; color: var(--jim-ink-3); margin-bottom: 2.25rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: baseline; }
.jim-crumbs a { color: var(--jim-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.jim-crumb-sep { color: var(--jim-rule-2); }
.jim-stop--single { border-top: 0; padding-top: 0; margin-top: 0; }
.jim-stop--single .jim-stop-title { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.jim-whole-chapter { margin: 3rem 0 0; }

/* standalone pages */
.jim-page-body { min-width: 0; }
.jim-standalone--grid .jim-page-body > :not(.jim-grid):not(.jim-fig-flow) { max-width: var(--jim-measure); }

/* the Trust's own pages (About, Contact, In Memoriam) */
.jim-wp-content h2, .jim-wp-content h3, .jim-wp-content h4 { font-family: var(--font-heading); font-weight: 400; color: var(--jim-ink); line-height: 1.2; margin: 2.25rem 0 0.85rem; max-width: var(--jim-measure); }
.jim-wp-content h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.jim-wp-content h3 { font-size: 1.45rem; }
.jim-wp-content h4 { font-size: 1.2rem; }
.jim-wp-content > :first-child { margin-top: 0; }
.jim-wp-content ul, .jim-wp-content ol { max-width: var(--jim-measure); padding-left: 1.35rem; }
.jim-wp-content img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------------ home */

/* The opening is Jim's page 1 in his order: presents, title, funding line, Mission and Vision, slogan, and the
   founders picture beside them (Jim 10/2/2026: "we need that opening picture and founding statement").
   The founding statement and roster follow, then the map, the nine subjects and the introduction. */
.jim-hero-home { position: relative; }
.jim-hero-band { background: var(--jim-night); color: var(--jim-on-dark); padding: 4.5rem 0 4.75rem; }
.jim-hero-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 3rem 4.5rem; align-items: start; }
.jim-hero-open--solo { grid-template-columns: minmax(0, 1fr); }
.jim-hero-copy { max-width: 60rem; }
.jim-home-content .jim-home-presents { font-size: 1.25rem; line-height: 1.4; color: var(--jim-gold-on-dark); margin: 0 0 1.1rem; }
.jim-home-presents strong, .jim-home-funding strong, .jim-home-mission strong, .jim-home-title strong, .jim-home-slogan strong { font-weight: inherit; }
.jim-home-content .jim-home-title {
    font-family: var(--font-heading); font-weight: 400; color: #fff; letter-spacing: -0.012em;
    font-size: clamp(2.5rem, 5.1vw, 4.6rem); line-height: 1.04; margin: 0 0 1.5rem; text-wrap: balance;
}
.jim-home-content .jim-home-funding { font-size: 1.125rem; line-height: 1.55; font-style: italic; color: var(--jim-on-dark-2); max-width: 40rem; margin: 0 0 2.25rem; }
.jim-hero-open:not(.jim-hero-open--solo) .jim-home-title { font-size: clamp(2.4rem, 3.7vw, 3.6rem); line-height: 1.06; }
.jim-hero-open .jim-home-funding { margin-bottom: 1.75rem; }
.jim-hero-mission { margin: 0 0 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(244, 237, 224, 0.22); }
.jim-home-content .jim-hero-mission .jim-home-mission-label { font-size: 1rem; font-weight: 700; color: var(--jim-gold-on-dark); margin: 0 0 0.5rem; }
.jim-home-content .jim-hero-mission .jim-home-mission {
    font-family: var(--font-heading); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.35; color: #fff; margin: 0 0 0.8rem; max-width: 38ch; text-wrap: pretty;
}
.jim-home-content .jim-hero-mission .jim-home-slogan { font-family: var(--font-heading); font-size: 1.35rem; color: var(--jim-gold-on-dark); margin: 0; }
.jim-hero-band .jim-hero-ctas { gap: 0.9rem; }
/* the founders picture on the brown band: a print on a dark table, caption and credits in light ink */
.jim-hero-founders .jim-fig { margin: 0; }
.jim-hero-founders.jim-content .jim-fig-title { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; color: #fff; margin: 0 0 0.9rem; max-width: none; }
.jim-hero-founders .jim-fig img { box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.75); }
.jim-hero-founders .jim-fig-caption { max-width: none; margin-top: 0.85rem; }
.jim-hero-founders.jim-content .jim-cap, .jim-hero-founders.jim-content .jim-credit { color: var(--jim-on-dark-2); }
.jim-hero-founders.jim-content .jim-cap a { color: var(--jim-gold-on-dark); }
.jim-hero-founders.jim-content .jim-cap a:hover, .jim-hero-founders.jim-content .jim-cap a:focus-visible { color: #fff; }
.jim-home-map { padding: 1.5rem 0 0; }
.jim-map-plate {
    background: var(--jim-paper); border-radius: var(--jim-radius); padding: 1.5rem 1.75rem 1.25rem;
    box-shadow: 0 0 0 1px var(--jim-rule);
}
.jim-map-plate .jim-fig { margin: 0; }
.jim-map-plate .jim-fig-title { font-size: 1.35rem; max-width: none; }
.jim-map-plate .jim-fig img { box-shadow: none; }
@media (max-width: 991.98px) {
    .jim-hero-band { padding: 3.25rem 0 3.5rem; }
    .jim-hero-open { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .jim-hero-open:not(.jim-hero-open--solo) .jim-home-title { font-size: clamp(2.35rem, 6vw, 3.4rem); }
    .jim-map-plate { padding: 1rem 1rem 0.9rem; }
}
/* phones read the page in the same order as desktop: Jim's order, top to bottom */
@media (max-width: 767.98px) {
    .jim-hide-phone { display: none !important; }
}
@media (max-width: 575.98px) {
    .jim-hero-band { padding: 2.5rem 0 2.75rem; }
    .jim-home-content .jim-home-title { font-size: 2.35rem; }
    .jim-home-content .jim-home-presents { font-size: 1.125rem; }
    .jim-hero-band .jim-btn { width: 100%; justify-content: center; }
    .jim-map-plate .jim-fig-title { font-size: 1.15rem; }
}

.jim-section-title {
    font-family: var(--font-heading); font-weight: 400; color: var(--jim-ink);
    font-size: clamp(2rem, 3.3vw, 2.85rem); line-height: 1.12; margin: 0 0 2.25rem; text-wrap: balance;
}

/* the nine subjects, numbered, each a direct link (Jim's "arrowed subjects") */
.jim-subjects-wrap { padding: 5.5rem 0 5rem; scroll-margin-top: 1rem; }
.jim-subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
.jim-subject a { display: flex; flex-direction: column; height: 100%; color: var(--jim-ink); text-decoration: none; }
.jim-subject-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: var(--jim-wash); box-shadow: 0 0 0 1px rgba(44, 24, 16, 0.08); }
.jim-subject-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jim-subject-media--logo { background: #fff; }
.jim-subject-media .jim-subject-logo { object-fit: contain; }
.jim-subject-word {
    display: flex; align-items: center; justify-content: center; height: 100%; padding: 1rem;
    background: var(--jim-night); color: var(--jim-on-dark); font-family: var(--font-heading); font-size: 1.6rem; text-align: center; line-height: 1.2;
}
.jim-subject-body { position: relative; display: block; padding: 0 2.5rem 0 0; min-width: 0; }
.jim-subject-meta { overflow-wrap: anywhere; }
.jim-subject .jim-badge { position: relative; margin: -1.4rem 0 0 1rem; box-shadow: 0 0 0 4px var(--jim-paper); }
.jim-subject-title { display: block; margin: 0.7rem 0 0.35rem; font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.25; text-wrap: pretty; }
.jim-subject-meta { display: block; font-size: 1rem; color: var(--jim-ink-3); }
.jim-subject-arrow { position: absolute; right: 0.25rem; top: 1.1rem; color: var(--jim-gold-ink); transition: transform .18s ease, color .18s ease; }
.jim-subject a:hover .jim-subject-title, .jim-subject a:focus-visible .jim-subject-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; color: var(--jim-link-hover); }
.jim-subject a:hover .jim-subject-arrow, .jim-subject a:focus-visible .jim-subject-arrow { transform: translateX(4px); color: var(--jim-link-hover); }
@media (max-width: 991.98px) { .jim-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .jim-subjects-wrap { padding: 3.5rem 0 3rem; }
    .jim-subjects { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--jim-rule); }
    .jim-subject { border-bottom: 1px solid var(--jim-rule); }
    .jim-subject a { position: relative; flex-direction: row; align-items: flex-start; gap: 1.1rem; padding: 1.1rem 0 1.25rem; min-height: 96px; }
    .jim-subject-media { flex: 0 0 88px; width: 88px; aspect-ratio: 1; }
    .jim-subject-word { font-size: 0.9rem; padding: 0.4rem; }
    .jim-subject-body { position: static; flex: 1 1 auto; padding: 0.1rem 2rem 0 0; }
    .jim-subject .jim-badge {
        position: absolute; left: 6px; top: calc(1.1rem + 88px - 1.15rem); margin: 0;
        width: 2.3rem; height: 2.3rem; font-size: 1.1rem; box-shadow: 0 0 0 3px var(--jim-paper);
    }
    .jim-subject-title { margin: 0 0 0.25rem; font-size: 1.2rem; }
    .jim-subject-meta { font-size: 1rem; }
    .jim-subject-arrow { top: 50%; right: 0; margin-top: -10px; }
}

/* Mission and Vision, given weight */
.jim-mission { background: var(--jim-wash); padding: 4.75rem 0; }
.jim-mission-grid { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem 4.5rem; align-items: start; }
.jim-home-content .jim-home-mission-label { font-size: 1.0625rem; font-weight: 700; color: var(--jim-ink-2); margin: 0.65rem 0 0; }
.jim-home-content .jim-home-mission {
    font-family: var(--font-heading); font-size: clamp(1.7rem, 2.9vw, 2.55rem); line-height: 1.28; color: var(--jim-ink);
    margin: 0 0 1.5rem; max-width: 34ch; text-wrap: pretty;
}
.jim-home-content .jim-home-slogan { font-family: var(--font-heading); font-size: 1.5rem; color: var(--jim-gold-ink); margin: 0; }
.jim-home-content .jim-home-slogan em { font-style: italic; }
@media (max-width: 991.98px) {
    .jim-mission { padding: 3.5rem 0; }
    .jim-mission-grid { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
    .jim-home-content .jim-home-mission-label { margin-top: 0; }
}

/* founders, Trustees, Emeritus Trustees and Advisors */
.jim-trust { padding: 4.5rem 0 3rem; }
.jim-trust-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2.5rem 4.5rem; align-items: start; }
.jim-trust-grid--solo { grid-template-columns: minmax(0, 1fr); }
.jim-trust-text > .jim-p:first-child { font-size: 1.375rem; line-height: 1.65; color: var(--jim-ink); }
.jim-trust-roster .jim-roster { margin: 0; }
.jim-roster { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; padding: 1.75rem 1.75rem 1.5rem; background: var(--jim-wash); border-radius: var(--jim-radius); }
.jim-content .jim-roster-head { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.25; margin: 0 0 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--jim-rule-2); }
.jim-roster ul { list-style: none; margin: 0; padding: 0; }
.jim-roster li { padding: 0.18rem 0; font-size: 1.0625rem; line-height: 1.45; }
@media (max-width: 991.98px) {
    .jim-trust { padding: 3.5rem 0 1rem; }
    .jim-trust-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 575.98px) { .jim-roster { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; padding: 1.25rem 1rem; } .jim-roster li { font-size: 1rem; } }

/* introduction */
.jim-intro { padding: 4.5rem 0 5rem; }
.jim-intro-grid { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 1rem 4.5rem; align-items: start; border-top: 1px solid var(--jim-rule); padding-top: 4.5rem; }
.jim-intro-title { margin: 0; font-size: clamp(1.9rem, 2.8vw, 2.4rem); }
.jim-intro-text > .jim-p:first-child { font-size: 1.3125rem; line-height: 1.65; color: var(--jim-ink); }
@media (max-width: 991.98px) {
    .jim-intro { padding: 2.5rem 0 3.5rem; }
    .jim-intro-grid { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; }
    .jim-intro-title { margin-bottom: 1rem; }
}

/* Current Projects */
.jim-projects-band { background: var(--jim-wash); padding: 5rem 0 5.5rem; }
.jim-band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2.25rem; }
.jim-band-head .jim-section-title { margin: 0; }
.jim-band-link { font-size: 1.0625rem; font-weight: 700; color: var(--jim-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.jim-projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.jim-projects--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jim-projects--rest { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin-top: 1.75rem; }
.jim-project-link {
    display: flex; flex-direction: column; height: 100%; background: var(--jim-paper); color: var(--jim-ink);
    border: 1px solid var(--jim-rule); border-radius: var(--jim-radius); overflow: hidden; text-decoration: none;
}
.jim-project-link:hover { border-color: var(--jim-ink-3); }
.jim-project-link:hover .jim-project-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.jim-project-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--jim-wash-2); }
.jim-project-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jim-project-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1 1 auto; }
.jim-project-title { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.22; }
.jim-project--feature .jim-project-title { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.jim-project--feature .jim-project-body { padding: 1.6rem 1.75rem 1.9rem; }
.jim-project-line { font-size: 1.0625rem; line-height: 1.5; color: var(--jim-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jim-project-place { margin-top: auto; padding-top: 0.35rem; font-size: 1rem; color: var(--jim-ink-3); }
.jim-project--text .jim-project-body { padding-top: 1.6rem; }
@media (max-width: 767.98px) {
    .jim-projects-band { padding: 3.5rem 0 4rem; }
    .jim-projects--feature { grid-template-columns: minmax(0, 1fr); }
    .jim-projects { gap: 1.25rem; }
    .jim-projects--rest { margin-top: 1.25rem; }
}

/* Contribute */
.jim-contribute-band { background: var(--jim-night); color: var(--jim-on-dark); padding: 4.25rem 0; }
.jim-contribute-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.jim-contribute-title { font-family: var(--font-heading); font-weight: 400; color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; margin: 0 0 0.75rem; }
.jim-contribute-note { margin: 0; font-size: 1.0625rem; color: var(--jim-on-dark-2); max-width: 44rem; }
.jim-contribute-cta { margin: 0; }
@media (max-width: 767.98px) {
    .jim-contribute-band { padding: 3.25rem 0; }
    .jim-contribute-grid { grid-template-columns: minmax(0, 1fr); }
    .jim-contribute-cta .jim-btn { width: 100%; justify-content: center; }
}

/* Projects page, /journey/ */
.jim-projects-page .jim-projects--feature { margin-top: 0; }
.jim-empty { font-size: 1.125rem; color: var(--jim-ink-2); }
.jim-toc-ch { margin: 0 0 3.5rem; }
.jim-toc-title { display: flex; align-items: center; gap: 1rem; font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--jim-rule); }
.jim-toc-title a { color: var(--jim-ink); text-decoration: none; }
.jim-toc-title a:hover { color: var(--jim-link-hover); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.jim-toc-list a { font-size: 1.0625rem; }

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

.site-footer.jim-footer { background: var(--jim-night-2); color: var(--jim-on-dark-2); padding: 4.5rem 0 0; margin: 0; }
.jim-footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 2.5rem 4rem; padding-bottom: 3.5rem; }
.jim-footer-name { font-family: var(--font-heading); font-size: 1.85rem; line-height: 1.15; color: #fff; margin: 0 0 0.35rem; }
.jim-footer-slogan { font-family: var(--font-heading); font-style: italic; font-size: 1.2rem; color: var(--jim-gold-on-dark); margin: 0 0 1.5rem; }
.jim-footer-address { font-style: normal; font-size: 1.0625rem; line-height: 1.6; margin: 0 0 0.75rem; color: var(--jim-on-dark-2); }
.jim-footer-contact { margin: 0; }
.jim-footer a { color: var(--jim-on-dark); text-decoration: underline; text-decoration-color: rgba(216, 190, 132, 0.5); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.jim-footer a:hover { color: #fff; text-decoration-color: var(--jim-gold-on-dark); }
.jim-footer-head { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--jim-gold-on-dark); margin: 0 0 1rem; letter-spacing: 0.01em; }
.jim-footer-list { margin: 0; padding: 0 0 0 1.5rem; }
.jim-footer-list li { padding: 0.28rem 0; font-size: 1.0625rem; line-height: 1.4; }
.jim-footer-list li::marker { font-family: var(--font-heading); color: var(--jim-gold-on-dark); }
.jim-footer-list--plain { list-style: none; padding-left: 0; }
.jim-footer-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-bottom: 2.25rem; }
.jim-footer-partners .jim-footer-head { margin: 0; }
.jim-footer-logos { display: flex; align-items: center; gap: 1.5rem; }
.jim-footer-logos a { display: block; line-height: 0; text-decoration: none; }
.jim-footer-logos img { display: block; height: 64px; width: auto; }
.jim-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; padding-bottom: 1.75rem; border-top: 1px solid rgba(244, 237, 224, 0.14); font-size: 1rem; }
.jim-footer-base p { margin: 0; }
@media (max-width: 991.98px) { .jim-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .jim-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .site-footer.jim-footer { padding-top: 3.25rem; } .jim-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* ------------------------------------------------------------------ lightbox + back to top */

.jim-lightbox {
    position: fixed; inset: 0; z-index: 100000; background: rgba(24, 14, 8, 0.94);
    display: flex; align-items: center; justify-content: center; padding: 4rem 1rem 1rem; cursor: zoom-out;
}
.jim-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); background: #fff; }
.jim-lightbox-close {
    position: absolute; top: 0.85rem; right: 0.85rem; min-height: 44px; background: #fff; color: var(--jim-ink); border: 0;
    border-radius: 3px; padding: 0.5rem 1rem; font-weight: 700; font-size: 1.0625rem; cursor: pointer;
}
.jim-totop {
    position: fixed; right: 16px; bottom: 16px; z-index: 900; min-height: 48px; padding: 0.6rem 1rem; border-radius: 3px;
    border: 1px solid var(--jim-rule-2); background: var(--jim-paper); color: var(--jim-ink); font-weight: 700; font-size: 1rem;
    box-shadow: 0 6px 18px -8px rgba(44, 24, 16, 0.45); opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.jim-totop:hover { background: var(--jim-ink); color: #fff; border-color: var(--jim-ink); }
.jim-totop.is-on { opacity: 1; pointer-events: auto; }
@media (max-width: 575.98px) { .jim-totop { right: 12px; bottom: 12px; padding: 0.5rem 0.85rem; font-size: 0.95rem; min-height: 44px; } }

@media (prefers-reduced-motion: reduce) {
    .site-header.jim-header, .jim-jump, .jim-subject-arrow, .jim-totop { transition: none !important; }
    html { scroll-behavior: auto; }
}

@media print {
    .jim-header, .jim-index, .jim-jump, .jim-totop, .site-footer, .jim-stop-foot, .jim-prevnext, .jim-chapnav,
    .jim-projects-band, .jim-contribute-band, .jim-hero-ctas { display: none !important; }
    body.jim-site { background: #fff; }
    .jim-hero-band { background: #fff; color: var(--jim-ink); padding: 1rem 0; }
    .jim-home-content .jim-home-title { color: var(--jim-ink); }
    .jim-hero-map { margin-top: 0; }
}
