@charset "utf-8";
/* ==========================================================================
   브릿지교회 내용관리(content) 스킨: theme/bec
   - 값은 css/tokens.css 의 변수만 사용
   - 모바일 우선. 브레이크포인트: 600px(sm) / 900px(md)
   ========================================================================== */

.page > * + * {
  margin-top: var(--space-section);
}

.page-section__title {
  margin-bottom: var(--space-5);
  color: var(--color-heading);
  font-size: var(--fs-xl);
  text-align: center;
}

.page-section__subtitle {
  margin: var(--space-7) 0 var(--space-5);
  color: var(--color-heading);
  font-size: var(--fs-lg);
  text-align: center;
}

/* 짧은 소개 글: 가운데, 한 줄 길이 제한 */
.page-lead {
  max-width: var(--measure);
  margin-inline: auto;
  color: var(--color-text);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.page-lead > p + p {
  margin-top: var(--space-3);
}

/* 관리자에서 입력한 일반 본문 */
.page-prose {
  max-width: var(--measure);
  line-height: var(--lh-base);
  overflow-wrap: anywhere;
}

.page-prose img,
.page-prose iframe,
.page-prose video {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   소개영상
   -------------------------------------------------------------------------- */
.page-video {
  max-width: 960px;
  margin: var(--space-6) auto 0;
}

.page-video .embed {
  box-shadow: var(--shadow-md);
}

.page-video__more {
  margin-top: var(--space-3);
  text-align: center;
}

.page-video__more a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  font-weight: var(--fw-bold);
}

.page-video__more .fa {
  color: #c4302b; /* 유튜브 아이콘 색: 장식용 */
}

/* --------------------------------------------------------------------------
   교회 비전: 4대 가치
   -------------------------------------------------------------------------- */
.value-list,
.direction-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-top: 4px solid var(--color-navy-700);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.value-card__num {
  color: var(--color-accent);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.value-card__text {
  color: var(--color-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  word-break: keep-all;
}

/* --------------------------------------------------------------------------
   교회 비전: 목회 방향
   -------------------------------------------------------------------------- */
.motto {
  margin: 0;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem) var(--gutter);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-navy-700), var(--color-navy-900));
  color: var(--color-white);
  text-align: center;
}

.motto__quote {
  margin: 0;
}

.motto__quote p {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  word-break: keep-all;
}

.motto__quote p::before { content: "\201C"; }
.motto__quote p::after { content: "\201D"; }

.motto__basis {
  max-width: var(--measure);
  margin: var(--space-5) auto 0;
  color: #dbe3ef; /* 네이비 배경 대비 약 11:1 */
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  word-break: keep-all;
}

.motto__basis strong {
  color: var(--color-white);
}

.direction-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}

.direction-card__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-blue-100);
  color: var(--color-accent);
  font-size: 1.5rem;
}

.direction-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  word-break: keep-all;
}

.direction-card__lead {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.direction-card__keyword {
  color: var(--color-heading);
  font-size: var(--fs-lg);
}

/* --------------------------------------------------------------------------
   예배안내
   -------------------------------------------------------------------------- */
.page-verse {
  margin: 0 auto var(--space-7);
  max-width: var(--measure);
  text-align: center;
}

.page-verse blockquote {
  margin: 0;
}

.page-verse p {
  color: var(--color-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  word-break: keep-all;
}

.page-verse figcaption {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.worship-accordion {
  display: grid;
  gap: var(--space-3);
  max-width: 880px;
  margin: var(--space-6) auto 0;
}

.worship-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.worship-item[open] {
  border-color: var(--color-navy-700);
}

/* 요약 줄: 아이콘 | 이름(+대상) | 시간 | 화살표
   좁은 화면에서는 시간이 이름 아래로 내려간다 */
.worship-item__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon head chevron"
    "icon when chevron";
  align-items: center;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  min-height: var(--touch-min);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  list-style: none;
}

.worship-item__summary::-webkit-details-marker {
  display: none;
}

.worship-item__summary:hover {
  background: var(--color-surface-alt);
}

.worship-item__summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

@media (min-width: 600px) {
  .worship-item__summary {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "icon head when chevron";
  }
}

.worship-item__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-blue-100);
  color: var(--color-accent);
  font-size: 1.25rem;
}

.worship-item__head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
}

