/* Tech Center 기술 문서 상세 */

body.single-techcenter {
  background: #f3f7f8 !important;
  color: #3a4d5c;
  font-family: Pretendard, "Segoe UI", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hello Elementor 푸터가 검정 배경만 남은 상태로 글 맨 아래에 붙어 보임 */
body.single-techcenter #site-footer.site-footer {
  display: none !important;
}

body.single-techcenter .ednc-tc-article {
  --navy: #1e3d56;
  --navy-600: #2d5270;
  --ink: #243849;
  --muted: #5a6b7a;
  --muted-light: #7e8c99;
  --line: #dce6ea;
  --brand: #009375;
  --teal: #00a99d;
  --teal-700: #0d8f84;
  --cta: #163044;
  --code: #1c3346;
  --surface: #f3f7f8;
  --paper: #ffffff;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
}

/* ── 히어로 ── */
.ednc-tc-article__hero {
  width: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 2px 0 0 var(--teal);
}

.ednc-tc-article__hero-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 28px 28px;
}

.ednc-tc-article__bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted-light);
  line-height: 1.4;
}

.ednc-tc-article__bc a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ednc-tc-article__bc a:hover {
  color: var(--navy);
}

.ednc-tc-article__bc-sep {
  color: #c5cad3;
  font-weight: 400;
}

.ednc-tc-article__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 163, 157, 0.22);
  border-radius: 4px;
  background: #f6fbfb;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.ednc-tc-article__title,
body.single-techcenter .ednc-tc-article h1.ednc-tc-article__title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.02em !important;
  word-break: keep-all;
}

.ednc-tc-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 12.5px;
  font-weight: 500;
}

.ednc-tc-article__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ednc-tc-article__meta li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 12px 0 10px;
  border-radius: 50%;
  background: #c5cad3;
}

.ednc-tc-article__meta svg {
  flex: 0 0 auto;
  color: #a0a8b4;
}

/* ── 본문 + 사이드바 ── */
.ednc-tc-article__wrap {
  width: 100%;
}

.ednc-tc-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 24px 88px;
  align-items: start;
}

.ednc-tc-article__main {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
  padding: 32px 28px 32px;
}

.ednc-tc-article__content {
  font-size: 16px;
  line-height: 1.8;
  color: #3a4d5c;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ednc-tc-article__content .wp-block-uagb-container,
.ednc-tc-article__content .uagb-container-inner-blocks-wrap {
  max-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
}

.ednc-tc-article__content > *:first-child {
  margin-top: 0;
}

.ednc-tc-article__content p {
  margin: 0 0 18px;
}

.ednc-tc-article__content a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-color: rgba(0, 122, 114, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ednc-tc-article__content a:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

.ednc-tc-article__content ul,
.ednc-tc-article__content ol {
  margin: 0 0 20px;
  padding-left: 1.3em;
}

.ednc-tc-article__content li {
  margin: 0 0 7px;
  line-height: 1.75;
}

.ednc-tc-article__content strong {
  color: var(--ink);
  font-weight: 650;
}

.ednc-tc-article__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.12em 0.38em;
  border-radius: 3px;
  background: #f4f7fb;
  color: var(--navy);
  border: 1px solid #e8eef5;
}

.ednc-tc-article__content pre {
  margin: 0 0 22px;
  padding: 16px 18px;
  overflow: auto;
  border-radius: 6px;
  background: var(--code);
  color: #e6f7f6;
}

.ednc-tc-article__content pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.ednc-tc-article__content h2,
.ednc-tc-article__content h2.wp-block-heading {
  margin: 44px 0 14px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.ednc-tc-article__content h3,
.ednc-tc-article__content h3.wp-block-heading {
  margin: 28px 0 10px;
  color: var(--navy-600);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}

.ednc-tc-article__content h4 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.ednc-tc-article__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  cursor: zoom-in;
}

.ednc-tc-article__content figure {
  margin: 16px 0 22px;
}

.ednc-tc-article__content figure img {
  margin: 0;
}

.ednc-tc-article__content figcaption {
  margin-top: 8px;
  color: var(--muted-light);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}

.ednc-tc-article__content table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  font-size: 14px;
}

.ednc-tc-article__content th,
.ednc-tc-article__content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ednc-tc-article__content th {
  background: #f4f7fb;
  color: var(--navy);
  font-weight: 650;
}

