@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800;900&display=swap");

:root {
  color-scheme: light;
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --text: #1a1d21;
  --muted: #6b7280;
  --line: #e8eaed;
  --brand: #14181f;
  --accent: #16c2bd;
  --accent-strong: #0a807c;
  --accent-soft: #e2f7f6;
  --warm: #f7efe4;
  --shadow: 0 16px 38px rgba(20, 24, 31, 0.08);
}

body.dark {
  color-scheme: dark;
  --bg: #111416;
  --surface: #171b1e;
  --surface-soft: #202529;
  --text: #edf1f3;
  --muted: #a7b0b7;
  --line: #2c3338;
  --brand: #edf1f3;
  --accent: #6ba2ff;
  --accent-strong: #8bb6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 340px),
    var(--bg);
  color: var(--text);
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  /* 일본어: 단어 중간 줄바꿈(メ|ール) 방지 + 금칙처리. 미지원 브라우저는 자동 무시 */
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.mag-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.mag-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  width: min(100% - 40px, 1280px);
  min-height: 80px;
  margin: 0 auto;
}

.mag-logo {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.mag-logo img {
  display: block;
  width: auto;
  height: 38px;
  mix-blend-mode: multiply;
}

.mag-logo span {
  color: var(--accent);
}

.mag-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  overflow-x: auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  scrollbar-width: none;
}

.mag-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mag-search {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.mag-search:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.mag-search svg {
  width: 20px;
  height: 20px;
}

.mag-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.mag-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== 와디즈식 홈 레이아웃 ===== */
.wz-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.wz-hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
  gap: 52px;
  padding: 44px 0 4px;
}

.wz-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-soft);
}

.wz-hero-body .wz-tag {
  margin-bottom: 16px;
}

.wz-hero-body h1 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.01em;
}

.wz-hero-body h1 a:hover {
  color: var(--accent);
}

.wz-hero-body > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.wz-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 4px;
}

.wz-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d8dcdd;
}

.wz-dots span.on {
  width: 26px;
  background: #aeb4b6;
}

.wz-section {
  margin-top: 58px;
}

.wz-section-title {
  margin: 0 0 30px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}

.wz-card a,
.wz-card > div {
  display: block;
  height: 100%;
}

.wz-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-soft);
}

.wz-card-body {
  padding-top: 16px;
}

.wz-card-body .wz-tag {
  margin-bottom: 12px;
}

.wz-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.wz-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.wz-card a:hover h3 {
  color: var(--accent);
}

.wz-card.soon {
  opacity: 0.55;
}

@media (max-width: 900px) {
  .wz-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 26px;
  }

  .wz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 22px;
  }
}

@media (max-width: 600px) {
  .wz-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.mag-nav a,
.top-nav a {
  position: relative;
}

.mag-nav a::after,
.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.mag-nav a:hover::after,
.top-nav a:hover::after {
  transform: scaleX(1);
}

.mag-nav::-webkit-scrollbar {
  display: none;
}

.mag-nav a:hover,
.mag-admin:hover {
  color: var(--accent);
}

.mag-nav span {
  color: #9aa3a7;
}

.mag-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.mag-main {
  width: min(100% - 40px, 1280px);
  margin: 0 auto 72px;
}

.mag-hero {
  display: grid;
  align-items: end;
  min-height: 260px;
  border-bottom: 1px solid var(--line);
  padding: 58px 0 38px;
}

.mag-kicker,
.mag-category {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.mag-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 48px;
  line-height: 1.14;
  letter-spacing: 0;
}

.mag-hero p:not(.mag-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.mag-keywords,
.mag-featured,
.mag-latest,
.mag-series {
  margin-top: 44px;
}

.mag-keywords {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.mag-keywords h2,
.mag-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.mag-keywords > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mag-keywords a,
.mag-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 15px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.mag-keywords a:hover {
  border-color: rgba(22, 194, 189, 0.35);
  background: var(--accent-soft);
}

.mag-keywords span {
  color: #8b969b;
}

.mag-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.mag-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.featured-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 24, 31, 0.06);
}

.featured-card a {
  display: grid;
  height: 100%;
}

.featured-card.large {
  grid-row: span 2;
}

.featured-card.large a {
  grid-template-rows: minmax(320px, 1fr) auto;
}

.featured-card:not(.large) a {
  grid-template-columns: 190px minmax(0, 1fr);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 198px;
  object-fit: cover;
}

.featured-card:not(.large) img {
  min-height: 0;
}

.featured-card div {
  padding: 20px;
}

.featured-card h3,
.latest-card h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.featured-card h3 {
  font-size: 23px;
  line-height: 1.38;
}

.featured-card.large h3 {
  font-size: 30px;
  line-height: 1.3;
}

.featured-card p:not(.mag-category),
.latest-card p:not(.mag-category) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.featured-card:hover h3,
.latest-card:hover h3,
.series-row a:hover strong {
  color: var(--accent);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.latest-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.latest-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-soft);
}

