/* ==========================================================================
   Jenness Enterprises — Tool Reference stylesheet
   Self-contained: system fonts only, no external resources, file:// safe.
   Palette: forest green + parchment, after the Jenness Enterprises brand.
   ========================================================================== */

:root {
  --green-deep:   #24462f;   /* header band, h1 */
  --green:        #2e5d43;   /* links, accents */
  --green-soft:   #e7efe7;   /* hover fills, callout tint */
  --gold:         #c9a227;   /* thin accent rules */
  --parchment:    #f6f3ea;   /* page ground */
  --paper:        #ffffff;   /* content card */
  --ink:          #26251f;   /* body text */
  --ink-soft:     #5c5a50;   /* secondary text */
  --line:         #ddd8c8;   /* hairlines */
  --code-bg:      #f0ede2;
  --code-block:   #23312a;   /* dark code panels */
  --code-block-ink: #e8efe6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment) url("../images/relief-background.jpg")
              center top / cover no-repeat fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- header band ---------- */
.site-header {
  background: linear-gradient(180deg, var(--green-deep) 0%, #1d3a27 100%);
  color: #f4f1e4;
  border-bottom: 3px solid var(--gold);
}
.site-header .band {
  max-width: 1420px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header img.logo {
  height: 44px; width: auto;
  image-rendering: auto;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
}
.site-header .wordmark { line-height: 1.25; }
.site-header .wordmark .brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.site-header .wordmark .brand a { color: inherit; text-decoration: none; }
.site-header .wordmark .tagline {
  font-size: 0.82rem;
  color: #cfdcc9;
}
.site-header .spacer { flex: 1; }
.site-header .extlink {
  font-size: 0.85rem;
  color: #cfdcc9;
  text-decoration: none;
  border: 1px solid rgba(244,241,228,0.35);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-header .extlink:hover { background: rgba(244,241,228,0.12); color: #fff; }

/* ---------- top navigation strip ---------- */
.site-header nav.topnav {
  border-top: 1px solid rgba(244, 241, 228, 0.22);
  background: rgba(0, 0, 0, 0.14);
}
.site-header nav.topnav .band-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
}
.site-header nav.topnav a {
  color: #dfe8d8;
  text-decoration: none;
  font-size: 0.86rem;
  padding: 7px 14px 6px;
  border-bottom: 3px solid transparent;
}
.site-header nav.topnav a:hover {
  color: #fff;
  background: rgba(244, 241, 228, 0.10);
}
.site-header nav.topnav a.current {
  color: #fff;
  border-bottom-color: var(--gold);
  font-weight: 600;
}

/* ---------- page shell: sidebar + content ---------- */
.shell {
  max-width: 1420px;   /* wide enough that the text column matches
                          Esri's ~790px measure with the TOC rail up */
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* ---------- sidebar ---------- */
nav.sidebar {
  width: 292px;
  flex: 0 0 292px;
  padding: 20px 10px 40px 16px;
  font-size: 0.88rem;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  background: rgba(246, 243, 234, 0.66);   /* soft veil over the relief */
}
nav.sidebar .nav-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--green-deep);
  margin: 4px 8px 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
nav.sidebar .nav-title a { color: inherit; text-decoration: none; }
nav.sidebar .nav-overview { margin: 2px 0 8px; }
nav.sidebar .nav-overview a.tool { font-weight: 600; }
nav.sidebar details {
  margin: 1px 0;
}
nav.sidebar details details {
  margin-left: 18px;          /* inset nested toolsets under their group */
}
nav.sidebar summary {
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--green-deep);
  font-weight: 600;
  list-style-position: outside;
}
nav.sidebar summary:hover { background: var(--green-soft); }
nav.sidebar details details summary { font-weight: 600; font-size: 0.86rem; }
nav.sidebar ul {
  list-style: none;
  margin: 0 0 2px;
  padding-left: 20px;
}
nav.sidebar li { margin: 0; }
nav.sidebar a.tool {
  display: block;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--green);
  text-decoration: none;
}
nav.sidebar a.tool:hover { background: var(--green-soft); }
nav.sidebar a.tool.current {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
nav.sidebar span.tool {
  display: block;
  padding: 3px 8px;
  color: var(--ink-soft);
  cursor: default;
}
nav.sidebar span.tool::after {
  content: " ·";
  color: transparent;   /* keeps line-height identical to links */
}

/* ---------- content ---------- */
main.content {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 28px 44px 64px;
  position: relative;
}
img.page-compass {
  position: absolute;
  top: 24px;
  right: 34px;
  width: 96px;
  height: auto;
}
@media (max-width: 1080px) {
  img.page-compass { display: none; }   /* avoid colliding with titles */
  main.content .breadcrumb, main.content h1 { padding-right: 0; } /* reclaim the reserved space (needs the extra specificity to beat the h1 rule below) */
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  /* keep clear of the absolutely-positioned page compass (96px + offsets) */
  padding-right: 150px;
}
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

h1 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--green-deep);
  margin: 0 0 4px;
  line-height: 1.2;
  /* keep clear of the absolutely-positioned page compass (96px + offsets) */
  padding-right: 150px;
}
.toolset-tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--green-deep);
  margin: 2.2em 0 0.5em;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
