/* Homestead embeds - Theodore Roosevelt Presidential Library
   Every rule is scoped under .hs and every class is prefixed hs- so nothing leaks
   into or out of the host page. */

.hs {
  --hs-forest: #1B4532;
  --hs-night: #092A4D;
  --hs-sand: #D1CCBD;
  --hs-sand-light: #F3F1EA;
  --hs-gray: #25282A;
  --hs-gray-soft: #5A5F63;
  --hs-orange: #E7805D;
  --hs-sky: #99ADC5;
  --hs-bright: #8FC895;
  --hs-line: #E2DED3;
  --hs-bg: #FFFFFF;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--hs-gray);
  background: transparent;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
.hs h2, .hs h3, .hs h4, .hs p, .hs ul, .hs ol, .hs dl, .hs dd, .hs figure { margin: 0; padding: 0; }
.hs ul, .hs ol { list-style: none; }
.hs a { color: var(--hs-forest); text-decoration: underline; text-underline-offset: 2px; }
.hs a:hover { color: var(--hs-night); }
.hs :focus-visible { outline: 3px solid var(--hs-night); outline-offset: 2px; }
.hs button, .hs input { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.hs svg { overflow: visible; }

.hs .hs-view + .hs-view { margin-top: 56px; }
.hs .hs-h {
  font-family: inherit;
  font-size: 1.5rem; line-height: 1.2; font-weight: 700;
  color: var(--hs-forest); margin: 0 0 6px; letter-spacing: -0.01em; text-transform: none;
}
.hs .hs-sub { color: var(--hs-gray-soft); margin: 0 0 18px; max-width: 46rem; }
.hs .hs-small { font-size: 0.8125rem; color: var(--hs-gray-soft); }
.hs .hs-loading, .hs .hs-error { padding: 24px 0; color: var(--hs-gray-soft); }
.hs .hs-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- buttons ---------- */
.hs .hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--hs-forest); background: var(--hs-forest); color: #fff;
  font-weight: 600; cursor: pointer; line-height: 1.2; box-shadow: none; text-decoration: none;
}
.hs .hs-btn:hover { background: var(--hs-night); border-color: var(--hs-night); color: #fff; }
.hs .hs-btn-ghost { background: #fff; color: var(--hs-forest); }
.hs .hs-btn-ghost:hover { background: var(--hs-sand-light); color: var(--hs-night); }
.hs .hs-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- map ---------- */
.hs .hs-mapbox { border: 1px solid var(--hs-line); border-radius: 12px; overflow: hidden; background: #fff; }
.hs .hs-controls {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 18px;
  padding: 14px 16px; background: var(--hs-sand-light); border-bottom: 1px solid var(--hs-line);
}
.hs .hs-year {
  font-size: 2.25rem; font-weight: 800; color: var(--hs-night); line-height: 1;
  font-variant-numeric: tabular-nums; min-width: 4.6ch;
}
.hs .hs-slider { min-width: 0; }
.hs .hs-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; padding: 0;
  background: transparent; cursor: pointer; border: 0; display: block;
}
.hs .hs-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--hs-forest) var(--hs-pct, 100%), var(--hs-sand) var(--hs-pct, 100%)); }
.hs .hs-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--hs-sand); }
.hs .hs-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--hs-forest); }
.hs .hs-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px;
  border-radius: 50%; background: #fff; border: 3px solid var(--hs-forest); box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.hs .hs-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--hs-forest); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.hs .hs-range:focus-visible { outline: none; }
.hs .hs-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--hs-night); outline-offset: 2px; }
.hs .hs-range:focus-visible::-moz-range-thumb { outline: 3px solid var(--hs-night); outline-offset: 2px; }
.hs .hs-ticks { position: relative; height: 1.1rem; font-size: 0.75rem; color: var(--hs-gray-soft); margin-top: -6px; font-variant-numeric: tabular-nums; }
.hs .hs-ticks span { position: absolute; top: 0; left: calc(14px + (100% - 28px) * var(--at)); transform: translateX(-50%); white-space: nowrap; }
.hs .hs-ticks span:first-child { transform: translateX(-14px); }
.hs .hs-ticks span:last-child { transform: translateX(calc(-100% + 14px)); }
.hs .hs-era { grid-column: 1 / -1; margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--hs-night); border-left: 3px solid var(--hs-orange); padding: 2px 0 2px 10px; }
.hs .hs-era[hidden] { display: none; }

