/* ==========================================================================
   지구숨숨 홈페이지 스타일
   - 모바일 우선(375px 기준 가로 스크롤 없음)
   - 색은 청록(--ink-sea)과 베이지(--bg-warm) 중심, 초록색 남발 금지
   ========================================================================== */

:root {
  /* 브랜드 색 토큰 */
  --ink-sea: #1f5f63;        /* 주색: 바다 청록 */
  --ink-sea-dark: #163f42;   /* hover/active, 배너 배경용 어두운 변형 */
  --ink-sea-soft: #e6efee;   /* 청록 아주 옅은 배경(칩 등) */
  --bg-warm: #f7f2ea;        /* 따뜻한 베이지 배경 */
  --bg-card: #ffffff;        /* 카드 배경 */
  --text-main: #2a2a28;      /* 본문 글자 */
  --text-sub: #6b6b64;       /* 보조 글자 */
  --border-soft: #e7e0d3;    /* 옅은 테두리 */
  --shadow-soft: 0 8px 24px rgba(31, 95, 99, 0.10);
}

/* 전역 box-sizing: 모바일에서 padding 때문에 가로 스크롤이 생기는 걸 막는다 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, system-ui, "Malgun Gothic", sans-serif;
  color: var(--text-main);
  background: var(--bg-card);
  line-height: 1.6;
  overflow-x: hidden; /* 폭 계산 실수가 있어도 최후 방어선 */
}

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

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

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

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 28px;
  color: var(--text-main);
}

/* ── 헤더 ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* JS가 스크롤 시 붙이는 클래스: 불투명 배경 + 그림자 */
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-sea);
  cursor: pointer; /* 로고를 누르면 홈으로 간다 */
}

.site-header.is-scrolled .logo {
  color: var(--ink-sea);
}

.main-nav .nav-list {
  display: flex;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer; /* 메뉴 네 개가 모두 실제 페이지로 간다 */
}

/* 히어로가 있는 페이지(홈)에서 아직 스크롤하지 않았을 때는 머리띠 글씨를 흰색으로.
   히어로가 어두운 공연 사진이라 기본 검은 글씨가 묻혀 안 보이기 때문이다.
   스크롤하면 .is-scrolled가 붙어 흰 배경이 깔리므로 원래 색으로 돌아간다. */
body:has(.hero) .site-header:not(.is-scrolled) .logo,
body:has(.hero) .site-header:not(.is-scrolled) .nav-link {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 페이지가 아직 없는 메뉴 — 시각적으로도 눌리지 않는 느낌을 준다 */
.nav-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.nav-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--border-soft);
  color: var(--text-sub);
}

/* ── 언어 전환(EN / 한국어): 메뉴 목록의 마지막 항목으로 넣는다.
   .nav-link를 그대로 상속해서 히어로 위 흰 글씨 규칙도 함께 적용되고,
   모바일에서는 햄버거 메뉴 안(다른 메뉴 항목들과 같은 자리)에 들어가므로
   햄버거 버튼과 겹칠 일이 없다 ───────────────────────────────────── */
.lang-switch {
  padding: 4px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.8rem;
}

body:has(.hero) .site-header:not(.is-scrolled) .lang-switch {
  border-color: rgba(255, 255, 255, 0.5);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-sea);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 햄버거가 열렸을 때 X자 모양으로 변형 */
.hamburger-btn.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .hamburger-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 320px;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .main-nav .nav-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .main-nav .nav-list li:last-child {
    border-bottom: none;
  }
}

/* ── 히어로 ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-image: url("../img/hero-performance.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 30, 32, 0.35) 0%,
    rgba(10, 30, 32, 0.55) 55%,
    rgba(10, 30, 32, 0.86) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 72px;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-title {
  margin: 0 0 28px;
  font-size: 1.9rem;
  line-height: 1.4;
  font-weight: 800;
  max-width: 20ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-filled {
  background: var(--ink-sea);
  color: #ffffff;
}

.btn-filled:hover {
  background: var(--ink-sea-dark);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
    max-width: 18ch;
  }
}

/* ── 소개 ─────────────────────────────────────────────────────────── */
.intro-section {
  background: var(--bg-warm);
}

