/*
Theme Name: Geukrim Magazine
Theme URI: https://geukrim.com/
Description: 극림(GEUKRIM) 매거진 레이아웃 — Kadence 자식 테마. 흰 배경, 또렷한 타이포그래피, 카테고리 탭, 카드 그리드 아카이브, Pretendard 웹폰트.
Author: Geukrim
Author URI: https://geukrim.com/
Template: kadence
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geukrim
*/

/* ---------------------------------------------------------
   1. 토큰
--------------------------------------------------------- */
:root {
  --gk-ink: #0b1220;
  --gk-ink-soft: #22293a;
  --gk-muted: #6b7280;
  --gk-muted-2: #9aa1ad;
  --gk-line: #e7e9ee;
  --gk-line-strong: #d3d7df;
  --gk-bg: #ffffff;
  --gk-surface: #f6f7f9;
  --gk-accent: #0f4cff;
  --gk-accent-soft: #eef3ff;
  --gk-dark: #0b1220;
  --gk-dark-text: #aab2c0;
  --gk-radius: 6px;
  --gk-container: 1120px;
  --gk-reading: 740px;
  --gk-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, "Segoe UI", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo",
    sans-serif;
}

/* ---------------------------------------------------------
   2. 기본
--------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--gk-bg);
  color: var(--gk-ink-soft);
  font-family: var(--gk-font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gk-accent); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--gk-ink);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.022em;
}

p { margin: 0 0 1.1em; }

button { font-family: inherit; }

::selection { background: var(--gk-accent); color: #fff; }

:focus-visible { outline: 2px solid var(--gk-accent); outline-offset: 3px; }

.gk-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gk-ink); color: #fff; padding: 12px 18px; z-index: 999;
}
.gk-skip:focus { left: 12px; top: 12px; }

.gk-container {
  width: 100%;
  max-width: var(--gk-container);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------------------------------------------------------
   3. 헤더 (마스트헤드 + 카테고리 탭)
--------------------------------------------------------- */
.gk-header { background: var(--gk-bg); }

.gk-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 30px 0 26px;
}

.gk-masthead-side {
  font-size: 13px;
  color: var(--gk-muted-2);
  letter-spacing: 0.01em;
}
.gk-masthead-side--right { text-align: right; }
.gk-masthead-side--right a {
  color: var(--gk-muted);
  border-bottom: 1px solid transparent;
}
.gk-masthead-side--right a:hover { color: var(--gk-accent); border-bottom-color: currentColor; }

.gk-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.gk-brand:hover { color: inherit; }
.gk-brand-mark {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--gk-ink);
}
.gk-brand-en {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--gk-muted-2);
  text-transform: uppercase;
}
.gk-brand-desc {
  display: none;
}

/* 카테고리 탭 */
.gk-tabs {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--gk-ink);
  border-bottom: 1px solid var(--gk-line);
}
.admin-bar .gk-tabs { top: 32px; }

.gk-tabs-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gk-tabs-inner::-webkit-scrollbar { display: none; }

.gk-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 15px 16px 13px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gk-muted);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.gk-tab:hover { color: var(--gk-ink); }
.gk-tab::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: -1px;
  height: 2px;
  background: transparent;
}
.gk-tab.is-active { color: var(--gk-ink); font-weight: 800; }
.gk-tab.is-active::after { background: var(--gk-ink); }

/* ---------------------------------------------------------
   4. 메인 / 섹션
--------------------------------------------------------- */
.gk-main { display: block; padding-bottom: 96px; }

.gk-section { padding-top: 56px; }
.gk-section:first-child { padding-top: 40px; }

.gk-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gk-ink);
}
.gk-section-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gk-section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--gk-muted);
  white-space: nowrap;
}
.gk-section-more:hover { color: var(--gk-accent); }

/* ---------------------------------------------------------
   5. 히어로
--------------------------------------------------------- */
.gk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 48px;
  padding: 44px 0 8px;
  border-bottom: 1px solid var(--gk-line);
}

