/* 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://images.squarespace-cdn.com/content/5f4c01462f929718c414c3bb/228230f6-1d28-454f-9666-ae1eead134d8/Tenki+logo+2.jpeg?content-type=image%2Fjpeg");
    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 — an explicit top-down hierarchy ────────────────────
       The desktop tree doesn't fit a phone, and a flat stack of equal cards
       loses the reporting structure.  So we render a clear vertical flow, each
       level centered and joined by a short connector line:

         Board of Directors        (governance)
              │
            Tε­nki                 (the organization)
              ├ Senior Advisor      (advisory — dashed, off to the side role)
              │
           PROGRAMS                 (the 4 pillars, each a full-width card)
              │
          Operations                (support)

       Reads unambiguously top → bottom on a narrow screen. */
    .tenki-org-chart { padding: 16px 10px 4px; }
    .tenki-org-chart .org-root { display: flex; flex-direction: column; align-items: center; }
    .tenki-org-chart .org-root > * { width: 100%; }

    /* Board on top (keeps its existing ::after stem down to the logo). */
    .org-board { display: flex; flex-direction: column; align-items: center; }

    /* Tenki logo, then Senior Advisor directly beneath it (centered, dashed).
       Drop the desktop dashed side-stem; show a short vertical trunk as the
       logo → advisory connector. */
    .org-tree-top { display: flex; flex-direction: column; align-items: center;
                    column-gap: 0; row-gap: 0; }
    .org-tree-center { grid-column: auto; grid-row: auto; order: 0; width: auto;
                    align-items: center; }
    .org-tree-center .org-root-logo::after { display: none; }
    .org-tree-center .org-trunk { display: block; width: 3px; height: 16px;
                    min-height: 0; margin: 0; background: #1A1A1A; }
    .org-advisory   { grid-column: auto; grid-row: auto; order: 1; width: 100%;
                    max-width: 340px; margin: 0; justify-self: center; align-self: center; }
    .org-advisory-panel { text-align: center; height: auto; }

    /* Programs — the 4 pillars stacked.  A short connector + a small group
       label make it clear they hang off Tenki, not off the board or Operations. */
    .org-branches { display: flex; flex-direction: column; align-items: stretch;
                    gap: 12px; border-top: none; padding: 0; max-width: 460px; }
    .org-branches::after { display: none; }                  /* desktop centre spine off */
    .org-branches::before { content: 'Programs'; align-self: center; margin-top: 14px;
                    padding-top: 18px; font: 800 10px/1 system-ui, sans-serif;
                    letter-spacing: .14em; text-transform: uppercase; color: #9aa3af;
                    background: linear-gradient(#1A1A1A,#1A1A1A) top center / 3px 16px no-repeat; }
    /* These .org-branch* / .org-members rules are prefixed with .tenki-org-chart
       so they outrank the base (desktop) rules by specificity — the base copies
       live LATER in the stylesheet, so plain selectors here would lose on source
       order. */
    .tenki-org-chart .org-branch { padding: 12px 14px; background: #fafafa; border-radius: 10px;
                    border-left: 5px solid #ccc; align-items: stretch; text-align: left; }
    .tenki-org-chart .org-branch::before { display: none; }
    .tenki-org-chart .org-branch-header { margin-top: 0; align-self: flex-start; }
    .tenki-org-chart .org-branch-sub    { align-self: flex-start; }
    .tenki-org-chart .org-branch.org-branch-blue  { border-left-color: #3BA9E8; }
    .tenki-org-chart .org-branch.org-branch-green { border-left-color: #49B85C; }
    .tenki-org-chart .org-branch.org-branch-black { border-left-color: #1A1A1A; }
    .tenki-org-chart .org-branch.org-branch-white { border-left-style: dashed; border-left-color: #888; }
    .tenki-org-chart .org-branch.org-branch-org   { border-left-color: #555; }
    .tenki-org-chart .org-members { flex-direction: row; flex-wrap: wrap; justify-content: center;
                    margin-top: 10px; }

    /* Operations — support, at the bottom, joined by a short connector. */
    .org-ops-below { width: 100%; align-items: center; margin-top: 0; }
    .org-ops-below::before { height: 16px; }
    .org-ops-below .org-operations { max-width: 340px; }
  }
  .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; }
  /* 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; }
    .team-image-box { height: 280px; }
    /* 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; }
  }