/*
Theme Name: 맘팁 (Momtip)
Theme URI: https://momtip.co.kr/
Author: 맘팁 편집팀
Description: 엄마가 궁금한 육아·지원금 정보를 한눈에. Warm, fast, classic PHP theme for momtip.co.kr — no jQuery, one stylesheet, tiny header script. Works with the Typography, Rewrite Components, Smart Ads, Related Posts and FAQ Schema mu-plugins; Rank Math owns SEO metadata.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: momtip-theme
*/

/* ==================================================================
   1. Tokens
   ================================================================== */

:root {
  --mt-bg: #fff9f4;
  --mt-surface: #ffffff;
  --mt-ink: #3a2e2a;
  --mt-ink-soft: #5e504a;
  --mt-muted: #7a6b64;          /* darkened from #8A7B74 for ≥4.5:1 on white and --mt-bg */
  --mt-line: #f0e2d8;
  --mt-line-soft: #f7ede6;
  --mt-line-strong: #e2cbbd;    /* form field borders */

  --mt-primary: #f2877a;        /* decorative coral peach */
  --mt-primary-strong: #bf4d3e; /* button bg with white text (4.8:1) */
  --mt-primary-ink: #ae4236;    /* links / text on white, bg and primary-soft */
  --mt-primary-soft: #ffe9e4;

  --mt-mint: #5dbfa6;
  --mt-mint-soft: #e6f6f1;
  --mt-mint-ink: #23735f;

  --mt-butter: #f7c948;
  --mt-butter-soft: #fff5d6;
  --mt-butter-ink: #8a6200;

  --mt-lilac: #a996e0;
  --mt-lilac-soft: #f1ecfc;
  --mt-lilac-ink: #5b46a3;

  --mt-radius-card: 18px;
  --mt-radius-box: 14px;
  --mt-radius-pill: 999px;
  --mt-shadow: 0 6px 20px rgba(150, 90, 60, 0.08);
  --mt-shadow-hover: 0 12px 28px rgba(150, 90, 60, 0.14);

  --mt-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mt-font-cute: "Jua", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --mt-reading: 720px;
  --mt-wide: 1140px;

  /* Current tone (overridden by .tone-* on any ancestor) */
  --tone: var(--mt-primary);
  --tone-soft: var(--mt-primary-soft);
  --tone-ink: var(--mt-primary-ink);

  color-scheme: light;
}

.tone-peach {
  --tone: var(--mt-primary);
  --tone-soft: var(--mt-primary-soft);
  --tone-ink: var(--mt-primary-ink);
}

.tone-butter {
  --tone: var(--mt-butter);
  --tone-soft: var(--mt-butter-soft);
  --tone-ink: var(--mt-butter-ink);
}

.tone-mint {
  --tone: var(--mt-mint);
  --tone-soft: var(--mt-mint-soft);
  --tone-ink: var(--mt-mint-ink);
}

.tone-lilac {
  --tone: var(--mt-lilac);
  --tone-soft: var(--mt-lilac-soft);
  --tone-ink: var(--mt-lilac-ink);
}

/* ==================================================================
   2. Base
   ================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--mt-bg);
  color: var(--mt-ink);
  font-family: var(--mt-font);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--mt-primary-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
  color: var(--mt-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  word-break: keep-all;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
input[type="submit"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--mt-primary-ink);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-shell {
  width: min(calc(100% - 32px), var(--mt-wide));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  word-wrap: normal !important;
}

.skip-link:focus {
  z-index: 1000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  background: var(--mt-surface);
  color: var(--mt-ink);
  border-radius: var(--mt-radius-pill);
  box-shadow: var(--mt-shadow-hover);
  font-weight: 700;
}

.site-main {
  min-height: 60vh;
}

/* ==================================================================
   3. Shared atoms: kicker, chips, pills, buttons, mascot
   ================================================================== */

.mt-kicker {
  margin: 0 0 4px;
  color: var(--tone-ink);
  font-family: var(--mt-font-cute);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.mt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--mt-radius-pill);
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.mt-chip::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
  content: "";
}

.mt-chip:hover {
  text-decoration: underline;
}

.mt-chip--sm {
  padding: 2px 10px;
  font-size: 0.76rem;
}

.mt-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mt-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 16px;
  border: 1.5px solid var(--mt-line);
  border-radius: var(--mt-radius-pill);
  background: var(--mt-surface);
  color: var(--mt-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.mt-pill::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tone);
  content: "";
}

.mt-pill:hover {
  border-color: var(--tone);
  background: var(--tone-soft);
  transform: translateY(-1px);
}

.mt-btn,
.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--mt-radius-pill);
  background: var(--mt-primary-strong);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(191, 77, 62, 0.22);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.mt-btn:hover,
.entry-content .wp-block-button__link:hover {
  background: var(--mt-primary-ink);
  color: #fff;
  transform: translateY(-1px);
}

.mt-mascot {
  flex: 0 0 auto;
}

