:root {
  --ink: #24302e;
  --muted: #5a6862;
  --line: #dfe6dc;
  --green: #2f6f50;
  --green-soft: #e9f2ec;
  --paper: #f7f9f6;
  --card: #ffffff;
  --font: system-ui, -apple-system, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #2f6f50;
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
}

.filter-bar button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-bar button:hover {
  background: var(--green-soft);
  border-color: #b9cdbd;
}

.filter-bar button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.filter-bar button[data-value="new"].active { background: #e8f2ef; border-color: #1f5f4f; color: #1f5f4f; }
.filter-bar button[data-value="material"].active { background: #eef3e6; border-color: #4f7038; color: #4f7038; }
.filter-bar button[data-value="event"].active { background: #e9f2ec; border-color: #2f6f50; color: #2f6f50; }
.filter-bar button[data-value="use"].active { background: #f0f4e7; border-color: #557a3f; color: #557a3f; }
.filter-bar button[data-value="review"].active { background: #edf1ee; border-color: #3f5f4a; color: #3f5f4a; }
.filter-bar button[data-value="trend"].active { background: #edf2ee; border-color: #46654f; color: #46654f; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 1px;
}

.nav {
  display: flex;
  gap: 6px;
  font-size: 15px;
  color: var(--ink);
  flex-wrap: nowrap;
}

.nav a {
  color: var(--ink);
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  line-height: 1;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b9cdbd;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 30px 28px;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 0 10px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 0 0 10px;
}

.home-page { --title-fill: #e8f2ef; }
.tools-page { --title-fill: #eef3e6; }
.sites-page { --title-fill: #e9f2ec; }
.youtube-page { --title-fill: #f0f4e7; }
.news-page { --title-fill: #edf1ee; }

.hero.hero-split {
  padding: 0;
  overflow: hidden;
}

.hero.hero-split .hero-head {
  background: var(--title-fill, #e8f2ef);
  padding: 26px 30px 18px;
}

.hero.hero-split h1 {
  margin: 0;
}

.hero.hero-split h1 .title-fill {
  display: inline;
  background: none;
  padding: 0;
  border-radius: 0;
}

.hero.hero-split > p {
  padding: 16px 30px 26px;
  margin: 0;
}

@media (max-width: 700px) {
  .hero.hero-split .hero-head {
    padding: 22px 20px 14px;
  }
  .hero.hero-split > p {
    padding: 14px 20px 22px;
  }
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 14px;
}

.section-title h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.3px;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.channel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: block;
  color: inherit;
}

.channel-card:hover {
  border-color: #b9cdbd;
  text-decoration: none;
}

.channel-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--paper);
}

.channel-card .body {
  padding: 14px 16px 16px;
}

.channel-card h3 {
  font-size: 15px;
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}

.channel-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.6;
}

.channel-card .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 5px;
  padding: 3px 7px;
  display: inline-block;
  margin-bottom: 8px;
}

/* 유튜브 목록형 */
.channel-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* 뉴스 목록형 */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.news-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  color: inherit;
}

.news-row[data-tag="신제품"] { --news-bg: #e8f2ef; --news-fg: #1f5f4f; }
.news-row[data-tag="소재"] { --news-bg: #eef3e6; --news-fg: #4f7038; }
.news-row[data-tag="행사"] { --news-bg: #e9f2ec; --news-fg: #2f6f50; }
.news-row[data-tag="활용"] { --news-bg: #f0f4e7; --news-fg: #557a3f; }
.news-row[data-tag="리뷰"] { --news-bg: #edf1ee; --news-fg: #3f5f4a; }
.news-row[data-tag="동향"] { --news-bg: #edf2ee; --news-fg: #46654f; }
.news-row[data-tag="소식"],
.news-row[data-tag="플랫폼"] { --news-bg: #f2f5f1; --news-fg: #5a6862; }

.news-row:hover {
  border-color: #b9cdbd;
  text-decoration: none;
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  height: 100%;
  padding: 14px 12px 14px 16px;
  background: var(--news-bg, #f2f6f2);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-date time {
  font-size: 12px;
  color: var(--muted);
}

.news-date .tag {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--news-fg, var(--line)) 35%, #ffffff);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--news-fg, var(--muted));
  line-height: 1.4;
}

.news-body {
  padding: 14px 16px 14px 10px;
}

.news-body h3 {
  font-size: 15px;
  margin: 0 0 3px;
  letter-spacing: -0.2px;
}

.news-body p {
  font-size: 13px;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.55;
}

.news-source {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 520px) {
  .news-row {
    grid-template-columns: 1fr;
  }
  .news-date {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .news-body {
    padding: 10px 14px 14px;
  }
  .news-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 760px) {
  .channel-list { grid-template-columns: 1fr 1fr; }
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: inherit;
}

.channel-row:hover {
  border-color: #b9cdbd;
  text-decoration: none;
}

.channel-row img {
  display: none;
}

.channel-row .body {
  min-width: 0;
}

.channel-row h3 {
  font-size: 15px;
  margin: 0 0 2px;
  letter-spacing: -0.2px;
}

.channel-row p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.channel-row .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 5px;
  padding: 2px 6px;
  margin-bottom: 3px;
}

@media (max-width: 520px) {
  .channel-row { padding: 10px 12px; gap: 10px; }
  .channel-row img { width: 44px; height: 44px; }
  .channel-row p { display: none; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  display: block;
  color: inherit;
}

.card:hover {
  border-color: #b9cdbd;
  text-decoration: none;
}

.card .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 5px;
  padding: 3px 7px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

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

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-head h3 {
  margin: 0 0 6px;
}

.card .card-head .tag {
  flex: none;
  margin: 0;
}

.sites-page .card {
  padding: 0;
  overflow: hidden;
}

.sites-page .cards[data-section="models"] .card-head {
  background: #e8f2ef;
}

.sites-page .cards[data-section="community"] .card-head {
  background: #eef3e6;
}

.sites-page .cards[data-section="learn"] .card-head {
  background: #e9f2ec;
}

.sites-page .card-head {
  padding: 16px 22px 12px;
}

.sites-page .card p {
  padding: 16px 22px 20px;
}

.sites-page .card .card-head .tag {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 520px) {
  .sites-page .card-head {
    padding: 14px 16px 10px;
  }
  .sites-page .card p {
    padding: 12px 16px 16px;
  }
}

.tools-page .card {
  padding: 0;
  overflow: hidden;
}

.tools-page .cards[data-section="mine"] .card-head {
  background: #e8f2ef;
}

.tools-page .cards[data-section="modeling"] .card-head {
  background: #eef3e6;
}

.tools-page .cards[data-section="slicer"] .card-head {
  background: #e9f2ec;
}

.tools-page .cards[data-section="links"] .card-head {
  background: #f0f4e7;
}

.tools-page .cards[data-section="links"] .card-title {
  min-width: 0;
}

.tools-page .cards[data-section="links"] .card-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #6b7c72;
  margin-bottom: 4px;
}

.tools-page .cards[data-section="links"] .card-head h3 {
  margin: 0;
}

.tools-page .card-head {
  padding: 16px 22px 12px;
}

.tools-page .card p {
  padding: 16px 22px 20px;
}

.tools-page .cards[data-section="mine"] .card-media,
.tools-page .cards[data-section="links"] .card-media {
  display: block;
  background: #eef3ee;
}

.tools-page .cards[data-section="mine"] .card-media img,
.tools-page .cards[data-section="links"] .card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.tools-page .card .card-head .tag {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 520px) {
  .tools-page .card-head {
    padding: 14px 16px 10px;
  }
  .tools-page .card p {
    padding: 12px 16px 16px;
  }
}

.home-page .cards[data-section="mine"] .card,
.home-page .cards[data-section="browse"] .card {
  padding: 0;
  overflow: hidden;
}

.home-page .cards[data-section="mine"] .card-media {
  display: block;
  background: #eef3ee;
}

.home-page .cards[data-section="mine"] .card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.home-page .cards[data-section="mine"] .card-head {
  background: #e8f2ef;
}

.home-page .cards[data-section="browse"] .card[data-cat="tools"] .card-head {
  background: #e8f2ef;
}

.home-page .cards[data-section="browse"] .card[data-cat="sites"] .card-head {
  background: #eef3e6;
}

.home-page .cards[data-section="browse"] .card[data-cat="youtube"] .card-head {
  background: #e9f2ec;
}

.home-page .cards[data-section="browse"] .card[data-cat="news"] .card-head {
  background: #f0f4e7;
}

.home-page .card-head {
  padding: 16px 22px 12px;
}

.home-page .card p {
  padding: 16px 22px 20px;
}

.home-page .card .card-head .tag {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 520px) {
  .home-page .card-head {
    padding: 14px 16px 10px;
  }
  .home-page .card p {
    padding: 12px 16px 16px;
  }
}

.article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 38px 40px;
}

.article h1 {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}

.article .meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article h2 {
  font-size: 18px;
  margin: 30px 0 10px;
  letter-spacing: -0.3px;
}

.article h3 {
  font-size: 15px;
  margin: 20px 0 8px;
}

.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 20px; }
.article li { margin-bottom: 6px; }

.article figure {
  margin: 22px 0;
}

.article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.article figure.portrait img {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.article figcaption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 7px;
}

.article figcaption a {
  color: var(--muted);
  text-decoration: underline;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 0 16px;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.article th,
.article td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.article th {
  background: var(--paper);
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.article blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--paper);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}

.article .cta {
  margin: 26px 0 0;
  padding: 20px 22px;
  background: var(--green-soft);
  border-radius: 10px;
}

.article .cta p { margin: 0 0 10px; }
.article .cta a { font-weight: 700; }

.article .note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.article .sources {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.article .sources li { margin-bottom: 7px; }
.article .sources li:last-child { margin-bottom: 0; }
.article .sources a { word-break: break-all; }
.article .sources span { color: var(--muted); }

/* 자료 목록 */
.section-sub {
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 14px;
}

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

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  color: inherit;
}

.resource-card[data-tag="new"] { --cat: #1f5f4f; --cat-bg: #e8f2ef; }
.resource-card[data-tag="material"] { --cat: #4f7038; --cat-bg: #eef3e6; }
.resource-card[data-tag="event"] { --cat: #2f6f50; --cat-bg: #e9f2ec; }
.resource-card[data-tag="use"] { --cat: #557a3f; --cat-bg: #f0f4e7; }
.resource-card[data-tag="review"] { --cat: #3f5f4a; --cat-bg: #edf1ee; }
.resource-card[data-tag="trend"] { --cat: #46654f; --cat-bg: #edf2ee; }

.resource-card:hover {
  border-color: #b9cdbd;
  text-decoration: none;
}

.resource-head {
  background: var(--cat-bg, #f2f6f2);
  padding: 11px 15px;
}

.resource-head strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  color: var(--cat, var(--ink));
}

.resource-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 15px 14px;
}

.resource-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.resource-foot .tag {
  flex: none;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--cat, var(--line)) 40%, #ffffff);
  border-radius: 999px;
  background: transparent;
  color: var(--cat, var(--muted));
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.resource-body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.resource-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.filter-bar .count {
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}

.filter-bar button.active .count {
  color: inherit;
  opacity: 0.72;
}

.resource-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0;
}

@media (min-width: 1200px) {
  .resource-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .resource-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .resource-list {
    grid-template-columns: 1fr;
  }
  .resource-card {
    padding: 0;
  }
  .resource-head {
    padding: 10px 14px;
  }
  .resource-head strong {
    font-size: 15px;
  }
  .resource-body {
    padding: 11px 14px 12px;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green); }

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.legal-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 30px 32px;
}

.legal-sheet h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.6px; }
.legal-sheet h2 { font-size: 16px; margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-sheet p, .legal-sheet li { font-size: 14px; }
.legal-sheet .meta { color: var(--muted); font-size: 12px; margin: 0 0 20px; }

@media (max-width: 700px) {
  .site-header-inner { padding: 12px 16px; }
  .brand { font-size: 17px; }
  .nav { gap: 4px; font-size: 13px; }
  .nav a { padding: 8px 11px; font-size: 13px; }
  .page { padding: 24px 16px 48px; }
  .hero { padding: 22px 20px; }
  .hero h1 { font-size: 24px; }
  .article { padding: 24px 18px 28px; border-radius: 12px; }
  .article h1 { font-size: 23px; }
  .legal-page { padding: 24px 16px 48px; }
  .legal-sheet { padding: 22px 18px 26px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .channel-list { grid-template-columns: 1fr; }
  .channel-card .body { padding: 12px 12px 14px; }
  .channel-card h3 { font-size: 14px; }
}

@media (max-width: 520px) {
  .site-header-inner { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand small { display: none; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
  .nav { gap: 3px; }
  .nav a {
    padding: 9px 10px;
    font-size: 12px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .site-header-inner { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
  .brand { font-size: 16px; }
  .nav { width: 100%; gap: 4px; }
  .nav a {
    flex: 1;
    justify-content: center;
    padding: 11px 4px;
    font-size: 12px;
    min-height: 42px;
  }
}

/* 새 글 배지 (정보 메뉴) */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c8472f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: 1px;
}
.nav a[aria-current="page"] .nav-badge {
  background: #fff;
  color: #1f5c46;
}

/* 새 채널 카드 배지 */
.channel-card { position: relative; }
.card-new {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c8472f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* 메뉴 N 배지 위치 보정: 글자 위에 겹치지 않게 */
.site-header .nav a { position: relative; }
.site-header .nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  margin: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 16px;
  box-shadow: 0 0 0 2px #fff;
}
.site-header .nav a[aria-current="page"] .nav-badge {
  background: #fff;
  color: #1f5c46;
  box-shadow: 0 0 0 2px #1f5c46;
}

/* 언어 전환 */
.lang-switch { margin-left: 10px; display: inline-flex; align-items: center; }
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6b66' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;
  border-radius: 999px;
  padding: 7px 26px 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}
.lang-switch select:hover { border-color: #b9cdbd; }
@media (max-width: 640px) {
  .lang-switch { margin-left: 6px; }
  .lang-switch select { padding: 6px 22px 6px 9px; font-size: 11px; }
}

/* 카드 썸네일 비율 고정 (모든 카드 동일 높이) */
.card-media {
  margin: -20px -22px 14px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #eef2ef;
  aspect-ratio: 1200 / 630;
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 560px) {
  .card-media { margin: -16px -18px 12px; }
}

/* 카드 썸네일: 카드 여백 안쪽에 맞춰 잘림 방지 */
.card-media {
  margin: 0 0 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2ef;
  aspect-ratio: 1200 / 630;
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 헤더: 메뉴를 오른쪽(언어 선택 옆)으로 */
.site-header .nav { margin-left: auto; }
@media (max-width: 720px) {
  .site-header-inner { flex-wrap: wrap; row-gap: 10px; }
  .site-header .nav { margin-left: 0; width: 100%; justify-content: flex-end; }
  .lang-switch { margin-left: auto; }
}
