/* 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: #0a2d66;
  --c-primary-2: #0b3d91;
  --c-accent: #f5a623;
  --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: 85px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--c-fg);
  background: #fbfcfe;
  font-family: "Poppins", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  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 {
  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;
  display: flex; align-items: center;
}
.logo img { height: 62px; width: auto; display: block; }
/* page header: breadcrumb banner (섹션 배경이미지) + sub-navigation bar */
.page-head { border-bottom: 1px solid var(--c-line); background: var(--c-card); }
.page-head .container { padding-top: 18px; padding-bottom: 16px; }
.ph-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--c-fg); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); text-decoration: none; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: var(--c-fg); font-weight: 600; }

/* banner variant with the section breadcrumb image (테오 스타일 배너 + 페이지 내비) */
.page-head.has-bg { position: relative; z-index: 20; display: flex; flex-direction: column; padding: 0; border-bottom: 0; background-size: cover; background-position: center; }
.page-head.has-bg .ph-main { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 118px 0 92px; }
.page-head.has-bg .ph-title { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.01em; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.34); }
.page-head.has-bg .ph-sub { color: rgba(255,255,255,.82); font-size: clamp(14px, 1.5vw, 17px); margin: 16px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* 페이지 내비 바 (배너 하단에 얹힘) */
.page-navbar { background: rgba(9,18,38,.5); border-top: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(3px); }
.page-navbar .container { display: flex; align-items: stretch; padding-top: 0; padding-bottom: 0; }
.pn-home { flex: 0 0 auto; width: 60px; display: flex; align-items: center; justify-content: center; background: transparent; color: #fff; }
.pn-home svg { width: 20px; height: 20px; opacity: .9; transition: opacity .2s; }
.pn-home:hover { text-decoration: none; }
.pn-home:hover svg { opacity: 1; }
.pn-seg { position: relative; flex: 0 0 auto; min-width: 200px; border-right: 1px solid rgba(255,255,255,.16); }
.pn-seg:first-of-type { border-left: 1px solid rgba(255,255,255,.16); }
.pn-cur { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 26px; background: transparent; border: 0; cursor: pointer; padding: 22px 26px; color: #fff; font-size: 15px; font-weight: 600; font-family: inherit; white-space: nowrap; }
.pn-menu { min-width: 100%; }
.pn-caret { font-size: 11px; opacity: .8; transition: transform .2s; }
.pn-cur.pn-static { cursor: default; }
.pn-seg:hover .pn-caret { transform: rotate(180deg); }
.pn-menu { position: absolute; left: 0; right: auto; top: 100%; z-index: 30; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-md); display: none; }
.pn-seg:hover .pn-menu, .pn-seg:focus-within .pn-menu { display: block; }
.pn-menu li a { display: block; padding: 11px 16px; border-radius: 6px; color: var(--c-fg); font-size: 14.5px; white-space: nowrap; }
.pn-menu li a:hover { background: var(--c-line-2); color: var(--c-primary); text-decoration: none; }
.pn-menu li a.on { color: var(--c-primary); font-weight: 700; }
.pn-crumb { margin-left: auto; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); font-size: 13px; padding-left: 20px; }
.pn-crumb a { color: rgba(255,255,255,.72); }
.pn-crumb a:hover { color: #fff; text-decoration: none; }
.pn-crumb .sep { opacity: .5; }
.pn-crumb .cur { color: #fff; font-weight: 700; }
@media (max-width: 768px) {
  .page-head.has-bg .ph-main { padding: 68px 0 46px; }
  /* 모바일 페이지 내비: 홈 + 드롭다운 유지, 브레드크럼만 숨김 (탭하면 열림) */
  .pn-crumb { display: none; }
  .pn-home { width: 46px; }
  .pn-seg { flex: 1 1 0; min-width: 0; }
  .pn-seg:last-of-type { border-right: 0; }
  .pn-cur { padding: 15px 8px; font-size: 14px; gap: 8px; }
  .pn-caret { margin-left: 0; }
}

/* banner shows the section title, so hide the board's own duplicate title */
.board-head .board-title, .board-head .board-desc { display: none; }
.board-head { margin-bottom: 8px; }

.primary-nav { display: flex; gap: 40px; align-items: center; }
.primary-nav a {
  color: var(--c-fg);
  font-weight: 500;
  font-size: 19px;
}
.primary-nav a:hover { color: var(--c-primary); text-decoration: none; }
/* dropdown submenus (기존 리더스 메뉴 구조) */
.primary-nav .nav-item { position: relative; }
.primary-nav .has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
.primary-nav .caret { font-size: 15px; opacity: .65; }
.primary-nav .sub {
  position: absolute; left: 0; top: 100%; margin-top: 15px;
  list-style: none; padding: 6px; min-width: 168px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); display: none; z-index: 200;
}
/* transparent bridge over the gap so hover isn't lost moving to the submenu */
.primary-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
.primary-nav .has-sub:hover .sub, .primary-nav .has-sub:focus-within .sub { display: block; }
.primary-nav .sub li a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--c-fg); white-space: nowrap; font-size: 14px; }
.primary-nav .sub li a:hover { background: var(--c-line-2); color: var(--c-primary); }
/* PC 하위메뉴(드롭다운) 폰트 확대 */
@media (min-width: 769px) {
  .primary-nav .sub li a { font-size: 16px; padding: 11px 14px; }
}
@media (max-width: 768px) {
  /* mobile: show submenu items expanded inside the collapsed menu */
  .primary-nav .nav-item { position: static; }
  .primary-nav .sub { display: block; position: static; margin: 4px 0 4px 12px;
    box-shadow: none; border: none; padding: 0; min-width: 0; background: transparent; }
  .primary-nav .sub::before { display: none; }
  .primary-nav .caret { display: none; }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--c-line);
  border-radius: 999px; padding: 9px 15px;
  font-weight: 600; font-size: 13px; letter-spacing: .04em;
  cursor: pointer; color: var(--c-fg); transition: all .2s ease;
}
.lang-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.lang-globe { flex-shrink: 0; opacity: .85; }
.lang-code { line-height: 1; }
.lang-caret { opacity: .7; transition: transform .25s ease; }
.lang-switcher:hover .lang-caret, .lang-switcher:focus-within .lang-caret { transform: rotate(180deg); }

