/* EMENC site main styles
   Fonts: Pretendard + Poppins for KR/EN, Noto Sans JP for JP, Noto Sans SC for CN
   Loaded via header.php (Google Fonts + CDN Pretendard)                       */

:root {
  --c-bg: #ffffff;
  --c-fg: #1a1f2e;
  --c-muted: #6c7383;
  --c-line: #e6e8ee;
  --c-line-2: #f2f4f8;
  --c-primary: #11006F;
  --c-primary-2: #2a2db0;
  --c-accent: #2A99C4;
  --c-danger: #d9333f;
  --c-ok: #2faa6c;
  --c-card: #ffffff;
  --c-tag: #eef3fd;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(10,20,40,.06), 0 1px 2px rgba(10,20,40,.04);
  --shadow-md: 0 10px 30px rgba(10,20,40,.08), 0 2px 6px rgba(10,20,40,.04);
  --header-h: 88px;
  --max-w: 70%;   /* 좌우 여백 15%씩, 콘텐츠 70% */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--c-fg);
  background: #fbfcfe;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-family: "Poppins", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Language-specific fonts — most-used safe family per region */
body.lang-jp {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-cn {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-kr {
  font-family: "Pretendard", "Poppins", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
body.lang-th {
  font-family: "Noto Sans Thai", "Sarabun", "Tahoma", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-ru {
  font-family: "Pretendard", "Roboto", "Inter", "PT Sans", "Segoe UI", system-ui, sans-serif;
}
body.lang-vi {
  /* Vietnamese needs full Latin-Extended-Additional + tone marks support */
  font-family: "Pretendard", "Be Vietnam Pro", "Roboto", "Inter", system-ui, sans-serif;
}
body.lang-fr, body.lang-de, body.lang-es {
  /* Latin-script European languages — Pretendard handles diacritics well */
  font-family: "Pretendard", "Poppins", "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
.muted { color: var(--c-muted); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  max-width: 80%;   /* 로고·메뉴 영역은 좌우 여백 10%씩 */
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-weight: 700; font-size: 20px; letter-spacing: -.02em;
  color: var(--c-fg) !important;
}
.primary-nav { display: flex; gap: 40px; }
.primary-nav a {
  color: var(--c-fg);
  font-weight: 500;
  font-size: 20px;
  padding: 10px 0;
}
.primary-nav a:hover { color: var(--c-primary); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher { position: relative; }
.lang-btn {
  background: var(--c-line-2); border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); padding: 6px 12px; font-weight: 500;
  font-size: 16px; cursor: pointer; color: var(--c-fg);
}
.lang-switcher ul {
  position: absolute; right: 0; top: 100%; margin-top: 6px;
  list-style: none; padding: 6px; min-width: 140px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); display: none;
}
.lang-switcher:hover ul, .lang-switcher:focus-within ul { display: block; }
.lang-switcher li a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--c-fg); }
.lang-switcher li a:hover { background: var(--c-line-2); text-decoration: none; }

.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 36px; height: 36px; padding: 8px; flex-direction: column; gap: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--c-fg); border-radius: 2px; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(160deg, #f1f5fd 0%, #fafbfe 60%);
  border-bottom: 1px solid var(--c-line);
}
.hero-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 18px; color: var(--c-muted); max-width: 640px; }
.hero-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* Buttons */
.btn, .btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; font-size: 16px; font-weight: 500;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn { background: #fff; border-color: var(--c-line); color: var(--c-fg); }
.btn:hover { background: var(--c-line-2); text-decoration: none; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-2); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; text-decoration: none; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #b8262f; }
.btn.small { padding: 5px 10px; font-size: 16px; }

/* Cards / sections */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 56px 20px;
}
.card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h2 { font-size: 20px; margin: 0; }
.link { color: var(--c-primary); font-size: 16px; font-weight: 500; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--c-line-2);
}
.post-list li:last-child { border-bottom: 0; }
.post-list a { color: var(--c-fg); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list time { color: var(--c-muted); font-size: 16px; flex-shrink: 0; }

.feature-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  padding: 56px 20px 80px;
}
.feature-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 12px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  color: var(--c-fg); transition: all .2s;
}
.feature-tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.ft-icon { font-size: 28px; }
.ft-title { font-size: 16px; font-weight: 500; }

