/* ─── page-level: pages/about.html (sha=d49fc61) ─── */
:root { --tenki-max: 1400px; }

#tenki-page-about {
  position: relative;
}

/* Page-level build chip (visible with ?debug=1). */
#tenki-page-about .tenki-page-build-chip {
  position: absolute; top: 8px; right: 12px;
  font: 600 10px/1 monospace; padding: 3px 8px; border-radius: 4px;
  background: #1A1A1A; color: #fff; opacity: .85;
  display: none; pointer-events: none; z-index: 10000;
}
#tenki-page-about[data-debug="1"] .tenki-page-build-chip { display: block; }

/* Inter-section rhythm.  about-hero is full-bleed; the LIGHTS + team blocks
   are centered cards with their own inner max-width. */
#tenki-page-about .tenki-about-container { margin-top: 8px; }
#tenki-page-about .tenki-team-container  { margin-top: 12px; }

/* Reveal-on-scroll for the two content blocks below the hero. */
#tenki-page-about .tenki-about-container,
#tenki-page-about .tenki-team-container {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
#tenki-page-about .tenki-about-container.is-revealed,
#tenki-page-about .tenki-team-container.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  #tenki-page-about .tenki-about-container,
  #tenki-page-about .tenki-team-container {
    opacity: 1; transform: none; transition: none;
  }
}

/* Only the page-level chip shows when composed. */
#tenki-page-about .tenki-about-build-chip,
#tenki-page-about .tenki-team-build-chip {
  display: none !important;
}