.hs .hs-map { width: 100%; height: 640px; background: #EDEBE4; position: relative; z-index: 0; }
.hs .hs-map.leaflet-container { font: inherit; font-size: 0.875rem; }
.hs .hs-map .leaflet-control-attribution { font-size: 0.6875rem; line-height: 1.4; max-width: 100%; }

.hs .hs-legend {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--hs-line); font-size: 0.875rem;
}
.hs .hs-legend li { display: flex; align-items: center; gap: 8px; }
.hs .hs-legend strong { font-variant-numeric: tabular-nums; color: var(--hs-night); }
.hs .hs-sw { display: inline-block; width: 18px; height: 14px; border-radius: 2px; flex: none; }
.hs .hs-sw-ind { background: var(--hs-orange); border: 1px solid #9A4A2E; }
.hs .hs-sw-usa { background: rgba(9, 42, 77, .75); border: 1px solid var(--hs-night); }
.hs .hs-sw-unn { background: var(--hs-sand); border: 1.5px solid var(--hs-gray); }
.hs .hs-sw-part { background: #fff; border: 2px dashed var(--hs-gray); }
.hs .hs-sw-twp { background: transparent; border: 2px solid var(--hs-forest); }

.hs .hs-twp-label span {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 10.5px; line-height: 1.05; text-align: center; font-weight: 700; letter-spacing: .03em; color: var(--hs-forest);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; pointer-events: none;
}
.hs .hs-area-label span {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 15px; font-weight: 700; font-style: italic; color: var(--hs-night);
  text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 3px #fff, 0 0 2px #fff; pointer-events: none;
}
.hs .leaflet-tooltip.hs-town-label {
  background: #fff; border: 1px solid var(--hs-gray); color: var(--hs-gray);
  font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 4px; box-shadow: none;
}
.hs .leaflet-tooltip.hs-town-label::before { display: none; }

.hs .leaflet-popup-content-wrapper { border-radius: 10px; }
.hs .leaflet-popup-content { margin: 14px 16px; font-size: 0.875rem; line-height: 1.45; min-width: 220px; }
.hs .hs-pop-kind { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hs-gray-soft); margin: 0 0 2px; }
.hs .hs-pop-name { font-size: 1.0625rem; font-weight: 700; color: var(--hs-night); margin: 0 0 8px; line-height: 1.25; }
.hs .hs-pop dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 0 8px; }
.hs .hs-pop dt { color: var(--hs-gray-soft); font-weight: 400; }
.hs .hs-pop dd { margin: 0; overflow-wrap: anywhere; }
.hs .hs-pop-note { background: var(--hs-sand-light); border-left: 3px solid var(--hs-sand); padding: 4px 8px; margin: 0 0 8px; font-size: 0.8125rem; }
.hs .hs-pop-link { font-weight: 600; }
.hs .hs-pop-hint { display: block; font-size: 0.75rem; color: var(--hs-gray-soft); margin-top: 2px; }

