:root {
    color-scheme: light;
    --bg: #f6efe2;
    --text: #2a211a;
    --muted: #6c5948;
    --line: #d8c2a3;
    --panel: #fffaf0;
    --accent: #9b2f22;
    --accent-dark: #4a2618;
    --accent-cool: #2f5f6b;
    --pasture: #5f7442;
    --hay: #d8a94b;
    --silver: #d7d9d4;
    --warn-bg: #fff4ce;
    --warn-line: #bc8b2c;
    --shadow: rgba(65, 39, 22, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    --bg: #f6efe2;
    --text: #2a211a;
    --muted: #6c5948;
    --line: #d8c2a3;
    --panel: #fffaf0;
    --accent: #9b2f22;
    --accent-dark: #4a2618;
    --accent-cool: #2f5f6b;
    --pasture: #5f7442;
    --hay: #d8a94b;
    --silver: #d7d9d4;
    --warn-bg: #fff4ce;
    --warn-line: #bc8b2c;
    --shadow: rgba(65, 39, 22, 0.14);
    margin: 0;
    padding-bottom: 112px;
    font-family: Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(42, 33, 26, 0.2) 0, rgba(246, 239, 226, 0.42) 340px, rgba(246, 239, 226, 0.78) 760px, rgba(246, 239, 226, 0.9) 100%),
        url("images/bob-western-farm-theme.jpg") center center / cover no-repeat,
        radial-gradient(circle at 18% 12%, rgba(216, 169, 75, 0.2), transparent 30%),
        repeating-linear-gradient(90deg, rgba(74, 38, 24, 0.03) 0 1px, transparent 1px 18px),
        var(--bg);
    background-attachment: fixed, fixed, scroll, scroll, scroll;
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: var(--accent);
}

a:hover,
a:focus {
    color: var(--accent-dark);
}

::selection {
    background: #e8c36f;
    color: var(--accent-dark);
}

header,
main,
footer {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    position: relative;
    margin-top: 34px;
    padding-top: 28px;
    padding-bottom: 28px;
    border: 1px solid rgba(216, 194, 163, 0.72);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.82), rgba(246, 239, 226, 0.7)),
        url("images/bob-western-farm-theme.jpg") center center / cover no-repeat,
        repeating-linear-gradient(0deg, rgba(74, 38, 24, 0.04) 0 1px, transparent 1px 13px);
    box-shadow: 0 18px 46px rgba(42, 33, 26, 0.18);
    overflow: hidden;
}

main {
    padding-bottom: 48px;
}

footer {
    margin-top: 26px;
    margin-bottom: 34px;
    padding-top: 34px;
    padding-bottom: 34px;
    border: 1px solid rgba(216, 194, 163, 0.72);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.9), rgba(255, 250, 240, 0.62), rgba(74, 38, 24, 0.24)),
        url("images/bob-western-farm-theme.jpg") center bottom / cover no-repeat;
    color: var(--muted);
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(42, 33, 26, 0.16);
}

.back {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: bold;
}

h1 {
    max-width: 820px;
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--accent-dark);
    text-wrap: balance;
}

h2 {
    margin: 34px 0 12px;
    font-size: 24px;
    letter-spacing: 0;
    color: var(--accent-dark);
}

h3 {
    margin: 22px 0 8px;
    font-size: 18px;
    letter-spacing: 0;
    color: #64351f;
}

p {
    margin: 0 0 14px;
}

.intro {
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
    overflow-wrap: anywhere;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.nav.is-enhanced {
    display: grid;
    gap: 12px;
}

.nav-primary,
.nav-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-secondary {
    padding-top: 10px;
}

.nav-details {
    border: 1px solid rgba(216, 194, 163, 0.75);
    border-radius: 6px;
    background: rgba(255, 250, 240, 0.72);
}

.nav-details summary {
    min-height: 38px;
    padding: 8px 11px;
    color: var(--accent-dark);
    font-weight: bold;
    cursor: pointer;
}

.site-nav {
    position: relative;
    z-index: 1;
}

header .site-nav a {
    border-color: rgba(216, 194, 163, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(239, 222, 193, 0.94));
    color: var(--accent-dark);
    box-shadow: inset 0 -2px 0 rgba(74, 38, 24, 0.08);
}

header .site-nav a:hover,
header .site-nav a:focus {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.nav a {
    display: inline-block;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.97), rgba(240, 226, 202, 0.92));
    color: var(--accent-dark);
    text-decoration: none;
    box-shadow: inset 0 -2px 0 rgba(74, 38, 24, 0.08);
}

.nav a:hover,
.nav a:focus,
.link-strip a:hover,
.link-strip a:focus {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.section > h2 {
    position: relative;
    padding-bottom: 8px;
}

.section > h2::after {
    content: "";
    display: block;
    width: 86px;
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--hay), var(--pasture));
}

