/*
Theme Name: Golbot
Theme URI: https://golbot.site
Author: Golbot
Description: 골판지와 코드로 만드는 로봇 — 초등 코딩·로보틱스·STEAM 교육을 위한 골봇 공식 테마. 프로젝트·앱·추천사 전용 게시판, 우커머스 지원, 풀스크린 비디오 히어로를 포함합니다.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golbot
Tags: education, portfolio, e-commerce, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   0. 폰트
   ========================================================================== */
@font-face {
  font-family: 'GmarketSans';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'GmarketSans';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}

/* ==========================================================================
   1. 디자인 토큰
   ========================================================================== */
:root {
  /* 컬러 — 골판지 공작실 팔레트 */
  --paper: #FAF8F3;      /* 종이 배경 */
  --paper-2: #F1EDE2;    /* 살짝 어두운 종이 */
  --ink: #1C2430;        /* 잉크 네이비 */
  --ink-2: #2A3444;      /* 잉크 밝은 톤 */
  --gol: #FFB703;        /* 골봇 시그널 옐로 (마스킹 테이프) */
  --gol-deep: #E29A00;
  --kraft: #C9A876;      /* 골판지 크라프트 */
  --wire: #0E9594;       /* 전선 틸 — 링크/보조 */
  --line: #E2DCCD;       /* 헤어라인 */
  --muted: #6B7280;

  /* 타이포 */
  --font-display: 'GmarketSans', 'Pretendard Variable', Pretendard, sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Malgun Gothic', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;

  /* 스케일 */
  --w-content: 1180px;
  --w-narrow: 760px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 36, 48, .08);
  --shadow-lift: 0 18px 44px rgba(28, 36, 48, .14);
  --header-h: 72px;
}

/* ==========================================================================
   2. 베이스
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wire); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gol); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
  position: absolute !important;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden;
}
.skip-link { left: 8px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { clip-path: none; width: auto; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.wrap { max-width: var(--w-content); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--w-narrow); }

/* 재단선 눈썹 라벨 — ✂ 시그니처 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gol-deep);
  margin-bottom: 14px;
}
.eyebrow::before { content: '✂'; font-size: 1rem; transform: rotate(-90deg); }
.eyebrow::after {
  content: ''; width: 64px; height: 0;
  border-top: 2px dashed var(--kraft);
}

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head p { color: var(--muted); margin: 0; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--gol); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: #fff; }
.btn--light { border-color: #fff; background: transparent; color: #fff; box-shadow: 4px 4px 0 rgba(255,255,255,.35); }
.btn--light:hover { background: var(--gol); border-color: var(--gol); color: var(--ink); box-shadow: 7px 7px 0 rgba(255,255,255,.35); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }

/* 골판지 단면 디바이더 — 테마 시그니처 */
.flute { display: block; width: 100%; height: 26px; }
.flute svg { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   3. 헤더 / 내비게이션
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header .wrap { width: 100%; display: flex; align-items: center; gap: 28px; }
.site-header--solid,
body:not(.home) .site-header {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand img { max-height: 42px; width: auto; }
.brand__bot {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gol); border: 2px solid var(--ink);
  font-size: 1.05rem;
}
.home .site-header:not(.site-header--solid) .brand,
.home .site-header:not(.site-header--solid) .main-nav a { color: #fff; }
.home .site-header:not(.site-header--solid) .main-nav a:hover { color: var(--gol); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 14px;
  font-weight: 600; font-size: .98rem; color: var(--ink);
  border-radius: 8px;
}
.main-nav a:hover { color: var(--gol-deep); }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  flex-direction: column; gap: 0;
  background: #fff; border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 6px 6px 0 rgba(28,36,48,.15);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(4px); display: flex; }
.main-nav .sub-menu a { color: var(--ink) !important; padding: 9px 12px; font-size: .92rem; }
.main-nav .sub-menu a:hover { background: var(--paper-2); color: var(--ink) !important; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 12px;
  border: 2px solid currentColor; background: transparent; color: var(--ink);
  cursor: pointer; align-items: center; justify-content: center; gap: 5px; flex-direction: column;
}
.home .site-header:not(.site-header--solid) .nav-toggle { color: #fff; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--paper);
    padding: 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .nav-open .site-header .brand, .nav-open .nav-toggle { color: var(--ink) !important; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { color: var(--ink) !important; font-size: 1.15rem; padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 0 18px; display: block;
  }
  .main-nav .sub-menu a { font-size: 1rem; color: var(--muted) !important; }
}

/* ==========================================================================
   4. 히어로
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img, .hero__media iframe {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media iframe { position: absolute; top: 50%; left: 50%; width: 177.78svh; min-width: 100%; height: 100svh; min-height: 56.25vw; transform: translate(-50%, -50%); pointer-events: none; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,36,48,.35) 0%, rgba(28,36,48,.1) 40%, rgba(28,36,48,.78) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 110px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 20px;
  backdrop-filter: blur(6px);
}
.hero__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gol); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 15em; margin-bottom: .35em; text-wrap: balance; }
.hero h1 mark {
  background: linear-gradient(0deg, var(--gol) 0%, var(--gol) 34%, transparent 34%);
  color: inherit; padding: 0 .06em;
}
.hero p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 34em; color: rgba(255,255,255,.86); margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .14em;
  font-family: var(--font-mono); text-transform: uppercase;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--gol), transparent); animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero .flute { position: absolute; bottom: -1px; left: 0; z-index: 3; }

/* ==========================================================================
   5. 인트로 (유튜브 + 소개)
   ========================================================================== */
.intro { background: var(--paper); }
.intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.intro__video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--gol);
  background: var(--ink);
}
.intro__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.intro__copy .lead { font-size: 1.12rem; }
.intro__copy strong { background: linear-gradient(0deg, rgba(255,183,3,.45) 0%, rgba(255,183,3,.45) 38%, transparent 38%); }
.intro__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px dashed var(--kraft); color: var(--ink-2); background: #fff;
}
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ==========================================================================
   6. 프로젝트 카드 그리드 — 재단선 카드
   ========================================================================== */