.intro-text p {
  margin: 0 0 18px;
  font-size: 1.02rem;
  color: var(--text-main);
  max-width: 68ch;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* ── 대표 프로그램 ────────────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 프로그램이 6개라 3열×2줄(데스크톱) / 2열×3줄(태블릿) / 1열(폰)로 고정한다.
   auto-fit은 5개+1개로 갈라져 마지막 하나가 혼자 남았다.
   개수가 6의 약수(1·2·3·6)가 아니게 바뀌면 이 열 수도 다시 봐야 한다. */
@media (min-width: 640px) {
  .programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.program-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.program-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card-body {
  padding: 20px;
}

.program-card-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.program-card-desc {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-sub);
}

.program-card-more {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--border-soft);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: not-allowed;
}

/* ── 활동 숫자 ────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--ink-sea-soft);
  border-radius: 14px;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink-sea);
  line-height: 1.2;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--text-sub);
}

/* ── 함께한 곳: 이 섹션을 가장 신뢰감 있게 ───────────────────────── */
.orgs-section {
  background: var(--bg-warm);
}

.orgs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 36px 24px;
  box-shadow: var(--shadow-soft);
}

.org-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.org-chip {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink-sea-soft);
  color: var(--ink-sea);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(31, 95, 99, 0.14);
}

.org-more-btn {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-sea);
  background: transparent;
  color: var(--ink-sea);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.org-more-btn:hover {
  background: var(--ink-sea);
  color: #ffffff;
}

/* ── 최근 매체보도 ────────────────────────────────────────────────── */
.press-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.press-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.press-item:first-child {
  border-top: 1px solid var(--border-soft);
}

.press-date {
  font-size: 0.82rem;
  color: var(--text-sub);
  min-width: 88px;
}

.press-outlet {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-sea);
}

.press-title-link {
  font-size: 0.94rem;
  color: var(--text-main);
}

a.press-title-link:hover {
  text-decoration: underline;
}

/* url이 없는 기사: 링크처럼 보이면 안 된다(밑줄/포인터 없음) */
.press-title-text {
  font-size: 0.94rem;
  color: var(--text-main);
  cursor: default;
}

.press-more {
  margin-top: 20px;
}

.placeholder-disabled {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: not-allowed;
}

/* 섹션 아래에 두는 '전체 보기' 같은 글자 링크 */
.text-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-sea);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink-sea-dark);
}

/* ── 섭외 문의 배너 ───────────────────────────────────────────────── */
.contact-banner {
  background: var(--ink-sea-dark);
  color: #ffffff;
}

.contact-inner {
  text-align: center;
}

.contact-title {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.contact-desc {
  margin: 0 auto 28px;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-on-dark.btn-filled {
  background: #ffffff;
  color: var(--ink-sea-dark);
}

.btn-on-dark.btn-filled:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #f1ece2;
  padding: 40px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-info p {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--text-sub);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-sea);
}

.footer-social a:hover {
  text-decoration: underline;
}

.footer-copyright {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* ── 한국어 줄바꿈: 낱말 중간이나 조사 앞에서 줄이 끊기지 않게 한다 ──
   (keep-all이 없으면 "공연과 전시" 다음에 "를 만듭니다"처럼 조사만 떨어진다) */
body,
h1, h2, h3,
p, li, a, span, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ── 스크롤 reveal: 살짝 페이드인 + 슬라이드업, 절제된 정도로 ───────── */
/* 기본값은 '보임'이다. 자바스크립트가 실제로 돌 때만 html에 js-anim이 붙고,
   그때부터 아직 나타나지 않은 것만 숨긴다.
   (기본을 '안 보임'으로 두면 스크립트가 늦거나 실패할 때 빈 화면이 남는다) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html.js-anim .reveal:not(.is-revealed) {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 동작을 줄이고 싶은 사용자에게는 애니메이션 없이 바로 보여준다 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   프로그램 페이지(programs.html) 전용 스타일
   - 기존 규칙은 그대로 두고 이 아래에 덧붙인다
   ========================================================================== */

/* ── 헤더: 현재 페이지 표시 ───────────────────────────────────────── */
.nav-link.is-current {
  color: var(--ink-sea);
  cursor: default;
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--ink-sea);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .nav-link.is-current::after {
    display: none;
  }
}

