.ls-page { background: var(--paper); color: var(--ink); }
.ls-hero { padding: 76px 0 44px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.ls-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: end; }
.ls-hero h1 { font-family: var(--serif); font-size: clamp(42px, 7vw, 78px); font-weight: 400; line-height: .98; letter-spacing: -.025em; margin: 12px 0 0; }
.ls-hero p { max-width: 68ch; color: var(--ink-70); font-family: var(--serif); font-size: 21px; line-height: 1.55; margin: 20px 0 0; }
.ls-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ls-chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: #ffffff; color: var(--ink-50); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ls-cover { background: #ffffff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; position: relative; }
/* When UIkit uk-cover makes the img absolute, the wrapper needs an intrinsic height */
.ls-cover > img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ffffff; display: block; }
/* uk-cover state: img is absolute-filled, preserve the 4:3 area via padding */
.ls-cover.uk-cover-container { aspect-ratio: 4 / 3; }
.ls-cover video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ls-cover__body { padding: 16px; position: relative; z-index: 2; background: var(--paper); }
.ls-cover__title { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.ls-cover__sub { color: var(--ink-50); font-family: var(--mono); font-size: 11px; line-height: 1.45; margin-top: 6px; }
.ls-lens { position: sticky; top: 0; z-index: 30; background: rgba(244,238,226,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.ls-lens .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; }
.ls-lens a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: #ffffff; color: var(--ink-70); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ls-lens a[href="#edit"], .ls-lens a.ls-lens__edit { border-color: rgba(60,90,71,.36); color: var(--green); }
.ls-section { padding: 58px 0; border-bottom: 1px solid var(--line); }
.ls-section--alt { background: var(--paper-2); }
.ls-section h2 { font-family: var(--serif); font-size: clamp(32px, 5vw, 46px); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 22px; }
.ls-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.ls-lead { font-family: var(--serif); font-size: 24px; line-height: 1.45; color: var(--ink); margin: 0 0 22px; }
.ls-prose p { color: var(--ink-70); font-family: var(--serif); font-size: 19px; line-height: 1.68; margin: 0 0 20px; max-width: 72ch; }
.ls-prose ul { color: var(--ink-70); font-size: 16px; line-height: 1.55; padding-left: 20px; }
.ls-prose li + li { margin-top: 8px; }
.ls-panel { background: #ffffff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.ls-panel + .ls-panel { margin-top: 14px; }
.ls-panel__label { color: var(--brass-2); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ls-panel__title { font-family: var(--serif); font-size: 21px; line-height: 1.18; margin-top: 6px; }
.ls-panel__body { color: var(--ink-70); font-size: 15px; line-height: 1.52; margin-top: 8px; }
.ls-panel a { color: var(--green); font-family: var(--sans); font-size: 12px; font-weight: 700; }
.ls-timeline { display: grid; gap: 0; }
.ls-time { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.ls-time:last-child { border-bottom: none; }
.ls-time__date { color: var(--brass-2); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-align: right; padding-top: 3px; }
.ls-time__title { font-family: var(--serif); font-size: 22px; line-height: 1.18; }
.ls-time__body { color: var(--ink-70); font-size: 16px; line-height: 1.52; margin-top: 6px; }
.ls-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ls-media-card { background: #ffffff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; color: inherit; display: flex; flex-direction: column; cursor: pointer; }
.ls-media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; display: block; }
.ls-media-card video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); display: block; }
.ls-media-card__body { padding: 15px; }
.ls-media-card__type { color: var(--ink-50); font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.ls-media-card__title { font-family: var(--serif); font-size: 20px; line-height: 1.15; margin-top: 6px; }
.ls-media-card__note { color: var(--ink-70); font-size: 14px; line-height: 1.45; margin-top: 8px; }
.ls-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ls-source { background: #ffffff; border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 4px; padding: 18px; }
.ls-source__claim { font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.ls-source__meta { color: var(--ink-50); font-family: var(--mono); font-size: 11px; line-height: 1.45; margin-top: 8px; }
.ls-related { display: flex; flex-wrap: wrap; gap: 12px; }
.ls-related a { background: #ffffff; border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 700; }
.ls-update-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ls-update-card { background: #ffffff; border: 1px solid var(--line); border-radius: 4px; padding: 17px; }
.ls-update-card__meta { color: var(--brass-2); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ls-update-card__title { font-family: var(--serif); font-size: 21px; line-height: 1.16; margin-top: 7px; }
.ls-update-card__body { color: var(--ink-70); font-size: 14px; line-height: 1.48; margin-top: 8px; }
.ls-edit-box { background: var(--ink); color: var(--paper); border-radius: 4px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.ls-edit-box h2 { color: var(--paper); margin: 0 0 8px; }
.ls-edit-box p { color: rgba(244,238,226,.74); font-size: 15px; line-height: 1.5; margin: 0; max-width: 72ch; }
.ls-edit-box__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ls-edit-box__actions a { border: 1px solid rgba(244,238,226,.24); border-radius: 999px; color: var(--paper); padding: 10px 14px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ls-edit-box__actions a:first-child { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.ls-review-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ls-review-status span { border: 1px solid rgba(244,238,226,.22); border-radius: 999px; color: rgba(244,238,226,.76); font-family: var(--mono); font-size: 11px; padding: 6px 9px; }
.ls-family-form { display: grid; gap: 16px; }
.ls-family-form label { display: grid; gap: 6px; color: var(--ink-70); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ls-family-form input, .ls-family-form select, .ls-family-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; font-family: var(--serif); font-size: 18px; padding: 11px 12px; }
.ls-family-form textarea { min-height: 150px; line-height: 1.55; resize: vertical; }
.ls-family-form button { justify-self: start; border: 0; border-radius: 999px; background: var(--green); color: var(--paper); padding: 12px 17px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ls-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20,19,16,.88); display: none; align-items: center; justify-content: center; padding: 24px; }
.ls-lightbox.is-open { display: flex; }
.ls-lightbox__inner { max-width: min(1100px, 96vw); max-height: 90vh; color: var(--paper); }
.ls-lightbox img, .ls-lightbox video { max-width: 100%; max-height: 78vh; display: block; border-radius: 4px; }
.ls-lightbox__caption { color: rgba(244,238,226,.75); font-family: var(--sans); font-size: 13px; line-height: 1.45; margin-top: 12px; }
.ls-lightbox__close { position: fixed; top: 16px; right: 16px; background: #ffffff; color: var(--ink); border: 0; border-radius: 999px; width: 38px; height: 38px; font-size: 22px; cursor: pointer; }
.ls-lightbox__prev, .ls-lightbox__next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(244,238,226,0.12); color: var(--paper); border: 1px solid rgba(244,238,226,0.25); border-radius: 4px; width: 44px; height: 64px; font-size: 28px; cursor: pointer; line-height: 1; transition: background .15s; z-index: 1001; }
.ls-lightbox__prev:hover, .ls-lightbox__next:hover { background: rgba(244,238,226,0.25); }
.ls-lightbox__prev { left: 12px; }
.ls-lightbox__next { right: 12px; }
.ls-lightbox__counter { font-family: var(--mono); font-size: 11px; color: rgba(244,238,226,0.5); text-align: center; margin-top: 6px; letter-spacing: 0.05em; }
@media (max-width: 900px) {
  .ls-hero__grid, .ls-two { grid-template-columns: 1fr; }
  .ls-card-grid, .ls-evidence, .ls-update-grid { grid-template-columns: 1fr 1fr; }
  .ls-edit-box { grid-template-columns: 1fr; }
  .ls-edit-box__actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ls-card-grid, .ls-evidence, .ls-update-grid { grid-template-columns: 1fr; }
  .ls-time { grid-template-columns: 1fr; gap: 6px; }
  .ls-time__date { text-align: left; }
}

/* ── SoundCite Overrides ── */
.soundcite {
  display: inline !important;
  border-bottom: 2px solid var(--brass) !important;
  cursor: pointer;
  padding-bottom: 1px;
  background: linear-gradient(var(--brass-soft), var(--brass-soft)) no-repeat !important;
  background-size: 0% 100% !important;
  transition: background-size .3s var(--ease) !important;
  color: var(--brass-2) !important;
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
.soundcite:hover {
  background-size: 100% 100% !important;
  color: var(--ink) !important;
}
.soundcite.soundcite-loaded {
  background-color: rgba(169, 133, 78, 0.1) !important;
}
.soundcite.soundcite-playing {
  background-color: var(--brass) !important;
  color: var(--paper) !important;
}
.soundcite .sc-btn {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--paper);
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 4px;
  font-size: 8px;
  line-height: 1;
}

/* ── Custom Hotspot System (ThingLink Clone) ── */
.ls-hotspot-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.ls-hotspot-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.ls-hotspot {
  position: absolute;
  z-index: 10;
}
.ls-hotspot-pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 0 0 3px rgba(60,90,71,0.22);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.22,0.61,0.36,1), background 0.2s;
  position: relative;
  outline: none;
}
.ls-hotspot-pin::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  animation: ls-pulse-hotspot 2s infinite;
  opacity: 0;
  pointer-events: none;
}
@keyframes ls-pulse-hotspot {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
.ls-hotspot-pin:hover, .ls-hotspot.is-active .ls-hotspot-pin {
  transform: scale(1.15);
  background: var(--brass);
  border-color: var(--paper);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 3px rgba(169,133,78,0.3);
}
.ls-hotspot-popover {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.22,0.61,0.36,1), transform 0.25s, visibility 0.25s;
  pointer-events: none;
  z-index: 20;
}
.ls-hotspot-popover--bottom {
  bottom: auto;
  top: 28px;
  transform: translateX(-50%) translateY(-8px);
}
.ls-hotspot-popover--left {
  left: auto;
  right: -10px;
  transform: translateY(8px);
}
.ls-hotspot-popover--left.ls-hotspot-popover--bottom {
  transform: translateY(-8px);
}
.ls-hotspot-popover--right {
  left: -10px;
  transform: translateY(8px);
}
.ls-hotspot-popover--right.ls-hotspot-popover--bottom {
  transform: translateY(-8px);
}

.ls-hotspot:hover .ls-hotspot-popover, .ls-hotspot.is-active .ls-hotspot-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.ls-hotspot:hover .ls-hotspot-popover--left, .ls-hotspot.is-active .ls-hotspot-popover--left {
  transform: translateX(0) translateY(0);
}
.ls-hotspot:hover .ls-hotspot-popover--right, .ls-hotspot.is-active .ls-hotspot-popover--right {
  transform: translateX(0) translateY(0);
}

.ls-hotspot-popover__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.25;
}
.ls-hotspot-popover__desc {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-70);
  margin-bottom: 10px;
}
.ls-hotspot-popover__link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
}
.ls-hotspot-popover__link:hover {
  color: var(--brass-2);
}

/* ── Inline editing (suggest-an-edit) ── */
.ls-editable { position: relative; }
.ls-edit-btn {
  position: absolute; top: 4px; right: 4px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  color: var(--brass-2, #8A6C3C);
  background: #FFFFFF;
  border: 1px solid var(--brass, #A9854E);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s, transform 0.15s, background 0.15s, color 0.15s;
  box-shadow: 0 2px 8px rgba(35,33,28,0.15);
  z-index: 5;
  padding: 0;
}
.ls-editable:hover > .ls-edit-btn,
.ls-edit-btn:focus-visible { opacity: 1; transform: scale(1); }
.ls-edit-btn:hover { background: var(--green, #3C5A47); border-color: var(--green, #3C5A47); color: #F4EEE2; }
@media (hover: none) {
  .ls-edit-btn { opacity: 0.55; transform: scale(1); }
}

/* ── Heritage blue: place identity (design-system semantic color) ── */
.is-place-page .eyebrow { color: var(--blue, #35495E); }
.is-place-page .ls-chip { color: var(--blue, #35495E); border-color: rgba(53,73,94,0.35); background: rgba(53,73,94,0.06); }
.is-place-page .ls-cover { border-color: rgba(53,73,94,0.4); }
.is-place-page .ls-lens a:hover { color: var(--blue, #35495E); }
.is-place-page .breadcrumbs a:hover { color: var(--blue, #35495E); }
.live-map { border-color: rgba(53,73,94,0.35) !important; }
.leaflet-popup-content a { color: var(--blue, #35495E) !important; font-weight: 600; }
.leaflet-popup-tip, .leaflet-popup-content-wrapper { border-top: 2px solid var(--blue, #35495E); }

/* ── Surface lift: white cards so panels read against the paper ── */
.ls-panel, .ls-media-card, .source-card {
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(35,33,28,0.05), 0 6px 18px rgba(35,33,28,0.05);
}

/* ── TimelineJS Overrides ── */
.tl-timeline { font-family: var(--serif) !important; background: #ffffff !important; }
.tl-menubar { background: var(--green) !important; }
.tl-menubar-button { color: var(--paper) !important; }
.tl-timemarker.tl-timemarker-active .tl-timemarker-content-container { background: var(--green) !important; border-color: var(--green) !important; box-shadow: 0 4px 14px rgba(60,90,71,0.3) !important; }
.tl-timemarker.tl-timemarker-active .tl-timemarker-text h2,
.tl-timemarker.tl-timemarker-active .tl-timemarker-text h3 { color: #F4EEE2 !important; }
.tl-timemarker .tl-timemarker-content-container { background: #FFFFFF !important; border: 1.5px solid var(--brass) !important; border-radius: 3px !important; box-shadow: 0 2px 6px rgba(35,33,28,0.12) !important; }
.tl-timeaxis-tick-text { font-family: var(--mono) !important; font-size: 10px !important; color: var(--ink-50) !important; }
.tl-storyslider { background: #ffffff !important; }
.tl-slide { background: #ffffff !important; }
.tl-slide-content-container { background: #ffffff !important; }
.tl-headline { font-family: var(--serif) !important; color: var(--ink) !important; font-weight: 400 !important; }
.tl-headline-date { font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: 0.12em !important; text-transform: uppercase !important; color: var(--brass) !important; }
.tl-text p { font-family: var(--serif) !important; color: var(--ink-70) !important; font-size: 17px !important; line-height: 1.65 !important; }
.tl-credit { font-family: var(--mono) !important; font-size: 10px !important; color: var(--ink-50) !important; }
.tl-caption { font-family: var(--mono) !important; font-size: 10px !important; }
.tl-timenav { background: #E5DCC8 !important; border-top: 2px solid var(--brass) !important; }
.tl-timenav-slider { background: #E5DCC8 !important; }
.tl-timemarker-timespan { background: rgba(169,133,78,0.3) !important; border-radius: 3px !important; }
.tl-slide-titleslide { background: var(--ink) !important; }
.tl-slide-titleslide .tl-slide-content-container { background: var(--ink) !important; }
.tl-slide-titleslide .tl-headline { font-size: clamp(32px, 5vw, 48px) !important; color: var(--paper) !important; }
.tl-slide-titleslide .tl-text p { font-size: 20px !important; font-weight: 300 !important; color: rgba(244,238,226,0.72) !important; }
.tl-media-image img { filter: grayscale(0.4) contrast(1.05); }
/* Frame the whole widget so it reads as a distinct object on the page */
#timeline-embed, #dynamic-timeline-embed {
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 30px rgba(35,33,28,0.10), 0 1px 0 rgba(35,33,28,0.06) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}
/* Placeholder media block for events with no image/video/map */
.tl-media .ls-tl-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 220px;
  background: var(--paper-2, #EFE7D6);
  border: 1.5px dashed var(--brass);
  border-radius: 5px;
  gap: 10px;
}
.ls-tl-placeholder__year {
  font-family: var(--serif); font-size: 44px; font-weight: 400; color: var(--brass);
  line-height: 1; letter-spacing: -0.01em;
}
.ls-tl-placeholder__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50, rgba(35,33,28,0.5));
}
.ls-tl-placeholder__mark {
  width: 34px; height: 2px; background: var(--brass); opacity: 0.6;
}


/* ── Back to Top Button ── */
.ls-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
  outline: none;
}
.ls-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.ls-back-to-top:hover {
  transform: translateY(-2px);
  background: var(--paper-2);
  border-color: var(--green);
  color: var(--green-2);
}
.ls-back-to-top svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* ── Floating scroll controls (to-bottom + section pager) ──
   Same visual language as .ls-back-to-top, stacked above it. */
.ls-scroll-btn {
  position: fixed;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
  outline: none;
  padding: 0;
}
.ls-scroll-btn.is-visible { opacity: 1; visibility: visible; }
.ls-scroll-btn:hover {
  transform: translateY(-2px);
  background: var(--paper-2);
  border-color: var(--green);
  color: var(--green-2);
}
.ls-scroll-btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.ls-scroll-btn svg { width: 20px; height: 20px; stroke-width: 2.5; }
.ls-to-bottom { bottom: 76px; }
.ls-page-down { bottom: 128px; }
.ls-page-up   { bottom: 180px; }
.ls-back-to-top:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ── Section heading anchors (hover-visible "#") ── */
.ls-has-anchor { position: relative; }
.ls-anchor-link {
  margin-left: 10px;
  font-family: var(--sans);
  font-size: 0.6em;
  font-weight: 700;
  color: var(--brass, #A9854E);
  text-decoration: none;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.ls-has-anchor:hover .ls-anchor-link,
.ls-anchor-link:focus-visible { opacity: 1; }
.ls-anchor-link:hover { color: var(--green, #3C5A47); }
.ls-anchor-link:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (hover: none) {
  .ls-anchor-link { opacity: 0.45; }
}
/* Anchored sections land below the sticky lens nav */
section[id], .ls-section[id], .sec[id] { scroll-margin-top: 70px; }

/* ── Tag Consistency ── */
span.tag, span.ls-chip, span.badge {
  cursor: default !important;
  pointer-events: none !important;
}
span.tag::after, span.ls-chip::after, span.badge::after {
  display: none !important; /* Hide arrows on passive spans */
}
a.tag, a.ls-chip, a.badge {
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

/* ── Image Card Tag Overlay ── */
.ph__tag {
  display: none !important;
}

/* Override TimelineJS backgrounds to pure white */
.tl-timeline,
.tl-storyslider,
.tl-slide,
.tl-slide-background,
.tl-slide-content-container,
.tl-text,
.tl-text-content,
.tl-media,
.tl-media-content-container {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* TimelineJS card background to white */
.tl-timemarker .tl-timemarker-content-container {
    background-color: #ffffff !important;
}

/* ALL CARDS MUST BE WHITE OVERRIDE */
.card, .conn-card, .story-card, .event-card, .person-card, .place-card,
.ls-media-card, .ls-panel, .ls-cover, .ls-cover__body, .ls-source, .ls-update-card,
.audio-episode, .chart-wrap, .person-list-item, .event-chip, .evidence-item,
.source-card, .media-card, .lab-card, .photo-mosaic, .tl-timemarker-content-container {
  background: #ffffff !important;
  background-color: #ffffff !important;
}
