.area-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 8px 0 22px;
  padding: 10px 0;
  background: rgba(247, 248, 251, 0.94);
}
.area-tabs a {
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 750;
  color: var(--ink);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.area-tabs a[aria-current="page"] {
  background: var(--brand);
  color: white;
}
.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 28px;
}
.fact-list div {
  background: white;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.fact-list dt { color: var(--muted); font-size: 0.82rem; }
.fact-list dd { margin: 4px 0 0; font-weight: 800; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.media-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.media-card img, .media-card > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.media-card div, .media-card figcaption {
  padding: 12px 14px 14px;
}
button.media-card {
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.media-card > span { display: block; padding: 12px 14px 14px; }
.media-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.webcam-dialog {
  width: min(960px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 24px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #0b1220;
  color: white;
  overflow: hidden;
}
.webcam-dialog::backdrop { background: rgba(8, 16, 32, 0.72); }
.webcam-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
.webcam-dialog h2 { margin: 0; font-size: 1.05rem; }
.webcam-dialog [data-close] {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #334155;
  color: white;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.webcam-dialog iframe {
  display: block;
  width: 100%;
  height: calc(100% - 60px);
  border: 0;
  background: black;
}
.media-card p { margin: 0 0 8px; }
.photo-credit {
  margin: 0;
  padding: 8px 14px 10px;
  background: white;
  color: var(--muted);
  font-size: 0.85rem;
}
.table-wrap { overflow-x: auto; background: white; border-radius: 18px; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap caption {
  text-align: left;
  padding: 12px 14px 0;
  font-weight: 750;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.section-head h2 { margin-bottom: 8px; }
@media (max-width: 900px) {
  .fact-list, .media-grid { grid-template-columns: 1fr; }
}
