/* The station gallery uses the full 3:2 image, with the question beside it. */
body[data-mode=explorar][data-explore-view=field] {
  overflow-y: auto;
  background: #091e27;
}
body[data-mode=explorar][data-explore-view=field] #world { visibility: hidden; }
body[data-mode=explorar][data-explore-view=field] > header { background: #0d252e; }
body[data-mode=explorar][data-explore-view=field] > footer {
  position: relative;
  justify-content: flex-end;
  padding-block: 12px;
  border-top: 1px solid #66858c55;
  background: #0d252e;
}
body[data-mode=explorar][data-explore-view=field] > footer .edition,
body[data-mode=explorar][data-explore-view=field] #scene-status { display: none; }
body[data-explore-view=field] #exploration {
  width: min(1420px, 100%);
  margin: auto;
  padding: 22px clamp(16px, 4vw, 50px) 54px;
  pointer-events: auto;
}
body[data-explore-view=field] #exploration .exp-heading {
  width: auto;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#exploration .exp-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.45rem); }
#progress { margin: 7px 0; color: #d0ddda; font-size: .85rem; }
#explore-view { min-height: 44px; white-space: normal; }
body[data-explore-view=field] .exp-heading .progress-track { margin: 0; width: min(190px, 100%); }
body[data-explore-view=field] #stations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  width: auto;
}
body[data-explore-view=field] .station {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #6f8d8980;
  border-radius: 15px;
  background: #12333e;
  color: #fff7e6;
}
body[data-explore-view=field] .station::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0c252ff5 10%, #0c252fc4 65%, #0c252f70), var(--station-art) center 45% / cover;
}
body[data-explore-view=field] .station[aria-pressed=true] {
  border-color: #f0cb84;
  box-shadow: inset 0 -3px #f0cb84;
}
body[data-explore-view=field] .station-name { font-size: .9rem; font-weight: 700; }
body[data-explore-view=field] .camera-tools { display: none; }
body[data-explore-view=field] #site-card:not([hidden]) {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  align-items: start;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 18px;
}
body[data-explore-view=field] .site-gallery,
body[data-explore-view=field] .site-study {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #66858c;
  border-radius: 21px;
  background: linear-gradient(145deg, #163d48, #0e2934 75%);
  box-shadow: 0 14px 40px #04151c55;
}
body[data-explore-view=field] .site-study { padding: clamp(16px, 2.2vw, 27px); }
body[data-explore-view=field] .site-visual { border: 0; margin: 0; background: transparent; }
body[data-explore-view=field] .site-visual img { aspect-ratio: 3 / 2; object-fit: contain; background: #0a232e; }
.site-image-frame { position: relative; }
.site-image-kind {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border: 1px solid #ead6a678;
  border-radius: 8px;
  background: #11252df2;
  color: #fff3d3;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
}
body[data-explore-view=field] .site-visual figcaption { padding: 14px 18px 0; }
body[data-explore-view=field] .site-visual strong { font-size: .83rem; letter-spacing: .025em; }
body[data-explore-view=field] .site-visual-controls button { min-height: 44px; }
body[data-explore-view=field] .site-gallery .visual-note { margin: 0 18px; padding: 12px 0 15px; }
.site-study-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
#site-card .site-study-heading .close { position: static; margin: 0; min-width: 44px; min-height: 44px; }
#site-card .site-study-heading .eyebrow { margin: 0; line-height: 1.4; }
#site-card #site-title { margin: 4px 0 10px; line-height: 1.14; font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
#site-card #site-title:focus-visible { outline: 2px solid #ffe5b4; outline-offset: 4px; }
#site-card:focus-visible { outline: 2px solid #ffe5b4; outline-offset: 4px; }
#site-card .scene-cue { color: #f4ecd9; font-size: .9rem; line-height: 1.55; margin: 0 0 12px; }
.site-source:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(80px, 38%) 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 15px;
  padding: 8px;
  border: 1px solid #95b6ad80;
  border-radius: 13px;
  background: #0b2630;
}
.site-source img { width: 100%; height: auto; display: block; border-radius: 8px; }
.site-source figcaption { font-size: .71rem; line-height: 1.45; overflow-wrap: anywhere; }
.site-source figcaption span, .site-source figcaption strong { display: block; }
.site-source figcaption span { color: #a9ddd1; font-weight: 700; }
.site-source figcaption strong { color: #fff7e6; margin: 3px 0; font-size: .84rem; }
.site-source a { color: #e7d7ad; text-decoration: underline; text-underline-offset: 2px; }
#site-card #question { margin: 13px 0 11px; font-size: clamp(1.16rem, 2vw, 1.44rem); line-height: 1.3; }
#site-card #answers button {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #72929a9c;
  border-radius: 11px;
  background: #102e3a;
  color: #fff7e6;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.45;
}
#site-card #answers button:hover { border-color: #eacb91; }
#site-card #answers [data-result=correct] { background: #224b44; border-color: #b1e0c7; }
#site-card #answers [data-result=wrong] { background: #423a2b; border-color: #e7c483; }
#site-card #feedback:empty { display: none; }
#site-card #feedback:not(:empty) {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #e7c483;
  border-radius: 11px;
  background: #302e27;
  color: #fff7e6;
  font-size: .86rem;
  line-height: 1.55;
}
#site-card #feedback[data-result=correct] { background: #20473e; border-color: #b1e0c7; }
#site-card #feedback.answer-arrive { animation: station-feedback .3s ease-out both; }
@keyframes station-feedback { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
body.reduced #site-card #feedback { animation: none; }
body.contrast[data-explore-view=field] .site-study,
body.contrast[data-explore-view=field] .site-gallery { background: #061820; border-color: white; }
body[data-explore-view=3d] .site-study { margin-top: 15px; }
@media (prefers-reduced-motion: reduce) { #site-card #feedback.answer-arrive { animation: none; } }
@media (max-width: 760px) {
  body[data-explore-view=field] #stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-explore-view=field] .station { min-height: 60px; padding: 9px; }
  body[data-explore-view=field] .station-status { width: 20px; height: 20px; flex: 0 0 20px; }
  body[data-explore-view=field] #site-card:not([hidden]) { grid-template-columns: 1fr; gap: 12px; }
  #site-card #site-title { scroll-margin-top: 16px; }
}
