/* 새 홈페이지 공통 스타일. 장애인 당사자와 가족이 읽기 편하도록 큰 글자, 넓은 누름 영역, 충분한 명암 대비를 기준으로 한다.
   모바일 기준으로 작성하고 960px 이상에서 가로 메뉴로 바뀐다. 관리자 화면(admin.css)과는 섞지 않는다. */

:root {
    --green: #2f7d1e; /* 흰 바탕 대비 5.2:1 */
    --green-dark: #276b1a;
    --green-logo: #63b32e; /* 로고 색. 글자에는 쓰지 않고 장식에만 */
    --green-soft: #eef6e8;
    --navy: #1d2a7b; /* 로고의 남색, 대비 12.6:1 */
    --text: #1a1d23;
    --text-2: #4a5160; /* 대비 8:1 */
    --bg: #ffffff;
    --bg-soft: #f5f7f2;
    --border: #d9ded3;
    --focus: #f2b200;
    --radius: 16px;
    --shadow: 0 1px 3px rgba(20, 30, 20, 0.06), 0 4px 16px rgba(20, 30, 20, 0.06);
    --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin: 0;
}

button {
    font: inherit;
    color: inherit;
}

/* 키보드로 이동할 때 위치가 잘 보이도록 굵은 노란 테두리 */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 6px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

main:focus {
    outline: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 버튼 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-lg {
    min-height: 56px;
    padding: 0 26px;
    font-size: 18px;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-outline {
    background: #fff;
    border-color: var(--green);
    color: var(--green);
}

.btn-outline:hover {
    background: var(--green-soft);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- 머리글 ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 16px;
}

.brand {
    flex: 1;
    min-width: 0;
    display: block;
}

.brand img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.header-account {
    display: none;
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-icon {
    position: relative;
    /* 아래 줄(::after)이 9.5px까지 내려오므로, '메뉴' 글자와 겹치지 않게 아래 여백을 넉넉히 둔다 */
    margin: 8px 0 11px;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    top: 7px;
}

.menu-toggle[aria-expanded='true'] .menu-icon {
    background: transparent;
}

.menu-toggle[aria-expanded='true'] .menu-icon::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-icon::after {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* 모바일 메뉴: 버튼을 누르면 머리글 아래로 펼쳐진다 */
.site-nav {
    display: none;
    max-height: calc(100vh - 77px);
    overflow-y: auto;
    padding: 8px 16px 24px;
    border-top: 1px solid var(--border);
}

.site-nav.is-open {
    display: block;
}

.nav-list,
.sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link,
.sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    padding: 0 8px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: none;
    font-size: 19px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    color: var(--text);
}

/* 모바일에서는 묶음 메뉴를 항상 펼쳐서 보여준다 */
.sub-toggle {
    color: var(--text-2);
    font-size: 15px;
    min-height: 44px;
    border-bottom: 0;
    pointer-events: none;
}

.sub-toggle .caret {
    display: none;
}

.sub-link {
    padding-left: 20px;
    font-weight: 600;
}

.nav-link[aria-current='page'],
.sub-link[aria-current='page'] {
    color: var(--green);
}

.nav-link[aria-current='page']::before,
.sub-link[aria-current='page']::before {
    content: '';
    width: 6px;
    height: 22px;
    border-radius: 3px;
    background: var(--green);
}

.nav-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.nav-account {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.nav-account .btn {
    flex: 1;
}

@media (min-width: 960px) {
    .header-inner {
        padding: 14px 20px 8px;
    }

    .brand img {
        height: 46px;
    }

    .header-account {
        display: flex;
        gap: 20px;
        font-size: 16px;
    }

    .header-account a {
        color: var(--text-2);
        text-decoration: none;
    }

    .header-account a:hover {
        color: var(--green);
        text-decoration: underline;
    }

    .menu-toggle,
    .nav-account {
        display: none;
    }

    .site-nav {
        display: block;
        max-width: 1120px;
        max-height: none;
        margin: 0 auto;
        padding: 0 12px;
        overflow: visible;
        border-top: 0;
    }

    .nav-list {
        display: flex;
        gap: 4px;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        min-height: 56px;
        padding: 0 18px;
        border-bottom: 4px solid transparent;
        font-size: 18px;
    }

    .nav-link:hover {
        color: var(--green);
    }

    .nav-link[aria-current='page'],
    .sub-toggle.is-current {
        color: var(--green);
        border-bottom-color: var(--green);
    }

    .nav-link[aria-current='page']::before {
        display: none;
    }

    .sub-toggle {
        min-height: 56px;
        font-size: 18px;
        color: var(--text);
        pointer-events: auto;
        cursor: pointer;
    }

    .sub-toggle .caret {
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-left: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-3px) rotate(45deg);
    }

    .sub-toggle[aria-expanded='true'] .caret {
        transform: translateY(2px) rotate(-135deg);
    }

    .sub-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        padding: 8px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 30px rgba(20, 30, 20, 0.16);
    }

    .sub-toggle[aria-expanded='true'] + .sub-list {
        display: block;
    }

    .sub-link {
        min-height: 48px;
        padding: 0 14px;
        border: 0;
        border-radius: 10px;
        font-size: 17px;
    }

    .sub-link:hover {
        background: var(--green-soft);
    }

    .sub-link[aria-current='page']::before {
        display: none;
    }
}

/* ---------- 메인: 사진 ---------- */

.hero {
    position: relative;
    background: var(--bg-soft);
}

.hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.hero-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 4039 / 1306;
    object-fit: cover;
    background: #e3e8de;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
}

.hero-count {
    min-width: 56px;
    text-align: center;
    font-weight: 700;
    color: var(--text-2);
}

.round-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.round-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

/* 사진 자동 넘김 멈춤/재생 버튼: 글자 없이 아이콘만. 모양은 .round-btn을 따른다 */
.hero-toggle {
    color: var(--text-2);
}

.hero-toggle[hidden] {
    display: none;
}

/* 멈춤 아이콘(세로 막대 두 개) */
.hero-toggle-icon {
    width: 12px;
    height: 14px;
    border-left: 4px solid currentColor;
    border-right: 4px solid currentColor;
}

/* 재생 아이콘(오른쪽 세모) */
.hero-toggle.is-paused .hero-toggle-icon {
    margin-left: 3px; /* 세모는 눈으로 볼 때 왼쪽으로 치우쳐 보여서 살짝 민다 */
    width: 0;
    height: 0;
    border: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid currentColor;
}

/* ---------- 메인: 구역 공통 ---------- */

.section {
    padding: 40px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.section-head .section-title {
    margin-bottom: 0;
}

.more-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}

.empty {
    color: var(--text-2);
}

.eyebrow {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
}

.intro-title {
    margin: 8px 0 14px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.intro-text {
    margin-bottom: 24px;
    font-size: 19px;
    color: var(--text-2);
}

/* ---------- 바로가기 ---------- */

.quick-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    text-decoration: none;
}

.quick-card:hover {
    border-color: var(--green);
}

.quick-card strong {
    font-size: 19px;
}

.quick-card small {
    font-size: 15px;
    color: var(--text-2);
}

.quick-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--green-soft) center / 26px no-repeat;
}

