/* =========================================================
   디자인 허브 — Black & White, 리스트 중심 미니멀
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --field: #F3F3F4;        /* 검색창처럼 배경과 구분이 필요한 입력 요소 */
  --ink: #111111;
  --ink-2: #6B6B6B;
  --ink-3: #A3A3A3;
  --line: #E2E2E2;
  --line-strong: #111111;
  --pill-bg: #FFFFFF;
  --hover: rgba(0, 0, 0, 0.03);
  --top-h: 60px;
  --sidebar-w: 220px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0F0F0F;
  --surface: #171717;
  --field: #1B1B1B;
  --ink: #F5F5F5;
  --ink-2: #9A9A9A;
  --ink-3: #5E5E5E;
  --line: #262626;
  --line-strong: #F5F5F5;
  --pill-bg: #171717;
  --hover: rgba(255, 255, 255, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
kbd { font-family: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ================= Top bar ================= */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--top-h);
  background: var(--bg);
}
.top__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  flex-shrink: 0;
}
.logo span { color: var(--ink-3); }

.search { position: relative; flex: 1; max-width: 480px; margin: 0 auto; }
.search__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--ink-2); pointer-events: none;
}
.search__input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}
.search__input::placeholder { color: var(--ink-2); }
.search__input:focus { border-color: var(--ink); }
.search__kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 11px; line-height: 1; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px;
  pointer-events: none;
}
.search__input:focus ~ .search__kbd { opacity: 0; }

.top__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.top__btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--pill-bg);
  transition: border-color 0.15s;
}
.top__btn:hover { border-color: var(--ink); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
:root[data-theme="dark"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }

/* ================= Layout / Sidebar ================= */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: var(--top-h);
  max-height: calc(100vh - var(--top-h));
  overflow-y: auto;
  scrollbar-width: none;
  padding: 24px 0 40px;
}
.sidebar::-webkit-scrollbar { display: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__group {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); padding: 18px 12px 8px;
}
.nav__group:first-child { padding-top: 6px; }
.nav__item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  text-align: left; color: var(--ink);
  transition: background 0.12s, color 0.12s;
}
.nav__item:hover { background: var(--hover); }
.nav__item.is-active { background: var(--ink); color: var(--bg); }
.nav__label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nav__item.is-active .nav__count { color: inherit; opacity: 0.6; }
.nav__item svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }

