@charset "utf-8";

/* ------------------------------------------------------------------ */
/* people list — card grid                                             */
/* ------------------------------------------------------------------ */

.people-board {
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px;
    box-sizing: border-box;
    font-family: "Noto Sans KR", sans-serif;
    color: #1f2937;
    background: #fff;
}

.people-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 28px;
}

.people-count {
    font-size: 14px;
    font-weight: 700;
    color: #173a66;
    line-height: 1.4;
}

.people-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.people-checkall {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.people-checkall label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* 기존 basic/gallery 게시판 아이콘 버튼 톤 재사용 */
.people-board .btn_bo_user {
    float: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.people-board .btn_bo_user > li {
    float: none;
    position: relative;
    width: auto;
    margin: 0;
    background: transparent;
}

.people-board .btn_bo_user > li > a.btn,
.people-board .btn_bo_user > li > button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    box-shadow: none;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.people-board .btn_bo_user > li > a.btn:hover,
.people-board .btn_bo_user > li > button.btn:hover {
    background: #173a66;
    border-color: #173a66;
    color: #fff;
}

.people-board .btn_bo_user > li > a.btn_admin {
    color: #c2410c;
}

.people-board .btn_bo_user > li > a.btn_admin:hover {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.people-board .more_opt {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border: 1px solid #b8bfc4;
    z-index: 999;
    margin: 0;
    padding: 0;
    list-style: none;
}

.people-board .more_opt:before {
    content: "";
    position: absolute;
    top: -8px;
    right: 13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #b8bfc4 transparent;
}

.people-board .more_opt:after {
    content: "";
    position: absolute;
    top: -6px;
    right: 13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #fff transparent;
}

.people-board .more_opt li {
    border-bottom: 1px solid #f1f1f1;
    padding: 10px;
    float: inherit;
    width: 90px;
    margin: 0;
    color: #6b757c;
    text-align: left;
}

.people-board .more_opt li:last-child {
    border-bottom: 0;
}

.people-board .more_opt li button,
.people-board .more_opt li a {
    width: 100%;
    border: 0;
    background: #fff;
    color: #6b757c;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    padding: 0;
}

.people-board .more_opt li:hover a,
.people-board .more_opt li:hover button {
    color: #000;
}

.people-board .more_opt li i {
    float: right;
    line-height: 20px;
}

/* card grid — PC 4열 */
.people-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 32px;
    padding: 8px 4px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.people-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 18px 16px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: visible;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(23, 58, 102, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.people-board--linkable .people-card:hover {
    border-color: #9eb2cb;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 58, 102, 0.12);
}

.people-card-select {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
}

.people-card-photo-wrap {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    margin: 0;
}

.people-card-photo {
    display: block;
    width: min(100%, 180px);
    max-width: 180px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid #dce3ec;
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
}

.people-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.people-card-photo--static {
    cursor: default;
}

.people-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    color: #94a3b8;
    background: #eef2f7;
    font-size: 32px;
}

.people-card-info {
    width: 100%;
    margin-top: 16px;
    border-top: 1px solid #e5eaf1;
    border-bottom: 1px solid #e5eaf1;
    box-sizing: border-box;
}

.people-card-info-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    min-height: 42px;
    border-bottom: 1px solid #edf1f5;
    box-sizing: border-box;
}

.people-card-info-row:last-child {
    border-bottom: 0;
}

.people-card-info-label {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 9px 10px;
    background: #f5f7fa;
    color: #526174;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
}

.people-card-info-value {
    min-width: 0;
    padding: 9px 12px;
    color: #26384d;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.people-card-info-name .people-card-info-value {
    color: #163b69;
    font-size: 17px;
    font-weight: 700;
}

.people-card-name-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.people-card-name-link:hover,
.people-card-name-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.people-card-name-static {
    color: inherit;
    font-weight: inherit;
    cursor: default;
}

.people-empty {
    margin: 0;
    padding: 48px 12px;
    text-align: center;
    color: #94a3b8;
}

.people-bottom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ------------------------------------------------------------------ */
/* view / write (기존 유지)                                            */
/* ------------------------------------------------------------------ */

.goahead-people-view,
.goahead-people-write {
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px;
    box-sizing: border-box;
    font-family: "Noto Sans KR", sans-serif;
    color: #1f2937;
}

.goahead-people-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 38px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #dbe3ec;
    border-radius: 4px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.goahead-people-btn:hover,
.goahead-people-btn:focus-visible {
    border-color: #173a66;
    background: #173a66;
    color: #fff;
    outline: none;
}

.goahead-people-btn--primary {
    border-color: #173a66;
    background: #173a66;
    color: #fff;
}

.goahead-people-btn--primary:hover,
.goahead-people-btn--primary:focus-visible {
    border-color: #0f2d52;
    background: #0f2d52;
    color: #fff;
}

.goahead-people-btn--danger {
    color: #dc2626;
}

.goahead-people-btn--danger:hover,
.goahead-people-btn--danger:focus-visible {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.goahead-people-btn--light {
    background: #f8fafc;
}

.goahead-people-view-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.goahead-people-profile {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 8px 0 24px;
    border-top: 1px solid #d7dee8;
    border-bottom: 1px solid #e8edf3;
    box-sizing: border-box;
}

.goahead-people-profile__photo {
    flex: 0 0 180px;
    width: 180px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid #d7dee8;
    background: #eef2f7;
    box-sizing: border-box;
}

.goahead-people-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.goahead-people-profile__photo .goahead-people-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 240px;
    color: #94a3b8;
    background: #eef2f7;
    font-size: 42px;
}

.goahead-people-profile__info {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 8px;
}

.goahead-people-profile__name {
    margin: 0 0 18px;
    color: #173a66;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.goahead-people-profile__row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px 14px;
    margin: 0 0 12px;
    align-items: start;
}

.goahead-people-profile__row dt {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.goahead-people-profile__row dd {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.goahead-people-write-guide {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
}

.goahead-people-write-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-sizing: border-box;
}

.goahead-people-write-table col.goahead-people-write-th {
    width: 140px;
}

.goahead-people-write-table th {
    width: 140px;
    padding: 14px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    background: #f8fafc;
    color: #173a66;
    font-weight: 700;
    border-bottom: 1px solid #edf2f7;
    box-sizing: border-box;
}

.goahead-people-write-table td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    box-sizing: border-box;
}

.goahead-people-required {
    margin-left: 4px;
    color: #b8924c;
    font-size: 12px;
}

.goahead-people-input {
    width: 100%;
    max-width: 520px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d0d3db;
    border-radius: 4px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    box-sizing: border-box;
}

.goahead-people-input--order {
    max-width: 140px;
}

.goahead-people-file {
    display: block;
    max-width: 100%;
    font-size: 14px;
}

.goahead-people-help {
    display: block;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.goahead-people-file-del {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.goahead-people-write-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ------------------------------------------------------------------ */
/* responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1199px) {
    .people-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 28px;
    }

    .people-card-photo {
        width: min(100%, 150px);
        max-width: 150px;
    }
}

@media (max-width: 1023px) {
    .people-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 26px;
        padding: 8px 4px 16px;
    }

    .people-card-photo {
        width: min(100%, 170px);
        max-width: 170px;
    }
}

@media (max-width: 767px) {
    .people-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .people-card-grid {
        column-gap: 14px;
        row-gap: 18px;
        padding: 6px 2px 14px;
    }

    .people-card {
        padding: 14px 12px 12px;
        border-radius: 12px;
    }

    .people-card-photo {
        width: min(100%, 140px);
        max-width: 140px;
    }

    .people-card-info {
        margin-top: 12px;
    }

    .people-card-info-row {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: 38px;
    }

    .people-card-info-label {
        padding: 8px;
        font-size: 12px;
    }

    .people-card-info-value {
        padding: 8px 10px;
        font-size: 13px;
    }

    .people-card-info-name .people-card-info-value {
        font-size: 16px;
    }

    .people-card-placeholder {
        font-size: 28px;
    }

    .goahead-people-profile {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }

    .goahead-people-profile__photo {
        flex-basis: 160px;
        width: 160px;
        max-width: 48%;
    }

    .goahead-people-profile__name {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .goahead-people-profile__row {
        grid-template-columns: 56px 1fr;
    }

    .goahead-people-write-table,
    .goahead-people-write-table tbody,
    .goahead-people-write-table tr,
    .goahead-people-write-table th,
    .goahead-people-write-table td {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .goahead-people-write-table colgroup {
        display: none;
    }

    .goahead-people-write-table th {
        padding: 12px 12px 4px;
        border-bottom: 0;
        white-space: normal;
    }

    .goahead-people-write-table td {
        padding: 0 12px 12px;
    }

    .goahead-people-input {
        max-width: none;
    }

    .goahead-people-view-actions,
    .goahead-people-write-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .people-card-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 20px;
        padding: 6px 0 14px;
    }

    .people-card {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        padding: 18px 14px 16px;
    }

    .people-card-photo {
        width: min(100%, 160px);
        max-width: 160px;
    }
}

@supports not (aspect-ratio: 3 / 4) {
    .people-card-photo,
    .goahead-people-profile__photo {
        height: 0;
        padding-top: 133.333%;
        position: relative;
    }

    .people-card-photo img,
    .goahead-people-profile__photo img,
    .people-card-photo .people-card-placeholder,
    .goahead-people-profile__photo .goahead-people-photo-empty {
        position: absolute;
        inset: 0;
        min-height: 0;
    }
}
