/* BYSTECH Technical Information Notes (Micro to Nano 번역본) 전용 스타일
   - colors_and_type.css, style.css 다음에 로드 */

.tn-hero {
  background: linear-gradient(158deg, rgb(9, 26, 54) 0%, rgb(20, 58, 114) 52%, rgb(29, 79, 150) 100%);
  color: #fff;
  padding: 140px 0 56px;
}
.tn-hero .eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgb(96, 165, 250);
  background: rgba(96, 165, 250, 0.12);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.tn-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.tn-hero p {
  font-size: 16px;
  color: rgb(203, 213, 225);
  max-width: 720px;
  line-height: 1.65;
}
.tn-hero .tn-breadcrumb {
  font-size: 13px;
  color: rgb(148, 163, 184);
  margin-bottom: 18px;
}
.tn-hero .tn-breadcrumb a { color: rgb(191, 219, 254); text-decoration: none; }
.tn-hero .tn-breadcrumb a:hover { text-decoration: underline; }

/* 본문 */
.tn-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 0 72px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-neutral-10, #313338);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.tn-article h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-neutral-0, #17171a);
  margin: 44px 0 14px;
  padding-top: 8px;
  letter-spacing: -0.01em;
}
.tn-article h2:first-child { margin-top: 0; }
.tn-article h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-neutral-0, #17171a);
  margin: 30px 0 10px;
}
.tn-article p { margin: 0 0 14px; }
.tn-article ul, .tn-article ol { margin: 0 0 18px; padding-left: 22px; }
.tn-article li { margin-bottom: 6px; }
.tn-article a { color: var(--accent, #0066ff); }
.tn-article sup, .tn-article sub { line-height: 0; }
.tn-article strong { color: var(--color-neutral-0, #17171a); }

.tn-formula {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  background: var(--color-neutral-95, #f7f7f8);
  border: 1px solid var(--color-neutral-80, #e4e5e7);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
  overflow-x: auto;
}

.tn-note {
  background: var(--color-neutral-95, #f7f7f8);
  border-left: 3px solid var(--accent, #0066ff);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 0 0 16px;
}
.tn-note > strong:first-child { display: block; margin-bottom: 4px; }
.tn-note p:last-child { margin-bottom: 0; }

.tn-caution {
  background: #fff7ed;
  border-left: 3px solid #f97316;
  border-radius: 0 10px 10px 0;
  padding: 12px 18px;
  margin: 0 0 16px;
}

/* 역자 주 */
.tn-tr {
  display: block;
  font-size: 14px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0 14px;
}
.tn-tr::before { content: "역자 주 · "; font-weight: 700; }

/* 표 */
.tn-table-wrap {
  background: #fff;
  border: 1px solid rgb(226, 232, 240);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: rgba(0, 0, 0, 0.03) 0 4px 20px;
  margin: 8px 0 22px;
}
.tn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.tn-table th, .tn-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgb(237, 240, 244);
  text-align: center;
  white-space: nowrap;
}
.tn-table thead th {
  background: rgb(15, 32, 64);
  color: #fff;
  font-weight: 600;
}
.tn-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--color-neutral-0, #17171a);
  background: var(--color-neutral-99, #fafafa);
}
.tn-table tbody th, .tn-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
.tn-table thead th:first-child { background: rgb(15, 32, 64); }
.tn-table tbody tr:last-child td, .tn-table tbody tr:last-child th { border-bottom: 0; }
.tn-table td.ok { color: var(--accent, #0066ff); font-weight: 700; }
.tn-table td.no { color: var(--color-neutral-60, #bcbdc2); }
.tn-table td.fix { background: #eff6ff; font-weight: 700; color: #1e40af; }
.tn-table.tn-table--left td { text-align: left; white-space: normal; }
.tn-table-caption { font-size: 13px; color: var(--color-neutral-30, #787b84); margin: -12px 0 22px; }

.tn-figure { margin: 8px 0 26px; text-align: center; }
.tn-figure img { max-width: 100%; height: auto; border: 1px solid rgb(226, 232, 240); border-radius: 10px; background: #fff; }
.tn-figure figcaption { font-size: 14px; color: var(--color-neutral-30, #787b84); margin-top: 8px; }

/* 출처 박스 */
.tn-source {
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid var(--color-neutral-80, #e4e5e7);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-neutral-20, #4e5057);
  background: var(--color-neutral-99, #fafafa);
}
.tn-source strong { color: var(--color-neutral-0, #17171a); }
.tn-source a { word-break: break-all; }

.tn-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.tn-pager a {
  flex: 1 1 240px;
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--color-neutral-80, #e4e5e7);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-neutral-0, #17171a);
  font-size: 15px;
  font-weight: 600;
}
.tn-pager a span { display: block; font-size: 12px; font-weight: 500; color: var(--color-neutral-40, #90929a); margin-bottom: 2px; }
.tn-pager a:hover { border-color: var(--accent, #0066ff); }
.tn-pager a.next { text-align: right; }

/* 목록 페이지 */
.tn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 56px 0 72px;
}
.tn-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--color-neutral-80, #e4e5e7);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.tn-card:hover { border-color: var(--accent, #0066ff); box-shadow: rgba(0, 102, 255, .08) 0 6px 20px; }
.tn-card .tn-cat { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--accent, #0066ff); }
.tn-card h2 { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--color-neutral-0, #17171a); margin: 0; }
.tn-card p { font-size: 14px; line-height: 1.6; color: var(--color-neutral-30, #787b84); margin: 0; }

@media (max-width: 640px) {
  .tn-hero { padding: 112px 0 40px; }
  .tn-article { padding: 40px 0 56px; font-size: 15px; }
  .tn-article h2 { font-size: 20px; }
  .tn-table th, .tn-table td { padding: 8px 9px; font-size: 13px; }
}