.card,
.note,
.source,
.story {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(250, 241, 224, 0.96));
    box-shadow: 0 8px 22px var(--shadow);
}

.card::before,
.story::before,
.source::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 6px 0 0 6px;
    background: linear-gradient(180deg, var(--accent), var(--hay));
    opacity: 0.78;
}

.card h2,
.story h2 {
    margin-top: 0;
}

.card-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.clickable-card {
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card-link:hover,
.card-link:focus,
.clickable-card:hover,
.clickable-card:focus {
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(155, 47, 34, 0.18);
    outline: none;
    transform: translateY(-2px);
}

.card-link h2 {
    color: var(--accent-dark);
}

.card-link:hover h2,
.card-link:focus h2 {
    text-decoration: underline;
}

.note {
    border-color: var(--warn-line);
    background:
        linear-gradient(90deg, rgba(155, 47, 34, 0.08), transparent 34%),
        linear-gradient(180deg, #fff8dc, var(--warn-bg));
    box-shadow: 0 10px 26px rgba(126, 82, 22, 0.14);
}

.note::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 12px;
    width: 3px;
    border-radius: 999px;
    background: var(--warn-line);
}

.note > * {
    position: relative;
    margin-left: 12px;
}

.tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(74, 38, 24, 0.18);
    background: #f1dfbb;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--accent-dark);
    font-weight: bold;
    text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
    color: var(--accent);
    text-decoration: underline;
}

.knowledge-panel,
.reader-path,
.featured-project,
.evidence-crop-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(246, 234, 212, 0.96));
    box-shadow: 0 10px 24px var(--shadow);
}

.knowledge-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border-color: rgba(155, 47, 34, 0.34);
}

.knowledge-panel h2,
.reader-path h2 {
    margin-top: 0;
}

.knowledge-panel h3 {
    margin-top: 0;
}

.reader-path-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.reader-path-button {
    display: block;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff7e8;
    color: var(--text);
    text-decoration: none;
}

.reader-path-button strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-dark);
    font-size: 18px;
}

.reader-path-button:hover,
.reader-path-button:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 8px 18px rgba(155, 47, 34, 0.15);
}

.reader-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.reader-deck .reader-path-button {
    min-height: 150px;
}

.search-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 250, 240, 0.86);
}

.search-callout p {
    margin: 0;
    color: var(--muted);
}

.evidence-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 8px;
    padding: 3px 8px;
    border: 1px solid rgba(74, 38, 24, 0.18);
    border-radius: 999px;
    background: #f1dfbb;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.evidence-badge.confirmed-record {
    border-color: rgba(47, 95, 107, 0.34);
    background: #dcebe8;
    color: #234f59;
}

.evidence-badge.family-memory {
    border-color: rgba(155, 47, 34, 0.28);
    background: #f3ddd2;
    color: #7a281f;
}

.evidence-badge.strong-lead {
    border-color: rgba(95, 116, 66, 0.35);
    background: #e4edd5;
    color: #43572e;
}

.evidence-badge.context-image {
    border-color: rgba(108, 89, 72, 0.28);
    background: #e8e1d5;
    color: #594838;
}

.evidence-badge.open-question {
    border-color: rgba(188, 139, 44, 0.4);
    background: #fff4ce;
    color: #744d13;
}

.last-reviewed {
    margin-top: 30px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 250, 240, 0.82);
    color: var(--muted);
    font-size: 14px;
}

.visual-theme-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jump-links a {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff7e8;
    color: var(--accent-dark);
    font-weight: bold;
    text-decoration: none;
}

.jump-links a:hover,
.jump-links a:focus {
    border-color: var(--accent);
    color: var(--accent);
}

.top-moments {
    counter-reset: moment;
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.top-moments li {
    counter-increment: moment;
    position: relative;
    padding: 12px 14px 12px 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff7e8;
}

.top-moments li::before {
    content: counter(moment);
    position: absolute;
    left: 14px;
    top: 13px;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: 0 8px 22px var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
    font-size: 14px;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #ead8b8;
    color: var(--accent-dark);
}

tr:last-child td {
    border-bottom: 0;
}

ul {
    padding-left: 22px;
}

.section {
    margin-top: 26px;
}

.hero-figure,
.evidence-figure {
    margin: 24px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: 0 12px 28px var(--shadow);
}

.hero-figure img,
.evidence-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-figure figcaption,
.evidence-figure figcaption {
    padding: 12px 14px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid rgba(216, 194, 163, 0.7);
    background: #fff7e8;
}

.portrait-figure {
    text-align: center;
}

.portrait-figure img {
    width: auto;
    max-width: 100%;
    max-height: 720px;
    margin: 0 auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.muted {
    color: var(--muted);
}

.prose {
    max-width: 820px;
}

.prose p {
    font-size: 17px;
}

.prose .lead {
    color: var(--muted);
    font-size: 19px;
}

.read-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
}

.link-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-strip a {
    display: inline-block;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.97), rgba(240, 226, 202, 0.92));
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: bold;
}

