:root{--top:100px}
.topbar{gap:20px}
.topbar .top-center{position:static;transform:none;margin-left:auto;font-size:8px;letter-spacing:1.5px}
.topbar .top-actions{margin-left:0;flex-shrink:0}
.exo-figures{display:block;flex:0 1 470px;margin-left:auto;padding:8px 12px;text-align:left;border-left:1px solid #d5b78155;border-radius:0;color:#e8edf2;line-height:1.4;min-width:0}
.exo-figures:hover{background:#d5b78108}
.exo-figures-line{display:block;font-size:12px;white-space:nowrap;line-height:1.2}
.exo-figures-line strong{color:var(--gold);font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
.exo-figures-source{display:block;color:#a5b1bd;font-size:8px;margin-top:4px;line-height:1.2}
.exo-figures-source b{font-weight:500;color:var(--gold)}
#exo-figures-dialog .exo-figure-summary{margin:15px 0;padding:13px 15px;background:#d5b78108;border-left:2px solid var(--gold)}
#exo-figures-dialog .exo-figure-summary p{color:#e8edf2;font-size:13px}
#exo-figures-dialog .exo-figure-summary strong{color:var(--gold)}
@media(max-width:1530px){.topbar .top-center{display:none}.topbar{gap:15px}.exo-figures{flex-basis:450px}}
@media(max-width:1100px){:root{--top:182px}.topbar{display:grid;grid-template-columns:1fr auto;grid-template-rows:64px 118px;gap:0 14px;padding:0 18px}.topbar .brand{grid-column:1;grid-row:1}.topbar .top-actions{grid-column:2;grid-row:1}.exo-figures{grid-column:1/-1;grid-row:2;width:100%;margin:0;align-self:center;padding:7px 12px}.exo-figures-line{font-size:12px}.exo-figures-source{font-size:9px}}
@media(max-width:680px){:root{--top:182px}.topbar{padding:0 14px}.exo-figures{padding:6px 10px}.exo-figures-line{font-size:11px;white-space:normal}.exo-figures-line strong{font-size:14px}.exo-figures-source{font-size:8px;max-width:100%}}
.contact-notes{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
.contact-notes p{font-size:11px;margin:9px 0}
.contact-related{display:block;text-align:left;width:100%;padding:10px 0;color:var(--gold);font-size:12px;border-bottom:1px solid var(--line)}
.contact-source-note{display:block;font-size:10px;line-height:1.6;color:#8e9ba7;margin:0 0 14px}
.detail-locate:disabled{opacity:.5}
.top-actions .download-map-button{display:inline-flex;align-items:center;gap:7px}
.download-map-button svg{width:15px;height:15px}
@media(max-width:1530px) and (min-width:1101px){.edition{display:none}}
@media(max-width:680px){.top-actions .download-map-button{font-size:10px;padding:9px 6px}.top-actions .download-map-button svg{display:none}.topbar .brand{letter-spacing:1px;font-size:10px;gap:6px}.topbar .brand-symbol{width:24px}.topbar .top-actions{gap:5px}}
@media(max-width:430px){.top-actions #sources-button{font-size:0;width:35px;padding:9px}.top-actions #sources-button svg{display:block}.top-actions .download-map-button{font-size:0;width:35px;justify-content:center;padding:9px}.top-actions .download-map-button svg{display:block}}

.button-row{flex-wrap:wrap}

/* Space cooperation and the author-supplied JP flag */
.map-legend{flex-wrap:wrap;justify-content:flex-end;max-width:65%;row-gap:8px}
.map-legend button{font:inherit;color:#a8dcb8;display:inline-flex;align-items:center;gap:6px;padding:0;white-space:nowrap}
.dot.cooperation{background:#6cde92;box-shadow:0 0 7px #5acf7e55}
#space-cooperation-dialog{max-width:650px}
.cooperation-command{border-left:2px solid #6cde92;background:#6cde920a;padding:16px 18px;margin:22px 0}
.cooperation-command h3{margin:8px 0;color:#d1e9d9}
.cooperation-regions{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px;padding-left:18px;font-size:12px;line-height:1.5;color:#b9c6d1}
.cooperation-regions li::marker{color:#6cde92}
.bermuda-flag{margin:22px 0;padding:12px;border:1px solid #24333c;background:#080c12;border-radius:8px}
.bermuda-flag img{display:block;width:100%;height:auto;max-height:290px;object-fit:contain;border-radius:4px}
.bermuda-flag figcaption{font-size:10px;line-height:1.6;color:#95a8b7;margin-top:10px}
.cooperation-source-links a{display:block;color:var(--gold);font-size:12px;margin:13px 0}
@media(max-width:680px){.map-legend{max-width:100%;justify-content:flex-start}.cooperation-regions{grid-template-columns:1fr}.bermuda-flag img{max-height:220px}}

@media(min-width:1101px){.exo-figures-line{line-height:1.3}}

/* Curated research library */
.research-library-launcher {
  flex-shrink: 0;
  justify-content: space-between;
  margin: -5px 23px 15px;
  padding: 11px 12px;
  border-color: #d5b78130;
  background: #d5b78108;
  color: #d5b781;
}
.research-library-launcher:hover { border-color: #d5b78165; background: #d5b78112; }
.research-launcher-count { color: #8e9ca8; font-size: 10px; }

#research-dialog {
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  padding: 30px 34px 34px;
  background: linear-gradient(145deg, #141d27, #10171f 45%);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#research-dialog .research-dialog-header { margin-bottom: 16px; }
#research-dialog .research-dialog-header .eyebrow { color: #b6a17b; }
#research-dialog .research-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #ffffff15;
  border-radius: 8px;
  font-size: 14px;
}
#research-dialog .research-close:hover { background: #ffffff0b; }
#research-dialog h2 { margin-bottom: 10px; font-size: 33px; }
#research-dialog .research-intro { max-width: 680px; color: #a0aebb; font-size: 13px; }
.research-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 27px;
}
.research-filters label { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.research-filters label > span { font-size: 10px; color: #a2b0bd; letter-spacing: .2px; }
.research-filters input,
.research-filters select {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 10px 11px;
  border: 1px solid #ffffff1c;
  border-radius: 7px;
  background: #0b121a;
  color: #d9e2ea;
  font-size: 12px;
}
.research-filters select { cursor: pointer; text-overflow: ellipsis; }
.research-filters input::placeholder { color: #718392; }
.research-filters input:focus-visible,
.research-filters select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.research-result-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 49px; }
#research-count { color: #9aacbb; font-size: 11px; }
.research-clear { padding: 8px 2px; color: var(--gold); font-size: 11px; }
.research-clear:hover { text-decoration: underline; text-underline-offset: 4px; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.research-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  min-width: 0;
  padding: 20px;
  text-align: left;
  border: 1px solid #ffffff13;
  border-radius: 10px;
  background: #ffffff03;
  overflow-wrap: anywhere;
}
.research-card:hover { background: #d5b78108; border-color: #d5b78150; }
.research-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.research-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.research-publisher-name { color: #b8a583; font-size: 10px; line-height: 1.5; }
.research-classification {
  display: inline-block;
  border: 1px solid #ffffff1a;
  border-radius: 4px;
  padding: 4px 6px;
  color: #a7b7c5;
  background: #ffffff04;
  font-size: 9px;
  line-height: 1.4;
}
.research-card-title { font-size: 17px; font-weight: 500; line-height: 1.45; color: #e7edf3; letter-spacing: -.15px; }
.research-card-summary { color: #9baab7; font-size: 12px; line-height: 1.75; }
.research-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #ffffff0d;
  font-size: 10px;
  color: #8b9dad;
  line-height: 1.5;
}
.research-card-footer > span:last-child { text-align: right; flex-shrink: 0; }
.research-empty { grid-column: 1 / -1; border: 1px dashed #ffffff20; border-radius: 10px; text-align: center; padding: 42px 20px; }
.research-empty h3 { font-size: 19px; font-weight: 500; }
.research-empty p { margin: 9px 0 20px; }

.research-entry-detail { padding-top: 4px; max-width: 830px; overflow-wrap: anywhere; }
.research-back { padding: 9px 0; margin: 0 0 22px; color: var(--gold); font-size: 12px; }
.research-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.research-detail-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #baa683; font-size: 11px; margin-bottom: 14px; }
#research-dialog .research-detail-title { font-size: clamp(23px, 3vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -.5px; margin: 0 0 20px; }
#research-dialog .research-detail-title:focus { outline: none; }
#research-dialog .research-detail-summary { color: #bfccd7; font-size: 14px; line-height: 1.9; }
.research-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 25px;
  margin: 25px 0;
  border-top: 1px solid #ffffff17;
}
.research-meta-row { min-width: 0; padding: 14px 0; border-bottom: 1px solid #ffffff0c; }
.research-meta-row dt { font-size: 10px; color: #8396a7; margin-bottom: 6px; }
.research-meta-row dd { margin: 0; color: #c4d0da; font-size: 12px; line-height: 1.65; }
.research-note { margin: 19px 0; padding-left: 15px; border-left: 2px solid #d5b7813b; }
.research-note h4,
.research-map-links h4 { margin: 0 0 7px; font-size: 11px; font-weight: 500; color: #c8b58e; }
#research-dialog .research-note p { font-size: 12px; line-height: 1.8; color: #9eb0be; }
.research-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.research-original-link { min-height: 42px; }
.research-map-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid #ffffff14; }
.research-map-links h4 { flex-basis: 100%; margin-bottom: 3px; }
.research-map-links .research-locate { white-space: normal; text-align: left; justify-content: flex-start; line-height: 1.6; }

.research-source-launcher { margin-top: 14px; }
.research-collections-list { display: grid; gap: 9px; margin-top: 17px; }
.research-collection { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 15px; padding: 13px; border: 1px solid #ffffff14; border-radius: 7px; background: #ffffff02; }
.research-collection:hover { border-color: #d5b78150; background: #d5b78106; }
.research-collection strong { grid-column: 1; font-size: 12px; font-weight: 500; line-height: 1.5; color: #d6e0e8; }
.research-collection > span:not(.research-collection-arrow) { grid-column: 1; font-size: 10px; line-height: 1.65; margin-top: 5px; color: #8fa2b3; }
.research-collection .research-collection-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 16px; color: var(--gold); }
.research-related-reading { border-top: 1px solid #ffffff13; margin-top: 23px; padding-top: 20px; }
.research-related-reading h3 { color: #9db0bf; font-size: 11px; font-weight: 500; margin: 0 0 12px; }
.research-reading-link { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 12px; margin-top: 7px; border: 1px solid #ffffff12; border-radius: 7px; background: #d5b78104; }
.research-reading-link:hover { border-color: #d5b78145; background: #d5b7810a; }
.research-reading-title { color: #d0bc95; font-size: 11px; line-height: 1.6; }
.research-reading-link small { color: #8c9cac; font-size: 9px; line-height: 1.6; }

@media (max-width: 1190px) {
  .research-library-launcher { margin-right: 19px; margin-left: 19px; }
}
@media (max-width: 760px) {
  #research-dialog { width: calc(100vw - 24px); padding: 22px; max-height: calc(100dvh - 24px); }
  #research-dialog h2 { font-size: 29px; }
  .research-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; margin-top: 22px; }
  .research-search-label { grid-column: 1 / -1; }
  .research-grid { grid-template-columns: minmax(0, 1fr); }
  .research-card { padding: 17px; gap: 11px; }
  .research-filters input { font-size: 16px; }
}
@media (max-width: 680px) {
  .research-library-launcher { margin: 5px 20px 7px; padding: 7px 10px; min-height: 33px; font-size: 10px; }
  .research-launcher-count { font-size: 9px; }
}
@media (max-width: 420px) {
  #research-dialog { padding: 18px; }
  .research-filters select { font-size: 11px; padding-left: 8px; }
  .research-card-title { font-size: 16px; }
  .research-card-meta { gap: 7px; }
  .research-metadata { grid-template-columns: minmax(0, 1fr); }
  #research-dialog .research-detail-summary { font-size: 13px; }
  .research-detail-actions .research-original-link { width: 100%; }
}

.research-detail-actions .research-media-link{white-space:normal;line-height:1.5;text-align:left;min-height:42px}

/* Optional images in research articles */
.research-card-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #ffffff12;
  border-radius: 7px;
  background: #080e15;
}
.research-article-figure {
  margin: 24px 0;
  padding: 0;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  overflow: hidden;
  background: #080e15;
}
.research-article-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.research-image-caption {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 16px;
  border-top: 1px solid #ffffff10;
  color: #a4b3c0;
  font-size: 11px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.research-image-credit { color: #ccb68b; font-size: 10px; }
a.research-image-credit { align-self: flex-start; text-decoration: underline; text-underline-offset: 3px; }
a.research-image-credit:hover { color: #edcf9a; }
@media (max-width: 420px) {
  .research-card-image { height: 145px; }
  .research-image-caption { padding: 11px 13px; }
}

/* Author cooperation and official Artemis Accords source layers */
.dot.artemis { background: #b5efae; box-shadow: 0 0 7px #c9f4cf35; }
.map-legend #artemis-cooperation-info { color: #c9dfcd; }
#space-cooperation-dialog { width: min(680px, calc(100vw - 30px)); max-width: 680px; }
#space-cooperation-dialog .cooperation-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 0;
  background: #111922;
  box-shadow: 0 7px 10px #111922;
}
.cooperation-color-key { display: flex; flex-wrap: wrap; gap: 11px 18px; margin: 18px 0 23px; color: #bfceca; font-size: 11px; }
.cooperation-color-key > span { display: inline-flex; align-items: center; gap: 7px; }
.cooperation-source-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid #ffffff16; }
.cooperation-source-section > h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: #d9e8df; font-size: 18px; font-weight: 500; line-height: 1.4; scroll-margin-top: 65px; }
.cooperation-source-section > h3 .dot { width: 7px; height: 7px; flex-shrink: 0; }
.cooperation-source-section > h3:focus { outline: none; }
.cooperation-source-section > h4 { margin: 22px 0 10px; color: #baccd6; font-size: 12px; font-weight: 500; }
.artemis-accords-section > h3 { color: #d3f1d8; }
.artemis-accords-section > p { margin: 10px 0; }
.artemis-overlap { padding: 12px 14px; border-left: 2px solid #c9f4cf80; background: #c9f4cf07; }
.artemis-additional-countries,
.artemis-signatory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 25px; margin: 12px 0 18px; padding-left: 19px; color: #b6c9be; font-size: 11px; line-height: 1.6; }
.artemis-additional-countries li::marker,
.artemis-signatory-list li::marker { color: #c9f4cf; }
.artemis-signatories { margin: 20px 0; border: 1px solid #c9f4cf24; border-radius: 7px; padding: 0 14px; background: #c9f4cf03; }
.artemis-signatories summary { padding: 15px 0; color: #c9e7cf; font-size: 12px; line-height: 1.6; cursor: pointer; }
.artemis-signatories summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.artemis-source-link { display: inline-block; color: var(--gold); font-size: 12px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .map-legend { column-gap: 12px; row-gap: 7px; }
  .map-legend button { font-size: 8px; }
  #space-cooperation-dialog { width: calc(100vw - 22px); }
  .cooperation-source-section > h3 { font-size: 17px; }
}
@media (max-width: 420px) {
  .artemis-additional-countries,
  .artemis-signatory-list { column-gap: 16px; font-size: 10px; }
  .cooperation-color-key { flex-direction: column; }
}