.projects { background: var(--paper-2); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-bar a {
  font-family: var(--font-display); font-weight: 500; font-size: .88rem;
  padding: 9px 18px; border-radius: 999px;
  border: 2px solid var(--ink); color: var(--ink); background: #fff;
  transition: background .15s ease, transform .15s ease;
}
.filter-bar a:hover { transform: translateY(-2px); background: var(--gol); }
.filter-bar a.is-active { background: var(--ink); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid--4 { grid-template-columns: 1fr; } }

.cut-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius);
  border: 2px dashed var(--kraft);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, border-style .2s ease;
}
.cut-card::before {
  content: '✂'; position: absolute; top: -4px; left: 18px; z-index: 3;
  transform: rotate(90deg); color: var(--kraft); font-size: 1.05rem;
  transition: color .2s ease;
}
.cut-card:hover {
  transform: translateY(-6px);
  border-style: solid; border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.cut-card:hover::before { color: var(--ink); }
.cut-card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.cut-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cut-card:hover .cut-card__thumb img { transform: scale(1.05); }
.cut-card__thumb .noimg { display: grid; place-items: center; height: 100%; font-size: 2.4rem; color: var(--kraft); }
.cut-card__tags { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cut-card__tags span {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  background: var(--gol); color: var(--ink); border: 1.5px solid var(--ink);
  padding: 4px 10px; border-radius: 999px;
}
.cut-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cut-card__body h3 { margin: 0; font-size: 1.12rem; }
.cut-card__body h3 a { color: var(--ink); }
.cut-card__body h3 a::after { content: ''; position: absolute; inset: 0; }
.cut-card__body p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.cut-card__meta { margin-top: auto; padding-top: 12px; font-family: var(--font-mono); font-size: .74rem; color: var(--kraft); letter-spacing: .08em; }
.section__more { margin-top: 44px; text-align: center; }

/* ==========================================================================
   7. HOW TO START — 실제 순서가 있는 3단계
   ========================================================================== */
.steps { background: var(--paper); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 900px) { .steps__grid { grid-template-columns: 1fr; } }
.step {
  position: relative; background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 34px 28px 30px;
  box-shadow: 6px 6px 0 var(--paper-2);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -18px; left: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--gol); border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 14px;
}
.step__icon { font-size: 2rem; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0 0 18px; }
.step a { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--ink); border-bottom: 2px solid var(--gol); padding-bottom: 2px; }
.step a:hover { color: var(--gol-deep); }

