/* 교회안내 및 공통 서브페이지 */
/* 교회안내 통합 페이지의 목차와 본문 배치를 구성한다. */
.about-page {
  --anchor-offset: 184px;
  scroll-padding-top: var(--anchor-offset)
}

.about-wrap {
  width: min(1200px, 90%);
  margin: auto
}

.about-hero {
  padding: 44px 0 38px
}

.breadcrumb {
  font-size: 14.4px;
  color: var(--muted);
  margin-bottom: 26px
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center
}

.about-intro h1 {
  font-size: clamp(34.2px, 3.6vw, 52.2px);
  margin-bottom: 20px
}

.about-intro p:last-child {
  font-size: 18px;
  color: var(--muted)
}

.about-intro img {
  height: 310px;
  border-radius: 60px 8px 8px 8px;
  object-position: center 38%
}

.about-toc {
  position: sticky;
  top: 98px;
  z-index: 15;
  background: var(--paper);
  border-block: 1px solid var(--line)
}

.about-toc>div {
  display: grid;
  grid-template-columns: repeat(6, 1fr)
}

.about-toc a {
  padding: 17px 8px;
  text-align: center;
  font-size: 16.2px;
  border-bottom: 3px solid transparent
}

.about-toc a[aria-current] {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
  background: var(--surface)
}

.about-section {
  padding: 65px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px
}

.about-section h2 {
  font-size: 28.8px
}

.about-section h3 {
  font-size: 22.5px;
  font-weight: 500;
  margin-bottom: 18px
}

.about-section p {
  max-width: 760px
}

.about-section .eyebrow {
  margin-bottom: 12px
}

.about-lead {
  font-size: 23.4px;
  line-height: 1.6;
  color: var(--brand)
}

.about-note {
  font-size: 13.5px;
  color: var(--muted)
}

.about-verse {
  background: var(--dark);
  color: white;
  padding: 36px;
  border-radius: 8px
}

.about-verse h3 {
  font-size: 30.6px;
  line-height: 1.5
}

.about-verse p:last-child {
  margin-bottom: 0;
  color: #dce8cc
}

.pastor-card {
  padding: 30px;
  background: var(--surface);
  border-left: 3px solid var(--brand)
}

.pastor-card p:last-child {
  margin-bottom: 0
}

.about-history {
  list-style: none;
  padding: 0;
  margin: 0
}

.about-history li {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line)
}

.about-history time {
  font-weight: 700;
  color: var(--brand)
}

.about-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.about-times>div {
  padding: 24px;
  background: var(--surface);
  border-radius: 6px
}

.about-times strong {
  display: block;
  font-size: 28.8px;
  color: var(--brand)
}

.about-times span {
  font-size: 16.2px
}

.about-section address {
  font-style: normal;
  font-size: 19.8px;
  line-height: 1.8;
  margin-bottom: 24px
}

.about-end {
  padding: 36px 0;
  text-align: right
}

.content-end {
  padding: 20px 0 0;
  text-align: right
}

/**
.about-page .desktop-nav [aria-current] {
  color:var(--brand);
  text-decoration:underline;
  text-underline-offset:8px;
}
**/
.desktop-nav [aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 8px;
}

@media(max-width:1000px) {
  .about-toc {
    top: 80px
  }

  .about-section {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px
  }

  .about-times>div {
    padding: 16px
  }

  .about-times strong {
    font-size: 24.3px
  }

  .about-intro {
    gap: 28px
  }
}

@media(max-width:650px) {
  .about-page {
    --anchor-offset: 194px
  }

  .about-hero {
    padding: 24px 0
  }

  .breadcrumb {
    margin-bottom: 20px
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 18px
  }

  .about-intro h1 {
    font-size: 34.2px;
    letter-spacing: -1.5px
  }

  .about-intro p:last-child {
    font-size: 16.2px
  }

  .about-intro img {
    height: 210px;
    border-radius: 36px 6px 6px 6px
  }

  .about-toc {
    top: 73px
  }

  .about-toc>div {
    grid-template-columns: repeat(3, 1fr)
  }

  .about-toc a {
    font-size: 14.4px;
    padding: 10px 3px;
    min-height: 49px
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0
  }

  .about-section h2 {
    font-size: 25.2px
  }

  .about-lead {
    font-size: 20.7px
  }

  .about-verse {
    padding: 24px
  }

  .about-verse h3 {
    font-size: 25.2px
  }

  .about-times {
    grid-template-columns: 1fr;
    gap: 8px
  }

  .about-times>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px
  }

  .about-history li {
    grid-template-columns: 90px 1fr;
    gap: 14px
  }

  .pastor-card {
    padding: 22px
  }

  .about-section address {
    font-size: 17.1px
  }
}