/* Footer */
.site-footer {
  border-top: none;
  padding: 42px 0 40px;
  margin-top: 0;
  text-align: center;
  background: linear-gradient(160deg, #11006F 0%, #1a0e8a 60%, #131060 100%);
  color: rgba(255,255,255,.88);
  font-size: 16px;
}
.site-footer p { margin: 6px 0; }
.footer-links a { color: rgba(255,255,255,.85); margin: 0 4px; font-weight: 500; }
.footer-links a:hover { color: #6fd2ff; text-decoration: none; }
.footer-admin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-left: 10px; vertical-align: -5px;
  color: rgba(255,255,255,.7);
}
.footer-admin svg { width: 100%; height: 100%; }
.footer-admin:hover { color: #6fd2ff; }

/* Board */
.board-page { padding: 40px 20px 80px; }
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 18px; margin-bottom: 24px;
  border-bottom: 2px solid var(--c-fg);
}
.board-title { font-size: 28px; margin: 0; font-weight: 700; }
.board-desc { margin: 0; color: var(--c-muted); }
.board-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { display: flex; gap: 4px; }
.search input { padding: 7px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.search button {
  padding: 7px 14px; background: var(--c-fg); color: #fff; border: 0;
  border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
}

.board-table { width: 100%; border-collapse: collapse; }
.board-table thead { background: var(--c-line-2); }
.board-table th, .board-table td {
  padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--c-line);
  font-size: 16px;
}
.board-table th { font-weight: 600; font-size: 16px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.board-table .num-col, .board-table .meta-col, .board-table .adm-col { width: 1%; white-space: nowrap; }
.board-table .subj a { color: var(--c-fg); font-weight: 500; }
.board-table .subj a:hover { color: var(--c-primary); }
.board-table tr.notice-row { background: #fff8e8; }
.board-table .empty { text-align: center; color: var(--c-muted); padding: 40px 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--c-tag); font-size: 16px; color: var(--c-primary); margin-left: 4px; }

.admin-bulk { margin-top: 14px; padding: 10px 14px; background: #fff8e8; border-radius: var(--radius-sm); display: flex; gap: 10px; align-items: center; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  color: var(--c-fg); font-size: 16px;
}
.pager a.on { background: var(--c-fg); color: #fff; border-color: var(--c-fg); }
.pager a:hover { background: var(--c-line-2); text-decoration: none; }

/* Photo grid */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.photo-card { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.photo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.photo-check { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 4px; padding: 2px 4px; }
.photo-thumb {
  width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center;
  background-color: var(--c-line-2);
}
.photo-meta { padding: 12px; }
.photo-title { font-weight: 500; font-size: 16px; color: var(--c-fg); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-sub { color: var(--c-muted); font-size: 16px; }

/* Calendar */
.calendar { width: 100%; border-collapse: separate; border-spacing: 2px; }
.calendar th { background: var(--c-line-2); padding: 8px; font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.calendar th.sun { color: var(--c-danger); }
.calendar th.sat { color: var(--c-primary); }
.calendar td { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); vertical-align: top; padding: 6px; min-height: 90px; height: 90px; position: relative; }
.calendar td.empty { background: var(--c-line-2); border: 0; }
.calendar td.today { background: #f0f6ff; border-color: var(--c-primary); }
.calendar td .d { display: inline-block; font-size: 16px; color: var(--c-muted); font-weight: 600; margin-bottom: 4px; }
.calendar td.sun .d { color: var(--c-danger); }
.calendar td.sat .d { color: var(--c-primary); }
.cal-event { display: block; background: var(--c-primary); color: #fff !important; padding: 2px 6px; border-radius: 3px; font-size: 16px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event:hover { background: var(--c-primary-2); text-decoration: none; }
.cal-nav { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* Post view */
.post-view { padding: 40px 20px 80px; max-width: 900px; }
.crumbs { font-size: 16px; color: var(--c-muted); margin-bottom: 18px; }
.crumbs a { color: var(--c-muted); }
.post-head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid var(--c-fg); }
.post-head h1 { font-size: 30px; }
.post-meta { color: var(--c-muted); font-size: 16px; }
.event-bar { background: #fff8e8; padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; font-weight: 500; }
.post-body { font-size: 16px; line-height: 1.8; padding: 24px 0; min-height: 220px; }
.post-body img { border-radius: var(--radius-sm); margin: 12px 0; }
.attachments-block { background: var(--c-line-2); padding: 16px; border-radius: var(--radius); margin: 24px 0; }
.attachments-block h3 { font-size: 16px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.att-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.att-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.att-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

/* Image gallery at top of post body */
.post-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 24px;
}
.post-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-line-2);
  border: 1px solid var(--c-line);
}
.post-image a {
  display: block;
  text-decoration: none;
}
.post-image a:hover { text-decoration: none; }
.post-image img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  transition: transform .25s;
}
.post-image a:hover img { transform: scale(1.005); }
.post-image figcaption {
  font-size: 16px;
  color: var(--c-muted);
  padding: 8px 14px;
  background: #fff;
  border-top: 1px solid var(--c-line);
  text-align: center;
}

/* Download cards for non-image attachments */
.download-block { background: var(--c-line-2); padding: 18px; border-radius: var(--radius); margin: 24px 0; }
.download-block h3 { font-size: 16px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-fg) !important;
  text-decoration: none !important;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.download-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.download-card .dl-icon {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}
.download-card .dl-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.download-card .dl-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--c-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.download-card .dl-meta {
  font-size: 16px;
  color: var(--c-muted);
}
.download-card .dl-ext {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--c-tag);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .02em;
}
.download-card .dl-action {
  font-size: 18px;
  color: var(--c-muted);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.download-card:hover .dl-action {
  color: var(--c-primary);
  transform: translateY(2px);
}

@media (max-width: 520px) {
  .download-cards { grid-template-columns: 1fr; }
  .post-images { gap: 10px; }
}
.post-actions { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.prev-next a { color: var(--c-fg); font-size: 16px; }
.comments { margin-top: 40px; }
.comments ul { list-style: none; padding: 0; margin: 0; }
.comments li { padding: 14px 0; border-bottom: 1px solid var(--c-line-2); }
.comments li strong { margin-right: 8px; }
.comments p { margin: 8px 0 0; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px;
}

/* Write form */
.post-write { padding: 40px 20px 80px; max-width: 900px; }
.write-form { display: flex; flex-direction: column; gap: 16px; }
.write-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 16px; }
.write-form input[type=text],
.write-form input[type=datetime-local],
.write-form textarea {
  padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px;
}
.write-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.write-form fieldset.attachments { border: 1px dashed var(--c-line); padding: 16px; border-radius: var(--radius-sm); }
.write-form .file-row { margin: 6px 0; }
.write-form .form-actions { display: flex; gap: 10px; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 16px; }
.alert.ok  { background: #e6f7ee; color: #145a36; }
.alert.err { background: #fde6e8; color: #921c25; }

/* ====================================================================
   Webzine (웹진) — magazine-style skin
   ==================================================================== */
.webzine-page { padding: 32px 20px 80px; }

/* Masthead */
.wz-masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 28px;
  border-bottom: 3px double var(--c-fg);
}
.wz-masthead-text { flex: 1 1 300px; }
.wz-kicker {
  font-size: 16px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: 8px;
}
.wz-title {
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 800;
  letter-spacing: -.025em; margin: 0 0 8px;
  font-family: "Pretendard", "Playfair Display", Georgia, serif;
}
.wz-tagline { color: var(--c-muted); margin: 0; font-size: 16px; max-width: 640px; }
.wz-masthead-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wz-search input { min-width: 220px; }

/* Hero cover story */
.wz-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 48px; color: var(--c-fg);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .15s;
}
.wz-hero:hover { box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); }
.wz-hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  background-color: var(--c-line-2);
}
.wz-hero-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--c-fg); color: #fff;
  padding: 6px 12px; font-size: 16px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.wz-hero-body { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.wz-hero-title {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 700;
  margin: 0; line-height: 1.25; letter-spacing: -.02em;
  font-family: "Pretendard", "Playfair Display", Georgia, serif;
}
.wz-hero-excerpt { color: var(--c-muted); font-size: 16px; line-height: 1.7; margin: 0; }
.wz-meta { display: flex; gap: 6px; align-items: center; color: var(--c-muted); font-size: 16px; flex-wrap: wrap; }
.wz-meta strong { color: var(--c-fg); font-weight: 600; }
.wz-meta-small { display: flex; gap: 6px; align-items: center; color: var(--c-muted); font-size: 16px; flex-wrap: wrap; }
.wz-dot { opacity: .5; }

/* Section heading */
.wz-section { margin: 0 0 56px; }
.wz-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.wz-section-title {
  font-size: 16px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-fg); margin: 0;
  white-space: nowrap;
}
.wz-section-rule { flex: 1; height: 1px; background: var(--c-line); }

/* Tags */
.wz-tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.wz-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--c-tag); color: var(--c-primary);
  font-size: 16px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}

