/* ==========================================================================
   공지사항 · 자료실 (notice.html)
   기준 시안: Figma 「B안 흰 헤더 · 확정」 PC 06 (259:1768) / MO 06 (259:3202)
   ========================================================================== */

/* ---------- Sub Tabs : 이 화면은 탭이 3개이고 글자가 16px ---------- */
.page-notice .sub-tabs-list li { flex: 0 0 33.3333%; }
.page-notice .sub-tabs-list a { padding-bottom: 5px; font-size: 16px; }

/* ---------- Board List ---------- */
.notice-board { padding: 80px 0 176px; background: #fff; }

.notice-tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.notice-count { display: flex; gap: 6px; flex: none; padding-top: 16px; font-size: 15px; line-height: 22px; color: var(--gray); white-space: nowrap; }
.notice-count strong { margin-right: -1px; font-weight: 700; color: var(--ink); }

.notice-search { display: flex; flex: 0 1 560px; gap: 10px; min-width: 0; margin-left: auto; }
.notice-select { position: relative; flex: none; width: 140px; }
.notice-select select {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 40px 2px 16px;
  border: 1px solid var(--line); border-radius: 0; background: #fff;
  font: 400 15px/1.448 var(--sans); color: var(--ink); cursor: pointer;
}
.notice-select img { position: absolute; right: 15px; top: 12px; pointer-events: none; }
.notice-search-box { position: relative; flex: 1 1 0; min-width: 0; }
.notice-search-box input {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 54px 2px 18px;
  border: 1px solid var(--ink); border-radius: 0; background: #fff;
  font: 400 15px/1.448 var(--sans); color: var(--ink);
}
.notice-search-box input::placeholder { color: var(--muted); opacity: 1; }
.notice-search-box input::-webkit-search-cancel-button,
.notice-search-box input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.notice-select select:focus-visible,
.notice-search-box input:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.notice-search-box button { position: absolute; right: 6px; top: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }

.notice-table { margin-top: 28px; border-top: 2px solid var(--ink); }
.notice-head,
.notice-link { display: grid; grid-template-columns: 12.5% 9.1667% minmax(0, 1fr) 120px 120px; }
.notice-head { align-items: start; height: 60px; padding-top: 18px; background: var(--bg-gray); font-size: 15px; font-weight: 500; color: var(--gray); }
.notice-head .notice-num { padding-left: 40px; }
.notice-head .notice-title { padding-left: 42.857%; }

.notice-link { align-items: center; min-height: 76px; padding-bottom: 3px; border-bottom: 1px solid var(--line); transition: background .2s; }
.notice-row.is-pinned .notice-link { background: #f7f8fa; }
.notice-link:hover .notice-title { text-decoration: underline; text-underline-offset: 4px; }
.notice-link:focus-visible { outline-offset: -2px; }
.notice-row .notice-num { padding-left: 40px; font-size: 15px; color: var(--muted); }
.notice-badge { display: flex; align-items: center; justify-content: center; width: 48px; height: 28px; margin: 4px 0 0 -10px; background: var(--dark); color: #fff; font-size: 13px; font-weight: 500; }
.notice-row .notice-cat { font-size: 15px; font-weight: 500; color: var(--ink); }
.notice-row .notice-cat.is-files { color: var(--brand); }
.notice-row .notice-title { min-width: 0; padding-right: 24px; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-row.is-pinned .notice-title { font-weight: 700; }
.notice-row .notice-file img { margin: 2px 0 0 4px; }
.notice-row .notice-date { font-size: 15px; color: var(--muted); white-space: nowrap; }
.notice-row[hidden], .notice-empty[hidden] { display: none; }
.notice-empty { padding: 60px 16px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--gray); text-align: center; }

/* ---------- 페이지 번호 ---------- */
.notice-paging { display: flex; align-items: center; justify-content: center; margin-top: 102px; }
.notice-paging-list { display: flex; gap: 8px; margin: 0 62px; }
.notice-paging-list a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 16px; color: var(--gray); transition: background .2s, color .2s; }
.notice-paging-list a:hover { background: var(--bg-gray); color: var(--ink); }
.notice-paging-list a.is-active { background: var(--dark); color: #fff; font-weight: 700; }
.notice-paging-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.notice-paging-arrow.is-disabled { cursor: default; }

/* ---------- 글 보기 (notice-detail.html) — 글 부품은 css/insights.css 의 .insight-* ---------- */
.notice-view { padding: 80px 0 160px; background: #fff; }
.notice-view-inner { max-width: 880px; }
.notice-view .insight-title { max-width: none; }
.notice-view-body.insight-body > p:first-child { margin-bottom: 0; font-family: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; color: inherit; }
.notice-view-file { margin-top: 56px; }
.notice-view-download { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 20px; border: 1px solid var(--line); background: #f7f8fa; transition: border-color .2s; }
.notice-view-download:hover { border-color: var(--ink); }
.notice-view-file-name { flex: 1; min-width: 0; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.notice-view-file-size { flex: none; font-size: 14px; color: var(--muted); }
.notice-view-file-btn { flex: none; display: flex; align-items: center; justify-content: center; min-width: 96px; height: 40px; padding: 0 16px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 500; }
.notice-view .insight-nav { margin-top: 56px; }

/* ==========================================================================
   MO (1024px 이하)
   ========================================================================== */
@media (max-width: 1024px) {
  /* 공통 서브 탭은 휴대폰에서 펼침 목록이지만, 이 화면 시안은 3칸이 나란히 보인다 */
  .page-notice .sub-tabs { background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
  .page-notice .sub-tabs .inner { width: 100%; }
  .page-notice .sub-tabs-list { display: flex; position: static; padding: 0; background: none; box-shadow: none; }
  .page-notice .sub-tabs-list li { flex: 1 1 0; min-width: 0; border-top: 0; }
  .page-notice .sub-tabs-list a,
  .page-notice .sub-tabs-list a.is-active { justify-content: center; height: 52px; padding: 0 4px 2px; font-size: 14px; font-weight: 500; color: var(--gray); }
  .page-notice .sub-tabs-list a.is-active { background: var(--dark); color: #fff; font-weight: 700; }

  .notice-board { padding: 24px 0 120px; }
  .notice-view { padding: 40px 0 96px; }
  .notice-view-file { margin-top: 36px; }
  .notice-view-download { flex-wrap: wrap; gap: 8px 10px; padding: 14px; }
  .notice-view-file-name { flex: 1 1 calc(100% - 40px); font-size: 14px; }
  .notice-view-file-btn { margin-left: auto; min-width: 88px; }
  .notice-view .insight-nav { margin-top: 36px; }
  .notice-tools { display: block; }
  .notice-search { display: block; margin: 0; }
  .notice-search-box input { height: 44px; padding: 0 48px 3px 12px; font-size: 14px; }
  .notice-search-box button { right: 2px; width: 44px; height: 42px; }

  .notice-table { margin-top: 24px; }
  .notice-link { position: relative; display: block; min-height: 104px; padding: 20px 50px 6px 10px; }
  .notice-row .notice-num { display: none; }
  .notice-row.is-pinned .notice-num { display: block; height: 24px; margin: -2px 0 -3px; padding: 0; }
  .notice-row.is-pinned .notice-cat { display: none; }
  .notice-badge { width: 40px; height: 24px; margin: 0; }
  .notice-row .notice-cat,
  .notice-row .notice-cat.is-files { display: block; font-size: 13px; line-height: 19px; color: var(--brand); }
  /* 시안: 휴대폰에서도 제목은 한 줄(줄 높이가 모두 같다) — 넘치면 PC 처럼 말줄임 */
  .notice-row .notice-title { display: block; margin-top: 11px; padding-right: 0; font-size: 15px; line-height: 22px; }
  .notice-row .notice-date { display: block; margin-top: 6px; font-size: 13px; line-height: 19px; }
  .notice-row .notice-file { position: absolute; right: 12px; top: 40px; }
  .notice-row .notice-file img { margin: 0; }
  .notice-empty { padding: 40px 10px; font-size: 14px; }

  .notice-paging { margin-top: 78px; }
  .notice-paging-list { gap: 4px; margin: 0 15px; }
  .notice-paging-list a { width: 40px; height: 40px; font-size: 15px; }
  .notice-paging-arrow { width: 40px; height: 40px; }
}
