/* ==========================================================================
   Trip reports — only what the shared design system doesn't already have.
   Page header, cards, meta row, gallery grid, join block and buttons all come
   from styles.css. Every value here is a token from its :root block.
   ========================================================================== */

/* --- Language selector, visible in the header at every width --- */
.lang-switch {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: var(--space-1);
  padding-inline: 0.25rem;
  background: rgba(21, 20, 15, 0.55); /* keeps it readable over a cover photo */
  border-radius: var(--radius);
}
.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-paper);
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
}
a.lang-switch__item:hover { opacity: 1; }
.lang-switch__item.is-current { color: var(--color-accent-on-dark); opacity: 1; }
.lang-switch__item.is-unavailable { opacity: 0.35; cursor: not-allowed; }

@media (min-width: 900px) {
  .nav__menu { margin-left: auto; }
  .lang-switch { order: 2; margin-left: var(--space-3); margin-right: 0; }
}

/* --- Header --- */
/* .eyebrow's moss tone is too quiet over photography and on the dark header */
.report-header__eyebrow { color: var(--color-paper); font-weight: 500; }
/* Report covers are real outing photos, often with bright rock or snow behind
   the text, so they need more than the default scrim to stay readable. */
.page-header--photo .page-header__scrim {
  background:
    linear-gradient(90deg, rgba(21,20,15,0.72) 0%, rgba(21,20,15,0.12) 70%),
    linear-gradient(180deg, rgba(21,20,15,0.62) 0%, rgba(21,20,15,0.42) 45%, rgba(21,20,15,0.62) 100%);
}
.page-header--photo .page-header__subtitle { color: var(--color-paper); font-weight: 400; }

/* --- List --- */
.report-list { padding-block: var(--space-6); }
.report-list__empty {
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}
.report-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.report-card__meta { margin-top: var(--space-2); }
.report-card__title { margin-top: var(--space-1); }
.report-card__lang {
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* --- Report --- */
.report-back { margin-top: 0; }
.report-meta { gap: var(--space-3) var(--space-5); }

.report-prose {
  max-width: 70ch;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}
.report-prose > * + * { margin-top: var(--space-2); }
.report-prose h2,
.report-prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--color-ink);
}
.report-prose h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-top: var(--space-5);
}
.report-prose h2:first-child { margin-top: 0; }
.report-prose h3 {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  margin-top: var(--space-4);
}
.report-prose strong { font-weight: 600; color: var(--color-ink); }
.report-prose a { color: var(--color-accent); text-decoration: underline; }
.report-prose hr {
  border: none;
  border-top: 1px solid var(--color-line-dark);
  margin-block: var(--space-4);
}
.report-prose li {
  padding-block: 0.6em;
  border-top: 1px solid var(--color-line-dark);
}
.report-prose li:last-child { border-bottom: 1px solid var(--color-line-dark); }
.report-prose ol { counter-reset: report-step; }
.report-prose ol > li {
  counter-increment: report-step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
}
.report-prose ol > li::before {
  content: counter(report-step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.95;
  color: var(--color-accent);
}
.report-prose blockquote {
  margin-inline: 0;
  padding-left: var(--space-2);
  border-left: 2px solid var(--color-accent);
  color: var(--color-ink);
}
.report-prose img { width: 100%; height: auto; margin-block: var(--space-3); }
.report-prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.report-prose th,
.report-prose td {
  padding: 0.6em 1em 0.6em 0;
  text-align: left;
  border-bottom: 1px solid var(--color-line-dark);
}
.report-prose th { font-weight: 600; color: var(--color-ink); }

/* --- Gallery --- */
.report-gallery__title { margin-bottom: var(--space-3); }
.report-gallery .exp-detail__gallery-item { overflow: hidden; }
.report-gallery img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}
.report-gallery a:hover img,
.report-gallery a:focus-visible img { transform: scale(1.08); }

/* --- Lightbox --- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--space-2);
  border: none;
  background: var(--color-ink);
  color: var(--color-paper);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}
.lightbox::backdrop { background: var(--color-ink); }
.lightbox__figure {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.lightbox__img {
  min-height: 0;
  max-width: 100%;
  max-height: calc(100% - var(--space-6));
  object-fit: contain;
}
.lightbox__caption {
  max-width: 70ch;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(244, 240, 230, 0.8);
}
.lightbox__btn {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  color: var(--color-paper);
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 1;
}
@media (max-width: 599px) {
  .lightbox__prev,
  .lightbox__next {
    position: absolute;
    bottom: var(--space-2);
    z-index: 1;
  }
  .lightbox__prev { left: var(--space-2); }
  .lightbox__next { right: var(--space-2); }
}