/* ─── about/about-hero.html: about/about-hero.html (sha=1594dcd) ─── */
.tenki-abouthero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(500px, 76vh, 760px);
    padding: clamp(56px, 9vw, 104px) 22px clamp(96px, 12vw, 150px);
    background-color: #16241c;                       /* dark fallback before the photo loads */
    background-image: url('/about-hero.jpg');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    font-family: var(--tk-font-sans, 'Poppins', system-ui, sans-serif);
    text-align: center;
    overflow: hidden;
  }
  /* Legibility overlay — slightly darker top + bottom, calmer in the middle. */
  .tenki-abouthero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
      rgba(8,18,12,.62) 0%,
      rgba(8,18,12,.42) 42%,
      rgba(8,18,12,.50) 100%);
    z-index: 0;
  }
  /* Soft transition — fade the bottom of the photo into the page background so
     the Mission/Vision/Values section below rises out of it, not a hard edge. */
  .tenki-abouthero::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: clamp(90px, 14vw, 170px);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 100%);
    z-index: 1;
  }
  .tenki-abouthero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    color: #fff;
  }
  .tenki-abouthero-eyebrow {
    display: inline-block;
    font-size: 12.5px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.92);
    padding: 7px 16px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;
    margin-bottom: 26px;
    backdrop-filter: blur(2px);
  }
  .tenki-abouthero-title {
    font-family: var(--tk-font-display, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: clamp(30px, 5.4vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
  }
  .tenki-abouthero-eps { font-style: normal; }
  .tenki-abouthero-lead {
    font-size: clamp(17px, 2.3vw, 22px);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,.95);
    margin: 0 auto 34px;
    max-width: 40ch;
    text-shadow: 0 1px 12px rgba(0,0,0,.4);
  }
  .tenki-abouthero-cta {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  }
  .tenki-abouthero-btn {
    display: inline-block;
    font-weight: 600; font-size: 16px;
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 999px;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  }
  .tenki-abouthero-btn--primary {
    background: var(--tk-green, #008C45);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(0,140,69,.75);
  }
  .tenki-abouthero-btn--primary:hover {
    background: var(--tk-green-dark, #006e36);
    transform: translateY(-2px);
  }
  .tenki-abouthero-btn--ghost {
    background: rgba(255,255,255,.10);
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75);
    backdrop-filter: blur(3px);
  }
  .tenki-abouthero-btn--ghost:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
  }
  @media (max-width: 600px) {
    .tenki-abouthero-btn { flex: 1 1 auto; text-align: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    .tenki-abouthero-btn { transition: none; }
  }

/* ─── about/mission-vision-values.html: about/mission-vision-values.html (sha=4db69d8) ─── */
/* Base Container Setup */
  .tenki-about-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    background-color: #F8F9FA;
    border-radius: 16px;
  }

  .tenki-about-container *,
  .tenki-about-container *::before,
  .tenki-about-container *::after {
    box-sizing: inherit;
  }

  /* Core Title Structure */
  .about-header {
    text-align: center;
    margin-bottom: 45px;
  }

  .about-header h2 {
    color: #1A1A1A;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
  }

  .header-divider {
    width: 80px;
    height: 4px;
    background-color: #005A9C;
    margin: 0 auto;
    border-radius: 2px;
  }

  /* Mission and Vision Grid Setup */
  .mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
  }

  .mv-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: 6px solid;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  }

  .card-mission { border-top-color: #005A9C; }
  .card-vision { border-top-color: #008C45; }

  .card-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
  }

  .card-mission .card-badge {
    background-color: #EEF5FB;
    color: #005A9C;
  }

  .card-vision .card-badge {
    background-color: #E8F5E9;
    color: #008C45;
  }

  .mv-card p {
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
  }

  /* Values Component Setup */
  .values-wrapper {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  }

  .values-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .values-intro h3 {
    color: #1A1A1A;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
  }

  .values-intro p {
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
  }

  /* L-I-G-H-T-S Grid */
  .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .value-item-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #F8F9FA;
    border-left: 4px solid #EAEAEA;
    transition: border-left-color 0.2s ease, background-color 0.2s ease;
  }

  .value-item-card:hover {
    background-color: #FAFAFA;
  }

  /* Color Triggers for Hover Borders matching text types */
  .value-item-card:nth-child(3n+1):hover { border-left-color: #005A9C; }
  .value-item-card:nth-child(3n+2):hover { border-left-color: #008C45; }
  .value-item-card:nth-child(3n):hover { border-left-color: #1A1A1A; }

  .value-letter {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
  }

  .text-blue { color: #005A9C; }
  .text-green { color: #008C45; }
  .text-black { color: #1A1A1A; }

  .value-content h4 {
    color: #1A1A1A;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
  }

  .value-content p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
  }

  /* =========================================
     RESPONSIVE INTERFACE FIXES
     ========================================= */
  @media (max-width: 768px) {
    .tenki-about-container {
      padding: 15px;
      margin: 20px auto;
    }

    .about-header h2 {
      font-size: 1.8rem;
    }

    .mv-grid {
      grid-template-columns: 1fr;
      gap: 20px;
      margin-bottom: 40px;
    }

    .mv-card {
      padding: 25px;
    }

    .values-wrapper {
      padding: 25px 20px;
    }

    .values-intro h3 {
      font-size: 1.5rem;
    }

    .values-intro p {
      font-size: 1rem;
    }

    .values-grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }

    .value-item-card {
      padding: 15px;
    }
  }

/* ─── team/team.html: team/team.html (sha=d49fc61) ─── */
/* Wide-screen knob (#20): outer frames use var(--tenki-max, 1400px). */
  :root { --tenki-max: 1400px; }
  /* Base Container */
  .tenki-team-container {
    max-width: var(--tenki-max, 1400px);   /* #20 wide-screen token; text/cards stay readable */
    margin: 60px auto 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    background-color: #F8F9FA;
    border-radius: 16px;
  }
  .tenki-team-container *, .tenki-team-container *::before, .tenki-team-container *::after {
    box-sizing: inherit;
  }

  /* Header */
  .team-header { text-align: center; margin-bottom: 40px; }
  .team-header h2 { color: #1A1A1A; font-size: 2.5rem; text-transform: uppercase;
                    letter-spacing: 1px; margin: 0 0 15px 0; }
  .team-header-divider { width: 80px; height: 4px; background-color: #008C45;
                         margin: 0 auto 20px auto; border-radius: 2px; }
  .team-intro { color: #555555; font-size: 1.15rem; max-width: 750px;
                margin: 0 auto; line-height: 1.6; }

  /* ── Org chart ──────────────────────────────────────────────────────── */
  .tenki-org-chart { margin: 0 auto 50px; max-width: var(--tenki-max, 1400px); padding: 24px 12px 8px;
                      background: #fff; border-radius: 14px;
                      box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
  .org-root { display: flex; flex-direction: column; align-items: center; }
  /* Tenki logo at top of org chart.  Renders the actual brand image
     instead of the CSS-colored letter approximation that was here
     before.  The existing letter spans + tag stay in the HTML (for
     accessibility / screen readers) but are hidden visually — they
     ride alongside the background-image so SEO + a11y still see the
     "Tenki" wordmark.  Sized to fit cleanly above the trunk line. */
  .org-root-logo {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 12px;
    background: #000; border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    position: relative; z-index: 2;
    /* PNG hosted on Squarespace's CDN — already in use elsewhere on the
       site (homepage funnel, mini-funnel) so it's cached + reliable.
       Centered, contain-fit, 200×70 box renders the wordmark crisply. */
    background-image: url("https://tenkiforborn.github.io/tenki-website/content/uploads/rehost/228230f6-Tenki-logo-2.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 200px; height: 70px;
  }
  /* Hide the legacy CSS-letter rendering visually; keep in DOM for a11y */
  .org-root-logo .org-root-name,
  .org-root-logo .org-root-tag {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  /* The trunk line that drops from the logo into the row of branches.
     Pure CSS — no SVG, no canvas, no image. */
  .org-trunk { width: 3px; height: 22px; background: #1A1A1A; }
  .org-branches { display: grid; gap: 14px; width: 100%;
                   grid-template-columns: repeat(4, 1fr);
                   border-top: 3px solid #1A1A1A; padding-top: 0;
                   position: relative; }
  /* Central spine — a continuous vertical line from the horizontal pillar bar
     straight down through the middle (the col-2/col-3 gutter, clear of avatars)
     to the Operations block below.  Without it the Operations stem floated as a
     disconnected stub far beneath the bar.  Desktop only — hidden on the mobile
     single-column stack (where 50% would cut through the cards). */
  .org-branches::after { content: ''; position: absolute; left: 50%; top: 0;
                   height: 100%; width: 3px; background: #1A1A1A;
                   transform: translateX(-50%); z-index: 0; pointer-events: none; }

  /* Reworked layout (matches the Org Chart editor): a TOP BAND holds the centred
     logo/root, with Tenki Org as an ADVISORY side box off to the LEFT on a dashed
     stem — it coordinates the pillars, it is NOT above them.  The 4 pillars below
     are peers on one row.  (Was: a central Tenki Org chip in the trunk, which read
     as "in charge.") */
  .org-tree-top { display: grid; grid-template-columns: 1fr auto 1fr;
                  column-gap: 40px; align-items: stretch; }
  .org-tree-center { grid-column: 2; display: flex; flex-direction: column;
                     align-items: center; }
  .org-tree-center .org-root-logo { position: relative; }
  /* dashed advisory stem — runs left from the logo across the column gap */
  .org-tree-center .org-root-logo::after { content: ''; position: absolute;
                     right: 100%; top: 50%; width: 40px;
                     border-top: 3px dashed #b9c2cc; transform: translateY(-50%); }
  .org-tree-center .org-trunk { flex: 1 1 auto; min-height: 34px; }
  /* Tenki Org advisory side box (left column).  margin-bottom keeps it clear of
     the horizontal pillar bar below (the band grows, the trunk stretches to meet
     the bar). */
  .org-advisory { grid-column: 1; justify-self: end; align-self: start;
                  width: 100%; max-width: 260px; margin-bottom: 24px; }
  .org-advisory-panel { border: 1px dashed #cbd5e1; background: #fcfcfd;
                  border-radius: 10px; padding: 10px 12px; text-align: center; }
  .org-advisory-header { display: inline-block; padding: 4px 12px; border-radius: 6px;
                  font-weight: 800; font-size: 11px; text-transform: uppercase;
                  letter-spacing: .5px; color: #4b5563; background: #fff;
                  border: 1px dashed #9aa3af; vertical-align: middle; }
  .org-advisory-tag { display: inline-block; margin-left: 6px; font-size: 8.5px;
                  font-weight: 800; color: #92400e; background: #fef3c7;
                  border-radius: 5px; padding: 2px 6px; letter-spacing: .03em;
                  text-transform: uppercase; vertical-align: middle; }
  .org-advisory-sub { font-size: 10px; color: #888; margin: 5px 0 0; font-weight: 500; }
  .org-advisory-members { display: flex; flex-wrap: wrap; gap: 8px 12px;
                  justify-content: center; margin-top: 10px; }
  .org-advisory-members .org-member { padding: 4px; }
  .org-advisory-members .org-member img { width: 44px; height: 44px;
                  box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
  .org-advisory-members .org-member-name { font-size: 9.5px; max-width: 104px; }
  /* Operations side box (right column).  Connector comes off the MIDDLE of the
     trunk (not the logo): in the symmetric 1fr auto 1fr grid the trunk→block gap
     is a constant 140px, so a 140px stem from the block's left edge lands on the
     vertical bar.  align-self:center sits it at the trunk's mid-height. */
  .org-operations { grid-column: 3; justify-self: start; align-self: center;
                  width: 100%; max-width: 260px; position: relative; }
  .org-operations::before { content: ''; position: absolute; right: 100%; top: 50%;
                  width: 140px; border-top: 3px solid #cbd5e1; }
  .org-operations-panel { border: 1px solid #e5e7eb; background: #fff;
                  border-radius: 10px; padding: 10px 12px; text-align: center;
                  box-shadow: 0 1px 3px rgba(0,0,0,.05); }
  .org-operations-header { display: inline-block; padding: 4px 12px; border-radius: 6px;
                  font-weight: 800; font-size: 11px; text-transform: uppercase;
                  letter-spacing: .5px; color: #fff; background: #64748b; }
  .org-operations-sub { font-size: 10px; color: #888; margin: 5px 0 0; font-weight: 500; }
  .org-operations-members { display: flex; flex-wrap: wrap; gap: 8px 12px;
                  justify-content: center; margin-top: 10px; }
  .org-operations-members .org-member { padding: 4px; }
  .org-operations-members .org-member img { width: 44px; height: 44px;
                  box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
  .org-operations-members .org-member-name { font-size: 9.5px; max-width: 104px; }
  /* Operations relocated to a block BELOW the pillar row (off the trunk), so it's
     clearly separated from the advisory/board leadership at the top.  A short
     vertical stem carries the trunk down past the pillars to it. */
  .org-ops-below { display: flex; flex-direction: column; align-items: center;
                   width: 100%; margin-top: 0; }
  /* Stub continues the central spine from the branches' bottom edge into the
     Operations block, so the line reads as one unbroken trunk. */
  .org-ops-below::before { content: ''; width: 3px; height: 28px; background: #1A1A1A; }
  .org-ops-below .org-operations { grid-column: auto; justify-self: center; align-self: auto;
                  width: 100%; max-width: 260px; position: relative; }
  .org-ops-below .org-operations::before { display: none; }
  /* Board of Directors — governance block at the very top, above the logo */
  .org-board { display: flex; flex-direction: column; align-items: center; }
  .org-board-panel { display: inline-flex; flex-direction: column; align-items: center;
                  text-decoration: none; color: inherit; border: 1px solid #1A1A1A;
                  border-radius: 10px; background: #fff; padding: 8px 18px;
                  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
                  transition: transform .25s cubic-bezier(0.175,0.885,0.32,1.275); }
  .org-board-panel:hover { transform: translateY(-2px); }
  .org-board-header { font-weight: 800; font-size: 12px; text-transform: uppercase;
                  letter-spacing: .6px; color: #1A1A1A; }
  .org-board-sub { font-size: 10px; color: #888; margin-top: 2px; }
  .org-board::after { content: ''; width: 3px; height: 16px; background: #1A1A1A; }
  /* Empty board — a seat the org keeps on the chart with nobody assigned yet.
     Dashed + non-interactive so it reads as "open" rather than a clickable bio. */
  .org-board-panel--empty { border-style: dashed; border-color: #b6b6b6;
                  box-shadow: none; cursor: default; }
  .org-board-panel--empty:hover { transform: none; }
  @media (max-width: 768px) {
    /* ── Mobile org chart = the REAL chart, swipeable ─────────────────────────
       (Matthew 2026-07-17: "look more like an actual org chart — closer to how
       it looks in the org chart editor".)  Same answer the Team editor uses on
       mobile: the full-fidelity two-dimensional chart at its natural desktop
       layout, inside a horizontal pan container.  All desktop rules (trunk,
       advisory side box, 4-branch row + spine, Operations stem) apply as-is;
       the phone just becomes a window you swipe across.  JS centers the
       initial scroll on the trunk. */
    .tenki-org-chart { overflow-x: auto; -webkit-overflow-scrolling: touch;
                       padding: 4px 0 12px; }
    /* Swipe hint — a sticky pill INSIDE the pan content (NOT on the chart's
       own ::before: the staged site's chrome draws the "How We're Organized"
       heading there, body.tk-page-about #tenki-org-chart::before). */
    .tenki-org-chart .org-root::before { content: '⇄  swipe to explore';
        display: block; position: sticky; left: 12px; width: max-content;
        font: 800 10px/1 system-ui, sans-serif; letter-spacing: .12em;
        text-transform: uppercase; color: #64748b; background: #f1f5f9;
        border-radius: 999px; padding: 6px 12px; margin: 0 0 12px; }
    .tenki-org-chart .org-root { min-width: 760px; padding: 0 12px; }
  }
  .org-branch { display: flex; flex-direction: column; align-items: center;
                 padding: 18px 8px 14px; position: relative; }
  /* Stub line from the top horizontal trunk to each branch header */
  .org-branch::before { content: ''; position: absolute; top: -1px;
                         left: 50%; transform: translateX(-50%);
                         width: 3px; height: 18px; background: #1A1A1A; }
  .org-branch-header { padding: 8px 14px; border-radius: 8px; font-weight: 800;
                        font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
                        color: #fff; margin-top: 18px; text-align: center;
                        min-width: 110px; }
  .org-branch-blue  .org-branch-header { background: #3BA9E8; }
  .org-branch-green .org-branch-header { background: #49B85C; }
  .org-branch-black .org-branch-header { background: #1A1A1A; }
  .org-branch-white .org-branch-header { background: #fff; color: #1A1A1A;
                                           border: 2px dashed #888; }
  .org-branch-org   .org-branch-header { background: #555; }
  .org-branch-sub { font-size: 10px; color: #888; margin: 4px 0 0;
                     text-transform: none; letter-spacing: 0; font-weight: 500; }
  /* Outline box wrapping each pillar's pill + track + avatars into one grouped
     card — mirrors the dashed Senior-Advisor panel (.org-advisory-panel).  Sits
     INSIDE .org-branch (below the trunk stem, which drops onto the box's top
     edge), accent-tinted per pillar; SOS stays dashed like its pill (not-yet-
     active).  z-index:1 keeps it above the central spine that runs behind. */
  .org-branch-box { position: relative; z-index: 1; width: 100%;
                     display: flex; flex-direction: column; align-items: center;
                     border: 1px solid #e5e7eb; border-radius: 10px;
                     background: #fcfcfd; padding: 14px 12px 16px;
                     box-shadow: 0 1px 3px rgba(0,0,0,.05); }
  .org-branch-box .org-branch-header { margin-top: 0; }
  .org-branch-box .org-members { margin-top: 12px; }
  .org-branch-blue  .org-branch-box { border-color: rgba(0,90,156,.45); }
  .org-branch-green .org-branch-box { border-color: rgba(0,140,69,.45); }
  .org-branch-black .org-branch-box { border-color: rgba(26,26,26,.4); }
  .org-branch-white .org-branch-box { border-style: dashed; border-color: #b9c2cc; }
  /* Clickable pill label → deep-dive page.  Keeps the pill's exact look (no
     underline) but lifts + brightens on hover so it reads as interactive. */
  .org-branch-header-link { text-decoration: none; cursor: pointer;
                     transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
  .org-branch-header-link:hover { transform: translateY(-1px); filter: brightness(1.06);
                     box-shadow: 0 3px 10px rgba(0,0,0,.18); }
  /* "Volunteers welcome" invitation placeholder (Classes column) — a dashed
     avatar framed as an opportunity, linking to /volunteer. */
  .org-member-invite { cursor: pointer; }
  .org-invite-avatar { width: 52px; height: 52px; border-radius: 50%;
                     border: 2px dashed #b6b6b6; background: #fbfbfb; color: #9aa3af;
                     display: flex; align-items: center; justify-content: center;
                     font-size: 26px; font-weight: 300; line-height: 1;
                     transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
  .org-member-invite:hover .org-invite-avatar { border-color: #005A9C; color: #005A9C;
                     background: #f0f7fb; }
  .org-invite-name { color: #555; }
  .org-invite-sub  { font-size: 9px; color: #9aa3af; text-align: center;
                     max-width: 104px; line-height: 1.25; }
  /* Member thumbnails inside a branch — circular avatars stacked vertically */
  .org-members { margin-top: 14px; display: flex; flex-direction: column;
                  gap: 8px; align-items: center; }
  .org-member  { display: flex; flex-direction: column; align-items: center; gap: 4px;
                  text-decoration: none; color: inherit; padding: 4px;
                  border-radius: 8px;
                  transition: transform .25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                              background-color .2s ease; cursor: pointer; }
  .org-member:hover { transform: translateY(-2px); background-color: #f0f7fb; }
  .org-member img   { width: 52px; height: 52px; border-radius: 50%;
                       object-fit: cover; object-position: center top;
                       background: #ddd; border: 2px solid #fff;
                       box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
  .org-branch-blue  .org-member img { box-shadow: 0 2px 8px rgba(59,169,232,0.35); }
  .org-branch-green .org-member img { box-shadow: 0 2px 8px rgba(73,184,92,0.35); }
  .org-member-name  { font-size: 10px; font-weight: 600; color: #444;
                       text-align: center; max-width: 124px; line-height: 1.25;
                       word-break: normal; overflow-wrap: break-word; hyphens: none; }
  .org-empty        { font-size: 10px; color: #bbb; padding: 18px 0;
                       font-style: italic; }

  /* Section sub-headings */
  .section-sub-heading { font-size: 1.25rem; font-weight: 700; text-transform: uppercase;
                         color: #1A1A1A; letter-spacing: 0.5px;
                         margin-bottom: 25px; padding-bottom: 8px;
                         border-bottom: 2px solid #EAEAEA; }
  .tenki-team-section { margin-top: 50px; }
  .tenki-team-section:first-of-type { margin-top: 0; }

  /* Grid + center-flex for single-card sections */
  .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
  .flex-center-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 450px));
                      justify-content: center; }

  /* Team card — springy bounce identical to .pillar-card and .dd-card.dd-sub
     so the three card families feel like the same UI system.  The cubic-
     bezier overshoot (0.175, 0.885, 0.32, 1.275) is the bounce curve. */
  .team-member-card { background-color: #FFFFFF; border-radius: 12px; overflow: hidden;
                      box-shadow: 0 4px 15px rgba(0,0,0,0.03);
                      display: flex; flex-direction: column;
                      border-bottom: 5px solid #EAEAEA;
                      transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                                  box-shadow .4s ease; }
  .team-member-card:hover { transform: translateY(-6px);
                            box-shadow: 0 14px 32px rgba(0,0,0,0.10); }
  /* Inner accents respond to card hover, matching how the pillars scale
     their icon and the deep-dive cards scale theirs.  Subtle but anchors
     the eye when scanning the team grid. */
  .team-image-box img { transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
  .team-member-card:hover .team-image-box img { transform: scale(1.03); }
  .role-badge { transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
  .team-member-card:hover .role-badge { transform: translateY(-2px); }
  .card-blue-accent  { border-bottom-color: #005A9C; }
  .card-green-accent { border-bottom-color: #008C45; }
  .card-black-accent { border-bottom-color: #1A1A1A; }

  /* Image frame + role badge */
  .team-image-box { width: 100%; height: 380px; background-color: #EAEAEA;
                    position: relative; overflow: hidden; }
  .team-image-box img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .role-badge { position: absolute; bottom: 15px; left: 15px;
                padding: 6px 14px; border-radius: 20px;
                font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
                letter-spacing: 0.5px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 2; }
  .badge-blue  { background-color: #005A9C; color: #FFFFFF; }
  .badge-green { background-color: #008C45; color: #FFFFFF; }
  .badge-black { background-color: #1A1A1A; color: #FFFFFF; }

  /* Inner content */
  .team-info-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
  .team-info-content h3 { margin: 0 0 6px 0; color: #1A1A1A; font-size: 1.3rem; font-weight: 700; }
  .credentials { margin: 0 0 15px 0; color: #005A9C; font-size: 0.85rem;
                 font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
                 white-space: pre-line; }
  .team-member-card.card-green-accent .credentials { color: #008C45; }
  .team-member-card.card-black-accent .credentials { color: #1A1A1A; }
  /* Pillar · program context (esp. field/trip contributors) */
  .member-context { margin: -8px 0 14px 0; color: #6b7280; font-size: 0.82rem;
                    font-weight: 600; }
  .bio-text { margin: 0; color: #555555; font-size: 0.95rem; line-height: 1.6; }

  /* Journal contribution stat — the ever-rising "stories published" count.
     Pulled from the Journal API (action=author-stats) and matched by Name.
     Rendered as a pill above the bio so field contributors see their
     published-post tally climb.  Hidden entirely when the count is 0. */
  .journal-stat { display: inline-flex; align-items: center; gap: 6px;
                  margin: 0 0 14px 0; padding: 5px 11px; border-radius: 999px;
                  background-color: #eef6fc; color: #005A9C;
                  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2px;
                  border: 1px solid rgba(0,90,156,0.18); align-self: flex-start;
                  transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
  .journal-stat .journal-stat-num { font-size: 0.95rem; }
  .team-member-card:hover .journal-stat { transform: translateY(-2px); }
  .team-member-card.card-green-accent .journal-stat {
    background-color: #edf7f0; color: #008C45; border-color: rgba(0,140,69,0.18); }
  .team-member-card.card-black-accent .journal-stat {
    background-color: #f1f1f1; color: #1A1A1A; border-color: rgba(26,26,26,0.18); }

  /* Skeleton (shown while fetching) */
  .team-skel { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
  .team-skel-row { height: 480px; border-radius: 12px;
                    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
                    background-size: 200% 100%;
                    animation: team-shimmer 1.4s infinite linear; }
  @keyframes team-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

  /* Build chip (visible with ?debug=1) — mirrors the pattern from the
     other live pages so verification is uniform. */
  .tenki-debug-chip-team { position: fixed !important; top: 100px !important;
                            right: 6px !important;
                            padding: 4px 10px !important; border-radius: 4px !important;
                            background: #16a34a !important; color: #fff !important;
                            font-size: 11px !important; font-weight: 700 !important;
                            font-family: ui-monospace, "SF Mono", Menlo, monospace !important;
                            z-index: 2147483647 !important;
                            box-shadow: 0 1px 4px rgba(0,0,0,.18) !important;
                            pointer-events: auto !important; user-select: text !important;
                            display: none; }
  .tenki-debug-chip-team.show { display: block !important; }
  .tenki-debug-chip-team.dev  { background: #ea580c !important; }

  /* ── Partners & Donors logo wall ─────────────────────────────────────── */
  .tenki-partners-wall { max-width: var(--tenki-max, 1400px); margin: 30px auto 0;
                          padding: 28px 24px 24px; background: #fff;
                          border-radius: 14px;
                          box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
  .tenki-partners-wall.empty { display: none; }
  .partners-wall-title { font-size: 1rem; font-weight: 800;
                          text-transform: uppercase; letter-spacing: 1px;
                          color: #1A1A1A; text-align: center;
                          margin: 0 0 6px; }
  .partners-wall-sub { font-size: .9rem; color: #666; text-align: center;
                        margin: 0 0 22px; }
  .partners-tier { margin-bottom: 18px; }
  .partners-tier:last-child { margin-bottom: 0; }
  .partners-tier-name { font-size: 11px; font-weight: 700; text-transform: uppercase;
                         color: #888; letter-spacing: .5px;
                         margin: 0 0 10px; padding-bottom: 4px;
                         border-bottom: 1px solid #eee; }
  .partners-tier-range { color: #008C45; font-weight: 700; margin-left: 6px; }
  .partners-row { display: flex; flex-wrap: wrap; gap: 18px;
                    justify-content: center; align-items: center; }
  .partner-logo { display: flex; flex-direction: column; align-items: center;
                    gap: 6px; padding: 10px 14px; border-radius: 10px;
                    text-decoration: none; color: inherit; cursor: pointer;
                    background: #fafafa; min-width: 130px; max-width: 180px;
                    transition: transform .25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                                box-shadow .25s ease, background-color .2s ease; }
  .partner-logo:hover { transform: translateY(-3px);
                         box-shadow: 0 8px 20px rgba(0,0,0,.06);
                         background: #fff; }
  .partner-logo img,
  .partner-logo-fallback { width: 96px; height: 64px; object-fit: contain;
                            background: #fff; border-radius: 6px;
                            border: 1px solid #f0f0f0; padding: 6px; }
  .partner-logo-fallback { display: flex; align-items: center; justify-content: center;
                            color: #555; font-weight: 700; font-size: 13px;
                            text-align: center; padding: 6px; }
  .partner-logo-name { font-size: 11px; font-weight: 600; color: #333;
                        text-align: center; line-height: 1.2; max-width: 140px; }
  .partners-wall-cta { margin-top: 22px; text-align: center;
                        font-size: .85rem; color: #555; }
  .partners-wall-cta a { color: #3BA9E8; font-weight: 700;
                          text-decoration: none; border-bottom: 1px dashed #3BA9E8; }
  .partners-wall-cta a:hover { color: #1F75B0; }

  /* Responsive */
  @media (max-width: 768px) {
    .tenki-team-container { padding: 15px; margin: 40px auto 20px auto; }
    .team-header h2 { font-size: 1.8rem; }
    .team-intro { font-size: 1rem; }
    .team-grid, .flex-center-grid { grid-template-columns: 1fr; gap: 20px; }
    /* Portrait 3:4 photo box on mobile — the old fixed 280px turned the
       full-width single-column card into a LANDSCAPE frame, so cover-cropping
       clipped faces (Matthew, 2026-07-16). 3:4 matches the team editor's 🎯
       focal-point preview ratio, so what staff frame there is what renders. */
    .team-image-box { height: auto; aspect-ratio: 3 / 4; }
    /* Org-chart mobile layout lives in the dedicated @media (max-width:768px)
       block above (the top-down hierarchy with connectors).  Keep org rules
       out of THIS block so they don't override it. */
    /* Partner logo wall — narrower min-width on mobile so 2 logos can
       fit per row on a 390px screen rather than forcing a single column. */
    .partner-logo { min-width: 100px; max-width: 150px; padding: 8px 10px; }
    .partner-logo img,
    .partner-logo-fallback { width: 76px; height: 52px; }
    .partner-logo-name { font-size: 10px; }
    .partners-row { gap: 12px; }
  }