.gk-hero-main .gk-thumb { aspect-ratio: 16 / 9; margin-bottom: 22px; }
.gk-hero-main .gk-card-title {
  font-size: clamp(24px, 2.6vw, 34px);
  text-wrap: balance;
  line-height: 1.28;
  letter-spacing: -0.035em;
  margin: 10px 0 12px;
}
.gk-hero-main .gk-card-excerpt {
  font-size: 15.5px;
  color: var(--gk-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gk-hero-side { display: flex; flex-direction: column; }

/* 히어로 하나뿐일 때: 전폭 */
.gk-hero--solo { grid-template-columns: minmax(0, 1fr); }
.gk-hero--solo .gk-hero-main .gk-card-title {
  font-size: clamp(26px, 3.4vw, 38px);
  max-width: 20em;
}
.gk-hero--solo .gk-card-excerpt { -webkit-line-clamp: 3; }
.gk-hero-side-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gk-muted-2);
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--gk-line);
}
.gk-hero-list { display: flex; flex-direction: column; }
.gk-hero-item {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--gk-line);
}
.gk-hero-item:last-child { border-bottom: 0; }
.gk-hero-item .gk-thumb { aspect-ratio: 1 / 1; order: 2; }
.gk-hero-item .gk-card-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gk-hero-item .gk-meta { font-size: 12px; }

/* ---------------------------------------------------------
   6. 카드 그리드
--------------------------------------------------------- */
.gk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
}
.gk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gk-card { display: flex; flex-direction: column; min-width: 0; }
.gk-card .gk-thumb { margin-bottom: 16px; }
.gk-card-title {
  font-size: 18px;
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: -0.025em;
  margin: 8px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gk-card:hover .gk-card-title { color: var(--gk-accent); }
.gk-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gk-muted);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 썸네일 */
.gk-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--gk-radius);
  background: var(--gk-surface);
}
.gk-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.gk-card:hover .gk-thumb img,
.gk-hero-main:hover .gk-thumb img { transform: scale(1.035); }
.gk-thumb--none {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%, #eef1f7 0%, #f8f9fb 55%, #eef1f7 100%);
  color: var(--gk-line-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
}

/* 배지 / 메타 */
.gk-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gk-accent);
}
.gk-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--gk-muted-2);
  letter-spacing: 0;
}
.gk-meta .gk-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gk-line-strong); display: inline-block; }

/* 주제 (카테고리 안내) */
.gk-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--gk-line);
  border: 1px solid var(--gk-line);
}
.gk-topic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 28px 24px 24px;
  background: #fff;
  transition: background 0.2s ease;
}
.gk-topic:hover { background: var(--gk-surface); color: inherit; }
.gk-topic-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gk-muted-2);
}
.gk-topic-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gk-topic-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gk-muted);
}
.gk-topic-count {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--gk-muted-2);
}

/* ---------------------------------------------------------
   7. 아카이브 헤더
--------------------------------------------------------- */
.gk-archive-head {
  padding: 52px 0 28px;
  border-bottom: 1px solid var(--gk-line);
  margin-bottom: 40px;
}
.gk-archive-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gk-accent);
  margin-bottom: 12px;
}
.gk-archive-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
.gk-archive-desc {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 15px;
  color: var(--gk-muted);
}

/* 페이지네이션 */
.gk-pagination { margin-top: 64px; border-top: 1px solid var(--gk-line); padding-top: 28px; }
.gk-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gk-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--gk-line);
  border-radius: 4px;
  font-size: 14px; font-weight: 600; color: var(--gk-muted);
}
.gk-pagination .page-numbers.current,
.gk-pagination .page-numbers:hover { border-color: var(--gk-ink); color: var(--gk-ink); }
.gk-pagination .page-numbers.current { background: var(--gk-ink); color: #fff; }

/* 빈 결과 */
.gk-empty { padding: 72px 0 40px; text-align: center; color: var(--gk-muted); }
.gk-empty h2 { font-size: 22px; margin-bottom: 10px; }

/* ---------------------------------------------------------
   8. 글 상세
--------------------------------------------------------- */
.gk-post { padding-top: 52px; }
.gk-post-header { max-width: var(--gk-reading); margin: 0 auto; }
.gk-post-title {
  font-size: clamp(27px, 4.2vw, 40px);
  text-wrap: balance;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.038em;
  margin: 12px 0 18px;
}
.gk-post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13.5px; color: var(--gk-muted-2);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gk-line);
}
.gk-post-meta strong { color: var(--gk-ink-soft); font-weight: 600; }
.gk-post-hero {
  max-width: 940px;
  margin: 36px auto 0;
}
.gk-post-hero .gk-thumb { aspect-ratio: 16 / 9; border-radius: var(--gk-radius); }
.gk-post-hero figcaption {
  margin-top: 10px; font-size: 12.5px; color: var(--gk-muted-2); text-align: center;
}

