:root {
    color: #222;
    font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
    background: #f7f7f7;
}

* { box-sizing: border-box; }
body { margin: 0; letter-spacing: -0.5px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; }

.shell {
    width: min(100% - 32px, 760px);
    margin-inline: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.nav {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #0f9d58;
    font-size: 1.35rem;
    font-weight: 800;
}
/* 상단 로고: 메인 사이트와 같은 높이 (PC 34px, 모바일 28px) */
.brand img { display: block; height: 34px; width: auto; }
@media (max-width: 640px) {
    .brand img { height: 28px; }
}

.nav-spacer { flex: 1; }
#notice-link, #board-link, #terms-link, #info-link, #login-link { font-weight: 650; white-space: nowrap; }
.nav-text {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font-weight: 650;
    white-space: nowrap;
}
.balance {
    color: #0f9d58;
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
}

main.shell { padding-block: 32px 56px; min-height: calc(100vh - 128px); }
.site-footer {
    padding: 28px 20px 32px;
    text-align: center;
    color: #9a9a9a;
    font-size: .8rem;
    line-height: 1.55;
    background: #282a29;
}

.site-footer p { margin: 0 0 6px; }
.site-footer p:last-child { margin-bottom: 0; }
.footer-links { margin: 10px 0 !important; }
.footer-links a {
    color: #eee;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-body { margin-top: 18px; }
.privacy-body p { margin: 0; color: #444; line-height: 1.65; }
.privacy-body a { color: #0f9d58; font-weight: 700; }

.panel, .event-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 18px rgb(0 0 0 / 4%);
}

.panel + .panel, .event-card + .event-card { margin-top: 18px; }
.narrow { max-width: 560px; margin-inline: auto; }
h1, h2 { margin-top: 0; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; }
.muted { color: #707070; }
/* 항목 이름 옆의 "(선택)" 표시. 라벨이 굵어서 같이 굵으면 필수처럼 보인다. */
.optional { font-weight: 400; color: #707070; font-size: 0.86em; }
/* label 이 display:grid 라서 글자와 span 이 각각 한 줄을 차지한다. 한 줄로 붙인다. */
.label-text { display: flex; align-items: baseline; gap: 5px; }
/* 입력칸 바로 아래 붙는 안내 한 줄. stack 의 gap 이 그대로 붙으면 멀어 보인다. */
.field-hint { margin: -6px 0 0; font-size: 0.86rem; line-height: 1.5; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: end; }
.row > label { flex: 1; }

label { display: grid; gap: 7px; font-weight: 650; }
input, textarea {
    width: 100%;
    /* label 안에 있어서 라벨 굵기(650)를 물려받는다. 입력 글자·안내 글자는 보통 굵기로 */
    font-weight: 400;
    min-height: 46px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

textarea { min-height: 160px; resize: vertical; }

input:focus, textarea:focus { outline: 2px solid rgb(15 157 88 / 28%); border-color: #0f9d58; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; min-height: auto; }

.agree-box {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.agree-all {
    padding-bottom: 8px;
    border-bottom: 1px solid #ececec;
    font-weight: 800;
}

.agree-row { width: 100%; }
button.agree-view {
    min-height: auto;
    padding: 0;
    background: none;
    color: inherit;
    font-weight: 500;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.agree-dialog {
    width: min(92vw, 520px);
    max-height: 80vh;
    border: 0;
    border-radius: 16px;
    padding: 22px;
}
.agree-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.agree-dialog h2 { margin: 0; font-size: 1.15rem; }
.agree-dialog-body {
    max-height: 52vh;
    overflow: auto;
    display: grid;
    gap: 12px;
    margin: 14px 0 18px;
    color: #444;
    font-size: .92rem;
    line-height: 1.65;
}
.agree-dialog-body p { margin: 0; }
.agree-dialog-body a { color: #0f9d58; font-weight: 700; }
.agree-dialog button { width: 100%; }

button, .button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    background: #0f9d58;
    color: #fff;
    font-weight: 750;
    cursor: pointer;
    text-align: center;
}

button.secondary, .button.secondary { background: #fff3ec; color: #c94e0b; }
button.danger { background: #b42318; }
button:disabled { opacity: .55; cursor: wait; }

.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.socials .button { background: #f1f1f1; color: #222; }
.links { display: flex; flex-wrap: wrap; gap: 14px; color: #555; font-size: .92rem; }

.banner {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: max-content;
    max-width: calc(100vw - 32px);
    margin-bottom: 0;
    border-radius: 12px;
    padding: 14px 18px;
    background: #eaf8ef;
    color: #126b36;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
    text-align: center;
    word-break: keep-all;
}

.banner.error { background: #fff0ee; color: #a4281c; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.event-card h2 { margin-bottom: 8px; }
.event-meta { color: #777; font-size: .9rem; }
.mission, .product, .ledger-item, .profile-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.mission:last-child, .product:last-child, .ledger-item:last-child, .profile-row:last-child { border-bottom: 0; }
.points { color: #0f9d58; font-weight: 800; }
.product-row { display: flex; gap: 8px; margin-bottom: 8px; }
.product-row input { flex: 1; min-width: 0; }

@media (max-width: 540px) {
    .row, .socials { grid-template-columns: 1fr; display: grid; }
    .panel { padding: 20px; }

}

body:has(.login-screen) {
    background:
        radial-gradient(ellipse 80% 46% at 8% -8%, #c6ecd9 0%, transparent 58%),
        radial-gradient(ellipse 55% 40% at 100% 108%, #d6f2e4 0%, transparent 52%),
        #f1faf5;
}

body:has(.login-screen) main.shell {
    width: min(100% - 32px, 440px);
    min-height: calc(100vh - 128px);
    display: grid;
    align-content: center;
    padding-block: 28px 48px;
}

.login-card {
    padding: 36px 32px 28px;
    border: 0;
    box-shadow: 0 22px 50px rgb(15 157 88 / 14%);
}

.login-card h1 { margin: 0 0 22px; font-size: 1.9rem; }
.login-tagline {
    margin: 0 0 10px;
    color: #0f9d58;
    font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.5;
    transform: none;
}

.login-card .stack { gap: 16px; }
.login-card button[type="submit"] {
    min-height: 50px;
    font-size: 1.05rem;
    margin-top: 4px;
}

.login-help {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.login-help .button:first-child { grid-column: 1 / -1; }

.login-back {
    margin: 16px 0 0;
    text-align: center;
}

.login-back a {
    color: #777;
    font-weight: 650;
}

.found-id {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f1faf5;
    color: #222;
    font-weight: 700;
    word-break: break-all;
}

.found-id strong {
    display: inline;
    margin-left: 8px;
    color: #0f9d58;
    font-size: 1.15rem;
    font-weight: 800;
}

.login-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 22px 0 14px;
    color: #9a9a9a;
    font-size: .82rem;
    font-weight: 700;
}

.login-split::before,
.login-split::after {
    content: "";
    height: 1px;
    background: #ececec;
}

.social-login { display: grid; gap: 10px; }
.panel > .login-split { margin-top: 8px; }
.panel > .social-login { margin-bottom: 22px; }

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 750;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-btn--kakao { background: #fee500; color: #191919; }
.social-btn--kakao:hover { filter: brightness(.97); }
.social-btn--naver { background: #03c75a; color: #fff; }
.social-btn--naver:hover { filter: brightness(.96); }
.social-btn--google {
    background: #fff;
    color: #1f1f1f;
    border-color: #dadce0;
}

.social-btn--google:hover { background: #f8f9fa; }
/* 애플은 검정 바탕에 흰 로고가 애플 지침(Sign in with Apple)의 기본형이다. */
.social-btn--apple { background: #000; color: #fff; border-color: #000; }
.social-btn--apple:hover { filter: brightness(1.25); }

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.board-table th,
.board-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: .95rem;
}
.board-table thead th {
    border-bottom: 2px solid #222;
    font-size: .82rem;
    color: #555;
}
.board-num, .board-date {
    width: 1%;
    white-space: nowrap;
    color: #777;
    font-weight: 500;
    text-align: center;
}
.board-title {
    color: #222;
    font-weight: 700;
    text-decoration: none;
}
.board-title:hover { color: #0f9d58; text-decoration: underline; }
.board-empty {
    text-align: center;
    color: #777;
    padding: 36px 10px !important;
}
.board-table tbody tr:hover { background: #fffaf6; }
.notice-list { display: grid; gap: 10px; }
.notice-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-weight: 650;
}
.notice-item:last-child { border-bottom: 0; }
.notice-item span { color: #777; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.notice-item button { min-height: 36px; padding: 8px 12px; }
.notice-item div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.notice-thumb {
    width: 88px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1faf5;
    flex-shrink: 0;
}
.notice-hero {
    display: block;
    width: 100%;
    border-radius: 14px;
    margin: 8px 0 18px;
    background: #f1faf5;
}
/* 이미지가 없을 때(hidden) 빈 자리가 남지 않게 */
.notice-hero[hidden] { display: none; }
.notice-body {
    white-space: pre-wrap;
    line-height: 1.7;
    color: #333;
}
.notice-body--html { white-space: normal; word-break: keep-all; }
.notice-body--html a { word-break: break-all; }
.notice-body--html h3 {
    margin: 1.6rem 0 .5rem;
    font-size: 1.05rem;
    color: #0f9d58;
}
.notice-body--html p,
.notice-body--html li { margin: 0 0 10px; line-height: 1.75; }
.notice-body--html ol,
.notice-body--html ul { margin: 0 0 12px; padding-left: 1.4em; }
.notice-body--html ul.sub { list-style: none; padding-left: .5rem; }

@media (max-width: 540px) {
    .login-card { padding: 28px 20px 22px; }
}

/* ---------- 관리자 글쓰기 화면 (admin/notices.php, admin/info.php 공통) ---------- */
.editor-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.editor-head h1 { margin: 6px 0 0; font-size: 1.6rem; }
.editor-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
}
.editor-head a.editor-link {
    flex-shrink: 0;
    padding: 9px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    background: #fff;
    color: #444;
    font-size: .9rem;
    font-weight: 650;
}
.editor-head a.editor-link:hover { border-color: #0f9d58; color: #0f9d58; }

.editor-card { padding: 0; overflow: hidden; }
.editor-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 24px;
    background: #fff8e6;
    color: #8a5a00;
    font-size: .9rem;
    font-weight: 650;
}
.editor-mode[hidden] { display: none; }
.editor-mode button {
    min-height: 0;
    padding: 6px 12px;
    background: #fff;
    color: #8a5a00;
    border: 1px solid #f0d9a0;
    font-size: .85rem;
}
.editor-card input[name="title"] {
    min-height: 64px;
    padding: 18px 24px;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    font-size: 1.25rem;
    font-weight: 700;
}
.editor-card textarea {
    min-height: 320px;
    padding: 20px 24px;
    border: 0;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.75;
    resize: vertical;
}
.editor-card input:focus,
.editor-card textarea:focus { outline: 0; background: #fcfffd; }
.editor-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.editor-foot p { margin: 0; color: #888; font-size: .82rem; line-height: 1.5; }
.editor-foot button { flex-shrink: 0; min-width: 110px; }

.post-list-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
}
.post-list-head h2 { margin: 0; }
.post-list-head span { color: #0f9d58; font-weight: 800; }
.post-list { display: grid; }
.post-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.post-row:last-child { border-bottom: 0; }
.post-row.is-editing { background: #fff8e6; margin-inline: -24px; padding-inline: 24px; }
.post-row a {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 3px;
}
.post-row a strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}
.post-row a:hover strong { color: #0f9d58; }
.post-row a small { color: #999; font-size: .82rem; }
.post-actions { display: flex; gap: 6px; flex-shrink: 0; }
.post-actions button {
    min-height: 0;
    padding: 7px 12px;
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #444;
    font-size: .85rem;
    font-weight: 650;
}
.post-actions button:hover { border-color: #0f9d58; color: #0f9d58; }
.post-actions button.is-danger:hover { border-color: #b42318; color: #b42318; }
.post-empty { padding: 28px 0 12px; color: #999; text-align: center; }

@media (max-width: 540px) {
    .editor-head h1 { font-size: 1.35rem; }
    .editor-mode, .editor-card input[name="title"], .editor-card textarea, .editor-foot { padding-inline: 18px; }
    .editor-card textarea { min-height: 240px; }
    .editor-foot { flex-direction: column; align-items: stretch; }
    .editor-foot button { width: 100%; }
    .post-row.is-editing { margin-inline: -20px; padding-inline: 20px; }
}

/* ---------- 게시판 목록·글 보기 (notices.php, notice-view.php, info.php, info-view.php 공통) ---------- */
.bd-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 20px;
}
.bd-eyebrow {
    margin: 0 0 6px;
    color: #0f9d58;
    font-size: .88rem;
    font-weight: 700;
}
.bd-head h1 { margin: 0; font-size: 1.85rem; }
.bd-desc { margin: 8px 0 0; color: #777; font-size: .95rem; }
.bd-head .button { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bd-head .button[hidden] { display: none; }

.bd-list {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgb(0 0 0 / 4%);
    overflow: hidden;
}
.bd-count {
    margin: 0;
    padding: 14px 22px;
    border-bottom: 1px solid #f0f0f0;
    color: #888;
    font-size: .88rem;
}
.bd-count b { color: #0f9d58; }
.bd-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #f3f3f3;
    transition: background .15s;
}
.bd-item:last-child { border-bottom: 0; }
.bd-item:hover { background: #f6fbf8; }
.bd-num {
    flex-shrink: 0;
    width: 34px;
    color: #aaa;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
}
.bd-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.bd-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 1.04rem;
    font-weight: 650;
    color: #222;
}
.bd-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-item:hover .bd-title span { color: #0f9d58; }
.bd-new {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 999px;
    background: #0f9d58;
    color: #fff;
    font-size: .68rem;
    font-style: normal;
    font-weight: 800;
}
.bd-date { color: #999; font-size: .85rem; }
.bd-arrow { flex-shrink: 0; color: #ccc; font-size: 1.2rem; }
.bd-item:hover .bd-arrow { color: #0f9d58; }
.bd-empty { margin: 0; padding: 56px 20px; color: #999; text-align: center; }

.bd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 16px;
    padding: 8px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: .88rem;
    font-weight: 650;
}
.bd-back:hover { border-color: #0f9d58; color: #0f9d58; }
.bd-article {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgb(0 0 0 / 4%);
    overflow: hidden;
}
.bd-article-head { padding: 30px 32px 22px; border-bottom: 1px solid #f0f0f0; }
.bd-article-head h1 { margin: 0 0 12px; font-size: 1.7rem; line-height: 1.4; word-break: keep-all; word-wrap: break-word; overflow-wrap: anywhere; }
.bd-meta { display: flex; align-items: center; gap: 8px; margin: 0; color: #999; font-size: .88rem; }
.bd-article-body { padding: 28px 32px 36px; }
/* 글 보기 본문 아래 오른쪽: 관리자 수정·삭제 */
.bd-admin {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 32px;
}
.bd-admin[hidden] { display: none; }
.bd-admin .bd-admin-btn {
    min-height: 0;
    padding: 7px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    color: #444;
    font-size: .85rem;
    font-weight: 650;
    cursor: pointer;
}
.bd-admin .bd-admin-btn:hover { border-color: #0f9d58; color: #0f9d58; }
.bd-admin .bd-admin-btn.is-danger:hover { border-color: #b42318; color: #b42318; }
.bd-article-body .notice-hero { margin-bottom: 20px; }
.bd-article-body .notice-body { font-size: 1.02rem; line-height: 1.85; color: #333; word-wrap: break-word; overflow-wrap: anywhere; }

.bd-nav {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
}
.bd-nav[hidden] { display: none; }
.bd-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid #f3f3f3;
}
.bd-nav a:last-child { border-bottom: 0; }
.bd-nav a[hidden] { display: none; }
.bd-nav a:hover { background: #f6fbf8; }
.bd-nav em { flex-shrink: 0; width: 44px; color: #999; font-size: .85rem; font-style: normal; font-weight: 650; }
.bd-nav span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bd-nav a:hover span { color: #0f9d58; }
.bd-to-list { display: flex; justify-content: center; margin-top: 24px; }
.bd-to-list .button { min-width: 160px; background: #222; }

@media (max-width: 540px) {
    .bd-head h1 { font-size: 1.5rem; }
    .bd-item { gap: 12px; padding: 16px 18px; }
    .bd-num { width: 24px; font-size: .82rem; }
    .bd-arrow { display: none; }
    .bd-article-head { padding: 24px 20px 18px; }
    .bd-article-head h1 { font-size: 1.4rem; }
    .bd-article-body { padding: 22px 20px 28px; }
    .bd-nav a { padding: 14px 18px; }
}

/* ---------- 로그인 화면 (login.php 의 .is-login 에만) ---------- */
.login-card.is-login {
    padding: 40px 36px 30px;
    border-radius: 24px;
    overflow: hidden; /* 아래 회원가입 띠가 둥근 모서리 밖으로 안 나가게 */
    box-shadow: 0 24px 60px rgb(15 80 50 / 12%), 0 2px 6px rgb(0 0 0 / 4%);
}
.is-login .login-tagline {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #e8f6ee;
    font-size: .85rem;
    font-weight: 700;
}
.is-login h1 { margin: 0 0 6px; font-size: 1.85rem; }
.login-sub { margin: 0 0 26px; color: #888; font-size: .95rem; }
.is-login .stack { gap: 14px; }
.is-login label { font-size: .88rem; color: #555; }
.is-login input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #f7f8f9;
    font-size: 1rem;
    transition: border-color .15s, background .15s;
}
.is-login input:not([type="checkbox"]):not([type="radio"])::placeholder { color: #b5b5b5; font-weight: 400; }
.is-login input:not([type="checkbox"]):not([type="radio"]):focus { outline: 0; border-color: #0f9d58; background: #fff; box-shadow: 0 0 0 4px rgb(15 157 88 / 12%); }
/* 브라우저 자동완성 때 칠해지는 파란 배경을 입력칸 색으로 덮는다 */
.is-login input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #f7f8f9 inset; }
.is-login input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 100px #fff inset, 0 0 0 4px rgb(15 157 88 / 12%); }
.is-login button[type="submit"] {
    min-height: 54px;
    margin-top: 8px;
    border-radius: 12px;
    font-size: 1.05rem;
    box-shadow: 0 8px 18px rgb(15 157 88 / 25%);
}
.is-login button[type="submit"]:hover { filter: brightness(1.05); }
.login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    font-size: .9rem;
}
.login-links a { color: #666; font-weight: 600; }
.login-links a:hover { color: #0f9d58; }
.login-links span { width: 1px; height: 12px; background: #ddd; }
.is-login .login-split { margin: 26px 0 16px; font-weight: 600; }
.is-login .social-btn { min-height: 50px; border-radius: 12px; font-size: .95rem; }
.login-signup {
    margin: 26px -36px -30px;
    padding: 18px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    color: #888;
    font-size: .92rem;
    text-align: center;
}
.login-signup a { margin-left: 6px; color: #0f9d58; font-weight: 800; }
.login-signup a:hover { text-decoration: underline; }

@media (max-width: 540px) {
    .login-card.is-login { padding: 32px 22px 24px; border-radius: 20px; }
    .login-signup { margin: 22px -22px -24px; }
}

/* ---------- 상단 메뉴: PC 는 한 줄, 모바일은 햄버거 ---------- */
/* 머리글은 스크롤해도 화면 맨 위에 고정. 가려지는 만큼 body 위쪽을 비운다 (PC 64px + 아래 줄 1px) */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
body { padding-top: 65px; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; }
/* 지금 화면 메뉴: 초록 글자 + 아래 밑줄 */
.nav-menu > a { position: relative; }
.nav-menu > a.is-active { color: #0f9d58; }
.nav-menu > a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 2px;
    background: #0f9d58;
}

@media (max-width: 640px) {
    .nav { min-height: 58px; gap: 12px; }
    body { padding-top: 59px; }
    /* 펼친 메뉴가 길면 그 안에서 스크롤 */
    .nav-menu { max-height: calc(100vh - 59px); max-height: calc(100dvh - 59px); overflow-y: auto; }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        min-height: 42px;
        padding: 0 10px;
        border-radius: 10px;
        background: transparent;
    }
    .nav-toggle:hover { background: #f4f4f4; }
    .nav-toggle span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: #222;
        transition: transform .2s, opacity .2s;
    }
    /* 열리면 X 모양 */
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 16px 14px;
        background: #fff;
        border-bottom: 1px solid #eee;
        box-shadow: 0 14px 28px rgb(0 0 0 / 8%);
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu > a,
    .nav-menu > button,
    .nav-menu > .balance {
        display: block;
        width: 100%;
        padding: 15px 4px;
        border-bottom: 1px solid #f2f2f2;
        font-size: 1rem;
        text-align: left;
    }
    .nav-menu > :last-child { border-bottom: 0; }
    .nav-menu > .balance { font-size: .9rem; }
    /* 모바일 펼친 메뉴: 밑줄 대신 왼쪽 막대 */
    .nav-menu > a.is-active { padding-left: 14px; font-weight: 800; }
    .nav-menu > a.is-active::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
    /* 위의 display: block 이 숨김(hidden)을 덮어쓰지 않게 */
    .nav-menu > [hidden] { display: none; }
}

/* ---------- 글쓰기 에디터(Quill) : 관리자 글쓰기 카드 안 ---------- */
.editor-card .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #eee;
    padding: 10px 18px;
    background: #fcfcfc;
    font-family: inherit;
}
.editor-card .ql-container.ql-snow { border: 0; font-family: inherit; font-size: 1rem; }
.editor-card .ql-editor {
    min-height: 360px;
    padding: 20px 24px;
    line-height: 1.8;
    color: #222;
}
.editor-card .ql-editor.ql-blank::before { left: 24px; right: 24px; color: #b5b5b5; font-style: normal; }
.editor-card .ql-editor img { max-width: 100%; height: auto; border-radius: 10px; }
.editor-card .ql-snow .ql-stroke { stroke: #555; }
.editor-card .ql-snow .ql-fill { fill: #555; }
.editor-card .ql-snow.ql-toolbar button:hover .ql-stroke,
.editor-card .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: #0f9d58; }
.editor-card .ql-snow.ql-toolbar button:hover .ql-fill,
.editor-card .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: #0f9d58; }
/* 전체 button 스타일(초록 버튼)이 에디터 도구 버튼에 묻지 않게 */
.editor-card .ql-toolbar button { min-height: 0; padding: 3px 5px; background: none; border-radius: 4px; }
@media (max-width: 540px) {
    .editor-card .ql-toolbar.ql-snow { padding: 8px 12px; }
    .editor-card .ql-editor { min-height: 260px; padding: 18px; }
    .editor-card .ql-editor.ql-blank::before { left: 18px; right: 18px; }
}

/* 글 보기: 에디터로 쓴 글의 그림·정렬·인용 */
.notice-body--html img { display: block; max-width: 100%; height: auto; margin: 14px 0; border-radius: 12px; }
.notice-body--html .ql-align-center { text-align: center; }
.notice-body--html .ql-align-right { text-align: right; }
.notice-body--html .ql-align-justify { text-align: justify; }
.notice-body--html .ql-align-center img { margin-inline: auto; }
.notice-body--html .ql-align-right img { margin-left: auto; }
.notice-body--html blockquote {
    margin: 0 0 12px;
    padding: 10px 16px;
    border-left: 4px solid #0f9d58;
    background: #f6fbf8;
    color: #444;
}
.notice-body--html h2 { margin: 1.4em 0 .5em; font-size: 1.3rem; }
.notice-body--html a { color: #0f9d58; text-decoration: underline; }

/* 회원가입·아이디 찾기·비밀번호 찾기도 로그인 화면과 같은 카드 (.is-login) */
body:has(.login-screen.is-wide) main.shell { width: min(100% - 32px, 520px); }
/* 입력칸 옆 'SMS 요청'·'인증 확인'·'중복확인' 같은 보조 버튼 */
.is-login button.secondary {
    flex-shrink: 0;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #cfe9db;
    border-radius: 12px;
    background: #f1faf5;
    color: #0f9d58;
    white-space: nowrap;
}
.is-login button.secondary:hover { background: #e3f4ea; }
.is-login .row { align-items: end; }
.is-login .agree-box { border-color: #ececec; border-radius: 12px; background: #f9fafa; }
.is-login .found-id { border-radius: 12px; }
/* 카드 맨 아래 회색 띠 (다른 화면으로 가는 링크) */
.login-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 26px -36px -30px;
    padding: 18px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    color: #888;
    font-size: .92rem;
}
.login-foot a { color: #0f9d58; font-weight: 800; }
.login-foot a:hover { text-decoration: underline; }
.login-foot span { width: 1px; height: 12px; background: #ddd; }
@media (max-width: 540px) {
    .login-foot { margin: 22px -22px -24px; }
}

/* ---------- 회원가입 약관 동의 (.is-login 카드 안) ---------- */
.is-login .agree-box {
    gap: 0;
    padding: 4px 16px 8px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fff;
}
.is-login .agree-box .check { gap: 10px; }
.is-login .agree-all {
    padding: 14px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}
.is-login .agree-row { display: flex; align-items: center; padding: 8px 0; font-weight: 500; cursor: pointer; }
/* 체크박스: 둥근 네모, 체크하면 초록 바탕에 흰 체크 */
.is-login .agree-box input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1.5px solid #cfcfcf;
    border-radius: 6px;
    background: #fff no-repeat center / 13px 13px;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.is-login .agree-box input[type="checkbox"]:checked {
    border-color: #0f9d58;
    background-color: #0f9d58;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}
.is-login .agree-box input[type="checkbox"]:focus-visible { outline: 2px solid rgb(15 157 88 / 35%); outline-offset: 2px; }
.is-login .agree-all input[type="checkbox"] { width: 22px; height: 22px; }
.is-login .agree-label,
.is-login button.agree-view {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #444;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    text-decoration: none;
    /* 줄이 넘치면 단어 단위로 줄바꿈 (단어 중간에서 끊지 않는다) */
    word-break: keep-all;
    overflow-wrap: break-word;
}
/* 약관 내용을 여는 줄에는 오른쪽에 '보기' */
.is-login button.agree-view::after {
    content: "보기";
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 10px;
    white-space: nowrap;
    color: #a5a5a5;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.is-login button.agree-view:hover { color: #0f9d58; }
.is-login button.agree-view:hover::after { color: #0f9d58; }
.agree-tag {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 2px 7px;
    border-radius: 6px;
    background: #e8f6ee;
    color: #0f9d58;
    font-size: .74rem;
    font-style: normal;
    font-weight: 800;
}
.agree-tag.is-optional { background: #f1f1f1; color: #888; }
/* 가입 완료 버튼은 카드 폭 가득 */
.is-login button[type="submit"] { width: 100%; }
@media (max-width: 540px) {
    .is-login .agree-box { padding: 2px 14px 6px; }
    .is-login .agree-label,
    .is-login button.agree-view { gap: 6px; font-size: .88rem; }
    .is-login .agree-box .check { gap: 8px; }
}
