/* 섹션만 나눠 둔 서브페이지 공통 (news.html 소식·고객지원, tech.html 기술) — 내용이 들어오면 페이지별 CSS로 나눔 */
.page-sections [hidden] { display: none !important; }

/* 서브 히어로: 사진을 꽉 채우고 왼쪽 글자 쪽만 그늘 (공통 스타일은 common.css)
   기술: 새벽 들녘 사람들 실루엣이 보이게 아래쪽 기준 */
.page-sections .sub-hero__bg { right: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
.page-tech .sub-hero__bg { object-position: center 72%; }
.page-sections .sub-hero::after { background: linear-gradient(90deg, rgb(22 38 30 / 62%) 0%, rgb(22 38 30 / 30%) 40%, rgb(22 38 30 / 0%) 65%); }

/* 탭 */
.page-tabs { border-bottom: 1px solid var(--c-line); background: #fff; }
.page-tabs__inner { display: flex; justify-content: center; }
.page-tabs__item { padding: 20px 32px 17px; border-bottom: 3px solid transparent; color: var(--c-text-muted); font: 700 18px/1.4 var(--f-title); white-space: nowrap; }
.page-tabs__item:hover { color: var(--c-forest); }
.page-tabs__item[aria-selected="true"] { border-bottom-color: var(--c-gold); color: var(--c-forest); }
.page-tabs__item--link::after { margin-left: 4px; content: "↗"; font-size: .8em; }

.sections-body { padding-top: 64px; padding-bottom: 112px; }
.section-title { margin-bottom: 8px; color: var(--c-forest); font: 700 32px/1.35 var(--f-title); }
.section-desc { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--c-line); color: var(--c-text-muted); font: 400 17px/1.6 var(--f-title); }

/* 내용 들어갈 자리 */
.section-slot { display: grid; place-items: center; gap: 12px; min-height: 280px; padding: 40px 24px; border: 2px dashed #d6cdb8; border-radius: var(--radius); background: rgb(255 255 255 / 55%); text-align: center; }
.section-slot strong { color: var(--c-forest); font: 700 20px/1.4 var(--f-title); }
.section-slot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.section-slot li { padding: 6px 14px; border-radius: 999px; background: var(--c-bg-soft); color: var(--c-text-sub); font: 500 15px/1.4 var(--f-title); }
.section-slot p { color: var(--c-text-muted); font: 400 15px/1.6 var(--f-title); }
.section-slot a { color: var(--c-forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .page-tabs__inner { padding: 0; overflow-x: auto; justify-content: flex-start; }
  .page-tabs__item { flex: 1 0 auto; padding: 14px 8px 11px; font-size: 14px; text-align: center; }
  .sections-body { padding-top: 36px; padding-bottom: 72px; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 15px; }
  .section-slot { min-height: 220px; }
}

/* ① 공지 · 뉴스 게시판 (js/news.js) */
.news-board__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filter__btn { padding: 8px 16px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; color: var(--c-text-sub); font: 500 15px/1.3 var(--f-title); }
.news-filter__btn span { margin-left: 6px; color: var(--c-text-muted); font-size: 13px; }
.news-filter__btn:hover { border-color: var(--c-forest); color: var(--c-forest); }
.news-filter__btn[aria-pressed="true"] { border-color: var(--c-forest); background: var(--c-forest); color: #fff; }
.news-filter__btn[aria-pressed="true"] span { color: #cfdacf; }
.news-search { display: flex; flex: 0 1 340px; gap: 6px; }
.news-search input { width: 100%; min-width: 0; height: 44px; padding: 0 18px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font: 400 16px/1.4 var(--f-title); }
.news-search button { flex: none; padding: 0 20px; border-radius: 999px; background: var(--c-forest); color: #fff; font: 700 15px/1.2 var(--f-title); }
.news-search button:hover { background: var(--c-green-3); }
.news-board__count { margin-bottom: 8px; color: var(--c-text-muted); font: 500 15px/1.5 var(--f-title); scroll-margin-top: 24px; }
.news-list-board { border-top: 2px solid var(--c-forest); background: #fff; }
.news-list-board > li + li { border-top: 1px solid var(--c-line); }
.news-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; transition: background-color .15s ease; }
.news-row:hover, .news-row:focus-visible { background: #f6f4ed; }
.news-row__cat { justify-self: start; padding: 4px 10px; border-radius: 6px; background: var(--c-bg-soft); color: var(--c-text-sub); font: 700 13px/1.3 var(--f-title); white-space: nowrap; }
.news-row__cat--0 { background: #f6dad6; color: #a3302a; }
.news-row__cat--1 { background: #e7eedf; color: var(--c-forest); }
.news-row__cat--2 { background: #fbe7c7; color: #8a5a10; }
.news-row__cat--3 { background: #dde9e3; color: var(--c-sage); }
.news-row__cat--4 { background: #fde0e0; color: #b3131a; }
.news-row__title { overflow: hidden; color: var(--c-text); font: 500 17px/1.5 var(--f-title); text-overflow: ellipsis; white-space: nowrap; }
.news-row:hover .news-row__title { color: var(--c-forest); text-decoration: underline; text-underline-offset: 3px; }
.news-row__new { margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: var(--c-gold); color: var(--c-charcoal); font: 800 11px/1.4 var(--f-title); vertical-align: 2px; }
.news-row__meta { color: var(--c-text-muted); font: 400 14px/1.4 var(--f-title); white-space: nowrap; }
.news-empty { padding: 48px 20px; color: var(--c-text-muted); font: 400 16px/1.6 var(--f-title); text-align: center; }
.news-more { display: block; margin: 24px auto 0; padding: 12px 28px; border: 1px solid var(--c-forest); border-radius: 999px; background: #fff; color: var(--c-forest); font: 700 15px/1.2 var(--f-title); }
.news-more:hover { background: var(--c-forest); color: #fff; }
@media (max-width: 640px) {
  .news-search { flex-basis: 100%; }
  .news-row { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px 12px; }
  .news-row__cat { grid-row: 1; }
  .news-row__meta { grid-row: 1; grid-column: 2; font-size: 13px; }
  .news-row__title { grid-column: 1 / -1; font-size: 16px; white-space: normal; }
}
/* 맨 위 고정 글 (news.json pinned) */
.news-row.is-pinned { background: #fbf6e7; }
.news-row.is-pinned:hover { background: #f6eed5; }
.news-row__pin { margin-right: 8px; padding: 1px 7px; border-radius: 4px; background: var(--c-forest); color: #fff; font: 700 12px/1.5 var(--f-title); vertical-align: 2px; }
/* 공지 · 뉴스 글 보기 (post.html, js/post.js) */
.post { max-width: 880px; margin: 0 auto; }
.post__loading, .post__empty { padding: 60px 0; color: var(--c-text-muted); font: 400 17px/1.6 var(--f-title); text-align: center; }
.post__head { padding-bottom: 24px; border-bottom: 2px solid var(--c-forest); }
.post__cat { margin-bottom: 12px; }
.post__cat .news-row__cat { display: inline-block; }
.post__title { color: var(--c-forest); font: 800 32px/1.4 var(--f-title); letter-spacing: -.01em; word-break: keep-all; }
.post__meta { margin-top: 12px; color: var(--c-text-muted); font: 400 15px/1.5 var(--f-title); }
.post__body { display: grid; gap: 16px; padding: 36px 0 44px; color: var(--c-text); font: 400 18px/1.9 var(--f-title); word-break: keep-all; }
.post__video { justify-self: center; width: min(360px, 100%); margin: 12px 0 0; }
.post__video iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 12px; background: #000; }
.post__video figcaption { margin-top: 8px; text-align: center; font: 500 14px/1.4 var(--f-title); }
.post__video figcaption a { color: #cf1015; }
.post__footer { padding: 16px 20px; border-left: 4px solid var(--c-gold); border-radius: 0 8px 8px 0; background: #fbf3df; color: var(--c-forest); font-weight: 700; }
.post__nav { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: #fff; }
.post__nav > * { display: flex; gap: 20px; padding: 16px 20px; color: var(--c-text-sub); font: 400 16px/1.5 var(--f-title); }
.post__nav > * + * { border-top: 1px solid var(--c-line); }
.post__nav span { flex: none; width: 76px; white-space: nowrap; color: var(--c-text-muted); font-weight: 700; }
.post__nav a:hover { color: var(--c-forest); text-decoration: underline; text-underline-offset: 3px; }
.post__actions { margin-top: 32px; text-align: center; }
.post__list { display: inline-block; padding: 14px 40px; border-radius: 999px; background: var(--c-forest); color: #fff; font: 700 16px/1.2 var(--f-title); }
.post__list:hover { background: var(--c-green-3); }
@media (max-width: 640px) {
  .post__title { font-size: 24px; }
  .post__body { padding: 28px 0 32px; font-size: 16px; }
  .post__nav > * { gap: 12px; padding: 14px 12px; font-size: 15px; }
  .post__nav span { width: auto; }
  .post__video { width: min(300px, 100%); }
}

/* 기술 ④ 시험성적서 (js/tech-reports.js, data/reports.json) */
.reports-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px 48px; margin-bottom: 36px; padding: 32px 40px; border-radius: var(--radius); background: var(--c-forest); color: #fff; }
.reports-summary__total { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.reports-summary__total strong { color: var(--c-gold); font: 900 64px/1 var(--f-title); }
.reports-summary__total span { font: 700 20px/1.4 var(--f-title); }
.reports-summary__kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reports-summary__kinds li { padding-left: 16px; border-left: 2px solid rgb(255 255 255 / 25%); color: #d9e2da; font: 400 15px/1.5 var(--f-title); }
.reports-summary__kinds b { display: block; margin-bottom: 4px; color: #fff; font: 700 17px/1.4 var(--f-title); }
.reports-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.reports-count { margin-bottom: 12px; color: var(--c-text-muted); font: 500 15px/1.5 var(--f-title); }
.reports-count:empty { display: none; }
.reports-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.reports-grid > .news-empty { grid-column: 1 / -1; }
.report-card { display: flex; height: 100%; flex-direction: column; gap: 10px; padding: 26px 28px; border: 1px solid var(--c-line); border-top: 4px solid var(--c-forest); border-radius: var(--radius); background: #fff; }
a.report-card { transition: box-shadow .2s ease, transform .2s ease; }
a.report-card:hover, a.report-card:focus-visible { box-shadow: 0 10px 24px rgb(25 42 31 / 10%); transform: translateY(-2px); }
.report-card__cat { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: var(--c-bg-soft); color: var(--c-olive); font: 700 13px/1.3 var(--f-title); }
.report-card__title { color: var(--c-text); font: 700 19px/1.45 var(--f-title); word-break: keep-all; }
.report-card__meta { color: var(--c-text-muted); font: 400 15px/1.5 var(--f-title); }
.report-card__open { margin-top: auto; padding-top: 8px; color: var(--c-forest); font: 700 15px/1.3 var(--f-title); }
.report-card--empty { border-style: dashed; border-top: 4px solid #d6cdb8; background: rgb(255 255 255 / 55%); }
.report-card--empty .report-card__title { color: var(--c-text-sub); }
.reports-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding: 24px 28px; border-left: 4px solid var(--c-gold); border-radius: 0 var(--radius) var(--radius) 0; background: #fbf3df; }
.reports-ask strong { color: var(--c-forest); font: 700 18px/1.4 var(--f-title); }
.reports-ask p { margin-top: 4px; color: var(--c-text-sub); font: 400 15px/1.6 var(--f-title); }
.reports-ask a { flex: none; padding: 12px 24px; border-radius: 999px; background: var(--c-forest); color: #fff; font: 700 16px/1.2 var(--f-title); }
.reports-ask a:hover, .reports-ask a:focus-visible { background: var(--c-gold); color: var(--c-charcoal); }
@media (max-width: 900px) {
  .reports-summary { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .reports-summary { gap: 18px; padding: 24px 20px; }
  .reports-summary__total strong { font-size: 48px; }
  .reports-summary__total span { font-size: 17px; }
  .reports-summary__kinds { grid-template-columns: 1fr; gap: 12px; }
  .reports-grid { grid-template-columns: 1fr; gap: 12px; }
  .report-card { padding: 20px; }
  .reports-ask { padding: 20px; }
  .reports-ask a { width: 100%; text-align: center; }
}

/* 사이트 전체 검색 (search.html, js/search.js) */
.search-box { display: flex; gap: 8px; max-width: 720px; margin-bottom: 20px; }
.search-box input { flex: 1; min-width: 0; height: 52px; padding: 0 22px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font: 400 17px/1.4 var(--f-title); }
.search-box button { flex: none; padding: 0 28px; border-radius: 999px; background: var(--c-forest); color: #fff; font: 700 16px/1.2 var(--f-title); }
.search-box button:hover { background: var(--c-green-3); }
.search-count { margin-bottom: 20px; color: var(--c-text-muted); font: 500 16px/1.5 var(--f-title); }
.search-group { margin-bottom: 36px; }
.search-group h2 { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--c-forest); color: var(--c-forest); font: 700 22px/1.4 var(--f-title); }
.search-group h2 span { margin-left: 6px; color: var(--c-olive); font-size: 16px; }
.search-group ul { display: grid; gap: 8px; }
.search-item { display: block; padding: 16px 20px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.search-item:hover, .search-item:focus-visible { border-color: var(--c-forest); box-shadow: 0 6px 16px rgb(25 42 31 / 8%); }
.search-item strong { display: block; color: var(--c-text); font: 700 18px/1.45 var(--f-title); }
.search-item:hover strong { color: var(--c-forest); text-decoration: underline; text-underline-offset: 3px; }
.search-item p { margin-top: 4px; color: var(--c-text-sub); font: 400 15px/1.6 var(--f-title); }
.search-item mark { padding: 0 2px; border-radius: 3px; background: #fbe7a8; color: inherit; }
.search-group--top { padding: 22px 24px; border: 1px solid var(--c-line); border-top: 4px solid var(--c-gold); border-radius: var(--radius); background: #fff; }
.search-group--top h2 { border-bottom: 0; padding-bottom: 0; }
.search-chips { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.search-chips a { display: inline-block; padding: 8px 18px; border: 1px solid var(--c-forest); border-radius: 999px; color: var(--c-forest); font: 700 16px/1.2 var(--f-title); }
.search-chips a:hover { background: var(--c-forest); color: #fff; }
.search-more { margin-top: 14px; font: 700 15px/1.4 var(--f-title); }
.search-more a { color: var(--c-forest); text-decoration: underline; text-underline-offset: 3px; }
.search-more-btn { margin-top: 10px; padding: 10px 22px; border: 1px solid var(--c-forest); border-radius: 999px; background: #fff; color: var(--c-forest); font: 700 15px/1.2 var(--f-title); }
.search-more-btn:hover { background: var(--c-forest); color: #fff; }
.search-none, .search-empty { padding: 20px 24px; border-left: 4px solid var(--c-gold); border-radius: 0 8px 8px 0; background: #fbf3df; color: var(--c-text); font: 400 17px/1.7 var(--f-title); }
.search-none a { margin-left: 4px; color: var(--c-forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .search-box input { height: 46px; font-size: 16px; }
  .search-box button { padding: 0 18px; }
  .search-group h2 { font-size: 19px; }
  .search-item { padding: 14px 16px; }
  .search-item strong { font-size: 16px; }
}
