.grain {
  background-image: radial-gradient(rgba(19, 46, 24, 0.06) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  pointer-events: none;
}

.nav-link {
  position: relative;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  background: currentColor;
  opacity: 0.55;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.event-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.75rem;
  align-items: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(47, 107, 61, 0.18);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.75rem;
}

@media (max-width: 520px) {
  .event-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.event-item span {
  font-weight: 700;
  color: var(--color-leaf-800);
}

.event-item strong {
  color: var(--color-slate-800);
}

.talk-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(139, 77, 35, 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 0.75rem;
  color: var(--color-slate-700);
  line-height: 1.45;
}

.talk-item span {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 700;
  color: var(--color-earth-700);
}

.gallery-card {
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
  min-height: 220px;
  cursor: pointer;
}

.gallery-card::before {
  content: "View Photo";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: all 250ms ease;
  z-index: 10;
  pointer-events: none;
}

.gallery-card:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
  opacity: 0.8;
  transition: opacity 250ms ease;
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-card figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
}

.gallery-card img {
  transition: transform 280ms ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.link {
  color: var(--color-leaf-800);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.2em;
}

.link:hover,
.link:focus-visible {
  color: #143820;
}

.footer-link {
  color: var(--color-slate-300);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.report-shell {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.25rem 1rem 4rem;
}

@media (min-width: 768px) {
  .report-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.report-mast {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  border-radius: 1.5rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.photo-grid--tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-tile {
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fafc;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform 240ms ease;
  cursor: zoom-in;
}

.photo-tile:hover img {
  transform: scale(1.03);
}

.report-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.9rem;
  background: #ffffff;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.report-table th,
.report-table td {
  text-align: left;
  padding: 0.72rem 0.82rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #1e293b;
}

.report-table th {
  background: #eef7f0;
  color: #1f4f2c;
  font-weight: 700;
}

.report-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.stat-pill {
  border: 1px solid rgba(36, 80, 49, 0.15);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-leaf-800);
  text-transform: uppercase;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.92);
}

.photo-modal.is-open {
  display: flex;
}

.photo-modal-dialog {
  position: relative;
  width: min(96vw, 1200px);
}

.photo-modal-image {
  display: block;
  width: 100%;
  max-height: 84vh;
  border-radius: 0.8rem;
  object-fit: contain;
  background: #0f172a;
}

.photo-modal-caption {
  margin-top: 0.7rem;
  text-align: center;
  color: #e2e8f0;
  font-size: 0.82rem;
}

.photo-modal-btn {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.photo-modal-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
}

.photo-modal-close {
  right: 1rem;
  top: 1rem;
}

.photo-modal-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.photo-modal-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

html {
  scroll-behavior: smooth;
}
