/* =========================================================================
   page-data.css — styles unique to data/index.html
   All tokens, canonical components (.card, .btn, .section-head, .kicker,
   .container, .pill, .media-frame) come from foundation.css, layout.css,
   and design-system.css.
   ========================================================================= */

main a { color: var(--hvb-teal); text-decoration: none; }
main a:hover { text-decoration: underline; }

/* ── Secondary paragraph ─────────────────────────────────────────────────── */
.sub {
  margin: 6px 0 0;
  color: var(--hvb-slate);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Custom textured hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(233, 169, 35, 0.14), rgba(233, 169, 35, 0) 62%),
    linear-gradient(180deg, rgba(14, 59, 46, 0.10), rgba(14, 59, 46, 0.02)),
    url("../assets/textures/tx_topo-hudson-lines_tile.svg"),
    url("../assets/textures/tx_water-ripple_tile.svg");
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: cover, cover, 520px 520px, 560px 560px;
  border-bottom: 1px solid rgba(14, 59, 46, 0.10);
}

.hero-inner {
  padding: 40px 0 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ── Regional map section ────────────────────────────────────────────────── */
.regional-map {
  background: #fff;
  border-bottom: 1px solid rgba(14, 59, 46, 0.08);
  padding: 36px 0;
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 18px;
  align-items: center;
}

.map-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(14, 59, 46, 0.12);
  padding: 20px;
  box-shadow: var(--shadow-1);
}

.map-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(14, 59, 46, 0.10);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.map-caption {
  margin: 12px 0 0;
  color: var(--hvb-slate);
  font-size: 14px;
}

.data-callout {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
}

.data-callout h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 20px;
}

.data-callout ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--hvb-slate);
  line-height: 1.4;
  font-size: 15px;
}

@media (max-width: 940px) {
  .map-grid { grid-template-columns: 1fr; }
}

/* ── Atlas card ──────────────────────────────────────────────────────────── */
.atlas-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: center;
}

.atlas-card figure {
  margin: 0;
}

.atlas-card img {
  border-radius: 16px;
  border: 1px solid rgba(14, 59, 46, 0.10);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

/* ── Section CTA row ─────────────────────────────────────────────────────── */
.section-cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Gallery filter bar ──────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 0;
}

.search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.search input {
  width: min(520px, 100%);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(14, 59, 46, 0.18);
  outline: none;
  font-size: 14px;
  background: #fff;
}

.search input:focus {
  border-color: rgba(31, 111, 98, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 111, 98, 0.16);
}

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

.chip {
  border: 1px solid rgba(14, 59, 46, 0.14);
  background: rgba(31, 111, 98, 0.06);
  color: var(--hvb-green);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.chip.active {
  background: rgba(14, 59, 46, 0.12);
  border-color: rgba(14, 59, 46, 0.24);
}

/* ── 4-column gallery grid ───────────────────────────────────────────────── */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid4 { grid-template-columns: 1fr; }
}

/* ── Thumbnail cards ─────────────────────────────────────────────────────── */
.thumbcard {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thumbwrap {
  padding: 10px 10px 8px;
  background:
    linear-gradient(180deg, rgba(31, 111, 98, 0.06), rgba(31, 111, 98, 0.02)),
    url("../assets/textures/tx_recycled-paper_tile.png");
  background-repeat: no-repeat, repeat;
  background-size: cover, 640px 640px;
  border-bottom: 1px solid rgba(14, 59, 46, 0.10);
}

.thumbwrap figure {
  margin: 0;
}

.thumbbody {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thumbbody h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* ── Meta label ──────────────────────────────────────────────────────────── */
.meta {
  margin: 0;
  color: var(--hvb-slate);
  font-size: 13.5px;
}

/* ── Button groups ───────────────────────────────────────────────────────── */
.actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#biosGrid .actions {
  margin-top: 0;
}

.secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions--compact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.actions--compact .btn {
  flex: 1 1 150px;
}

.linkrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px 0;
}

/* ── Atlas button ────────────────────────────────────────────────────────── */
.btn-atlas {
  background: #0c6fd6;
  color: #fff;
  border-color: #0c6fd6;
}

.btn-atlas:hover {
  background: #0a5bb5;
  border-color: #0a5bb5;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 22, 23, 0.72);
  padding: 18px;
  z-index: 2000;
}

.lightbox.open { display: flex; }

.lbpanel {
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.lbtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(14, 59, 46, 0.10);
  background:
    linear-gradient(180deg, rgba(31, 111, 98, 0.06), rgba(31, 111, 98, 0.02)),
    url("../assets/textures/tx_recycled-paper_tile.png");
  background-repeat: no-repeat, repeat;
  background-size: cover, 640px 640px;
}

.lbtitle {
  margin: 0;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--hvb-black);
}

.xbtn {
  border: 1px solid rgba(14, 59, 46, 0.18);
  background: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 900;
  color: var(--hvb-green);
  cursor: pointer;
}

.lbcontent { padding: 14px; }

.lbgallery { position: relative; }

.lbcontent img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(14, 59, 46, 0.10);
  background: #fff;
}

.lbnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(14, 59, 46, 0.25);
  background: #fff;
  color: var(--hvb-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lbnav:focus-visible {
  outline: 2px solid var(--hvb-green);
  outline-offset: 2px;
}

.lbnav:hover {
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.lbnav--prev { left: 12px; }
.lbnav--next { right: 12px; }

.lbfooter {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(14, 59, 46, 0.10);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* ── Code inline ─────────────────────────────────────────────────────────── */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

/* ── Details/summary (FAQ style) ─────────────────────────────────────────── */
details {
  background: #fff;
  border: 1px solid rgba(14, 59, 46, 0.10);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-1);
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--hvb-green);
  outline: none;
}

details p { margin: 10px 0 0; color: var(--hvb-slate); }
details ul { margin: 10px 0 0; padding-left: 18px; color: var(--hvb-slate); }
