/* Insights 목록 · 글 보기 — 치수는 율촌 업무사례 페이지 기준 */
.insights_main { flex: 1; width: 100%; max-width: 1170px; margin: 0 auto; }
.insights_main.list_page { padding: 80px 0; }
.insights_main h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 56px;
}

/* 필터: 칸 높이 48 (검색창과 같음) · 4칸 */
/* 보이는 칸 수(1~5)에 맞춰 같은 폭으로 나눈다 */
.list_filter {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.filter_item { position: relative; flex: 1 1 0; min-width: 0; }
.filter_item label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
}
.filter_item select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 20px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 300;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.filter_item select:focus { border-color: var(--ink); }
.filter_item::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 21px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

/* 검색창: 높이 48 · 글자 18 · 안쪽 여백 11/90/11/20 · 아래 간격 60 */
.list_search {
  position: relative;
  margin-bottom: 60px;
  font-size: 18px;
  line-height: 18px;
  font-weight: 300;
  color: var(--faint);
}
.list_search input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 11px 90px 11px 20px;
  border: 1px solid var(--field);
  border-radius: 0;
  margin: 0;
  color: var(--ink);
  font: inherit;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.list_search input::-webkit-search-cancel-button { display: none; }
.list_search input:focus { border-color: var(--ink); }
.list_search .label_word { position: absolute; left: 20px; top: 15px; cursor: text; }
.list_search .label_word.is_hidden { display: none; }
.list_search button {
  position: absolute;
  top: 0;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.list_search .btn_search { right: 0; width: 49px; }
.list_search .btn_search::before {
  content: "";
  position: absolute;
  left: 15px; top: 14px;
  width: 13px; height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.list_search .btn_search::after {
  content: "";
  position: absolute;
  left: 28px; top: 28px;
  width: 7px; height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
  transform-origin: left center;
}
.list_search .del_keyword { display: none; right: 49px; width: 20px; }
.list_search .del_keyword.is_shown { display: block; }
.list_search .del_keyword::before,
.list_search .del_keyword::after {
  content: "";
  position: absolute;
  left: 2px; top: 23px;
  width: 16px; height: 1.5px;
  background: var(--faint);
}
.list_search .del_keyword::before { transform: rotate(45deg); }
.list_search .del_keyword::after { transform: rotate(-45deg); }

/* 목록: 위 2px · 아래 1px · 칸 사이 1px · 칸 안쪽 30/20/33 · 제목 22/34 · 날짜 16 */
.list_type_post { list-style: none; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.list_type_post li { position: relative; border-top: 1px solid var(--rule); }
.list_type_post li:first-child { border-top: 0; }
.list_type_post li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 11px; height: 11px;
  margin-top: -6px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  pointer-events: none;
}
.list_type_post .inner { width: 90%; }
.list_type_post .post_link { display: block; padding: 30px 20px 33px; color: var(--ink); text-decoration: none; }
.list_type_post .title {
  font-size: 22px;
  line-height: 34px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.list_type_post .post_link:hover .title,
.list_type_post .post_link:focus .title { color: var(--accent); }
.list_type_post .date { margin-top: 22px; font-size: 16px; line-height: 24px; color: var(--faint); font-weight: 300; }

.list_empty { padding: 60px 20px; font-size: 18px; font-weight: 300; color: var(--faint); text-align: center; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* 더보기: 폭 240 · 높이 60 · 글자 20 · 위 간격 60 */
.list_btn_area { margin-top: 60px; text-align: center; }
.list_btn_area[hidden] { display: none; }
.btn_list_more {
  width: 240px;
  height: 60px;
  padding: 20px;
  border: 1px solid var(--faint);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 20px;
  line-height: 20px;
  cursor: pointer;
}
.btn_list_more:hover, .btn_list_more:focus { background: #e5e5e5; }
.btn_list_more span { position: relative; padding-left: 22px; }
.btn_list_more span::before,
.btn_list_more span::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 2px;
  margin-top: -1px;
  background: currentColor;
}
.btn_list_more span::after { transform: rotate(90deg); }

/* 글 보기: 위 70 · 아래 120 · 본문 870 + 사이드바 300 = 1170 */
.view_wrap { margin: 70px 0 120px; }
.view_wrap .inner { display: table; width: 100%; table-layout: fixed; }
.view_type_post .subject { padding: 0 20px; margin-bottom: 35px; overflow: hidden; }
.view_type_post .title { margin-bottom: 20px; font-size: 26px; font-weight: 500; line-height: 1.4; }
.view_type_post .date { color: var(--faint); font-size: 16px; font-weight: 300; }
.view_type_post .detail { padding: 30px 20px 60px; border-top: 2px solid var(--ink); }
.view_type_post .content { color: var(--muted); font-size: 18px; font-weight: 300; line-height: 1.8; overflow-wrap: break-word; }
.view_type_post .content > * + * { margin-top: 32px; }
.view_type_post .content h2, .view_type_post .content h3, .view_type_post .content h4 { color: var(--ink); font-weight: 500; line-height: 1.4; }
.view_type_post .content h2 { font-size: 22px; }
.view_type_post .content h3 { font-size: 20px; }
.view_type_post .content h4 { font-size: 18px; }
.view_type_post .content strong, .view_type_post .content b { color: var(--ink); font-weight: 500; }
.view_type_post .content ul, .view_type_post .content ol { padding-left: 1.4em; }
.view_type_post .content blockquote { padding-left: 20px; border-left: 2px solid var(--rule); }
.view_type_post .content img { display: block; max-width: 100%; height: auto; }
.view_type_post .content figcaption { margin-top: 10px; font-size: 14px; color: var(--faint); }
.view_type_post .content a { color: var(--accent); }
.view_type_post .content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.view_type_post .content th, .view_type_post .content td { padding: 10px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.view_type_post .content th { color: var(--ink); font-weight: 500; background: #f5f5f5; }

/* 출처: 율촌 첨부파일 칸과 같은 회색 칸 (위 40 · 안쪽 30/33/20 · 글자 18) */
.view_type_post .additional { margin-top: 40px; background: #f5f5f5; padding: 30px 33px 20px; font-size: 18px; }
.view_type_post .file { display: table; }
.view_type_post .file .text { display: table-cell; min-width: 140px; padding-right: 40px; vertical-align: top; color: var(--ink); }
.view_type_post .file .download { display: table-cell; }
.view_type_post .file .download a { display: block; margin-bottom: 10px; font-weight: 300; color: var(--muted); text-decoration: underline; word-break: break-all; }

/* 오른쪽 사이드바: 폭 300 (왼쪽 여백 60 포함) */
.view_wrap_member .view_type_post { display: table-cell; vertical-align: top; }
.view_member_list { display: table-cell; width: 300px; padding-left: 60px; vertical-align: top; }
.view_member_list .title { font-size: 18px; font-weight: 500; padding: 0 10px; }
.member_list { list-style: none; margin-top: 20px; padding: 24px 10px; border-top: 2px solid var(--ink); }
.member_list li + li { margin-top: 10px; }
.member_list .link { display: block; color: var(--faint); text-decoration: none; font-weight: 300; font-size: 16px; }
.member_list .link:hover, .member_list .link:focus { color: var(--accent); }

/* 아래 이동: 위 60 · 목록 버튼 240 · 이전/다음 18 */
.view_pagination { position: relative; padding-top: 60px; text-align: center; border-top: 1px solid var(--ink); }
.view_wrap_member .view_pagination { margin-right: 300px; }
.view_pagination a { text-decoration: none; }
.view_pagination .btn_prev,
.view_pagination .btn_next { position: absolute; top: 60px; padding: 17px 30px; font-size: 18px; line-height: 28px; color: var(--accent); }
.view_pagination .btn_prev { left: 30px; padding-left: 26px; }
.view_pagination .btn_next { right: 30px; padding-right: 26px; }
.view_pagination .btn_prev::before,
.view_pagination .btn_next::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.view_pagination .btn_prev::before { left: 2px; transform: rotate(45deg); }
.view_pagination .btn_next::after { right: 2px; transform: rotate(-135deg); }
.btn_view_list { display: inline-block; width: 240px; padding: 20px; border: 1px solid var(--faint); color: var(--muted); font-size: 20px; line-height: 20px; }
.btn_view_list:hover, .btn_view_list:focus { background: #e5e5e5; color: var(--muted); }

.draft_notice { margin: 40px 0 0; padding: 14px 20px; background: #fff4d6; color: #5c4400; font-size: 15px; }

@media (min-width: 768px) and (max-width: 1224px) {
  .view_member_list { width: 240px; padding-left: 30px; }
  .view_wrap_member .view_pagination { margin-right: 240px; }
  .view_wrap_member .btn_view_list { width: 160px; }
}
@media (max-width: 767px) {
  .list_filter { flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
  .filter_item { flex: 1 1 calc(50% - 5px); }
  .filter_item select { height: 42px; padding: 0 36px 0 15px; font-size: 14px; }
  .filter_item::after { right: 15px; bottom: 18px; width: 7px; height: 7px; border-width: 1.5px; }
  .list_search { margin-bottom: 25px; font-size: 14px; line-height: 14px; }
  .list_search input { height: 42px; padding: 12px 70px 12px 15px; }
  .list_search .label_word { left: 15px; top: 14px; }
  .list_search .btn_search { width: 37px; }
  .list_search .btn_search::before { left: 11px; top: 13px; width: 11px; height: 11px; border-width: 1.5px; }
  .list_search .btn_search::after { left: 21px; top: 24px; width: 6px; height: 1.5px; }
  .list_search .del_keyword { right: 38px; width: 16px; }
  .list_search .del_keyword::before,
  .list_search .del_keyword::after { left: 1px; top: 20px; width: 14px; }
  .list_type_post li::after { display: none; }
  .list_type_post .inner { width: 100%; }
  .list_type_post .post_link { padding: 21px 10px 25px; }
  .list_type_post .title { font-size: 18px; line-height: 22px; }
  .list_type_post .date { margin-top: 15px; font-size: 14px; line-height: 21px; }
  .list_btn_area { margin-top: 30px; }
  .btn_list_more { width: 137px; height: 50px; padding: 12px 0; font-size: 16px; line-height: 16px; }

  .view_wrap { margin: 25px 0 40px; }
  .view_wrap .inner, .view_wrap_member .view_type_post { display: block; }
  .view_type_post .subject { padding: 0 10px; margin-bottom: 19px; }
  .view_type_post .title { font-size: 18px; margin-bottom: 8px; }
  .view_type_post .date { font-size: 14px; }
  .view_type_post .detail { padding: 20px 0 30px; }
  .view_type_post .content { font-size: 14px; }
  .view_type_post .content > * + * { margin-top: 25px; }
  .view_type_post .additional { margin-top: 30px; padding: 20px; font-size: 14px; }
  .view_type_post .file, .view_type_post .file .text, .view_type_post .file .download { display: block; }
  .view_type_post .file .text { margin-bottom: 10px; }
  .view_member_list { display: block; width: 100%; padding-left: 0; }
  .view_member_list .title { font-size: 14px; }
  .member_list { margin-top: 12px; padding: 14px 10px; border-top-width: 1px; }
  .member_list li + li { margin-top: 5px; }
  .member_list .link { font-size: 12px; }
  .view_pagination { padding-top: 35px; }
  .view_wrap_member .view_pagination { margin-right: 0; }
  .view_pagination .btn_prev, .view_pagination .btn_next { top: 35px; width: 32px; height: 50px; padding: 0; }
  .view_pagination .btn_prev { left: 0; }
  .view_pagination .btn_next { right: 0; }
  .view_pagination .btn_prev span, .view_pagination .btn_next span { display: none; }
  .view_pagination .btn_prev::before { left: 12px; width: 8px; height: 8px; margin-top: -4px; }
  .view_pagination .btn_next::after { right: 12px; width: 8px; height: 8px; margin-top: -4px; }
  .btn_view_list, .view_wrap_member .btn_view_list { width: 136px; padding: 16px 0; font-size: 15px; line-height: 16px; }
}
@media (max-width: 640px) {
  .insights_main.list_page { padding: 56px 0; }
  .insights_main h1 { margin-bottom: 40px; }
}
