:root {
  --ink: #111712;
  --ink-2: #19211a;
  --ink-3: #202c22;
  --line: #354238;
  --gold: #edc875;
  --gold-bright: #ffdfa0;
  --green: #7cdaa2;
  --focus: #b5edcb;
  --shadow: 0 20px 60px #070d09a8;
}

body {
  background:
    radial-gradient(ellipse at 85% 2%, #2766473a, transparent 34rem),
    radial-gradient(ellipse at 0% 22%, #d4a22d12, transparent 38rem),
    var(--ink);
}

.topbar {
  position: relative;
  border-image: linear-gradient(90deg, #37aa63 0 33%, #edc875 33% 66%, #d86d4c 66%) 1;
  border-bottom-width: 2px;
}

.brand-mark { filter: drop-shadow(0 0 18px #79ce8335); }
.brand-words strong { color: var(--green); }
.brand-words small { letter-spacing: .04em; }
.title-period { color: var(--green); }

.intro {
  min-height: 260px;
  position: relative;
  isolation: isolate;
}

.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(180px, 26vw, 345px);
  aspect-ratio: 1;
  right: 3%;
  top: 8%;
  border: 1px solid #80c48b25;
  border-radius: 50%;
  background: repeating-conic-gradient(from 10deg, transparent 0 20deg, #86ca8112 20deg 21deg), radial-gradient(circle, #45916b1c, transparent 69%);
  box-shadow: inset 0 0 0 28px #a3d78508, inset 0 0 0 56px #a3d78508;
}

.intro > div:first-child { max-width: 740px; }
.intro h1 { max-width: 15ch; font-size: clamp(2.6rem, 6vw, 5rem); }
.eyebrow { color: var(--green); }
.hero-emblem { border-color: #73cc8755; background: linear-gradient(145deg, #223b2a, #19221b); }
.hero-emblem strong { color: var(--green); }
.step-item.is-current { border-color: #7cdaa2; background: linear-gradient(120deg, #203b29, #191f1a); box-shadow: 0 6px 28px #48a76722; }
.step-item.is-current > span:first-child { background: var(--green); color: #101b13; }
.button-primary { background: linear-gradient(135deg, #a7e4a9, #5db87a); color: #0e1b12; box-shadow: 0 6px 22px #5ba87028; }
.button-primary:hover:not(:disabled) { background: #c0edb7; color: #101b13; }

.source-studio {
  margin: 0 0 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(145deg, #1c2a20, #171d18 76%);
}

.source-studio-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.source-studio-head > div { max-width: 72ch; }
.source-studio h2 { margin-bottom: .45rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.source-studio-head p:last-child { margin: 0; color: var(--muted); }
.source-compass { width: 56px; height: 56px; flex: none; display: grid; align-content: center; justify-content: center; border: 1px solid #7cdaa266; border-radius: 50%; color: var(--green); font-size: .62rem; line-height: 1.1; text-align: center; }
.source-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.source-card { min-height: 160px; display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid #435648; border-radius: 13px; color: var(--text); text-decoration: none; background: linear-gradient(145deg, #243428, #1a211b); transition: transform .18s, border-color .18s, background .18s; }
.source-card:hover { transform: translateY(-2px); border-color: var(--green); color: var(--text); background: #293c2e; }
.source-card strong { font-size: 1rem; line-height: 1.35; }
.source-card strong span { color: var(--green); }
.source-card > span:not(.source-tag) { color: var(--muted); font-size: .83rem; }
.source-tag { color: var(--green); font-size: .65rem; font-weight: 800; letter-spacing: .13em; }
.hdx-card { align-items: flex-start; }
.hdx-card > * { max-width: 100%; }
.hdx-card .mini-button { margin-top: .2rem; }
.hdx-status { color: var(--muted); font-size: .74rem; margin: 0; }
.hdx-results { display: grid; gap: .4rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.hdx-results li { display: grid; gap: .08rem; }
.hdx-results li a, .hdx-catalog-link { color: #daf1de; font-size: .79rem; font-weight: 700; }
.hdx-results li span { color: var(--muted); font-size: .7rem; }
.hdx-catalog-link { margin-top: .1rem; }

.felt-panel { margin: 0 0 2rem; padding: clamp(1.2rem, 3vw, 2rem); background: linear-gradient(145deg, #1b2a22, #161e19); }
.felt-map-launch { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); margin-top: 1.25rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #405c47; border-radius: 15px; background: radial-gradient(ellipse at 19% 50%, #39895534, transparent 45%), #151d17; }
.felt-map-art { position: relative; min-height: 190px; display: grid; place-items: center; overflow: hidden; border: 1px solid #79ce8140; border-radius: 13px; background: repeating-linear-gradient(32deg, transparent 0 27px, #74c88913 28px 29px), radial-gradient(ellipse at 50% 48%, #3b765032, #162019 72%); }
.felt-map-art::before, .felt-map-art::after { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border: 1px solid #92d4a52b; border-radius: 50%; }
.felt-map-art::after { width: 48%; }
.felt-map-art > span { position: absolute; z-index: 1; top: .7rem; left: .8rem; color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.felt-map-art svg { position: relative; z-index: 1; width: min(76%, 250px); height: 170px; overflow: visible; }
.felt-map-art svg path:first-child { fill: #5ea76c45; stroke: #9fd49c; stroke-width: 2.3; stroke-linejoin: round; }
.felt-map-art svg path:last-child { fill: none; stroke: #afd6a27a; stroke-width: 1.2; stroke-dasharray: 2 3; stroke-linecap: round; }
.felt-map-copy h3 { margin: .5rem 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.felt-map-status { max-width: 55ch; margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.felt-map-note { margin: .65rem 0 0; color: var(--muted); font-size: .75rem; }
.source-note { margin: .9rem 0 0; color: var(--muted); font-size: .75rem; }

.search-panel, .map-column, .results-column, .place-detail { border-color: #354238; background-color: var(--ink-2); }
.filter-option:has(input:checked) { border-color: #5d956d; background: #203529; }
.place-card { border-color: #354238; background: linear-gradient(135deg, #202c22, #171e19); }
.place-card:hover { border-color: #70b682; }
.place-card .place-type { color: #a9dcb4; }
.place-card .place-description { grid-column: 1 / -1; margin: 0; color: #d0d6cb; font-size: .84rem; line-height: 1.55; }
.result-count { color: var(--green); border-color: #47704e; background: #203529; }
.legend-item, .category-chip { border-color: #425345; background: #202d22; color: #d9eadb; }
.tala-pin { background: var(--green); }
.origin-marker .tala-pin { background: #87caff; }
#map { border-color: #48634b; }
.leaflet-control-zoom a { color: var(--green) !important; border-color: #465348 !important; }

@media (max-width: 760px) {
  .intro::after { width: 150px; right: -6%; top: 18%; opacity: .6; }
  .source-link-grid { grid-template-columns: 1fr; }
  .source-card { min-height: auto; }
  .felt-map-launch { grid-template-columns: 1fr; }
  .felt-map-art { min-height: 165px; }
  .felt-map-copy .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .source-card { transition: none; }
}