/* ── 페이지 머리말: 히어로 없이 여백 있는 텍스트 ─────────────────────── */
.page-head-section {
  padding-top: 132px;
}

.page-title {
  margin: 0 0 16px;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.page-lead {
  margin: 0;
  max-width: 56ch;
  font-size: 1.02rem;
  color: var(--text-sub);
}

@media (min-width: 768px) {
  .page-head-section {
    padding-top: 156px;
  }

  .page-title {
    font-size: 2.4rem;
  }
}

/* ── 한눈에 비교: 데스크톱 3열, 모바일은 세로 카드(가로 스크롤 없음) ──── */
.compare-section {
  background: var(--bg-warm);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* 위 .programs-grid와 같은 이유로 6개를 3열×2줄 / 2열×3줄 / 1열로 고정한다 */
@media (min-width: 640px) {
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

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

.compare-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compare-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31, 95, 99, 0.16);
}

.compare-kind {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-sea);
  background: var(--ink-sea-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.compare-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.compare-summary {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-sub);
  flex-grow: 1;
}

.compare-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.compare-specs dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
}

.compare-specs dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.compare-specs dd.is-tbd {
  color: var(--text-sub);
  font-weight: 400;
}

/* ── 프로그램 상세 ────────────────────────────────────────────────── */
.program-detail {
  /* 비교 카드에서 #id로 바로 스크롤해 왔을 때 고정 헤더에 제목이
     가리지 않도록 여유를 둔다 */
  scroll-margin-top: 88px;
}

.program-detail--alt {
  background: var(--bg-warm);
}

.program-detail-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .program-detail-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.program-detail-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
}

.program-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-kind-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-sea);
  background: var(--ink-sea-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.program-detail-title {
  margin: 0 0 16px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.program-detail-desc p {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--text-main);
  max-width: 62ch;
}

.program-detail-desc p:last-child {
  margin-bottom: 0;
}

/* 스펙 표: 데스크톱은 좌우 2열, 모바일은 항목명 위 / 값 아래로 쌓는다 */
.spec-table-wrap {
  margin: 28px 0;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-soft);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.92rem;
  vertical-align: top;
}

.spec-table th {
  width: 30%;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-warm);
}

.spec-value-text {
  color: var(--text-main);
  font-weight: 600;
}

/* "협의"인 항목: 흐린 색 + "확인 필요" 작게 표시 — 아직 정해지지 않았음을 눈에 띄게 */
.spec-value.is-tbd .spec-value-text {
  color: var(--text-sub);
  font-weight: 400;
}

.spec-tbd-note {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--border-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

@media (max-width: 767px) {
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    padding: 14px 16px 4px;
  }

  .spec-table td {
    padding: 0 16px 14px;
  }
}

/* ── 진행 사례: 실제 실적이므로 가장 신뢰감 있게 ─────────────────────── */
.cases-block {
  margin-bottom: 28px;
  padding: 20px;
  background: var(--ink-sea-soft);
  border-radius: 12px;
}

.cases-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-sea);
}

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cases-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.cases-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-sea);
}

/* ── 영상으로 보기: 썸네일을 먼저 보여 주고, 누르면 유튜브 플레이어로 바뀐다 ── */
.videos-block {
  margin-bottom: 28px;
}