.latest-card .mag-category {
  margin-top: 14px;
}

.latest-card h3 {
  font-size: 20px;
  line-height: 1.42;
}

.muted-card {
  opacity: 0.78;
}

.series-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.series-row a {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.series-row strong {
  color: var(--text);
  font-size: 18px;
}

.series-row span {
  color: var(--muted);
  font-size: 13px;
}

.mag-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mag-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.mag-foot-links a:hover {
  color: var(--accent);
}

.note-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.note-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.note-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 1px;
}

.note-logo span {
  letter-spacing: 0;
  font-size: 14px;
  color: var(--muted);
}

.side-nav,
.side-group {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.side-nav a,
.side-nav span,
.side-group span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.side-nav a.active {
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(6, 25, 31, 0.14);
  color: #fff;
}

.side-nav a:not(.active):hover,
.side-nav span:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.side-group h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
}

.note-main {
  min-width: 0;
  padding: 18px 0 56px;
}

.note-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 720px) auto;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 58px;
  padding: 0 28px 12px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.note-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(24, 39, 34, 0.06);
}

.note-search span {
  font-size: 24px;
  line-height: 1;
}

.note-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.top-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--surface);
  padding: 0 18px;
  font-weight: 800;
}

.note-section {
  margin: 26px 0 36px;
  padding-left: 32px;
}

.note-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-right: 28px;
}

.note-section-title h1,
.note-section-title h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.note-section-title span {
  color: var(--muted);
  font-size: 28px;
}

.horizontal-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 252px;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 28px 4px 0;
  scrollbar-width: none;
}

.horizontal-cards::-webkit-scrollbar {
  display: none;
}

.horizontal-cards.compact {
  grid-auto-columns: 268px;
}

.note-card {
  min-width: 0;
  border-radius: 14px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.note-card:hover {
  transform: translateY(-3px);
}

.note-card-live {
  padding: 10px;
  border: 1px solid rgba(225, 231, 227, 0.86);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.note-card img {
  width: 100%;
  height: 142px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-soft);
}

.note-card h2 {
  display: -webkit-box;
  margin: 13px 0 8px;
  min-height: 58px;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-link:hover h2 {
  color: var(--accent);
}

.author {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-stats {
  display: flex;
  gap: 14px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
}

.wide-ad {
  width: min(70vw, 920px);
  margin: 34px auto 32px;
  overflow: hidden;
  border: 1px solid rgba(225, 231, 227, 0.8);
  border-radius: 18px;
  background:
    linear-gradient(120deg, #0e9b97 0%, #16c2bd 46%, #eef7f7 46%, #eef7f7 100%);
  box-shadow: var(--shadow);
  color: #fff;
}

.wide-ad > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding: 24px 30px;
  gap: 18px;
}

.wide-ad strong {
  font-size: 34px;
  line-height: 1;
}

.wide-ad span {
  max-width: 460px;
  font-size: 20px;
  font-weight: 800;
  color: #142025;
}

.theme-pills {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 0 28px 4px 0;
}

.theme-pills span,
.theme-pills a {
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(24, 39, 34, 0.05);
  font-weight: 800;
}

.theme-pills span:hover,
.theme-pills a:hover {
  border-color: rgba(22, 194, 189, 0.3);
  background: var(--accent-soft);
}

.engine-page {
  background: #f6f7f8;
}

.engine-wrap {
  width: min(100% - 32px, 1180px);
  margin: 28px auto 72px;
}

.engine-hero,
.engine-card,
.engine-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.engine-hero {
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(61, 127, 163, 0.12), rgba(255, 255, 255, 0) 44%),
    var(--surface);
}

.engine-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.engine-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 3.4rem, 58px);
  line-height: 1.15;
  letter-spacing: 0;
}

.engine-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.engine-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.engine-meta span,
.engine-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.engine-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.engine-grid.inline-grid {
  margin-top: 0;
  margin-bottom: 18px;
}

.engine-card,
.engine-section {
  padding: 24px;
}

.engine-card h2,
.engine-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.engine-card p,
.engine-card li,
.engine-section p,
.engine-flow span {
  color: var(--muted);
}