.media-figure {
    margin: 0 0 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 12px 28px var(--shadow);
}

.media-figure img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.media-figure figcaption {
    padding: 12px 16px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid rgba(216, 194, 163, 0.7);
    background: #fff7e8;
}

.media-figure.portrait-figure img {
    width: auto;
    max-width: 100%;
    max-height: 720px;
    margin: 0 auto;
    object-fit: contain;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.spec {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, #fffaf0, #f6ead4);
    box-shadow: 0 8px 18px var(--shadow);
}

.spec strong {
    color: var(--accent-dark);
}

.spec span {
    color: var(--text);
}

.timeline {
    position: relative;
    display: grid;
    gap: 22px;
    margin-top: 24px;
    padding: 12px 0 12px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--hay), var(--pasture));
    transform: translateX(-50%);
}

body.timeline-military-only .timeline-personal {
    display: none;
}

.timeline-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(246, 234, 212, 0.96));
    box-shadow: 0 8px 22px var(--shadow);
}

.timeline-controls h2 {
    margin: 0;
    font-size: 19px;
}

.timeline-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-toggle-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(240, 226, 202, 0.92));
    color: var(--accent-dark);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.timeline-toggle-button:hover,
.timeline-toggle-button:focus {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.timeline-toggle-button.is-active {
    border-color: var(--accent);
    background: linear-gradient(180deg, #b43c2c, var(--accent));
    color: #ffffff;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    align-items: start;
    min-height: 120px;
}

.timeline-item::before {
    content: "";
    z-index: 1;
    grid-column: 2;
    justify-self: center;
    width: 18px;
    height: 18px;
    margin-top: 24px;
    border: 4px solid #fff7e8;
    border-radius: 50%;
    background: var(--hay);
    box-shadow: 0 0 0 2px var(--accent-dark), 0 4px 12px var(--shadow);
}

.timeline-card {
    position: relative;
    grid-column: 1;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(249, 239, 218, 0.98));
    box-shadow: 0 10px 24px var(--shadow);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.timeline-item:nth-child(even) .timeline-card {
    grid-column: 3;
}

.timeline-item.timeline-left .timeline-card {
    grid-column: 1;
}

.timeline-item.timeline-right .timeline-card {
    grid-column: 3;
}

.timeline-card:hover,
.timeline-card:focus,
.timeline-card:focus-within {
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(155, 47, 34, 0.18);
    outline: none;
    transform: translateY(-2px);
}

.timeline-date {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: bold;
}

.timeline-kind {
    display: inline-block;
    margin: 0 0 7px;
    padding: 2px 8px;
    border: 1px solid rgba(47, 95, 107, 0.22);
    border-radius: 999px;
    background: rgba(47, 95, 107, 0.1);
    color: var(--accent-cool);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.timeline-personal .timeline-card {
    border-color: rgba(47, 95, 107, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(239, 246, 231, 0.96));
}

.timeline-personal .timeline-date {
    color: var(--accent-cool);
}

.timeline-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.timeline-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease, padding-top 180ms ease;
}

.timeline-card:hover .timeline-detail,
.timeline-card:focus .timeline-detail,
.timeline-card:focus-within .timeline-detail {
    max-height: 720px;
    padding-top: 10px;
    opacity: 1;
}

.timeline-card dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 6px 12px;
    margin: 14px 0 0;
}

.timeline-card dt {
    color: var(--muted);
    font-weight: bold;
}

.timeline-card dd {
    margin: 0;
}

.timeline-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.timeline-sources a {
    display: inline-block;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff7e8;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.timeline-sources a:hover,
.timeline-sources a:focus {
    border-color: var(--accent);
    background: #f1dfbb;
}

.mission-map-shell {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(246, 234, 212, 0.96));
    box-shadow: 0 12px 28px var(--shadow);
}

.mission-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.mission-map-filter {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(240, 226, 202, 0.92));
    color: var(--accent-dark);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.mission-map-filter:hover,
.mission-map-filter:focus {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.mission-map-filter.is-active {
    border-color: var(--accent);
    background: linear-gradient(180deg, #b43c2c, var(--accent));
    color: #ffffff;
}

.mission-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 16px;
    align-items: stretch;
}

.mission-map {
    min-height: 620px;
    border: 1px solid rgba(74, 38, 24, 0.28);
    border-radius: 6px;
    overflow: hidden;
    background: #ead8b8;
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.5);
}

.mission-map-loading {
    display: grid;
    place-items: center;
    min-height: 620px;
    margin: 0;
    color: var(--muted);
    font-weight: bold;
}

.mission-map-detail {
    min-height: 620px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff7e8;
    box-shadow: inset 5px 0 0 rgba(155, 47, 34, 0.2);
}

.mission-map-detail h2 {
    margin-top: 0;
    font-size: 22px;
}

.mission-map-detail dl {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 6px 10px;
    margin: 14px 0;
    font-size: 14px;
}

.mission-map-detail dt {
    color: var(--muted);
    font-weight: bold;
}

.mission-map-detail dd {
    margin: 0;
}

.mission-map-detail .read-link {
    margin-top: 0;
}

.mission-map-marker {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #fffaf0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(42, 33, 26, 0.3);
}

.mission-map-marker.base {
    background: var(--accent-cool);
}

.mission-map-marker.route {
    background: var(--pasture);
}

.mission-map-marker.open-question {
    background: var(--warn-line);
    color: var(--accent-dark);
}

.mission-map-popup {
    max-width: 240px;
}

.mission-map-popup strong {
    display: block;
    color: var(--accent-dark);
}

.mission-map-popup span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.game-shell {
    margin-top: 22px;
    border: 1px solid rgba(216, 194, 163, 0.88);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(239, 226, 202, 0.9)),
        repeating-linear-gradient(90deg, rgba(74, 38, 24, 0.035) 0 1px, transparent 1px 18px);
    box-shadow: 0 16px 36px rgba(42, 33, 26, 0.14);
    overflow: hidden;
}

