/**
 * RC Landscape Theme - Team & Directory Display Add-ons
 *
 * Avatar/logo presentation for [rc_landscape_team],
 * [rc_landscape_groups_directory], and [rc_landscape_partners]. The card grid
 * itself reuses the shared .rc-landscape-grid / .rc-landscape-card baseline
 * (layout.css / readable.css); these rules add ONLY the team avatar and org logo
 * treatments. Fully tokenized (accent + neutral tokens); no hardcoded color
 * except #fff on the accent placeholder (the accent clears 4.5:1 on white on
 * every preset, so white-on-accent is safe; the placeholder is decorative and
 * aria-hidden regardless). Inert on pages without the markup.
 *
 * Version: 1.6.0
 * Updated: LV-S13 (August 29, 2026) - REPAIR to the 1.5.0 breakout below. It
 *   centred the roster on .rc-page-prose, but .rc-page-prose has no auto margin:
 *   it is LEFT-FLUSH inside the 1120px well, so `margin-left:50%` +
 *   `translateX(-50%)` centred the 1120px grid on the 760px column's midpoint,
 *   180px left of the page centre. Measured live at 1440x900 the grid's left
 *   edge sat at -27px, i.e. the first card in every row was clipped off the
 *   viewport. Replaced with a plain left-aligned span of the well, which needs
 *   no offset arithmetic at all because the prose's left edge IS the well's
 *   content edge. Generated by Claude
 * Previous: 1.5.0 LV-S12b (August 29, 2026) - the team grid goes FOUR across (owner
 *   direction). Explicit 4-column track rather than a min-width, because on the
 *   Our Team page the grid sits inside .rc-page-prose, a 760px reading measure,
 *   where auto-fill minmax(300px,1fr) resolved to two columns and no min-width
 *   above 172px could ever reach four. Avatar 96px -> 76px and tighter card
 *   padding to suit the narrower track; both step back up at the 2-column
 *   breakpoint (899px), collapsing to one column at 520px. This partial is
 *   enqueued unconditionally, which is why the rule lives here and not in
 *   home-extras.css (front-page only). Generated by Claude
 * Previous: 1.4.0 WHID-S9 (June 24, 2026) - DoB button rework: .rc-nav-cta (Donate) -> 4px radius, 2px border, flat, color-change hover (matches the readable.css button system; pop color pair unchanged). Generated by Claude
 * Previous: 1.3.0 WHID-S8 - Pill: .rc-nav-cta (Donate) rounded to 999px + soft shadow + hover lift. Generated by Claude
 * Previous: 1.2.0 WHID-S7 - Color mandate v1.1: .rc-nav-cta (Donate, on the white header) = solid mid-tone pop + cream label (--rc-landscape-on-pop), pop-deep hover; was a light warm fill. Generated by Claude
 * Previous: 1.1.1 WHID-S6 - Batch 1b: .rc-nav-cta = light warm fill + dark label/border, inverts on hover. Generated by Claude
 * Previous: 1.1.0 WHID-S6 - warm pop accent + desktop float-right
 * Created: WHID-S5 (June 21, 2026) - Generated by Claude
 */

/* ---------------------------------------------------------------
   Team grid (rc_landscape_team): centered avatar + name + role + bio.
   --------------------------------------------------------------- */
/* Four across (LV-S12b, owner direction).
 * The base .rc-landscape-grid is auto-fill minmax(300px, 1fr). On the Our Team
 * page the grid sits inside .rc-page-prose, a 760px reading measure, so
 * auto-fill resolved to TWO columns. A team card carries far less than a
 * content card (avatar, name, role, a 28-word bio), so it takes an explicit
 * four-column track here rather than a min-width that the narrow measure can
 * never satisfy. (0,2,0) beats the (0,1,0) base rule, and the modifier keeps
 * the updates, events, resources and directory grids untouched.
 * At four columns inside 760px each card is about 172px, so the avatar and
 * card padding step down to match; both restore at the 2-column breakpoint. */