/* 아이콘은 진한 초록 선 그림. 의미는 옆의 글자가 전달하므로 장식으로만 쓴다 */
.icon-greeting { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.icon-history { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E"); }
.icon-trip { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.icon-data { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.icon-board { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16M4 10h16M4 15h10M4 20h7'/%3E%3C/svg%3E"); }
.icon-member { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18.5 20a6.5 6.5 0 0 0-2.5-5.1'/%3E%3C/svg%3E"); }

/* ---------- 최근 소식 ---------- */

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.news-list li + li {
    border-top: 1px solid var(--border);
}

.news-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
    padding: 16px 18px;
    text-decoration: none;
}

.news-item:hover .news-title {
    color: var(--green);
    text-decoration: underline;
}

.news-tag {
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.news-title {
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
}

.news-date {
    grid-column: 1 / -1;
    font-size: 15px;
    color: var(--text-2);
}

/* ---------- 영상 ---------- */

.video-grid {
    display: grid;
    gap: 20px;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
}

.video-frame iframe,
.video-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-play {
    padding: 0;
    background: #111;
    cursor: pointer;
}

.video-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent var(--green);
    transform: translate(-50%, -50%);
}

.video figcaption {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* ---------- 연락처와 후원 ---------- */

.info-grid {
    display: grid;
    gap: 14px;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 22px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-2);
}

.info-big {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
}

.nowrap {
    white-space: nowrap;
}

.info-bank {
    font-size: 18px;
    color: var(--text-2);
}

.info-big a {
    text-decoration: none;
}

.info-addr {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.info-sub {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-2);
}

.info-card .btn {
    margin-top: auto;
}

/* ---------- 함께하는 곳 ---------- */

.partner-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.partner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.partner img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* ---------- 바닥글 ---------- */
/* 로고(투명 배경)를 원래 색 그대로 보이도록 밝은 바탕을 쓴다. 글자 대비 7:1 이상 */

.site-footer {
    padding: 36px 0 44px;
    background: var(--bg-soft);
    border-top: 4px solid var(--green-logo);
    color: var(--text);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: block;
    width: 280px;
    max-width: 100%;
    margin-bottom: 22px;
}

.footer-info {
    display: grid;
    gap: 8px;
    font-size: 16px;
}

.footer-info div {
    display: flex;
    gap: 12px;
}

.footer-info dt {
    flex-shrink: 0;
    width: 72px;
    font-weight: 700;
    color: var(--text-2);
}

.footer-info a {
    color: var(--green);
    font-weight: 800;
}

.copyright {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-2);
}

/* ---------- 넓은 화면 ---------- */

@media (min-width: 720px) {
    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .video-grid,
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .news-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .news-date {
        grid-column: auto;
    }
}

@media (min-width: 960px) {
    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .intro-title {
        font-size: 38px;
    }

    .quick-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- 게시판 공통 ---------- */

.narrow {
    max-width: 820px;
}

.page-head {
    padding: 32px 0 28px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.page-desc {
    margin-top: 6px;
    color: var(--text-2);
}

.board {
    padding-top: 24px;
}

.board-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.board-count {
    font-size: 16px;
    color: var(--text-2);
}

.board-count strong {
    color: var(--text);
}

.empty-box {
    padding: 48px 20px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    text-align: center;
    color: var(--text-2);
}

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--navy);
}

.post-list li {
    border-bottom: 1px solid var(--border);
}

.post-item {
    display: block;
    padding: 18px 4px;
    text-decoration: none;
}

.post-item:hover .post-title {
    color: var(--green);
    text-decoration: underline;
}

.post-title {
    display: block;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 6px;
    font-size: 15px;
    color: var(--text-2);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.pager ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.pager-num,
.pager-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.pager-num:hover,
.pager-step:hover {
    border-color: var(--green);
    color: var(--green);
}

.pager-num.is-current {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

/* ---------- 글 보기 ---------- */

.article {
    padding-top: 28px;
}

.article-board a {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
}

.article-title {
    margin: 6px 0 12px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--navy);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-2);
}

.article-meta div {
    display: flex;
    gap: 6px;
}

.article-meta dt {
    font-weight: 700;
}

.article-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.article-actions form {
    margin: 0;
}

.btn-danger {
    background: #fff;
    border-color: #c62828;
    color: #c62828;
}

.btn-danger:hover {
    background: #fdecec;
}

.btn-text-danger {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: none;
    color: #c62828;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.article-images {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.article-images img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
}

.article-body {
    margin-top: 24px;
    font-size: 19px;
    line-height: 1.85;
}

.article-body a {
    color: var(--green);
    font-weight: 700;
}

.article-files {
    margin-top: 32px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.article-files h2 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 800;
}

.article-files ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.article-files li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-files form {
    margin: 0;
}

.file-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}

.file-link:hover {
    border-color: var(--green);
}

.file-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.file-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.file-action {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
}

.article-foot {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ---------- 글쓰기 ---------- */

.post-form {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 18px;
    font-weight: 800;
}

.required,
.optional {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
}

.form-field input[type='text'],
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #b9c0b1;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 18px;
}

.form-field textarea {
    min-height: 280px;
    line-height: 1.7;
    resize: vertical;
}

.form-field input[type='text']:focus,
.form-field textarea:focus {
    border-color: var(--green);
    outline: 3px solid var(--focus);
    outline-offset: 1px;
}

.form-field [aria-invalid='true'] {
    border-color: #c62828;
}

.form-help {
    font-size: 15px;
    color: var(--text-2);
}

.form-error {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fdecec;
    color: #a61b1b;
    font-weight: 700;
}

.file-input {
    width: 100%;
    padding: 14px;
    border: 2px dashed #b9c0b1;
    border-radius: 12px;
    background: var(--bg-soft);
    font-size: 16px;
    cursor: pointer;
}

.file-input::file-selector-button {
    margin-right: 12px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.picked-files {
    margin: 0;
    padding-left: 20px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.form-actions .btn {
    flex: 1;
}

@media (min-width: 720px) {
    .page-head {
        padding: 44px 0 36px;
    }

    .page-title {
        font-size: 34px;
    }

    .article-title {
        font-size: 32px;
    }

    .form-actions {
        justify-content: flex-end;
    }

    .form-actions .btn {
        flex: 0 0 auto;
        min-width: 160px;
    }
}

/* ---------- 협회 소개 ---------- */

.about-tabs {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    overflow-x: auto;
}

.about-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.about-tab:hover {
    border-color: var(--green);
    color: var(--green);
}

.about-tab.is-current {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.prose {
    font-size: 19px;
    line-height: 1.9;
}

.prose p + p {
    margin-top: 1.1em;
}

.greeting-lead {
    margin: 0 0 28px;
    padding: 20px 22px;
    border-left: 6px solid var(--green-logo);
    border-radius: 0 14px 14px 0;
    background: var(--green-soft);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--navy);
}

.greeting-sign {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 18px;
}

.greeting-sign p + p {
    margin-top: 0.6em;
}

.greeting-date {
    color: var(--text-2);
}

.greeting-name {
    font-weight: 800;
}

.greeting-sign img {
    flex-shrink: 0;
    width: 110px;
    border-radius: 12px;
}

.about-lead {
    margin-bottom: 32px;
    font-size: 20px;
    line-height: 1.8;
}

.business-list {
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
    counter-reset: business;
    display: grid;
    gap: 10px;
}

.business-list li {
    counter-increment: business;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--bg-soft);
    font-size: 18px;
    font-weight: 600;
}

.business-list li::before {
    content: counter(business);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 800;
}

.history-body {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-soft);
}

/* ---------- 로그인·회원가입 ---------- */

.account-container {
    max-width: 520px;
}

.account-form {
    display: grid;
    gap: 20px;
    margin-top: 24px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.form-field input[type='email'],
.form-field input[type='password'],
.form-field input[type='tel'],
.account-form input[type='text'] {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 2px solid #b9c0b1;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 19px;
}

.account-form input:focus {
    border-color: var(--green);
    outline: 3px solid var(--focus);
    outline-offset: 1px;
}

.account-form [aria-invalid='true'] {
    border-color: #c62828;
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 92px !important;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 72px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 700;
    transform: translateY(-50%);
    cursor: pointer;
}

.pw-rules {
    list-style: none;
    margin: -4px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-soft);
    display: grid;
    gap: 6px;
    font-size: 16px;
    color: var(--text-2);
}

.pw-rules li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pw-mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #9aa294;
    border-radius: 50%;
}

.pw-rules li.is-ok {
    color: var(--green);
    font-weight: 700;
}

/* 충족하면 색과 함께 체크 표시로도 알려 준다 */
.pw-rules li.is-ok .pw-mark {
    border-color: var(--green);
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.code-input {
    letter-spacing: 0.6em;
    text-align: center;
    font-size: 28px !important;
    font-weight: 800;
}

.btn-block {
    width: 100%;
}

.account-links {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 17px;
    text-align: center;
    color: var(--text-2);
}

.account-links a {
    color: var(--green);
    font-weight: 700;
}

.notice-box {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--bg-soft);
    font-size: 16px;
}

.notice-box a {
    color: var(--green);
    font-weight: 700;
}

.welcome {
    text-align: center;
}

.welcome-icon {
    display: inline-block;
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d1e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 44px no-repeat;
}

.welcome .page-desc {
    margin: 12px 0 28px;
}

.welcome-actions {
    justify-content: center;
}

/* ---------- 공지 팝업 ---------- */

.popup {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 15, 10, 0.6);
}

.popup[hidden] {
    display: none;
}

.has-popup {
    overflow: hidden;
}

.popup-card {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px 22px 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-title {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--navy);
}

.popup-images img {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 12px;
}

.popup-body {
    margin-bottom: 20px;
    font-size: 18px;
}

.popup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.popup-day {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 17px;
    cursor: pointer;
}

.popup-day input {
    width: 24px;
    height: 24px;
    accent-color: var(--green);
}

.popup-close {
    min-width: 110px;
}

/* 움직임을 줄이도록 설정한 사람에게는 부드러운 스크롤 등 애니메이션을 끈다 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