.game-brief {
    padding: 22px;
    border-bottom: 1px solid rgba(216, 194, 163, 0.78);
    background:
        linear-gradient(135deg, rgba(74, 38, 24, 0.08), rgba(47, 95, 107, 0.08)),
        rgba(255, 250, 240, 0.88);
}

.game-brief h2,
.game-controls h2 {
    margin-top: 8px;
}

.game-brief.is-collapsed {
    display: none;
}

.game-brief ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.game-command-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.game-command,
.game-touch-controls button {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(239, 222, 193, 0.95));
    color: var(--accent-dark);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 rgba(74, 38, 24, 0.08);
}

.game-command.primary,
.game-touch-controls .primary {
    border-color: rgba(74, 38, 24, 0.7);
    background:
        linear-gradient(180deg, #b5422e, #7d2b20);
    color: #fffaf0;
}

.game-command:hover,
.game-command:focus,
.game-touch-controls button:hover,
.game-touch-controls button:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(155, 47, 34, 0.18);
    outline-offset: 2px;
}

.game-stage {
    position: relative;
    padding: 14px;
    background: #2b3527;
}

#b26-game-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 96 / 62;
    border: 1px solid rgba(255, 250, 240, 0.22);
    border-radius: 8px;
    background: #39543b;
    box-shadow: inset 0 0 0 1px rgba(42, 33, 26, 0.45);
}

.game-screenreader {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.game-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: center;
    padding: 18px 22px 22px;
}

.game-controls p {
    color: var(--muted);
}

.game-touch-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.game-touch-controls [data-game-action="up"] {
    grid-column: 2;
}

.game-touch-controls [data-game-action="left"] {
    grid-column: 1;
}

.game-touch-controls [data-game-action="bomb"] {
    grid-column: 2;
}

.game-touch-controls [data-game-action="right"] {
    grid-column: 3;
}

.game-touch-controls [data-game-action="down"] {
    grid-column: 2;
}

.wiki-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, #fffaf0, #f5e7cd);
    box-shadow: 0 10px 24px var(--shadow);
}

.toc h2 {
    margin-top: 0;
    font-size: 18px;
}

.toc ol {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
}

.toc li {
    margin-bottom: 7px;
}

.toc-sub {
    margin-left: 12px;
}

.wiki-content {
    min-width: 0;
}

.wiki-content h2 {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.wiki-content h2:first-child {
    padding-top: 0;
    border-top: 0;
}

.wiki-content code {
    padding: 1px 4px;
    border-radius: 4px;
    background: #ead8b8;
}

.bob-radio {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(560px, calc(100vw - 36px));
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(239, 222, 193, 0.96));
    box-shadow: 0 12px 30px rgba(42, 33, 26, 0.24);
}

.bob-radio.is-hidden {
    display: none;
}

.bob-radio-hide,
.bob-radio-show-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--accent-dark);
    font: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.bob-radio-hide:hover,
.bob-radio-hide:focus,
.bob-radio-show-tab:hover,
.bob-radio-show-tab:focus {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.bob-radio-show-tab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    box-shadow: 0 10px 24px rgba(42, 33, 26, 0.2);
}

.bob-radio-show-tab[hidden] {
    display: none;
}

