.wait-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.wait-header {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.wait-heading {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    color: #000;
    line-height: 1.2;
    margin: 0 0 15px;
}

.wait-subtext {
    /* Same as the card bios — 16px / 1.6 / #4a4a4a. This was 15px at #333,
       so the intro read as a different size and a darker grey than every
       other block of body copy on the page. */
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

.wait-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

/* Flat WWP shadowbox card: white background + soft shadow, no border,
   no rounded corners — matches the real values pulled from
   woundedwarriorproject.org's own .gridWidgetsBE .widget rule. */
/* Card treatment is switchable via card_style="" on the shortcode:
     border  1px hairline, no shadow (default)
     shadow  WWP's .gridWidgetsBE .widget — 0 2px 12px rgba(0,0,0,.12)
     flat    no frame at all, separated by whitespace only

   WWP do use a shadow on these, but their .story-card variant pairs it with
   solid 1px #c5ccd0 — so a bordered card is still their vocabulary, and that
   is where the border colour below comes from. */
.wait-card {
    background: #fff;
    padding: 1.429em;
    /* Left throughout. Avatar and name were centred over a left-aligned bio,
       which is what made these read as unfinished — two alignments in one
       card. WWP's cards are left-aligned end to end. */
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid #c5ccd0;
    transition: border-color .2s ease, transform .2s ease;
}

.wait-card:hover {
    border-color: #003161;
    transform: translateY(-2px);
}

/* --- shadow variant (the previous default) --- */
.wait-grid--shadow .wait-card {
    border: 0;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.wait-grid--shadow .wait-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, .16);
}

/* --- flat variant: no frame, a red rule under the photo instead --- */
.wait-grid--flat .wait-card {
    border: 0;
    background: transparent;
    padding: 0 0 1.5rem;
}
.wait-grid--flat .wait-card:hover { transform: none; }
.wait-grid--flat .wait-card-name::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: #b5121b;
    margin: 12px auto 0;
}

@media (prefers-reduced-motion: reduce) {
    .wait-card,
    .wait-card:hover,
    .wait-grid--shadow .wait-card,
    .wait-grid--shadow .wait-card:hover {
        transition: none;
        transform: none;
    }
}

.wait-card-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 16px;
    display: block;
}

.wait-card-photo-placeholder {
    background: #003161;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wait-card-photo-placeholder span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
}

.wait-card-name {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    color: #000;
    margin: 0 0 4px;
    line-height: 1.3;
}

.wait-card-title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #005da5;
    margin: 0 0 14px;
    line-height: 1.4;
    /* Always rendered, blank when a member has no role, so the bios start at
       the same height across a row instead of stepping. */
    min-height: 1.4em;
}

.wait-card-bio {
    /* WWP's .gridWidgetsBE .story-content — 16px at #4a4a4a. Ours was 14px
       at #333, which read denser and darker than the rest of the site. */
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    text-align: left;
    margin: 0 0 8px;
    flex: 1 1 auto;
}

.wait-card-bio-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wait-card-bio.wait-expanded .wait-card-bio-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.wait-card-readmore {
    display: none;
    background: none;
    border: 0;
    border-top: 1px solid #e3e8ee;
    color: #003161;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 12px 0 0;
    margin-top: auto;
    width: 100%;
    text-align: left;
    transition: color .2s ease;
}

