@charset "utf-8";

/* =========================
   COMPONENTS
========================= */

/* Carousel */
.carouselSingleImg li {
  display: none;
}

/* External links */
a.external {
  color: #2b80b9;
}

a.external[target="_blank"] {
  white-space: nowrap;
}

a.external[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-top;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232b80b9' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z'/%3E%3Cpath fill='%232b80b9' d='M5 5h6v2H7v10h10v-4h2v6H5z'/%3E%3C/svg%3E");
}


/* =========================
   ACCESSIBILITY
========================= */

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
:focus-visible {
  outline: 3px solid #005FCC;
  outline-offset: 3px;
}

.focusable-link:focus {
  outline: none;
}

.focusable-link:focus-visible {
  outline: 3px solid #005FCC;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,95,204,0.3);
  border-radius: 4px;
}


/* =========================
   IMAGE HOVER / ZOOM
========================= */

.img-hover-zoom {
  height: auto;
  overflow: hidden;
}

.img-hover-zoom button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.img-hover-zoom img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover + focus zoom */
.img-hover-zoom:hover img,
.img-hover-zoom:focus-within img {
  transform: scale(1.05);
}

/* Variant: point zoom */
.img-hover-zoom--point-zoom img {
  transform-origin: 65% 75%;
  transition: transform 1s, filter 0.5s ease-out;
}

.img-hover-zoom--point-zoom:hover img {
  transform: scale(1.1);
}

/* Headings inside zoom */
.img-hover-zoom h5 {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.img-hover-zoom button > h3 {
  font-size: 0.9rem;
}


/* =========================
   LIGHTBOX
========================= */

/* Base */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

/* Open state */
.lightbox.open {
  display: flex;
}

/* Content */
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  pointer-events: none;
}

.lightbox-content * {
  pointer-events: auto;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox-content img.show {
  opacity: 1;
}

/* Caption */
#lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Controls */
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}

.lightbox-close {
  top: 10px;
  right: 10px;
}

.lightbox-nav.prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Focus inside modal */
.lightbox button:focus-visible {
  outline: 3px solid #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lightbox-content img {
    transition: none;
  }
}


/* =========================
   TYPOGRAPHY / CONTENT / LEGAL
========================= */

.storyCopy {
  max-width: 70ch;
}

.legal {
  margin-top: 2rem;
}

.legal sup {
  vertical-align: super;
  font-size: 0.75em;
}

.legal ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.legal li {
  padding-left: 1.5em;
  line-height: 1.5;
  font-size: 0.91em;
  margin-bottom: 0.95em;
}

.legal li sup {
  font-size: 0.75em;
  vertical-align: super;
  margin-right: 0.3em;
}

/* Highlight targeted footnote */
.legal li:target {
  background: #f0f6ff;
  padding: 0.25em;
  border-radius: 4px;
}

/* Footnote links */
.footnote-ref {
  font-weight: 700;
  font-size: 1em;
  color: #005FCC;
  text-decoration: none;
  padding: 0 2px;
  border-radius: 3px;
  line-height: 1;
}

.footnote-ref:hover {
  text-decoration: underline;
}

.footnote-ref:focus-visible {
  outline: 3px solid #005FCC;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,95,204,0.25);
}


/* =========================
   LAYOUT / UTILITIES
========================= */

.marginBottom {
  margin-bottom: 15px;
}

.textCenter {
  text-align: center;
}

/* Grid */
.cols-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.cols-6 > * {
  margin: 0;
}

.cols-6::before,
.cols-6::after {
  content: none !important;
  display: none !important;
}