/* ==========================================================================
   8. 추천사 — 잉크 밴드
   ========================================================================== */
.voices { background: var(--ink); color: #fff; position: relative; }
.voices .eyebrow { color: var(--gol); }
.voices .section__head p { color: rgba(255,255,255,.7); }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .voices__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .voices__grid { grid-template-columns: 1fr; } }
.voice {
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.voice__quote { margin: 0; font-size: .95rem; line-height: 1.7; color: rgba(255,255,255,.9); }
.voice__quote::before { content: '“'; display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gol); line-height: 1; margin-bottom: 6px; }
.voice__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.voice__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gol); }
.voice__who .noface { width: 46px; height: 46px; border-radius: 50%; background: var(--gol); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; border: 2px solid #fff; }
.voice__who strong { display: block; font-size: .92rem; }
.voice__who small { color: rgba(255,255,255,.6); font-size: .8rem; line-height: 1.4; display: block; }

/* ==========================================================================
   9. 샵 / 앱
   ========================================================================== */
.shop-strip { background: var(--paper); }
.product-card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 8px 8px 0 var(--gol); }
.product-card__thumb { aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.product-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 18px 20px 22px; }
.product-card__body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.product-card__body h3 a { color: var(--ink); }
.product-card__body h3 a::after { content: ''; position: absolute; inset: 0; }
.product-card .price { font-family: var(--font-display); font-weight: 700; color: var(--gol-deep); font-size: 1rem; }

.apps { background: var(--paper-2); }
.app-card { border-style: solid; border-color: var(--line); }
.app-card:hover { border-color: var(--wire); box-shadow: 8px 8px 0 rgba(14,149,148,.18); }
.app-card::before { content: '▶'; transform: none; top: auto; bottom: 14px; right: 16px; left: auto; color: var(--wire); font-size: .8rem; }

/* ==========================================================================
   10. CTA 밴드 / 푸터
   ========================================================================== */
.cta-band { background: var(--gol); position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 18em; }
.cta-band .btn { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 rgba(28,36,48,.3); }
.cta-band .btn:hover { box-shadow: 7px 7px 0 rgba(28,36,48,.3); color: #fff; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.75); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 48px; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gol); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 24px; font-size: .82rem; font-family: var(--font-mono); }

/* ==========================================================================
   11. 아카이브 / 싱글 / 페이지
   ========================================================================== */
.page-hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + 72px) 0 64px; position: relative; }
.page-hero .eyebrow { color: var(--gol); }
.page-hero h1 { margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 40em; margin: 0; }
.page-hero .flute { position: absolute; bottom: -1px; left: 0; }

.archive-body { padding: 72px 0 96px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
  border: 2px solid var(--ink); border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); background: #fff;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--gol); }

.single-hero { padding: calc(var(--header-h) + 64px) 0 48px; background: var(--paper-2); position: relative; }
.single-hero .flute { position: absolute; bottom: -1px; left: 0; }
.single-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.single-hero__meta .cat { background: var(--gol); border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; padding: 4px 12px; border-radius: 999px; }