/* 연혁 전체 기록은 페이지 이동 없이 펼쳐 읽는다. */
.history-expand {
  margin-top: 24px
}

.history-expand summary {
  cursor: pointer;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16.2px
}

.history-expand>p {
  margin-top: 20px
}

.history-close-label {
  display: none
}

.history-expand[open] .history-open-label {
  display: none
}

.history-expand[open] .history-close-label {
  display: inline
}

.history-expand .about-history span {
  overflow-wrap: anywhere
}

/* 기존 교회 소개의 교역자 사진과 연락처를 카드로 배치한다. */
.pastor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px
}

.staff-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden
}

.staff-card>img {
  height: 260px;
  object-fit: contain;
  background: #e6e9e1;
  padding-top: 16px
}

.staff-card>div {
  padding: 24px
}

.staff-card h3 {
  font-size: 21.6px
}

.staff-card a {
  display: block;
  font-size: 15.3px;
  min-height: 44px;
  overflow-wrap: anywhere;
  word-break: normal
}

.staff-card .eyebrow {
  letter-spacing: 1px
}

@media(max-width:800px) {
  .pastor-grid {
    grid-template-columns: 1fr
  }
}

/* 지도와 교회·주차장 주소, 차량 안내를 읽기 쉬운 카드로 구성한다. */
.directions-content {
  min-width: 0
}

.church-map {
  display: block;
  width: 100%;
  height: 390px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface)
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 24px
}

.location-box {
  padding: 26px;
  background: var(--surface);
  border-radius: 8px
}

.location-box h3 {
  margin-bottom: 16px
}

.location-box address {
  font-size: 17.1px
}

.location-box address small {
  font-size: 15.3px
}

.location-box p:last-child {
  margin-bottom: 0
}

.location-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px
}

.location-contact p {
  font-size: 14.4px;
  color: var(--muted);
  margin: 4px 0 0
}

@media(max-width:650px) {
  .location-grid {
    grid-template-columns: 1fr
  }

  .location-contact {
    align-items: start;
    flex-direction: column
  }

  .location-box {
    padding: 22px
  }

  .church-map {
    height: 390px
  }
}

.church-map {
  height: 440px
}

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

.route-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px
}

.route-grid h4 {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 18.9px;
  display: flex;
  justify-content: space-between
}

.route-grid h4 span {
  font-size: 16.2px;
  font-weight: 400
}

.route-grid p {
  margin: 12px 0
}

.route-grid small {
  color: var(--muted);
  font-size: 14.4px
}

@media(max-width:650px) {
  .route-grid {
    grid-template-columns: 1fr
  }
}

/* 교회소개 사진과 환영 문구를 녹색 배너로 표시한다. */
.intro-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 56px 8px 8px 8px;
  min-height: 340px;
  background: var(--dark)
}

.intro-banner>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  z-index: -2
}

.intro-banner:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 51, 37, .97) 0%, rgba(19, 51, 37, .86) 35%, rgba(19, 51, 37, .2) 100%);
  z-index: -1
}

.intro-banner-copy {
  padding: 42px 48px;
  color: white
}

.intro-banner-copy .eyebrow {
  color: #dce8cc
}

.intro-banner h1 {
  font-size: clamp(34.2px, 3.6vw, 48.6px);
  letter-spacing: -2px;
  margin: 0 0 18px
}

.intro-banner-lead {
  font-size: 21.6px;
  line-height: 1.65;
  margin: 0 0 20px
}

.intro-banner-sub {
  font-size: 14.4px;
  color: #e1e9db;
  margin: 0
}

@media(max-width:650px) {
  .intro-banner {
    border-radius: 32px 6px 6px 6px;
    min-height: 320px
  }

  .intro-banner-copy {
    padding: 32px 24px
  }

  .intro-banner-lead {
    font-size: 18.9px
  }

  .intro-banner-sub {
    font-size: 13.5px
  }

  .intro-banner:after {
    background: rgba(19, 51, 37, .82)
  }
}

/* 말씀과 자료 */
/* 말씀과 자료 페이지의 설교 카드와 자료 목록을 배치한다. */
.resources-page .about-toc>div {
  grid-template-columns: repeat(3, 1fr)
}

.resource-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line)
}

.resource-section .section-head {
  margin-bottom: 24px
}

.resource-section .sermon-card h3 {
  font-size: 24.3px
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line)
}