.lang-switcher ul {
  position: absolute; right: 0; top: 100%; margin-top: 10px;
  list-style: none; padding: 6px; min-width: 156px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 12px;
  box-shadow: var(--shadow-lg); display: none; z-index: 200;
}
/* transparent bridge over the gap so hover isn't lost moving to the menu */
.lang-switcher ul::before {
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.lang-switcher:hover ul, .lang-switcher:focus-within ul { display: block; }
.lang-switcher li a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--c-fg); font-size: 14px; font-weight: 500; }
.lang-switcher li a:hover { background: var(--c-line-2); text-decoration: none; }
.lang-switcher li a.on { color: var(--c-primary); font-weight: 700; }
.lang-switcher li a.on::after { content: "✓"; font-size: 12px; }

/* language block inside the mobile hamburger panel (shown only on mobile) */
.nav-lang { display: 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: 14px; font-weight: 500; line-height: 1.5;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; vertical-align: middle; box-sizing: border-box;
  transition: transform .08s ease, box-shadow .15s, background .15s;
  font-family: inherit;
}
.post-actions .btn, .post-actions .btn-danger { align-self: stretch; }
.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: 12px; }

/* 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: 14px; 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: 13px; 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: 13px; font-weight: 500; }

/* Footer */
.site-footer {
  margin-top: 0;
  padding: 54px 0 40px;
  background: #0c1424;
  color: rgba(255,255,255,.62);
  font-size: 13.5px;
}
.site-footer .container { max-width: 1400px; }
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  padding-bottom: 22px; margin-bottom: 22px;
}
.foot-brand { display: inline-flex; align-items: center; }
.foot-brand img { height: 58px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.foot-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,.8); font-size: 13.5px; font-weight: 500; transition: color .2s; }
.foot-links a:first-child { font-weight: 700; color: #fff; }
.foot-links a:hover { color: #fff; text-decoration: none; }
.foot-links .fl-sep { color: rgba(255,255,255,.22); font-size: 12px; margin: 0 4px; }
.foot-meta { line-height: 1.9; margin-bottom: 4px; }
.foot-meta span { display: inline; }
.foot-meta a { color: rgba(255,255,255,.8); }
.foot-meta a:hover { color: #fff; text-decoration: underline; }
.foot-meta .fm-sep { display: inline-block; width: 1px; height: 11px; background: rgba(255,255,255,.22); margin: 0 12px; vertical-align: -1px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.foot-copy { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.42); letter-spacing: .02em; }
.foot-admin { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px; transition: all .2s; }
.foot-admin:hover { color: #fff; border-color: rgba(255,255,255,.5); text-decoration: none; }

/* back-to-top floating button */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-primary); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,32,96,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-primary-2); }
@media (max-width: 640px) {
  .foot-meta .fm-sep { display: none; }
  .foot-meta span { display: block; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  /* 모바일 푸터: 로고·링크·카피는 가운데, 회사정보(meta)는 좌측 정렬 */
  .foot-top { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .foot-links { justify-content: center; }
  .foot-meta { text-align: left; }
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
}

/* ===== Content pages (/p/{slug}) ===== */
.page-doc { padding: 66px 0 92px; background: #fff; }
.doc-wrap { max-width: 880px; }
.doc-body { color: var(--c-fg); font-size: 16.5px; line-height: 1.85; }
.doc-body > h2, .doc-body > h1 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; color: var(--c-fg); }
.doc-body .lead {
  font-size: clamp(17px, 1.9vw, 21px); font-weight: 600; line-height: 1.6;
  color: var(--c-primary); margin: 0 0 30px; padding-bottom: 26px;
  border-bottom: 1px solid var(--c-line);
}
.doc-body h3 {
  position: relative; font-size: 20px; font-weight: 700; color: var(--c-fg);
  margin: 46px 0 18px; padding-left: 15px;
}
.doc-body h3::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 2px; background: var(--c-primary);
}
.doc-body p { margin: 0 0 16px; color: #333b4a; }
.doc-body strong { color: var(--c-fg); font-weight: 700; }
.doc-body a { color: var(--c-primary); }
.doc-body img { border-radius: 12px; margin: 8px 0; }
.doc-body ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; }
.doc-body ul li { position: relative; padding-left: 22px; color: #3a4252; }
.doc-body ul li::before {
  content: ""; position: absolute; left: 3px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); opacity: .5;
}

/* 페이지 대표 이미지 (대표소개 프로필 / 법인소개) */
.doc-figure { float: right; margin: 4px 0 22px 36px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.doc-figure img { width: 100%; height: auto; display: block; }
.doc-figure.fig-portrait { width: 290px; }
.doc-figure.fig-square { width: 330px; }
@media (max-width: 640px) {
  .doc-figure { float: none; width: 100%; max-width: 300px; margin: 0 auto 26px; }
  .doc-figure.fig-portrait, .doc-figure.fig-square { width: 100%; max-width: 300px; }
}

/* 대표소개: 경력/자격 리스트 2단 */
@media (min-width: 640px) {
  .doc-ceo ul { grid-template-columns: 1fr 1fr; column-gap: 34px; }
}

/* 법인소개: 연혁을 세로 타임라인으로 */
.doc-company h3 + ul {
  margin-left: 5px; padding-left: 26px; gap: 20px;
  border-left: 2px solid var(--c-line);
}
.doc-company h3 + ul li { padding-left: 0; font-weight: 500; }
.doc-company h3 + ul li::before {
  left: -33px; top: 6px; width: 12px; height: 12px; opacity: 1;
  background: var(--c-primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--c-primary);
}

/* ===== Editorial pages (대표소개 / 법인소개) ===== */
/* 한글 자연스러운 줄바꿈 (단어 단위) */
/* 다국어 자연 줄바꿈: 한글은 keep-all(어절 단위), 그 외(영/일/중)는 normal로 자연스럽게 */
.ed, .doc-body { word-break: normal; overflow-wrap: break-word; }
.lang-kr .ed, .lang-kr .doc-body { word-break: keep-all; }
.ed { padding: 100px 0 100px; background: #fff; }
.ed .container { max-width: 1120px; }
.ed-kicker { letter-spacing: .22em; font-size: 12.5px; font-weight: 700; color: #c79a4e; margin: 0 0 16px; text-transform: uppercase; }
.ed-kicker i { margin: 0 8px; font-style: normal; opacity: .55; }

/* CEO — profile hero */
.prof-hero { display: grid; grid-template-columns: 340px 1fr; gap: 58px; align-items: center; padding-bottom: 85px; border-bottom: 1px solid var(--c-line); }
.prof-photo { position: relative; margin: 0; }
.prof-photo img { position: relative; z-index: 1; width: 100%; border-radius: 14px; display: block; box-shadow: 0 30px 60px rgba(10,20,50,.22); }
.prof-photo::before { content: ""; position: absolute; z-index: 0; left: -18px; top: -18px; width: 68%; height: 68%; background: var(--c-primary); border-radius: 28px; }
.prof-photo::after { content: ""; position: absolute; z-index: 0; right: -28px; bottom: -28px; width: 84px; height: 84px; border: 8px solid #c79a4e; }
.prof-name { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 20px; color: var(--c-fg); }
.prof-lead { font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; line-height: 1.65; color: var(--c-primary); margin: 0; }
.prof-head > p:not(.ed-kicker):not(.prof-lead) { color: #3a4252; margin: 14px 0 0; line-height: 1.8; }

/* CEO — numbered detail rows */
.prof-body { margin-top: 4px; }
.prof-row { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--c-line); }
.prof-row:last-child { border-bottom: 0; }
.prof-label { position: relative; display: block; }
.prof-label .pl-num { position: absolute; left: -3px; top: -12px; z-index: 0; font-size: 78px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #c79a4e; opacity: .2; pointer-events: none; }
.prof-label b { position: relative; z-index: 1; display: inline-block; margin-top: 32px; font-size: 22px; font-weight: 700; color: var(--c-fg); letter-spacing: -.01em; }
@media (min-width: 861px) { .prof-label b { font-size: 28px; } }
.prof-detail { min-width: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.chips li { padding: 9px 18px; background: #eef3fb; color: var(--c-primary); border-radius: 999px; font-size: 15px; font-weight: 600; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lines li { position: relative; padding-left: 20px; color: #3a4252; line-height: 1.6; }
.lines li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #c79a4e; }

/* Company — about (중앙 헤더 → 큰 이미지 → 인사말) */
.ed-about .container { max-width: 1240px; }
.about-head.center { text-align: center; max-width: 920px; margin: 0 auto 42px; }
.about-head.center .ed-kicker { margin-bottom: 14px; }
.about-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.28; margin: 0; color: var(--c-fg); }
.about-hero-img { margin: 0 auto 54px; border-radius: 22px; overflow: hidden; box-shadow: 0 34px 74px rgba(10,20,50,.2); }
.about-hero-img img { width: 100%; display: block; }
.about-body { max-width: 880px; margin: 0 auto; text-align: center; }
.about-body .about-lead { font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; color: var(--c-fg); line-height: 1.5; margin: 0 0 28px; }
.about-body .about-intro p { font-size: clamp(16px, 1.4vw, 18.5px); color: #3a4252; line-height: 1.95; margin: 0 0 18px; }
.about-body .about-intro p strong { color: var(--c-primary); }
.about-body .about-intro p[style*="right"] { text-align: center !important; color: var(--c-primary); font-weight: 700; margin-top: 26px; }

/* shared editorial heading */
.ed-h { position: relative; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.01em; color: var(--c-fg); margin: 0 0 30px; padding-bottom: 16px; }
.ed-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: #c79a4e; border-radius: 2px; }
.ed-h-en { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; color: #c79a4e; margin-bottom: 8px; }
.about-sec { padding: 46px 0 0; }

/* FAQ (자주 묻는 질문) 아코디언 */
.ed-faq .container { max-width: 1260px; }
.faq-lead .faq-hl { color: var(--c-primary); font-weight: 800; }
.faq-head.center { text-align: center; margin-bottom: 22px; }
.faq-title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; color: var(--c-fg); }
.faq-lead {
  position: relative; text-align: center; max-width: 1320px; margin: 6px auto 50px;
  padding: 36px 42px 32px; background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
  border: 1px solid #e3ecf8; border-radius: 18px;
  color: #45536a; line-height: 1.95; font-size: 15.5px; word-break: keep-all;
  box-shadow: 0 12px 30px rgba(10,32,96,.05);
}
.faq-lead::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 0 0 4px 4px; background: #c79a4e;
}
.faq-lead::after {
  content: "\201C"; position: absolute; top: 3px; left: 30px;
  font-family: Georgia, serif; font-size: 147px; font-weight: 900; line-height: 1; color: var(--c-primary); opacity: .1;
}
@media (max-width: 640px) {
  .faq-lead { padding: 26px 20px 22px; font-size: 14.5px; margin-bottom: 36px; }
  .faq-lead::after { display: none; }
}
.faq-cat { margin-bottom: 42px; }
.faq-cat-t { font-size: 20px; font-weight: 800; color: var(--c-primary); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--c-primary); }
.faq-item { border: 1px solid var(--c-line); border-radius: 12px; margin-bottom: 12px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: var(--c-primary); box-shadow: 0 10px 26px rgba(10,32,96,.09); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; padding: 19px 22px; font-size: 16.5px; font-weight: 600; color: var(--c-fg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.faq-qt { flex: 1 1 auto; padding-top: 3px; word-break: keep-all; }
.faq-item summary::after { content: "+"; margin-left: 12px; font-size: 24px; font-weight: 300; color: var(--c-primary); line-height: 1; align-self: center; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { display: flex; gap: 14px; padding: 0 22px 22px; }
.faq-am { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #eef3fb; color: var(--c-primary); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.faq-at { flex: 1 1 auto; color: #3a4252; line-height: 1.85; font-size: 15px; word-break: keep-all; }
@media (max-width: 640px) {
  .faq-item summary { padding: 16px 16px; font-size: 15.5px; gap: 11px; }
  .faq-a { padding: 0 16px 18px; gap: 11px; }
  .faq-q, .faq-am { width: 25px; height: 25px; font-size: 13px; }
}

/* Company — 연혁 timeline */
.history { padding: 58px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 124px 1fr; gap: 30px; padding: 24px 0; border-top: 1px solid var(--c-line); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--c-line); }
.tl-year { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--c-primary); letter-spacing: -.02em; line-height: 1; }
.tl-body { display: flex; flex-direction: column; gap: 5px; }
.tl-md { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .05em; color: #c79a4e; }
.tl-desc { font-size: 16.5px; color: var(--c-fg); font-weight: 500; }

/* ---- 업무분야 (services) — 테오식 좌우 교차 행 ---- */
.ed-svc .container { max-width: 1400px; }
.svc-head.center { text-align: center; max-width: 880px; margin: 0 auto 56px; }
.svc-head.center .ed-kicker { margin-bottom: 14px; }
.svc-h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.28; margin: 0; color: var(--c-fg); }
.svc-lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--c-primary); line-height: 1.6; margin: 20px 0 0; font-weight: 700; letter-spacing: -.01em; }
.svc-intro { max-width: 880px; margin: 0 auto 40px; color: #56607a; line-height: 1.85; text-align: center; }

.svc-rows { display: flex; flex-direction: column; gap: 76px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 512fr) minmax(0, 620fr); align-items: center; gap: 60px; }
.svc-row:nth-child(even) { grid-template-columns: minmax(0, 620fr) minmax(0, 512fr); }
.svc-row:nth-child(even) .svc-figure { order: 2; }
.svc-row:nth-child(even) .svc-content { order: 1; }

/* 이미지 대체 그래픽 패널 */
.svc-figure { position: relative; aspect-ratio: 512 / 300; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #0a2d66 0%, #123a7d 55%, #1b4a97 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 50px rgba(10,45,102,.22); }
.svc-figure::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 85% 15%, rgb(1 183 255 / 25%), transparent 46%); }
.svc-fig-wm { position: absolute; right: 12px; bottom: -34px; z-index: 0;
  font-size: 200px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; opacity: .07; pointer-events: none; }
/* 분야 아이콘 워터마크 — 우하단에 크게, 일부만 보이게(반전 흰색·은은하게) */
.svc-fig-ic { position: absolute; right: -26px; bottom: -30px; z-index: 0;
  width: 250px; height: 250px; max-width: none; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .07; pointer-events: none; }
.svc-fig-code { position: relative; z-index: 1; color: #fff; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(48px, 6vw, 78px); line-height: 1.06; text-align: center; padding: 0 18px; }
.svc-fig-code .fc-main { display: block; }
.svc-fig-code .fc-sub { display: block; font-size: .4em; font-weight: 700; letter-spacing: 0; margin-top: .22em; opacity: .96; }
.svc-fig-lab { position: absolute; z-index: 1; top: 22px; left: 26px; font-size: 12px; font-weight: 700;
  letter-spacing: .28em; color: #c79a4e; }
/* 비영리: 4×2 카드 그리드 — 카드 안에 SERVICE·번호·아이콘·제목 */
.np-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.np-card2 { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 24px 28px;
  min-height: 268px; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #0a2d66 0%, #123a7d 55%, #1b4a97 100%);
  box-shadow: 0 20px 44px rgba(10,45,102,.18);
  transition: transform .25s ease, box-shadow .25s ease; }
.np-card2::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 85% 15%, rgb(1 183 255 / 25%), transparent 46%); }
.np-card2:hover { transform: translateY(-5px); box-shadow: 0 28px 56px rgba(10,45,102,.28); }
.np-lab { position: relative; z-index: 1; font-size: 12px; font-weight: 700; letter-spacing: .28em; color: #c79a4e; }
.np-num { position: relative; z-index: 1; font-size: 30px; font-weight: 800; color: #fff; line-height: 1;
  letter-spacing: -.02em; margin-top: 8px; }
.np-icon { position: absolute; right: -18px; bottom: -18px; z-index: 0; width: 132px; height: 132px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .1; pointer-events: none; }
.np-title { position: relative; z-index: 1; margin: auto 0; font-size: 22px; font-weight: 700; color: #fff;
  line-height: 1.45; overflow-wrap: break-word; text-align: center; }
/* 체커보드: 회색 카드(테두리 네이비·어두운 글씨) — 다음 줄은 색 반대 */
.np-card2--gray { background: #eef1f6; border: 1px solid var(--c-primary); box-shadow: 0 20px 44px rgba(10,45,102,.08); }
.np-card2--gray::after { display: none; }
.np-card2--gray .np-num { color: var(--c-primary); }
.np-card2--gray .np-title { color: #1a2230; }
.np-card2--gray .np-icon { filter: none; opacity: .08; }
@media (max-width: 900px) {
  .np-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* 모바일(2열) 체커보드 교정 — 위아래 같은 색 방지: 4·5 → 회색, 3·6 → 네이비 */
  .np-card2:nth-child(4), .np-card2:nth-child(5) { background: #eef1f6; border: 1px solid var(--c-primary); box-shadow: 0 20px 44px rgba(10,45,102,.08); }
  .np-card2:nth-child(4)::after, .np-card2:nth-child(5)::after { display: none; }
  .np-card2:nth-child(4) .np-num, .np-card2:nth-child(5) .np-num { color: var(--c-primary); }
  .np-card2:nth-child(4) .np-title, .np-card2:nth-child(5) .np-title { color: #1a2230; }
  .np-card2:nth-child(4) .np-icon, .np-card2:nth-child(5) .np-icon { filter: none; opacity: .08; }
  .np-card2--gray:nth-child(3), .np-card2--gray:nth-child(6) { background: linear-gradient(135deg, #0a2d66 0%, #123a7d 55%, #1b4a97 100%); border: 0; box-shadow: 0 20px 44px rgba(10,45,102,.18); }
  .np-card2--gray:nth-child(3)::after, .np-card2--gray:nth-child(6)::after { display: block; }
  .np-card2--gray:nth-child(3) .np-num, .np-card2--gray:nth-child(6) .np-num { color: #fff; }
  .np-card2--gray:nth-child(3) .np-title, .np-card2--gray:nth-child(6) .np-title { color: #fff; }
  .np-card2--gray:nth-child(3) .np-icon, .np-card2--gray:nth-child(6) .np-icon { filter: brightness(0) invert(1); opacity: .1; }
}
@media (max-width: 480px) { .np-card2 { min-height: 210px; padding: 22px 18px 22px; } .np-num { font-size: 26px; } .np-icon { width: 108px; height: 108px; } .np-title { font-size: 18px; } }

.svc-content { min-width: 0; }
.svc-tit { display: flex; align-items: baseline; gap: 14px; font-size: clamp(22px, 2.5vw, 30px); font-weight: 800;
  letter-spacing: -.01em; color: var(--c-fg); line-height: 1.3; margin: 0 0 22px; padding-bottom: 20px;
  border-bottom: 1px solid #e9edf4; }
.svc-tnum { flex-shrink: 0; font-size: 15px; font-weight: 800; color: #fff; background: var(--c-primary);
  width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; letter-spacing: .02em;
  align-self: center; }
.svc-ilist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 34px; }
.svc-ilist li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; color: #333c4c; font-weight: 500; }
.svc-ilist li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: #c79a4e; }

/* ---- 비영리 인허가 — 아이콘 카드 그리드 ---- */
.np-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.np-card { background: #fff; border: 1px solid #e6e9f0; border-radius: 18px; padding: 34px 20px 30px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.np-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(10,45,102,.12); border-color: #d3dbea; }
.np-ic { width: 92px; height: 92px; border-radius: 50%; background: #eef2f8; display: grid; place-items: center;
  margin: 0 0 20px; transition: background .25s ease; }
.np-ic img { width: 46px; height: 46px; object-fit: contain; opacity: .82; transition: filter .25s ease, opacity .25s ease; }
.np-card:hover .np-ic { background: var(--c-primary); }
.np-card:hover .np-ic img { filter: brightness(0) invert(1); opacity: 1; }
.np-name { font-size: 15.5px; font-weight: 600; color: var(--c-fg); line-height: 1.5; margin: 0; word-break: keep-all; }
@media (max-width: 900px) { .np-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .np-card { padding: 26px 14px 24px; } .np-ic { width: 78px; height: 78px; } .np-ic img { width: 40px; height: 40px; } .np-name { font-size: 14px; } }

/* 스크롤 등장 (JS 활성 시에만 숨김 → JS 실패해도 콘텐츠는 보임) */
.js-reveal .svc-row[data-aos] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .svc-row[data-aos].in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .svc-rows { gap: 48px; }
  .svc-row, .svc-row:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .svc-row:nth-child(even) .svc-figure { order: 0; }
  .svc-row:nth-child(even) .svc-content { order: 0; }
  .svc-figure { aspect-ratio: 16 / 8; border-radius: 16px; }
  .svc-fig-code { font-size: 52px; }
  .svc-fig-wm { font-size: 150px; bottom: -24px; }
  .svc-head.center { margin-bottom: 38px; }
  .svc-tit { font-size: 21px; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; }
  .svc-tnum { width: 34px; height: 34px; font-size: 14px; }
  .svc-ilist { grid-template-columns: 1fr; gap: 11px; }
  .svc-ilist li { font-size: 15px; }
}

@media (max-width: 860px) {
  .ed { padding: 62px 0 62px; }
  .prof-hero { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .prof-photo { max-width: 280px; margin: 6px auto 0; }
  .prof-photo::before { left: -12px; top: -12px; }
  .prof-photo::after { right: -12px; bottom: -12px; width: 62px; height: 62px; border-width: 6px; }
  .prof-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; text-align: left; }
  .about-head.center { margin-bottom: 30px; }
  .about-hero-img { border-radius: 16px; margin-bottom: 36px; }
  .about-body .about-lead { font-size: 20px; }
  .timeline li { grid-template-columns: 72px 1fr; gap: 16px; }
  .tl-year { font-size: 21px; }
}

/* Board */
.board-page.container { max-width: 1320px; margin: 0 auto; padding: 56px 20px 92px; }
.board-intro { text-align: center; margin-bottom: 34px; }
.board-intro-k { letter-spacing: .24em; font-size: 12.5px; font-weight: 700; color: #c79a4e; margin: 0 0 12px; }
.board-intro-t { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--c-fg); margin: 0; letter-spacing: -.02em; }
.board-intro-s { color: var(--c-muted); margin: 12px 0 0; font-size: 15px; }
.board-head {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 20px; border-bottom: 0;
}
.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; margin-left: auto; }
.search { display: flex; align-items: stretch; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; background: #fff; }
.search input { padding: 11px 20px; border: 0; min-width: 210px; font-size: 14px; background: transparent; outline: none; color: var(--c-fg); }
.search button {
  padding: 0 22px; background: var(--c-primary); color: #fff; border: 0;
  cursor: pointer; font-family: inherit; font-weight: 600; font-size: 14px;
}
.search button:hover { background: var(--c-primary-2); }

.board-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--c-primary); }
.board-table thead th {
  padding: 16px 12px; text-align: center; font-size: 14px; font-weight: 700;
  color: var(--c-fg); letter-spacing: 0; text-transform: none;
  background: #f6f8fc; border-bottom: 1px solid var(--c-line);
}
.board-table td {
  padding: 17px 12px; text-align: center; font-size: 14.5px; white-space: nowrap;
  color: var(--c-muted); border-bottom: 1px solid var(--c-line);
}
.board-table td.num-col { color: #9aa2b1; font-size: 13.5px; }
.board-table th.subj-th, .board-table td.subj { text-align: left; }
.board-table td.subj { white-space: normal; }
.board-table .subj a { color: var(--c-fg); font-weight: 500; font-size: 15.5px; }
.board-table .subj a:hover { color: var(--c-primary); text-decoration: none; }
.board-table .subj .li-ic { display: inline-flex; align-items: center; vertical-align: -2px; margin-left: 6px; }
.board-table .subj .li-link { color: var(--c-primary); }
.board-table .subj .li-file { color: #c79a4e; }
.board-table .subj .li-cm { margin-left: 5px; font-size: 12.5px; font-weight: 700; color: var(--c-primary); vertical-align: 1px; }
.board-table tbody tr { transition: background .15s; }
.board-table tbody tr:hover { background: #f6f8fc; }
.board-table tbody tr:hover .subj a { color: var(--c-primary); }
.board-table .num-col, .board-table .meta-col, .board-table .adm-col { white-space: nowrap; }
.board-table .adm-col { width: 46px; }    /* 관리자 체크박스 열 */
.board-table .num-col { width: 88px; }    /* 번호 */
.board-table .meta-col { width: 132px; }  /* 작성자·작성일·조회 각각 */
.board-table tr.notice-row { background: #f2f6fd; }
.board-table tr.notice-row .subj a { font-weight: 700; color: var(--c-fg); }
.board-table tr.notice-row .col-num { font-size: 0; }
.board-table tr.notice-row .col-num::after { content: "공지"; font-size: 11px; font-weight: 700; color: #fff; background: var(--c-primary); padding: 3px 9px; border-radius: 999px; }
.board-table .empty { text-align: center; color: var(--c-muted); padding: 48px 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--c-tag); font-size: 11px; 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; }
.admin-bulk .btn { transition: background .18s, border-color .18s, color .18s; }
.admin-bulk .btn:hover { background: var(--c-danger); border-color: var(--c-danger); color: #fff; text-decoration: none; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--c-line); border-radius: 8px;
  color: var(--c-fg); font-size: 14px; transition: all .15s;
}
.pager a.on { background: var(--c-primary); color: #fff; border-color: var(--c-primary); font-weight: 700; }
.pager a:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); text-decoration: none; }
.pager .pg-nav { font-weight: 700; color: var(--c-muted); padding: 0 10px; }
.pager .pg-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 40px; color: var(--c-muted); }
@media (max-width: 640px) {
  .pager { gap: 5px; margin-top: 30px; }
  .pager a { min-width: 36px; height: 36px; padding: 0 9px; font-size: 13.5px; }
  .pager .pg-gap { min-width: 14px; height: 36px; }
}

/* 모바일: 테이블 → 카드형 리스트 */
@media (max-width: 640px) {
  .board-page.container { padding: 36px 16px 110px; }
  .board-head { justify-content: stretch; }
  .board-tools, .search { width: 100%; }
  .search input { flex: 1; min-width: 0; }
  .board-table { border-top: 2px solid var(--c-primary); }
  .board-table thead { display: none; }
  .board-table tbody, .board-table tr, .board-table td { display: block; width: 100%; }
  .board-table tr { padding: 15px 2px; border-bottom: 1px solid var(--c-line); }
  .board-table tr:hover { background: transparent; }
  .board-table td { border: 0; padding: 0; text-align: left; }
  .board-table td.subj { margin-bottom: 8px; }
  .board-table .subj a { font-size: 16px; font-weight: 600; white-space: normal; line-height: 1.5; }
  .board-table .col-views, .board-table .col-check { display: none; }
  .board-table .col-num { display: block; font-size: 12px; font-weight: 700; color: #9aa2b1; margin-bottom: 5px; }
  .board-table tr.notice-row .col-num { display: block; font-size: 0; margin-bottom: 6px; }
  .board-table .col-author, .board-table .col-date { display: inline-block; width: auto; font-size: 12.5px; color: var(--c-muted); }
  .board-table .col-author::after { content: "·"; margin: 0 7px; opacity: .5; }
}

/* 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: 14px; color: var(--c-fg); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-sub { color: var(--c-muted); font-size: 12px; }

/* 주요고객사(client): 로고 그리드 — 기존 홈페이지 스타일 (로고 전체 노출, 흰 배경, 회사명) */
.board-client .photo-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
@media (max-width: 640px) {
  .board-client .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
.board-client .photo-thumb {
  aspect-ratio: 3 / 2;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  background-origin: content-box;
  padding: 18px;
}
.board-client .photo-meta { padding: 8px 10px 12px; }
.board-client .photo-title { text-align: center; white-space: normal; font-weight: 600; }
.board-client .photo-sub { display: none; }

/* 수행사례(portfolio): 5열 × 5줄 = 25개 */
.board-portfolio .photo-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .board-portfolio .photo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .board-portfolio .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .board-portfolio .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Calendar */
.calendar { width: 100%; border-collapse: separate; border-spacing: 2px; }
.calendar th { background: var(--c-line-2); padding: 8px; font-weight: 600; font-size: 13px; 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: 13px; 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: 11px; 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.container { padding: 48px 20px 90px; max-width: 1120px; }
.crumbs { font-size: 13px; 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: 14px; }
.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; }
/* 자동 링크 카드가 URL을 보여주므로, 본문에 덧붙인 링크 줄은 숨김 */
.post-body .post-link { display: none; }

/* 관련 링크 카드 (기존 게시판 링크 표시 방식) */
.link-block { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border: 1px solid var(--c-line); border-radius: 12px;
  background: #fafbfd; transition: border-color .18s, box-shadow .18s, background .18s;
}
.link-card:hover { border-color: var(--c-primary); background: #fff; box-shadow: 0 6px 18px rgba(10,32,96,.1); text-decoration: none; }
.link-card .lc-icon { flex: 0 0 auto; display: inline-flex; color: var(--c-primary); }
.link-card .lc-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--c-primary); }
.link-card .lc-go { flex: 0 0 auto; color: var(--c-muted); font-size: 16px; }
.link-card:hover .lc-go { color: var(--c-primary); }
.attachments-block { background: var(--c-line-2); padding: 16px; border-radius: var(--radius); margin: 24px 0; }
.attachments-block h3 { font-size: 14px; 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: 13px;
  color: var(--c-muted);
  padding: 8px 14px;
  background: #fff;
  border-top: 1px solid var(--c-line);
  text-align: center;
}
/* 사진 게시판(로고 등): 첨부 이미지 과대 확대 방지 — 적당한 크기로 가운데 표시 */
.post-view.is-photo .post-image { border: 0; background: transparent; overflow: visible; text-align: center; }
.post-view.is-photo .post-image a { display: inline-block; }
.post-view.is-photo .post-image img { width: auto; max-width: min(100%, 460px); max-height: 300px; margin: 0 auto; }

/* 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: 14px; 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: 14px;
  color: var(--c-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.download-card .dl-meta {
  font-size: 12px;
  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: 11px;
  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: 8px; margin: 28px 0; flex-wrap: wrap; }

/* 이전글 / 다음글 */
.prev-next { display: flex; flex-direction: column; margin: 26px 0 0; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.prev-next .pv-row { display: flex; align-items: center; gap: 18px; padding: 15px 22px; color: var(--c-fg); font-size: 14.5px; }
.prev-next .pv-row + .pv-row { border-top: 1px solid var(--c-line); }
.prev-next .pv-row:hover { background: #f6f8fc; text-decoration: none; }
.prev-next .pv-row:hover .pv-tx { color: var(--c-primary); }
.prev-next .pv-lbl { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; width: 74px; font-size: 13px; font-weight: 700; color: var(--c-muted); }
.prev-next .pv-arw { color: var(--c-primary); font-weight: 700; }
.prev-next .pv-tx { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-fg); }

/* 댓글 */
.comments { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--c-primary); }
.comments .cm-title { font-size: 19px; font-weight: 800; color: var(--c-fg); margin: 0 0 16px; }
.comments .cm-count { color: var(--c-primary); }
.comments ul { list-style: none; padding: 0; margin: 0; }
.comments li { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.comments li .cm-av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #eef3fb; color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.comments li .cm-body { flex: 1 1 auto; min-width: 0; }
.comments li .cm-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comments li strong { font-size: 14.5px; font-weight: 700; color: var(--c-fg); }
.comments li time { font-size: 12.5px; color: var(--c-muted); }
.comments li p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #3a4252; }
.comments li.cm-empty { flex-direction: row; align-items: center; justify-content: center; gap: 9px; padding: 20px 0; border: 0; color: var(--c-muted); }
.comments li.cm-empty svg { width: 18px; height: 18px; color: var(--c-line); }
.comments li.cm-empty span { font-size: 14px; }

.comment-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; background: #eef2f8; border: 1px solid #e1e7f0; border-radius: 14px; padding: 22px; }
.comment-form input[type=text], .comment-form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--c-line); border-radius: 8px;
  font-family: inherit; font-size: 14.5px; background: #fff; transition: border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-primary); }
.comment-form .cm-name { max-width: 260px; }
.comment-form textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.comment-form .btn-primary { align-self: flex-end; padding: 13px 34px; border-radius: 8px; font-weight: 700; }
@media (max-width: 560px) {
  .comment-form .cm-name { max-width: none; }
  .comment-form .btn-primary { align-self: stretch; }
}

/* Write form */
.post-write.container { padding: 48px 20px 120px; max-width: 1200px; margin-bottom: 30px; }
.write-form { display: flex; flex-direction: column; gap: 16px; }
.write-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.write-form input[type=text],
.write-form input[type=tel],
.write-form input[type=email],
.write-form input[type=password],
.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: 15px;
  width: 100%; box-sizing: border-box;
}
.write-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.write-form .secret-block input[type=password] { max-width: 465px; }
.write-form fieldset.secret-block,
.write-form fieldset.attachments,
.write-form fieldset.cresc-attach {
  border: 1px solid #f0e6c8; background: #fff8e8;
  border-radius: 12px; padding: 20px 22px; margin: 0;
}
.write-form fieldset legend {
  display: block; padding: 0 8px; margin-left: -4px;
  font-weight: 700; font-size: 15px; color: var(--c-fg); word-break: keep-all;
}
.write-form fieldset legend svg { color: var(--c-primary); vertical-align: -3px; margin-right: 6px; }
.write-form fieldset .cresc-attach-hint { display: inline; margin-left: 8px; font-weight: 400; font-size: 12.5px; color: var(--c-muted); letter-spacing: 0; }
.write-form .secret-block .ck { font-weight: 500; }
.write-form .secret-block small.muted, .write-form fieldset small.muted { display: block; margin-top: 8px; color: var(--c-muted); font-size: 12.5px; }
.write-form fieldset.attachments, .write-form fieldset.cresc-attach { margin-top: 2px; }
.write-form .file-row { margin: 6px 0; }
.write-form .file-row input[type=file] { font-size: 13.5px; color: var(--c-muted); max-width: 100%; }
@media (max-width: 640px) {
  .post-write.container { padding: 28px 14px 120px; }
  .write-form .row { grid-template-columns: 1fr; }
  .write-form fieldset.secret-block,
  .write-form fieldset.attachments,
  .write-form fieldset.cresc-attach { padding: 16px 16px; }
  .write-form fieldset .cresc-attach-hint { display: block; margin: 7px 0 0; }
  .write-form .form-actions { flex-wrap: wrap; }
}
.write-form .form-actions { display: flex; gap: 10px; }
.cresc-hint .ico { display: inline-flex; align-items: center; vertical-align: -3px; margin: 0 2px; color: var(--c-primary); }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 14px; }
.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: 12px; 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: 15px; 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: 11px; 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: 15px; line-height: 1.7; margin: 0; }
.wz-meta { display: flex; gap: 6px; align-items: center; color: var(--c-muted); font-size: 13px; 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: 12px; 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: 13px; 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: 11px; 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: 15px; 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: 11px; 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: 13.5px; 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; }
}

/* ==================== Theo-style header (centered nav / overlay → scroll) ==================== */
.site-header .container { display: grid; grid-template-columns: 1fr auto auto; align-items: center; max-width: 1400px; column-gap: 70px; }
.site-header .logo { justify-self: start; }
.site-header .primary-nav { justify-self: end; }
.site-header .header-actions { justify-self: end; }
.logo img { transition: filter .3s ease; }
.primary-nav a, .lang-btn { transition: color .2s ease; }

/* overlay pages (home hero + banner pages): fixed, transparent at top */
body.nav-overlay .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
body.nav-overlay .site-header:not(.scrolled) .primary-nav > a,
body.nav-overlay .site-header:not(.scrolled) .primary-nav > .has-sub > a,
body.nav-overlay .site-header:not(.scrolled) .lang-btn { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
body.nav-overlay .site-header:not(.scrolled) .primary-nav .caret { color: rgba(255,255,255,.9); }
body.nav-overlay .site-header:not(.scrolled) .lang-switcher .lang-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
body.nav-overlay .site-header:not(.scrolled) .logo img { filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
body.nav-overlay .site-header:not(.scrolled) .nav-toggle span { background: #fff; }

/* scrolled → solid white bar (logo & nav return to color) */
body.nav-overlay .site-header.scrolled {
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--c-line); box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