/* ==================================================================
   4. Header
   ================================================================== */

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 249, 244, 0.96);
  border-bottom: 1px solid var(--mt-line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  min-height: 56px;
}

.site-branding {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  min-height: 56px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mt-ink);
  text-decoration: none;
}

.brand-mascot {
  width: 36px;
  height: 36px;
}

.brand-name {
  color: var(--mt-ink);
  font-family: var(--mt-font-cute);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

.custom-logo-link {
  display: block;
}

.custom-logo {
  width: auto;
  max-height: 40px;
}

.primary-navigation {
  order: 3;
  flex: 1 0 100%;
  margin-inline: -16px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.primary-navigation::-webkit-scrollbar {
  display: none;
}

.primary-menu,
.primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  gap: 6px;
  width: max-content;
}

.primary-menu > li {
  position: relative;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--mt-radius-pill);
  background: var(--mt-surface);
  border: 1px solid var(--mt-line);
  color: var(--mt-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.primary-menu > li > a::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
  content: "";
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current-post-ancestor > a {
  background: var(--tone-soft);
  border-color: var(--tone);
  color: var(--tone-ink);
}

.primary-menu .sub-menu {
  display: none;
}

.search-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  order: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mt-surface);
  color: var(--mt-ink);
  box-shadow: inset 0 0 0 1px var(--mt-line);
}

.search-toggle svg {
  width: 21px;
  height: 21px;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  background: var(--mt-primary-soft);
  color: var(--mt-primary-ink);
}

.header-search-panel {
  display: none;
  padding: 4px 0 14px;
}

.header-search-panel.is-open,
.no-js .header-search-panel {
  display: block;
}

.header-search-panel .search-form {
  max-width: 560px;
  margin-inline: auto;
}

/* ==================================================================
   5. Search form
   ================================================================== */

.search-form {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 5px;
  border: 1.5px solid var(--mt-line-strong);
  border-radius: var(--mt-radius-pill);
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow);
}

.search-form:focus-within {
  border-color: var(--mt-primary-ink);
}

.search-label {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 12px;
}

.search-label svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--mt-muted);
}