.bob-radio-text {
    display: grid;
    gap: 2px;
    min-width: 170px;
}

.bob-radio-text strong {
    color: var(--accent);
    font-size: 14px;
}

.bob-radio-text span {
    color: var(--muted);
    font-size: 13px;
}

.bob-radio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bob-radio-button,
.bob-radio-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: linear-gradient(180deg, #b43c2c, var(--accent));
    color: #ffffff;
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.bob-radio-button:hover,
.bob-radio-button:focus,
.bob-radio-fallback:hover,
.bob-radio-fallback:focus {
    border-color: var(--accent-dark);
    background: linear-gradient(180deg, #63311f, var(--accent-dark));
    color: #ffffff;
    outline: none;
}

.bob-radio-audio {
    width: 220px;
    max-width: 100%;
    height: 36px;
}

.bob-radio-fallback {
    border-color: var(--line);
    background: var(--panel);
    color: var(--accent-dark);
}

.bob-radio-volume {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 145px;
    color: var(--muted);
    font-size: 13px;
}

.bob-radio-volume input {
    width: 92px;
    accent-color: var(--accent);
}

.bob-page-loading main {
    opacity: 0.62;
}

@media (max-width: 640px) {
    body {
        background:
            linear-gradient(180deg, rgba(42, 33, 26, 0.18) 0, rgba(246, 239, 226, 0.5) 300px, rgba(246, 239, 226, 0.9) 720px, rgba(246, 239, 226, 0.94) 100%),
            url("images/bob-western-farm-theme.jpg") center top / auto 520px no-repeat,
            repeating-linear-gradient(90deg, rgba(74, 38, 24, 0.035) 0 1px, transparent 1px 18px),
            var(--bg);
        background-attachment: scroll, scroll, scroll, scroll;
    }

    header,
    main,
    footer {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        min-width: 0;
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 18px;
        padding-right: 18px;
    }

    header {
        margin-top: 18px;
        padding-top: 22px;
        padding-bottom: 22px;
        border-radius: 7px;
    }

    h1 {
        font-size: 28px;
    }

    .intro {
        font-size: 17px;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-width: 0;
    }

    .nav.is-enhanced {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav-primary,
    .nav-secondary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .nav-details {
        min-width: 0;
    }

    .nav a,
    header .site-nav a {
        padding: 7px 9px;
        font-size: 15px;
        text-align: center;
    }

    .nav a {
        width: 100%;
    }

    .nav a:last-child {
        grid-column: 1 / -1;
    }

    .nav-secondary a:last-child {
        grid-column: auto;
    }

    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .timeline {
        gap: 18px;
        padding-left: 28px;
    }

    .timeline::before {
        left: 9px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .timeline-item::before {
        position: absolute;
        left: -27px;
        grid-column: auto;
        margin-top: 24px;
    }

    .timeline-card,
    .timeline-item.timeline-left .timeline-card,
    .timeline-item.timeline-right .timeline-card,
    .timeline-item:nth-child(even) .timeline-card {
        grid-column: 1;
    }

    .timeline-controls {
        align-items: stretch;
    }

    .mission-map-shell {
        padding: 12px;
    }

    .mission-map-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission-map-filter {
        width: 100%;
        padding: 7px 8px;
        font-size: 14px;
    }

    .mission-map-layout {
        grid-template-columns: 1fr;
    }

    .mission-map,
    .mission-map-loading {
        min-height: 440px;
    }

    .mission-map-detail {
        min-height: 0;
    }

    .mission-map-detail dl {
        grid-template-columns: 1fr;
    }

    .game-brief {
        padding: 16px;
    }

    .game-stage {
        padding: 8px;
    }

    #b26-game-canvas {
        aspect-ratio: 3 / 2.25;
    }

    .game-controls {
        grid-template-columns: 1fr;
        padding: 14px 16px 18px;
    }

    .game-touch-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-touch-controls button {
        min-height: 42px;
        padding: 7px 8px;
        font-size: 14px;
    }

    .timeline-toggle {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .timeline-toggle-button {
        width: 100%;
    }

    .timeline-detail {
        max-height: none;
        padding-top: 10px;
        opacity: 1;
    }

    .timeline-card dl {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        max-height: none;
    }

    body {
        padding-bottom: 82px;
    }

    .bob-radio {
        right: 8px;
        bottom: 8px;
        left: auto;
        display: flex;
        width: min(292px, calc(100vw - 16px));
        gap: 6px;
        padding: 8px;
    }

    .bob-radio.is-mobile-collapsed {
        display: none;
    }

    .bob-radio-show-tab {
        right: 8px;
        bottom: 8px;
    }

    .bob-radio-text {
        display: none;
    }

    .bob-radio-audio {
        width: 178px;
        height: 32px;
    }

    .bob-radio-volume {
        display: none;
    }

    .bob-radio-fallback {
        min-height: 32px;
        padding: 5px 8px;
        font-size: 13px;
    }

    .bob-radio-hide {
        min-height: 32px;
        padding: 5px 8px;
        font-size: 13px;
    }

    .knowledge-panel,
    .reader-path-buttons {
        grid-template-columns: 1fr;
    }

    .reader-deck {
        grid-template-columns: 1fr;
    }

    .search-callout {
        grid-template-columns: 1fr;
    }

    table.responsive-table {
        min-width: 0;
    }

    table.responsive-table,
    table.responsive-table thead,
    table.responsive-table tbody,
    table.responsive-table tr,
    table.responsive-table th,
    table.responsive-table td {
        display: block;
        width: 100%;
    }

    table.responsive-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    table.responsive-table tr {
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
    }

    table.responsive-table tr:last-child {
        border-bottom: 0;
    }

    table.responsive-table td {
        padding: 0;
        border-bottom: 0;
    }

    table.responsive-table td + td {
        margin-top: 10px;
    }

    table.responsive-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: var(--accent-dark);
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
    }
}

/* Warm glass layer: keeps the western/farm identity while echoing the top-level site refresh. */
body {
    --glass-bg: rgba(255, 250, 240, 0.68);
    --glass-strong: rgba(255, 250, 240, 0.84);
    --glass-warm: rgba(241, 223, 187, 0.46);
    --glass-line: rgba(255, 250, 240, 0.7);
    --glass-edge: rgba(216, 194, 163, 0.56);
    --glass-shadow: 0 18px 46px rgba(42, 33, 26, 0.18);
    --glass-shadow-hover: 0 24px 56px rgba(74, 38, 24, 0.22);
    --glass-highlight: inset 0 1px 0 rgba(255, 250, 240, 0.88), inset 0 -1px 0 rgba(74, 38, 24, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.16) 0 12%, transparent 12% 100%),
        linear-gradient(210deg, rgba(215, 217, 212, 0.28) 0 22%, transparent 22% 100%),
        linear-gradient(180deg, rgba(42, 33, 26, 0.2) 0, rgba(246, 239, 226, 0.4) 340px, rgba(246, 239, 226, 0.72) 760px, rgba(246, 239, 226, 0.88) 100%),
        url("images/bob-western-farm-theme.jpg") center center / cover no-repeat,
        radial-gradient(circle at 18% 12%, rgba(216, 169, 75, 0.2), transparent 30%),
        repeating-linear-gradient(90deg, rgba(74, 38, 24, 0.03) 0 1px, transparent 1px 18px),
        var(--bg);
    background-attachment: fixed, fixed, fixed, fixed, scroll, scroll, scroll;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.14) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 250, 240, 0.12) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 76%);
}

