/* ============================================================
   파란인사이트 — 기본 스타일

   파란미디어랩(paranmedialab.com)의 디자인 언어를 그대로 가져옵니다.
     · 네이비 헤더·히어로·푸터 + 흰 카드 본문
     · 카드 상단 파랑→빨강 바
     · 굵은 제목(800~850)과 좁은 자간
     · 크게 둥근 모서리(20~24px), 넓게 퍼지는 그림자
   본문만 40~60대 가독성에 맞춰 18px / 행간 1.8 로 유지합니다.
   ============================================================ */

:root {
  /* 브랜드 — paranmedialab.com 에서 추출한 값 */
  --navy: #0a2036;
  --navy-deep: #071d30;
  --navy-mid: #0d3a5b;
  --blue: #285fd1;
  --blue-dark: #1e4ba8;
  --blue-light: #78a7ff;
  --red: #d9363e;
  --cream: #f6f1e8;

  /* 지면 */
  --page: #f5f9fc;
  --card: #ffffff;
  --line: #c8dbea;
  --line-soft: #e4edf5;
  --tint: #eef4fb;

  /* 글자 */
  --ink: #16283a;
  --ink-soft: #4d5f73;
  --ink-faint: #7b8b9d;

  --shadow-card: 0 22px 60px rgba(13, 58, 91, 0.09);
  --shadow-deep: 0 30px 80px rgba(13, 58, 91, 0.25);
  --radius: 20px;
  --radius-lg: 24px;
  --wrap: 800px;
  --wrap-wide: 1120px;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  font-size: 18px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-wide { max-width: var(--wrap-wide); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ============================================================
   헤더 — 네이비 바
   ============================================================ */

.site-header {
  background: var(--navy);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.28;
}
.brand-name {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
}
/* 파란미디어랩의 "PARAN." 로고와 같은 두 톤 + 마침표 처리 */
.brand-name em { font-style: normal; color: var(--blue-light); }
.brand-name i { font-style: normal; color: var(--red); }
.brand-tag {
  font-size: 0.79rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: -0.01em;
}

.nav-toggle { position: absolute; left: -9999px; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  user-select: none;
}
.nav-toggle-label:hover { background: rgba(255, 255, 255, 0.1); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 9px 15px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--blue);
}

@media (max-width: 940px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle-label { display: block; }
  .site-nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 620px; }
  .site-nav ul { flex-direction: column; padding: 6px 0 10px; gap: 0; }
  .site-nav a { padding: 13px 14px; border-radius: 10px; }
}

/* ============================================================
   히어로 — 네이비 그라데이션
   ============================================================ */

.hero {
  background: linear-gradient(130deg, var(--navy-deep), var(--navy-mid));
  padding: 60px 0 64px;
  color: #fff;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 2.7rem;
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.06em;
  color: var(--cream);
}
.hero h1::before { display: none; }
.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  max-width: 46em;
}

/* 섹션 라벨 — 빨간 점 + 파란 대문자 (파란미디어랩 eyebrow) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 6px 15px 6px 13px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

/* ============================================================
   본문 공통
   ============================================================ */

main { display: block; padding-bottom: 72px; }

h1 {
  font-size: 2.1rem;
  line-height: 1.28;
  font-weight: 850;
  letter-spacing: -0.05em;
  margin: 0 0 16px;
  color: var(--navy);
}
h2 {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 48px 0 16px;
  color: var(--navy);
}
/* 제목 위 짧은 파란 바 */
h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  margin-bottom: 14px;
}
h3 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 32px 0 10px;
  color: var(--navy);
}
p { margin: 0 0 18px; }
ul, ol { margin: 0 0 20px; padding-left: 22px; }
li { margin-bottom: 9px; }
strong { font-weight: 700; color: var(--navy); }

blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--blue);
  background: var(--tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}
blockquote p:last-child { margin-bottom: 0; }

/* ---------- 표 ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  font-size: 0.96rem;
  background: var(--card);
}
th, td {
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th {
  background: var(--tint);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* ============================================================
   흰 카드 지면 (게시글 · 카테고리 · 고정 페이지)
   ============================================================ */

.sheet {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 44px 48px;
  margin-top: 22px;
}
.sheet > h2:first-child,
.sheet > .article-head + h2 { margin-top: 8px; }

@media (max-width: 720px) {
  .sheet {
    padding: 28px 20px 34px;
    border-radius: 16px;
    margin-top: 14px;
  }
}

/* ---------- 빵부스러기 ---------- */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-faint);
  padding-top: 22px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--line);
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

/* ============================================================
   카드 목록 — 상단 파랑→빨강 바
   ============================================================ */

.section-block { margin-top: 56px; }
.section-block:first-of-type { margin-top: 44px; }

.section-title {
  font-size: 1.62rem;
  font-weight: 850;
  letter-spacing: -0.045em;
  color: var(--navy);
  margin: 0 0 8px;
}
.section-title::before { display: none; }
.section-desc {
  color: var(--ink-soft);
  font-size: 0.99rem;
  margin: 0 0 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
/* 파란미디어랩 카드의 시그니처: 상단 파랑 바 + 오른쪽 끝 빨강 */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--blue) 0%,
    var(--blue) 78%,
    var(--red) 78%,
    var(--red) 100%
  );
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(13, 58, 91, 0.16);
}
.card h3 {
  margin: 6px 0 10px;
  font-size: 1.16rem;
  line-height: 1.45;
}
.card h3 a { text-decoration: none; color: var(--navy); }
.card h3 a:hover { color: var(--blue); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card-count {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------- 글 목록 ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li {
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 0;
  margin: 0;
}
.post-list > li:first-child { padding-top: 4px; }
.post-list > li:last-child { border-bottom: 0; padding-bottom: 4px; }
.post-list h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.48;
}
.post-list h3 a { text-decoration: none; color: var(--navy); }
.post-list h3 a:hover { color: var(--blue); text-decoration: underline; }
.post-list p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.97rem; }