.entry { padding: 64px 0 96px; }
.entry__content { max-width: var(--w-narrow); margin: 0 auto; font-size: 1.05rem; }
.entry__content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry__content h2 { margin-top: 2em; padding-left: 16px; border-left: 5px solid var(--gol); }
.entry__content h3 { margin-top: 1.6em; }
.entry__content img, .entry__content .wp-block-embed { border-radius: var(--radius); overflow: hidden; }
.entry__content figure { margin-left: 0; margin-right: 0; }
.entry__content figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry__content blockquote {
  margin: 2em 0; padding: 20px 26px; background: #fff;
  border: 2px dashed var(--kraft); border-radius: var(--radius); font-style: normal;
}
.entry__content pre { background: var(--ink); color: #E8ECF4; padding: 22px; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; }
.entry__content code { font-family: var(--font-mono); }
.entry__content :not(pre) > code { background: var(--paper-2); padding: 2px 8px; border-radius: 6px; font-size: .88em; }
.entry__content .wp-block-button__link { border-radius: 999px; background: var(--gol); color: var(--ink); font-weight: 700; }
.entry__content ul li, .entry__content ol li { margin-bottom: .4em; }
.entry__content .wp-block-file { background:#fff; border:2px solid var(--ink); border-radius: var(--radius); padding: 16px 20px; display:flex; align-items:center; gap: 14px; flex-wrap: wrap; }
.entry__content .wp-block-file a.wp-block-file__button { background: var(--gol); color: var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 700; }

/* --------------------------------------------------------------------------
 * 11-b. 본문 자동 서식 — 마크다운/기본 블록을 붙여넣기만 해도 통일된 디자인
 *       (제목·표·인용·구분선·목록·체크리스트·임베드가 자동으로 골봇 스타일 적용)
 * ------------------------------------------------------------------------ */

/* 제목: h2는 대분류(옐로 탭), h3은 소단계(재단선) */
.entry__content h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.entry__content h3 {
  scroll-margin-top: calc(var(--header-h) + 16px);
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line);
}
.entry__content h4 { margin-top: 1.4em; font-size: 1.02rem; color: var(--ink-2); }

/* 표: 붙여넣기만 하면 벤치마크식 정보 카드로 */
.entry__content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .93rem;
  line-height: 1.55;
}
.entry__content thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  text-align: left;
  padding: 12px 16px;
}
.entry__content td, .entry__content tbody th {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.entry__content tbody tr:first-child td,
.entry__content tbody tr:first-child th { border-top: 0; }
.entry__content thead + tbody tr:first-child td,
.entry__content thead + tbody tr:first-child th { border-top: 1px solid var(--line); }
/* 행 머리칸(항목명): 옅은 골판지 톤 */
.entry__content tbody th,
.entry__content tbody td:first-child {
  background: var(--paper-2);
  font-weight: 700;
  white-space: nowrap;
  width: 1%;
}
.entry__content tbody td:first-child { font-weight: 600; }
.entry__content tbody tr:hover td { background: #FFFBEF; }
.entry__content tbody tr:hover td:first-child,
.entry__content tbody tr:hover th { background: #F6EFDC; }
.entry__content table a { font-weight: 600; border-bottom: 2px solid var(--gol); padding-bottom: 1px; }
.entry__content table a:hover { color: var(--gol-deep); }
/* 좁은 화면: 표를 가로 스크롤로 */
.entry__content figure.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .entry__content table { font-size: .85rem; }
  .entry__content td, .entry__content tbody th { padding: 10px 12px; }
  .entry__content tbody td:first-child, .entry__content tbody th { white-space: normal; }
}

/* 구분선: 재단선 ✂ 시그니처 */
.entry__content hr {
  border: 0;
  border-top: 2px dashed var(--kraft);
  margin: 3em 0;
  position: relative;
  overflow: visible;
}
.entry__content hr::after {
  content: '✂';
  position: absolute;
  top: -0.72em;
  left: 24px;
  transform: rotate(90deg);
  color: var(--kraft);
  background: var(--paper);
  padding: 0 6px;
}

/* 인용(blockquote)은 팁/주의 박스로 — 첫 이모지가 아이콘 역할 */
.entry__content blockquote p:first-child { margin-top: 0; }
.entry__content blockquote p:last-child { margin-bottom: 0; }
.entry__content blockquote strong { background: linear-gradient(0deg, rgba(255,183,3,.4) 0%, rgba(255,183,3,.4) 36%, transparent 36%); }

/* 목록 마커: 골봇 옐로 */
.entry__content ul { padding-left: 1.3em; }
.entry__content ul li::marker { color: var(--gol-deep); }
.entry__content ol { padding-left: 1.4em; }
.entry__content ol li::marker { font-family: var(--font-display); font-weight: 700; color: var(--gol-deep); }

/* 체크리스트 (- [ ] 문법 또는 ☐ 붙여넣기) */
.entry__content ul.checklist, .entry__content ul.task-list { list-style: none; padding-left: 0; }
.entry__content ul.checklist li, .entry__content ul.task-list li {
  position: relative; padding-left: 34px; margin-bottom: .6em;
}
.entry__content ul.checklist li::before, .entry__content ul.task-list li::before {
  content: ''; position: absolute; left: 0; top: .22em;
  width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 6px; background: #fff;
}
.entry__content input[type='checkbox'] { accent-color: var(--gol-deep); width: 18px; height: 18px; }

/* 접기/펼치기 (details) — 자주 묻는 질문에 활용 */
.entry__content details {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden;
}
.entry__content details + details { margin-top: -1em; }
.entry__content summary {
  cursor: pointer; padding: 16px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  list-style: none; position: relative;
}
.entry__content summary::-webkit-details-marker { display: none; }
.entry__content summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--gol-deep); transition: transform .2s ease;
}
.entry__content details[open] { border-color: var(--ink); }
.entry__content details[open] summary::after { content: '−'; }
.entry__content details > *:not(summary) { padding: 0 20px; }
.entry__content details > *:last-child { padding-bottom: 18px; }