.resource-list a {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  min-height: 90px
}

.resource-list time {
  font-size: 14.4px;
  color: var(--muted)
}

.resource-list strong {
  font-size: 18px;
  font-weight: 500
}

.resource-list span {
  font-size: 14.4px;
  color: var(--brand)
}

.resource-list a:hover strong {
  text-decoration: underline;
  text-underline-offset: 5px
}

.resource-notice {
  font-size: 13.5px;
  color: var(--muted);
  margin: 28px 0
}

.resources-page .desktop-nav [aria-current] {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 8px
}

@media(max-width:700px) {
  .resource-section {
    padding: 40px 0
  }

  .resource-list a {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 20px 0
  }

  .resource-list time {
    grid-column: 1/-1;
    font-size: 13.5px
  }

  .resource-list strong {
    font-size: 16.2px
  }

  .resources-page {
    --anchor-offset: 145px
  }

  .resource-section .section-head>.text-link {
    margin: 0
  }
}

/* 예배당 사진 위에 녹색 음영을 얹어 상단 문구의 가독성을 확보한다. */
.resource-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 56px 8px 8px 8px;
  min-height: 340px;
  background: var(--dark)
}

.resource-banner>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  z-index: -2
}

.resource-banner:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 51, 37, .97) 0%, rgba(19, 51, 37, .86) 35%, rgba(19, 51, 37, .2) 100%);
  z-index: -1
}

.resource-banner-copy {
  padding: 42px 48px;
  color: white
}

.resource-banner-copy .eyebrow {
  color: #dce8cc
}

.resource-banner h1 {
  font-size: clamp(34.2px, 3.6vw, 48.6px);
  letter-spacing: -2px;
  margin: 0 0 18px
}

.resource-banner-lead {
  font-size: 21.6px;
  line-height: 1.65;
  margin: 0 0 20px
}

.resource-banner-sub {
  font-size: 14.4px;
  color: #e1e9db;
  margin: 0
}

@media(max-width:650px) {
  .resource-banner {
    border-radius: 32px 6px 6px 6px;
    min-height: 320px
  }

  .resource-banner-copy {
    padding: 32px 24px
  }

  .resource-banner-lead {
    font-size: 18.9px
  }

  .resource-banner-sub {
    font-size: 13.5px
  }

  .resource-banner:after {
    background: rgba(19, 51, 37, .82)
  }
}

/* 다음세대 및 사역 */
/* 다음세대 부서와 교회 사역의 사진 카드 및 안내를 구성한다. */
.ministry-page .about-toc>div {
  grid-template-columns: repeat(3, 1fr)
}

.ministry-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line)
}

.ministry-section>.section-head {
  margin-bottom: 28px
}

.ministry-section>.section-head p:last-child {
  margin: 12px 0 0;
  color: var(--muted)
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start
}

.department-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff
}

.department-card>img {
  height: 200px;
  object-fit: cover
}

.department-body {
  padding: 24px
}

.department-body h3 {
  font-size: 24.3px;
  font-weight: 500;
  margin-bottom: 18px
}

.department-time {
  font-size: 17.1px;
  color: var(--brand);
  line-height: 1.8;
  min-height: 68px
}

.department-card details {
  border-top: 1px solid var(--line);
  margin-top: 20px
}

.department-card summary {
  cursor: pointer;
  padding: 15px 0;
  font-size: 15.3px
}

.department-card dl {
  margin: 0
}

.department-card dt {
  font-size: 14.4px;
  color: var(--brand);
  font-weight: 600;
  margin: 14px 0 6px
}

.department-card dd {
  font-size: 15.3px;
  margin: 0;
  line-height: 1.85
}

.source-note {
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  font-size: 14.4px;
  line-height: 1.8;
  margin: 28px 0
}

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

.service-panel {
  padding: 26px;
  background: var(--surface);
  border-radius: 8px
}

.service-panel h3 {
  font-size: 22.5px;
  font-weight: 500;
  margin-bottom: 12px
}

.service-panel>p {
  font-size: 16.2px;
  min-height: 64px
}

.service-panel details {
  border-top: 1px solid var(--line)
}

.service-panel summary {
  padding: 14px 0;
  cursor: pointer;
  font-size: 15.3px
}

.service-panel details p {
  font-size: 14.4px;
  line-height: 1.9;
  white-space: pre-line
}

.ministry-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  background: var(--dark);
  color: white;
  border-radius: 10px
}

.ministry-contact h2 {
  font-size: 27px;
  margin-bottom: 12px
}