/* Editor's picks — horizontal scroller on mobile, grid on desktop */
.wz-picks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.wz-pick {
  display: flex; flex-direction: column; color: var(--c-fg);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: all .15s;
}
.wz-pick:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: var(--c-primary); box-shadow: var(--shadow-md);
}
.wz-pick-thumb {
  width: 100%; aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  background-color: var(--c-line-2);
}
.wz-pick-body { padding: 14px 14px 16px; }
.wz-pick-title {
  font-size: 16px; font-weight: 600; line-height: 1.35;
  margin: 0 0 8px; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article grid */
.wz-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.wz-card {
  position: relative;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: all .18s;
}
.wz-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.wz-card--notice { border-color: var(--c-accent); }
.wz-card-link { display: block; color: var(--c-fg); }
.wz-card-link:hover { text-decoration: none; }
.wz-card-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  background-color: var(--c-line-2);
}
.wz-card-flag {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; font-size: 16px; font-weight: 700;
  border-radius: 4px; background: rgba(255,255,255,.95); color: var(--c-fg);
  letter-spacing: .04em;
}
.wz-card-flag--notice { background: var(--c-accent); color: #fff; }
.wz-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.wz-card-title {
  font-size: 17px; font-weight: 700; line-height: 1.3;
  letter-spacing: -.015em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Pretendard", "Playfair Display", Georgia, serif;
}
.wz-card-excerpt {
  font-size: 16px; color: var(--c-muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.wz-check {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: rgba(255,255,255,.95); border-radius: 4px; padding: 2px 6px;
}

.wz-empty {
  text-align: center; color: var(--c-muted);
  padding: 80px 20px; border: 1px dashed var(--c-line); border-radius: var(--radius);
  background: var(--c-line-2);
}

/* Stack hero on tablet & below */
@media (max-width: 860px) {
  .wz-hero { grid-template-columns: 1fr; }
  .wz-hero-image { aspect-ratio: 16 / 9; }
  .wz-hero-body { padding: 24px 22px 26px; }
  .wz-grid { gap: 22px; }
}
@media (max-width: 520px) {
  .wz-masthead { gap: 14px; padding-bottom: 16px; margin-bottom: 22px; }
  .wz-search input { min-width: 0; flex: 1; }
  .wz-section { margin-bottom: 40px; }
  .wz-picks { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .wz-grid { grid-template-columns: 1fr; }
}

/* ==== MarineVoy landing =============================================== */
.logo-img { display: flex; align-items: center; gap: 10px; }
.logo-img img { height: 42px; width: auto; }
.logo-img span { font-weight: 700; font-size: 19px; color: var(--c-primary); letter-spacing: -.02em; }

.mv-hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(9,2,60,.82) 0%, rgba(13,8,84,.62) 45%, rgba(10,30,70,.35) 100%),
    url('/assets/images/hero-navy.jpg') center 38% / cover no-repeat;
  border-bottom: 1px solid var(--c-line);
}
.mv-hero .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-top: 120px; padding-bottom: 120px; flex-wrap: wrap;
}
.mv-hero-text { flex: 1 1 460px; }
.mv-hero-badge {
  display: inline-block; background: rgba(255,255,255,.16); color: #cfeaff;
  border: 1px solid rgba(255,255,255,.28);
  font-size: 16px; font-weight: 600; padding: 5px 14px; border-radius: 999px;
  margin-bottom: 18px; letter-spacing: .02em;
}
.mv-hero-title { font-size: clamp(32px, 4.8vw, 50px); font-weight: 800; line-height: 1.22; color: #fff; text-shadow: 0 2px 14px rgba(4,0,40,.45); }
.mv-hero-title em { font-style: normal; color: #6fd2ff; }
.mv-hero-sub { font-size: 18px; color: rgba(255,255,255,.88); margin-top: 16px; max-width: 580px; text-shadow: 0 1px 8px rgba(4,0,40,.4); }
.mv-hero-slogan { margin-top: 12px; font-weight: 700; color: #9fe0ff; font-size: 18px; }
.mv-hero .btn-primary { background: #fff; color: var(--c-primary); border-color: #fff; font-weight: 700; }
.mv-hero .btn-primary:hover { background: #dff1fc; color: var(--c-primary); }
.mv-hero .btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.mv-hero .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.mv-hero-logo { flex: 0 1 320px; display: flex; justify-content: center; }
.mv-hero-logo img {
  max-width: 240px; background: rgba(255,255,255,.94);
  padding: 30px 34px; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(3,0,30,.45);
}

.mv-section { padding: 64px 0; }
.mv-section-head { text-align: center; margin-bottom: 36px; }
.mv-section-head h2 { font-size: 30px; font-weight: 800; }
.mv-section-head p { color: var(--c-muted); max-width: 640px; margin: 8px auto 0; }

/* 정체성(모임소개) — 시네마틱 포토 카드 */
.mv-identity {
  position: relative; color: #fff;
  padding: 96px 0 96px;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(64,120,255,.22), transparent 70%),
    radial-gradient(900px 500px at -10% 110%, rgba(42,153,196,.18), transparent 70%),
    linear-gradient(172deg, #070b2c 0%, #0c1050 55%, #11006F 100%);
  border-bottom: 1px solid var(--c-line);
}
.mv-overline {
  display: inline-block; letter-spacing: .35em; font-weight: 700; font-size: 16px;
  color: #6fd2ff; text-transform: uppercase;
}
.mv-id-head { max-width: 720px; }
.mv-id-head h2 {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.28;
  color: #fff; margin: 14px 0 12px; letter-spacing: -.01em;
}
.mv-id-head h2 em { font-style: normal; color: #6fd2ff; }
.mv-id-head p { color: rgba(255,255,255,.72); font-size: 18px; margin: 0; }

.mv-id-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.mv-id-card {
  position: relative; height: 480px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(2,4,30,.5);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mv-id-card:hover {
  transform: translateY(-8px);
  border-color: rgba(111,210,255,.55);
  box-shadow: 0 34px 80px rgba(2,4,30,.65);
}
.mv-id-card .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.2,.6,.2,1);
}
.mv-id-card:hover .bg { transform: scale(1.08); }
.mv-id-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(5,8,40,.02) 32%, rgba(5,8,40,.46) 60%, rgba(3,3,30,.94) 100%);
}
.mv-id-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px 30px; }
.mv-id-card .num {
  display: inline-block; font-weight: 800; font-size: 16px; letter-spacing: .22em;
  color: #6fd2ff; margin-bottom: 10px;
}
.mv-id-card .num::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 46px; height: 2px; margin-left: 12px;
  background: linear-gradient(90deg, #6fd2ff, transparent);
}
.mv-id-card h3 { font-size: 25px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.mv-id-card p { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.65; margin: 0; }

/* 주요 사업 — 에디토리얼 그리드 (단색 모노라인 아이콘) */
.mv-business {
  background: #fbfcfe;
  border-bottom: 1px solid var(--c-line);
  padding: 110px 0 110px;
}
.mv-biz-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 56px; flex-wrap: wrap;
}
.mv-overline2 {
  display: inline-block; letter-spacing: .35em; font-weight: 700; font-size: 16px;
  color: var(--c-accent); text-transform: uppercase; margin-bottom: 10px;
}
.mv-biz-head h2 {
  font-size: clamp(42px, 5vw, 60px); font-weight: 800; line-height: 1.05;
  color: var(--c-primary); letter-spacing: -.02em; margin: 0;
}
.mv-biz-head > p {
  font-size: 19px; color: var(--c-muted); text-align: right;
  line-height: 1.7; margin: 0 0 6px;
}
.mv-biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.mv-biz-card {
  position: relative; display: block; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line); border-radius: 20px;
  padding: 44px 44px 40px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-decoration: none;
}
.mv-biz-card:hover {
  transform: translateY(-6px);
  border-color: rgba(17,0,111,.28);
  box-shadow: 0 24px 60px rgba(16,20,60,.12);
  text-decoration: none;
}
.mv-biz-card .ghost {
  position: absolute; top: 18px; right: 28px;
  font-size: 92px; font-weight: 800; line-height: 1;
  color: #f0f3fa; letter-spacing: -.04em; user-select: none;
  transition: color .22s ease;
}
.mv-biz-card:hover .ghost { color: #e4ebf8; }
.mv-biz-card .head-row {
  position: relative; display: flex; align-items: center; gap: 18px;
  margin-bottom: 16px;
}
.mv-biz-card .icon {
  display: inline-flex; flex: 0 0 auto; width: 52px; height: 52px;
  color: var(--c-primary);
}
.mv-biz-card .icon svg { width: 100%; height: 100%; }
.mv-biz-card h3 {
  font-size: 28px; font-weight: 800;
  color: var(--c-fg); letter-spacing: -.01em; margin: 0;
}
.mv-biz-card p {
  position: relative; font-size: 17px; color: var(--c-muted);
  line-height: 1.75; margin: 0 0 26px; max-width: 46ch;
}
.mv-biz-card .go {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--c-primary);
}
.mv-biz-card .go i {
  font-style: normal; transition: transform .22s ease;
}
.mv-biz-card:hover .go i { transform: translateX(6px); }


@media (max-width: 960px) {
  .mv-biz-grid { grid-template-columns: 1fr; }
  .mv-biz-card { padding: 34px 30px 32px; }
  .mv-biz-head > p { text-align: left; }
  .mv-id-grid { grid-template-columns: 1fr; }
  .mv-id-card { height: 400px; }
}
@media (max-width: 560px) {
  .mv-hero .container { padding-top: 72px; padding-bottom: 72px; }
  .mv-hero-logo img { max-width: 200px; }
}

/* 좁은 화면에서는 여백 15% 대신 전체 폭 사용 */
@media (max-width: 900px) {
  .container, .site-header .container { max-width: 100%; }
}

/* ==== 새소식 (공지/마린보이 소식) ===================================== */
.mv-news {
  background: linear-gradient(180deg, #e8effa 0%, #f1f6fd 100%);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 100px 0 110px;
}
.mv-news-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 48px; flex-wrap: wrap;
}
.mv-news-head h2 {
  font-size: clamp(38px, 4.4vw, 52px); font-weight: 800; line-height: 1.05;
  color: var(--c-primary); letter-spacing: -.02em; margin: 0;
}
.mv-news-head > p {
  font-size: 19px; color: var(--c-muted); text-align: right; line-height: 1.7; margin: 0 0 6px;
}
.mv-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.mv-news-panel {
  background: #fff; border: 1px solid var(--c-line); border-radius: 20px;
  padding: 30px 34px 16px; box-shadow: 0 14px 40px rgba(16,24,64,.07);
}
.mv-news-panel .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; border-bottom: 2px solid var(--c-primary);
}
.mv-news-panel .panel-head h3 { font-size: 24px; font-weight: 800; color: var(--c-fg); margin: 0; }
.mv-news-panel .panel-head .more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 700; color: var(--c-primary);
}
.mv-news-panel .panel-head .more i { font-style: normal; transition: transform .2s ease; }
.mv-news-panel .panel-head .more:hover { text-decoration: none; }
.mv-news-panel .panel-head .more:hover i { transform: translateX(5px); }