header {
    border-color: var(--glass-edge);
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.84), rgba(246, 239, 226, 0.58)),
        linear-gradient(90deg, rgba(155, 47, 34, 0.09), rgba(216, 169, 75, 0.08), rgba(47, 95, 107, 0.08)),
        url("images/bob-western-farm-theme.jpg") center center / cover no-repeat,
        repeating-linear-gradient(0deg, rgba(74, 38, 24, 0.04) 0 1px, transparent 1px 13px);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

footer {
    border-color: var(--glass-edge);
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.86), rgba(255, 250, 240, 0.56), rgba(74, 38, 24, 0.18)),
        url("images/bob-western-farm-theme.jpg") center bottom / cover no-repeat;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

header .site-nav {
    position: sticky;
    top: 12px;
    width: fit-content;
    max-width: 100%;
    padding: 7px;
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.86), rgba(241, 223, 187, 0.58));
    box-shadow: 0 12px 28px rgba(42, 33, 26, 0.16), var(--glass-highlight);
}

header .site-nav a,
.nav a,
.link-strip a,
.jump-links a,
.timeline-sources a,
.timeline-toggle-button,
.mission-map-filter,
.game-command,
.game-touch-controls button,
.bob-radio-hide,
.bob-radio-show-tab,
.bob-radio-button,
.bob-radio-fallback {
    border-color: rgba(255, 250, 240, 0.72);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(240, 226, 202, 0.62));
    box-shadow: var(--glass-highlight);
}