.ministry-contact p {
  margin: 0;
  color: #e1e9db
}

.ministry-contact .button {
  background: var(--paper);
  color: var(--dark);
  white-space: nowrap
}

@media(max-width:1000px) {

  .department-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ministry-contact {
    flex-direction: column;
    align-items: start
  }
}

@media(max-width:650px) {
  .ministry-page {
    --anchor-offset: 145px
  }

  .department-grid,
  .service-grid {
    grid-template-columns: 1fr
  }

  .ministry-section {
    padding: 36px 0
  }

  .department-card>img {
    height: 210px
  }

  .department-time,
  .service-panel>p {
    min-height: 0
  }

  .ministry-contact {
    padding: 24px
  }

  .ministry-contact h2 {
    font-size: 24.3px
  }

  .ministry-page .intro-banner h1 {
    font-size: 32.4px
  }

  .source-note {
    padding: 16px;
    font-size: 13.5px
  }
}

/* 문화센터 */
/* 문화센터 강좌의 대상·일정·수강료와 신청 안내를 구성한다. */
.culture-page .about-toc>div {
  grid-template-columns: repeat(3, 1fr)
}

.culture-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line)
}

.culture-section .section-head p:last-child {
  color: var(--muted);
  margin: 12px 0 0
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start
}

.course-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden
}

.course-card>img {
  height: 190px;
  object-fit: cover
}

.course-body {
  padding: 24px
}

.course-body h3 {
  font-size: 22.5px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 12px
}

.course-description {
  font-size: 15.3px;
  color: var(--muted);
  min-height: 90px
}

.course-body dl {
  margin: 20px 0
}

.course-body dl>div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.3px
}

.course-body dt {
  color: var(--muted)
}

.course-body dd {
  margin: 0
}

.course-body dl>div:last-child dd {
  color: var(--brand);
  font-weight: 700
}

.course-topics {
  font-size: 13.5px;
  color: var(--brand);
  min-height: 52px
}

.course-body .button {
  width: 100%;
  justify-content: center;
  background: var(--surface);
  color: var(--brand);
  font-size: 15.3px
}

.culture-note {
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--brand);
  font-size: 15.3px;
  margin: 28px 0
}

.application-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: steps;
  padding: 0
}

.application-steps li {
  padding: 26px;
  background: var(--surface);
  border-radius: 8px;
  counter-increment: steps
}

.application-steps li:before {
  content: '0' counter(steps);
  display: block;
  color: var(--brand);
  font-size: 23.4px;
  margin-bottom: 15px
}

.application-steps h3 {
  font-size: 20.7px;
  font-weight: 500;
  margin-bottom: 10px
}

.application-steps p {
  font-size: 15.3px;
  margin-bottom: 0
}

.culture-contact {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 28px
}

.culture-contact h3 {
  font-size: 22.5px
}

.culture-contact p {
  font-size: 15.3px
}

.culture-contact .actions {
  margin-top: 22px
}

@media(max-width:1000px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .application-steps {
    grid-template-columns: 1fr
  }
}

@media(max-width:650px) {
  .culture-page {
    --anchor-offset: 165px
  }

  .culture-page .about-toc a {
    font-size: 13.5px
  }

  .course-grid {
    grid-template-columns: 1fr
  }

  .course-description,
  .course-topics {
    min-height: 0
  }

  .culture-section {
    padding: 36px 0
  }

  .course-card>img {
    height: 210px
  }

  .culture-note {
    padding: 18px;
    font-size: 14.4px
  }

  .culture-contact {
    padding: 22px
  }

  .culture-contact .button {
    font-size: 14.4px
  }
}

/* 전도 및 선교 */
/* 전도 캠프와 선교지 기도제목을 읽기 쉬운 카드로 배치한다. */
.mission-page .about-toc>div {
  grid-template-columns: repeat(3, 1fr)
}

.mission-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line)
}

.mission-section .section-head p:last-child {
  color: var(--muted);
  margin: 12px 0 0
}

.mission-note {
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--brand);
  margin: 28px 0;
  font-size: 15.3px
}

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

.mission-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white
}

.mission-card>img {
  height: 260px;
  object-fit: cover
}

.mission-body {
  padding: 28px
}

.mission-body h3 {
  font-size: 24.3px;
  margin: 0 0 16px
}

.mission-body h4 {
  font-size: 17.1px;
  color: var(--brand);
  margin: 24px 0 10px
}

.mission-body p,
.mission-body li {
  font-size: 16.2px
}