.gk-entry {
  max-width: var(--gk-reading);
  margin: 46px auto 0;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--gk-ink-soft);
  letter-spacing: -0.012em;
}
.gk-entry > *:first-child { margin-top: 0; }
.gk-entry p { margin: 0 0 1.35em; }
.gk-entry h2 {
  font-size: 24px; margin: 2.2em 0 0.7em; letter-spacing: -0.03em; line-height: 1.4;
}
.gk-entry h3 { font-size: 20px; margin: 1.9em 0 0.6em; letter-spacing: -0.025em; }
.gk-entry h4 { font-size: 17px; margin: 1.6em 0 0.5em; }
.gk-entry a { color: var(--gk-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gk-entry strong { color: var(--gk-ink); font-weight: 700; }
.gk-entry ul, .gk-entry ol { margin: 0 0 1.35em; padding-left: 1.25em; }
.gk-entry li { margin-bottom: 0.45em; }
.gk-entry li::marker { color: var(--gk-muted-2); }
.gk-entry blockquote {
  margin: 1.8em 0;
  padding: 22px 26px;
  background: var(--gk-surface);
  border-left: 3px solid var(--gk-ink);
  color: var(--gk-ink);
  font-weight: 500;
}
.gk-entry blockquote p:last-child { margin-bottom: 0; }
.gk-entry figure { margin: 2em 0; }
.gk-entry figure img { border-radius: var(--gk-radius); width: 100%; }
.gk-entry figcaption { margin-top: 10px; font-size: 13px; color: var(--gk-muted-2); text-align: center; }
.gk-entry hr { border: 0; border-top: 1px solid var(--gk-line); margin: 2.6em 0; }
.gk-entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.gk-entry th, .gk-entry td { border: 1px solid var(--gk-line); padding: 10px 12px; text-align: left; }
.gk-entry th { background: var(--gk-surface); font-weight: 700; }
.gk-entry code {
  background: var(--gk-surface); padding: 0.15em 0.4em; border-radius: 3px;
  font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.gk-entry pre {
  background: #0f1420; color: #e6e9ef; padding: 18px 20px; border-radius: var(--gk-radius);
  overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 1.6em 0;
}
.gk-entry pre code { background: none; color: inherit; padding: 0; }

/* 태그 */
.gk-tags { max-width: var(--gk-reading); margin: 44px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gk-tag {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--gk-line);
  border-radius: 100px; font-size: 12.5px; color: var(--gk-muted);
}
.gk-tag:hover { border-color: var(--gk-ink); color: var(--gk-ink); }

/* 이전/다음 */
.gk-postnav {
  max-width: var(--gk-reading);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gk-line);
}
.gk-postnav a {
  padding: 22px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.gk-postnav a + a { border-left: 1px solid var(--gk-line); padding-left: 24px; }
.gk-postnav .gk-postnav-label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--gk-muted-2); }
.gk-postnav .gk-postnav-title { font-size: 15px; font-weight: 700; line-height: 1.45; }
.gk-postnav .is-next { text-align: right; }
.gk-postnav a:hover .gk-postnav-title { color: var(--gk-accent); }

/* 관련 글 */
.gk-related { max-width: 940px; margin: 72px auto 0; }

/* ---------------------------------------------------------
   9. 고정 페이지
--------------------------------------------------------- */
.gk-page { padding-top: 56px; }
.gk-page-header { max-width: var(--gk-reading); margin: 0 auto 8px; }
.gk-page-title {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.gk-page-lead { color: var(--gk-muted); font-size: 15px; }

/* ---------------------------------------------------------
   10. 푸터
--------------------------------------------------------- */
.gk-footer {
  background: var(--gk-dark);
  color: var(--gk-dark-text);
  padding: 64px 0 36px;
  margin-top: 0;
}
.gk-footer a { color: var(--gk-dark-text); }
.gk-footer a:hover { color: #fff; }
.gk-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gk-footer-brand .gk-brand-mark { color: #fff; font-size: 26px; }
.gk-footer-brand .gk-brand-en { color: #6b7484; }
.gk-footer-brand p { margin: 18px 0 0; font-size: 13.5px; line-height: 1.75; max-width: 360px; color: #8b93a1; }
.gk-footer h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7484;
  margin-bottom: 16px;
}
.gk-footer ul { list-style: none; margin: 0; padding: 0; }
.gk-footer li { margin-bottom: 10px; font-size: 14px; }
.gk-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 26px;
  font-size: 12.5px;
  color: #6b7484;
}

/* ---------------------------------------------------------
   11. 반응형
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .gk-hero { grid-template-columns: 1fr; gap: 32px; padding-bottom: 8px; }
  .gk-hero-side { border-top: 1px solid var(--gk-line); padding-top: 8px; }
  .gk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .gk-container { padding: 0 18px; }
  .gk-masthead { padding: 20px 0 18px; grid-template-columns: 1fr; }
  .gk-masthead-side { display: none; }
  .gk-brand-mark { font-size: 27px; }
  .gk-brand-en { font-size: 9px; letter-spacing: 0.4em; text-indent: 0.4em; }
  .gk-tab { padding: 13px 13px 11px; font-size: 14.5px; }
  .gk-tab::after { left: 13px; right: 13px; }
  .gk-section { padding-top: 40px; }
  .gk-section-title { font-size: 17px; }
  .gk-hero-main .gk-card-title { font-size: 23px; }
  .gk-grid, .gk-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gk-topics-grid { grid-template-columns: minmax(0, 1fr); }
  .gk-topic { min-height: 0; padding: 22px 20px; }
  .gk-card .gk-thumb { margin-bottom: 14px; }
  .gk-card-title { font-size: 17px; }
  .gk-post { padding-top: 32px; }
  .gk-entry { font-size: 16.5px; line-height: 1.82; }
  .gk-entry h2 { font-size: 21px; }
  .gk-entry h3 { font-size: 18.5px; }
  .gk-postnav { grid-template-columns: 1fr; }
  .gk-postnav a + a { border-left: 0; border-top: 1px solid var(--gk-line); padding-left: 0; }
  .gk-postnav .is-next { text-align: left; }
  .gk-footer { padding: 44px 0 28px; }
  .gk-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gk-footer-bottom { flex-direction: column; }
  .admin-bar .gk-tabs { top: 46px; }
}

@media (max-width: 380px) {
  .gk-container { padding: 0 14px; }
}

/* ---------------------------------------------------------
   12. 글 본문 보조 블록 (버튼·요약·출처)
--------------------------------------------------------- */
.gk-entry .gk-cta {
  margin: 2.2em 0;
  text-align: center;
}

.gk-entry .gk-cta a {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--gk-ink);
  border-radius: 5px;
  background: var(--gk-ink);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.gk-entry .gk-cta a:hover {
  background: var(--gk-accent);
  border-color: var(--gk-accent);
  color: #fff;
}

.gk-entry .gk-cta span {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gk-muted-2);
}

.gk-entry .gk-box {
  margin: 1.9em 0;
  padding: 20px 22px;
  border: 1px solid var(--gk-line);
  border-left: 3px solid var(--gk-accent);
  border-radius: 0 6px 6px 0;
  background: var(--gk-surface);
  font-size: 15.5px;
  line-height: 1.8;
}

.gk-entry .gk-box > *:first-child { margin-top: 0; }
.gk-entry .gk-box > *:last-child { margin-bottom: 0; }
.gk-entry .gk-box ul,
.gk-entry .gk-box ol { margin-bottom: 0; }
.gk-entry .gk-box li { margin-bottom: 0.35em; }
.gk-entry .gk-box li:last-child { margin-bottom: 0; }

.gk-entry .gk-box-title {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gk-accent);
}

.gk-entry .gk-note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--gk-muted);
}