/* ---------- chart ---------- */
.hs .hs-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.875rem; margin: 0 0 8px; }
.hs .hs-chart-legend li { display: flex; align-items: center; gap: 8px; }
.hs .hs-chartbox { position: relative; }
.hs .hs-chartbox svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.hs .hs-chartbox svg:focus-visible { outline: 3px solid var(--hs-night); outline-offset: 4px; border-radius: 4px; }
.hs .hs-axis text { font-size: 11px; fill: var(--hs-gray-soft); font-variant-numeric: tabular-nums; }
.hs .hs-grid line { stroke: var(--hs-line); }
.hs .hs-annot text { font-size: 12px; font-weight: 600; fill: var(--hs-gray); }
.hs .hs-band-label { font-size: 12px; font-weight: 600; fill: var(--hs-night); }
.hs .hs-tip {
  position: absolute; pointer-events: none; background: var(--hs-gray); color: #fff;
  padding: 6px 10px; border-radius: 6px; font-size: 0.8125rem; line-height: 1.35; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px)); z-index: 2;
}
.hs .hs-tip[hidden] { display: none; }
.hs .hs-tip b { font-size: 0.9375rem; }
.hs .hs-chart-note { margin-top: 10px; }
.hs details.hs-table { margin-top: 14px; border-top: 1px solid var(--hs-line); padding-top: 10px; }
.hs details.hs-table summary { cursor: pointer; font-weight: 600; color: var(--hs-forest); min-height: 32px; display: list-item; }
.hs .hs-table-wrap { max-height: 360px; overflow: auto; margin-top: 8px; }
.hs .hs-table table { border-collapse: collapse; font-size: 0.875rem; min-width: 280px; width: auto; margin: 0; }
.hs .hs-table th, .hs .hs-table td { padding: 4px 14px 4px 0; text-align: right; border: 0; border-bottom: 1px solid var(--hs-line); background: none; font-variant-numeric: tabular-nums; }
.hs .hs-table th:first-child, .hs .hs-table td:first-child { text-align: left; }
.hs .hs-table thead th { position: sticky; top: 0; background: #fff; color: var(--hs-gray); font-weight: 700; }

/* ---------- search ---------- */
.hs .hs-search-label { display: block; font-weight: 600; margin: 0 0 6px; }
.hs .hs-search-input {
  width: 100%; max-width: 32rem; min-height: 48px; padding: 10px 14px; border-radius: 8px;
  border: 2px solid var(--hs-sky); background: #fff; font-size: 1.0625rem; box-shadow: none; margin: 0;
}
.hs .hs-search-input:focus { border-color: var(--hs-night); outline: none; }
.hs .hs-search-status { margin: 10px 0 0; color: var(--hs-gray-soft); font-size: 0.9375rem; }
.hs .hs-coverage { margin-top: 14px; padding: 14px 16px; background: var(--hs-sand-light); border-radius: 8px; max-width: 46rem; }
.hs .hs-coverage p + p { margin-top: 8px; }
.hs .hs-results { margin-top: 12px; display: grid; gap: 10px; }
.hs .hs-result { padding: 12px 14px; border: 1px solid var(--hs-line); border-radius: 8px; background: #fff; }
.hs .hs-result-name { font-weight: 700; color: var(--hs-night); font-size: 1.0625rem; }
.hs .hs-result mark { background: #F6D9CC; color: inherit; padding: 0 1px; border-radius: 2px; }
.hs .hs-result-meta { color: var(--hs-gray); font-size: 0.9375rem; }
.hs .hs-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 0.9375rem; }
.hs .hs-links a { display: inline-block; padding: 4px 0; }

/* ---------- stories ---------- */
.hs .hs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hs .hs-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--hs-line); border-radius: 10px; background: #fff; align-items: start; }
.hs .hs-thumb { width: 96px; height: 96px; display: block; background: var(--hs-sand-light); border-radius: 6px; }
.hs .hs-card-title { font-size: 1rem; line-height: 1.4; font-weight: 400; margin: 0 0 4px; }
.hs .hs-card-title b { color: var(--hs-night); }
.hs .hs-arrow { color: var(--hs-gray-soft); }
.hs .hs-card-meta { font-size: 0.875rem; color: var(--hs-gray-soft); }
.hs .hs-gap { display: inline-block; margin-top: 6px; font-size: 0.75rem; font-weight: 700; color: var(--hs-forest); background: #E4F2E5; border-radius: 999px; padding: 2px 9px; }
.hs .hs-more { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.hs .hs-thumb-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.8125rem; color: var(--hs-gray-soft); margin: 0 0 12px; }
.hs .hs-thumb-key li { display: flex; align-items: center; gap: 6px; }
.hs .hs-sw-usa-o { background: rgba(9, 42, 77, .3); border: 2px solid var(--hs-night); }

@media (max-width: 640px) {
  .hs .hs-h { font-size: 1.3rem; }
  .hs .hs-controls { grid-template-columns: auto 1fr; padding: 12px 16px; }
  .hs .hs-slider { grid-column: 1 / -1; }
  .hs .hs-year { font-size: 1.9rem; text-align: right; }
  .hs .hs-legend { padding: 12px 16px; gap: 8px 16px; }
  .hs .hs-cards { grid-template-columns: 1fr; }
  .hs .hs-card { grid-template-columns: 76px 1fr; gap: 12px; }
  .hs .hs-thumb { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* guard Leaflet internals against host-page element rules */
.hs .leaflet-container img { border: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; background: none; }
.hs .leaflet-container a { color: var(--hs-forest); }
.hs .leaflet-bar a { color: var(--hs-gray); }

/* ---------- what land am I on? ---------- */
.hs .hs-locate { margin: 10px 10px 0 0; }
.hs .hs-locate-btn { min-height: 40px; padding: 6px 14px; font-size: 0.875rem; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hs .hs-locate-btn svg { width: 15px; height: 15px; }
.hs .hs-spot { border-top: 1px solid var(--hs-line); background: #fff; }
.hs .hs-spot:focus { outline: none; }
.hs .hs-spot-in { position: relative; padding: 18px 24px 20px; max-width: 46rem; }
.hs .hs-spot-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 1.75rem; line-height: 1; color: var(--hs-gray-soft); cursor: pointer; border-radius: 999px;
}
.hs .hs-spot-close:hover { background: var(--hs-sand-light); color: var(--hs-night); }
.hs .hs-spot-kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hs-orange); margin: 0 0 2px; }
.hs .hs-spot-title { font-size: 1.25rem; font-weight: 700; color: var(--hs-night); margin: 0; line-height: 1.25; padding-right: 40px; }
.hs .hs-spot-where { color: var(--hs-gray-soft); margin: 2px 0 0; }
.hs .hs-spot-note { background: var(--hs-sand-light); border-left: 3px solid var(--hs-sand); padding: 6px 10px; margin: 10px 0 0; font-size: 0.875rem; }
.hs .hs-spot-h { font-size: 0.9375rem; font-weight: 700; color: var(--hs-forest); margin: 18px 0 6px; }
.hs .hs-spot-list > li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hs-line); }
.hs .hs-spot-list > li:first-child { border-top: 0; padding-top: 2px; }
.hs .hs-spot-list > li.hs-spot-focus { background: var(--hs-sand-light); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.hs .hs-spot-year { font-weight: 700; color: var(--hs-night); font-variant-numeric: tabular-nums; }
.hs .hs-spot-list p { margin: 0; }
.hs .hs-spot-tag { display: inline-block; font-size: 0.8125rem; background: var(--hs-sand-light); border-radius: 4px; padding: 1px 8px; margin: 4px 6px 2px 0; }
.hs .hs-spot-in > p + p { margin-top: 6px; }
.hs .hs-spot-more { margin-top: 8px; }
.hs .hs-spot-more summary { cursor: pointer; color: var(--hs-forest); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.hs .hs-spot-more p { margin: 8px 0 0; }
.hs .hs-spot-src { list-style: disc; padding-left: 1.25rem; font-size: 0.8125rem; }
.hs .hs-spot-src li { margin: 2px 0; }
.hs .hs-spot-privacy { margin-top: 14px !important; }
.hs .hs-spot-wait { color: var(--hs-gray-soft); }
@media (max-width: 640px) {
  .hs .hs-spot-in { padding: 16px 16px 18px; }
  .hs .hs-locate-btn span { font-size: 0.8125rem; }
}
