/*
Theme Name: AX 전북지회
Description: 한국경영기술지도사회 전북지회 공식 홈페이지
Version: 1.0
Author: 티엠에스솔루션
*/

:root {
  --green-900: #14492b;
  --green-800: #1b5b38;
  --green-700: #226a42;
  --green-600: #2f7a50;
  --green-500: #3b8a5d;
  --gold: #d9a92a;
  --gold-bright: #e7bb3e;
  --ink: #1f2a24;
  --muted: #5b6b62;
  --line: #e3e8e4;
  --bg: #f4f6f4;
  --card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(20,40,28,.08);
  --shadow-md: 0 6px 20px rgba(20,40,28,.10);
  --r: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── 유틸 바 ── */
.util-bar {
  background: var(--green-900);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.util-bar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 38px;
}
.util-bar a {
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color .15s;
}
.util-bar a:hover { color: #fff; }
.util-bar .sep { color: rgba(255,255,255,.3); }

/* ── 헤더 ── */
.site-header { background: var(--green-800); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 24px;
  position: relative;
}
/* 로고 흰색 칩 — 진초록 헤더 위에서 컬러 로고가 또렷하게 보이도록 */
.brand-logo {
  flex-shrink: 0; display: flex; align-items: center;
  background: #fff; padding: 8px 14px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.brand-logo a { display: flex; align-items: center; }
.brand-logo img { height: 62px; width: auto; display: block; }

/* ── 네비 ── */
.main-nav {
  background: linear-gradient(180deg, var(--green-600), var(--green-700));
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 40;
}
.main-nav .wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; position: relative;
}
.nav-list {
  display: flex; align-items: center;
  list-style: none; margin: 0; padding: 0; gap: 0;
}
.nav-item > a {
  color: #fff; font-size: 16px; font-weight: 500;
  padding: 0 22px; height: 56px; white-space: nowrap;
  display: inline-flex; align-items: center;
  position: relative; transition: background .15s;
}
.nav-item > a:hover { background: rgba(255,255,255,.12); }
.nav-item > a::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: 10px;
  height: 2px; background: var(--gold-bright);
  transform: scaleX(0); transition: transform .2s; transform-origin: center;
}
.nav-item > a:hover::after { transform: scaleX(1); }

/* ── 드롭다운 서브메뉴 ── */
.nav-item { position: relative; }
.sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 160px;
  background: var(--green-900);
  border-top: 2px solid var(--gold);
  list-style: none; margin: 0; padding: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,.85);
  font-size: 14px; white-space: nowrap;
  transition: background .15s;
}
.sub-menu li a:hover { background: var(--green-700); color: #fff; }
.nav-item:hover .sub-menu { display: block; }

.nav-toggle {
  display: none;
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: .25s; }

/* ── 히어로 ── */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,73,43,.35) 0%, rgba(20,73,43,.20) 40%, rgba(20,73,43,.60) 100%),
    linear-gradient(115deg, #46566a 0%, #5a6a7c 45%, #44525f 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 60px),
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.10), transparent 40%),
    radial-gradient(ellipse at 80% 65%, rgba(0,0,0,.20), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 70px 24px 36px;
  text-align: center;
}
.hero h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.35; letter-spacing: -.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
  text-wrap: balance;
}
.hero h1 .hl { color: var(--gold-bright); }