.post-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.tag {
  display: inline-block;
  background: var(--tint);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.81rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.tag:hover { background: #dfeafa; color: var(--blue-dark); }

/* ---------- 게시글 ---------- */
.article-head {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line-soft);
  margin-bottom: 30px;
}
.article-head h1 { margin-bottom: 14px; }
.article-lead { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 16px; }

.notice {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 34px 0 0;
}
.notice strong { color: var(--navy); }
.notice p:last-child { margin-bottom: 0; }
.notice ul { margin-bottom: 14px; }

.sources { font-size: 0.92rem; }
.sources li { margin-bottom: 6px; }

.related { margin-top: 44px; }
.related h2 { margin-top: 0; font-size: 1.34rem; }

/* ============================================================
   푸터 — 네이비
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 46px 0 50px;
  font-size: 0.93rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
  margin-bottom: 32px;
}
.footer-cols h2 {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  padding: 0;
  color: var(--blue-light);
  font-weight: 800;
}
.footer-cols h2::before { display: none; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 9px; line-height: 1.5; }
.footer-cols a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.87rem;
  line-height: 1.7;
}
.footer-bottom p { margin: 0 0 8px; }
.footer-bottom p:last-child { margin-bottom: 0; }

/* ============================================================
   404 · 버튼 · 문의
   ============================================================ */

.center-block { text-align: center; padding: 66px 0 20px; }
.center-block h1 { font-size: 2.3rem; }
.center-block p { color: var(--ink-soft); }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 14px;
  box-shadow: 0 12px 30px rgba(40, 95, 209, 0.28);
}
.btn:hover { background: var(--blue-dark); color: #fff; }

.contact-note {
  background: linear-gradient(130deg, var(--navy-deep), var(--navy-mid));
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 26px 0;
  box-shadow: var(--shadow-deep);
}
.contact-note strong { color: #fff; }
.contact-note a { color: var(--blue-light); }
.contact-note a:hover { color: #fff; }
.contact-note p:last-child { margin-bottom: 0; }
.mail-link { font-size: 1.14rem; font-weight: 700; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 44px 0 46px; }
  .hero h1 { font-size: 1.92rem; letter-spacing: -0.05em; }
  .hero p { font-size: 1.01rem; }
  h1 { font-size: 1.66rem; }
  h2 { font-size: 1.28rem; margin-top: 40px; }
  h3 { font-size: 1.1rem; }
  .section-title { font-size: 1.36rem; }
  .center-block h1 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .site-nav { transition: none; }
  .card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .breadcrumb, .related { display: none; }
  body { background: #fff; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
}

/* ============================================================
   추가 구성요소
   ============================================================ */

/* 스크롤해도 메뉴가 따라오도록 — 긴 글에서 이동이 편합니다 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 제목 끝 빨간 마침표 — 파란미디어랩 로고의 마침표와 같은 리듬 */
h1 i,
.hero h1 i {
  font-style: normal;
  color: var(--red);
}

/* ---------- 히어로 질감 ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
/* 옅은 격자 + 오른쪽 위 빛 번짐. 글자 가독성은 건드리지 않는 수준으로만. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120, 167, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 167, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(160deg, #000 15%, transparent 72%);
  -webkit-mask-image: linear-gradient(160deg, #000 15%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 213, 255, 0.16), transparent 66%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions .btn { margin-top: 0; }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- 페이지 머리말 ---------- */
.page-head { padding: 34px 0 4px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .article-lead { margin-bottom: 14px; max-width: 44em; }
.page-head .post-meta { margin-top: 6px; }

/* ---------- 흰 카드 변형 ---------- */
.sheet-tight { padding: 14px 34px; }
@media (max-width: 720px) {
  .sheet-tight { padding: 8px 20px; }
}

/* ---------- 목차 ---------- */
.toc {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px 20px;
  margin: 0 0 40px;
}
.toc-title {
  margin: 0 0 12px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin-bottom: 7px;
  padding-left: 30px;
  position: relative;
  font-size: 0.96rem;
  line-height: 1.6;
}
.toc li:last-child { margin-bottom: 0; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-light);
  letter-spacing: 0;
}
.toc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.toc a:hover {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-light);
}

/* ---------- 카드 번호 ---------- */
.card-num {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue-light);
}

/* ---------- 더 보기 링크 ---------- */
.more-link { margin: 22px 0 0; text-align: right; }
.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.more-link a:hover { text-decoration: underline; }
.more-link span { transition: transform 0.16s ease; }
.more-link a:hover span { transform: translateX(3px); }

/* 본문 첫 h2 위쪽 여백 정리 */
.sheet > .toc + h2,
.sheet > h2:first-child { margin-top: 4px; }

/* 게시글 본문의 첫 문단을 조금 크게 — 도입부 리듬 */
.sheet > .toc + p,
.sheet > p:first-of-type {
  font-size: 1.06rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .page-head { padding: 24px 0 2px; }
  .toc { padding: 18px 20px 16px; margin-bottom: 30px; }
  .hero-actions { gap: 10px; }
  .btn { padding: 12px 24px; font-size: 0.97rem; }
  html { scroll-padding-top: 84px; }
}
