:root {
  --resa-red: #ed1c24;
  --resa-green: #008000;
  --resa-grey: #6b6e71;
}

html,
body {
  min-height: 100%;
}

body {
  background: #fff;
  color: #111;
}

.navbar-brand {
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.navbar-brand img {
  object-fit: contain;
}

.nav-link {
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--resa-green) !important;
}

.btn-resa {
  border-color: var(--resa-green);
  background: var(--resa-green);
  color: #fff;
}

.btn-resa:hover,
.btn-resa:focus {
  border-color: #006900;
  background: #006900;
  color: #fff;
}

.team-hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at top right, rgb(0 128 0 / 12%), transparent 36%),
    linear-gradient(135deg, #f7faf7, #fff);
  border-bottom: 1px solid #e7ece7;
}

.team-hero .container {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.landing-logo {
  display: block;
  width: min(220px, 32vw);
  height: auto;
  flex: 0 0 auto;
}

.team-hero h1 {
  margin: 0.7rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  font-weight: 700;
}

.brand-bar {
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--resa-red) 50%, var(--resa-green) 50%);
}

.organization {
  margin: 1rem 0 0;
  color: var(--resa-grey);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 560px;
  margin: 0;
  color: var(--resa-grey);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.announcements-section,
.projects-section,
.teams-section {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.announcements-section,
.projects-section {
  border-bottom: 1px solid #e7ece7;
}

.help-page {
  min-height: calc(100vh - 69px);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at bottom left, rgb(0 128 0 / 8%), transparent 32%),
    #f8faf8;
}

.help-page-heading {
  max-width: none;
  margin-bottom: 1.75rem;
}

.help-page-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  color: #111;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.help-toc {
  position: sticky;
  top: 1rem;
  padding: 1rem 0.85rem;
  border: 1px solid #e0e7e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(22 55 22 / 6%);
}

.help-toc-label {
  margin: 0 0 0.65rem 0.35rem;
  color: var(--resa-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.help-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.help-toc-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2a3a2a;
  text-align: left;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.help-toc-btn:hover {
  background: #f1f6f1;
  color: var(--resa-green);
}

.help-toc-btn.is-active {
  background: rgb(0 128 0 / 10%);
  color: var(--resa-green);
  font-weight: 600;
}

.help-panels {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #e0e7e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(22 55 22 / 8%);
}

.help-section-title {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e7ece7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.help-section-body > :first-child {
  margin-top: 0;
}

.help-section-body > :last-child {
  margin-bottom: 0;
}

.help-section-body h3 {
  margin: 1.85rem 0 0.55rem;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--resa-green);
}

.help-section-body h3:first-child {
  margin-top: 0.35rem;
}

.help-section-body p,
.help-section-body ul,
.help-section-body ol {
  color: #222;
}

.help-section-body li + li {
  margin-top: 0.45rem;
}

.help-section-body ul ul,
.help-section-body ol ul,
.help-section-body ul ol,
.help-section-body ol ol {
  margin-top: 0.45rem;
}

@media (max-width: 767.98px) {
  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-toc {
    position: static;
  }

  .help-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .help-toc-btn {
    width: auto;
  }
}

.documents-page {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.documents-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.documents-tree ul {
  list-style: none;
  margin: 0.35rem 0 0.35rem 1.15rem;
  padding: 0 0 0 0.85rem;
  border-left: 1px solid #d7e0d7;
}

.documents-tree-folder > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.2rem;
  font-weight: 600;
  color: #1f3d1f;
  user-select: none;
}

.documents-tree-folder > summary::-webkit-details-marker {
  display: none;
}

.documents-tree-folder > summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}

.documents-tree-folder[open] > summary::before {
  transform: rotate(45deg);
}

.documents-tree-doc {
  margin: 0.2rem 0;
}

.documents-tree-doc a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0.2rem 0.35rem 1.1rem;
  color: var(--resa-green);
  text-decoration: none;
}

.documents-tree-doc a:hover {
  text-decoration: underline;
}

.documents-tree-doc-date {
  color: #6b7a6b;
  font-size: 0.9rem;
}

