/* 공개본(dnx.kr) · 상단 CONTACT 버튼과 맨 아래 Contact(뉴스·연락처) */
html { scroll-behavior: smooth; }
.topbar .topmeta a.contact-btn, .topbar .topmeta a.contact-btn:visited { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .06em; font-size: 13px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; }
.topbar .topmeta a.contact-btn:hover, .topbar .topmeta a.contact-btn:focus-visible { color: #fff; background: rgba(255,255,255,.12); border-color: #fff; }

.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 28px; scroll-margin-top: 84px; }
.contact .ttl { margin: 0; }
.contact-news .card-head { margin-bottom: 10px; }
.contact-news .card-head a { color: var(--pri); text-decoration: none; }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.news-list li { padding: 12px 0; border-top: 1px solid var(--line2); }
.news-list li:first-child { border-top: 0; padding-top: 4px; }
.news-ttl { color: var(--pri); font-weight: 700; text-decoration: none; line-height: 1.45; }
a.news-ttl:hover { text-decoration: underline; }
.news-list p { margin: 4px 0 0; color: var(--ink2); font-size: 14px; line-height: 1.55; }

.contact-side { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line2); padding-left: 28px; }
.contact-mail { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-mail:hover { color: var(--pri); }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-links a { display: block; text-align: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.contact-links a:hover { border-color: var(--pri); color: var(--pri); }
.contact-pdf { color: var(--pri); text-decoration: none; font-size: 14px; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line2); padding-top: 18px; }
}

/* 자세히 보기 화면 · CONTACT 모달(배경은 50% 어두운 막) */
.contact-dlg { border: 0; padding: 0; background: transparent; max-width: min(960px, calc(100vw - 32px));
  width: 100%; max-height: calc(100vh - 48px); overflow: visible; }
.contact-dlg::backdrop { background: rgba(0, 0, 0, .5); }
.contact-dlg[open] { animation: contact-in .18s ease-out; }
.contact-dlg .contact { margin: 0; max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.contact-x { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; color: #444; font-size: 26px; line-height: 1; cursor: pointer; }
.contact-x:hover, .contact-x:focus-visible { background: #f1f3f7; }
html.contact-lock { overflow: hidden; }
@keyframes contact-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .contact-dlg[open] { animation: none; } }