.engine-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.engine-card li {
  margin: 8px 0;
}

.engine-card .quote {
  border-left: 4px solid var(--accent);
  margin: 12px 0 18px;
  padding-left: 14px;
  color: var(--text);
  font-weight: 900;
}

.engine-card.warning {
  background: #fffaf2;
}

.engine-section {
  margin-top: 18px;
}

.engine-section-head {
  margin-bottom: 18px;
}

.engine-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: engine-step;
}

.engine-flow li {
  position: relative;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 16px 58px;
  background: var(--surface-soft);
  counter-increment: engine-step;
}

.engine-flow li::before {
  content: counter(engine-step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  font-size: 13px;
  font-weight: 900;
}

.engine-flow strong,
.engine-flow span {
  display: block;
}

.engine-flow strong {
  margin-bottom: 4px;
  color: var(--text);
}

.engine-table-wrap {
  overflow-x: auto;
}

.engine-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.engine-table th,
.engine-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
}

.engine-table th {
  color: var(--text);
  font-size: 13px;
  background: var(--surface-soft);
}

.engine-table td {
  color: var(--muted);
}

.engine-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.engine-paths code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 3px 7px;
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(16px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

/* 브랜드 워드마크 (전 페이지 공통): 로고 무드 = 미니멀 텍스트 */
.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.12;
}

.brand-mark {
  display: none; /* 로고는 순수 워드마크 — "D" 아이콘 숨김 */
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--brand);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand small {
  display: none; /* 워드마크 아래 일본어 태그라인 숨김 */
}

.top-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--accent);
}

.post-shell {
  width: min(100% - 32px, 920px);
  margin: 28px auto 56px;
}

.category-post-list {
  margin: 0;
  padding-left: 18px;
}

.category-post-list li {
  margin: 10px 0;
}

