/* ==========================================================================
   Leadership: the people list, the commissions and committees list, and the
   pages of a leader and a committee (rebuild item 13). Ported by hand from
   TAL.Web Accelerator SCSS, 2026-11-23. Class names kept from the original.

   Source root: C:\repos\TAL.Web\Accelerator\wwwroot\assets\src\scss\
     components/modules/_people.scss     -> section 1
     components/modules/_committees.scss -> section 2

   Breakpoints inlined as px (bp-m 768px, bp-mw 960px, bp-l 1140px).

   Changes from legion.org (fixes, not redesigns):
   - Portraits are <img> elements with their own descriptions, cropped to
     the same boxes (legion.org: CSS backgrounds named "Last First").
   - The letters are links, not script buttons, with visible focus.
   - The people list sits in its section like any block (no negative top
     margin pulling it over the block before).
   ========================================================================== */


/* 1. components/modules/_people.scss */

.people-listing {
    position: relative;
    padding: 12px;
    background-color: var(--color-invert);
    border-radius: 6px;
    margin: 0 0 50px;
    box-shadow: 0 0 9px 3px rgba(0, 0, 0, .05);
}
@media (min-width: 960px) {
    .people-listing { padding: 30px; }
}

.people-listing__letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.people-listing__letter {
    text-transform: uppercase;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: var(--color-blue);
    padding: 2px 6px;
    text-decoration: none;
    border-radius: 4px;
}
.people-listing__letter:hover,
.people-listing__letter:active,
.people-listing__letter:focus,
.people-listing__letter.active {
    background-color: var(--color-primary);
    color: #fff;
}
.people-listing__letter:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

.people-listing__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .people-listing__list {
        margin-left: -20px;
        margin-right: -20px;
    }
}

.people-listing__item {
    width: 100%;
    padding: 20px 0;
    margin: 0;
}
.people-listing__item::before { content: none; }
@media (min-width: 768px) {
    .people-listing__item { padding: 20px; width: 50%; }
}
@media (min-width: 960px) {
    .people-listing__item { width: 33.33%; }
}
@media (min-width: 1140px) {
    .people-listing__item { width: 20%; }
}

.people-listing__item-inner {
    position: relative;
}
.people-listing__item-inner:hover,
.people-listing__item-inner:focus-within {
    filter: brightness(.9);
}

.people-listing__item-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 224 / 260;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    border-bottom: 4px solid var(--color-blue);
}

.people-listing__item-state {
    display: inline-block;
    background-color: var(--color-blue);
    color: #fff;
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 6px;
    margin-top: -4px;
}

.people-listing__item-name {
    font-size: 1.125rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: var(--color-blue);
    margin: 12px 0 2px;
}

.people-listing__item-position {
    font-weight: 800;
}

.people-listing__item-year {
    font-size: .875rem;
    font-weight: 700;
}

.people-listing__item-link {
    padding: 0;
    margin-top: 12px;
}
/* The whole card is the link's target, as on legion.org. */
.people-listing__item-link::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.people-listing__item-link:focus-visible {
    outline: none;
}
.people-listing__item-link:focus-visible::before {
    outline: 3px solid var(--color-secondary);
    outline-offset: 4px;
}

.people-listing .pagination {
    margin-top: 20px;
}
@media (min-width: 960px) {
    .people-listing .pagination { margin-top: 40px; }
}


/* 2. components/modules/_committees.scss */

.committee-listing {
    margin: 30px 0;
}
.committee-listing__heading {
    color: #fff;
    background-color: var(--color-primary);
    margin-bottom: 0;
    font-size: 1.25rem;
    text-transform: none;
    padding: 14px;
    border-radius: 6px 6px 0 0;
}
@media (min-width: 960px) {
    .committee-listing__heading {
        font-size: 1.5rem;
        padding: 14px 30px;
    }
}

.committee-listing__container {
    border: 1px solid var(--color-gray);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}
@media (min-width: 960px) {
    .committee-listing__container { display: flex; }
}

.committee-listing__left {
    background-color: var(--color-gray-lightest);
    padding: 14px 20px;
}
@media (min-width: 960px) {
    .committee-listing__left {
        width: 30%;
        max-width: 350px;
        padding: 30px;
    }
}

.committee-listing__inner-heading {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--color-base);
}

.committee-listing__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.committee-listing__item {
    display: flex;
    gap: 16px;
    margin: 0 0 30px;
    padding: 0;
}
.committee-listing__item::before,
.committee-details__item::before { content: none; }

.committee-listing__figure {
    width: 30%;
    max-width: 84px;
}

.committee-listing__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 84 / 100;
    object-fit: cover;
}

.committee-listing__item-content {
    flex: 1;
}

.committee-listing__name {
    font-size: 1rem;
    margin-bottom: 8px;
}
.committee-listing__name a {
    text-decoration: none;
}
.committee-listing__name a:hover,
.committee-listing__name a:active,
.committee-listing__name a:focus {
    text-decoration: underline;
}

.committee-listing__title {
    color: var(--color-base);
    margin-bottom: 4px;
    font-weight: 700;
}

.committee-listing__state {
    color: var(--color-gray-darkest);
    line-height: 1.2;
}

.committee-listing__right {
    padding: 14px 20px;
}
@media (min-width: 960px) {
    .committee-listing__right {
        padding: 30px;
        flex: 1;
        max-width: 800px;
    }
}

.committee-details__item {
    margin: 0 0 40px;
    padding: 0;
}
.committee-details__item .committee-listing__name a {
    color: var(--color-blue);
}
.interior-main.interior-main--details .committee-details__item .interior-figure {
    margin-top: 0;
}

.people-details__address {
    margin-bottom: 12px;
}