.documents-status {
  color: #5c6b5c;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-kicker {
  margin-bottom: 0.4rem;
  color: var(--resa-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.teams-status {
  padding: 3rem 1rem;
  border: 1px dashed #ccd5cc;
  border-radius: 12px;
  color: var(--resa-grey);
  text-align: center;
}

.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.announcements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.announcement-card {
  display: grid;
  grid-template-columns: minmax(200px, 36%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e0e7e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(22 55 22 / 8%);
}

.announcement-image-link {
  display: block;
  min-height: 100%;
  background: #edf2ed;
}

.announcement-card-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  background: #edf2ed;
  object-fit: cover;
}

.announcement-card-content {
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.announcement-label {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgb(0 128 0 / 10%);
  color: var(--resa-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.announcement-card h3 a,
.announcement-read-more {
  color: inherit;
}

.announcement-card h3 a {
  text-decoration: none;
}

.announcement-card h3 a:hover,
.announcement-read-more:hover {
  color: var(--resa-green);
}

.announcement-card-content > p:not(.announcement-date) {
  color: #454b45;
}

.announcement-date {
  margin-bottom: 0.8rem;
  color: var(--resa-grey);
  font-size: 0.85rem;
}

.announcement-read-more {
  font-weight: 700;
}

.announcements-empty {
  padding: 3rem 1rem;
  border: 1px dashed #ccd5cc;
  border-radius: 12px;
  color: var(--resa-grey);
  text-align: center;
}

.announcement-detail {
  max-width: 920px;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.announcement-detail h1 {
  max-width: 800px;
  margin: 1rem 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  line-height: 1.05;
}

.announcement-detail-image {
  display: block;
  width: 100%;
  max-height: 620px;
  margin: 2rem 0;
  border-radius: 16px;
  object-fit: cover;
}

.announcement-body {
  font-size: 1.08rem;
  line-height: 1.75;
}

.announcement-body img {
  max-width: 100%;
}

.announcement-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e7e0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid #e0e7e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(22 55 22 / 8%);
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #edf2ed;
  object-fit: cover;
}

.project-content {
  padding: 1.25rem 1.35rem 1.5rem;
}

.project-content h3 {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.project-content p {
  margin: 0;
  color: var(--resa-grey);
  line-height: 1.55;
}

.project-detail {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.project-detail-cover {
  display: block;
  width: 100%;
  max-height: 420px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  object-fit: cover;
}

.project-summary {
  max-width: 46rem;
  margin: 0 0 1.25rem;
  color: var(--resa-grey);
  font-size: 1.15rem;
  line-height: 1.6;
}

.project-body {
  max-width: 46rem;
  margin-bottom: 3rem;
  font-size: 1.08rem;
  line-height: 1.75;
}

.project-teams {
  margin-bottom: 3rem;
}

.project-teams-grid {
  display: grid;
  gap: 1.5rem;
}

.project-team-scope {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--resa-green, #006400);
}

.project-updates .section-heading {
  margin-bottom: 1.5rem;
}

.announcement-project-link {
  margin: 0.35rem 0 0;
}

.announcement-label {
  color: inherit;
  text-decoration: none;
}

a.announcement-label:hover {
  text-decoration: underline;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  align-items: start;
  overflow: hidden;
  border: 1px solid #e0e7e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(22 55 22 / 8%);
}

.team-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #edf2ed;
  object-fit: cover;
}

.team-content {
  padding: clamp(1.3rem, 4vw, 2rem);
}

.team-content h3 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.team-responsibilities {
  color: #454b45;
}

.team-responsibilities > :last-child {
  margin-bottom: 0;
}

.team-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 3px solid var(--resa-green);
  border-radius: 0 8px 8px 0;
  background: #f4f8f4;
}

.team-contact-label {
  color: var(--resa-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-contact strong,
.team-contact a {
  display: block;
}

.team-contact a {
  color: var(--resa-green);
  font-weight: 600;
}

.team-content h4 {
  margin: 1.8rem 0 0.8rem;
  color: var(--resa-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.member-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #edf0ed;
}

.member-name {
  font-weight: 600;
}

.member-role {
  flex: 1 1 auto;
  color: var(--resa-ink);
  font-size: 0.92rem;
}

.member-batches,
.member-phone,
.members-empty {
  color: var(--resa-grey);
  font-size: 0.88rem;
}

.member-phone {
  text-decoration: none;
}

.member-phone:hover,
.member-phone:focus-visible {
  color: var(--resa-green);
  text-decoration: underline;
}

.members-empty {
  margin: 0;
}

.contact-card {
  max-width: 620px;
}

.contact-table-wrap {
  overflow: hidden;
  border: 1px solid #e0e7e0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(22 55 22 / 7%);
}

.contact-table-wrap thead th {
  padding: 1rem;
  border-bottom-color: #d8e1d8;
  background: #f4f8f4;
  color: var(--resa-green);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-table-wrap tbody > tr > * {
  padding: 1rem;
}

.contact-table-wrap a {
  color: var(--resa-green);
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .team-hero .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-logo {
    width: min(170px, 48vw);
  }

  .team-card,
  .announcement-card {
    grid-template-columns: 1fr;
  }

  .announcement-card-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .member-list li {
    flex-direction: column;
    gap: 0.15rem;
  }
}
