/* =====================================================================
   PSD 홈페이지 스타일 (style.css)
   ---------------------------------------------------------------------
   ■ 색상을 바꾸고 싶으면 맨 위 :root 안의 값만 바꾸면 전체에 적용됩니다.
     예) --accent: #1d8580;  ← 포인트 색 (버튼, 강조 글자)
   ■ 색상 코드는 #RRGGBB 형식입니다. (구글에서 "color picker" 검색)
   ■ 레이아웃 개념: 전기 도면 시트처럼 얇은 선과 격자로 구획을 나누고,
     짙은 남색(도면 잉크)과 청록(포인트) 두 색만 사용합니다.
   ===================================================================== */

:root {
  /* ── 색상 (밝은 화면) ── */
  --bg:        #f3f6f7;   /* 페이지 바탕 */
  --surface:   #ffffff;   /* 카드·표 바탕 */
  --alt:       #e9eef0;   /* 회색 구간 바탕 */
  --ink:       #12263a;   /* 기본 글자 (남색) */
  --muted:     #566876;   /* 보조 글자 */
  --line:      #d3dce1;   /* 테두리 선 */
  --accent:    #1d8580;   /* 포인트 (청록) */
  --accent-ink:#ffffff;   /* 포인트 위 글자 */
  /* 짙은 구간(메인화면·문의)은 밝은/어두운 화면 모두 남색 */
  --band:      #10212f;
  --band-ink:  #e6eef2;
  --band-muted:#9fb3bf;
  --band-line: #2a4052;
  --band-accent:#4cc2b9;

  /* ── 글꼴 ── */
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  /* ── 글자 크기 단계 ── */
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-md: 1rem;
  --fs-lg: 1.2rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  --fs-hero: clamp(1.9rem, 1.2rem + 3vw, 3.2rem);

  /* ── 간격 ── */
  --gap: 20px;
  --section-pad: clamp(56px, 8vw, 104px);
  --radius: 4px;
  --maxw: 1180px;
}

/* 어두운 화면(다크모드) 설정 - 기기 설정이 다크모드일 때 자동 적용 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1821; --surface: #12222e; --alt: #0f1d28; --ink: #e2eaee;
    --muted: #93a6b2; --line: #243a4b; --accent: #43b6ad; --accent-ink: #06161c;
    --band: #081219; --band-line: #213646;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1821; --surface: #12222e; --alt: #0f1d28; --ink: #e2eaee;
  --muted: #93a6b2; --line: #243a4b; --accent: #43b6ad; --accent-ink: #06161c;
  --band: #081219; --band-line: #213646;
  color-scheme: dark;
}

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.7;
  word-break: keep-all;          /* 한글 단어 중간에서 줄바꿈 방지 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 좌우 여백을 잡아주는 공통 틀 */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--band-accent); color: #06161c; }
.btn-primary:hover { background: #6fd3cb; }
.btn-ghost { border-color: var(--band-line); color: var(--band-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--band-accent); color: var(--band-accent); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================================
   상단 메뉴
   ===================================================================== */
body::before {               /* 휴대폰 상단 상태표시줄 영역 색 */
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--band);
  color: var(--band-ink);
  border-bottom: 1px solid var(--band-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* 로고: 점(●) 색은 글자색을 따라가므로 어두운 바탕에서는 흰색으로 보입니다 */
.logo { width: 34px; height: 34px; flex: none; display: block; }
.footer-brand .logo { width: 28px; height: 28px; }
.brand-name { font-weight: 600; font-size: var(--fs-sm); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none; font-size: var(--fs-sm); padding: 8px 12px; border-radius: var(--radius);
  color: var(--band-muted);
}
.site-nav a:hover { color: var(--band-ink); }
.site-nav .nav-cta { color: var(--band-accent); border: 1px solid var(--band-line); margin-left: 6px; }
.site-nav .nav-cta:hover { border-color: var(--band-accent); }

.nav-toggle { display: none; }

/* 휴대폰 화면(820px 이하)에서는 메뉴를 접어둡니다 */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--band-line);
    border-radius: var(--radius); cursor: pointer; color: var(--band-ink);
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--band); border-bottom: 1px solid var(--band-line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--band-line); border-radius: 0; }
  .site-nav .nav-cta { margin: 12px 0 0; border-radius: var(--radius); text-align: center; }
}

/* =====================================================================
   짙은 구간 공통 (메인화면, 문의)
   ===================================================================== */
