:root {
    /* 매일신문 로고에서 추출한 브랜드 레드(#E50012)를 기준 색상으로 사용 */
    --color-primary: #e50012;
    --color-primary-dark: #b5000e;
    --color-ink: #16305c;
    --color-danger: #c8342d;
    --color-bg: #f6f7f9;
    --color-surface: #ffffff;
    --color-border: #e2e5ea;
    --color-text: #1f2530;
    --color-text-muted: #6b7280;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
    --shadow-hover: 0 6px 20px rgba(16, 24, 40, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Noto Sans KR", "맑은 고딕", -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header - 전체는 화이트 기조, 레드는 포인트로만 (네이버 채널판 레퍼런스: "대부분 화이트에 포인트가 레드") */
.site-header {
    background: #fff;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--color-text); }
.logo-mark { height: 40px; width: auto; object-fit: contain; }
.logo-text { letter-spacing: .5px; color: var(--color-primary); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--color-text); font-weight: 600; font-size: 14px; }
.main-nav a:hover { color: var(--color-primary); }

/* Hero */
.hero {
    background:
        linear-gradient(135deg, rgba(20,10,10,.82), rgba(50,5,8,.86)),
        url('/assets/img/hero_banner.jpg') center 30% / cover no-repeat;
    color: #fff;
    padding: 72px 0;
    text-align: center;
}
.hero h1 { font-size: 32px; margin: 0 0 12px; }
.hero p { color: #f0d6d6; font-size: 16px; margin: 0; }

/* Section */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head a { color: var(--color-primary); font-size: 14px; font-weight: 600; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.job-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: box-shadow .15s ease, transform .15s ease;
    display: block;
}
.job-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.job-card .cat { font-size: 12px; color: var(--color-primary); font-weight: 700; }
.job-card h3 { font-size: 17px; margin: 8px 0; }
.job-card .meta { font-size: 13px; color: var(--color-text-muted); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-open { background: #e7f6ec; color: #1a7f37; }
.badge-closed { background: #f1f2f4; color: #6b7280; }
.badge-upcoming { background: #fff4e5; color: #b9770e; }
.badge-draft { background: #eef1f6; color: #475467; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 8px 16px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: 14px; font-weight: 600; color: var(--color-text-muted); }
.tabs a.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* List / table */
.list-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-table th, .list-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.list-table th { background: #fafbfc; color: var(--color-text-muted); font-weight: 600; }
.list-table tr:last-child td { border-bottom: none; }
.list-table tr:hover td { background: #fafbfc; }

/* Forms */
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group .hint { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=password], input[type=number], textarea, select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; color: var(--color-text);
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }

.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary { background: #fff; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-danger { background: #fff; color: var(--color-danger); border: 1px solid var(--color-danger); }
.link-button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e7f6ec; color: #1a7f37; }
.alert-error { background: #fdecea; color: #b3261e; }
.alert ul { margin: 0; padding-left: 18px; }

.notice-list { list-style: none; margin: 0; padding: 0; background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.notice-list li { border-bottom: 1px solid var(--color-border); }
.notice-list li:last-child { border-bottom: none; }
.notice-list a { display: flex; justify-content: space-between; padding: 14px 20px; font-size: 14px; }
.notice-list .date { color: var(--color-text-muted); font-size: 13px; }

.detail-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 32px 0; }
.detail-header h1 { margin: 8px 0; font-size: 26px; }
.detail-meta { color: var(--color-text-muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.detail-body { padding: 32px 0; line-height: 1.9; }
.detail-body img { max-width: 100%; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--color-border); font-size: 14px; }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.print-only { display: none; }
@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    .print-only { display: block; }
}

.site-footer { padding: 32px 0; text-align: center; color: var(--color-text-muted); font-size: 13px; border-top: 1px solid var(--color-border); margin-top: 40px; }

@media (max-width: 640px) {
    .main-nav { gap: 12px; font-size: 13px; }
    .hero h1 { font-size: 24px; }
}