/* 유튜브/영상 임베드: 자동 16:9 + 테두리 */
.entry__content .wp-block-embed { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--gol); }
.entry__content .wp-block-embed__wrapper { position: relative; }
.entry__content .wp-block-embed.is-type-video .wp-block-embed__wrapper::before { content: ''; display: block; padding-top: 56.25%; }
.entry__content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry__content video { width: 100%; border-radius: var(--radius); border: 2px solid var(--ink); }

/* 본문 이미지: 살짝 카드화 */
.entry__content .wp-block-image img, .entry__content > img { border: 1px solid var(--line); }
.entry__content .wp-block-gallery { gap: 14px; }

/* 강조(볼드)에도 은은한 형광펜 — 벤치마크의 굵은 키워드 톤 */
.entry__content > p strong { background: linear-gradient(0deg, rgba(255,183,3,.35) 0%, rgba(255,183,3,.35) 32%, transparent 32%); }

/* 키보드/버튼 표기 */
.entry__content kbd {
  font-family: var(--font-mono); font-size: .82em;
  background: var(--ink); color: #fff;
  padding: 3px 8px; border-radius: 6px;
}

.post-nav { max-width: var(--w-narrow); margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block; padding: 18px 20px; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.post-nav a:hover { border-color: var(--ink); transform: translateY(-3px); }
.post-nav small { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 4px; text-transform: uppercase; }
.post-nav .next { text-align: right; }

.related { background: var(--paper-2); padding: 72px 0 96px; }

/* ==========================================================================
   12. 우커머스 기본 다듬기
   ========================================================================== */
.woocommerce ul.products li.product { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; padding-bottom: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: 8px 8px 0 var(--gol); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-display); font-size: 1rem; padding: 12px 16px 0; }
.woocommerce ul.products li.product .price { padding: 0 16px; color: var(--gol-deep); font-weight: 700; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button {
  margin: 10px 16px 0; border-radius: 999px; background: var(--gol); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; border: 2px solid var(--ink);
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ink); color: #fff; }
.woocommerce-page .wrap { padding-top: 48px; padding-bottom: 96px; }

/* ==========================================================================
   13. 리빌 애니메이션
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* 404 */
.error-404 { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 140px 24px 96px; }
.error-404 .big { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); color: var(--gol); text-shadow: 4px 4px 0 var(--ink); line-height: 1; }

/* ==========================================================================
   12b. 우커머스 — 상품 상세 / 장바구니 / 결제 (골봇 서식 확장)
   ========================================================================== */
