* {
    box-sizing: border-box;
}
/* ── rotating accent — the brand's 6 accents ── */
:root {
    --acc: #3d5a3d;
    --acc-dark: #2c4229;
    --acc-fg: #f5f0e8;
    --bg: #f5f0e8;
    --surface: #fff;
    --surface-2: #faf7f2;
    --ink: #1a1a1a;
    --muted: #888;
    --border: rgba(0, 0, 0, 0.1);
    --border-soft: rgba(0, 0, 0, 0.05);
    --cream-tan: #e0d0b0;
    --cream-dark: #c8b896;
    --slate-dark: #3a4848;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
html[data-accent='forest'] {
    --acc: #3d5a3d;
    --acc-dark: #2c4229;
    --acc-fg: #f5f0e8;
}
html[data-accent='coral'] {
    --acc: #d97757;
    --acc-dark: #b85a3d;
    --acc-fg: #fff;
}
html[data-accent='maroon'] {
    --acc: #944347;
    --acc-dark: #7a3538;
    --acc-fg: #fff;
}
html[data-accent='olive'] {
    --acc: #8f7e32;
    --acc-dark: #6b5e1f;
    --acc-fg: #fff;
}
html[data-accent='slate'] {
    --acc: #506060;
    --acc-dark: #3a4848;
    --acc-fg: #fff;
}
html[data-accent='gold'] {
    --acc: #a08830;
    --acc-dark: #8a7628;
    --acc-fg: #1a1a1a;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin: 0;
}
.wrap {
    max-width: 1400px;
    margin: 0 auto;
}
.eyebrow {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--acc-dark);
    font-weight: 700;
    border-left: 2px solid var(--acc);
    padding-left: 12px;
}
.eyebrow.gold {
    color: var(--acc);
}
em.acc {
    color: var(--acc-dark);
    font-style: italic;
    font-weight: 500;
}

/* ── utility + nav ── */
.utility {
    background: var(--ink);
    color: var(--bg);
    padding: 8px 32px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.utility .since {
    color: var(--acc);
}
.utility .contact a {
    color: var(--cream-dark);
    margin-left: 16px;
}
/* ── nav ── moved to public.css (.site-nav / .sn-*) — shared chrome ── */
/* Right-aligned utility bar under the shared nav. Collapses to zero height
   when the me-box is hidden (the common case for public visitors). */
.nav-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
    padding: 0 32px;
}
.me-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 4px 12px 4px 4px;
    border: 0.5px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
}
.me-box:hover {
    border-color: var(--acc);
}
.me-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--slate-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.me-avatar svg,
.me-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ── super-admin banner ── */
.sa-banner {
    display: none;
    background: var(--acc);
    color: var(--acc-fg);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 7px 16px;
}
body.can-edit .sa-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sa-add-btn {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 5px 13px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
}
.sa-add-btn:hover {
    background: #000;
}

/* ── hero — editorial split ── */
.hero {
    border-bottom: 0.5px solid var(--border);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    padding: clamp(44px, 5vw, 80px) 32px;
}
.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.96;
    margin: 18px 0 20px;
}
.hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--acc-dark);
}
.hero p.lead {
    font-size: 1.06rem;
    line-height: 1.7;
    color: #444;
    max-width: 540px;
    font-weight: 300;
    margin: 0;
}
.stat-ribbon {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.stat-ribbon .s {
    border-left: 1px solid var(--border);
    padding-left: 14px;
}
.stat-ribbon .s b {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 500;
    display: block;
    line-height: 1;
}
.stat-ribbon .s span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--acc-dark);
    font-weight: 600;
}
.hero-art {
    position: relative;
}
.hero-art .frame {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 2px;
    border: 0.5px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    position: relative;
    background: #e0d4ba;
}
.hero-art .frame svg,
.hero-art .frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.hero-art .frame img {
    object-fit: cover;
}
.hero-art .corner {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: var(--acc);
    z-index: -1;
}
.hero-art .cap {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(26, 26, 26, 0.92);
    color: var(--cream-tan);
    padding: 7px 13px;
    border-radius: 2px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.82rem;
}
@media (max-width: 840px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

/* ── stat band ── */
.stat-band {
    background: var(--bg);
    border-bottom: 0.5px solid var(--border);
}
.stat-band .grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 54px 32px;
}
.stat-band .c {
    padding: 4px 22px;
    border-left: 0.5px solid var(--border);
}
.stat-band .c:first-child {
    border-left: none;
}
.stat-band .c b {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
    font-weight: 500;
    display: block;
    line-height: 1;
    letter-spacing: -0.015em;
}
.stat-band .c span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--acc-dark);
    font-weight: 600;
    display: block;
    margin-top: 8px;
}
@media (max-width: 820px) {
    .stat-band .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 0;
    }
    .stat-band .c {
        border-left: none;
    }
}