.band-dark {
  background-color: var(--band);
  color: var(--band-ink);
  /* 도면 모눈 (5mm 격자 느낌) */
  background-image:
    linear-gradient(rgba(120,160,180,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,180,.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.band-dark .eyebrow { color: var(--band-accent); }

/* =====================================================================
   1. 메인 화면
   ===================================================================== */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.01em; }
.hero-services { color: var(--band-muted); font-size: var(--fs-md); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* 도면 표제란 */
.title-block {
  border: 1.5px solid var(--band-ink);
  background: rgba(8, 18, 25, .55);
  font-size: var(--fs-sm);
  min-width: 0;
}
.tb-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 14px;
  border-bottom: 1.5px solid var(--band-ink);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em;
  color: var(--band-muted);
}
.tb-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.tb-cell {
  padding: 10px 14px;
  border-bottom: 1px solid var(--band-line);
  border-right: 1px solid var(--band-line);
  min-width: 0;
}
.tb-grid .tb-cell:nth-child(3), .tb-grid .tb-cell:nth-child(5) { border-right: 0; } /* 오른쪽 칸 */
.tb-wide { grid-column: 1 / -1; border-right: 0; }
.tb-grid .tb-cell:last-child { border-bottom: 0; }
.tb-cell dt {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--band-muted); margin-bottom: 2px;
}
.tb-cell dd { margin: 0; font-weight: 500; }
.tb-cell small { color: var(--band-muted); font-weight: 400; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* =====================================================================
   일반 구간
   ===================================================================== */
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--alt); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head h2 { font-size: var(--fs-xl); }
.section-sub { color: var(--muted); font-size: var(--fs-sm); }
.sub-title { font-size: var(--fs-lg); }

/* ── 회사소개 ── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 16px; max-width: 34em; }
.lead { font-size: var(--fs-lg); font-weight: 600; }
.about-text p:not(.lead) { color: var(--muted); }

.org { border: 1px solid var(--line); background: var(--surface); }
.org-top {
  padding: 12px 18px; font-weight: 700; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.org-top::after { content: "CEO"; font-family: var(--font-mono); font-weight: 400; color: var(--muted); font-size: var(--fs-xs); align-self: center; }
.org-list { list-style: none; margin: 0; padding: 0; }
.org-list li {
  display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm);
}
.org-list li:last-child { border-bottom: 0; }
.org-list span { color: var(--muted); }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .org-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ── 수행 영역 6칸 ── */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cap {
  padding: 24px 22px 28px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
}
.cap-code { font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.06em; }
.cap h3 { font-size: var(--fs-lg); }
.cap p:last-child { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 820px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cap-grid { grid-template-columns: 1fr; } }

/* ── 프로세스 ── */
.process { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 8px; }
.process-list {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
}
.process-list li {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 18px 18px 0;
  border-top: 2px solid var(--ink);
  font-size: var(--fs-sm);
}
/* 단계 사이 화살표 */
.process-list li:not(:last-child)::after {
  content: ""; position: absolute; top: -7px; right: 10px;
  border-left: 8px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.process-list .step { color: var(--accent); font-size: var(--fs-sm); font-weight: 500; }
.process-list strong { font-size: var(--fs-md); }
.process-list span:not(.step) { color: var(--muted); }
.process-list em { font-style: normal; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }
@media (max-width: 820px) {
  .process-list { grid-template-columns: 1fr; }
  .process-list li { border-top: 0; border-left: 2px solid var(--ink); padding: 4px 0 20px 18px; }
  .process-list li:not(:last-child)::after {
    top: auto; bottom: -1px; right: auto; left: -7px;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-top: 8px solid var(--ink); border-bottom: 0;
  }
}

/* ── 적용 산업 ── */
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ind {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px;
}
.ind-tag { font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.08em; }
.ind h3 { font-size: var(--fs-lg); }
.ind-desc { color: var(--muted); font-size: var(--fs-sm); }
.ind-work { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.ind-desc + .ind-work { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
@media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }

/* ── 기술 표 ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th {
  width: 14em; font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-xs);
  letter-spacing: 0.08em; color: var(--accent); white-space: nowrap; padding-top: 17px;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { padding: 14px 16px 0; border-bottom: 0; }
  .spec-table td { padding: 2px 16px 14px; }
}

/* ── 연구개발 ── */
.rnd { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 8px; }
.rnd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 20px; }
.rnd-item { border-top: 2px solid var(--accent); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.rnd-code { font-size: var(--fs-xs); color: var(--accent); }
.rnd-item h4 { font-size: var(--fs-md); }
.rnd-item p:last-child { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 820px) { .rnd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .rnd-grid { grid-template-columns: 1fr; } }

/* ── 포트폴리오 사진 ── */
.works { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 20px; }
.works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.work { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.work-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; transition: opacity .15s; }
.work-zoom:hover img { opacity: .88; }
.work img.pos-top { object-position: center 28%; }  /* 세로 사진: 위쪽(PLC·차단기) 기준으로 보이게 */
.work figcaption { padding: 10px 14px; font-weight: 600; font-size: var(--fs-sm); border-top: 1px solid var(--line); }
@media (max-width: 820px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   6. 수행실적 표
   ===================================================================== */
.section-sub strong { color: var(--ink); font-family: var(--font-mono); }
.proj-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.year-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.year-filter button {
  font-family: var(--font-mono); font-size: var(--fs-sm);
  min-height: 38px; padding: 0 14px; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.year-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { flex: 1 1 240px; max-width: 360px; }
.search input {
  width: 100%; min-height: 40px; padding: 0 14px;
  font: inherit; font-size: var(--fs-sm);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.proj-count { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 8px; font-family: var(--font-mono); }

.proj-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.proj-table th {
  text-align: left; padding: 10px 14px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.04em; white-space: nowrap;
}
.proj-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.proj-table tbody tr:hover td { background: var(--alt); }
.proj-table .c-no, .proj-table .c-ym, .proj-table .c-qty { white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.proj-table td.c-no, .proj-table td.c-ym { color: var(--muted); }
.proj-table .c-qty { text-align: right; width: 4.5em; }
.proj-empty { text-align: center; color: var(--muted); padding: 28px !important; }
.proj-more { margin: 16px auto 0; display: flex; }
@media (max-width: 480px) {
  .proj-table th, .proj-table td { padding: 9px 10px; }
  .proj-table .c-no { display: none; }       /* 좁은 화면에서는 번호 열 숨김 */
}

/* =====================================================================
   7. 연혁 · 인증 · 협력사
   ===================================================================== */
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));   /* 한 줄에 3개 */
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.timeline li {
  padding: 20px 20px 24px; background: var(--surface);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.t-year { font-size: 1.5rem; font-weight: 500; color: var(--accent); }
.timeline p { font-size: var(--fs-sm); }
@media (max-width: 820px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 개수가 홀수면 마지막 칸을 가로 전체로 (빈칸 방지) */
  .timeline li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.cert-block { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 8px; }
.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 20px; }
.cert {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; cursor: zoom-in; font: inherit; color: inherit;
}
.cert:hover { border-color: var(--accent); }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #fff; border: 1px solid var(--line); margin-bottom: 8px; }
.cert-name { font-weight: 600; font-size: var(--fs-sm); }
.cert-meta { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 820px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cert-text {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
}
.cert-text li { display: flex; flex-direction: column; font-size: var(--fs-sm); border-left: 2px solid var(--line); padding-left: 12px; }
.cert-text span { color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 820px) { .cert-text { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* =====================================================================
   8. 문의
   ===================================================================== */
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 72px);
  padding-block: var(--section-pad);
}
.contact-copy { display: flex; flex-direction: column; gap: 14px; }
.contact h2 { font-size: var(--fs-xl); }
.contact-sub { color: var(--band-muted); max-width: 30em; }
.contact-list { margin: 0; border-top: 1px solid var(--band-line); }
.contact-list > div {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--band-line);
}
.contact-list dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--band-muted); padding-top: 3px; }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--band-line); }
.contact-list a:hover { color: var(--band-accent); border-color: var(--band-accent); }
.copy-btn {
  margin-left: 6px; font: inherit; font-size: 0.72rem; font-weight: 400;
  padding: 2px 8px; cursor: pointer; border-radius: 2px;
  background: transparent; color: var(--band-muted); border: 1px solid var(--band-line);
  vertical-align: 1px;
}
.copy-btn:hover { color: var(--band-accent); border-color: var(--band-accent); }
.map-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; } }

/* =====================================================================
   하단
   ===================================================================== */
.site-footer { background: var(--band); color: var(--band-muted); border-top: 1px solid var(--band-line); font-size: var(--fs-xs); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-start; justify-content: space-between; padding-block: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--band-ink); font-weight: 600; font-size: var(--fs-sm); }
.footer-info { line-height: 1.8; flex: 1 1 320px; }

/* =====================================================================
   인증서 확대 창
   ===================================================================== */
.lightbox {
  border: 0; padding: 0; max-width: min(92vw, 760px); width: 100%;
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
}
.lightbox::backdrop { background: rgba(5, 12, 18, .78); }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; }
.lightbox-close { font: inherit; font-size: var(--fs-sm); padding: 6px 14px; cursor: pointer; background: var(--ink); color: var(--bg); border: 0; border-radius: var(--radius); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 줄바꿈 금지 (주소 번지 등) */
.nowrap { white-space: nowrap; }
@media (max-width: 480px) { .contact-list > div { grid-template-columns: 5.5em minmax(0, 1fr); } }
