/* NEWTYPE WEB FONTS V1.0 */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Montserrat:wght@800;900&family=Rajdhani:wght@600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  color-scheme: light;
  --ink: var(--nt-obsidian);
  --text: var(--nt-obsidian);
  --paper: var(--nt-paper);
  --lime: var(--nt-lime);
  --muted: #50584f;
  --line: #cbd0c4;
  --panel: #fff;
  font: 16px/1.65 "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: var(--nt-paper);
  --paper: #171b19;
  --muted: #c0c8ba;
  --line: #4b554b;
  --panel: #222722;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); }
a { color: inherit; text-underline-offset: .22em; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #487a17; outline-offset: 4px; }
:root[data-theme=dark] :focus-visible, .lead :focus-visible, footer :focus-visible { outline-color: var(--lime); }
.wrap { width: min(100% - clamp(2rem, 7vw, 7rem), 1200px); margin-inline: auto; }
.skip { position: absolute; top: -8rem; left: .75rem; padding: .5rem; color: var(--nt-obsidian); background: var(--lime); z-index: 5; }
.skip:focus { top: .75rem; }
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.75rem); min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; font-family: "Arial Black", system-ui, sans-serif; font-size: clamp(1.3rem, 2.8vw, 2.1rem); font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.brand span { color: #4d7719; margin-left: -.4rem; }
.primary, .tools, .footer-inner nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.6rem); }
.primary a, .footer-inner nav a { text-decoration: none; font-weight: 600; }
.primary a:hover, .footer-inner nav a:hover { text-decoration: underline; }
.tools { margin-left: auto; font-size: .83rem; gap: .75rem; }
.tools button, .site-menu summary { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: .4rem .65rem; white-space: nowrap; }
.site-menu { position: relative; }
.menu-panel { position: absolute; z-index: 2; right: 0; top: calc(100% + .45rem); width: min(21rem, 86vw); background: var(--panel); border: 1px solid var(--line); padding: 1.15rem; box-shadow: 0 8px 24px #0002; }
.menu-panel ul { margin: .45rem 0; padding-left: 1.3rem; }
.search { display: flex; gap: .4rem; }
.search input { min-width: 0; flex: 1; padding: .35rem .5rem; border: 1px solid var(--line); background: var(--paper); color: var(--text); }
.main { padding-block: clamp(1.3rem, 4vw, 3.25rem) clamp(3rem, 8vw, 6rem); }
.lead { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); background: var(--ink); color: var(--nt-paper); min-height: 390px; margin-bottom: 3rem; }
.lead:not(:has(.lead-media)) { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.lead-copy { padding: clamp(1.6rem, 4vw, 4rem); align-self: center; }
.eyebrow { margin: 0 0 .75rem; color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .08em; }
.lead .eyebrow, footer .eyebrow { color: var(--lime); }
.lead h1, .story h1 { margin: 0; font-size: clamp(2.1rem, 4.3vw, 4.05rem); line-height: 1.13; letter-spacing: -.055em; overflow-wrap: anywhere; }
.lead h1 a, .tile h2 a, .tile h3 a { text-decoration: none; }
.lead h1 a:hover, .tile h2 a:hover, .tile h3 a:hover { text-decoration: underline; }
.lead .intro { color: #d8ddd3; margin: 1.15rem 0 1.5rem; }
.lead-link { display: inline-flex; gap: .65rem; background: var(--lime); color: var(--ink); text-decoration: none; padding: .5rem .8rem; font-weight: 700; }
.lead-media { position: relative; display: block; min-width: 0; overflow: hidden; }
.lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edition { margin-top: 2.5rem; }
.section-title { margin: 0 0 1.05rem; border-top: 2px solid var(--text); padding-top: .65rem; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.05em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.tile { padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.tile > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: .85rem; }
.tile h2, .tile h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.32; margin: .2rem 0 .5rem; letter-spacing: -.035em; }
.tile p:not(.eyebrow), .tile time, .byline { color: var(--muted); }
.tile p:not(.eyebrow) { margin: .4rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover:empty, .index:not(:has(.tile, .story)), .main:has(.cover .lead, .listing) .index:not(:has(.story)) { display: none; }
.story { grid-column: 1 / -1; width: min(100%, 760px); margin-inline: auto; }
.story h1 { font-size: clamp(2.1rem, 5vw, 3.65rem); }
.story .byline { margin-bottom: 2rem; }
.prose { font-size: clamp(1.02rem, 1.5vw, 1.125rem); line-height: 1.82; overflow-wrap: anywhere; }
.prose figure { margin: 1.6rem 0; max-width: 100%; }
.prose iframe, .prose video { max-width: 100%; }
.prose pre { margin: 1.5rem 0; overflow-x: auto; padding: 1rem 1.25rem; background: var(--nt-obsidian); color: var(--nt-paper); border-left: .25rem solid var(--lime); }
.prose code { font-family: Consolas, "Courier New", monospace; }
.prose :not(pre) > code { background: var(--panel); padding: .1em .25em; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: .4rem .7rem; border: 1px solid var(--line); }
.tags, .comments { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
.tag-list, .pages { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; list-style: none; }
.pages { margin-top: 2rem; }
.pages a { padding: .35rem .6rem; border: 1px solid var(--line); }
.pages a:not([href]) { opacity: .55; }
footer { background: var(--ink); color: var(--nt-paper); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: end; }
footer .brand span { color: var(--lime); }
footer .eyebrow { margin-top: .8rem; }
@media (max-width: 840px) {
  .primary { display: none; }
  .bar { min-height: 64px; gap: .4rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead { min-height: 0; margin-bottom: 2rem; }
}
@media (max-width: 590px) {
  .lead { grid-template-columns: minmax(0, 1fr); }
  .lead-media { grid-row: 1; aspect-ratio: 16/10; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .tools { gap: .35rem; font-size: .75rem; }
  .brand img { width: 26px; height: 26px; }
  .footer-inner nav { flex-wrap: wrap; }
}
/* NEWTYPE HERO FIX 1.0 */

.cover .lead:has(> .lead-media) {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  aspect-ratio: 21 / 9;
  min-height: 0;
  overflow: hidden;
}

.cover .lead > .lead-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  aspect-ratio: auto;
  background: #0e1213;
}

.cover .lead > .lead-media img {
  object-fit: contain;
  object-position: center;
  transform: none !important;
  scale: none !important;
}

.cover .lead > .lead-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13,17,19,.96),
    rgba(13,17,19,.68) 38%,
    transparent 70%
  );
  pointer-events: none;
}

.cover .lead > .lead-copy {
  position: relative;
  z-index: 1;
  width: 55%;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.cover .lead h1 {
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 760px) {
  .cover .lead:has(> .lead-media) {
    aspect-ratio: auto;
  }

  .cover .lead > .lead-media {
    position: relative;
    inset: auto;
    grid-row: 1;
    z-index: 0;
    aspect-ratio: 21 / 9;
  }

  .cover .lead > .lead-media::after {
    display: none;
  }

  .cover .lead > .lead-copy {
    width: 100%;
  }
}

/* NEWTYPE HERO FIX END */

/* =================================
   NEWTYPE TYPOGRAPHY SYSTEM V1.0
   ================================= */

:root {
  --nt-font-body: "Pretendard Variable",
    "Malgun Gothic", sans-serif;

  --nt-font-logo: "Montserrat",
    "Arial Black", sans-serif;

  --nt-font-display: "Space Grotesk",
    var(--nt-font-body);

  --nt-font-data: "Rajdhani",
    var(--nt-font-body);

  --nt-font-code: "JetBrains Mono",
    Consolas, monospace;

  font-family: var(--nt-font-body);
}

body {
  font-family: var(--nt-font-body);
  -webkit-font-smoothing: antialiased;
}

/* 브랜드 로고 */

.brand {
  font-family: var(--nt-font-logo);
  font-weight: 900;
  letter-spacing: -0.065em;
}

/* 메인 배너 제목 */

.lead h1 {
  font-family: var(--nt-font-body);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.045em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 메뉴 및 영문 브랜드 라벨 */

.primary,
.eyebrow,
.byline,
.lead-link {
  font-family: var(--nt-font-display);
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* 기사 제목 */

.section-title,
.story h1,
.tile h2,
.tile h3 {
  font-family: var(--nt-font-body);
  font-weight: 800;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 포스트 본문 */

.prose,
.nt-post {
  font-family: var(--nt-font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.prose h2,
.nt-post h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
}

.prose h3,
.nt-post h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

/* 숫자 및 모션 그래픽 */

[data-motion-number],
.nt-circle text,
.nt-metric {
  font-family: var(--nt-font-data);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 프로그래밍 코드 */

.prose pre,
.prose code,
.nt-post pre,
.nt-post code {
  font-family: var(--nt-font-code);
  font-size: 14px;
  letter-spacing: 0;
}

/* 이미지 캡션 */

.prose figcaption,
.nt-post figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* 모바일 최적화 */

@media (max-width: 760px) {

  .prose,
  .nt-post {
    font-size: 16px;
    line-height: 1.8;
  }

  .prose h2,
  .nt-post h2 {
    font-size: 24px;
  }

  .prose h3,
  .nt-post h3 {
    font-size: 20px;
  }

  .prose pre,
  .prose code,
  .nt-post pre,
  .nt-post code {
    font-size: 13px;
  }
}

/* NEWTYPE TYPOGRAPHY END */

/* =================================
   NEWTYPE NAVIGATION MOTION V1.0
   ================================= */

.primary a {
  position: relative;
  display: inline-block;
  padding-block: 10px;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

/* 네온 라임 강조선 */

.primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 2px;
  background: #A8ED42;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* 마우스 반응 */

@media (hover: hover) and (pointer: fine) {
  .primary a:hover {
    color: #527A22;
    transform: translateY(-2px);
  }

  .primary a:hover::after {
    transform: scaleX(1);
  }
}

/* 키보드 접근성 */

.primary a:focus-visible {
  outline: 2px solid #527A22;
  outline-offset: 4px;
}

.primary a:focus-visible::after,
.primary a:active::after {
  transform: scaleX(1);
}

/* 모션 감소 설정 */

@media (prefers-reduced-motion: reduce) {
  .primary a,
  .primary a::after {
    transition: none;
  }

  .primary a:hover {
    transform: none;
  }
}

/* NEWTYPE NAVIGATION MOTION END */

/* =================================
   NEWTYPE HERO TEXT MOTION V1.0
   ================================= */

/* 시네마틱 텍스트 등장 효과 */

@keyframes nt-hero-text-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* 브랜드 라벨 */

:root[data-motion~="reveal"]
.cover .lead-copy .eyebrow {
  animation: nt-hero-text-reveal
    0.65s ease-out both;
}

/* 메인 배너 제목 */

:root[data-motion~="reveal"]
.cover .lead-copy h1 {
  animation: nt-hero-text-reveal
    0.95s 0.2s ease-out both;
}

/* 설명 문구 */

:root[data-motion~="reveal"]
.cover .lead-copy .intro {
  animation: nt-hero-text-reveal
    0.7s 0.55s ease-out both;
}

/* 기사 읽기 버튼 */

:root[data-motion~="reveal"]
.cover .lead-copy .lead-link {
  animation: nt-hero-text-reveal
    0.7s 0.8s ease-out both;
}

/* 제목 네온 발광 효과 */

@media (hover: hover) and (pointer: fine) {

  :root[data-motion~="glow"]
  .cover .lead-copy h1 a {
    transition:
      color 0.35s ease,
      text-shadow 0.35s ease;
  }

  :root[data-motion~="glow"]
  .cover .lead-copy h1 a:hover {
    color: #A8ED42;
    text-shadow:
      0 0 12px rgba(168, 237, 66, 0.35),
      0 0 30px rgba(168, 237, 66, 0.15);
    text-decoration: none;
  }
}

/* 모션 감소 설정 지원 */

@media (prefers-reduced-motion: reduce) {

  .cover .lead-copy * {
    animation: none !important;
    transition: none !important;
  }
}

/* NEWTYPE HERO TEXT MOTION END */

/* =================================
   NEWTYPE PROFILE CARD FIX V1.0
   ================================= */

/* 프로필 카드 다크모드 연동 */

:root[data-theme="dark"]
[data-tistory-react-app="Namecard"]
.tt_box_namecard {
  background-color: #222722 !important;
  border: 1px solid #4B554B !important;
  border-left: 3px solid #A8ED42 !important;
  border-radius: 8px;
  color: #F5F5F2 !important;
}

/* 블로그 이름 */

:root[data-theme="dark"]
.tt_box_namecard .tt_tit_cont,
:root[data-theme="dark"]
.tt_box_namecard .tt_tit_cont a {
  color: #A8ED42 !important;
  font-weight: 700;
}

/* 블로그 소개 문구 */

:root[data-theme="dark"]
.tt_box_namecard .tt_desc {
  color: #C0C8BA !important;
  line-height: 1.7;
}

/* 프로필 공통 폰트 */

.tt_box_namecard {
  font-family: var(--nt-font-body,
    "Malgun Gothic", sans-serif) !important;
}

/* NEWTYPE PROFILE CARD FIX END */

/* =================================
   NEWTYPE ARTICLE CARD DESIGN V1.0
   ================================= */

.tile {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(120,128,120,.22);
  border-radius: 10px;
  background: #FFFFFF;
  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

/* 다크모드 카드 */

:root[data-theme="dark"] .tile {
  background: #202522;
  border-color: #343A40;
}

/* 카드 이미지 */

.tile img {
  border-radius: 6px;
  transition: transform .5s ease;
}

/* 기사 제목 */

.tile h2,
.tile h3 {
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.035em;
  word-break: keep-all;
  transition: color .3s ease;
}

/* 마우스 반응 */

@media (hover: hover) and (pointer: fine) {

  .tile:hover {
    border-color: #82B83B;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }

  :root[data-motion~="reveal"] .tile:hover {
    transform: translateY(-5px);
  }

  .tile:hover h2,
  .tile:hover h3 {
    color: #527A22;
  }

  :root[data-theme="dark"] .tile:hover {
    border-color: #A8ED42;
    box-shadow: 0 8px 30px
      rgba(168,237,66,.10);
  }

  :root[data-theme="dark"] .tile:hover h2,
  :root[data-theme="dark"] .tile:hover h3 {
    color: #A8ED42;
  }
}

/* 키보드 접근성 */

.tile:focus-within {
  outline: 2px solid #82B83B;
  outline-offset: 3px;
}

/* 모바일 최적화 */

@media (max-width: 760px) {
  .tile {
    padding: 12px;
    border-radius: 8px;
  }
}

/* 모션 감소 설정 */

@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile * {
    transition: none !important;
    animation: none !important;
  }

  .tile:hover {
    transform: none !important;
  }
}

/* NEWTYPE ARTICLE CARD DESIGN END */
/* =================================
   NEWTYPE ARTICLE CARD FIX V1.1
   ================================= */

/* 카드 내부 여백 개선 */

.edition .tile {
  padding: 16px;
}

/* 기사 대표 이미지 */

.edition .tile .motion-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
}

.edition .tile .motion-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 기사 제목 잘림 방지 */

.edition .tile h2,
.edition .tile h3 {
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.025em;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  margin: 8px 0 12px;
}

/* 본문 요약 4줄 표시 */

.edition .tile p:not(.eyebrow) {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 모바일 가독성 */

@media (max-width: 760px) {
  .edition .tile {
    padding: 14px;
  }

  .edition .tile h2,
  .edition .tile h3 {
    font-size: 20px;
  }
}

/* NEWTYPE ARTICLE CARD FIX END */
/* =================================
   NEWTYPE PREMIUM ARTICLE CARD V1.2
   ================================= */

/* 브랜드 섹션 제목 */

.nt-latest .section-title {
  position: relative;
  padding: 18px 0 12px 16px;
  border-top: 1px solid var(--line);
}

.nt-latest .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 5px;
  height: 24px;
  background: #A8ED42;
  transform: skewX(-15deg);
}

/* 카드 정렬 */

.nt-latest .grid {
  gap: 24px;
  align-items: stretch;
}

.nt-latest .tile {
  display: flex;
  flex-direction: column;
  padding: 14px;
  min-width: 0;
  height: 100%;
}

/* 대표 이미지 */

.nt-latest .motion-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
}

.nt-latest .motion-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 카테고리 및 작성일 */

.nt-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.nt-category {
  display: inline-block;
  padding: 4px 8px;
  background: #A8ED42;
  color: #131518;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nt-card-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 기사 제목 */

.nt-latest .tile .nt-card-title {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.035em;
  word-break: keep-all;
  overflow-wrap: break-word;
  margin: 0 0 12px;
}

/* 기사 요약 */

.nt-latest .tile p.nt-card-summary {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 카드 하단 */

.nt-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.nt-editorial {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}

/* READ MORE 버튼 */

.nt-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--nt-font-display, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #527A22;
  text-decoration: none;
}

:root[data-theme="dark"] .nt-read-more {
  color: #A8ED42;
}

.nt-read-more span {
  display: inline-block;
  font-size: 16px;
}

/* 화살표 모션 */

:root[data-motion~="reveal"] .nt-read-more span {
  transition: transform .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  :root[data-motion~="reveal"]
  .nt-latest .tile:hover .nt-read-more span {
    transform: translate(3px, -3px);
  }
}

/* 키보드 접근성 */

.nt-read-more:focus-visible,
.nt-category:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* 모바일 최적화 */

@media (max-width: 760px) {
  .nt-latest .grid {
    gap: 18px;
  }

  .nt-latest .tile {
    padding: 12px;
  }

  .nt-latest .tile .nt-card-title {
    font-size: 20px;
  }
}

/* 모션 감소 설정 */

@media (prefers-reduced-motion: reduce) {
  .nt-read-more span {
    transition: none !important;
    transform: none !important;
  }
}

/* NEWTYPE PREMIUM ARTICLE CARD END */

/* =================================
   NEWTYPE LAB SIDEBAR V1.0
   ================================= */

/* 최신 기사 그리드 */

.nt-latest > .grid {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  min-width: 0;
}

/* 사이드바 구성 */

.nt-lab {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  margin-top: 24px;
}

.nt-lab-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
}

/* 브랜드 타이틀 */

.nt-lab-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #527A22;
}

:root[data-theme="dark"] .nt-lab-kicker {
  color: #A8ED42;
}

.nt-lab-panel h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

/* 숫자 카운트업 */

.nt-lab-count {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #527A22;
}

:root[data-theme="dark"] .nt-lab-count {
  color: #A8ED42;
}

.nt-lab-count strong {
  font: 700 56px/1
    var(--nt-font-data, sans-serif);
  font-variant-numeric: tabular-nums;
}

.nt-lab-count span {
  font-size: 11px;
  font-weight: 700;
}

.nt-lab-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0;
}

/* 모션 그래프 */

.nt-lab-bars {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.nt-lab-bars label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.nt-lab-bars meter {
  display: block;
  width: 100%;
  height: 12px;
  margin-top: 6px;
}

.nt-lab-bars meter::-webkit-meter-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.nt-lab-bars meter::-webkit-meter-optimum-value {
  background: #82B83B;
  border-radius: 3px;
}

:root[data-theme="dark"]
.nt-lab-bars meter::-webkit-meter-optimum-value {
  background: #A8ED42;
}

.nt-lab-bars meter::-moz-meter-bar {
  background: #82B83B;
}

:root[data-theme="dark"]
.nt-lab-bars meter::-moz-meter-bar {
  background: #A8ED42;
}

/* 카테고리 탐색 메뉴 */

.nt-lab-links {
  display: grid;
}

.nt-lab-links a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nt-lab-links a:hover,
.nt-lab-links a:focus-visible {
  color: #527A22;
}

:root[data-theme="dark"] .nt-lab-links a:hover,
:root[data-theme="dark"] .nt-lab-links a:focus-visible {
  color: #A8ED42;
}

/* PC 레이아웃 */

@media (min-width: 980px) {

  .nt-latest {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr) minmax(230px, 28%);
    column-gap: 24px;
    align-items: start;
  }

  .nt-latest > .section-title {
    grid-column: 1 / -1;
  }

  .nt-lab {
    margin-top: 0;
  }
}

/* 모바일 레이아웃 */

@media (max-width: 590px) {
  .nt-latest > .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* NEWTYPE LAB SIDEBAR END */

/* NEWTYPE SECTION TITLE ALIGNMENT FIX */

.nt-latest .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.nt-latest .section-title::before {
  position: static;
  display: block;
  flex: 0 0 5px;
  width: 5px;
  height: 0.95em;
  background: #A8ED42;
  border-radius: 1px;
  transform: none;
}
/* =================================
   NEWTYPE COMMENT & TAG DESIGN V1.0
   ================================= */

/* 브랜드 해시태그 */

.story .tags {
  line-height: 2.5;
  overflow-wrap: anywhere;
}

.story .tags a {
  display: inline-block;
  max-width: 100%;
  padding: 5px 13px;
  margin: 3px 4px 3px 0;
  background: var(--panel);
  color: #527A22;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

.story .tags a::before {
  content: "#";
  margin-right: 2px;
}

:root[data-theme="dark"] .story .tags a {
  color: #A8ED42;
}

/* 태그 네온 효과 */

:root[data-motion~="glow"] .story .tags a {
  transition:
    background .25s ease,
    color .25s ease,
    box-shadow .25s ease;
}

.story .tags a:hover,
.story .tags a:focus-visible {
  background: #A8ED42;
  color: #131518;
  border-color: #A8ED42;
}

:root[data-motion~="glow"]
.story .tags a:hover {
  box-shadow: 0 0 15px rgba(168,237,66,.25);
}

/* 댓글 영역 공통 스타일 */

.story .comments {
  font-family: var(--nt-font-body, sans-serif);
  padding-top: 24px;
  margin-top: 36px;
}

.story .comments .tt-comment-cont {
  color: var(--text) !important;
}

/* 댓글 제목 및 개수 */

.story .comments .tt-box-total {
  border-left: 4px solid #A8ED42;
  padding-left: 12px;
  margin-bottom: 20px;
}

.story .comments .tt-box-total .tt_txt_g {
  color: var(--text) !important;
  font-size: 18px !important;
  font-weight: 800;
}

.story .comments .tt-box-total .tt_num_g {
  color: #527A22 !important;
  font-size: 18px !important;
  font-weight: 800;
}

:root[data-theme="dark"]
.story .comments .tt-box-total .tt_num_g {
  color: #A8ED42 !important;
}

/* 댓글 프로필 */

.story .comments .tt-thumbnail {
  border-radius: 50% !important;
  box-shadow: 0 0 0 2px var(--line);
}

/* 댓글 입력창 */

.story .comments .tt-box-textarea {
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
  border-radius: 8px !important;
  min-width: 0;
}

.story .comments .tt-inner-g {
  background: transparent !important;
  border: 0 !important;
}

.story .comments .tt-cmt {
  min-height: 90px;
  color: var(--text) !important;
  font-family: var(--nt-font-body, sans-serif);
  font-size: 15px !important;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.story .comments .tt-cmt:empty::before {
  color: var(--muted) !important;
}

/* 댓글 입력 시 포커스 */

.story .comments .tt-box-textarea:focus-within {
  border-color: #527A22 !important;
}

:root[data-theme="dark"]
.story .comments .tt-box-textarea:focus-within {
  border-color: #A8ED42 !important;
}

:root[data-motion~="glow"]
.story .comments .tt-box-textarea {
  transition:
    border-color .3s ease,
    box-shadow .3s ease;
}

:root[data-motion~="glow"]
.story .comments .tt-box-textarea:focus-within {
  box-shadow: 0 0 16px rgba(168,237,66,.2);
}

/* 댓글 작성자 및 일반 댓글 */

.story .comments .tt_txt_user,
.story .comments .tt-link-user {
  color: var(--text) !important;
  font-weight: 700;
}

.story .comments .tt_desc {
  color: var(--text) !important;
  line-height: 1.8;
}

.story .comments .tt_date,
.story .comments .tt-xe-label-text {
  color: var(--muted) !important;
}

/* 비로그인 사용자 입력창 */

.story .comments .tt-box-account input,
.story .comments .tt_inp_g {
  background: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 5px;
}

/* 댓글 등록 버튼 */

.story .comments .tt-btn_register {
  background: #A8ED42 !important;
  color: #131518 !important;
  border: 1px solid #A8ED42 !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  min-height: 36px;
}

.story .comments
.tt-btn_register:not(:disabled):hover {
  background: #B9F467 !important;
}

/* 등록 버튼 비활성 상태 */

.story .comments .tt-btn_register:disabled {
  background: var(--panel) !important;
  color: var(--muted) !important;
  border-color: var(--line) !important;
  cursor: not-allowed;
}

/* 등록 버튼 네온 모션 */

:root[data-motion~="glow"]
.story .comments .tt-btn_register {
  transition: box-shadow .3s ease;
}

:root[data-motion~="glow"]
.story .comments
.tt-btn_register:not(:disabled):hover {
  box-shadow: 0 0 20px rgba(168,237,66,.3);
}

/* 모바일 최적화 */

@media (max-width: 760px) {
  .story .tags a {
    font-size: 12px;
    padding: 5px 10px;
  }

  .story .comments .tt_wrap_write {
    min-width: 0;
  }

  .story .comments .tt-cmt {
    font-size: 16px !important;
  }
}

/* 접근성 및 모션 감소 */

@media (prefers-reduced-motion: reduce) {
  .story .tags a,
  .story .comments .tt-box-textarea,
  .story .comments .tt-btn_register {
    transition: none !important;
  }
}

/* NEWTYPE COMMENT & TAG DESIGN END */
/* =================================
   NEWTYPE MOBILE OPTIMIZATION V1.0
   ================================= */

@media (max-width: 590px) {

  /* 상단 헤더 */

  .top .bar {
    position: relative;
    flex-wrap: wrap;
    padding-block: 14px;
    gap: 12px;
  }

  .top .brand {
    font-size: 24px;
  }

  .top .tools {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* 모바일 터치 버튼 */

  .tools button,
  .site-menu summary {
    min-height: 44px;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
  }

  /* 모바일 메뉴 화면 넘침 방지 */

  .top .site-menu {
    position: static;
  }

  .top .menu-panel {
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    width: auto;
    max-width: 100%;
    max-height: 65vh;
    overflow-y: auto;
    overflow-wrap: anywhere;
    border-radius: 8px;
    z-index: 20;
  }

  /* 메인 배너 */

  .cover .lead {
    border-radius: 10px;
    overflow: hidden;
  }

  .cover .lead-copy {
    padding: 24px 20px;
  }

  .cover .lead h1 {
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.3;
    word-break: keep-all;
  }

  .cover .lead-link {
    min-height: 44px;
    align-items: center;
    border-radius: 4px;
  }

  /* 최신 기사 */

  .nt-latest > .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .nt-latest .tile {
    height: auto;
    padding: 14px;
  }

  /* 인사이트 사이드바 */

  .nt-lab {
    margin-top: 24px;
  }

  .nt-lab-panel {
    padding: 18px;
  }

  .nt-lab-links a {
    min-height: 44px;
    align-items: center;
  }

  /* 게시물 본문 */

  .story h1 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.35;
    word-break: keep-all;
  }

  .story .prose {
    font-size: 16px;
    line-height: 1.85;
  }

  /* 모바일 터치 시 과도한 기울임 방지 */

  .tile.tiltable {
    transform: none !important;
  }

}

/* NEWTYPE MOBILE OPTIMIZATION END */