.bob-radio-button,
.game-command.primary,
.game-touch-controls .primary,
.timeline-toggle-button.is-active,
.mission-map-filter.is-active {
    border-color: rgba(74, 38, 24, 0.7);
    background: linear-gradient(180deg, #b5422e, #7d2b20);
    color: #fffaf0;
}

.card,
.note,
.source,
.story,
.knowledge-panel,
.reader-path,
.featured-project,
.evidence-crop-card,
.reader-path-button,
.search-callout,
.last-reviewed,
.table-wrap,
.hero-figure,
.evidence-figure,
.media-figure,
.spec,
.timeline-controls,
.timeline-card,
.mission-map-shell,
.mission-map-detail,
.game-shell,
.toc,
.bob-radio,
.nav-details {
    border-color: var(--glass-edge);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 250, 240, 0.86), rgba(250, 241, 224, 0.58)),
        linear-gradient(180deg, var(--glass-warm), transparent 64%);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.note {
    border-color: var(--warn-line);
    background:
        linear-gradient(90deg, rgba(155, 47, 34, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 248, 220, 0.86), rgba(255, 244, 206, 0.58));
}

.knowledge-panel,
.reader-path,
.featured-project,
.evidence-crop-card,
.mission-map-shell,
.timeline-controls {
    background:
        linear-gradient(145deg, rgba(255, 250, 240, 0.86), rgba(246, 234, 212, 0.58)),
        linear-gradient(90deg, rgba(216, 169, 75, 0.13), rgba(47, 95, 107, 0.08));
}

.reader-path-button,
.top-moments li,
.mission-map-detail,
.hero-figure figcaption,
.evidence-figure figcaption,
.media-figure figcaption,
.timeline-sources a,
.jump-links a {
    background: rgba(255, 247, 232, 0.76);
}

.evidence-badge {
    background: rgba(241, 223, 187, 0.78);
    box-shadow: var(--glass-highlight);
}

.card-link:hover,
.card-link:focus,
.clickable-card:hover,
.clickable-card:focus,
.reader-path-button:hover,
.reader-path-button:focus,
.timeline-card:hover,
.timeline-card:focus,
.timeline-card:focus-within {
    box-shadow: var(--glass-shadow-hover), var(--glass-highlight);
}

@supports ((-webkit-backdrop-filter: blur(18px)) or (backdrop-filter: blur(18px))) {
    header,
    footer,
    header .site-nav,
    .nav-details,
    .card,
    .note,
    .source,
    .story,
    .knowledge-panel,
    .reader-path,
    .featured-project,
    .evidence-crop-card,
    .reader-path-button,
    .search-callout,
    .last-reviewed,
    .table-wrap,
    .hero-figure,
    .evidence-figure,
    .media-figure,
    .spec,
    .timeline-controls,
    .timeline-card,
    .mission-map-shell,
    .mission-map-detail,
    .game-shell,
    .game-brief,
    .toc,
    .bob-radio,
    .bob-radio-hide,
    .bob-radio-show-tab,
    .bob-radio-fallback,
    .nav a,
    .link-strip a,
    .jump-links a,
    .timeline-sources a,
    .mission-map-filter,
    .timeline-toggle-button,
    .game-command,
    .game-touch-controls button {
        -webkit-backdrop-filter: blur(18px) saturate(145%);
        backdrop-filter: blur(18px) saturate(145%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-link,
    .clickable-card,
    .timeline-card,
    .nav a,
    .reader-path-button,
    .mission-map-filter,
    .timeline-toggle-button,
    .game-command,
    .game-touch-controls button {
        transition: none;
    }

    .card-link:hover,
    .card-link:focus,
    .clickable-card:hover,
    .clickable-card:focus,
    .timeline-card:hover,
    .timeline-card:focus,
    .timeline-card:focus-within {
        transform: none;
    }
}

@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
    header,
    footer,
    header .site-nav,
    .card,
    .note,
    .source,
    .story,
    .knowledge-panel,
    .reader-path,
    .featured-project,
    .evidence-crop-card,
    .reader-path-button,
    .search-callout,
    .last-reviewed,
    .table-wrap,
    .hero-figure,
    .evidence-figure,
    .media-figure,
    .spec,
    .timeline-controls,
    .timeline-card,
    .mission-map-shell,
    .mission-map-detail,
    .game-shell,
    .toc,
    .bob-radio {
        background: var(--panel);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (max-width: 640px) {
    body {
        background:
            linear-gradient(135deg, rgba(255, 250, 240, 0.12) 0 18%, transparent 18% 100%),
            linear-gradient(180deg, rgba(42, 33, 26, 0.18) 0, rgba(246, 239, 226, 0.5) 300px, rgba(246, 239, 226, 0.9) 720px, rgba(246, 239, 226, 0.94) 100%),
            url("images/bob-western-farm-theme.jpg") center top / auto 520px no-repeat,
            repeating-linear-gradient(90deg, rgba(74, 38, 24, 0.035) 0 1px, transparent 1px 18px),
            var(--bg);
        background-attachment: scroll, scroll, scroll, scroll, scroll;
    }

    header,
    main,
    footer {
        width: auto;
        max-width: none;
    }

    header .site-nav {
        border-radius: 8px;
    }

    header .site-nav a,
    .nav a,
    .link-strip a,
    .jump-links a,
    .timeline-sources a,
    .timeline-toggle-button,
    .mission-map-filter,
    .game-command,
    .game-touch-controls button {
        border-radius: 8px;
    }
}

/* Clearer warm glass pass: lets more of the Bob project background show through. */
body {
    --glass-bg: rgba(255, 250, 240, 0.46);
    --glass-strong: rgba(255, 250, 240, 0.62);
    --glass-warm: rgba(241, 223, 187, 0.32);
    --glass-line: rgba(255, 250, 240, 0.5);
    --glass-edge: rgba(216, 194, 163, 0.42);
    --glass-highlight: inset 0 1px 0 rgba(255, 250, 240, 0.72), inset 0 -1px 0 rgba(74, 38, 24, 0.08);
}

header {
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.62), rgba(246, 239, 226, 0.32)),
        linear-gradient(90deg, rgba(155, 47, 34, 0.08), rgba(216, 169, 75, 0.07), rgba(47, 95, 107, 0.07)),
        url("images/bob-western-farm-theme.jpg") center center / cover no-repeat,
        repeating-linear-gradient(0deg, rgba(74, 38, 24, 0.04) 0 1px, transparent 1px 13px);
}

footer {
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.62), rgba(255, 250, 240, 0.34), rgba(74, 38, 24, 0.16)),
        url("images/bob-western-farm-theme.jpg") center bottom / cover no-repeat;
}