.search-field {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.search-field::placeholder {
  color: var(--mt-muted);
  opacity: 1;
}

.search-field::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-submit {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--mt-radius-pill);
  background: var(--mt-primary-strong);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.search-submit:hover {
  background: var(--mt-primary-ink);
}

/* ==================================================================
   6. Cards
   ================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.mt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-top: 4px solid var(--tone);
  border-radius: var(--mt-radius-card);
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mt-card:hover {
  box-shadow: var(--mt-shadow-hover);
  transform: translateY(-2px);
}

.mt-card-media {
  display: block;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tone-soft);
  aspect-ratio: 16 / 9;
}

.mt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mt-card:hover .mt-card-media img:not(.mt-mascot) {
  transform: scale(1.03);
}

.mt-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.7) 0 9px, transparent 10px),
    radial-gradient(circle at 84% 72%, rgba(255, 255, 255, 0.6) 0 14px, transparent 15px),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.5) 0 5px, transparent 6px),
    var(--tone-soft);
}

.mt-card-placeholder .mt-mascot {
  width: 30%;
  max-width: 76px;
  height: auto;
}

.mt-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px 18px;
}

.mt-card-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.mt-card-title a {
  color: var(--mt-ink);
  text-decoration: none;
}

.mt-card-title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.mt-card-title a:hover {
  color: var(--mt-primary-ink);
}

.mt-card-title a:focus-visible {
  outline: 0;
}

.mt-card:has(.mt-card-title a:focus-visible) {
  outline: 3px solid var(--mt-primary-ink);
  outline-offset: 2px;
}

.mt-card .mt-chip {
  position: relative;
  z-index: 1;
}

.mt-card-excerpt {
  margin: 0;
  color: var(--mt-ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mt-card-meta {
  margin-top: auto;
  padding-top: 2px;
}

.mt-date {
  color: var(--mt-muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.mt-date.is-updated {
  color: var(--mt-mint-ink);
  font-weight: 700;
}

/* Compact list layout on phones (category hubs, archives). */
@media (max-width: 559px) {
  .card-grid--list {
    gap: 12px;
  }

  .card-grid--list .mt-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: start;
    border-top: 0;
    border-left: 4px solid var(--tone);
  }

  .card-grid--list .mt-card-media {
    margin: 10px 0 10px 10px;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
  }

  .card-grid--list .mt-card-body {
    gap: 6px;
    padding: 10px 14px 12px 12px;
  }

  .card-grid--list .mt-card-title {
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .card-grid--list .mt-card-excerpt {
    display: none;
  }

  .card-grid--list .mt-card-placeholder .mt-mascot {
    width: 44%;
  }

  /* Featured row becomes a swipeable carousel. */
  .card-grid--scroll {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .card-grid--scroll::-webkit-scrollbar {
    display: none;
  }

  .card-grid--scroll .mt-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

@media (min-width: 560px) {
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==================================================================
   7. Home
   ================================================================== */

.home-main {
  padding-bottom: 24px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 32px;
  background:
    radial-gradient(260px 200px at 92% 10%, rgba(247, 201, 72, 0.22), transparent 70%),
    radial-gradient(280px 180px at 2% 62%, rgba(93, 191, 166, 0.14), transparent 70%),
    linear-gradient(180deg, var(--mt-primary-soft) 0%, var(--mt-bg) 100%);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.home-hero-text {
  order: 2;
}

.home-hero .mt-kicker {
  color: var(--mt-primary-ink);
  font-size: 1.05rem;
}

.home-hero-title {
  margin: 0;
  font-size: clamp(1.6rem, 6.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
  text-wrap: balance;
}

.home-hero-intro {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--mt-ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.home-hero-search {
  max-width: 560px;
  margin-top: 18px;
}

.home-hero-search .search-field {
  min-height: 46px;
  font-size: 1.02rem;
}

.home-hero-search .search-submit {
  min-height: 46px;
  padding-inline: 22px;
}

.home-quick {
  margin-top: 14px;
}

.home-hero-art {
  order: 1;
  display: flex;
  justify-content: center;
}

.home-hero-mascot {
  width: 116px;
  height: 116px;
  filter: drop-shadow(0 10px 18px rgba(150, 90, 60, 0.14));
}

.home-section {
  padding: 28px 0 4px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-section-head h2 {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.home-section-more {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--mt-radius-pill);
  background: var(--mt-surface);
  color: var(--tone-ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--tone);
}

.home-section-more::after {
  content: "›";
  font-size: 1.1em;
  line-height: 1;
}

.home-section-more:hover {
  background: var(--tone-soft);
}

.home-section-desc {
  margin: -6px 0 14px;
  color: var(--mt-ink-soft);
  font-size: 0.92rem;
}

/* Age chips */
.home-ages-panel {
  padding: 20px 16px;
  border-radius: 22px;
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow);
}

.home-ages .mt-kicker {
  color: var(--mt-lilac-ink);
}

.home-ages-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.home-ages-head .home-section-desc {
  margin: 4px 0 14px;
}

.home-ages-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mt-age-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 6px;
  border-radius: var(--mt-radius-box);
  background: var(--mt-lilac-soft);
  color: var(--mt-lilac-ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.home-ages-list li:nth-child(6n + 1) .mt-age-chip { background: var(--mt-primary-soft); color: var(--mt-primary-ink); }
.home-ages-list li:nth-child(6n + 2) .mt-age-chip { background: var(--mt-butter-soft); color: var(--mt-butter-ink); }
.home-ages-list li:nth-child(6n + 3) .mt-age-chip { background: var(--mt-mint-soft); color: var(--mt-mint-ink); }
.home-ages-list li:nth-child(6n + 4) .mt-age-chip { background: var(--mt-lilac-soft); color: var(--mt-lilac-ink); }
.home-ages-list li:nth-child(6n + 5) .mt-age-chip { background: var(--mt-primary-soft); color: var(--mt-primary-ink); }
.home-ages-list li:nth-child(6n + 6) .mt-age-chip { background: var(--mt-butter-soft); color: var(--mt-butter-ink); }

.mt-age-chip:hover {
  transform: translateY(-2px);
  text-decoration: underline;
}

/* Category hubs */
.home-hub-panel {
  padding: 20px 14px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--tone-soft) 0, var(--tone-soft) 120px, rgba(255, 255, 255, 0) 100%);
}

.home-hub .home-section-head h2::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--tone);
  vertical-align: 0.08em;
  content: "";
}

/* ==================================================================
   8. Archive / search
   ================================================================== */

.archive-band {
  padding: 28px 0 30px;
  background:
    radial-gradient(220px 160px at 96% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    var(--tone-soft);
  border-bottom: 1px solid var(--mt-line);
}

.archive-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.archive-band-mascot {
  display: none;
}

.archive-title {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.archive-description {
  max-width: 640px;
  margin-top: 8px;
  color: var(--mt-ink-soft);
  font-size: 0.95rem;
}

.archive-description p {
  margin: 0;
}

.archive-count {
  display: inline-block;
  margin: 12px 0 0;
  padding: 3px 12px;
  border-radius: var(--mt-radius-pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--tone-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.archive-search {
  max-width: 520px;
  margin-top: 16px;
}

.archive-body {
  padding: 24px 0 40px;
}

/* Pagination */
.navigation.pagination {
  margin: 36px 0 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--mt-radius-pill);
  background: var(--mt-surface);
  color: var(--mt-ink);
  box-shadow: inset 0 0 0 1px var(--mt-line);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.page-numbers:hover {
  background: var(--mt-primary-soft);
  color: var(--mt-primary-ink);
}

.page-numbers.current {
  background: var(--mt-primary-strong);
  color: #fff;
  box-shadow: none;
}

.page-numbers.dots {
  background: transparent;
  box-shadow: none;
}

/* ==================================================================
   9. Single article
   ================================================================== */

.singular-main {
  padding: 0 0 40px;
}

.mt-article {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 16px 32px;
  background: var(--mt-surface);
}

.mt-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.mt-breadcrumb li + li::before {
  margin: 0 6px;
  color: var(--mt-line-strong);
  content: "›";
}

.mt-breadcrumb a {
  color: var(--mt-muted);
  text-decoration: none;
}

.mt-breadcrumb a:hover {
  color: var(--mt-primary-ink);
  text-decoration: underline;
}

.entry-overline {
  margin-bottom: 10px;
}

.entry-title,
.entry-title.is-secondary-title {
  margin: 0;
  color: var(--mt-ink);
  font-size: clamp(1.6rem, 6.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.32;
  text-wrap: pretty;
}

.entry-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 14px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--mt-line-strong);
  color: var(--mt-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.meta-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mt-ink-soft);
  font-weight: 700;
}

.meta-mascot {
  width: 24px;
  height: 24px;
}

.meta-date.is-updated {
  color: var(--mt-mint-ink);
  font-weight: 700;
}

.singular-featured {
  margin: 20px 0 0;
}

.singular-featured img {
  width: 100%;
  height: auto;
  border-radius: var(--mt-radius-box);
}

.singular-featured figcaption {
  margin-top: 8px;
  color: var(--mt-muted);
  font-size: 0.8rem;
  text-align: center;
}

.mt-page .entry-header {
  padding-bottom: 8px;
}

/* Post navigation */
.mt-post-nav {
  width: min(calc(100% - 32px), 820px);
  margin: 24px auto 0;
}

.mt-post-nav .nav-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.mt-post-nav a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 14px 18px;
  border-radius: var(--mt-radius-box);
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow);
  color: var(--mt-ink);
  text-decoration: none;
}

.mt-post-nav .nav-next a {
  align-items: flex-end;
  text-align: right;
}

.mt-post-nav .nav-label {
  color: var(--mt-primary-ink);
  font-family: var(--mt-font-cute);
  font-size: 0.86rem;
}

.mt-post-nav .nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.mt-post-nav a:hover .nav-title {
  text-decoration: underline;
}

/* ==================================================================
   10. Entry content typography
   ================================================================== */

.entry-content {
  margin-top: 24px;
  color: var(--mt-ink);
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: -0.005em;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 0 0 1.2em;
}

.entry-content h2 {
  position: relative;
  margin: 2.4em 0 0.8em;
  padding-left: 16px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.entry-content h2::before {
  position: absolute;
  top: 0.28em;
  left: 0;
  width: 6px;
  height: 0.95em;
  border-radius: 3px;
  background: var(--tone);
  content: "";
}

.entry-content h3 {
  margin: 1.9em 0 0.6em;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.entry-content h4 {
  margin: 1.6em 0 0.5em;
  font-size: 1.06rem;
  font-weight: 700;
}

.entry-content :where(h2, h3)[id] {
  scroll-margin-top: 88px;
}

.entry-content a {
  color: var(--mt-primary-ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  background: var(--mt-primary-soft);
  text-decoration-thickness: 2px;
}

.entry-content strong {
  color: var(--mt-ink);
  font-weight: 800;
}

.entry-content mark,
.entry-content .mt-hl {
  padding: 0 0.1em;
  background: linear-gradient(transparent 58%, #ffe39a 58%);
  color: inherit;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.3em;
  padding-left: 1.35em;
}

.entry-content li {
  margin: 0.4em 0;
}

.entry-content li::marker {
  color: var(--tone-ink);
  font-weight: 700;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--mt-radius-box);
  background: var(--mt-lilac-soft);
  color: var(--mt-ink-soft);
}

.entry-content blockquote > :last-child {
  margin-bottom: 0;
}

.entry-content hr {
  height: 0;
  margin: 2.6em auto;
  border: 0;
  border-top: 2px dotted var(--mt-line-strong);
}

.entry-content figure,
.entry-content .wp-block-image {
  margin: 1.8em 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mt-radius-box);
}

.entry-content figcaption,
.entry-content .wp-element-caption,
.entry-content .wp-caption-text {
  margin-top: 8px;
  color: var(--mt-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.entry-content code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--mt-line-soft);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
}

.entry-content pre {
  margin: 1.8em 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: var(--mt-radius-box);
  background: #3a2e2a;
  color: #fff9f4;
  font-size: 0.88rem;
  line-height: 1.65;
}

.entry-content pre code {
  padding: 0;
  background: transparent;
}

.entry-content .alignwide,
.entry-content .alignfull {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.entry-content .wp-block-buttons {
  margin: 1.6em 0;
}

.entry-content iframe {
  border-radius: var(--mt-radius-box);
}

/* ==================================================================
   11. Tables (.wp-block-table, plain tables, .mt-table wrapper)
   ================================================================== */

.entry-content .wp-block-table,
.entry-content .mt-table {
  width: 100%;
  margin: 1.8em 0;
  overflow-x: auto;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-box);
  background: var(--mt-surface);
  -webkit-overflow-scrolling: touch;
}

.entry-content table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.entry-content > table {
  margin: 1.8em 0;
  overflow: hidden;
  border-collapse: separate;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-box);
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--mt-line);
  text-align: left;
  vertical-align: middle;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.entry-content :is(.wp-block-table, .mt-table) :is(th, td) + :is(th, td),
.entry-content > table :is(th, td) + :is(th, td) {
  border-left: 1px solid var(--mt-line-soft);
}

.entry-content thead th,
.entry-content table:not(:has(thead)) tbody > tr:first-child:has(> th + th) > th {
  background: var(--mt-butter-soft);
  color: var(--mt-ink);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.entry-content tbody th {
  font-weight: 700;
}

.entry-content tbody tr:nth-child(even) > td,
.entry-content tbody tr:nth-child(even) > th {
  background: #fffbf8;
}

.entry-content tbody tr:last-child > :is(td, th) {
  border-bottom: 0;
}

.entry-content tfoot td,
.entry-content tfoot th {
  background: var(--mt-line-soft);
  font-weight: 700;
}

.entry-content :is(td, th).num,
.entry-content .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.entry-content :is(td, th).num-c {
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.entry-content td strong {
  color: var(--mt-primary-ink);
}

/* Neutralise core block-table borders/stripes so the theme look wins. */
.entry-content .wp-block-table :is(thead, tfoot) {
  border: 0;
}

.entry-content .wp-block-table.is-style-stripes {
  border-bottom: 1px solid var(--mt-line);
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: transparent;
}

.entry-content tr.is-hl > :is(td, th) {
  background: var(--mt-primary-soft);
}

.entry-content .wp-block-table figcaption,
.entry-content .mt-table figcaption,
.entry-content .mt-table-note {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--mt-line);
  background: var(--mt-surface);
  color: var(--mt-ink-soft);
  font-size: 0.82rem;
  text-align: left;
}

/* Wide tables scroll inside their rounded box. */
.entry-content .wp-block-table:has(th:nth-child(4)) table,
.entry-content .wp-block-table:has(td:nth-child(4)) table,
.entry-content .mt-table:has(th:nth-child(4)) table,
.entry-content .mt-table:has(td:nth-child(4)) table {
  min-width: 560px;
}

/* Comparison table */
.entry-content .mt-compare thead th {
  background: var(--mt-surface);
  border-bottom: 2px solid var(--mt-line);
  text-align: center;
  white-space: normal;
}

.entry-content .mt-compare thead th:first-child {
  background: var(--mt-line-soft);
}

.entry-content .mt-compare thead th:nth-child(2) { box-shadow: inset 0 4px 0 var(--mt-primary); }
.entry-content .mt-compare thead th:nth-child(3) { box-shadow: inset 0 4px 0 var(--mt-mint); }
.entry-content .mt-compare thead th:nth-child(4) { box-shadow: inset 0 4px 0 var(--mt-lilac); }
.entry-content .mt-compare thead th:nth-child(5) { box-shadow: inset 0 4px 0 var(--mt-butter); }

.entry-content .mt-compare tbody th,
.entry-content .mt-compare tbody td:first-child {
  background: var(--mt-bg);
  color: var(--mt-ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.entry-content .mt-compare tbody td:not(:first-child) {
  text-align: center;
}

.entry-content .mt-compare .is-pick {
  background: var(--mt-butter-soft) !important;
}

.entry-content .mt-compare thead .is-pick::after {
  display: block;
  margin-top: 2px;
  color: var(--mt-butter-ink);
  font-family: var(--mt-font-cute);
  font-size: 0.78rem;
  font-weight: 400;
  content: "맘팁 추천";
}

/* ==================================================================
   12. Post content components (.mt-*) — see components.md
   ================================================================== */

.entry-content :is(.mt-summary, .mt-tip, .mt-notice, .mt-cta, .mt-faq) > :last-child {
  margin-bottom: 0;
}

/* 12.1 핵심 요약 */
.entry-content .mt-summary,
.entry-content .tt-summary {
  margin: 1.8em 0;
  padding: 20px 20px 18px;
  border: 1px solid #f6e3a8;
  border-radius: var(--mt-radius-box);
  background: var(--mt-butter-soft);
}

.entry-content .mt-summary-title,
.entry-content .tt-summary > p:first-child > strong:only-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--mt-butter-ink);
  font-family: var(--mt-font-cute);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
}

.entry-content .mt-summary-title::before {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mt-butter);
  color: var(--mt-ink);
  font-family: var(--mt-font);
  font-size: 0.85rem;
  font-weight: 800;
  content: "✓";
}

.entry-content .mt-summary ul,
.entry-content .tt-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-content .mt-summary li,
.entry-content .tt-summary li {
  position: relative;
  margin: 6px 0;
  padding-left: 18px;
  line-height: 1.7;
}

.entry-content .mt-summary li::before,
.entry-content .tt-summary li::before {
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mt-butter-ink);
  content: "";
}

.entry-content .mt-summary p,
.entry-content .tt-summary p {
  margin: 0 0 0.6em;
}

/* 12.2 맘팁 한마디 */
.entry-content .mt-tip {
  position: relative;
  margin: 1.8em 0;
  padding: 18px 20px 18px 78px;
  border-radius: var(--mt-radius-box);
  background: var(--mt-primary-soft);
}

.entry-content .mt-tip::before {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff url("assets/img/mascot-check.svg") center / 40px no-repeat;
  box-shadow: 0 3px 10px rgba(150, 90, 60, 0.12);
  content: "";
}

.entry-content .mt-tip-title {
  margin: 0 0 4px;
  color: var(--mt-primary-ink);
  font-family: var(--mt-font-cute);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
}

.entry-content .mt-tip p {
  margin: 0 0 0.5em;
}

/* 12.3 기준일·주의 */
.entry-content .mt-notice {
  position: relative;
  margin: 1.8em 0;
  padding: 16px 18px 16px 52px;
  border-radius: var(--mt-radius-box);
  background: var(--mt-mint-soft);
  color: var(--mt-ink);
  font-size: 0.97rem;
  line-height: 1.75;
}

.entry-content .mt-notice::before {
  position: absolute;
  top: 17px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mt-mint-ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  content: "i";
}

.entry-content .mt-notice-title {
  margin: 0 0 2px;
  color: var(--mt-mint-ink);
  font-weight: 800;
}

.entry-content .mt-notice p {
  margin: 0 0 0.4em;
}

.entry-content .mt-notice.is-warn {
  background: var(--mt-primary-soft);
}

.entry-content .mt-notice.is-warn::before {
  background: var(--mt-primary-ink);
  content: "!";
}

.entry-content .mt-notice.is-warn .mt-notice-title {
  color: var(--mt-primary-ink);
}

/* 12.4 체크리스트 */
.entry-content ul.mt-checklist,
.entry-content .mt-checklist ul {
  margin: 1.4em 0;
  padding: 0;
  list-style: none;
}

.entry-content .mt-checklist li {
  position: relative;
  margin: 8px 0;
  padding: 10px 14px 10px 46px;
  border-radius: 12px;
  background: var(--mt-surface);
  box-shadow: inset 0 0 0 1px var(--mt-line);
  line-height: 1.6;
}

.entry-content .mt-checklist li::before {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--mt-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
  content: "";
}

.entry-content .mt-checklist li::marker {
  content: "";
}

/* 12.5 단계 */
.entry-content ol.mt-steps,
.entry-content .mt-steps ol {
  margin: 1.4em 0;
  padding: 0;
  list-style: none;
  counter-reset: mt-step;
}

.entry-content .mt-steps li {
  position: relative;
  margin: 0;
  padding: 2px 0 20px 50px;
  counter-increment: mt-step;
  line-height: 1.7;
}

.entry-content .mt-steps li::marker {
  content: "";
}

.entry-content .mt-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mt-primary);
  color: var(--mt-ink);
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  content: counter(mt-step);
}

.entry-content .mt-steps li:not(:last-child)::after {
  position: absolute;
  top: 38px;
  bottom: 4px;
  left: 16px;
  width: 2px;
  border-radius: 1px;
  background: repeating-linear-gradient(var(--mt-primary) 0 4px, transparent 4px 8px);
  content: "";
}

.entry-content .mt-steps li:last-child {
  padding-bottom: 0;
}

.entry-content .mt-steps li > strong:first-child {
  display: block;
  margin-top: 2px;
}

/* 12.6 CTA (쿠팡 등) + 대가성 고지 */
.entry-content .mt-cta {
  margin: 2em 0;
  padding: 20px 18px;
  border: 2px dashed var(--mt-line-strong);
  border-radius: var(--mt-radius-card);
  background: var(--mt-surface);
  text-align: center;
}

.entry-content .mt-cta-title {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}

.entry-content .mt-cta-desc {
  margin: 0 0 14px;
  color: var(--mt-ink-soft);
  font-size: 0.93rem;
}

.entry-content .mt-cta a.mt-cta-btn,
.entry-content a.mt-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: var(--mt-radius-pill);
  background: var(--mt-primary-strong);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(191, 77, 62, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.entry-content a.mt-cta-btn::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
}

.entry-content a.mt-cta-btn:hover {
  background: var(--mt-primary-ink);
  transform: translateY(-1px);
}

.entry-content .mt-disclosure,
.mt-disclosure {
  display: block;
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--mt-line-soft);
  color: var(--mt-ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}

.entry-content .mt-cta .mt-disclosure {
  text-align: center;
}

/* 12.7 자주 묻는 질문 (optional wrapper; FAQ Schema mu-plugin still reads H2/H3) */
.entry-content .mt-faq h3 {
  position: relative;
  margin: 1.4em 0 0.4em;
  padding-left: 30px;
  font-size: 1.08rem;
}

.entry-content .mt-faq h3::before {
  position: absolute;
  top: 0.05em;
  left: 0;
  color: var(--mt-primary-ink);
  font-family: var(--mt-font-cute);
  font-weight: 400;
  content: "Q.";
}

.entry-content .mt-faq h3 + p,
.entry-content .mt-faq h3 + div {
  padding-left: 30px;
  color: var(--mt-ink-soft);
}

/* 12.8 Editorial box (appended by the theme) */
.entry-content .mt-editorial {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 2.6em 0 0;
  padding: 18px;
  border-radius: var(--mt-radius-card);
  background: var(--mt-bg);
  box-shadow: inset 0 0 0 1px var(--mt-line);
  font-size: 0.93rem;
  line-height: 1.7;
}

.entry-content .mt-editorial img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mt-surface);
}

.entry-content .mt-editorial-name {
  color: var(--mt-primary-ink);
  font-family: var(--mt-font-cute);
  font-size: 1.05rem;
}

.entry-content .mt-editorial-text {
  margin-top: 2px;
  color: var(--mt-ink-soft);
}

.entry-content .mt-editorial-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.88rem;
}

