:root {
    --ink: #1f2726;
    --muted: #65706e;
    --paper: #fbfaf7;
    --soft: #f0f3ef;
    --line: #dde4df;
    --teal: #0f5f63;
    --teal-dark: #0a3f43;
    --gold: #c39a50;
    --red: #e75442;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(18, 28, 28, 0.12);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 31, 31, 0.96);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.is-home .site-header {
    position: fixed;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(9, 18, 18, 0.82), rgba(9, 18, 18, 0.2));
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header__inner {
    width: min(var(--max), calc(100% - 40px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand__logo {
    width: 118px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.28));
}

.brand__text {
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.primary-nav > ul {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav li {
    position: relative;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-size: 14px;
    font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: #f1c772;
}

.submenu {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 180px;
    display: none;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: rgba(18, 28, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

.submenu a {
    width: 100%;
    min-height: 34px;
    padding: 4px 8px;
    color: var(--white);
    font-size: 13px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 720px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero__media,
.hero__media img,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    background: linear-gradient(90deg, rgba(8, 15, 16, 0.82), rgba(8, 15, 16, 0.35) 55%, rgba(8, 15, 16, 0.64));
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding-top: 70px;
}

.eyebrow,
.section-heading span,
.admin-heading span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: 64px;
    line-height: 1.12;
    font-weight: 900;
}

.hero p:not(.eyebrow) {
    max-width: 660px;
    margin: 24px 0 0;
    font-size: 20px;
}

.hero__actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.button--primary {
    background: var(--red);
    color: var(--white);
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.78);
    color: var(--white);
}

.button--dark {
    background: var(--teal-dark);
    color: var(--white);
}

.button--ghost-dark {
    border-color: var(--teal-dark);
    color: var(--teal-dark);
}

.section {
    padding: 96px 0;
}

.section-inner {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading--left {
    margin-left: 0;
    text-align: left;
}

.section-heading--compact {
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.25;
}

.section-heading p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.section--disclosure,
.section--gallery-preview,
.authority-strip {
    background: var(--soft);
}

.metric-grid,
.post-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.metric-card,
.post-card,
.info-panel,
.admin-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(28, 42, 40, 0.07);
}

.metric-card {
    min-height: 246px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card span,
.board-row__date,
.post-card span {
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
}

.metric-card strong {
    margin: 18px 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.metric-card p {
    margin: 0;
    color: var(--muted);
}

.metric-card a {
    margin-top: 22px;
    font-weight: 800;
    color: var(--red);
}

.metric-card--accent {
    background: var(--teal-dark);
    color: var(--white);
    border-color: var(--teal-dark);
}

.metric-card--accent span,
.metric-card--accent a {
    color: #f5cb78;
}

.metric-card--accent p {
    color: rgba(255, 255, 255, 0.78);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
    gap: 64px;
    align-items: center;
}

.split-layout__content > p,
.rich-content p {
    color: var(--muted);
    font-size: 17px;
}

.feature-list {
    display: grid;
    gap: 18px;
    margin: 30px 0;
}

.feature-list div {
    padding-left: 18px;
    border-left: 4px solid var(--gold);
}

.feature-list b {
    display: block;
    margin-bottom: 4px;
}

.feature-list p {
    margin: 0;
    color: var(--muted);
}

.image-collage {
    display: grid;
    grid-template-columns: 0.8fr 1.1fr;
    grid-template-rows: 180px 250px;
    gap: 18px;
}

.image-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-collage img:first-child {
    grid-row: 1 / span 2;
}

.cta-band {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.cta-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 17, 0.68);
}

.cta-band > div {
    position: relative;
    z-index: 1;
    width: min(780px, calc(100% - 40px));
}

.cta-band h2 {
    margin: 0 0 28px;
    font-size: 34px;
    line-height: 1.45;
}

.post-card {
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card > div {
    padding: 24px;
}

.post-card h3 {
    margin: 8px 0;
    font-size: 22px;
    line-height: 1.35;
}

.post-card p {
    margin: 0;
    color: var(--muted);
}

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

.gallery-tile {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ink);
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.gallery-tile span,
.gallery-tile--static div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    background: rgba(8, 20, 20, 0.78);
    color: var(--white);
    border-radius: 4px;
    font-weight: 800;
}

.gallery-tile:hover img {
    transform: scale(1.04);
}

.gallery-tile--static {
    min-height: 340px;
}

.gallery-tile--static div h2,
.gallery-tile--static div p {
    margin: 0;
}

.gallery-tile--static div h2 {
    font-size: 18px;
}

.gallery-tile--static div p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.authority-strip {
    padding: 74px 0 80px;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.authority-logo {
    min-height: 118px;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.authority-logo img {
    max-height: 72px;
    object-fit: contain;
}

.site-footer {
    background: #202626;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 58px 0;
}

.site-footer__brand img {
    width: 180px;
    height: 88px;
    object-fit: contain;
    margin-bottom: 16px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 15px;
    text-transform: uppercase;
}

.site-footer a {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom .section-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer__bottom p {
    margin: 0;
    font-size: 13px;
}

.site-footer__bottom nav {
    display: flex;
    gap: 18px;
}

.page-hero {
    position: relative;
    min-height: 430px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--white);
}

.page-hero--compact {
    min-height: 360px;
}

.page-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 20, 20, 0.86), rgba(9, 20, 20, 0.34));
}

.page-hero__content {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 72px;
}

.page-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 46px;
    line-height: 1.2;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 18px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: start;
}

.rich-content {
    max-width: 820px;
}

.rich-content p:first-child {
    margin-top: 0;
}

.info-panel {
    display: grid;
    gap: 20px;
    padding: 26px;
}

.info-panel strong {
    display: block;
    margin-bottom: 6px;
    color: var(--teal-dark);
}

.info-panel p {
    margin: 0;
    color: var(--muted);
}

.timeline {
    grid-column: 1 / -1;
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.timeline__item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.timeline__item span {
    color: var(--teal);
    font-weight: 900;
}

.timeline__item p {
    margin: 0;
    color: var(--muted);
}

.board-search {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.board-search input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-card--login input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cad5d0;
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.board-list {
    display: grid;
    gap: 14px;
}

.board-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.board-row h2 {
    margin: 6px 0 8px;
    font-size: 23px;
    line-height: 1.35;
}

.board-row p {
    margin: 0;
    color: var(--muted);
}

.board-row > strong {
    color: var(--teal-dark);
    font-size: 22px;
}

.empty-state {
    padding: 44px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    color: var(--muted);
}

.post-detail {
    max-width: 880px;
    margin: 0 auto;
}

.post-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.post-detail h2 {
    margin: 18px 0 24px;
    font-size: 38px;
    line-height: 1.3;
}

.post-detail__image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    margin: 28px 0;
    border-radius: 8px;
}

.amount-box {
    display: inline-grid;
    gap: 4px;
    min-width: 250px;
    padding: 20px 24px;
    background: var(--teal-dark);
    color: var(--white);
    border-radius: 8px;
}

.amount-box span {
    color: #f5cb78;
    font-size: 13px;
    font-weight: 800;
}

.amount-box strong {
    font-size: 28px;
}

.admin-body {
    background: #eef3f1;
}

.admin-topbar {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: #172020;
    color: var(--white);
}

.admin-topbar > a {
    font-weight: 900;
}

.admin-topbar nav {
    display: flex;
    gap: 18px;
}

.admin-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 34px auto 70px;
}

.admin-card {
    padding: 28px;
}

.admin-card--login {
    width: min(420px, calc(100% - 40px));
    display: grid;
    gap: 16px;
}

.admin-card--login img {
    width: 160px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 4px;
}

.admin-card--login h1 {
    margin: 0 0 8px;
    text-align: center;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.admin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-heading h1 {
    margin: 0;
    font-size: 32px;
}

.admin-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.admin-tabs a {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-weight: 800;
}

.admin-tabs a.is-active {
    background: var(--teal-dark);
    color: var(--white);
    border-color: var(--teal-dark);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--teal-dark);
    font-size: 13px;
}

.admin-table td span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-actions a,
.admin-actions button {
    border: 0;
    background: transparent;
    color: var(--red);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-form {
    display: grid;
    gap: 20px;
}

.admin-form label,
.admin-card--login label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.check-row {
    display: flex !important;
    align-items: center;
    grid-template-columns: none;
    gap: 8px !important;
    color: var(--muted);
    font-weight: 700 !important;
    font-size: 13px;
}

.check-row input {
    width: auto;
    min-height: auto;
}

.current-file {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}

.form-error {
    padding: 12px 14px;
    margin: 0;
    background: #fff0ec;
    border: 1px solid #ffc8bc;
    border-radius: 4px;
    color: #9e2f22;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .primary-nav > ul {
        gap: 16px;
    }

    .brand__text {
        display: none;
    }

    .hero h1 {
        font-size: 52px;
    }
}

@media (max-width: 1040px) {
    .site-header__inner {
        min-height: 76px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        display: none;
        padding: 16px;
        background: #172020;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow);
    }

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

    .primary-nav > ul {
        display: grid;
        gap: 6px;
    }

    .primary-nav a {
        width: 100%;
    }

    .submenu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 14px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        min-height: 76px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        display: none;
        padding: 16px;
        background: #172020;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow);
    }

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

    .primary-nav > ul {
        display: grid;
        gap: 6px;
    }

    .primary-nav a {
        width: 100%;
    }

    .submenu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 14px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .hero {
        min-height: 660px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p:not(.eyebrow),
    .page-hero p:not(.eyebrow) {
        font-size: 17px;
    }

    .section {
        padding: 72px 0;
    }

    .section-heading h2,
    .cta-band h2,
    .post-detail h2 {
        font-size: 30px;
    }

    .metric-grid,
    .post-grid,
    .gallery-grid,
    .authority-grid,
    .split-layout,
    .content-layout,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .image-collage {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 220px);
    }

    .image-collage img:first-child {
        grid-row: auto;
    }

    .timeline__item,
    .board-row,
    .board-search,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom .section-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
    }

    .admin-heading,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

@media (max-width: 520px) {
    .site-header__inner,
    .section-inner,
    .hero__content,
    .page-hero__content,
    .admin-shell {
        width: min(100% - 28px, var(--max));
    }

    .brand__logo {
        width: 94px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .metric-card strong {
        font-size: 28px;
    }

    .authority-logo {
        min-height: 96px;
    }
}
