@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 색상: 양양 바다 — 깊은 바다(남청) · 동해 바다색(주 색) · 모래사장 · 산호빛 포인트
   (--main-* 이 사이트의 주 색, --leaf-* 는 사업 분야 원형 배경용 연한 색) */
:root {
  --navy: #173b5c;
  --main: #4fb3e8;
  --main-deep: #1f86c8;
  --main-dark: #13649a;
  --main-pale: #e8f4fb;
  --main-soft: #bfe2f6;
  --cream: #fbf6ec;
  --sand: #f3e3c3;
  --coral: #f28b6b;
  --leaf-green: #e4f4f1;
  --leaf-yellow: #fbf1dc;
  --leaf-blue: #e3eefb;
  --leaf-purple: #fdebe5;
  --grad: linear-gradient(90deg, var(--cream) 0%, var(--main-soft) 60%, var(--main) 100%);
  --grad-soft: linear-gradient(90deg, var(--main-pale) 0%, var(--main-soft) 55%, #8fcdf0 100%);
  --red: #e0475e;
  --white: #ffffff;
  --line: #e4e9ef;
  --gray-light: #f4f7fa;
  --gray: #66788a;
  --text: #173b5c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #f0f0f0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 64px; width: auto; }
.brand .brand-text { font-weight: 800; font-size: 1.1rem; color: var(--main-dark); }
.brand .brand-text small { display: block; font-size: 0.62rem; font-weight: 600; color: var(--gray); line-height: 1; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-size: 0.98rem; font-weight: 700; }
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--main-dark); }
.nav .icon-btn { display: flex; color: #4a5868; }
.nav .icon-btn:hover { color: var(--main-dark); }
.nav .pill {
  border: 1px solid #d5dbe3;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a5868;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
}
.nav .pill:hover { border-color: var(--main-deep); color: var(--main-dark); }
@media (max-width: 640px) {
  .site-header .container { height: auto; padding-top: 0.7rem; padding-bottom: 0.7rem; flex-wrap: wrap; }
  .brand img { height: 44px; }
  .nav { gap: 0.9rem; font-size: 0.88rem; flex-wrap: wrap; }
}

/* ── GRADIENT BAR (섹션 제목 띠) ── */
.grad-bar {
  background: var(--grad);
  border-radius: 6px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  padding: 1.1rem 1rem;
  margin: 0 0 2.5rem;
}
.grad-bar.soft { background: var(--grad-soft); }

/* ── SECTION ── */
.section { padding: 3rem 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--text);
  padding-bottom: 0.7rem;
  margin-bottom: 0;
}
.section-head h2 { font-size: 1.25rem; font-weight: 800; }
.section-head .more { font-size: 0.85rem; color: var(--gray); }
.section-head .more:hover { color: var(--main-dark); }

/* ── BOARD TABLE ── */
.board-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.board-table th {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.board-table td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: #4a5868;
  white-space: nowrap;
}
.board-table td.title { text-align: left; color: var(--text); font-weight: 600; white-space: normal; width: 100%; }
.board-table td.title a:hover { color: var(--main-dark); text-decoration: underline; }
.board-table .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--main-pale);
  color: var(--main-dark);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  margin-right: 0.4rem;
  vertical-align: 1px;
}
.board-table .badge.secret { background: #efeafb; color: #5b4a8b; }
.board-table .clip { color: var(--gray); font-size: 0.85rem; margin-left: 0.3rem; }
.board-table tr.empty td { text-align: center; color: var(--gray); padding: 2.5rem 0; }
@media (max-width: 640px) {
  .board-table .col-author, .board-table .col-views { display: none; }
  .board-table td, .board-table th { font-size: 0.85rem; }
}

/* ── FORM ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.form-group label .req { color: var(--red); margin-left: 0.15rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--main-deep); box-shadow: 0 0 0 3px rgba(31,134,200,0.15); }
.form-check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.88rem; color: #4a5868; }
.form-check input { margin-top: 0.3rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.msg { font-size: 0.9rem; margin: 0.8rem 0; display: none; }
.msg.show { display: block; }
.msg.error { color: var(--red); }
.msg.ok { color: var(--main-dark); font-weight: 700; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, background 0.15s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--main-deep); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--main-dark); }
.btn-outline { background: var(--white); color: #3a4a5c; border: 1px solid #d5dbe3; }
.btn-outline:hover { border-color: var(--main-deep); color: var(--main-dark); }
.btn-danger { background: var(--white); color: var(--red); border: 1px solid #fecdd3; }
.btn-danger:hover { background: #fff1f2; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }

/* ── PAGE TITLE ── */
.page-title { padding: 3rem 0 1.5rem; }
.page-title h1 { font-size: 1.8rem; font-weight: 800; }
.page-title p { color: var(--gray); margin-top: 0.4rem; }

.notice-box {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: #4a5868;
  line-height: 1.7;
}

/* ── FOOTER ── */
.banners { border-top: 1px solid var(--line); padding: 1.8rem 0; }
.banners .container { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.banners a { display: flex; align-items: center; height: 44px; }
.banners img { height: 44px; width: auto; }
/* 국세청 공식 로고는 원본이 작아(92×37) 원래 크기로 보여 흐려지지 않게 한다 */
.banners img.banner-nts { height: 37px; }
/* 협동조합 누리집 로고도 원본(178×45) 크기 그대로 */
.banners img.banner-coop { height: 40px; }
.banners .banner-text { font-weight: 800; color: #4a5868; border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 1rem; font-size: 0.9rem; height: auto; }
.site-footer { background: var(--gray-light); border-top: 3px solid var(--main-soft); padding: 2.2rem 0 2.5rem; font-size: 0.88rem; color: #4a5868; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; gap: 1rem; }
.site-footer .top img { height: 44px; width: auto; mix-blend-mode: multiply; }
.site-footer .sns { display: flex; gap: 0.9rem; }
.site-footer .sns a { color: #6b7280; display: flex; }
.site-footer .sns a:hover { color: var(--main-dark); }
.site-footer .info p { margin: 0.2rem 0; }
.site-footer .bottom { margin-top: 1.2rem; font-size: 0.8rem; color: var(--gray); display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer .bottom a { font-weight: 700; color: #3a4a5c; }

/* 꼬리말 법인 정보 (상호 · 대표자 · 사업자등록번호 · 주소) */
.site-footer .info-row { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; margin: 0; }
.site-footer .info-row b { font-weight: 700; color: var(--text); margin-right: 0.3rem; }

/* 로고: 물결 마크 + 이름 */
.brand { gap: 0.55rem; }
.brand img.brand-mark { height: 46px; width: 46px; }
.brand .brand-text { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -0.3px; white-space: nowrap; }
.brand .brand-text small { display: block; font-size: 0.68rem; font-weight: 700; color: var(--main-dark); letter-spacing: 0; margin-bottom: 0.15rem; }
.site-footer .top .brand img.brand-mark { height: 38px; width: 38px; }
.site-footer .top .brand .brand-text { font-size: 1.05rem; }
@media (max-width: 640px) { .brand img.brand-mark { height: 34px; width: 34px; } .brand .brand-text { font-size: 1rem; } }

/* 글이 없을 때도 제목 칸이 넓게 */
.board-table th:first-child { width: 100%; }

/* 행정안전부 로고 (원본 316×90) */
.banners img.banner-mois { height: 40px; }

/* hidden 속성은 버튼 등 다른 display 규칙보다 항상 우선 */
[hidden] { display: none !important; }