.entry-content .mt-editorial-link::after {
  content: " ›";
}

/* ==================================================================
   13. mu-plugin compatibility
   ================================================================== */

/* Rewrite Components: tables, tools, update notes */
.entry-content .tt-table {
  margin: 1.8em 0;
  overflow-x: auto;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-box);
  background: var(--mt-surface);
}

.entry-content .tt-table table {
  border: 0;
}

.entry-content .tt-table th,
.entry-content .tt-table td {
  border: 0;
  border-bottom: 1px solid var(--mt-line);
}

.entry-content .tt-table thead th {
  background: var(--mt-butter-soft);
}

.entry-content .tt-tool {
  margin: 1.8em 0;
  padding: 18px 20px;
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius-box);
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow);
}

.entry-content .tt-tool select,
.entry-content .tt-tool input[type="search"] {
  min-height: 46px;
  border: 1.5px solid var(--mt-line-strong);
  border-radius: 12px;
  background: var(--mt-surface);
}

.entry-content .tt-tool button {
  min-height: 46px;
  border-radius: var(--mt-radius-pill);
  background: var(--mt-primary-strong);
}

.entry-content .tt-tool button:hover {
  background: var(--mt-primary-ink);
}

.entry-content .tt-tool-note {
  color: var(--mt-ink-soft);
}