/* ── section frame ── */
section.block {
    padding: clamp(64px, 8vw, 104px) 32px;
}
.sec-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 46px;
}
.sec-head h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.06;
}
.sec-head h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--acc-dark);
}
@media (max-width: 760px) {
    .sec-head {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ── member cards ── */
.grid-lead {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.grid-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
@media (max-width: 1000px) {
    .grid-lead {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-team {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 680px) {
    .grid-lead,
    .grid-team {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 460px) {
    .grid-lead,
    .grid-team {
        grid-template-columns: 1fr;
    }
}

/* min-width/height:0 is critical — without it, a long unbreakable
       title (or wide photo) can blow past the 1fr grid column, making
       cards in the same row different widths. */
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    min-height: 0;
}
.card .photo {
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
    border: 0.5px solid var(--border);
    position: relative;
    background: var(--slate-dark);
}
.card.lead .photo {
    aspect-ratio: 1/1;
}
.card.team .photo {
    aspect-ratio: 1/1;
}
.card .photo svg,
.card .photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.card .photo img {
    object-fit: cover;
    object-position: center 22%;
}
.card .nm {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card.lead .nm {
    font-size: 1.25rem;
    margin-top: 12px;
}
.card.team .nm {
    font-size: 1.2rem;
    margin-top: 12px;
}
.card .role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--acc-dark);
    font-weight: 600;
    margin-top: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card .bio {
    font-size: 0.84rem;
    line-height: 1.62;
    color: #555;
    font-weight: 300;
    margin: 13px 0;
}
.card .foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 11px;
    border-top: 0.5px solid var(--border-soft);
}
.card .foot .grp {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.82rem;
    color: var(--muted);
}
.card .contact {
    display: flex;
    gap: 10px;
}
.card .contact a {
    color: #4a4a4a;
}
.card .contact a:hover {
    color: var(--acc);
}
.card .contact svg {
    width: 15px;
    height: 15px;
    display: block;
}
.badge {
    position: absolute;
    top: 8px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 3;
}
.badge.hidden {
    left: 8px;
    background: rgba(26, 26, 26, 0.86);
    color: var(--cream-tan);
}
.badge.featured {
    right: 8px;
    background: var(--acc);
    color: var(--acc-fg);
}
.card.is-hidden {
    opacity: 0.5;
}
.card.mine .photo {
    box-shadow: 0 0 0 2px var(--acc);
}
.card.editable {
    cursor: pointer;
}
.card.editable .photo::after {
    content: 'Click to edit';
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(160, 136, 48, 0.95);
    background: var(--acc);
    color: var(--acc-fg);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 4;
    pointer-events: none;
}
.card.editable:hover .photo::after {
    opacity: 1;
}
.card[draggable='true'] .photo {
    cursor: grab;
}
.card.dragging {
    opacity: 0.4;
}
.card.drag-over .photo {
    outline: 2px solid var(--acc);
    outline-offset: 2px;
}
.edit-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 26, 26, 0.85);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4;
}
.card.editable .edit-btn {
    display: flex;
}
.edit-btn:hover {
    background: var(--acc);
    color: var(--acc-fg);
}
.move-btns {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 4;
}
body.can-edit .card .move-btns {
    display: flex;
}
.move-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 26, 26, 0.8);
    color: #fff;
    font-size: 0.55rem;
    cursor: pointer;
}
.move-btn:hover {
    background: var(--acc);
    color: var(--acc-fg);
}
.img-edit {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    display: none;
}
body.can-edit .img-edit {
    display: block;
}
.img-edit-btn {
    background: rgba(26, 26, 26, 0.86);
    color: #fff;
    border: 0.5px solid var(--acc);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
}
.img-edit-btn:hover {
    background: var(--acc);
    color: var(--acc-fg);
}