.videos-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-sea);
}

.videos-note {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

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

.video-item {
  margin: 0;
  min-width: 0;
}

.video-item figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-sub);
  overflow-wrap: anywhere;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-sea-dark);
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-facade:focus-visible {
  outline: 3px solid var(--ink-sea);
  outline-offset: 3px;
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: var(--ink-sea-dark);
}

.video-frame:focus-visible {
  outline: 3px solid var(--ink-sea);
  outline-offset: 3px;
}

/* 가운데 둥근 재생 버튼: 삼각형은 테두리로 그려서 외부 이미지가 필요 없다 */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 999px;
  background: rgba(22, 63, 66, 0.82);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.video-facade:hover .video-play-icon,
.video-facade:focus-visible .video-play-icon {
  transform: scale(1.08);
  background: var(--ink-sea);
}

.videos-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-sea);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 719px) {
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-play-icon {
    transition: none;
  }
}

.program-detail-cta {
  margin-top: 4px;
}

/* ── 영문판 전용: 해외 섭외 안내(touring)·매체보도(press-outlets) 보조 문구.
   섹션 자체는 orgs-card/cases-block 등 기존 스타일을 그대로 재사용한다 ── */
.touring-note,
.press-outlets-names-note {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.press-outlets-note {
  margin-bottom: 20px;
  color: var(--text-main);
}

/* === 아카이브 페이지(archive.html) 전용 스타일 - 기존 규칙은 그대로 두고 이 아래에 덧붙인다 === */

/* ── 페이지 머리말 요약: "총 N건 · M개 기관과 함께" ──────────────────── */
.archive-summary {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-sea);
}

/* ── 필터 바 ──────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--ink-sea);
}

.filter-btn.is-active {
  background: var(--ink-sea);
  border-color: var(--ink-sea);
  color: #ffffff;
}

.filter-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sub);
}

.filter-btn.is-active .filter-count {
  color: #ffffff;
}

/* ── 연도별 목록 ──────────────────────────────────────────────────── */
.year-group {
  border-bottom: 1px solid var(--border-soft);
  padding: 4px 0;
}

.year-group:last-child {
  border-bottom: none;
}

.year-group h2 {
  margin: 0;
}

.year-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.year-label {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.year-count {
  margin-left: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
}

.year-toggle-icon {
  font-size: 1.1rem;
  color: var(--ink-sea);
  flex-shrink: 0;
}

.year-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 24px;
  margin: 0;
}

.year-body[hidden] {
  display: none;
}

.history-item {
  padding: 16px 18px;
  background: var(--bg-warm);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

.history-item[hidden] {
  display: none;
}

.history-org {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.history-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--text-sub);
}

.history-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink-sea-soft);
  color: var(--ink-sea);
}

/* ── 아카이브 페이지 공용 더보기 버튼(매체보도 등) ───────────────────── */
.archive-more-btn {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-sea);
  background: transparent;
  color: var(--ink-sea);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.archive-more-btn:hover {
  background: var(--ink-sea);
  color: #ffffff;
}

.press-item[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .year-label {
    font-size: 1.1rem;
  }
}

/* === 소개 페이지(about.html) 전용 스타일 - 기존 규칙은 그대로 두고 이 아래에 덧붙인다 === */

/* ── 페이지 머리말: 홈 히어로(화면 꽉 채움 + 어두운 오버레이)와 다르게,
   낮은 높이의 이미지를 제목 옆(모바일은 아래)에 둔다 ── */
.about-head-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-head-inner .page-title {
  margin-bottom: 0;
}

.about-head-media {
  border-radius: 16px;
  overflow: hidden;
  max-height: 200px;
}

.about-head-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-head-inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .about-head-inner .page-title {
    flex: 1 1 50%;
  }

  .about-head-media {
    flex: 1 1 50%;
    max-height: 240px;
  }
}