.mission-body .eyebrow {
  font-size: 13.5px;
  letter-spacing: 0
}

.mission-body ul {
  padding-left: 22px;
  margin-bottom: 0
}

.mission-body li+li {
  margin-top: 8px
}

.mission-body dl>div {
  display: grid;
  grid-template-columns: 85px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--line)
}

.mission-body dt {
  color: var(--muted)
}

.mission-body dd {
  margin: 0
}

.private-mission {
  height: 260px;
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px
}

.private-mission strong {
  font-size: 24.3px
}

.private-mission span {
  color: #dce8cc
}

.mission-contact {
  padding: 32px;
  background: var(--surface);
  border-radius: 12px
}

.mission-contact h3 {
  font-size: 22.5px
}

.mission-page .desktop-nav [aria-current] {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 8px
}

@media(max-width:700px) {

  .outreach-grid,
  .mission-grid {
    grid-template-columns: 1fr
  }

  .mission-section {
    padding: 36px 0
  }

  .mission-body,
  .mission-contact {
    padding: 24px
  }

  .mission-card>img,
  .private-mission {
    height: 220px
  }

  .mission-body h3 {
    font-size: 22.5px
  }

  .mission-body p,
  .mission-body li {
    font-size: 15.3px
  }

  .mission-page {
    --anchor-offset: 160px
  }

  .mission-note {
    padding: 18px;
    font-size: 14.4px
  }
}

/* 교회소식 */
/* 교회소식 독립 게시판의 공통 메뉴와 갤러리를 배치한다. */
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0
}

.calendar-toolbar h3 {
  margin: 0;
  font-size: 25.2px
}

.calendar-toolbar button {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--brand);
  padding: 8px 14px
}

.calendar-scroll {
  overflow-x: auto
}

.event-calendar {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 700px
}

.event-calendar th {
  padding: 14px;
  background: var(--surface)
}

.event-calendar td {
  height: 115px;
  vertical-align: top;
  border: 1px solid var(--line);
  padding: 8px
}

.event-calendar time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px
}

.event-calendar .other-month {
  background: #f0f1ec;
  color: var(--muted)
}

.event-calendar .today {
  background: var(--brand);
  color: white;
  border-radius: 50%
}

.calendar-event {
  display: block;
  margin-top: 5px;
  padding: 5px 7px;
  background: #e1ebdf;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--dark);
  overflow-wrap: anywhere
}

.calendar-event:hover {
  text-decoration: underline
}

.news-page #month-events a {
  grid-template-columns: 240px 1fr auto
}

@media(max-width:700px) {
  .calendar-toolbar {
    gap: 8px;
    flex-wrap: wrap
  }

  .calendar-toolbar h3 {
    font-size: 20.7px
  }

  .event-calendar {
    min-width: 640px
  }

  .news-page #month-events a {
    grid-template-columns: 1fr auto
  }
}

.news-page .about-toc>div {
  grid-template-columns: repeat(6, 1fr)
}

.post-count {
  font-size: 15.3px;
  color: var(--muted)
}

.news-page .resource-list a {
  grid-template-columns: 180px 1fr auto
}

.calendar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  color: var(--brand);
  border-bottom: 1px solid var(--line)
}

.calendar-link strong {
  font-size: 19.8px
}

.calendar-link>span:last-child {
  font-size: 25.2px
}

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

.news-gallery a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px
}

.news-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover
}

.news-gallery h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 18.9px;
  padding: 20px;
  margin: 0
}

.news-gallery a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px
}

@media(max-width:700px) {
  .news-page .about-toc>div {
    grid-template-columns: repeat(2, 1fr)
  }

  .news-page {
    --anchor-offset: 200px
  }

  .news-page .resource-list a {
    grid-template-columns: 1fr auto
  }

  .news-gallery {
    grid-template-columns: 1fr
  }

  .news-page .intro-banner-sub {
    line-height: 1.8
  }
}

/* 게시물 상세 */
/* 게시물 본문과 영상·사진을 기존 사이트 스타일로 표시한다. */
.post-page {
  padding-top: 40px;
  padding-bottom: 40px
}

.post-page article {
  max-width: 960px;
  margin: 40px auto
}

.post-page h1 {
  font-size: clamp(27px, 3.4vw, 43px);
  letter-spacing: -1px;
  margin-bottom: 32px
}

.post-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 2;
  margin: 30px 0;
  font-size: 16.2px
}

.post-video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  border-radius: 10px
}

.post-photo {
  width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 8px
}

.post-page .about-end {
  max-width: 960px;
  margin: auto
}