/* "+ Add team member" inline card — bottom of each grid for super-admins */
.add-card {
    display: none;
    aspect-ratio: 1/1;
    align-self: start;
    border: 2px dashed var(--border);
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    transition:
        border-color 0.18s,
        color 0.18s,
        background 0.18s;
}
.add-card .plus {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 500;
}
.add-card .label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
}
.add-card:hover {
    border-color: var(--acc);
    color: var(--acc-dark);
    background: rgba(160, 136, 48, 0.05);
}
body.can-edit .add-card {
    display: flex;
}

/* ── where we live ── */
.hoods {
    background: var(--slate-dark);
    color: var(--cream-tan);
}
.hoods .sec-head h2 {
    color: var(--cream-tan);
}
.hood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(232, 220, 192, 0.14);
    border: 0.5px solid rgba(232, 220, 192, 0.14);
}
.hood {
    padding: 24px 20px 20px;
    background: var(--slate-dark);
    min-height: 124px;
}
.hood:hover {
    background: #42504f;
}
.hood .top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.hood .nm {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--cream-tan);
    line-height: 1.05;
}
.hood .n {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--acc);
    line-height: 1;
}
.hood .lbl {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--acc);
    font-weight: 600;
    margin-top: 16px;
}
.hood .note {
    font-size: 0.72rem;
    color: var(--cream-dark);
    margin-top: 5px;
    font-family: var(--font-heading);
    font-style: italic;
}
@media (max-width: 900px) {
    .hood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── hiring CTA ── */
.hiring {
    background: var(--ink);
    color: var(--cream-tan);
    padding: 88px 32px;
}
.hiring .inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}
.hiring h2 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 14px 0 16px;
    color: var(--cream-tan);
}
.hiring h2 em {
    color: var(--acc);
    font-style: italic;
}
.hiring p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--cream-dark);
    max-width: 480px;
    font-weight: 300;
    margin: 0;
}
.hiring .btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-acc {
    padding: 17px 28px;
    background: var(--acc);
    color: var(--acc-fg);
    font-size: 0.74rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 2px;
    text-align: center;
}
.btn-line {
    padding: 17px 28px;
    background: transparent;
    color: var(--cream-tan);
    border: 0.5px solid rgba(232, 220, 192, 0.4);
    font-size: 0.74rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
    text-align: center;
}
@media (max-width: 760px) {
    .hiring .inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* ── footer ── moved to public.css (.site-footer / .sf-*) — shared chrome ── */

.empty {
    text-align: center;
    color: var(--muted);
    padding: 3rem 1rem;
    font-size: 0.92rem;
}

/* ── palette picker ── */
.palette-picker {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 999px;
    padding: 6px 8px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}
.palette-picker .lbl {
    font-size: 0.6rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.palette-picker .sw {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}
.palette-picker .sw:hover {
    transform: scale(1.15);
}
.palette-picker .sw.on {
    border-color: var(--ink);
}

/* ── detail popup ── */
.detail {
    max-width: 680px;
    padding: 0;
    overflow: hidden;
}
.detail-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
}
.detail-photo {
    position: relative;
    background: var(--slate-dark);
    min-height: 300px;
}
.detail-photo svg,
.detail-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.detail-info {
    padding: 2rem 2rem 1.6rem;
    display: flex;
    flex-direction: column;
}
.detail-info h3 {
    font-size: 2rem;
    line-height: 1.05;
}
.detail-info .role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--acc-dark);
    font-weight: 700;
    margin-top: 8px;
}
.detail-info .grp {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--muted);
    margin-top: 4px;
}
.detail-info .bio {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
    font-weight: 300;
    margin: 16px 0;
}
.detail-info .contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-top: 14px;
    border-top: 0.5px solid var(--border-soft);
}
.detail-info .contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #4a4a4a;
}
.detail-info .contact a:hover {
    color: var(--acc);
}
.detail-info .contact svg {
    width: 15px;
    height: 15px;
}
.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 18px;
}
@media (max-width: 600px) {
    .detail-inner {
        grid-template-columns: 1fr;
    }
    .detail-photo {
        aspect-ratio: 1/1;
        min-height: 0;
    }
}