/* ── 우리는 이런 사람들입니다: 이 페이지의 핵심이므로 다른 소개문보다
   글자를 조금 크게, 줄 간격을 넉넉히, 읽기 좋은 너비로 ── */
.about-intro-section {
  background: var(--bg-warm);
}

.about-intro-text p {
  margin: 0 0 26px;
  max-width: 640px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-main);
}

.about-intro-text p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .about-intro-text p {
    font-size: 1.18rem;
  }
}

/* ── 숫자로 보는 활동: 홈의 3칸 그리드와 다르게, 차분한 한 줄 문장 + 링크로 ── */
.about-numbers-summary {
  margin: 0 0 20px;
  max-width: 56ch;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink-sea);
}

/* ── 단체 정보: 표 대신 항목명 위 / 값 아래로 쌓는 목록(모바일에서도 그대로 읽힌다) ── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin: 0;
}

.info-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.info-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.info-term {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sub);
}

.info-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.info-value a {
  color: var(--ink-sea);
}

.info-value a:hover {
  text-decoration: underline;
}

/* ── 문의 페이지: 문의 폼 ─────────────────────────────────────────────
   기존 색 토큰만 사용한다(새 색 없음). 오류 표시는 색 대신 굵기로 구분한다 ── */

.quick-contact-section {
  background: var(--bg-warm);
}

.quick-contact-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-sub);
}

.quick-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-outline-ink {
  background: transparent;
  color: var(--ink-sea);
  border: 1.5px solid var(--ink-sea);
}

.btn-outline-ink:hover {
  background: var(--ink-sea-soft);
}

.contact-form-section {
  background: var(--bg-card);
}

.form-required-note {
  margin: 0 0 24px;
  font-size: 0.86rem;
  color: var(--text-sub);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-required-mark {
  color: var(--ink-sea);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.form-textarea {
  resize: vertical;
  min-height: 132px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ink-sea);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--ink-sea-dark);
  border-width: 2px;
}

.form-error {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-sea-dark);
}

.form-error:empty {
  display: none;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--ink-sea);
}

.form-checkbox-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-checkbox-note {
  margin: 6px 0 0 30px;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.form-submit-btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-notice {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--ink-sea-soft);
  color: var(--ink-sea-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.bottom-link-section {
  padding: 32px 0 64px;
  text-align: center;
}

.bottom-link-section a {
  color: var(--ink-sea);
  font-weight: 700;
}

.bottom-link-section a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .quick-contact-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   지구숨숨 장학금 — 기존 규칙은 그대로 두고 이 아래에 덧붙인다
   홈(짧은 소개 카드)과 소개 페이지(자세한 내용) 두 곳에서 쓴다.
   새 색 없이 기존 토큰(--ink-sea 계열, --bg-warm, --border-soft)만 조합한다.
   ========================================================================== */

/* ── 홈: 짧은 소개 카드. 옅은 청록 배경으로 다른 섹션과 결을 살짝 다르게 ── */
.scholarship-teaser-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--ink-sea-soft);
  border: 1px solid rgba(31, 95, 99, 0.14);
  border-radius: 20px;
  padding: 36px 28px;
}

.scholarship-teaser-text .section-title {
  margin-bottom: 12px;
}

.scholarship-lead {
  margin: 0 0 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-sea);
}

.scholarship-teaser-text .scholarship-lead {
  margin-bottom: 12px;
}

.scholarship-summary {
  margin: 0 0 20px;
  font-size: 0.96rem;
  color: var(--text-main);
  max-width: 56ch;
}

.scholarship-teaser-stat {
  flex-shrink: 0;
  text-align: center;
  padding: 22px 16px;
  background: var(--bg-card);
  border-radius: 14px;
}

.scholarship-teaser-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink-sea);
  line-height: 1.2;
}

.scholarship-teaser-caption {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-sub);
}

@media (min-width: 768px) {
  .scholarship-teaser-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .scholarship-teaser-stat {
    min-width: 200px;
  }
}