.worship-item__title {
  color: var(--color-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.worship-item__audience {
  padding: 0.125rem var(--space-2);
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-gray-700);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.worship-item__when {
  grid-area: when;
  color: var(--color-accent);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

.worship-item__chevron {
  grid-area: chevron;
  color: var(--color-gray-500);
  transition: transform var(--transition);
}

.worship-item[open] .worship-item__chevron {
  transform: rotate(180deg);
}

.worship-item__body {
  padding: 0 var(--space-5) var(--space-5);
  line-height: var(--lh-base);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.worship-item__body > * + * {
  margin-top: var(--space-3);
}

.worship-services {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.worship-services__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
}

/* 넓은 화면: 이름 | 시간을 한 줄에, 설명은 그 아래 줄 전체 폭
   (설명이 없는 분류의 안내 문단과 같은 왼쪽 선에서 시작하도록) */
@media (min-width: 600px) {
  .worship-services__row {
    grid-template-columns: 9rem minmax(0, 1fr);
    column-gap: var(--space-4);
  }

  .worship-services__desc {
    grid-column: 1 / -1;
  }
}

.worship-services__name {
  color: var(--color-heading);
  font-weight: var(--fw-bold);
}

.worship-services dd {
  margin: 0;
}

.worship-services__time {
  font-weight: var(--fw-medium);
}

/* 예배 설명: 이름·시간보다 한 단계 안쪽으로 들여 쓰고 왼쪽 선으로 묶는다.
   설명 줄이 없는 분류의 안내 문단(.worship-item__text)도 같은 모양으로 맞춘다. */
.worship-services__desc,
.worship-item__text {
  margin-left: var(--space-2);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-gray-200);
}

.worship-services__desc {
  color: var(--color-text-muted);
}

.worship-item__note {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  font-size: var(--fs-sm);
}

.worship-item__note .fa {
  color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .worship-item__chevron { transition: none; }
}

.worship-place__box {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  max-width: 880px;
  margin-inline: auto;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  text-align: center;
}

.worship-place__address {
  color: var(--color-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  overflow-wrap: anywhere;
}

.worship-place__address .fa {
  color: var(--color-accent);
}

.worship-place__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   섬기는 이
   -------------------------------------------------------------------------- */
.staff-list {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* 모바일: 사진 위 · 글 아래 / 600px 이상: 사진 왼쪽 · 글 오른쪽 */
.staff-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 600px) {
  .staff-card {
    grid-template-columns: 9rem minmax(0, 1fr);
    justify-items: stretch;
    align-items: start;
  }
}

.staff-card__photo {
  width: 9rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-navy-100);
}

.staff-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* 세로 사진에서 얼굴이 잘리지 않도록 위쪽 기준 */
}

.staff-card__photo.is-empty {
  display: grid;
  place-items: center;
  color: var(--color-navy-600);
  font-size: 3.5rem;
}

.staff-card__info {
  min-width: 0;
  width: 100%;
}

.staff-card__name {
  color: var(--color-heading);
  font-size: var(--fs-xl);
}

.staff-card__role {
  margin-top: var(--space-1);
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

.staff-card__label {
  margin: var(--space-4) 0 var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.staff-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.staff-card__list li {
  position: relative;
  padding-left: var(--space-4);
}

.staff-card__list li + li {
  margin-top: var(--space-1);
}

.staff-card__list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: var(--space-1);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* 목사님 부부 이야기: 사진이 있으면 900px 이상에서 사진 왼쪽 · 글 오른쪽 */
.story {
  display: grid;
  gap: var(--space-6);
  max-width: 1040px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .story.has-photo {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
  }
}

.story__photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.story__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.story__text {
  max-width: var(--measure);
  margin-inline: auto;
  line-height: var(--lh-base);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.story__text p + p {
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   오시는 길
   -------------------------------------------------------------------------- */
/* 주소 · 길찾기 · 전화: 모바일 세로 쌓기 → 900px 이상 3칸 */
.location-card {
  display: grid;
  gap: var(--space-5);
  max-width: 1040px;
  margin-inline: auto;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-navy-700);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
  .location-card {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-6);
  }

  .location-card > * + * {
    padding-left: var(--space-6);
    border-left: 1px solid var(--color-border);
  }
}

.location-card__label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.location-card__label .fa {
  color: var(--color-accent);
}

.location-card__value {
  color: var(--color-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  overflow-wrap: anywhere;
}

.location-card__value a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
}

.location-card__copy {
  margin-top: var(--space-3);
}

.location-card__copy[hidden] {
  display: none;
}

.location-card__status {
  min-height: 1.5em;
  margin-top: var(--space-1);
  color: var(--color-accent);
  font-size: var(--fs-sm);
}

.location-card__apps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-card__apps .button {
  padding-inline: var(--space-4);
}

/* 모바일에서는 지도를 조금 더 세로로 길게(4:3), 600px 이상은 16:9 */
.location-map {
  max-width: 1040px;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

@media (min-width: 600px) {
  .location-map { aspect-ratio: 16 / 9; }
}

.location-guide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.location-guide__item {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  line-height: var(--lh-base);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.location-guide__title {
  margin-bottom: var(--space-3);
  color: var(--color-heading);
  font-size: var(--fs-lg);
}

.location-guide__title .fa {
  color: var(--color-accent);
}

.location-guide__item p + p {
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   스토리 학교 (커리큘럼 · 디렉터)
   - 상단 배너(.story-banner)는 head.php 가 출력하므로 css/layout.css 에 있다.
   -------------------------------------------------------------------------- */

/* 섹션 배경 그림 (curriculum-1~3): 그림 위에 밝은 막을 덮어 글자 대비를 지킨다
   - 막 72% + 카드·표 흰색 72%: 그림이 카드 뒤로도 은은하게 비치면서,
     가장 어두운 그림 위에서도 글자 바탕이 충분히 밝게 유지되는 값 */
.page-section.has-bg {
  --card-glass: rgba(255, 255, 255, 0.72);
  --card-glass-alt: rgba(245, 246, 248, 0.72);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(1rem, 0.5rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(250, 248, 244, 0.72), rgba(250, 248, 244, 0.72)),
    var(--section-bg) center / cover no-repeat;
}

/* 배경 있는 섹션 안의 카드·표: 반투명 + 살짝 흐림(뒤 그림의 선이 글자와 겹쳐 보이지 않도록) */
.has-bg .story-aim,
.has-bg .story-design__item,
.has-bg .curation-table tr {
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.has-bg .story-aim,
.has-bg .curation-table tr {
  border-color: rgba(221, 225, 231, 0.7);
}

/* 600px 이상(일반 표): 행 대신 칸마다 반투명 배경, 줄무늬 유지 */
@media (min-width: 600px) {
  .has-bg .curation-table tr {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .has-bg .curation-table thead th,
  .has-bg .curation-table tbody tr:nth-child(even) th,
  .has-bg .curation-table tbody tr:nth-child(even) td {
    background: var(--card-glass-alt);
  }

  .has-bg .curation-table tbody th,
  .has-bg .curation-table tbody td {
    background: var(--card-glass);
  }

  .has-bg .curation-table thead th,
  .has-bg .curation-table tbody th,
  .has-bg .curation-table tbody td {
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
}

/* 지향하는 방향: 번호 + 영문 제목 + 설명 (모바일 1열 → 600px 이상 2열) */
.story-aims,
.story-design {
  max-width: 1040px;
  margin: var(--space-6) auto 0;
  padding: 0;
  list-style: none;
}

.story-aim {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  line-height: var(--lh-base);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.story-aim__num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fdf2f6;
  color: #a3366a; /* 연분홍 배경 대비 약 6:1 */
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.story-aim__title {
  color: var(--color-heading);
  font-size: var(--fs-lg);
}

.story-aim__text {
  margin-top: var(--space-1);
}

/* 교육 설계: 모바일 1열 → 600px 2열 → 900px 3열 */
.story-design__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-top: 4px solid #a3366a;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  line-height: var(--lh-base);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.story-design__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.story-design__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-blue-100);
  color: var(--color-accent);
}

.story-design__key {
  color: var(--color-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
}

.story-design__label {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.story-design__quote {
  color: #a3366a;
  font-size: var(--fs-base);
  line-height: var(--lh-tight);
}

/* 큐레이션 표
   - 600px 미만: 행마다 카드(분류 + 테마 배지 / 지향점), 가로 스크롤 없음
   - 600px 이상: 일반 3열 표 */
.curation-table {
  width: 100%;
  max-width: 1040px;
  margin: var(--space-6) auto 0;
  border-collapse: collapse;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.curation-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.curation-table tbody {
  display: grid;
  gap: var(--space-3);
}

.curation-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-left: 4px solid #a3366a;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.curation-table th,
.curation-table td {
  padding: 0;
  border: 0;
  text-align: left;
}

.curation-table__key {
  color: var(--color-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.curation-table__theme {
  align-self: center;
  padding: 0.125rem var(--space-2) !important;
  border-radius: 999px;
  background: #fdf2f6;
  color: #a3366a;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.curation-table__aim {
  grid-column: 1 / -1;
  line-height: var(--lh-base);
}

@media (min-width: 600px) {
  .curation-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .curation-table tbody { display: table-row-group; }
  .curation-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }

  .curation-table thead th {
    padding: var(--space-3) var(--space-4);
    border-top: 2px solid var(--color-navy-700);
    border-bottom: 1px solid var(--color-gray-300);
    background: var(--color-surface-alt);
    color: var(--color-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
  }

  .curation-table tbody th,
  .curation-table tbody td {
    padding: var(--space-3) var(--space-4) !important;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    vertical-align: middle;
  }

  .curation-table__key {
    width: 11rem;
    font-size: var(--fs-base);
  }

  .curation-table__theme {
    width: 11rem;
    border-radius: 0;
    background: var(--color-surface);
    white-space: normal;
  }

  .curation-table tbody tr:nth-child(even) th,
  .curation-table tbody tr:nth-child(even) td {
    background: var(--color-surface-alt);
  }
}

/* 운영 안내 */
.story-info {
  display: grid;
  max-width: 640px;
  margin: 0 auto;
  border-top: 2px solid var(--color-navy-700);
}

.story-info__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.story-info dt {
  color: var(--color-text-muted);
  font-weight: var(--fw-bold);
}

.story-info dd {
  margin: 0;
  color: var(--color-heading);
  font-weight: var(--fw-bold);
  overflow-wrap: anywhere;
}

.story-info dd a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  margin-left: var(--space-2);
}

/* 문의·신청: 담당자·전화 + 등록 양식 버튼 (좁으면 버튼이 아래 줄로) */
.story-info__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.story-info dd a.story-info__form {
  margin-left: 0;
  color: var(--color-on-primary);
}

.story-more {
  margin-top: var(--space-5);
  text-align: center;
}

.story-more a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--touch-min);
  font-weight: var(--fw-bold);
}

/* 디렉터 인사말: 편지 */
.letter {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.letter p + p {
  margin-top: var(--space-4);
}

/* 인사말 속 등록 버튼: 편지 흐름 안에서 가운데 */
.letter__action {
  text-align: center;
}

.letter__action .button {
  color: var(--color-on-primary);
  text-decoration: none;
}

.letter__sign {
  color: var(--color-heading);
  font-weight: var(--fw-bold);
  text-align: right;
}

.director-card {
  max-width: 760px;
  margin-inline: auto;
}

.direction-closing {
  margin-top: var(--space-6);
  color: var(--color-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  text-align: center;
}

/* --------------------------------------------------------------------------
   새가족 안내
   -------------------------------------------------------------------------- */
.welcome .page-lead strong {
  color: var(--color-heading);
  font-size: var(--fs-lg);
}

/* 등록 절차: 모바일 1열 → 600px 2열 → 900px 4열 (layout.css .grid--4) */
.newfamily-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.newfamily-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4) var(--space-5);
  border-top: 4px solid var(--color-navy-700);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.newfamily-step__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-1);
  border-radius: 50%;
  background: var(--color-blue-100);
  color: var(--color-accent);
  font-size: 1.5rem;
}

.newfamily-step__num {
  color: var(--color-accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newfamily-step__title {
  color: var(--color-heading);
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
}

.newfamily-step__text {
  line-height: var(--lh-base);
}

/* 문의: 네이비 상자 안 가운데 정렬 */
.newfamily-contact {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem) var(--gutter);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-navy-700), var(--color-navy-900));
  color: var(--color-white);
  text-align: center;
  word-break: keep-all;
}

.newfamily-contact__title {
  color: var(--color-white);
  font-size: var(--fs-xl);
}

.newfamily-contact__text {
  margin-top: var(--space-3);
  color: #dbe3ef; /* 네이비 배경 대비 약 11:1 */
  line-height: var(--lh-base);
}

.newfamily-contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

/* 네이비 배경 위 버튼: 흰 바탕 + 네이비 글자 / 외곽선형은 흰 선 */
.newfamily-contact .button {
  background: var(--color-white);
  color: var(--color-navy-900);
}

.newfamily-contact .button:hover {
  background: var(--color-blue-100);
}

.newfamily-contact .button--outline {
  border-color: var(--color-white);
  background: transparent;
  color: var(--color-white);
}

.newfamily-contact .button--outline:hover {
  background: var(--color-white);
  color: var(--color-navy-900);
}

.newfamily-contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-5);
  margin-top: var(--space-4);
}

.newfamily-contact__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--touch-min);
  color: var(--color-white);
  font-weight: var(--fw-bold);
}

/* --------------------------------------------------------------------------
   헌금 안내
   -------------------------------------------------------------------------- */
.offering-tel {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

/* 방법 바로가기: 모바일 2×2 → 600px 이상 한 줄 */
.offering-jump ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  max-width: 760px;
  margin: var(--space-6) auto 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .offering-jump ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.offering-jump a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  height: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-heading);
  font-weight: var(--fw-bold);
  text-align: center;
  text-decoration: none;
  word-break: keep-all;
}

.offering-jump a:hover {
  border-color: var(--color-navy-700);
  text-decoration: none;
}

.offering-jump .fa {
  color: var(--color-accent);
}

.offering-list {
  display: grid;
  gap: var(--space-5);
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.offering-card {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-navy-700);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  line-height: var(--lh-base);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.offering-card > * + * {
  margin-top: var(--space-4);
}

.offering-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  color: var(--color-heading);
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
}

.offering-card__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-navy-700);
  color: var(--color-white);
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
}

.offering-card__sub {
  color: var(--color-text-muted);
  font-size: var(--fs-base);
}

/* 덧붙임 안내(“은행마다 다를 수 있습니다” 등) */
.offering-note {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.offering-note::before {
  content: "※ ";
}

.offering-steps {
  display: grid;
  gap: var(--space-2);
  padding-left: 1.5em;
}

.offering-steps li::marker {
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

/* 입력 정보: 모바일은 이름 위·값 아래 → 600px 이상 두 칸 */
.offering-data {
  margin: var(--space-4) 0 0;
  border-top: 2px solid var(--color-navy-700);
}

.offering-data__row {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 600px) {
  .offering-data__row {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
  }
}

.offering-data dt {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.offering-data dd {
  margin: 0;
  color: var(--color-heading);
  font-weight: var(--fw-bold);
}

.offering-data .offering-note {
  font-weight: var(--fw-regular, 400);
}

/* 값 + 복사 버튼 (좁으면 버튼이 아래 줄로) */
.offering-data__value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.offering-data__num {
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.offering-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--touch-min);
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  cursor: pointer;
}

.offering-copy:hover {
  border-color: var(--color-primary);
}

.offering-copy[hidden] {
  display: none;
}

/* 복사 결과 알림: 화면 아래 가운데에 잠깐 표시 (비어 있으면 보이지 않음) */
.offering-status {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-width: min(90vw, 28rem);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--color-navy-900);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  text-align: center;
  transform: translateX(-50%);
  box-shadow: var(--shadow-md);
}

/* display:none 이면 화면낭독기가 알림을 놓칠 수 있어 투명하게만 숨긴다 */
.offering-status:empty {
  opacity: 0;
  pointer-events: none;
}

/* QR 코드가 있으면 900px 이상에서 입력 정보 오른쪽에 */
@media (min-width: 900px) {
  .offering-zelle.has-qr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: var(--space-6);
    align-items: start;
  }
}

.offering-qr {
  margin: var(--space-4) auto 0;
  max-width: 200px;
  text-align: center;
}

.offering-qr img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.offering-qr figcaption {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.offering-address {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-navy-700);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-gray-100);
  color: var(--color-heading);
  font-style: normal;
  font-weight: var(--fw-bold);
  line-height: var(--lh-base);
}

/* 네이비 배경에서도 포커스 표시가 보이도록 흰 테두리 */
.newfamily-contact a:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
}
