/*
 * NSS SLIET enhancement layer.
 * Kept separate from the base stylesheet so the homepage can evolve safely.
 */

:root {
  --nss-green: #073b22;
  --nss-green-light: #0b6b3b;
  --nss-lime: #c8ff68;
  --nss-cream: #f3faef;
  --nss-line: rgba(7, 59, 34, 0.16);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--nss-lime);
  box-shadow: 0 0 18px rgba(200, 255, 104, 0.8);
}

.nss-home-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #062b19;
  isolation: isolate;
}

.brand img {
  /* Header/footer NSS logo: keep the complete emblem inside its round frame. */
  object-fit: contain;
  object-position: center;
  /* padding: 0px */
  border-radius: 50%;
  background: #f6f5f5;
  box-shadow: 0 0 0 2px rgba(200, 255, 104, 0.26);
}
/* The NSS SLIET identity stays left-aligned in the header; the emblem never crops. */
.site-header { display: flex; justify-content: space-between; }
.site-header .brand { position: relative; z-index: 2; }
.footer-main { justify-content: space-between; flex-direction: row; text-align: left; }

/* Team directory: card press/tap flips between a visual profile and role detail. */
.team-intro { padding-bottom: 24px; }
.team-years { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.team-year-link { border: 1px solid var(--nss-line); border-radius: 999px; padding: 9px 14px; color: var(--nss-green); font-size: 12px; font-weight: 900; }
.team-year-link:hover, .team-year-link.is-current { background: var(--nss-green); border-color: var(--nss-green); color: #fff; }
.team-session { scroll-margin-top: 92px; }
.team-session-muted { max-width: none; background: rgba(255, 255, 255, .38); }
.team-session-heading { max-width: 720px; margin-bottom: 42px; }
.team-session-heading h2 { font-size: clamp(42px, 5vw, 72px); margin-bottom: 16px; }
.team-session-heading p:last-child, .team-source-note { color: var(--muted); }
.team-flip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.team-flip-grid-compact { max-width: 940px; }
.team-flip { min-height: 340px; perspective: 1200px; }
.team-flip-toggle { display: block; width: 100%; height: 100%; min-height: 340px; padding: 0; border: 0; border-radius: 22px; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.team-flip-toggle:focus-visible { outline: 3px solid var(--nss-lime); outline-offset: 5px; }
.team-flip-inner { display: block; position: relative; width: 100%; height: 100%; min-height: 340px; transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.team-flip-toggle.is-flipped .team-flip-inner { transform: rotateY(180deg); }
.team-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; padding: 28px; border: 1px solid var(--nss-line); border-radius: 22px; backface-visibility: hidden; box-shadow: 0 18px 48px rgba(7, 59, 34, .09); }
.team-front { background: linear-gradient(145deg, rgba(255,255,255,.96), #e6f5de); }
.team-front::before { content: ""; position: absolute; right: -72px; top: -78px; width: 220px; height: 220px; border: 1px solid rgba(11,107,59,.18); border-radius: 50%; }
.team-back { justify-content: center; background: linear-gradient(140deg, #063a22, #0c6a3c); color: #fff; transform: rotateY(180deg); }
.team-portrait { position: relative; z-index: 1; display: grid; place-items: center; width: 100px; height: 100px; margin-bottom: auto; border: 5px solid rgba(255,255,255,.8); border-radius: 50%; background: linear-gradient(140deg, var(--nss-lime), #5daa50); box-shadow: 0 16px 32px rgba(7,59,34,.18); color: var(--nss-green); font-size: 29px; font-weight: 900; }
.team-role, .team-kicker, .team-hint { font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.team-role, .team-kicker { color: var(--nss-green-light); }
.team-back .team-kicker, .team-back .team-hint { color: #c8ff9a; }
.team-face strong { margin: 9px 0; font-size: clamp(25px, 2.7vw, 36px); line-height: 1; letter-spacing: -.05em; }
.team-back > span:not(.team-kicker):not(.team-hint) { max-width: 27ch; color: rgba(255,255,255,.82); }
.team-hint { margin-top: 16px; color: var(--muted); }
.team-archive-note { display: flex; min-height: 250px; max-width: 420px; flex-direction: column; justify-content: center; padding: 32px; border: 1px dashed rgba(7,59,34,.34); border-radius: 22px; background: rgba(255,255,255,.46); }
.team-archive-note h3 { margin: 12px 0; font-size: 28px; }
.team-archive-note p { color: var(--muted); }
.team-source-note { max-width: 880px; margin-top: 32px; font-size: 13px; }
.volunteer-callout { margin-top: 30px; }

/* Local volunteer profile card. No personal details leave the visitor's browser. */
.privacy-panel { display: flex; gap: 14px; max-width: 970px; margin-bottom: 34px; padding: 18px 20px; border: 1px solid rgba(7,59,34,.18); border-radius: 16px; background: #e4f4dc; color: var(--nss-green); }
.privacy-panel span { color: var(--muted); }
.volunteer-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(320px,.8fr); gap: clamp(30px,7vw,100px); align-items: start; }
.volunteer-form { display: grid; gap: 18px; padding: clamp(24px,4vw,44px); border: 1px solid var(--nss-line); border-radius: 24px; background: rgba(255,255,255,.68); box-shadow: var(--shadow); }
.volunteer-form h2 { font-size: clamp(42px,5vw,68px); margin-bottom: 8px; }
.volunteer-form label { display: grid; gap: 7px; color: var(--nss-green); font-size: 13px; font-weight: 800; }
.volunteer-form label > span { color: var(--muted); font-weight: 500; }
.volunteer-form input:not([type="checkbox"]), .volunteer-form select { width: 100%; min-height: 47px; border: 1px solid rgba(7,59,34,.22); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; padding: 10px 12px; }
.volunteer-form .consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--muted); font-weight: 500; }
.volunteer-form .consent input { margin-top: 4px; }
.id-card-panel { min-width: 0; }
.id-card-panel[hidden] { display: none; }
.volunteer-id-card { overflow: hidden; border-radius: 24px; background: linear-gradient(140deg,#073b22,#0b6b3b); box-shadow: 0 25px 58px rgba(7,59,34,.27); color: #fff; }
.id-card-top { display: flex; align-items: center; gap: 11px; padding: 22px; background: rgba(0,0,0,.14); font-size: 24px; font-weight: 900; }
.id-card-top img { width: 46px; height: 46px; border-radius: 50%; }
.id-card-top small { display: block; color: #c7e8cb; font-size: 9px; letter-spacing: .16em; }
.id-card-profile { display: flex; align-items: center; gap: 18px; padding: 32px 24px; }
.id-card-initials { display: grid; flex: 0 0 auto; width: 84px; height: 84px; place-items: center; border: 4px solid rgba(255,255,255,.72); border-radius: 50%; background: var(--nss-lime); color: var(--nss-green); font-size: 26px; font-weight: 900; }
.id-card-profile strong, .id-card-profile span { display: block; }
.id-card-profile strong { font-size: clamp(25px,3vw,38px); letter-spacing: -.05em; line-height: 1; }
.id-card-profile span { margin-top: 8px; color: #d1f7ba; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.id-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.18); }
.id-card-meta span { display: grid; gap: 4px; padding: 14px 20px; background: rgba(0,0,0,.12); color: #c8e9c8; font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.id-card-meta b { overflow-wrap: anywhere; color: #fff; font-size: 13px; letter-spacing: 0; }
.id-card-status { padding: 15px 20px; background: var(--nss-lime); color: var(--nss-green); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-align: center; }
.id-card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Searchable public NSS profile directory. */
.profile-directory-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr); gap: clamp(30px, 7vw, 100px); align-items: start; }
.profile-search-panel { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--nss-line); border-radius: 24px; background: rgba(255,255,255,.68); box-shadow: var(--shadow); }
.profile-search-panel h2 { font-size: clamp(42px, 5vw, 68px); margin-bottom: 24px; }
.profile-search-label { display: block; margin-bottom: 7px; color: var(--nss-green); font-size: 13px; font-weight: 800; }
.profile-search { width: 100%; min-height: 52px; border: 1px solid rgba(7,59,34,.25); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; padding: 10px 14px; }
.profile-search:focus { outline: 3px solid rgba(200,255,104,.75); border-color: var(--nss-green); }
.profile-search-help, .profile-card-note { color: var(--muted); font-size: 13px; }
.profile-results { display: grid; gap: 9px; max-height: 510px; margin-top: 22px; overflow: auto; padding-right: 4px; }
.profile-result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid rgba(7,59,34,.14); border-radius: 14px; background: rgba(255,255,255,.72); color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: .2s ease; }
.profile-result:hover, .profile-result:focus-visible { border-color: var(--nss-green); background: #fff; box-shadow: 0 10px 24px rgba(7,59,34,.11); transform: translateX(3px); }
.profile-result-initials { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--nss-lime); color: var(--nss-green); font-weight: 900; }
.profile-result strong { display: block; }
.profile-empty { padding: 18px; border: 1px dashed var(--nss-line); border-radius: 12px; color: var(--muted); }
.profile-card-note { margin-top: 16px; }
.id-card-actions button:disabled { cursor: not-allowed; opacity: .5; transform: none; }

@media (max-width: 900px) { .site-header .menu-btn { display: block; } .team-flip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .volunteer-layout, .profile-directory-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .team-flip-grid { grid-template-columns: 1fr; } .team-flip, .team-flip-toggle, .team-flip-inner { min-height: 308px; } .privacy-panel { flex-direction: column; } .id-card-meta { grid-template-columns: 1fr; } }
@media print { body * { visibility: hidden; } .id-card-panel, .id-card-panel * { visibility: visible; } .id-card-panel { position: absolute; inset: 0; width: 100%; padding: 20mm; } .volunteer-id-card { max-width: 88mm; box-shadow: none; } .id-card-actions { display: none; } }

.nss-home-slides {
  position: absolute;
  inset: 0;
}

.nss-home-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 900ms ease, transform 6s ease;
}

.nss-home-slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.nss-home-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  object-position: center;
}

.nss-home-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 28, 17, 0.9), rgba(3, 48, 27, 0.42) 58%, rgba(3, 28, 17, 0.16)),
    linear-gradient(0deg, rgba(2, 28, 17, 0.68), transparent 55%);
}

.nss-slide-content {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 8vw, 120px);
  bottom: clamp(100px, 14vh, 150px);
  width: min(680px, calc(100% - 48px));
  color: #fff;
}

.nss-slide-content .eyebrow {
  margin-bottom: 18px;
  color: #d9f7c0;
}

.nss-slide-content h1,
.nss-slide-content h2 {
  max-width: 720px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.nss-slide-content h1 em,
.nss-slide-content h2 em {
  color: var(--nss-lime);
}

.nss-slide-content > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

.slider-button {
  display: inline-flex;
  padding: 13px 19px;
  border-radius: 999px;
  background: var(--nss-lime);
  color: #082016;
  font-weight: 900;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.slider-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.25);
}

.nss-slider-controls {
  position: absolute;
  right: clamp(24px, 8vw, 120px);
  bottom: 28px;
  left: clamp(24px, 8vw, 120px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nss-slide-count {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 8vw, 120px);
  top: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.nss-slide-count i {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--nss-lime);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nss-slider-arrows {
  display: flex;
  gap: 8px;
}

.nss-slider-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(3, 35, 21, 0.38);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  backdrop-filter: blur(10px);
  transition: transform 250ms ease, background 250ms ease;
}

.nss-slider-arrow:hover {
  transform: translateY(-3px);
  background: rgba(200, 255, 104, 0.24);
}

.nss-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nss-slider-dot {
  width: 32px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 300ms ease, background 300ms ease;
}

.nss-slider-dot.is-active {
  width: 62px;
  background: var(--nss-lime);
}

.nss-home-intro {
  background: var(--nss-cream);
}

.team-assignments {
  padding-top: 0;
}

.team-note {
  max-width: 330px;
  color: var(--muted);
}

.nss-photo-strip-section {
  background: #e5f2e1;
}

.nss-photo-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 14px;
  margin-top: 48px;
}

.nss-photo-strip figure {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--nss-line);
  border-radius: 18px;
  background: #d4e7d0;
  box-shadow: 0 20px 60px rgba(7, 59, 34, 0.1);
}

.nss-photo-strip figure:first-child {
  min-height: 390px;
}

.nss-photo-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.nss-photo-strip figure:hover img {
  transform: scale(1.08);
}

.gallery-photo {
  position: relative;
  display: block;
  min-height: 330px;
  overflow: hidden;
  border-radius: 18px;
  background: #0a3520;
  box-shadow: 0 20px 60px rgba(7, 59, 34, 0.12);
}

.gallery-photo.tall {
  min-height: 430px;
}

.gallery-photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(2, 27, 15, 0.82));
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 700ms ease;
}

.gallery-photo:hover img {
  transform: scale(1.06);
}

.gallery-photo span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.nss-photo-strip figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(3, 40, 23, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.nss-green-banner {
  padding: 40px 5vw;
  background: #073b22;
  color: #fff;
}

.nss-green-banner-inner {
  max-width: 1250px;
  margin: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.nss-green-banner h2 {
  margin: 10px 0 0;
  font-size: clamp(38px, 5vw, 68px);
}

.nss-green-banner h2 em {
  color: #c8ff68;
}

.nss-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.nss-banner-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
}

.nss-viksit-card {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  padding: 62px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(120deg, #0b4c2c, #1b8150);
  color: #fff;
  box-shadow: 0 30px 80px rgba(7, 59, 34, 0.2);
}

.nss-viksit-card::after {
  content: "✦";
  position: absolute;
  right: 7%;
  top: -20px;
  color: rgba(216, 255, 180, 0.12);
  font-size: 150px;
  animation: nssRotate 18s linear infinite;
}

.nss-viksit-card h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0;
}

.nss-viksit-card h2 span {
  color: var(--nss-lime);
}

.nss-viksit-card p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes nssRotate {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 850px) {
  .nss-home-slider,
  .nss-home-slide img {
    min-height: 610px;
  }

  .nss-slide-content {
    bottom: 105px;
  }

  .nss-photo-strip {
    grid-template-columns: 1fr;
  }

  .nss-photo-strip figure,
  .nss-photo-strip figure:first-child {
    min-height: 280px;
  }

  .nss-green-banner-inner,
  .nss-viksit-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nss-home-slide,
  .nss-photo-strip img,
  .nss-slider-arrow,
  .nss-slider-dot,
  .nss-viksit-card::after {
    transition: none;
    animation: none;
  }
}