/* ── 소개 페이지: 자세한 내용. 자세히 보기 링크가 여기로 온다 ── */
.scholarship-section {
  scroll-margin-top: 88px;
}

.scholarship-body p {
  margin: 0 0 20px;
  max-width: 66ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-main);
}

.scholarship-body p:last-child {
  margin-bottom: 0;
}

.scholarship-subtitle {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-sea);
}

/* 릴레이 3단계: 모바일은 세로로 쌓이고 단계 사이에 ↓ 표시,
   768px부터는 가로로 이어지고 → 표시로 바뀐다. 가로 스크롤 없음(그리드 gap 안에서만 화살표 배치) */
.scholarship-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.scholarship-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.scholarship-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink-sea);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scholarship-step-text {
  margin: 0;
  padding-top: 4px;
  font-size: 0.96rem;
  color: var(--text-main);
}

.scholarship-step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 34px;
  bottom: -24px;
  font-size: 1.1rem;
  color: var(--ink-sea);
  font-weight: 800;
}

@media (min-width: 768px) {
  .scholarship-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
    row-gap: 0;
  }

  .scholarship-step {
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
  }

  .scholarship-step:not(:last-child)::after {
    content: "→";
    left: calc(100% + 24px);
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* 실제로 이어진 사례: 벗밭 → 오와린 농장 → 울퉁불퉁팩토리 순서가 이어지는 느낌으로 */
.scholarship-examples {
  margin: 40px 0;
}

.scholarship-examples-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scholarship-example {
  position: relative;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.scholarship-example strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
  color: var(--text-main);
}

.scholarship-example span {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.scholarship-example:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 18px;
  bottom: -22px;
  font-size: 1rem;
  color: var(--ink-sea);
  font-weight: 800;
}

@media (min-width: 768px) {
  .scholarship-examples-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 44px;
    row-gap: 0;
  }

  .scholarship-example:not(:last-child)::after {
    content: "→";
    left: calc(100% + 22px);
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* 장학금에 보태기: bank/account/holder가 모두 있을 때만 about.js가 내용을 채운다 */
.scholarship-donation {
  margin: 40px 0;
  padding: 24px 22px;
  background: var(--ink-sea-soft);
  border-radius: 14px;
}

.scholarship-donation-text {
  margin: 0 0 16px;
  font-size: 0.94rem;
  color: var(--text-main);
  max-width: 60ch;
}

.scholarship-donation-account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.scholarship-donation-account {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-sea);
}

.scholarship-copy-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-sea);
  background: transparent;
  color: var(--ink-sea);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.scholarship-copy-btn:hover {
  background: var(--ink-sea);
  color: #ffffff;
}

.scholarship-copy-msg {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-sea);
  min-height: 1em;
}

.scholarship-donation-receipt {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* 신청 안내: 다른 내용과 구분되도록 테두리 상자로 */
.scholarship-note {
  margin: 40px 0 0;
  padding: 22px 22px;
  background: var(--bg-warm);
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
}

.scholarship-note .scholarship-subtitle {
  margin-bottom: 10px;
}

.scholarship-note p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-main);
  max-width: 60ch;
}

.scholarship-instagram-link {
  margin: 32px 0 0;
}

/* 문의 폼 제출 성공 시 폼을 완전히 숨기기 위한 규칙.
   .contact-form이 display:flex를 쓰고 있어 기본 [hidden] 속성 규칙보다
   우선순위가 앞서 버린다(같은 명시도라 나중에 나오는 쪽이 이김) — 그래서 직접 덮어쓴다. */
.contact-form[hidden] {
  display: none;
}

/* === 아카이브 페이지: 연혁 카드 사진 (assets/js/archive.js에서 item.photo가 있을 때만
   history-item--with-photo 클래스를 붙인다) - 기존 규칙은 그대로 두고 이 아래에 덧붙인다 === */
.history-item--with-photo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-photo-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  flex-shrink: 0;
}

