/* FarmWallet Team page — management & operations org chart
   Loaded after site-polish.css so it inherits the site's brand tokens. */

.fw-org { padding: 8px 0 12px; }

/* Tier 1 — CEO */
.fw-org-ceo {
  width: min(340px, 100%);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--fw-green-deep) 0%, #0b8f4a 100%);
  border: 1px solid var(--fw-green-dark);
  border-top: 4px solid var(--fw-gold);
  border-radius: 18px;
  padding: 20px 18px 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 18px 40px rgba(6, 78, 59, .26);
}
.fw-org-ceo .fw-org-photo { width: 64px; height: 64px; margin: 0 auto 10px; border-color: rgba(255,255,255,.55); }
.fw-org-ceo .fw-org-kicker { color: #cfe9d9; }
.fw-org-ceo .fw-org-name { color: #fff; font-size: 1.1rem; }
.fw-org-ceo .fw-org-role { color: #d9f0e3; }

/* Connectors */
.fw-org-stem { width: 2px; height: 30px; background: #7bb99a; margin: 0 auto; }
.fw-org-rail { width: 82%; height: 2px; background: #7bb99a; margin: 0 auto; }

/* Tier 2 — five divisions */
.fw-org-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.fw-org-col { position: relative; padding: 24px 8px 0; min-width: 0; }
.fw-org-drop {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 22px; background: #7bb99a;
}

.fw-org-node {
  position: relative;
  background: #fff;
  border: 1px solid #d6e7dc;
  border-top: 4px solid var(--fw-green);
  border-radius: 14px;
  padding: 16px 10px 14px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,64,32,.07);
  height: 100%;
}
.fw-org-photo {
  width: 54px; height: 54px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--fw-green-soft);
  display: block; margin: 0 auto 10px;
  background: var(--fw-green-soft);
}
.fw-org-initials {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  background: var(--fw-green-soft); color: var(--fw-green-deep);
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: .95rem;
  border: 3px solid #d6e7dc;
}
.fw-org-kicker {
  font-size: .66rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--fw-green); margin-bottom: 5px;
}
.fw-org-name {
  font-family: "Outfit", sans-serif; font-weight: 700;
  font-size: .92rem; line-height: 1.25; color: var(--fw-ink);
}
.fw-org-role {
  font-size: .76rem; color: var(--fw-muted); margin-top: 5px; line-height: 1.35;
}

/* Tier 3 — field operations team, nested under Community & Field Ops */
.fw-org-sub { grid-column: 4; padding-top: 0; }
.fw-org-sub .fw-org-stem { height: 20px; }
.fw-org-subrail { width: 76%; height: 2px; background: #7bb99a; margin: 0 auto; }
.fw-org-officers { display: flex; gap: 10px; padding: 22px 4px 0; }
.fw-org-officers .fw-org-node { border-top-color: var(--fw-gold); padding: 13px 6px 12px; }
.fw-org-officers .fw-org-photo,
.fw-org-officers .fw-org-initials { width: 44px; height: 44px; margin-bottom: 9px; border-color: #fdf3cf; }
.fw-org-officers .fw-org-initials { background: #fdf3cf; color: #6b8f12; font-size: .8rem; }
.fw-org-officers .fw-org-kicker { color: #6b8f12; font-size: .6rem; }
.fw-org-officers .fw-org-name { font-size: .8rem; }
.fw-org-officers .fw-org-role { font-size: .7rem; }
.fw-org-subcaption {
  grid-column: 4; text-align: center; padding-top: 8px;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fw-muted);
}

/* Notes / rationale under the chart */
.fw-org-notes {
  margin-top: 34px; border-top: 1px solid #e3ece6; padding-top: 22px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px;
}
.fw-org-notes h3 {
  font-family: "Outfit", sans-serif; font-size: .8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--fw-green);
  margin-bottom: 12px;
}
.fw-org-notes ul { list-style: none; margin: 0; padding: 0; }
.fw-org-notes li {
  position: relative; padding-left: 16px; margin-bottom: 9px;
  font-size: .86rem; line-height: 1.6; color: #374151;
}
.fw-org-notes li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--fw-gold);
}
.fw-org-notes strong { color: var(--fw-green-deep); }
.fw-org-key { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fw-org-swatch { width: 24px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.fw-org-key span { font-size: .8rem; color: var(--fw-muted); line-height: 1.45; }

/* Responsive: collapse the five-column matrix into wrapped rows */
@media (max-width: 1023px) {
  .fw-org-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .fw-org-sub, .fw-org-subcaption { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fw-org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-org-rail { width: 60%; }
  .fw-org-col { padding: 20px 4px 0; }
  .fw-org-officers { flex-direction: column; }
  .fw-org-notes { grid-template-columns: 1fr; gap: 24px; }
}