.rc-landscape-grid.rc-landscape-team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Break the roster out of the 760px reading measure up to the section well.
 * Four cards inside 760px gives 149px of text column, where a steward bio wraps
 * to 428px of stacked short lines and the row balloons past 700px. At the
 * 1120px well each card gets about 250px and the same bio settles in a few
 * lines.
 *
 * NO centring offset, deliberately (LV-S13 repair). .rc-page-prose sets only
 * `max-width: 760px` with no auto margin, so it is LEFT-FLUSH and its left edge
 * is already the content edge of .rc-lp-section__inner. Widening from that edge
 * therefore lands exactly on the well. The 1.5.0 rule tried to centre with
 * `margin-left:50%` + `translateX(-50%)`, which centres on the PROSE midpoint,
 * not the page's: measured live at 1440x900 that put the grid at -27px and
 * clipped the first card of every row off the left of the viewport.
 *
 * The 100px subtrahend is the well's 80px of padding plus 20px of slack for a
 * classic scrollbar, because 100vw counts the scrollbar and the well does not.
 * Without the slack the grid overruns the well by the scrollbar width at every
 * viewport below ~1215px and reintroduces a horizontal scroll. Above that the
 * 1120px cap dominates and the grid meets the well exactly. */
.rc-page-prose .rc-landscape-grid.rc-landscape-team {
    width: min(1120px, calc(100vw - 100px));
    max-width: none;
}

.rc-landscape-team-card {
    text-align: center;
    padding: 20px 12px;
}

@media (max-width: 899px) {
    .rc-landscape-grid.rc-landscape-team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rc-landscape-team-card {
        padding: 24px 20px;
    }
    /* Below the 4-up breakpoint the reading measure is fine; drop the breakout
     * so the roster lines up with the rest of the page prose again. */
    .rc-page-prose .rc-landscape-grid.rc-landscape-team {
        width: auto;
    }
}

@media (max-width: 520px) {
    .rc-landscape-grid.rc-landscape-team {
        grid-template-columns: 1fr;
    }
}

.rc-landscape-team-card__avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    background: var(--rc-warm-white);
    border: 2px solid rgba(var(--rc-landscape-accent-rgb), 0.25);
}

/* Initial-letter fallback when a steward has no profile photo. */
.rc-landscape-team-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Public Sans', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--rc-landscape-accent);
    border-color: transparent;
}

.rc-landscape-team-card__name {
    margin-bottom: 4px;
}

.rc-landscape-team-card__role {
    font-size: var(--fs-500);
    font-weight: 600;
    color: var(--rc-landscape-meta);
    margin: 0 0 10px;
}

.rc-landscape-team-card__pronouns {
    font-weight: 400;
}

/* ---------------------------------------------------------------
   Org / partner directory (rc_landscape_groups_directory,
   rc_landscape_partners): logo plate above the name.
   --------------------------------------------------------------- */
.rc-landscape-org-card__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 72px;
    margin-bottom: 12px;
}

.rc-landscape-org-card__logo img {
    max-height: 72px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.rc-landscape-org-card__link {
    margin-top: 12px;
}

.rc-landscape-org-card__link a {
    font-size: var(--fs-500);
    font-weight: 600;
    color: var(--rc-landscape-accent);
    text-decoration: none;
}

.rc-landscape-org-card__link a:hover {
    color: var(--rc-landscape-accent-deep);
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   Top-level CTA nav item (a primary-menu item with class rc-nav-cta,
   e.g. Donate): the single per-view pop CTA. It sits on the WHITE header
   (a light surface), so it uses the SOLID mid-tone pop fill with a cream
   label (--rc-landscape-on-pop): pop-on-white clears WCAG 1.4.11 (>=3:1)
   and cream-on-pop clears 1.4.3 AA on both presets. Hover deepens to
   pop-deep (cream label retained). Source order wins over the base
   .menu-item link rule (this partial loads after layout.css).
   --------------------------------------------------------------- */
.rc-landscape-nav__list .rc-nav-cta > a {
    background: transparent;
    color: var(--rc-landscape-accent);
    border: 2px solid var(--rc-landscape-accent);
    border-radius: 999px;
    padding: 9px 24px;
    min-height: 0;
    line-height: 1.1;
    font-weight: 600;
    align-self: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rc-landscape-nav__list .rc-nav-cta > a:hover,
.rc-landscape-nav__list .rc-nav-cta > a:focus {
    background: var(--rc-landscape-accent);
    border-color: var(--rc-landscape-accent);
    color: var(--rc-landscape-on-accent);
    text-decoration: none;
}

/* Float the Donate/CTA item to the right edge of the nav on desktop only
   (the mobile breakpoint stacks the nav, so the float is scoped >= 901px). */
@media (min-width: 901px) {
    .rc-landscape-nav__list .rc-nav-cta {
        margin-left: auto;
    }
}