.ednc-tc-article__content blockquote {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-left: 3px solid var(--teal);
  background: #f4f7fb;
  color: var(--ink);
  border-radius: 0 6px 6px 0;
}

.ednc-tc-article__content hr,
.ednc-tc-article__content .wp-block-separator {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.ednc-tc-article__content .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

.ednc-tc-article__content .wp-block-file__embed {
  flex: 1 0 100%;
  width: 100%;
}

.ednc-tc-article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.ednc-tc-article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ednc-tc-article__back:hover {
  color: var(--navy);
}

.ednc-tc-article__back svg {
  flex: 0 0 auto;
}

/* ── Sticky 사이드바 ── */
.ednc-tc-article__aside {
  min-width: 0;
}

.ednc-tc-article__sticky {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ednc-tc-toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 14px 14px;
}

.ednc-tc-toc__kicker {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ednc-tc-toc__title,
body.single-techcenter .ednc-tc-toc h2.ednc-tc-toc__title {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.ednc-tc-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(48vh, 360px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c5d5dc transparent;
}

.ednc-tc-toc__list::-webkit-scrollbar {
  width: 6px;
}

.ednc-tc-toc__list::-webkit-scrollbar-thumb {
  background: #c5d5dc;
  border-radius: 999px;
}

.ednc-tc-toc__item {
  margin: 0;
}

.ednc-tc-toc__item a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 7px 8px 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  color: var(--muted);
  font-size: 14px !important;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ednc-tc-toc__item--h2 a {
  color: var(--ink);
  font-weight: 600;
}

.ednc-tc-toc__item--h3 a {
  padding-left: 16px;
  font-size: 13px !important;
  font-weight: 500;
}

.ednc-tc-toc__item a:hover {
  color: var(--teal-700);
  background: #f3fbfa;
}

.ednc-tc-toc__item.is-active a {
  color: var(--teal-700);
  background: #eef8f7;
  border-left-color: var(--teal);
  font-weight: 650;
}

.ednc-tc-toc__empty {
  margin: 0;
  color: var(--muted-light);
  font-size: 12.5px;
  line-height: 1.55;
}

.ednc-tc-cta {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  color: #1e293b;
}

.ednc-tc-cta::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -32px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 147, 117, 0.08) 0%, rgba(0, 147, 117, 0) 70%);
  pointer-events: none;
}

.ednc-tc-cta__kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #009375;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.ednc-tc-cta__icon {
  flex: 0 0 auto;
  color: #009375;
}

.ednc-tc-cta__title {
  position: relative;
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
  word-break: keep-all;
}

.ednc-tc-cta__text {
  position: relative;
  margin: 0 0 18px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
  word-break: keep-all;
}

.ednc-tc-cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: #009375;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  text-align: center;
  word-break: keep-all;
  box-shadow: 0 2px 8px rgba(0, 147, 117, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ednc-tc-cta__btn-arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.ednc-tc-cta__btn:hover {
  background: #007a62;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 122, 98, 0.28);
}

.ednc-tc-cta__btn:hover .ednc-tc-cta__btn-arrow {
  transform: translateX(2px);
}

.ednc-tc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: rgba(15, 23, 42, 0.72);
  cursor: zoom-out;
}

.ednc-tc-lightbox[hidden] {
  display: none;
}

.ednc-tc-lightbox__img {
  display: block;
  max-width: min(96vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.ednc-tc-lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.ednc-tc-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

body.ednc-tc-lightbox-open {
  overflow: hidden;
}

/* ── 모바일 ── */
@media (max-width: 960px) {
  .ednc-tc-article__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ednc-tc-article__sticky {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .ednc-tc-article__hero-inner {
    padding: 22px 16px 22px;
  }

  .ednc-tc-article__title,
  body.single-techcenter .ednc-tc-article h1.ednc-tc-article__title {
    font-size: 18px !important;
  }

  .ednc-tc-article__layout {
    padding: 18px 16px 56px;
  }

  .ednc-tc-article__main {
    padding: 22px 18px 24px;
  }

  .ednc-tc-article__content {
    font-size: 15.5px;
    line-height: 1.75;
  }

  .ednc-tc-article__content h2,
  .ednc-tc-article__content h2.wp-block-heading {
    margin-top: 32px;
    font-size: 1rem;
  }
}