h3 {
  font-size: 1.02rem;
  color: var(--green-deep);
  margin: 1.6em 0 0.4em;
}
main a { color: var(--green); }
main a:hover { color: var(--green-deep); }

p, ul, ol { margin: 0.7em 0; }
main ul { padding-left: 1.4em; }
main li { margin: 0.35em 0; }

code, .mono {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 1px 5px;
}
pre {
  background: var(--code-block);
  color: var(--code-block-ink);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
/* the placeholder toolbox path in every Python sample links to the
   page that explains how to find the real one */
pre a.pyt-link { color: #ffd98a; text-decoration: underline dotted; text-underline-offset: 3px; }
pre a.pyt-link:hover { color: #fff; text-decoration: underline; }
/* long copied-out reports: wrap instead of scrolling sideways */
pre.report { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8rem; }

/* ---------- callouts ---------- */
.callout {
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 8px 8px 0;
  padding: 12px 18px;
  margin: 1.2em 0;
}
.callout.gold { border-left-color: var(--gold); background: #f6efdc; }
.callout .callout-title {
  font-weight: 700;
  color: var(--green-deep);
  display: block;
  margin-bottom: 2px;
}

.license-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 14px;
  margin: 2px 0 6px;
}

/* ---------- parameter table ---------- */
.param-table-wrap { overflow-x: auto; margin: 1em 0; }
table.params {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
table.params th {
  background: var(--green-deep);
  color: #f4f1e4;
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
}
table.params td {
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  vertical-align: top;
}
table.params tr:nth-child(even) td { background: #faf8f1; }
table.params td.pname { width: 26%; overflow-wrap: anywhere; font-weight: 600; color: var(--green-deep); }   /* wraps: a long label must never squeeze the explanation column */
table.params td.pname .req { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-soft); }
table.params td.ptype { width: 15%; color: var(--ink-soft); }

/* ---------- theory-page elements ---------- */
.epigraph {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.4em 0 1.6em;
  padding-left: 1.2em;
  border-left: 3px solid var(--gold);
}
.epigraph .who { display: block; font-style: normal; font-size: 0.88rem; margin-top: 2px; }
/* right-set variant: a narrow block pushed to the right margin, rule on
   the right, so it reads as an aside to the page rather than its text */
.epigraph.right {
  max-width: 27em;
  margin: 0.2em 0 1.8em auto;
  padding: 2px 1.2em 2px 0;
  border-left: 0;
  border-right: 3px solid var(--gold);
  text-align: right;
  font-size: 1.06rem;
  line-height: 1.5;
}
.epigraph.right .who {
  margin-top: 6px;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
}

.formula {
  font-family: var(--serif);
  font-size: 1.05rem;
  text-align: center;
  margin: 1.1em auto;
  padding: 10px 16px;
  background: #faf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}
.formula .frac {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  margin: 0 4px;
}
.formula .frac .top { display: block; border-bottom: 1px solid var(--ink); padding: 0 6px 2px; }
.formula .frac .bot { display: block; padding: 2px 6px 0; }
.formula i { font-style: italic; }
.fwhere { font-size: 0.9rem; color: var(--ink-soft); text-align: center; margin-top: -0.6em; }

table.matrix {
  border-collapse: collapse;
  margin: 1em auto;
  font-size: 0.92rem;
}
table.matrix th {
  background: var(--green-deep);
  color: #f4f1e4;
  padding: 6px 14px;
  font-weight: 600;
}
table.matrix th.side {
  background: var(--green);
}
table.matrix td {
  border: 1px solid var(--line);
  padding: 6px 16px;
  text-align: center;
  background: #fff;
}
table.matrix td.diag { background: var(--green-soft); font-weight: 600; }
table.matrix td.tot { background: #faf8f1; font-weight: 600; }
table.matrix caption {
  caption-side: bottom;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: 6px;
}

.fig-placeholder {
  border: 2px dashed var(--gold);
  border-radius: 8px;
  background: #fdfbf3;
  color: var(--ink-soft);
  text-align: center;
  padding: 26px 20px;
  margin: 1.2em 0;
  font-size: 0.9rem;
}
.fig-placeholder b { color: var(--green-deep); }

figure.fig { margin: 1.2em 0; text-align: center; }
figure.fig img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
figure.fig figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
.fig-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; margin: 1.2em 0; }
.fig-row > * { flex: 0 1 auto; min-width: 240px; }
.fig-row table.matrix { margin: 0; }
.fig-row figure.fig { margin: 0; }
math[display="block"] { margin: 0.6em 0; font-size: 1.12em; }
/* center the radicand in the surd's mouth: the math font's stretched
   root descends well below the content, so ease the content down into
   that space (visual shift only; tune the 0.16em to taste) */
math msqrt > mrow { transform: translateY(0.16em); }
sup.fnref { font-size: 0.72em; line-height: 0; }
sup.fnref a { color: var(--gold); text-decoration: none; font-weight: 700; }
sup.fnref a:hover { text-decoration: underline; }
.fn-cite { font-size: 0.9rem; color: var(--ink-soft); }
blockquote.fnq { margin: 0.8em 0 0.8em 1em; padding: 8px 14px;
  background: var(--parchment); border-left: 3px solid var(--gold);
  font-style: italic; }
blockquote.fnq .fn-where { display: block; font-style: normal;
  font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.fn-aside { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- citation block ---------- */
.citation {
  font-family: var(--serif);
  background: #faf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 0.8em 0;
}

/* ---------- reference list ---------- */
ul.refs { list-style: none; padding-left: 0; }
ul.refs li {
  padding-left: 1.6em;
  text-indent: -1.6em;
  margin: 0.5em 0;
  font-size: 0.92rem;
}

ol.refs { padding-left: 2.8em; }
ol.refs li {
  padding-left: 0.3em;
  margin: 0.55em 0;
  font-size: 0.92rem;
}
ol.refs li::marker { color: var(--ink-soft); font-weight: 600; }
.cited-in {
  display: block;
  margin-top: 0.15em;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
footer.site-footer {
  max-width: 1420px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}
footer.site-footer a { color: var(--green); }
footer.site-footer .footer-partner { margin-top: 10px; }
footer.site-footer .footer-partner img { height: 38px; width: auto; }
img.partner-inline { float: right; height: 54px; width: auto;
  margin: 4px 0 10px 18px; }

/* ---------- "In this topic" rail (built by nav.js from the h2s) ---------- */
aside.toc {
  width: 224px;
  flex: 0 0 224px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 20px 12px 40px 14px;
  padding: 12px 14px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
}
aside.toc .toc-title {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--green-deep);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}
aside.toc ul { list-style: none; margin: 0; padding: 0; }
aside.toc li { margin: 0; }
aside.toc a {
  display: block;
  padding: 4px 9px;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--green);
  text-decoration: none;
  line-height: 1.35;
}
aside.toc a:hover { background: var(--green-soft); }
aside.toc a.current {
  border-left-color: var(--gold);
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 600;
}
@media (max-width: 1250px) {
  aside.toc { display: none; }   /* window too narrow for a third column */
}

/* ---------- landing page tool grid ---------- */
.toolset-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.toolset-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  background: #fdfcf7;
}
.toolset-card h3 { margin: 0 0 6px; }
.toolset-card p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .shell { flex-direction: column; align-items: stretch; }   /* stretch: else the content column sizes to its widest image and overflows a phone screen */
  nav.sidebar {
    position: static;
    width: 100%;
    flex: 1 1 auto;
    max-height: none;
    border-bottom: 1px solid var(--line);
  }
  main.content { border-left: none; border-right: none; padding: 22px 20px 48px; }
}
@media (max-width: 600px) {
  .site-header .extlink { display: none; }   /* no room beside the wordmark on a phone */
}

/* ---------- print ---------- */
@media print {
  nav.sidebar, aside.toc, .site-header .extlink { display: none; }
  main.content { border: none; }
  body { background: #fff; }
}

/* ---------- single-column pages: home, literature, announcements ---------- */
.shell.single { justify-content: center; }
.shell.single main.content { max-width: 1180px; flex: 0 1 1180px; }

/* home page */
.home-hero { position: relative; margin: -28px -44px 18px; overflow: hidden; background: var(--green-deep); }
.home-hero img { width: 100%; height: 500px; object-fit: cover; object-position: center 45%; display: block; }
.home-hero .hero-next {
  position: absolute; top: 12px; right: 16px; padding: 3px 10px; border-radius: 12px;
  background: rgba(36,70,47,0.7); color: #f4f1e4; font-family: var(--sans); font-size: 0.78rem;
  text-decoration: none; cursor: pointer;
}
.home-hero .hero-next:hover { background: rgba(36,70,47,0.95); }
.home-news { font-family: var(--sans); font-size: 0.9rem; margin: 0 0 22px; padding: 8px 14px;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; background: #fdfcf7; }
.home-news .lbl { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-right: 6px; }
.home-news a.all { white-space: nowrap; }
.in-memoriam { padding: 8px 14px; border-left: 3px solid var(--gold); background: #fdfcf7; font-family: var(--serif); }
.home-hero .hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 44px 18px;
  background: linear-gradient(180deg, rgba(36,70,47,0) 0%, rgba(36,70,47,0.86) 70%);
  color: #f4f1e4; font-family: var(--serif);
}
.home-hero .hero-text h1 { color: #fff; margin: 0; padding-right: 0; font-size: 2.3rem; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }
.home-hero .hero-text .lede { margin: 4px 0 0; font-style: italic; font-size: 1.08rem; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
.home-intro { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.home-intro .text { flex: 1 1 380px; }
.home-intro figure.fig { flex: 0 1 460px; margin: 0; }
.home-intro figcaption a.swap { margin-left: 8px; font-size: 0.8rem; white-space: nowrap; }
.home-pillars { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.home-pillars .toolset-card a.more { display: inline-block; margin-top: 8px; margin-right: 14px; font-size: 0.88rem; }
.home-gallery { display: flex; gap: 18px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin: 26px 0 6px; }
.home-gallery figure.fig { margin: 0; flex: 0 0 auto; width: min-content; }
.home-gallery figure.fig figcaption { width: 100%; }
.home-gallery figure.fig img { width: auto; height: 220px; max-width: none; }
.home-gallery figure.fig.small img { height: 170px; }
.home-owls { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.home-owls .owl-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 10px; }
.owl-strip { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.owl-strip a { display: block; line-height: 0; border: 2px solid transparent; border-radius: 6px; }
.owl-strip a.current { border-color: var(--gold); }
.owl-strip a:hover { border-color: var(--green); }
.owl-strip img { height: 120px; width: auto; border-radius: 4px; }
.home-contact { display: flex; gap: 26px; align-items: center; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.home-contact img { width: 150px; height: auto; flex: 0 0 auto; border-radius: 6px; }
.home-contact h2 { margin-top: 0; }
.home-contact p { margin: 0 0 8px; }
.home-contact p.small { font-size: 0.88rem; color: var(--ink-soft); }
.home-badges { display: flex; gap: 28px; align-items: center; justify-content: center; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.home-badges img { height: 60px; width: auto; }
.home-badges img.navajo { height: 34px; }
.home-badges .since { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

/* Thought for the Day */
.thought {
  margin: 30px auto; max-width: 42em;
  padding: 18px 26px 14px;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px;
  background: #fdfcf7; font-family: var(--serif);
}
.thought .label { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.thought .q { font-style: italic; font-size: 1.14rem; line-height: 1.55; margin: 0; }
.thought .who { display: block; text-align: right; font-variant: small-caps; letter-spacing: 0.06em; margin-top: 8px; color: var(--ink-soft); }
.thought .again { font-family: var(--sans); font-size: 0.8rem; margin-top: 10px; text-align: right; }
.thought .again a { color: var(--green); cursor: pointer; text-decoration: none; }
.thought .again a:hover { text-decoration: underline; }

/* literature page */
.lit-count { font-size: 0.8rem; color: var(--ink-soft); margin: -6px 0 10px; }
.lit ul.refs li { margin-bottom: 0.6em; }
.award { display: inline-block; text-indent: 0; margin-left: 6px; padding: 1px 9px; border-radius: 10px; background: #f6efdc; border: 1px solid var(--gold); font-size: 0.8rem; color: var(--ink); font-style: italic; }

/* announcements */
.news-list { list-style: none; padding-left: 0; }
.news-list li { margin: 0 0 1.1em; padding-left: 14px; border-left: 3px solid var(--gold); }
.news-date { display: block; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.03em; }

@media (max-width: 940px) {
  .home-hero { margin: -22px -20px 16px; }
  .home-hero img { height: 300px; }
  .home-gallery figure.fig img { height: 200px; }
  .home-contact { flex-direction: column; align-items: flex-start; }
  .home-hero .hero-text { padding: 18px 20px 12px; }
  .home-hero .hero-text h1 { font-size: 1.7rem; }
}

/* legacy tools page */
.legacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 28px; margin: 22px 0 8px; }
.legacy-card { background: #fdfcf7; border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px 20px; }
.legacy-card img { display: block; max-width: 100%; height: auto; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 6px; }
.legacy-card h2 { margin-top: 6px; }
.legacy-card a.more { display: inline-block; margin-top: 6px; font-weight: 600; }

/* ---------- legacy ArcView / ArcGIS pages ---------- */
.shell.legacy { gap: 26px; padding: 0 18px; }
aside.legacy-side {
  width: 196px; flex: 0 0 196px; margin-top: 22px; padding: 16px 12px 18px;
  background: var(--green-deep); border-radius: 10px; text-align: center;
  position: sticky; top: 12px;
}
aside.legacy-side img.owl { display: block; width: 144px; margin: 2px auto 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.25); }
aside.legacy-side ul { list-style: none; margin: 0; padding: 0; }
aside.legacy-side li a {
  display: block; margin: 7px 0; padding: 6px 8px; border: 1px solid var(--gold); border-radius: 18px;
  color: #f6f3ea; background: #1b3524; text-decoration: none; font-size: 0.88rem; line-height: 1.3;
}
aside.legacy-side li a:hover { background: var(--gold); color: var(--green-deep); }
aside.legacy-side hr { border: 0; border-top: 1px solid var(--gold); margin: 16px 10px 12px; }
aside.legacy-side img.emblem { display: block; width: 115px; margin: 0 auto; }
main.legacy-content { max-width: 1000px; }
main.legacy-content h1 { margin-top: 8px; }
main.legacy-content img { max-width: 100%; height: auto; }
main.legacy-content table[border] { border-collapse: collapse; margin: 10px 0; }
main.legacy-content table[border] td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
main.legacy-content table[border] table[border] td { border: 0; padding: 2px 4px; }
main.legacy-content td[align="center"] { text-align: center; }
main.legacy-content hr { border: 0; border-top: 1px solid var(--gold); margin: 18px 0; }
main.legacy-content .legacy-quote { font-style: italic; text-align: center; color: var(--ink-soft); margin: 10px 0; }
main.legacy-content .legacy-quote-author { font-style: normal; font-size: 0.9em; }
main.legacy-content .legacy-donate { background: var(--green-soft); border-radius: 8px; padding: 10px 14px; }
@media (max-width: 940px) { .shell.legacy { flex-direction: column; } aside.legacy-side { position: static; width: 100%; flex: 1 1 auto; } aside.legacy-side img.owl { display: none; } }