/* ── edit modal ── */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.6);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 300;
    overflow-y: auto;
    padding: 3rem 1rem;
}
.modal-bg.open {
    display: flex;
}
.modal {
    background: #fff;
    border-radius: 3px;
    max-width: 560px;
    width: 100%;
    padding: 1.75rem;
}
.modal h3 {
    font-size: 1.7rem;
    margin-bottom: 0.2rem;
}
.modal .sub {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
}
.photo-edit {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.85rem;
}
.pe-prev {
    width: 76px;
    height: 76px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--slate-dark);
    flex-shrink: 0;
}
.pe-prev svg,
.pe-prev img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.pe-upload {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
    padding: 8px 16px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
}
.pe-upload:hover {
    background: var(--acc);
    color: var(--acc-fg);
}
.pe-status {
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 0.35rem;
}
.fld {
    margin-bottom: 0.85rem;
}
.fld label {
    display: block;
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.fld input,
.fld textarea,
.fld select {
    width: 100%;
    padding: 9px 11px;
    border: 0.5px solid var(--border);
    background: var(--surface-2);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.86rem;
    border-radius: 2px;
}
.fld textarea {
    min-height: 84px;
    resize: vertical;
}
.fld input:focus,
.fld textarea:focus,
.fld select:focus {
    outline: none;
    border-color: var(--acc);
}
.fld-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.fld-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.fld-check input {
    width: auto;
}
.fld-check label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
}
.modal.self-mode .super-only {
    display: none;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.1rem;
}
.btn-gold {
    background: var(--acc);
    color: var(--acc-fg);
    border: none;
    padding: 11px 22px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
}
.btn-gold:hover {
    background: var(--acc-dark);
}
.btn-ghost {
    background: none;
    border: 0.5px solid var(--border);
    color: #4a4a4a;
    padding: 11px 22px;
    font-size: 0.8rem;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
}
.modal-err {
    color: #b04a4a;
    font-size: 0.82rem;
    margin-top: 0.5rem;
    display: none;
}
/* Pick-mode card states (active only when ?pick=1) */
.card.pickable {
    cursor: default;
    position: relative;
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        border-color 0.15s;
}
.card.pickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.card.picked {
    border: 2px solid #a08830;
    box-shadow:
        0 0 0 4px rgba(160, 136, 48, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.12);
}
.card.picked .pick-toggle-btn {
    background: #a08830 !important;
}

/* Agent picker chrome — all three containers default hidden; our-team.1.js
   flips display (banner→block, bar→flex, result→flex) when activated. */
.pick-banner {
    display: none;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    padding: 18px 24px;
    text-align: center;
    border-bottom: 2px solid #a08830;
}
.pick-banner-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.pick-banner-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin: 0 auto;
}
#pick-counter {
    color: #a08830;
    font-weight: 600;
    margin-left: 4px;
}
.pick-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom)) 24px;
    z-index: 1000;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
#pick-names {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    min-width: 240px;
}
#pick-submit-btn {
    padding: 12px 26px;
    background: #a08830;
    color: #fff;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
#pick-result {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
#pick-result-inner {
    background: #fff;
    padding: 32px 36px;
    border-radius: 4px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

@media (max-width: 760px) {
    #pick-bar {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
    }
    #pick-bar button {
        min-height: 44px;
        width: 100%;
    }
    #pick-names {
        width: 100%;
        font-size: 0.78rem;
    }
}

/* ── Externalized one-off styling (was inline style= attrs) ───────────── */
.hood-title {
    color: var(--cream-tan);
}
.hood-title em {
    color: var(--acc);
}
.hood-note {
    text-align: center;
    margin-top: 24px;
    font-size: 0.74rem;
    color: var(--cream-dark);
    font-family: var(--font-heading);
    font-style: italic;
}
.req-star {
    color: #b04a4a;
}
.fld.fld-flex {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ── team search/filter ── */
.team-search {
    margin: 0 0 1.75rem;
    max-width: 420px;
}
.team-search input[type='search'] {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s ease;
}
.team-search input[type='search']:focus {
    border-color: var(--acc, #a08830);
}
.team-search input[type='search']::placeholder {
    color: var(--muted);
}
.team-search-empty {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.filtered-out {
    display: none !important;
}
