:root {
  --ink: #222;
  --muted: #777;
  --soft: #555;
  --line: #e5e5e5;
  --blue: #1b73b8;
  --blue-dark: #124b77;
  --blue-400: #8db6d9;
  --blue-200: #bbd5ea;
  --blue-100: #d7e7f3;
  --blue-50: #e8f1f8;
  --cream: #f4f2ee;
  --foot: #f5f5f5;
  --font: Pretendard, "Noto Sans KR", sans-serif;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font), "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
body.site a { color: inherit; text-decoration: none; }
body.site :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; background: #fff; padding: .5rem .75rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 40; }

.hd {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.hd .in { display: flex; align-items: center; height: 100px; gap: 48px; }
.logo { display: flex; align-items: center; font-weight: 800; font-size: 36px; letter-spacing: -0.045em; color: #111; }
.logo img { display: block; height: 64px; width: auto; max-width: 340px; object-fit: contain; }
.ft-logo { display: block; height: 36px; width: auto; max-width: 200px; margin-bottom: 6px; object-fit: contain; }
.gnb { display: flex; gap: 40px; font-size: 21px; font-weight: 500; color: #333; }
.gnb a:hover { color: var(--blue); }
.hutil { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.ulink { font-size: 18px; color: #444; }
.ulink:hover { color: var(--blue); }
.logout { margin: 0; }
.logout .ulink { padding: 0; border: 0; background: none; font: inherit; font-size: 18px; cursor: pointer; }
.hutil .btn.sm { padding: 11px 22px; font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  background: #fff;
  color: #333;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}
.btn:hover { border-color: #222; color: #111; }
.btn.sm { padding: 9px 18px; font-size: 15px; }
.btn.dark { background: #333; border-color: #333; color: #fff; }
.btn.dark:hover { background: #111; border-color: #111; color: #fff; }

.flashes { max-width: 1200px; margin: 16px auto 0; padding: 0 24px; }
.flash { margin: 0 0 8px; padding: 12px 16px; background: #f6f8fb; border: 1px solid #e6eaf0; font-size: 16px; }

.hero { padding: 36px 0 16px; background: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(280px, 1fr);
  gap: 12px 32px;
  align-items: center;
  min-height: 480px;
}
.kicker { margin: 0 0 14px; color: #777; font-size: 19px; }
.hero h1 {
  margin: 0 0 20px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: #222;
}
.hero .lead { margin: 0 0 32px; max-width: 520px; color: #666; font-size: 18px; line-height: 1.7; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

.blue {
  position: relative;
  background: var(--blue);
  color: #fff;
  padding: 88px 0 96px;
}
.blue h2 {
  margin: 0 0 44px;
  text-align: center;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 80px;
  max-width: 980px;
  margin: 0 auto;
}
.twocol h3 { margin: 0 0 14px; font-size: 21px; font-weight: 700; }
.twocol p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 17px; line-height: 1.8; white-space: pre-wrap; }
.vdots {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vdots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}
.vdots button.on { background: #fff; }

.plain { padding: 96px 0; }
.plain h2, .cream h2 {
  margin: 0;
  text-align: center;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.4;
}
.cap { margin: 0 0 12px; text-align: center; color: #777; font-size: 17px; }
section[id] { scroll-margin-top: 108px; }

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.day { min-height: 156px; padding: 18px 14px; border: 1px solid var(--line); }
.day strong { display: block; margin-bottom: 14px; font-size: 19px; }
.day p { margin: 0 0 12px; font-size: 17px; font-weight: 650; line-height: 1.35; }
.day span, .day .empty { display: block; margin-top: 4px; color: #777; font-weight: 400; font-size: 15px; }
.day .empty { margin: 0; font-size: 16px; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 80px;
  max-width: 920px;
  margin: 52px auto 8px;
}
.plink {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 18px;
  align-items: start;
}
.ico {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  color: #333;
}
.ico svg { width: 32px; height: 32px; }
.plink .tx strong { display: block; margin: 6px 0 10px; font-size: 22px; font-weight: 650; white-space: nowrap; }
.chev { color: #aaa; font-weight: 400; }
.plink .tx > span { display: block; color: var(--soft); font-size: 17px; line-height: 1.7; }
.plink:hover .tx strong { color: var(--blue); }
.center { margin: 32px 0 0; text-align: center; }

.cream { padding: 92px 0; background: var(--cream); text-align: center; }
.cream .sub { margin: 16px 0 26px; color: var(--soft); font-size: 18px; }
.cream .btn { margin-top: 8px; }
.cream h2 { margin-bottom: 0; }

.stories { padding-bottom: 28px; }
.stories h2, .news h2 { text-align: left; font-size: 32px; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 38px;
}
.cards h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.45; }
.cards p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cards figure {
  position: relative;
  height: 160px;
  margin: 18px 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, #f7fbff, #d3e4f4);
}
.cards article:nth-child(2) figure { background: linear-gradient(165deg, #f8f6f2, #e4ddd2); }
.cards article:nth-child(3) figure { background: linear-gradient(160deg, #f4f7f8, #d5e0e4); }
.cards article:nth-child(4) figure { background: linear-gradient(160deg, #f5f8fc, #d0dced); }
.cards figure::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 58%;
  background: rgba(255, 255, 255, .62);
}
.cards figure::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 16%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(27, 115, 184, .22);
}
.empty-note { margin: 28px 0 0; color: var(--muted); }

.news { padding-top: 40px; }
.news .in {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px 24px;
  align-items: start;
}
.news h2 { margin-top: 4px; }
.rows article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 124px 110px;
  gap: 14px;
  align-items: center;
  min-height: 52px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  background: #555;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.rows h3 { margin: 0; font-size: 18px; font-weight: 500; }
.rows time { color: #777; font-size: 16px; text-align: right; }
.more { font-size: 16px; color: #333; white-space: nowrap; }
.more:hover { color: var(--blue); }

.ft { padding: 32px 0 52px; background: var(--foot); color: #666; font-size: 15px; }
.ft-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.ft-nav { display: flex; gap: 26px; }
.ft-nav a { color: #444; font-size: 16px; }
.ft-nav a:hover { color: var(--blue); }
.ft p { margin: 0; line-height: 1.8; }
.ft .fn { color: #444; font-weight: 600; }
.ft-corp { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e3e3e3; }
.ft-corp a { color: #444; font-weight: 600; }
.ft-corp a:hover { color: var(--blue); }
.ft-corp span { color: #333; font-weight: 700; }

.hero-art .t50 { fill: var(--blue-50); }
.hero-art .t100 { fill: var(--blue-100); }
.hero-art .t200 { fill: var(--blue-200); }
.hero-art .t400 { fill: var(--blue-400); }
.hero-art .tmain { fill: var(--blue); }
.hero-art .tdark { fill: var(--blue-dark); }
.hero-art .tcard { fill: #fff; stroke: var(--blue-100); }
.hero-art .tline { fill: none; stroke: var(--blue-200); }
.hero-art .tstroke { fill: none; stroke: var(--blue); }
.cards figure { background: linear-gradient(160deg, #fff, var(--blue-100)) !important; }
.cards figure::after { background: var(--blue-200); }

body.site[data-btn="round"] { --radius: 10px; }
body.site[data-btn="pill"] { --radius: 999px; }
.hero .btn.line, .cream .btn.line, .center .btn.line { border-color: var(--blue); color: var(--blue); }
.hero .btn.line:hover, .cream .btn.line:hover, .center .btn.line:hover { background: var(--blue); color: #fff; }
.kicker { color: var(--blue); font-weight: 600; }

body.site[data-hero="center"] .hero-grid { grid-template-columns: 1fr; min-height: 400px; text-align: center; }
body.site[data-hero="center"] .hero-copy { max-width: 760px; margin: 0 auto; }
body.site[data-hero="center"] .hero .lead { margin-left: auto; margin-right: auto; }
body.site[data-hero="center"] .hero h1 { font-size: 46px; }
body.site[data-hero="center"] .hero-art { display: none; }
body.site[data-hero="center"] .hero { background: linear-gradient(180deg, var(--blue-50), #fff); }

body.site[data-info="soft"] .blue { background: var(--blue-50); color: var(--ink); }
body.site[data-info="soft"] .blue h2, body.site[data-info="soft"] .twocol h3 { color: var(--blue-dark); }
body.site[data-info="soft"] .twocol p { color: var(--soft); }
body.site[data-info="white"] .blue { background: #fff; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.site[data-info="white"] .blue h2 { color: var(--ink); }
body.site[data-info="white"] .twocol h3 { color: var(--blue); }
body.site[data-info="white"] .twocol p { color: var(--soft); }
body.site[data-info="soft"] .vdots button, body.site[data-info="white"] .vdots button { background: var(--blue-200); }
body.site[data-info="soft"] .vdots button.on, body.site[data-info="white"] .vdots button.on { background: var(--blue); }

body.site[data-font="serif"] h1, body.site[data-font="serif"] h2 { letter-spacing: -0.01em; }

@media (max-width: 1100px) {
  .blue { padding-right: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .gnb { display: none; }
  .hero-grid, .twocol, .pair, .news .in { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; padding-bottom: 12px; }
  .hero-art { max-width: 520px; }
  .vdots { position: static; transform: none; flex-direction: row; justify-content: center; margin-top: 28px; }
  .blue { padding-right: 0; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows article { grid-template-columns: 62px 1fr; }
  .rows time, .more { grid-column: 2; text-align: left; }
  .plain h2, .cream h2 { font-size: 30px; }
  .blue h2 { font-size: 28px; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  .hd .in { height: 72px; }
  .logo { font-size: 26px; }
  .logo img { height: 46px; max-width: 200px; }
  .week, .cards { grid-template-columns: 1fr; }
  .ft-top { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: 29px; }
  .plain h2, .cream h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 860px) {
  body.site[data-hero="center"] .hero h1 { font-size: 34px; }
  body.site[data-hero="center"] .hero-grid { min-height: 0; padding: 40px 0; }
}

.cards h3 a:hover, .rows h3 a:hover, .article-more a:hover { color: var(--blue); text-decoration: underline; }
.article-page { padding: 56px 0 96px; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px 56px; align-items: start; }
.article-back { grid-column: 1 / -1; color: var(--muted) !important; font-weight: 600; }
.article header { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.article h1 { margin: 14px 0 10px; font-size: 38px; line-height: 1.3; letter-spacing: -0.04em; }
.article header time { color: var(--muted); font-size: 15px; }
.badge.draft { margin-left: 6px; background: #b45309; }
.prose { font-size: 18px; line-height: 1.85; color: #333; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 1.8em 0 .6em; font-size: 26px; line-height: 1.4; color: #111; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 21px; line-height: 1.45; color: #111; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--blue); background: #f5f9fd; color: #334; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { color: var(--blue) !important; text-decoration: underline !important; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.article-owner { margin-top: 40px; }
.article-more { padding: 22px 24px; background: var(--foot); }
.article-more h2 { margin: 0 0 12px; font-size: 18px; }
.article-more ul { margin: 0; padding: 0; list-style: none; }
.article-more li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.article-more time { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article h1 { font-size: 30px; }
  .prose { font-size: 17px; }
}