.mv-post-list { list-style: none; margin: 0; padding: 0; }
.mv-post-list li + li { border-top: 1px solid var(--c-line-2); }
.mv-post-list a {
  display: flex; align-items: center; gap: 18px;
  padding: 15px 6px; color: var(--c-fg);
}
.mv-post-list a:hover { text-decoration: none; }
.mv-post-list .date {
  flex: 0 0 74px; text-align: center;
  background: #eef3fc; border-radius: 12px; padding: 9px 0 8px;
  transition: background .2s ease;
}
.mv-post-list a:hover .date { background: #dfe9fa; }
.mv-post-list .date b { display: block; font-size: 21px; font-weight: 800; color: var(--c-primary); line-height: 1.1; }
.mv-post-list .date em { font-style: normal; font-size: 16px; color: var(--c-muted); letter-spacing: .01em; }
.mv-post-list .subj {
  flex: 1; min-width: 0; font-size: 17px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s ease;
}
.mv-post-list a:hover .subj { color: var(--c-primary); }
.mv-post-list .arrow {
  flex: 0 0 auto; color: var(--c-primary); font-weight: 700;
  opacity: 0; transform: translateX(-8px); transition: all .22s ease;
}
.mv-post-list a:hover .arrow { opacity: 1; transform: translateX(0); }
.mv-post-list .empty {
  padding: 44px 0 48px; text-align: center; color: var(--c-muted); font-size: 17px; line-height: 1.9;
}
.mv-post-list .empty small { font-size: 16px; color: #9aa3b5; }

/* ==== 게시판 바로가기 타일 (새소식 섹션 내부) ==== */
.mv-quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 28px; }
.mv-quick-tile {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  padding: 34px 10px 30px; color: var(--c-fg);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.mv-quick-tile .qicon { display: inline-flex; width: 46px; height: 46px; color: var(--c-primary); transition: color .22s ease; }
.mv-quick-tile .qicon svg { width: 100%; height: 100%; }
.mv-quick-tile .qlabel { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mv-quick-tile:hover {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
  transform: translateY(-7px); text-decoration: none;
  box-shadow: 0 20px 44px rgba(17,0,111,.28);
}
.mv-quick-tile:hover .qicon { color: #6fd2ff; }

@media (max-width: 1100px) {
  .mv-quick-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .mv-news-grid { grid-template-columns: 1fr; }
  .mv-news-head > p { text-align: left; }
}
@media (max-width: 560px) {
  .mv-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==== 서브페이지 히어로 (바다·해군 배경) ============================== */
.mv-subhero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(8,3,52,.86) 0%, rgba(13,10,80,.66) 50%, rgba(10,26,64,.45) 100%),
    url('/assets/images/subhero.jpg') center 60% / cover no-repeat;
  border-bottom: 1px solid var(--c-line);
}
.mv-subhero .container { padding-top: 84px; padding-bottom: 74px; }
.mv-subhero .crumb {
  display: inline-block; letter-spacing: .32em; font-weight: 700; font-size: 16px;
  color: #6fd2ff; text-transform: uppercase; margin-bottom: 12px;
}
.mv-subhero h1 {
  font-size: clamp(34px, 4vw, 48px); font-weight: 800; color: #fff;
  letter-spacing: -.01em; margin: 0; text-shadow: 0 2px 14px rgba(4,0,40,.5);
}
.mv-subhero p {
  margin: 12px 0 0; font-size: 18px; color: rgba(255,255,255,.82);
  text-shadow: 0 1px 8px rgba(4,0,40,.4);
}
/* 서브히어로가 있으면 게시판 자체 타이틀은 숨김(도구는 유지) */
.mv-subhero ~ .board-page .board-title,
.mv-subhero ~ .board-page .board-desc { display: none; }
.mv-subhero ~ .board-page { padding-top: 40px; }

/* ==== 모임소개 페이지 ================================================= */
.ab-h2 {
  font-size: clamp(36px, 4.2vw, 50px); font-weight: 800; line-height: 1.08;
  color: var(--c-primary); letter-spacing: -.02em; margin: 0;
}
.ab-story { padding: 100px 0; background: #fff; }
.ab-story-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: start; }
.ab-story-photo { position: sticky; top: 120px; }
.ab-story-text h2 {
  font-size: clamp(32px, 3.8vw, 44px); font-weight: 800; line-height: 1.25;
  color: var(--c-fg); letter-spacing: -.01em; margin: 14px 0 22px;
}
.ab-story-text p { font-size: 18px; color: #3d4557; line-height: 1.85; margin: 0 0 16px; }
.ab-slogan {
  font-weight: 800; color: var(--c-primary) !important; font-size: 20px !important;
  margin-top: 26px !important;
}
.ab-story-photo img {
  border-radius: 20px; box-shadow: 0 24px 60px rgba(16,24,64,.18);
}
.ab-meaning { background: linear-gradient(172deg, #0a0d38 0%, #11006F 100%); padding: 84px 0; }
.ab-meaning-inner { display: flex; align-items: center; gap: 56px; }
.ab-meaning-inner img {
  width: 200px; background: rgba(255,255,255,.95); border-radius: 18px;
  padding: 26px 28px; box-shadow: 0 18px 50px rgba(3,0,30,.45); flex: 0 0 auto;
}
.ab-meaning-inner h2 {
  color: #fff; font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; margin: 0 0 14px;
}
.ab-meaning-inner h2 span {
  display: inline-block; margin-left: 14px; font-size: 18px; font-weight: 600;
  color: #6fd2ff; letter-spacing: .04em; vertical-align: 6px;
}
.ab-meaning-inner p { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.85; margin: 0; max-width: 640px; }
.ab-meaning-inner b { color: #6fd2ff; }

.ab-values { padding: 100px 0; background: #fbfcfe; border-bottom: 1px solid var(--c-line); }
.ab-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ab-value-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  padding: 36px 32px; border-top: 4px solid var(--c-primary);
  box-shadow: 0 12px 34px rgba(16,24,64,.06);
}
.ab-value-card h3 { font-size: 23px; font-weight: 800; color: var(--c-primary); margin: 0 0 12px; }
.ab-value-card p { font-size: 16.5px; color: var(--c-muted); line-height: 1.75; margin: 0; }

.ab-stats { background: #fff; padding: 84px 0; border-bottom: 1px solid var(--c-line); }
.ab-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.ab-stat b { display: block; font-size: clamp(40px, 4.6vw, 56px); font-weight: 800; color: var(--c-primary); line-height: 1.1; }
.ab-stat b span { color: var(--c-accent); font-size: .6em; vertical-align: 8px; margin-left: 2px; }
.ab-stat em { display: block; font-style: normal; margin-top: 10px; font-size: 17px; color: var(--c-muted); font-weight: 600; }

.ab-org { padding: 100px 0; background: #f4f7fc; border-bottom: 1px solid var(--c-line); }
.ab-org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-org-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  padding: 30px 30px 26px; box-shadow: 0 10px 30px rgba(16,24,64,.06);
}
.ab-org-card.lead { background: var(--c-primary); border-color: var(--c-primary); }
.ab-org-card.lead span { color: #6fd2ff; }
.ab-org-card.lead b, .ab-org-card.lead em { color: #fff; }
.ab-org-card.wide { grid-column: span 3; display: block; }
.ab-org-card span {
  display: block; font-size: 16px; font-weight: 700; letter-spacing: .12em;
  color: var(--c-accent); margin-bottom: 8px;
}
.ab-org-card b { display: block; font-size: 24px; font-weight: 800; color: var(--c-fg); }
.ab-org-card em { display: block; font-style: normal; margin-top: 6px; font-size: 16px; color: var(--c-muted); }

.ab-contact { padding: 90px 0; background: #fff; text-align: center; }
.ab-contact h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; color: var(--c-fg); margin: 0 0 12px; }
.ab-contact p { font-size: 18px; color: var(--c-muted); margin: 0 0 28px; }

@media (max-width: 960px) {
  .ab-story-grid { grid-template-columns: 1fr; gap: 36px; }
  .ab-meaning-inner { flex-direction: column; text-align: center; }
  .ab-value-grid { grid-template-columns: 1fr; }
  .ab-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .ab-org-grid { grid-template-columns: 1fr; }
  .ab-org-card.wide { grid-column: span 1; }
}

/* ==== 헤더 인증/메뉴 대응 ============================================= */
.member-hello { font-size: 16px; color: var(--c-muted); white-space: nowrap; }
.member-hello b { color: var(--c-primary); }
.auth-btn {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  font-size: 16px; font-weight: 700; color: var(--c-primary);
  border: 1px solid var(--c-line); white-space: nowrap;
}
.auth-btn:hover { background: var(--c-line-2); text-decoration: none; }
.auth-btn-fill { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.auth-btn-fill:hover { background: var(--c-primary-2); color: #fff; }
/* PC에서 상단메뉴 한 줄 보장: 화면이 좁아질수록 여백/간격/글자를 단계적으로 축소 */
.primary-nav { flex-wrap: nowrap; }
.primary-nav a { white-space: nowrap; }
@media (max-width: 1700px) {
  .site-header .container { max-width: 96%; }
  .primary-nav { gap: 26px; }
  .primary-nav a { font-size: 19px; }
}
@media (max-width: 1480px) {
  .site-header .container { max-width: 98%; }
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: 18px; }
  .member-hello { display: none; }
}
@media (max-width: 1280px) {
  .primary-nav { gap: 14px; }
  .primary-nav a { font-size: 17px; }
  .logo-img span { display: none; }
  .auth-btn { padding: 7px 10px; font-size: 16px; }
}
@media (max-width: 1024px) {
  .primary-nav { gap: 10px; }
  .primary-nav a { font-size: 16px; }
  .auth-btn { padding: 6px 9px; }
}
/* 960px 이하: 한 줄 유지가 불가능한 폭 — 햄버거 드롭다운으로 전환 */
@media (max-width: 960px) {
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    padding: 8px 0;
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: 14px 20px; border-bottom: 1px solid var(--c-line-2); font-size: 16px; white-space: normal; }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
}

/* ==== 회원가입/로그인 ================================================= */
.narrow2 { max-width: 760px; }
.mv-auth { padding: 80px 0 100px; background: #fbfcfe; }
.auth-errors {
  background: #fdeef0; border: 1px solid #f5c2c9; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 24px;
}
.auth-errors p { margin: 4px 0; color: #b91c30; font-size: 16px; font-weight: 600; }
.auth-form {
  background: #fff; border: 1px solid var(--c-line); border-radius: 20px;
  padding: 44px 46px; box-shadow: 0 16px 44px rgba(16,24,64,.08);
}
.auth-form label { display: block; font-size: 16px; font-weight: 700; color: var(--c-fg); }
.auth-form .req { color: #d9333f; }
.auth-form input {
  display: block; width: 100%; margin-top: 8px;
  padding: 13px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-family: inherit; font-size: 17px; box-sizing: border-box;
}
.auth-form input:focus { outline: 2px solid rgba(17,0,111,.25); border-color: var(--c-primary); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.f-grid .f-wide { grid-column: span 2; }
.auth-submit { width: 100%; margin-top: 30px; padding: 15px 0; font-size: 18px; font-weight: 800; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: 16px; color: var(--c-muted); }
.auth-alt a { font-weight: 700; }
.auth-login { max-width: 460px; margin: 0 auto; }
.auth-login label + label { margin-top: 18px; }

/* ==== 회원명부 ======================================================== */
.mv-members { padding: 70px 0 100px; background: #fbfcfe; }
.member-welcome {
  background: #eaf6ee; border: 1px solid #bfe3cc; color: #1c7a41;
  border-radius: 12px; padding: 15px 20px; font-weight: 700; margin-bottom: 26px; font-size: 16.5px;
}
.member-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 20px; flex-wrap: wrap;
}
.member-count { font-size: 17px; color: var(--c-muted); margin: 0; }
.member-count b { color: var(--c-primary); }
.member-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.member-search select, .member-search input {
  padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-family: inherit; font-size: 16px;
}
.member-search input { min-width: 220px; }
.member-table-wrap {
  overflow-x: auto; background: #fff; border: 1px solid var(--c-line);
  border-radius: 16px; box-shadow: 0 12px 34px rgba(16,24,64,.06);
}
.member-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.member-table th {
  background: var(--c-primary); color: #fff; font-size: 16px; font-weight: 700;
  padding: 14px 16px; text-align: left; white-space: nowrap;
}
.member-table td {
  padding: 13px 16px; font-size: 16px; border-top: 1px solid var(--c-line-2);
  color: #333a4c;
}
.member-table tbody tr:hover { background: #f4f7fd; }
.member-table .td-gisu { font-weight: 800; color: var(--c-primary); white-space: nowrap; }
.member-table .td-name { font-weight: 700; color: var(--c-fg); white-space: nowrap; }
.member-table .td-email { word-break: break-all; }
.member-table .td-empty { text-align: center; padding: 54px 0; color: var(--c-muted); }
.member-paging { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.member-paging a {
  min-width: 38px; padding: 8px 0; text-align: center; border-radius: 8px;
  border: 1px solid var(--c-line); color: var(--c-fg); font-size: 16px; font-weight: 600;
}
.member-paging a.on, .member-paging a:hover {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff; text-decoration: none;
}
.member-note { margin-top: 22px; font-size: 16px; color: #8a93a6; }

/* ==== 주요사업 페이지 ================================================= */
.mv-bizpage { padding: 70px 0 110px; background: #fbfcfe; }
.bp-toc {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 64px;
}
.bp-toc a {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  padding: 18px 20px; font-size: 17px; font-weight: 700; color: var(--c-fg);
  transition: all .2s ease;
}
.bp-toc a b { color: var(--c-accent); font-size: 16px; letter-spacing: .08em; }
.bp-toc a:hover {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
  text-decoration: none; transform: translateY(-3px);
}
.bp-toc a:hover b { color: #6fd2ff; }
.bp-item {
  background: #fff; border: 1px solid var(--c-line); border-radius: 22px;
  padding: 52px 54px; box-shadow: 0 14px 40px rgba(16,24,64,.06);
  scroll-margin-top: 110px;
}
.bp-item + .bp-item { margin-top: 34px; }
.bp-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.bp-num {
  font-size: 44px; font-weight: 800; color: var(--c-accent);
  letter-spacing: -.02em; line-height: 1;
}
.bp-head h2 {
  font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; color: var(--c-primary);
  letter-spacing: -.01em; margin: 0;
}
.bp-intro { list-style: none; margin: 0 0 30px; padding: 0; }
.bp-intro li {
  position: relative; padding: 6px 0 6px 26px; font-size: 17.5px;
  color: #333a4c; line-height: 1.75;
}
.bp-intro li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent);
}
.bp-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bp-detail {
  background: #f6f8fd; border: 1px solid #e3e9f5; border-radius: 16px;
  padding: 28px 30px;
}
.bp-detail h3 {
  font-size: 20px; font-weight: 800; color: var(--c-primary); margin: 0 0 14px;
  padding-bottom: 12px; border-bottom: 2px solid rgba(17,0,111,.15);
}
.bp-detail ul { list-style: none; margin: 0; padding: 0; }
.bp-detail li {
  position: relative; padding: 5px 0 5px 20px; font-size: 16.5px;
  color: #46506a; line-height: 1.7;
}
.bp-detail li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--c-primary); opacity: .5;
}
.bp-detail li b { color: var(--c-fg); }

/* 조직 구성 카드 보강 (기수/연락처) */
.ab-org-card b i { font-style: normal; font-size: 16px; font-weight: 700; color: var(--c-accent); margin-left: 4px; }
.ab-org-card.lead b i { color: #6fd2ff; }
.ab-org-card .tel { font-weight: 700; color: var(--c-primary); }
.ab-org-card.lead .tel { color: #cfeaff; }

@media (max-width: 960px) {
  .mv-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr; }
  .f-grid .f-wide { grid-column: span 1; }
  .auth-form { padding: 32px 26px; }
  .bp-toc { grid-template-columns: repeat(2, 1fr); }
  .bp-item { padding: 34px 26px; }
  .bp-detail-grid { grid-template-columns: 1fr; }
  .ab-story-photo { position: static; }
}

/* ==== 모바일 보정 ==================================================== */
@media (max-width: 768px) {
  .mv-subhero .container { padding-top: 52px; padding-bottom: 46px; }
  .mv-subhero h1 { font-size: 30px; }
  .mv-subhero p { font-size: 16px; }
  .mv-hero .container { gap: 28px; }
  .mv-hero-logo img { max-width: 180px; padding: 22px 24px; }
  .mv-identity { padding: 64px 0 48px; }
  .mv-id-grid { margin-top: 34px; gap: 18px; }
  .mv-id-card { height: 340px; }
  .mv-business, .mv-news, .mv-quick, .ab-story, .ab-values, .ab-org { padding: 64px 0; }
  .mv-biz-head, .mv-news-head { margin-bottom: 30px; }
  .mv-biz-card { padding: 28px 22px 26px; }
  .mv-biz-card .ghost { font-size: 64px; top: 12px; right: 18px; }
  .mv-biz-card h3 { font-size: 22px; }
  .mv-biz-card .icon { width: 40px; height: 40px; }
  .mv-news-panel { padding: 22px 20px 12px; }
  .mv-post-list .date { flex: 0 0 62px; }
  .mv-post-list .date b { font-size: 18px; }
  .mv-post-list .subj { font-size: 16px; white-space: normal; }
  .mv-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mv-quick-tile { padding: 24px 8px 20px; gap: 10px; }
  .ab-meaning { padding: 56px 0; }
  .ab-meaning-inner img { width: 150px; padding: 18px 20px; }
  .ab-stat-grid { gap: 28px 14px; }
  .bp-toc { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bp-toc a { padding: 13px 14px; font-size: 16px; }
  .bp-head h2 { font-size: 24px; }
  .bp-num { font-size: 32px; }
  .member-search { width: 100%; }
  .member-search input { flex: 1; min-width: 0; }
}

/* ==== 약관/개인정보처리방침 =========================================== */
.mv-legal { padding: 70px 0 100px; background: #fff; }
.mv-legal .legal-intro {
  font-size: 17.5px; color: #3d4557; line-height: 1.85;
  background: #f6f8fd; border-left: 4px solid var(--c-primary);
  border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 0 0 40px;
}
.mv-legal h2 {
  font-size: 22px; font-weight: 800; color: var(--c-primary);
  margin: 44px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}
.mv-legal h2:first-of-type { margin-top: 0; }
.mv-legal p { font-size: 17px; color: #3d4557; line-height: 1.85; margin: 0 0 12px; }
.mv-legal > .container > ul, .mv-legal ul {
  list-style: none; margin: 0 0 12px; padding: 0;
}
.mv-legal ul li {
  position: relative; padding: 5px 0 5px 22px;
  font-size: 17px; color: #3d4557; line-height: 1.8;
}
.mv-legal ul li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent);
}
.mv-legal ul ul { margin: 6px 0 0; }
.mv-legal ul ul li { font-size: 16.5px; color: #5a6379; padding-left: 20px; }
.mv-legal ul ul li::before {
  width: 6px; height: 2px; border-radius: 1px; top: 19px; background: #9aa6c0;
}
.legal-officer { margin: 18px 0 22px; }
.legal-officer table {
  border-collapse: collapse; width: 100%; max-width: 560px;
  border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden;
}
.legal-officer th {
  background: var(--c-primary); color: #fff; text-align: left;
  font-size: 16px; font-weight: 700; padding: 13px 18px; width: 200px;
}
.legal-officer td { font-size: 17px; padding: 13px 18px; border-top: 1px solid var(--c-line-2); background: #fff; }
.legal-officer tr th { border-top: 1px solid rgba(255,255,255,.15); }
.legal-date {
  margin-top: 44px !important; font-weight: 800; color: var(--c-primary) !important;
  font-size: 18px !important;
}
@media (max-width: 768px) {
  .mv-legal { padding: 48px 0 70px; }
  .mv-legal h2 { font-size: 20px; margin-top: 34px; }
  .legal-officer th { width: 140px; }
}