.entry-content .tt-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2.2em;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--mt-line-soft);
  color: var(--mt-ink-soft);
  font-size: 0.86rem;
}

.entry-content .tt-updated::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mt-mint);
  content: "";
}

/* Related Posts mu-plugin */
.entry-content .related-box {
  margin: 2.4em 0 1em;
  padding: 20px 16px 16px;
  border-top: 0;
  border-radius: var(--mt-radius-card);
  background: var(--mt-bg);
}

.entry-content .related-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--mt-ink);
  font-family: var(--mt-font-cute);
  font-size: 1.15rem;
  font-weight: 400;
}

.entry-content .related-box-title::before {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff url("assets/img/mascot.svg") center / 22px no-repeat;
  content: "";
}

.entry-content .related-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-content .related-box li {
  margin: 0;
}

.entry-content .related-box a {
  display: block;
  height: 100%;
  padding: 8px 8px 12px;
  border-radius: var(--mt-radius-box);
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow);
  color: var(--mt-ink);
  font-weight: 400;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.entry-content .related-box a:hover {
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow-hover);
  transform: translateY(-2px);
}

.entry-content .related-thumb img {
  width: 100%;
  margin: 0 0 8px;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.entry-content .related-text {
  display: block;
  padding: 0 4px;
  color: var(--mt-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.entry-content .related-box a:hover .related-text {
  color: var(--mt-primary-ink);
  text-decoration: underline;
}

/* Smart Ads mu-plugin: spacing + unobtrusive "광고" label */
.entry-content .smart-ad,
.site-main .smart-ad {
  position: relative;
  clear: both;
  margin: 2.4em 0;
  padding-top: 22px;
  min-height: 300px;
}

.entry-content .smart-ad::before,
.site-main .smart-ad::before {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--mt-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  content: "광고";
}

.entry-content .smart-ad-autorelaxed,
.site-main .smart-ad-autorelaxed {
  min-height: 420px;
  margin-top: 2.8em;
}

.entry-content .adsbygoogle {
  width: 100%;
}

/* ==================================================================
   14. Empty states / 404
   ================================================================== */

.mt-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 0 56px;
  text-align: center;
}

.mt-empty-mascot {
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
}

.mt-404 .mt-empty-mascot {
  width: 140px;
  height: 140px;
}

.mt-empty .mt-kicker {
  color: var(--mt-primary-ink);
  font-size: 1.4rem;
}

.mt-empty-title {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
}

.mt-empty p {
  color: var(--mt-ink-soft);
}

.mt-empty-search {
  margin: 20px auto;
  text-align: left;
}

.mt-empty .mt-pill-row,
.archive-body > .mt-pill-row {
  justify-content: center;
  margin: 8px 0 20px;
}

/* ==================================================================
   15. Footer
   ================================================================== */

.site-footer {
  margin-top: 48px;
  padding: 36px 0 28px;
  border-radius: 28px 28px 0 0;
  background: var(--mt-line-soft);
  color: var(--mt-ink-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-identity {
  grid-column: 1 / -1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.footer-mascot {
  width: 40px;
  height: 40px;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
}

.footer-description {
  max-width: 440px;
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col-title {
  margin: 0 0 8px;
  color: var(--mt-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 4px 0;
}

.footer-col a {
  display: inline-block;
  padding: 3px 0;
  color: var(--mt-ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--mt-primary-ink);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--mt-line-strong);
}

.footer-disclosure {
  margin: 0;
  color: var(--mt-ink-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer-copy {
  margin: 10px 0 0;
  color: var(--mt-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==================================================================
   16. Larger screens
   ================================================================== */

@media (min-width: 560px) {
  .site-shell {
    width: min(calc(100% - 48px), var(--mt-wide));
  }

  .primary-navigation {
    margin-inline: -24px;
    padding-inline: 24px;
  }

  .home-ages-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-hub-panel {
    padding: 24px 22px 22px;
  }

  .mt-post-nav .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt-post-nav .nav-previous:only-child {
    grid-column: 1;
  }

  .mt-post-nav .nav-next:only-child {
    grid-column: 2;
  }

  .entry-content .related-box {
    padding: 22px 20px 20px;
  }

  .entry-content .related-box ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .entry-content .mt-cta {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-identity {
    grid-column: auto;
  }
}

@media (min-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
  }

  .admin-bar .site-header {
    top: 32px;
  }

  .header-inner {
    flex-wrap: nowrap;
    column-gap: 20px;
    min-height: 68px;
  }

  .site-branding {
    flex: 0 0 auto;
  }

  .primary-navigation {
    order: 2;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .primary-menu {
    justify-content: center;
    width: auto;
  }

  .primary-menu a {
    border-color: transparent;
    background: transparent;
  }

  .primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 180px;
    padding: 8px;
    border-radius: var(--mt-radius-box);
    background: var(--mt-surface);
    box-shadow: var(--mt-shadow-hover);
  }

  .primary-menu li:hover > .sub-menu,
  .primary-menu li:focus-within > .sub-menu {
    display: block;
  }

  .primary-menu .sub-menu a {
    display: flex;
    width: 100%;
  }

  .search-toggle {
    order: 3;
  }

  .home-hero {
    padding: 44px 0 48px;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
  }

  .home-hero-text,
  .home-hero-art {
    order: initial;
  }

  .home-hero-mascot {
    width: 220px;
    height: 220px;
  }

  .home-hero-intro {
    font-size: 1.05rem;
  }

  .home-section {
    padding-top: 40px;
  }

  .home-section-head h2 {
    font-size: 1.6rem;
  }

  .home-ages-panel {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
  }

  .home-ages-head .home-section-desc {
    margin-bottom: 0;
  }

  .home-hub-panel {
    padding: 28px 28px 26px;
    border-radius: 28px;
  }

  .archive-band {
    padding: 44px 0 46px;
  }

  .archive-band-mascot {
    display: block;
    width: 96px;
    height: 96px;
  }

  .archive-body {
    padding-top: 32px;
  }

  .singular-main {
    padding-top: 28px;
  }

  .mt-article {
    padding: 32px 48px 44px;
    border-radius: 28px;
    box-shadow: var(--mt-shadow);
  }

  .mt-page .entry-header {
    padding-top: 8px;
  }

  .entry-content {
    margin-top: 32px;
  }

  .entry-content h2 {
    font-size: 1.55rem;
  }

  .entry-content .mt-summary,
  .entry-content .tt-summary {
    padding: 22px 26px 20px;
  }

  .entry-content .mt-tip {
    padding: 20px 24px 20px 90px;
  }

  .entry-content .mt-tip::before {
    top: 18px;
    left: 20px;
    width: 54px;
    height: 54px;
    background-size: 46px;
  }

  .site-footer {
    margin-top: 64px;
    padding: 48px 0 32px;
  }
}

@media (min-width: 760px) and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ==================================================================
   17. Motion / print
   ================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .mt-card:hover,
  .mt-pill:hover,
  .mt-age-chip:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .mt-breadcrumb,
  .mt-post-nav,
  .smart-ad,
  .related-box {
    display: none !important;
  }

  body,
  .mt-article {
    background: #fff;
    box-shadow: none;
  }
}