.history-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-item-body {
  min-width: 0;
}

@media (min-width: 768px) {
  .history-item--with-photo {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
  }

  .history-item--with-photo .history-photo-wrap {
    width: 33%;
    flex: 0 0 33%;
  }

  .history-item--with-photo .history-item-body {
    flex: 1 1 auto;
  }
}

/* ── 참여한 아이가 남긴 글(voice): 프로그램 상세의 '진행 사례' 다음, '문의하기'
   버튼 앞에 voice 데이터가 있는 프로그램에서만 나온다. 스펙 표·진행 사례와
   구분되도록 흰 카드 + 옅은 테두리 + 그림자로 감싼다. 인용문이 주인공이므로
   글자를 키우고 왼쪽에 굵은 선과 따옴표를 둬 인용임을 드러낸다. ── */
.voice-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 28px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.voice-photo-wrap {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.voice-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-text {
  min-width: 0;
}

.voice-quote {
  margin: 0 0 10px;
  padding-left: 18px;
  border-left: 3px solid var(--ink-sea);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-main);
  quotes: "\201C" "\201D";
}

.voice-quote::before {
  content: open-quote;
  color: var(--ink-sea);
  margin-right: 2px;
}

.voice-quote::after {
  content: close-quote;
  color: var(--ink-sea);
  margin-left: 2px;
}

.voice-quote-original {
  margin: 0 0 10px;
  padding-left: 21px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.voice-caption {
  display: block;
  padding-left: 21px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-sub);
}

@media (min-width: 768px) {
  .voice-block {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 24px;
  }

  .voice-photo-wrap {
    flex: 0 0 34%;
  }

  .voice-text {
    flex: 1;
  }
}

/* ── 장학금: 이렇게 쓰였습니다 (uses) — 관계형 나열(examples/steps)과 달리
   화살표로 잇지 않는 병렬 목록이다. 왼쪽 강조선 + 넉넉한 줄간격으로
   표처럼 딱딱해 보이지 않게 한다 ── */
.scholarship-uses {
  margin: 40px 0;
}

.scholarship-uses-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scholarship-use {
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--ink-sea-soft);
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-main);
}

.scholarship-use-who {
  color: var(--ink-sea);
  font-weight: 700;
}

@media (min-width: 768px) {
  .scholarship-uses-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 24px;
  }
}

/* ── 아주 좁은 화면(360px 미만) 대비 ──
   .btn은 글자가 줄바꿈되지 않도록 white-space: nowrap을 쓰는데,
   영문처럼 글자가 길면 화면 밖으로 삐져나가 가로 스크롤이 생긴다.
   폭이 아주 좁을 때만 줄바꿈을 허용해 화면 안에 담는다. */
@media (max-width: 359px) {
  .btn {
    white-space: normal;
    max-width: 100%;
  }
}

/* ── 장학금 받은 분들 57명 명단: 칩. 처음 24개만 보이고 나머지는 더보기로 펼친다.
   홈 '함께한 곳'(.org-chip)과 같은 결이지만, 칩이 많아 빽빽해 보이지 않도록
   글자를 조금 작게, 칩 사이 여백은 더 넉넉하게 잡았다.
   긴 이름(예: "자연그린 에코링")이 320px 화면에서도 칩 밖으로 넘치지 않도록
   word-break/overflow-wrap을 함께 걸어 가로 스크롤을 막는다. ── */
.scholarship-recipients {
  margin: 40px 0;
}

.scholarship-recipients-note {
  margin: -8px 0 16px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.scholarship-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.scholarship-chip {
  display: inline-block;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink-sea-soft);
  color: var(--ink-sea);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(31, 95, 99, 0.14);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.scholarship-chip-more-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-sea);
  background: transparent;
  color: var(--ink-sea);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.scholarship-chip-more-btn:hover {
  background: var(--ink-sea);
  color: #ffffff;
}