.wait-card-readmore.wait-visible { display: block; }
.wait-card-readmore:hover { color: #b5121b; }
.wait-card-readmore:focus-visible { outline: 3px solid #005da5; outline-offset: 2px; }

/* Arrow rotates when expanded, so the control says which way it goes. */
.wait-card-readmore::after {
    content: "\2193";
    margin-left: .5em;
    display: inline-block;
    transition: transform .2s ease;
}
.wait-expanded .wait-card-readmore::after { transform: rotate(180deg); }



/* Cards with a short placeholder bio (e.g. "Details to come.") get a
   quieter, italic treatment instead of looking like broken content. */
.wait-card-bio-placeholder .wait-card-bio-text {
    font-style: italic;
    color: #94a3b8;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

/* 3 → 2 → 1. The old sheet jumped straight from three columns to one at
   900px, which wasted most of the width on tablets. */
@media (max-width: 1100px) {
    .wait-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .wait-grid {
        grid-template-columns: 1fr;
    }
}

.wait-card[hidden] {
    display: none;
}

.wait-no-results {
    text-align: center;
    color: #6b7a90;
    font-size: .95rem;
    margin: 24px 0 0;
}

/* ==========================================================================
   SEARCH / SORT CONTROLS
   ========================================================================== */

.wait-controls {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e3e8ee;
}

/* Square edges and a navy hairline rather than a soft grey pill — the pills
   were the only rounded thing on the page and read as a different kit. */
.wait-search,
.wait-sort {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: #003161;
    background: #fff;
    border: 1px solid #c5ccd0;
    border-radius: 2px;
    padding: 12px 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wait-search {
    flex: 1 1 300px;
    max-width: 360px;
    /* Magnifier drawn as a background image so no extra markup is needed and
       the JS that owns this input stays untouched. */
    padding-left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6472' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px 16px;
}

.wait-search::placeholder {
    color: #8d99a8;
    font-weight: 500;
}

.wait-search:focus,
.wait-sort:focus {
    outline: none;
    border-color: #005da5;
    box-shadow: 0 0 0 3px rgba(0, 93, 165, .15);
}

.wait-search:focus-visible,
.wait-sort:focus-visible {
    outline: none;
}

.wait-sort {
    cursor: pointer;
    padding-right: 38px;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: .72rem;
    /* Native arrow replaced so the control matches the search field's weight. */
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003161' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 13px 13px;
}

.wait-sort:hover { border-color: #003161; }

@media (max-width: 600px) {
    .wait-search, .wait-sort { flex: 1 1 100%; max-width: none; }
}

/* ==========================================================================
   FOUNDER BIO (rendered before the team grid)
   ========================================================================== */

.wait-founder-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 0;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.wait-founder-inner.wait-founder-has-photo {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.wait-founder-photo-col {
    flex: 0 0 300px;
    position: sticky;
    top: 24px;
}

.wait-founder-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .12);
}

.wait-founder-text-col {
    flex: 1 1 480px;
    min-width: 280px;
}

.wait-founder-title {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    color: #000;
    margin: 0 0 26px;
    line-height: 1.25;
}

.wait-founder-bio p {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    margin: 0 0 20px;
}

.wait-founder-bio strong {
    color: #000;
}

/* Full-bleed edge-to-edge band, matching the "What We Do" page.

   100vw includes the vertical scrollbar, so a naive rule overflows by ~15px
   and produces a horizontal scrollbar. --wait-sbw is measured in team.js
   (innerWidth - clientWidth) and falls back to 0 before scripts run. */
.wait-fullbleed {
    position: relative;
    left: 50%;
    right: 50%;
    width: calc(100vw - var(--wait-sbw, 0px));
    max-width: calc(100vw - var(--wait-sbw, 0px));
    margin-left: calc(-50vw + (var(--wait-sbw, 0px) / 2));
    margin-right: calc(-50vw + (var(--wait-sbw, 0px) / 2));
    box-sizing: border-box;
}

/* ==========================================================================
   BAND LAYOUT — shared by the board callout and the pull-quote strip

   Structure taken from Wounded Warrior Project's own .testimonial-component:
   a 1140px container split 50/50 by flexbox with 15px gutters, which is what
   yields their 540px text column — it was never a fixed width. The image
   column bottom-aligns (their .col-contents.align-bottom sets
   margin-bottom:unset against margin:auto centring) while the copy stays
   vertically centred. Breakpoints are Bootstrap's 991.98 / 575.98.
   ========================================================================== */

.wait-band {
    --wait-band-bg: #f0f0f0;

    overflow: hidden;
    background: var(--wait-band-bg);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.wait-band-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.wait-band-figure,
.wait-band-body {
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
    min-width: 0;
}

/* Portrait sits on the band's baseline; copy stays optically centred. */
.wait-band-figure {
    align-self: flex-end;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.wait-band-right .wait-band-inner {
    flex-direction: row-reverse;
}

.wait-band-photo {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Cut-out: transparent PNG/WebP free to run past the bottom edge, clipped
   flush by the band's overflow:hidden. The 1px nudge kills the sub-pixel
   seam some browsers leave between image and band edge. */
.wait-band-style-cutout .wait-band-figure {
    margin-bottom: -1px;
}

/* Framed: for an ordinary rectangular photo carrying its own background. */
.wait-band-style-framed .wait-band-figure {
    align-self: center;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 0;
}

.wait-band-style-framed .wait-band-photo {
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, .16);
}

.wait-band-body {
    text-align: left;
}

@media (max-width: 991.98px) {
    .wait-band-inner,
    .wait-band-right .wait-band-inner {
        flex-direction: column;
    }

    .wait-band-figure,
    .wait-band-body {
        width: 100%;
        text-align: center;
    }

    .wait-band-figure {
        align-self: center;
        margin-bottom: 0;
        padding-top: 30px;
    }

    .wait-band-photo { max-width: 500px; }
}

@media (max-width: 575.98px) {
    .wait-band-photo { max-width: 100%; }
}


@media (max-width: 800px) {
    .wait-founder-photo-col {
        flex: 0 0 auto;
        width: 220px;
        margin: 0 auto;
        position: static;
    }
    .wait-founder-inner.wait-founder-has-photo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }
    .wait-founder-text-col {
        text-align: left;
    }
}


/* ==========================================================================
   PULL-QUOTE BAND — Wounded Warrior Project's own declared values

   .testimonial-component   background #f0f0f0, overflow hidden
   .testimonial-block       color #4a4a4a, line-height 1.25, 40px vertical
                            padding at >=992px
   .main-text-block         30px Montserrat bold #232323, 26px under 400px
   .sub-text-block          18px, margin-top 25px, #232323
   .useEmdash               NOT an em dash character — a 20x1px bar drawn
                            with ::after at top:10px/left:0, the text block
                            inline-block with 28px left padding
   ========================================================================== */

.wait-quote-band {
    --wait-band-bg: #f0f0f0;
}

.wait-quote-body {
    color: #4a4a4a;
    line-height: 1.25;
}

@media (min-width: 992px) {
    .wait-quote-body {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.wait-quote-text {
    margin: 0;
    padding: 0;
    border: 0;
    quotes: none;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    color: #232323;
}

@media (max-width: 400px) {
    .wait-quote-text { font-size: 26px; }
}

/* The rule to the left of the attribution is drawn, not typed — a 20px by
   1px block, which is why it reads as a clean hairline rather than a glyph
   that shifts with the font. */
.wait-quote-attribution {
    position: relative;
    display: inline-block;
    margin-top: 25px;
    padding-left: 28px;
    font-size: 18px;
    line-height: 1.45;
    text-align: left;
    color: #232323;
}

.wait-quote-attribution::after {
    content: "";
    position: absolute;
    display: inline-block;
    top: 10px;
    left: 0;
    width: 20px;
    height: 1px;
    background-color: #232323;
}

.wait-quote-eyebrow,
.wait-quote-name {
    display: block;
}

.wait-quote-eyebrow { font-weight: 400; }
.wait-quote-name    { font-weight: 700; }

/* WWP applies uppercase per instance rather than in the stylesheet, because
   the same 18px block is also used for sentences. Same here: it's a toggle,
   and it deliberately does not reach the sub-text line, where uppercasing an
   email address would be unreadable. */
.wait-quote-upper .wait-quote-eyebrow,
.wait-quote-upper .wait-quote-name {
    text-transform: uppercase;
}

.wait-quote-subtext {
    display: block;
    font-weight: 400;
    text-transform: none;
}

.wait-quote-eyebrow + .wait-quote-subtext,
.wait-quote-name + .wait-quote-subtext {
    margin-top: 10px;
}

.wait-quote-attribution a {
    color: #b5121b;
    font-weight: 700;
    text-decoration: none;
}

.wait-quote-attribution a:hover {
    text-decoration: underline;
}

/* No portrait: the quote centres on its own. */
.wait-quote-no-photo .wait-band-inner {
    flex-direction: column;
    align-items: center;
}

.wait-quote-no-photo .wait-band-body {
    width: 100%;
    text-align: center;
}


/* ==========================================================================
   BANNER — same treatment as the What We Do page's hero banner
   ========================================================================== */

.wait-banner {
    background-color: #003161;
    background-size: cover;
    background-position: right center;
    min-height: 335px;
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
}

.wait-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #003161 0%, #003161 40%, rgba(0,49,97,.55) 70%, rgba(0,49,97,0) 100%);
}

.wait-banner-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.wait-banner-title {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 0 14px;
    max-width: 600px;
}

.wait-banner-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    max-width: 560px;
    margin: 0;
}

@media (max-width: 900px) {
    .wait-banner-title {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   STORY LAYOUT — card_layout="story"

   Wounded Warrior Project's story card: full-bleed 720x575 image across the
   top, then a padded block with the name, an excerpt and a pill button.
   Values from .gridWidgetsBE — .widget-inner { padding: 1.429em },
   .widget-title { color:#000; margin-bottom:1rem },
   .widget-inner .btn-wrap { margin-top: 2.143rem }.
   ========================================================================== */

.wait-grid--story .wait-card {
    padding: 0;
    overflow: hidden;
}

.wait-grid--story .wait-card-photo {
    width: 100%;
    height: auto;
    /* 720 / 575, their published image dimensions. */
    aspect-ratio: 720 / 575;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    display: block;
}

.wait-grid--story .wait-card-photo-placeholder {
    width: 100%;
    aspect-ratio: 720 / 575;
    border-radius: 0;
    background: #003161;
    /* Restated, not inherited. The rule above sets display:block on
       .wait-card-photo, and at two classes it outranks the one-class
       .wait-card-photo-placeholder that supplies the flex centring — so the
       initials dropped to the top-left corner. */
    display: flex;
    align-items: center;
    justify-content: center;
}
.wait-grid--story .wait-card-photo-placeholder span {
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: .06em;
}

.wait-grid--story .wait-card-body {
    /* Bottom padding equals the gap above the button, so the button sits in
       an even band rather than floating with more air beneath it. */
    padding: 1.429em 1.429em 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.wait-grid--story .wait-card-name {
    font-size: 1.45rem;
    line-height: 1.2;
    color: #000;
    margin: 0 0 .5rem;
    /* Two lines reserved. "Rev. Julianne Lewis \"Rev J\"" wraps where the
       others don't, which pushed her role and bio a line below everyone
       else's. Reserving the space levels the row regardless of name length. */
    min-height: 2.4em;
}

/* Role sits under the name as a small rule-topped label rather than the
   uppercase blue line — at this heading size the blue competed. */
.wait-grid--story .wait-card-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5a6472;
    /* One line reserved, blank when a member has no role — same reason as
       the name above. Do not collapse this when empty. */
    margin: 0 0 1rem;
    min-height: 1.4em;
    line-height: 1.4;
}

/* Clamp restated for this layout rather than inherited. The image already
   carries the card's visual weight here, so four lines keeps the excerpt an
   excerpt — five made the block compete with the photo above it. */
.wait-grid--story .wait-card-bio-text {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.wait-grid--story .wait-card-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    /* 22px above the button, matching the 22px below it. WWP's 2.143rem
       (34px) is their spacing for a card whose copy runs full length; ours
       is clamped, so it left a visible hole. */
    margin: 0 0 22px;
    flex: 1 1 auto;
}

/* Read-more becomes the pill button. Their .btn-wrap sits 2.143rem below the
   copy, which the bio margin above provides. */
.wait-grid--story .wait-card-readmore {
    border: 0;
    border-radius: 999px;
    background: #005da5;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 13px 24px;
    width: auto;
    align-self: flex-start;
    /* Not auto — the bio above already flex-grows, so an auto margin here
       added a second, invisible push and made the gap above the button
       vary by card. Spacing is the bio's margin, full stop. */
    margin-top: 0;
    text-align: center;
    transition: background .2s ease;
}
.wait-grid--story .wait-card-readmore:hover { background: #003161; color: #fff; }
.wait-grid--story .wait-card-readmore::after { content: ""; margin: 0; }

/* Two-up rather than three at this size — the image needs the width. */
@media (min-width: 681px) and (max-width: 1240px) {
    .wait-grid--story { grid-template-columns: repeat(2, 1fr); }
}
