/* 커뮤니티(공지사항/문의사항/후기사진) 공통 상단 탭 + 제목 (views/board/basic/community_head.php) */
.community-head,
.community-head * {
  box-sizing: border-box;
}
.community-head {
  --c-text: #242424;
  --c-muted: #747474;
  --c-accent: #9a7651;
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--c-text);
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 76px;
}
/* 사이트 공통 materialize.css 의 nav 기본 스타일(고정 높이·line-height·그림자·배경) 무력화 */
.community-head nav {
  height: auto;
  line-height: normal;
  background: none;
  box-shadow: none;
  color: inherit;
}
.community-head nav ul a {
  line-height: 1.5;
  height: auto;
}
.community-head__tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #dcdcdc;
  margin: 0 0 70px;
  padding: 0;
  list-style: none;
}
.community-head__tabs li {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.community-head__tabs a {
  display: block;
  padding: 19px 8px;
  font-size: 16px;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.community-head__tabs a[aria-current="page"] {
  color: #171717;
  font-weight: 700;
  border-bottom-color: var(--c-accent);
}
.community-head__heading {
  text-align: center;
  margin-bottom: 52px;
}
.community-head__heading h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
  color: var(--c-text);
}
.community-head__heading p {
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* 기존 게시판/갤러리 본문(.brd-section)을 공통 헤더 아래에 붙임 */
.community-head + .brd-section {
  margin-top: 0;
  max-width: 1100px;
}
.community-head + .brd-section .page-info-body.table-body .body-top {
  margin-top: 0;
}

@media (max-width: 640px) {
  .community-head {
    width: calc(100% - 32px);
    padding-top: 34px;
  }
  .community-head__tabs {
    margin-bottom: 49px;
  }
  .community-head__tabs a {
    font-size: 14px;
    padding: 16px 4px;
  }
  .community-head__heading {
    margin-bottom: 38px;
  }
  .community-head__heading h1 {
    font-size: 29px;
  }
  .community-head__heading p {
    font-size: 14px;
  }
  .community-head + .brd-section {
    padding: 0 16px;
  }
}