/* 상품 상세: 2단 레이아웃 */
.single-product div.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 44px; align-items: start; }
@media (max-width: 860px) { .single-product div.product { grid-template-columns: 1fr; gap: 28px; } }
.single-product div.product .woocommerce-product-gallery { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 6px 6px 0 var(--paper-2); }
.single-product div.product .summary .price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gol-deep); margin: 4px 0 10px; }
.single-product div.product .summary .woocommerce-product-details__short-description { color: var(--ink-2); }
.single-product div.product .summary form.cart { display: flex; gap: 12px; align-items: center; margin: 20px 0 8px; flex-wrap: wrap; }
.single-product div.product .summary .quantity .qty { width: 72px; padding: 12px 8px; border: 2px solid var(--ink); border-radius: 12px; text-align: center; font-family: var(--font-body); font-size: 1rem; background: #fff; }
.single-product div.product .summary .single_add_to_cart_button { padding: 14px 26px; font-size: .95rem; box-shadow: 4px 4px 0 var(--ink); margin: 0; }
.single-product div.product .summary .product_meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); border-top: 2px dashed var(--kraft); padding-top: 14px; margin-top: 18px; }
.single-product div.product .summary .product_meta a { color: var(--wire); }

/* 신뢰 배지 (functions.php 자동 출력) */
.gb-trust { list-style: none; margin: 14px 0 0; padding: 16px 18px; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--gol); }
.gb-trust li { margin: 0; }

/* 탭(설명/추가정보/리뷰): 전체 폭 사용 */
.single-product div.product .woocommerce-tabs,
.single-product div.product .related.products,
.single-product div.product .up-sells { grid-column: 1 / -1; }
.woocommerce-tabs ul.wc-tabs, .woocommerce-tabs ul.tabs { display: flex; gap: 6px; list-style: none; margin: 44px 0 0; padding: 0; border-bottom: 2px solid var(--ink); }
.woocommerce-tabs ul.wc-tabs li, .woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.wc-tabs li a, .woocommerce-tabs ul.tabs li a { display: inline-block; padding: 11px 20px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--muted); border: 2px solid transparent; border-bottom: 0; border-radius: 12px 12px 0 0; }
.woocommerce-tabs ul.wc-tabs li.active a, .woocommerce-tabs ul.tabs li.active a { background: var(--gol); color: var(--ink); border-color: var(--ink); }
.woocommerce-tabs .panel { padding: 30px 0 8px; max-width: var(--w-narrow); }
.woocommerce-tabs .panel h2:first-child { display: none; } /* "설명" 중복 제목 숨김 */

/* 관련 상품 */
.single-product .related.products > h2, .single-product .up-sells > h2 { font-size: 1.4rem; margin: 40px 0 22px; padding-left: 16px; border-left: 5px solid var(--gol); }

/* 알림 배너 */
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; list-style: none; box-shadow: 4px 4px 0 var(--gol); color: var(--ink); }
.woocommerce-error { box-shadow: 4px 4px 0 #E76F51; }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin: -4px 0 0 12px; }

/* 장바구니/주문 테이블 */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce table.shop_table thead th { background: var(--paper-2); font-family: var(--font-display); font-size: .85rem; }
.woocommerce table.shop_table img { width: 56px; border-radius: 8px; }

/* 결제/계정 폼 */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-family: var(--font-body); font-size: .95rem; }
.woocommerce form .form-row label { font-weight: 600; font-size: .88rem; }
#place_order { width: 100%; padding: 16px; font-size: 1.05rem; }

/* 세일 배지 */
.woocommerce span.onsale { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--gol); border: 2px solid var(--ink); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .78rem; padding: 5px 12px; border-radius: 999px; }

/* 샵 목록 여백 보정 */
.post-type-archive-product .woocommerce-page .wrap, .tax-product_cat .woocommerce-page .wrap { padding-top: 56px; }
.woocommerce .woocommerce-result-count { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.woocommerce .woocommerce-ordering select { padding: 9px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: .85rem; }