.gk-entry .gk-src {
  margin: 1.6em 0 0;
  padding: 18px 20px;
  border: 1px solid var(--gk-line);
  border-radius: 6px;
  background: #fff;
}

.gk-entry .gk-src p {
  margin: 0 0 0.6em;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gk-muted-2);
}

.gk-entry .gk-src ul {
  margin: 0;
  padding-left: 1.1em;
}

.gk-entry .gk-src li {
  margin-bottom: 0.4em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gk-muted);
}

.gk-entry .gk-src a { text-decoration-thickness: 1px; }

@media (max-width: 760px) {
  .gk-entry .gk-cta a { display: block; padding: 15px 18px; }
  .gk-entry .gk-box { padding: 17px 18px; font-size: 15px; }
}

/* 본문 표 — 가로 스크롤 허용 */
.gk-entry .gk-table-wrap {
  margin: 1.7em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gk-entry .gk-table-wrap table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.gk-entry .gk-table-wrap th { white-space: nowrap; }
.gk-entry .gk-table-wrap td { font-size: 14.5px; }
.gk-entry .gk-table-wrap td strong { color: var(--gk-ink); }

@media (max-width: 760px) {
  .gk-entry .gk-table-wrap table { min-width: 460px; font-size: 13.5px; }
  .gk-entry .gk-table-wrap td { font-size: 13.5px; }
}

/* 요약 박스 안 빈 문단(wpautop) 제거 */
.gk-entry .gk-box p:empty { display: none; }

/* 태그 칩 (single.php the_tags 출력) */
.gk-tags a {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 6px 12px;
  border: 1px solid var(--gk-line);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--gk-muted);
}
.gk-tags a:hover {
  border-color: var(--gk-ink);
  color: var(--gk-ink);
  text-decoration: none;
}