.category-post-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  width: min(100% - 32px, 1080px);
  margin: 32px auto 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .mag-header-inner {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1180px);
    gap: 12px;
    min-height: 60px;
  }

  .mag-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    padding-bottom: 12px;
  }

  .site-header {
    min-height: 64px;
  }

  .mag-main,
  .mag-footer {
    width: min(100% - 28px, 1180px);
  }

  .mag-hero {
    min-height: 220px;
    padding: 38px 0 30px;
  }

  .mag-hero h1 {
    font-size: 38px;
  }

  .mag-keywords {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-card.large a,
  .featured-card:not(.large) a {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .featured-card img,
  .featured-card.large img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .latest-grid,
  .series-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-shell {
    grid-template-columns: 1fr;
  }

  .note-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 14px 12px;
  }

  .note-logo {
    margin-bottom: 10px;
    font-size: 28px;
  }

  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .side-group {
    display: none;
  }

  .note-topbar {
    grid-template-columns: 1fr;
    justify-content: stretch;
    padding: 12px 16px 10px;
  }

  .top-actions {
    display: none;
  }

  .wide-ad {
    width: min(100% - 32px, 920px);
  }

  .engine-grid,
  .engine-grid.two,
  .engine-flow {
    grid-template-columns: 1fr;
  }

  .engine-wrap {
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .mag-logo {
    font-size: 22px;
  }

  .mag-admin {
    min-height: 34px;
    padding: 0 12px;
  }

  .mag-hero h1 {
    font-size: 32px;
  }

  .mag-hero p:not(.mag-kicker) {
    font-size: 15px;
  }

  .mag-keywords,
  .mag-featured,
  .mag-latest,
  .mag-series {
    margin-top: 34px;
  }

  .mag-section-head {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .featured-card div {
    padding: 16px;
  }

  .featured-card.large h3,
  .featured-card h3 {
    font-size: 21px;
  }

  .latest-grid,
  .series-row {
    grid-template-columns: 1fr;
  }

  .mag-footer {
    flex-direction: column;
  }

  .note-section {
    padding-left: 16px;
    margin-top: 22px;
  }

  .horizontal-cards {
    grid-auto-columns: 82vw;
    gap: 16px;
  }

  .note-card img {
    height: 48vw;
    min-height: 180px;
  }

  .note-card-live {
    padding: 8px;
  }

  .wide-ad > div {
    align-items: flex-start;
    flex-direction: column;
    min-height: 130px;
  }

  .wide-ad strong {
    font-size: 28px;
  }

  .wide-ad span {
    color: #fff;
    font-size: 17px;
  }

  .engine-wrap {
    width: min(100% - 24px, 1180px);
  }

  .engine-hero,
  .engine-card,
  .engine-section {
    padding: 20px;
  }

  .engine-hero p {
    font-size: 16px;
  }

  .engine-flow li {
    padding: 16px 16px 16px 54px;
  }
}

/* ===== 검색 오버레이 + 홈 보조 ===== */
.wz-dots span { cursor: pointer; }

.wz-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 14vh 20px 20px;
  background: rgba(20, 24, 31, 0.45);
  backdrop-filter: blur(4px);
}

.search-overlay.on {
  display: flex;
}

.search-box {
  width: min(100%, 620px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 24, 31, 0.25);
  overflow: hidden;
}

.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 20px 22px;
  font-size: 17px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.search-results {
  max-height: 52vh;
  overflow-y: auto;
}

.search-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.search-hit:hover {
  background: var(--accent-soft);
}

.search-hit:last-child {
  border-bottom: 0;
}

.search-none {
  margin: 0;
  padding: 22px;
  color: var(--muted);
  font-size: 15px;
}

/* 시인성: 히어로/카드 텍스트 줄 수 제한(카드 높이 정렬) */
.wz-hero-body > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wz-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wz-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 트렌디 폴리시 (마이크로 인터랙션 · 편집 디테일) ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
a {
  transition: color 0.15s ease;
}

/* 카드 이미지 호버 줌(래퍼로 클리핑) + 카드 리프트 */
.wz-thumb {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-soft);
}
.wz-card .wz-thumb img {
  border-radius: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.wz-card {
  transition: transform 0.28s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.wz-card:hover {
  transform: translateY(-5px);
}
.wz-card:hover .wz-thumb img {
  transform: scale(1.06);
}
.wz-card:hover .wz-thumb {
  box-shadow: 0 18px 36px rgba(20, 24, 31, 0.12);
}

/* 히어로 이미지 호버 줌 */
.wz-hero-media {
  display: block;
  overflow: hidden;
  border-radius: 16px;
}
.wz-hero-media img {
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.wz-hero-media:hover img {
  transform: scale(1.04);
}

/* 카테고리 카드 이미지 줌 */
.category-thumb img {
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.category-post-card:hover .category-thumb img {
  transform: scale(1.06);
}

/* 섹션 제목 액센트 바 (편집 느낌) */
.wz-section-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.wz-section-title::before {
  content: "";
  flex: none;
  width: 6px;
  height: 0.92em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

/* CTA 살짝 입체감 */
.mag-cta {
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.mag-cta:hover {
  transform: translateY(-1px);
}

/* 푸터 정돈 — 여백·구분 강화 */
.mag-footer {
  margin-top: 64px;
  padding: 30px 0 44px;
}
.mag-footer > span:first-child {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.mag-foot-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

/* ===== B컷(우아한형제들) 무드: 샤프 코너 · 볼드 · 민트 텍스트 라벨 · 컬러 블록 ===== */
/* 샤프(직각) 코너 — 편집/매거진 느낌 */
.wz-thumb,
.wz-hero-media,
.category-thumb {
  border-radius: 0;
}
.wz-card .wz-thumb img,
.wz-hero-media img,
.recommend-card img {
  border-radius: 0;
}

/* 굵은 블랙 타이포 */
.wz-hero-body h1 {
  font-weight: 900;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.wz-card h3 {
  font-weight: 800;
  font-size: 19px;
}
.wz-section-title {
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 32px);
}
.wz-section-title::before {
  display: none; /* B컷은 액센트 바 없이 큰 볼드 제목 */
}

/* 민트 텍스트 라벨(필 제거) */
.wz-tag {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* 헤더 CTA: 소프트 민트 필 */
.mag-cta {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.mag-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* 컬러 컬렉션 블록 ("ここから読む？") */
.wz-collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.coll {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 30px;
  color: #fff;
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}
.coll:hover {
  transform: translateY(-5px);
  filter: brightness(1.05);
}
.coll span {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.92;
}
.coll strong {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.3;
}
.coll-1 { background: #8b5cf6; }
.coll-2 { background: #ec4899; }
.coll-3 { background: #f59e0b; }
.coll-4 { background: #13b8b0; }

@media (max-width: 700px) {
  .wz-collections {
    grid-template-columns: 1fr;
  }
}

/* 쿠키 동의 배너 (라이트 CMP) */
.consent-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(20, 24, 31, 0.18);
}
.consent-bar p {
  margin: 0;
  flex: 1 1 320px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
}
.consent-bar a {
  color: var(--accent-strong);
  font-weight: 700;
}
.consent-ok {
  flex: none;
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.consent-ok:hover {
  background: var(--accent-strong);
}