/* 검색 박스 */
.search-panel {
  margin: 44px auto 0;
  max-width: 760px;
  background: linear-gradient(180deg, rgba(20,73,43,.62), rgba(20,73,43,.42));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 26px 30px 30px;
  backdrop-filter: blur(3px);
  box-shadow: var(--shadow-md);
}
.search-panel h2 {
  color: #fff; font-size: clamp(20px, 2.6vw, 30px); font-weight: 700;
  margin-bottom: 18px; letter-spacing: -.3px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.search-row { display: flex; gap: 10px; }
.search-row input {
  flex: 1; height: 56px; border: none; border-radius: 10px;
  padding: 0 20px; font-size: 16px; font-family: inherit;
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.search-row input::placeholder { color: #9aa6a0; }
.search-notice {
  margin-top: 10px; padding: 10px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 14px; font-weight: 600;
}
.search-row button {
  width: 64px; height: 56px; border: none; border-radius: 10px;
  background: var(--green-600); cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.search-row button:hover { background: var(--green-500); }
.search-row button svg { width: 24px; height: 24px; stroke: #fff; }

/* 통계 필 */
.stat-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 22px;
}
.stat-pill {
  background: var(--green-900);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 10px 20px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: rgba(255,255,255,.88); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.stat-pill b { color: var(--gold); font-weight: 700; font-size: 16px; }
.stat-pill.cta {
  background: var(--gold);
  color: var(--green-900); font-weight: 700;
  border-color: rgba(0,0,0,.08); cursor: pointer;
  transition: filter .15s;
}
.stat-pill.cta:hover { filter: brightness(1.06); }

/* ── 메인 레이아웃 ── */
.main { background: var(--bg); padding: 48px 0 56px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}
.section-title {
  text-align: center;
  font-size: 24px; font-weight: 700; color: var(--green-800);
  letter-spacing: -.3px; margin-bottom: 22px;
  position: relative; padding-bottom: 14px;
}
.section-title::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%); width: 54px; height: 3px;
  background: var(--gold); border-radius: 2px;
}

/* ── 포스트 리스트 ── */
#ax-post-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ax-notice-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.ax-notice-card:last-child { border-bottom: none; }
.ax-notice-card:hover { background: #fafcfa; }
.no-posts { padding: 48px 20px; text-align: center; color: var(--muted); font-size: 15px; }

.thumb {
  position: relative;
  width: 150px; height: 110px;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #2c3e54, #495d72);
  flex-shrink: 0;
}
.thumb.t-green   { background: linear-gradient(135deg, #1b5b38 0%, #2f7a50 55%, #3b8a5d 100%); }
.thumb.t-blue    { background: linear-gradient(135deg, #1d3f63 0%, #2a6a6e 55%, #2f7a50 100%); }
.thumb.t-gold    { background: linear-gradient(135deg, #14492b 0%, #5a6b2a 50%, #d9a92a 100%); }
.thumb.thumb-support { background: linear-gradient(135deg, #1b5b38 0%, #2f7a50 55%, #3b8a5d 100%); }
.thumb.thumb-ai  { background: linear-gradient(135deg, #1d3f63 0%, #2a6a6e 55%, #2f7a50 100%); }
.thumb .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 6px, transparent 6px 14px);
}
.cat-badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  background: rgba(20,73,43,.92);
  color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 6px;
  letter-spacing: -.2px;
}
.thumb .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff; font-size: 12px; font-weight: 500;
  padding: 14px 8px 6px; text-align: center;
}

.post-body { min-width: 0; }
.post-title {
  font-size: 19px; font-weight: 700; color: var(--ink);
  line-height: 1.4; letter-spacing: -.3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--green-700); }
.badge-inline {
  display: inline-block; vertical-align: middle;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 4px 7px; border-radius: 5px; margin-right: 6px;
  transform: translateY(-1px);
}
.badge-inline.support { background: #e7f1ea; color: var(--green-700); }
.badge-inline.recruit { background: #e8f0fe; color: #1a56db; }
.badge-inline.ai {
  background: linear-gradient(135deg, #2f7a50, #226a42);
  color: #fff;
}
.post-desc {
  color: var(--muted); font-size: 14.5px; margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 14px; flex-wrap: wrap;
}
.share-row { display: flex; gap: 7px; }
.share-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: none; transition: transform .12s, filter .12s;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.share-btn svg { width: 18px; height: 18px; }
.ax-kakao-share { background: #FEE500; }
.share-fb { background: #1877F2; }
.share-naver { background: #03C75A; }
.share-band { background: #00C73C; }
.share-btn .glyph { color: #fff; font-weight: 800; font-size: 15px; line-height: 1; }
.ax-kakao-share .glyph { color: #3A1D1D; }

.post-meta { display: flex; align-items: center; gap: 14px; }
.ax-view-count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--green-700); font-weight: 700;
}
.ax-view-count .view-ico { width: 16px; height: 16px; stroke: var(--green-700); }
.ext-link {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  color: var(--green-700); font-size: 14px; font-weight: 700;
}
.ext-link:hover { border-color: var(--green-500); }

/* ── 사이드바 ── */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.ft-track { display: flex; flex-direction: column; gap: 12px; }
.ft-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; min-height: 60px; padding: 14px 18px;
  border-radius: 10px; cursor: pointer; text-align: center;
  background: var(--green-800); color: #fff;
  font-size: 16px; font-weight: 500; letter-spacing: -.3px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-sm);
  transition: transform .12s, background .15s;
}
.ft-btn:hover { transform: translateY(-2px); background: var(--green-700); }
.ft-btn .ico { font-size: 19px; }
.ft-btn.primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  font-weight: 700; border: 1px solid var(--gold);
  box-shadow: 0 4px 14px rgba(34,106,66,.35);
}
.ft-btn.primary .ico { color: var(--gold-bright); }

.gallery-block .section-title { font-size: 21px; margin-bottom: 18px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gal-item {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #38506b, #243648);
  box-shadow: var(--shadow-sm);
}
.gal-item.g-green    { background: linear-gradient(135deg, #14492b, #1f6b40); }
.gal-item.g-navy     { background: linear-gradient(135deg, #1a2f5e, #2e4d8f); }
.gal-item.g-charcoal { background: linear-gradient(135deg, #2b2f36, #444b54); }
.gal-item.g-burgundy { background: linear-gradient(135deg, #4a1d2a, #7a2e44); }
.gal-item .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px);
}
.gal-item .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 18px 10px 9px; letter-spacing: -.3px;
}
.gal-item:hover .ph { filter: brightness(1.1); }

/* ── 풋터 ── */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.82);
  padding: 30px 0;
  text-align: center;
}
.footer-info {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 8px 18px; font-size: 14.5px;
  margin-bottom: 14px;
}
.footer-info .sep { color: rgba(255,255,255,.28); }
.footer-info b { color: #fff; font-weight: 500; }
.copyright { font-size: 13px; color: rgba(255,255,255,.6); }
.powered {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.72);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
}
.powered b { color: var(--gold-bright); font-weight: 700; letter-spacing: .3px; }

/* ── 공지 상세 페이지 ── */
.notice-detail { max-width: 860px; margin: 0 auto; padding: 48px 0 64px; }
.notice-detail-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 40px;
  box-shadow: var(--shadow-sm);
}
.notice-detail h1 {
  font-size: 26px; font-weight: 700; color: var(--ink);
  line-height: 1.4; letter-spacing: -.4px; margin-bottom: 16px;
}
.notice-detail-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted); padding-bottom: 20px;
  border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.notice-detail-body {
  font-size: 16px; line-height: 1.9; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.notice-detail-share {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.notice-detail-share span { font-size: 14px; font-weight: 600; color: var(--muted); }
.replies-section { margin-top: 36px; }
.replies-section h3 {
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin-bottom: 16px; letter-spacing: -.3px;
}
.reply-item {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 10px;
}
.reply-author { font-size: 14px; font-weight: 700; color: var(--green-700); margin-bottom: 6px; }
.reply-content { font-size: 15px; color: var(--ink); line-height: 1.6; }
.reply-form { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.reply-form input, .reply-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--ink);
}
.reply-form textarea { min-height: 100px; resize: vertical; }
.reply-submit {
  align-self: flex-end; padding: 12px 28px;
  background: var(--green-700); color: #fff;
  border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.reply-submit:hover { background: var(--green-600); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 24px; font-size: 14px; color: var(--muted);
  transition: color .15s;
}
.back-link:hover { color: var(--green-700); }

/* ── 반응형 ── */
@media (max-width: 1100px) and (min-width: 769px) {
  .nav-item > a { padding: 0 14px; font-size: 15px; }
  .nav-item > a::after { left: 14px; right: 14px; }
}
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { max-width: 640px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  .util-bar .wrap { justify-content: center; }
  .site-header .wrap { gap: 12px; padding: 16px; }
  .brand-logo { padding: 6px 10px; }
  .brand-logo img { height: 44px; }

  .nav-toggle { display: flex; }
  .main-nav .wrap { justify-content: flex-start; min-height: 52px; }

  .nav-list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--green-700);
    box-shadow: var(--shadow-md);
    z-index: 50;
  }
  .main-nav.open .nav-list { display: flex; }

  .nav-item > a {
    width: 100%; height: 52px; padding: 0 24px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .nav-item > a::after { display: none; }
  .nav-item:hover .sub-menu { display: none; }

  /* 모바일 서브메뉴 */
  .sub-menu {
    position: static;
    background: rgba(0,0,0,.18);
    border-top: none;
    box-shadow: none;
  }
  .nav-item.open .sub-menu { display: block; }
  .sub-menu li a { padding: 8px 36px; font-size: 13px; }

  .hero-inner { padding: 44px 18px 28px; }
  .search-panel { padding: 20px 18px 24px; }
  .search-row button { width: 56px; }

  .ax-notice-card { grid-template-columns: 1fr; }
  .thumb { width: 100%; height: 170px; }
  .post-footer { flex-direction: column; align-items: flex-start; }

  .notice-detail-card { padding: 24px 18px; }
  .notice-detail h1 { font-size: 21px; }

  .footer-info { flex-direction: column; gap: 6px; }
  .footer-info .sep { display: none; }
}
@media (min-width: 769px) {
  .nav-list { display: flex !important; }
}

/* ── 공고 상세 페이지 (작업지시서 v3.0) ── */
.ann-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ann-detail-head .cat-badge {
  display: inline-block; background: var(--green-700); color: #fff;
  font-size: 12px; font-weight: 600; border-radius: 14px; padding: 4px 12px;
}
.dday-badge { font-size: 12px; font-weight: 700; border-radius: 14px; padding: 4px 11px; }
.dday-active { background: #fdecea; color: #c0392b; }
.dday-today  { background: #c0392b; color: #fff; }
.dday-end    { background: #eef0ef; color: #8a948e; }

.ann-summary-box {
  background: #f6faf7; border: 1px solid #d8e8de; border-radius: 14px;
  padding: 20px 22px; margin: 20px 0;
}
.ann-summary-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.ann-ai-chip {
  background: var(--green-900); color: #fff; font-size: 11.5px; font-weight: 700;
  border-radius: 6px; padding: 3px 9px; letter-spacing: .02em;
}
.ann-summary-note { font-size: 12px; color: var(--muted); }
.ann-summary-list { margin: 0; }
.ann-row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e6f0ea; }
.ann-row:last-child { border-bottom: none; }
.ann-row dt { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--green-900); }
.ann-row dd { margin: 0; font-size: 14px; line-height: 1.65; color: #2b3a32; }

.ann-source-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 18px;
  background: #fff; border: 1.5px solid var(--green-700); color: var(--green-900);
  font-size: 14px; font-weight: 600; border-radius: 10px; padding: 11px 18px;
  text-decoration: none; transition: background .12s, color .12s;
}
.ann-source-btn:hover { background: var(--green-900); color: #fff; }

@media (max-width: 768px) {
  .ann-summary-box { padding: 16px 16px; }
  .ann-row { grid-template-columns: 72px 1fr; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * 회원 인증 — 로그인 / 회원가입 (클로드디자인 원본 의도 복원)
 * ═══════════════════════════════════════════════════════════════════════════ */

/* 유틸바 회원 상태 */
.util-member-name { font-weight: 600; color: #fff; }
.util-grade-chip {
  display: inline-block;
  background: var(--gold); color: var(--green-900);
  border-radius: 4px; padding: 1px 7px;
  font-size: 11px; font-weight: 700; margin-left: 5px;
}

/* 로그인/회원가입 페이지 래퍼 */
.member-auth-main {
  min-height: calc(100vh - 220px);
  display: flex; align-items: center;
  padding: 48px 0;
}
.auth-card {
  max-width: 480px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 40px;
  box-shadow: var(--shadow-md);
}
.auth-card-head { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 26px; font-weight: 700; color: var(--green-800); }
.auth-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

.auth-error {
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #b91c1c; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 20px; font-size: 14px;
}
.auth-success {
  background: #f0fdf4; border: 1px solid #86efac;
  color: #166534; border-radius: 10px; padding: 28px 24px; text-align: center;
}
.auth-success-icon { font-size: 48px; margin-bottom: 12px; }
.auth-success h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.auth-success p { font-size: 14px; line-height: 1.7; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.auth-field .hint { font-size: 12px; color: var(--muted); }
.auth-field .required { color: #e53e3e; }
.auth-field input {
  height: 48px; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 0 14px; font-size: 15px; font-family: inherit;
  color: var(--ink); background: #fff; transition: border-color .15s;
}
.auth-field input:focus { outline: none; border-color: var(--green-600); }
.auth-field input:disabled { background: #f8faf8; color: var(--muted); cursor: not-allowed; }

.auth-btn {
  height: 52px; background: var(--green-700); color: #fff; border: none;
  border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit; width: 100%;
  transition: background .15s;
}
.auth-btn:hover { background: var(--green-600); }

.auth-footer-links {
  text-align: center; margin-top: 20px;
  font-size: 14px; color: var(--muted);
}
.auth-footer-links a { color: var(--green-700); font-weight: 600; margin-left: 8px; }
.auth-footer-links a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
 * 마이페이지
 * ═══════════════════════════════════════════════════════════════════════════ */
.mypage-wrap {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 32px; align-items: start; padding: 40px 0;
}
.mypage-aside { position: sticky; top: 70px; }

.mypage-profile-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 20px;
  text-align: center; box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.mypage-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-800); color: #fff;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.mypage-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.mypage-grade-badge {
  display: inline-block; border-radius: 999px;
  padding: 4px 14px; font-size: 12px; font-weight: 700;
  margin: 8px 0;
}
.mypage-grade-badge.g-op { background: var(--gold); color: var(--green-900); }
.mypage-grade-badge.g-co { background: #e0f2fe; color: #0369a1; }
.mypage-grade-badge.g-re { background: #f0fdf4; color: var(--green-700); }
.mypage-grade-badge.g-as { background: #f4f6f4; color: var(--muted); }
.mypage-email { font-size: 13px; color: var(--muted); margin-top: 4px; }

.mypage-nav {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
}
.mypage-nav-item {
  display: block; padding: 14px 20px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line); transition: background .12s;
}
.mypage-nav-item:last-child { border-bottom: none; }
.mypage-nav-item:hover, .mypage-nav-item.active {
  background: #f0fdf4; color: var(--green-700);
}
.mypage-nav-item.logout { color: #e53e3e; }
.mypage-nav-item.logout:hover { background: #fef2f2; }

.mypage-content { min-width: 0; }
.mypage-section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.mypage-section-title { font-size: 20px; font-weight: 700; color: var(--green-800); margin-bottom: 6px; }
.mypage-section-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.profile-form .profile-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 24px;
}
.mypage-quick-links { display: flex; flex-wrap: wrap; gap: 12px; }
.mypage-quick-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px;
  background: var(--green-800); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .12s;
}
.mypage-quick-btn:hover { background: var(--green-700); }

@media (max-width: 768px) {
  .mypage-wrap { grid-template-columns: 1fr; }
  .mypage-aside { position: static; }
  .profile-form .profile-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 18px; }
}
/* ═══════════════════════════════════════════════════════════════════════════
 * 목표: wp-theme/ax-jeonbuk/style.css  맨 끝에 아래 블록을 추가.
 * 운영자 관리 페이지(member-admin.php) 전용 스타일.
 * 기존 :root 토큰(--green-*, --gold, --ink, --muted, --line, --bg, --card,
 *   --shadow-*, --r)과 .mypage-*/.auth-*/.mypage-grade-badge 를 최대 재사용한다.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* 본문 폭 — 운영자 콘솔은 표가 많아 사이드 좁게/본문 넓게 */
.adm-wrap { grid-template-columns: 240px 1fr; }

/* 사이드 nav 항목에 배지 정렬 */
.adm-nav-item { display: flex; align-items: center; justify-content: space-between; }
.adm-nav-badge {
  background: var(--gold); color: var(--green-900);
  font-size: 11px; font-weight: 700; line-height: 1;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}

/* 섹션 헤더 (제목 + 우측 버튼) */
.adm-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.adm-section-head .mypage-section-sub { margin-bottom: 18px; }
.adm-sub-h { font-size: 15px; font-weight: 700; color: var(--ink); margin: 26px 0 14px; }

/* ── 버튼 ── */
.adm-btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.adm-btn.sm { height: 38px; padding: 0 14px; font-size: 13px; }
.adm-btn.primary { background: var(--green-700); color: #fff; }
.adm-btn.primary:hover { background: var(--green-600); }
.adm-btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.adm-btn.ghost:hover { background: var(--bg); }

/* 행 내 작은 액션 버튼 */
.adm-row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.adm-inline { display: inline; margin: 0; }
.adm-ico {
  height: 34px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--line); background: #fff; color: var(--green-700);
  transition: background .12s, border-color .12s, color .12s;
}
.adm-ico:hover { background: #f0fdf4; border-color: var(--green-500); }
.adm-ico.ok { color: #fff; background: var(--green-600); border-color: var(--green-600); }
.adm-ico.ok:hover { background: var(--green-500); }
.adm-ico.danger { color: #c0392b; }
.adm-ico.danger:hover { background: #fef2f2; border-color: #fca5a5; }

/* ── 통계 카드 ── */
.adm-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0 8px; }
.adm-stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.adm-stat.hl { background: #fffdf4; border-color: #f0e0a8; }
.adm-stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.adm-stat-value { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.adm-stat-value em { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 3px; font-style: normal; }
.adm-stat-link { font-size: 13px; font-weight: 700; color: var(--green-700); margin-top: 2px; }
.adm-stat-link:hover { text-decoration: underline; }

/* ── 등급 분포 막대 ── */
.adm-bars { display: flex; flex-direction: column; gap: 12px; }
.adm-bar-row { display: grid; grid-template-columns: 92px 1fr 50px; align-items: center; gap: 12px; }
.adm-bar-track { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.adm-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green-700), var(--green-500)); border-radius: 6px; transition: width .5s ease; }
.adm-bar-num { font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; }

/* ── 툴바 (검색/필터) ── */
.adm-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.adm-search { flex: 1 1 240px; display: flex; }
.adm-search input {
  width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0 14px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.adm-search input:focus { outline: none; border-color: var(--green-600); }
.adm-select {
  height: 44px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; cursor: pointer;
}
.adm-select:focus { outline: none; border-color: var(--green-600); }

/* ── 회원/공지 등록 토글 폼 ── */
.adm-reg-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; margin: 4px 0 20px;
}
.adm-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-reg-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.adm-textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; line-height: 1.6; resize: vertical;
}
.adm-textarea:focus { outline: none; border-color: var(--green-600); }
.adm-check-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.adm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--green-700); }

/* ── 데이터 테이블 ── */
.adm-table-wrap {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); margin-top: 6px; background: #fff;
}
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th {
  text-align: left; padding: 13px 16px; background: #fafbfa; color: var(--muted);
  font-weight: 700; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.adm-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: #fafcfa; }
.adm-table tr.is-off { opacity: .5; }
.adm-table tr.is-pin { background: #fffdf4; }
.adm-table .ta-r { text-align: right; }
.adm-table .ta-c { text-align: center; }
.adm-table .muted { color: var(--muted); }
.adm-table .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.adm-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.adm-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.adm-dot.on { color: var(--green-700); } .adm-dot.on::before { background: var(--green-500); }
.adm-dot.off { color: var(--muted); } .adm-dot.off::before { background: #b6bdb8; }

/* 배지 */
.adm-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 7px; }
.adm-badge.wait { background: #fff4e0; color: #b7791f; }
.adm-badge.pin { background: var(--gold); color: var(--green-900); }

/* 페이지네이션 */
.adm-pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.adm-pg {
  min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink);
}
.adm-pg.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.adm-pg:hover:not(.active) { background: var(--bg); }

/* ── 정보수정 요청 카드 ── */
.adm-req-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.adm-req-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.adm-req-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.adm-req-who { font-weight: 700; color: var(--ink); }
.adm-req-date { font-size: 13px; color: var(--muted); }
.adm-req-changes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.adm-chip { background: #f0fdf4; border: 1px solid #cfe9d8; border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--ink); }
.adm-chip b { color: var(--green-700); }
.adm-req-actions { display: flex; gap: 9px; }

/* ── 빈 상태 ── */
.adm-empty { text-align: center; padding: 48px 20px; }
.adm-empty-ic { font-size: 40px; margin-bottom: 10px; }
.adm-empty-t { font-size: 16px; font-weight: 700; color: var(--ink); }
.adm-empty-s { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ── 모달 ── */
.adm-modal-bg {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,40,28,.42);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.adm-modal-bg[hidden] { display: none; }
.adm-modal { background: #fff; border-radius: 16px; width: 440px; max-width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.adm-modal.lg { width: 560px; }
.adm-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.adm-modal-head h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.adm-x { width: 34px; height: 34px; border: none; background: none; cursor: pointer; font-size: 18px; color: var(--muted); border-radius: 8px; }
.adm-x:hover { background: var(--bg); }
.adm-modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.adm-modal-sub { font-size: 14px; color: var(--muted); }
.adm-modal-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.adm-grade-opts { display: flex; flex-direction: column; gap: 8px; }
.adm-grade-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .12s; }
.adm-grade-opt:hover { border-color: var(--green-500); }
.adm-grade-opt input { width: 18px; height: 18px; accent-color: var(--green-700); }

/* ── 반응형: 모바일에서 테이블을 카드형으로 ── */
@media (max-width: 768px) {
  .adm-wrap { grid-template-columns: 1fr; }
  .adm-stat-grid { grid-template-columns: 1fr; }
  .adm-reg-grid { grid-template-columns: 1fr; }
  .adm-section-head { flex-direction: column; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .adm-table td { border: none; padding: 7px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .adm-table td::before { content: attr(data-l); font-size: 12px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
  .adm-table td.hide-sm { display: flex; }
  .adm-table .ta-r, .adm-row-actions { justify-content: flex-end; }
  .adm-bar-row { grid-template-columns: 80px 1fr 44px; }
}

/* ═══════════════════════════════════════════════════════════════
   AX-Diag 관리자 경영진단 페이지 (?page=ax-diag)
   ═══════════════════════════════════════════════════════════════ */

/* 업로드 폼 — 파일 input 높이 보정 */
.axd-upload-form input[type="file"] { font-size: 14px; color: var(--text); }

/* ── 카드 ── */
.axd-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 20px;
}
.axd-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

/* ── 서브 탭 (경영진단 내부) ── */
.axd-sub-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
}
.axd-sub-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-bottom: none;
  background: transparent;
  transition: color .15s, background .15s;
  margin-bottom: -2px;
}
.axd-sub-tab:hover { color: var(--green-700); background: var(--surface); }
.axd-sub-active {
  color: var(--green-700);
  background: #fff;
  border-color: var(--line) var(--line) #fff;
}

/* ── 콘텐츠 패널 ── */
.axd-content-panel { min-height: 200px; }

/* ── DuPont ROE 트리 ── */
.axd-dupont {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0;
  overflow-x: auto;
}
.axd-dupont-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 120px;
  flex-shrink: 0;
}
.axd-highlight {
  background: var(--green-50, #f0fdf4);
  border-color: var(--green-500, #22c55e);
}
.axd-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.axd-value { font-size: 20px; font-weight: 800; color: var(--text); }
.axd-highlight .axd-value { color: var(--green-700); }
.axd-op { font-size: 20px; font-weight: 700; color: var(--muted); flex-shrink: 0; }

/* ── 배지 ── */
.axd-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.axd-grade-safe    { background: #dcfce7; color: #166534; }
.axd-grade-warn    { background: #fef9c3; color: #713f12; }
.axd-grade-danger  { background: #fee2e2; color: #7f1d1d; }
.axd-status-done     { background: #dcfce7; color: #166534; }
.axd-status-pending  { background: #f1f5f9; color: #475569; }
.axd-status-progress { background: #dbeafe; color: #1e40af; }
.axd-status-fail     { background: #fee2e2; color: #7f1d1d; }

/* ── 텍스트 색상 ── */
.axd-pos  { color: #16a34a; font-weight: 700; }
.axd-neg  { color: #dc2626; font-weight: 700; }
.axd-na   { color: var(--muted); font-size: 13px; }

/* ── details/summary ── */
.axd-detail {
  margin-top: 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.axd-detail summary {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  user-select: none;
}
.axd-detail summary:hover { background: #f0fdf4; }
.axd-detail[open] summary { border-bottom: 1.5px solid var(--line); }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .axd-sub-tabs { gap: 4px; }
  .axd-sub-tab  { padding: 8px 11px; font-size: 12px; }
  .axd-dupont   { gap: 6px; }
  .axd-dupont-box { min-width: 90px; padding: 10px 12px; }
  .axd-value    { font-size: 16px; }
}

/* ── 소식/공고 탭 필터 ── */
.ax-tab-bar {
  display: flex;
  gap: 6px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}
.ax-tab {
  padding: 7px 16px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ax-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.ax-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 600px) {
  .ax-tab { padding: 6px 12px; font-size: 12px; }
}