header .site-nav {
    border-color: var(--glass-edge);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.58), rgba(241, 223, 187, 0.34));
}

header .site-nav a,
.nav a,
.link-strip a,
.jump-links a,
.timeline-sources a,
.timeline-toggle-button,
.mission-map-filter,
.game-command,
.game-touch-controls button,
.bob-radio-hide,
.bob-radio-show-tab,
.bob-radio-button,
.bob-radio-fallback {
    border-color: rgba(255, 250, 240, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.58), rgba(240, 226, 202, 0.34));
}

.card,
.note,
.source,
.story,
.knowledge-panel,
.reader-path,
.featured-project,
.evidence-crop-card,
.reader-path-button,
.search-callout,
.last-reviewed,
.table-wrap,
.hero-figure,
.evidence-figure,
.media-figure,
.spec,
.timeline-controls,
.timeline-card,
.mission-map-shell,
.mission-map-detail,
.game-shell,
.toc,
.bob-radio,
.nav-details {
    border-color: var(--glass-edge);
    background:
        linear-gradient(145deg, rgba(255, 250, 240, 0.58), rgba(250, 241, 224, 0.28)),
        linear-gradient(180deg, var(--glass-warm), transparent 64%);
}

.note {
    background:
        linear-gradient(90deg, rgba(155, 47, 34, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(255, 248, 220, 0.58), rgba(255, 244, 206, 0.34));
}

.knowledge-panel,
.reader-path,
.featured-project,
.evidence-crop-card,
.mission-map-shell,
.timeline-controls {
    background:
        linear-gradient(145deg, rgba(255, 250, 240, 0.58), rgba(246, 234, 212, 0.3)),
        linear-gradient(90deg, rgba(216, 169, 75, 0.11), rgba(47, 95, 107, 0.07));
}

.reader-path-button,
.top-moments li,
.mission-map-detail,
.hero-figure figcaption,
.evidence-figure figcaption,
.media-figure figcaption,
.timeline-sources a,
.jump-links a,
.last-reviewed {
    background: rgba(255, 247, 232, 0.48);
}

.evidence-badge {
    background: rgba(241, 223, 187, 0.56);
}

@supports ((-webkit-backdrop-filter: blur(18px)) or (backdrop-filter: blur(18px))) {
    header,
    footer,
    header .site-nav,
    .nav-details,
    .card,
    .note,
    .source,
    .story,
    .knowledge-panel,
    .reader-path,
    .featured-project,
    .evidence-crop-card,
    .reader-path-button,
    .search-callout,
    .last-reviewed,
    .table-wrap,
    .hero-figure,
    .evidence-figure,
    .media-figure,
    .spec,
    .timeline-controls,
    .timeline-card,
    .mission-map-shell,
    .mission-map-detail,
    .game-shell,
    .game-brief,
    .toc,
    .bob-radio,
    .bob-radio-hide,
    .bob-radio-show-tab,
    .bob-radio-fallback,
    .nav a,
    .link-strip a,
    .jump-links a,
    .timeline-sources a,
    .mission-map-filter,
    .timeline-toggle-button,
    .game-command,
    .game-touch-controls button {
        -webkit-backdrop-filter: blur(28px) saturate(165%);
        backdrop-filter: blur(28px) saturate(165%);
    }
}