/* 필(태그 필터) */
.pills { display: flex; align-items: center; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ================= Hero (compact) ================= */
.main { padding: 32px 0 120px; min-width: 0; }
.hero { padding: 8px 0 28px; }
.hero__title {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
.hero__title span { color: var(--ink-3); }
.hero__sub { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 560px; }

/* ================= Meta line + view toggle ================= */
.meta {
  position: sticky;
  top: var(--top-h);
  z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
}
.meta__text { margin: 0 0 0 auto; color: var(--ink-2); white-space: nowrap; }
.meta__text b { color: var(--ink); font-weight: 600; }
.view { display: flex; gap: 2px; }
.view__btn { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-3); border-radius: 6px; }
.view__btn:hover { color: var(--ink); }
.view__btn.is-active { color: var(--ink); }
.view__btn svg { width: 14px; height: 14px; }

/* ================= Section ================= */
.section { scroll-margin-top: calc(var(--top-h) + 64px); }
.section__head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 40px 0 14px;
  border-bottom: 1px solid var(--line-strong);
}
.section__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section__count { font-size: 12px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.section__desc { margin: 0 0 0 auto; font-size: 13px; color: var(--ink-2); text-align: right; }

/* ================= List rows ================= */
.list { display: flex; flex-direction: column; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(180px, 260px) 1fr auto 36px 20px;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}
.row:hover { background: var(--hover); }
.row__fav {
  width: 28px; height: 28px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  border-radius: 6px;
}
.row__fav img { width: 18px; height: 18px; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter 0.15s, opacity 0.15s; }
.row:hover .row__fav img { filter: none; opacity: 1; }
.row__main { min-width: 0; display: flex; flex-direction: column; }
.row__name { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row:hover .row__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.row__domain { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__desc {
  margin: 0; min-width: 0;
  font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row__tags { font-size: 12px; color: var(--ink-3); white-space: nowrap; letter-spacing: 0.01em; }
.row__tags b { font-weight: 500; color: var(--ink-2); }
.row__star {
  width: 36px; height: 36px; display: grid; place-items: center;
  color: var(--ink-3); border-radius: 50%;
  opacity: 0; transition: opacity 0.12s, color 0.12s;
}
.row:hover .row__star, .row__star.is-on { opacity: 1; }
.row__star:hover { color: var(--ink); }
.row__star.is-on { color: var(--ink); }
.row__star svg { width: 16px; height: 16px; }
.row__star.is-on svg { fill: currentColor; }
.row__arrow { font-size: 15px; color: var(--ink-3); text-align: right; transition: transform 0.15s, color 0.15s; }
.row:hover .row__arrow { color: var(--ink); transform: translate(2px, -2px); }

mark { background: none; color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ================= Grid view ================= */
.grid-view .list:not(.list--insight) { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding-top: 16px; }
.grid-view .row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 150px;
}
.grid-view .row:hover { background: var(--surface); border-color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.grid-view .row__main { width: 100%; padding-right: 40px; }
.grid-view .row__desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.grid-view .row__tags { margin-top: auto; }
.grid-view .row__star { position: absolute; top: 12px; right: 12px; }
.grid-view .row__arrow { position: absolute; bottom: 18px; right: 20px; }

/* ================= Hover preview ================= */
.preview {
  position: fixed;
  z-index: 100;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.15s, transform 0.15s;
}
.preview.is-visible { opacity: 1; transform: none; }
.preview__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
}
.preview__shot::before {
  /* 로딩 스켈레톤 */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, var(--hover) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.preview__shot img {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0;
  transition: opacity 0.2s;
}
.preview.is-loaded .preview__shot img { opacity: 1; }
.preview.is-loaded .preview__shot::before { display: none; }
.preview__meta { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.preview__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview__domain { font-size: 12px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
:root[data-theme="dark"] .preview { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }


/* ================= Insight rows (스타일 사전 / 트렌드) ================= */
.srow {
  display: grid;
  grid-template-columns: 96px minmax(180px, 220px) 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}
.srow:hover { background: var(--hover); }
.srow__era { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 3px; white-space: nowrap; }
.srow--trend .srow__era { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.srow__main { min-width: 0; display: flex; flex-direction: column; }
.srow__name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.srow__name:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.srow__en { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.srow__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.srow__desc { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.srow__traits { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.srow__people { color: var(--ink-3); }
.srow__links { display: flex; gap: 14px; padding-top: 3px; white-space: nowrap; }
.srow__links a { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.srow__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 20px 0 0; font-size: 12.5px; }
.sources__label { color: var(--ink-3); }
.sources__link { color: var(--ink-2); }
.sources__link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }



/* 스타일 사전: 대표 이미지 */
.srow--style { grid-template-columns: 132px minmax(170px, 210px) 1fr auto; }
.srow__thumbwrap { display: block; width: 132px; }
.srow__thumb {
  display: block;
  width: 132px; height: 88px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  filter: grayscale(1);
  transition: filter 0.2s;
}
.srow:hover .srow__thumb { filter: none; }
.srow__thumbwrap.is-text {
  position: relative;
  height: 88px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.srow__thumbwrap.is-text::after {
  content: attr(data-en);
  position: absolute; left: 10px; right: 10px; bottom: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.2;
}
.srow--style .srow__era { padding: 0 0 4px; }

/* 인사이트 목록은 격자 보기와 무관하게 항상 세로 목록 */
.list--insight { display: flex; flex-direction: column; }

/* 용어 사전 */
.gfilter { flex-wrap: wrap; padding: 4px 0 8px; }
.section--sub { margin-top: 8px; }
.subgroup + .subgroup { margin-top: 6px; }
.grid-view .subgroup .list { padding-top: 12px; }
.section__head--sub { padding: 28px 0 10px; border-bottom: 1px solid var(--line-strong); }
.section__title--sub { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.grow {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.grow:hover { background: var(--hover); }
.grow__main { display: flex; flex-direction: column; min-width: 0; }
.grow__term { font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; }
.grow__en { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.grow__desc { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* ================= Empty ================= */
.empty { text-align: center; padding: 96px 20px; color: var(--ink-2); }
.empty__title { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.02em; }
.empty p { margin: 0; font-size: 14px; }


/* ================= noscript (검색엔진·JS 미사용 환경용 목록) ================= */
.noscript-seo { padding: 40px 0 80px; }
.noscript-seo h2 { font-size: 22px; letter-spacing: -0.03em; margin: 0 0 8px; }
.noscript-seo h3 { font-size: 16px; letter-spacing: -0.02em; margin: 32px 0 6px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.noscript-seo p { margin: 0 0 4px; color: var(--ink-2); font-size: 13.5px; }
.noscript-seo ul { margin: 10px 0 0; padding-left: 18px; }
.noscript-seo li { margin-bottom: 6px; font-size: 13.5px; color: var(--ink-2); }
.noscript-seo a { font-weight: 600; color: var(--ink); }
.noscript-seo a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ================= 정적 카테고리 페이지 (/ai/, /font/ ...) ================= */
.footer__nav {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.footer__navgroup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 14px; }
.footer__nav a { font-size: 12.5px; color: var(--ink-2); }
.footer__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .footer__navgroup { gap: 7px 12px; }
}

.page .top__inner { gap: 16px; }
.page__crumb { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page__crumb a { color: var(--ink-2); }
.page__crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.page__main { padding: 48px 0 100px; max-width: 860px; }
.page__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 16px; }
.page__intro { margin: 0 0 10px; font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.page__cta { margin: 0 0 8px; font-size: 14px; }
.page__cta a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.psub { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.psub span { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }

.plist { list-style: none; margin: 0; padding: 0; }
.plist__item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.plist__name { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }
a.plist__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.plist__host { font-size: 12px; color: var(--ink-3); margin-left: 8px; }
.plist__sub { font-size: 11px; color: var(--ink-3); margin-left: 8px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; }
.plist__desc { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.plist__meta { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

.page__nav { margin-top: 56px; }
.page__navlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.page__navlinks a { font-size: 13px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.page__navlinks a:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 640px) {
  .page__crumb { display: none; }
  .page__main { padding: 32px 0 72px; }
}


/* ================= 모바일 전체 메뉴(서랍) ================= */
.top__btn--menu { display: none; position: relative; }
.top__btn--menu svg { width: 20px; height: 20px; }
.top__btn-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--bg);
}

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0; transition: opacity 0.22s ease;
}
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--top-h); padding: 0 8px 0 20px; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.drawer__close {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
}
.drawer__close:hover { background: var(--hover); color: var(--ink); }
.drawer__close svg { width: 20px; height: 20px; }

.drawer__body { flex: 1; overflow-y: auto; padding: 8px 14px 40px; -webkit-overflow-scrolling: touch; }
.drawer__body .nav { gap: 1px; }
.drawer__body .nav__item { padding: 11px 12px; font-size: 15px; border-radius: 10px; }
.drawer__body .nav__group { padding: 18px 12px 6px; }
.drawer__section { margin-top: 4px; }
.drawer__section .pills { flex-wrap: wrap; padding: 2px 12px 0; }
.drawer__row { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 12px 0; }
.drawer__opt {
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--pill-bg);
}
.drawer__opt:hover { border-color: var(--ink); }
.drawer__opt.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.drawer-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__backdrop { transition: none; }
}



/* 산문 페이지(소개 · 개인정보처리방침) */
.ptext { margin: 14px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.ptext a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ptext--note { margin-top: 40px; font-size: 13px; color: var(--ink-3); }
.ptext-list { margin: 12px 0 0; padding-left: 18px; }
.ptext-list li { margin-bottom: 9px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.ptext-list a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 맨 위로 (모바일에서만 노출) */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ================= Footer ================= */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: 12.5px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .layout { grid-template-columns: 1fr; gap: 0; }

  /* 카테고리는 햄버거 메뉴로 옮기고, 가로 스크롤 필 줄은 없앰 */
  .sidebar { display: none; }
  .top__btn--menu { display: grid; }
  #theme-toggle { display: none; }   /* 테마 전환은 메뉴 안으로 */
  .to-top { display: grid; }
  .meta { display: none; }
  .main { padding-top: 16px; }

  /* 섹션 제목을 상단에 고정해 현재 위치가 계속 보이도록 */
  .section__head {
    position: sticky; top: var(--top-h); z-index: 20;
    background: var(--bg);
    margin: 0 -20px; padding: 12px 20px 10px;
  }
  .section { scroll-margin-top: calc(var(--top-h) + 4px); }
  .section__desc { display: none; }
  .row { grid-template-columns: 24px 1fr 36px 16px; gap: 6px 12px; padding: 14px 0; align-items: start; }
  .row__fav { width: 24px; height: 24px; }
  .row__main { grid-column: 2; grid-row: 1; }
  .row__desc { grid-column: 2 / -1; grid-row: 2; white-space: normal; }
  .row__tags { grid-column: 2 / -1; grid-row: 3; }
  .row__star { grid-column: 3; grid-row: 1; opacity: 1; margin-top: -8px; }
  .row__arrow { grid-column: 4; grid-row: 1; }
  .preview { display: none; }

  /* 인사이트 목록(스타일 사전 · 트렌드 · 용어 사전) */
  .srow { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .srow--style { grid-template-columns: 96px 1fr; }
  .srow--style .srow__thumbwrap, .srow--style .srow__thumb { width: 96px; height: 64px; }
  .srow--style .srow__thumbwrap.is-text::after { left: 8px; right: 8px; bottom: 6px; font-size: 10px; }
  .srow--style .srow__body, .srow--style .srow__links { grid-column: 1 / -1; }
  .srow__era { padding-top: 0; }
  .srow__links { padding-top: 4px; }
  .grow { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .top__inner { gap: 12px; }
  .search__kbd { display: none; }
  .search__input { padding-right: 14px; }
  .hero { padding: 4px 0 20px; }
  .hero__sub { font-size: 14px; }
  .section__head { padding-top: 32px; }
  .section__title { font-size: 19px; }
  .row { grid-template-columns: 22px 1fr 32px; }
  .row__star { grid-column: 3; }
  .row__arrow { display: none; }
  .grid-view .list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row, .row__arrow, .row__star { transition: none; }
}
