/* 메인 화면(/): 왼쪽 색인(따로 스크롤) + 오른쪽 화면(첫 화면·개요·문서·도구).
   톤: 밝고 차분한 전문 자료실. 따뜻한 흰 바탕, 짙은 남색 글, 차분한 파랑, 분류색(규정·실무·도구)은 제목과 선에만. */
.li-body {
  --page-bg: #f7f8fa;
  --surface: #ffffff;
  --soft: #f3f6f9;
  --navy: #123250;
  --blue: #1769aa;
  --blue-soft: #eaf2f8;
  --line: #e2e7ec;
  --text: #455568;
  --muted: #5d6a78;
  --value: #172f49;
  --g1: #6254a3;   /* 계약·서류·통관 */
  --g2: #397b70;   /* 운송 장비·적재 */
  --g3: #b2473e;   /* 특수·규제 화물 */
  --g4: #36689c;   /* 화물 사고·보험 */
  --g5: #a66a2c;   /* 도구 */
  --g6: #2d7a8c;   /* 길잡이 */
  --g7: #8a4a6e;   /* 사고 사례 */
  background: var(--page-bg);
}

/* ---------------------------------------------------------------- 배치 */
.li-main {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 30px;
  /* 머리줄 로고와 같은 왼쪽 끝(styles.css .topbar 여백과 같은 계산) */
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding-block: 24px 16px;
  align-items: start;
}
.li-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; }
.li-skip:focus { left: 12px; }

/* ---------------------------------------------------------------- 왼쪽 색인 */
.li-side {
  position: sticky;
  top: 68px; /* 머리줄 44px + 위 여백 24px: 처음 자리에 붙어 스크롤해도 움직이지 않는다 */
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.li-side-head { display: grid; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); }
.li-side-head input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d3dbe4;
  border-radius: 8px;
  background: var(--surface);
  color: var(--value);
  font: inherit;
  font-size: 14px;
}
.li-side-head input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.li-side-tools { display: flex; gap: 6px; }
.li-side-tools button {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.li-side-tools button:hover { border-color: #c8d7e5; color: var(--navy); }
.li-tree {
  max-height: 70vh;
  padding: 4px 8px 14px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable; /* 스크롤바가 생겨도 폭이 바뀌지 않게 */
  scrollbar-width: thin;
}
.li-empty { margin: 14px 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; }

/* 큰 묶음(규정·실무·도구): 분류색 글자 + 옅은 선 */
.li-group-name { display: flex; align-items: center; gap: 8px; margin: 16px 6px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.li-group-name::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.li-group.g1 .li-group-name { color: var(--g1); }
.li-group.g2 .li-group-name { color: var(--g2); }
.li-group.g3 .li-group-name { color: var(--g3); }
.li-group.g4 .li-group-name { color: var(--g4); }
.li-group.g5 .li-group-name { color: var(--g5); }
.li-group.g6 .li-group-name { color: var(--g6); }
.li-group.g7 .li-group-name { color: var(--g7); }

/* 카테고리 줄: 평소엔 배경 없음, 올리면 옅은 회색, 펼치면 옅은 파랑. '개요'는 줄 오른쪽 글자 링크(summary 밖). */
.li-cat-wrap { position: relative; margin-top: 2px; }
.li-cat > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 64px 7px 8px; /* 오른쪽은 '개요' 링크 자리 */
  border-radius: 8px;
  color: var(--navy);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.li-cat > summary::-webkit-details-marker { display: none; }
.li-cat > summary::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 2px solid #8a9aac;
  border-bottom: 2px solid #8a9aac;
  transform: rotate(-45deg);
  transition: transform .15s;
}
.li-cat[open] > summary::before { transform: rotate(45deg); border-color: var(--blue); }
.li-cat > summary:hover { background: #f2f5f8; }
.li-cat[open] > summary { background: var(--blue-soft); color: #145d96; }
.li-cat-name { flex: 1; }
.li-count { color: var(--muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.li-ov {
  position: absolute;
  top: 6px; /* 카테고리 줄(38px) 안에서 위아래 가운데 */
  right: 6px;
  z-index: 1;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid #c9dbec;   /* 캡션이 아니라 누르는 버튼으로 보이게 */
  border-radius: 6px;
  background: #f5f9fd;
  box-shadow: 0 1px 1px rgba(18, 50, 80, .06);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.li-ov:hover { background: var(--blue-soft); border-color: #9fc0de; }
.li-tree a.li-ov.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 묶음 안의 소분류와 문서 */
.li-sec { margin: 4px 0 6px 6px; }
.li-sec-name { margin: 8px 8px 2px; color: var(--blue); font-size: 11.5px; font-weight: 700; }
.li-sec-fold > summary { cursor: pointer; list-style: none; }
.li-sec-fold > summary::-webkit-details-marker { display: none; }
.li-sec-fold > summary::before { content: '▸'; display: inline-block; width: 12px; color: var(--muted, #6b7785); }
.li-sec-fold[open] > summary::before { content: '▾'; }
.li-sec-fold > summary span { color: var(--muted, #6b7785); font-weight: 500; }
.li-sec ul { margin: 0; padding: 0 0 0 14px; list-style: none; }
.li-sec a {
  display: block;
  padding: 5px 6px 5px 8px;
  border-left: 2px solid transparent;
  border-radius: 7px;
  color: #2c4560;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}
.li-sec a:hover { background: #f2f5f8; color: var(--navy); }
.li-tree .li-sec a.is-active { background: var(--blue-soft); border-left-color: var(--blue); color: #145d96; font-weight: 700; }
.li-tree a:focus-visible, .li-cat > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* 도구: 펼치는 줄이 아니라 오른쪽 칸에서 연다 */
.li-tool { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; padding: 7px 8px; border-radius: 8px; color: var(--navy); font-weight: 700; text-decoration: none; }
.li-tool small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
.li-tool:hover { background: #f2f5f8; }
.li-tree a.li-tool.is-active { background: #f6ede2; box-shadow: inset 3px 0 0 var(--g5); }

/* ---------------------------------------------------------------- 오른쪽 화면 */
.li-view { min-width: 0; max-width: none; margin: 0; padding: 0; transition: opacity .15s; }
.li-view:focus { outline: none; }
.li-view.is-loading { opacity: .45; }

/* 카테고리 제목은 이 규칙 하나로: 첫 화면 카드·개요·문서·도구 머리가 늘 같은 모양 */
.li-view .li-entry-h,
.li-view .entry-copy h2.li-entry-h,
.li-view .entry-copy h1.li-entry-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}
.li-view .li-entry-h a { color: inherit; text-decoration: none; }
.li-view .li-entry-h a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.li-view .li-entry-h b { font-weight: 700; }
.li-kicker-sub { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }
/* 기관명은 분류색: 규정 보라, 실무 청록, 도구 황토 */
.li-kicker-sub.g1 { color: var(--g1); }
.li-kicker-sub.g2 { color: var(--g2); }
.li-kicker-sub.g3 { color: var(--g3); }
.li-kicker-sub.g4 { color: var(--g4); }
.li-kicker-sub.g5 { color: var(--g5); }
.li-kicker-sub.g6 { color: var(--g6); }
.li-kicker-sub.g7 { color: var(--g7); }

/* 첫 화면: 작은 h1과 한 줄 소개, 묶음 이름, 테두리 카드 */
.li-intro { margin: 0 0 6px; }
.li-intro h1 { margin: 0 0 4px; color: var(--navy); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.li-intro p { margin: 0; color: var(--text); font-size: 14.5px; }
.li-home-group { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.li-home-group::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.li-home-group.g1 { color: var(--g1); }
.li-home-group.g2 { color: var(--g2); }
.li-home-group.g3 { color: var(--g3); }
.li-home-group.g4 { color: var(--g4); }
.li-home-group.g5 { color: var(--g5); }
.li-home-group.g6 { color: var(--g6); }
.li-home-group.g7 { color: var(--g7); }
.li-home .library-entry {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); /* 그림 약 10% 축소 */
  gap: 24px;
  align-items: center;
  margin-top: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.li-home .library-entry .entry-copy > p { margin: 0 0 14px; color: var(--text); font-size: 15px; line-height: 1.7; }
.li-home .library-entry .entry-facts dt { color: var(--muted); }
.li-home .library-entry .entry-facts dd { color: var(--value); }
.li-home .library-entry .entry-image { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.li-home .library-entry .entry-image img { border-radius: 0; }
/* 도구: 그림 없는 작은 실행형 카드 3개 */
.li-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.li-tool-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--g5);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.li-tool-card:hover { border-color: #d9c3a6; border-left-color: var(--g5); }
.li-tool-card .li-entry-h { margin: 0; font-size: 16px; }
.li-tool-desc { color: var(--text); font-size: 13.5px; line-height: 1.6; }

/* 개요 및 원문: 카드 + 범위와 출처 + 원문과 공식 자료 */
.li-notice { margin: 14px 0 0; padding: 14px 16px; border: 1px solid #ece3cf; border-radius: 12px; background: #fdfaf3; color: #4a3f25; font-size: 14px; line-height: 1.7; }
.li-notice b { display: block; margin-bottom: 4px; color: #2e2814; }
.li-notice p { margin: 0; }
.li-ov-doc { margin-top: 26px; }
.li-src { margin-top: 28px; }
.li-src h3, .li-src > h2 { margin: 0 0 10px; color: var(--navy); font-size: 18px; }
/* 관련 영상(개요 화면): 썸네일 카드, 누르면 YouTube 새 창 */
.li-videos { margin-top: 28px; }
.li-videos > h2 { margin: 0 0 10px; color: var(--navy); font-size: 18px; }
.lib-video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lib-video { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.lib-video:hover { border-color: #9fc0de; box-shadow: 0 2px 8px rgba(18, 50, 80, .08); }
.lib-video img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #dce9f5; }
.lib-video-text { display: grid; gap: 4px; padding: 10px 12px 12px; }
.lib-video-text b { color: var(--navy); font-size: 14px; line-height: 1.45; }
.lib-video-text small { color: var(--muted); font-size: 12px; }
.lib-video-text span { color: var(--text); font-size: 13px; line-height: 1.6; }
.li-ov-doc .lib-article h2.lib-doc-title { margin: 8px 0 12px; font-size: 22px; line-height: 1.3; }
/* 본문 검색: 색인 줄 아래 본문 일치 미리보기, 열린 문서 안의 표시 */
.li-snip { display: block; margin: 0 0 6px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.li-snip em { font-style: normal; color: var(--g2); font-weight: 600; margin-right: 2px; }
.li-snip b { color: var(--navy); background: #fff3c4; font-weight: 600; }
mark.li-hit { background: #fff1a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.li-error { padding: 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--text); }

/* 도구를 오른쪽 칸에 끼워 연 모습 */
.li-tool-frame { display: block; width: 100%; border: 0; border-radius: 14px; background: transparent; }

/* ---------------------------------------------------------------- 푸터 */
.li-body .site-footer { min-height: 0; padding-block: 10px; }
.li-body .site-footer .footer-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.li-body .site-footer .footer-brand { height: auto; }
.li-body .site-footer .footer-brand strong { font-size: 14px; }
@media (min-width: 901px) {
  /* PC: 푸터를 화면 아래에 늘 보이게 고정하고, 본문 끝이 가리지 않게 아래 여백을 둔다 */
  .li-body .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; }
  .li-body .li-main { padding-bottom: 76px; }
}

/* ---------------------------------------------------------------- 좁은 화면 */
.li-toggle { display: none; }
@media (max-width: 900px) {
  .li-main { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .li-side { display: none; position: static; }
  .li-body.li-side-open .li-side { display: block; }
  .li-tree { max-height: 60vh; }
  .li-toggle {
    display: inline-flex;
    justify-self: start;
    padding: 8px 14px;
    border: 1px solid #d3dbe4;
    border-radius: 999px;
    background: var(--surface);
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .li-toggle::before { content: '☰'; margin-right: 6px; }
  .li-home .library-entry { grid-template-columns: minmax(0, 1fr); padding: 18px; }
}

/* ---------------------------------------------------------------- 휴대폰 마감 */
@media (max-width: 640px) {
  /* 그림이 본문 칸 밖으로 4px 나가 옆으로 흔들리던 것 */
  .li-view .lib-figure { margin-left: 0; margin-right: 0; }
  .li-view .bat-commentary, .li-view .bat-translation { overflow-x: clip; }
  .li-view .bat-commentary .lib-table-wrap, .li-view .bat-translation .lib-table-wrap,
  .li-view .bat-commentary .lib-table, .li-view .bat-translation .lib-table { overflow-x: auto; }
  .li-view .law-amend { max-width: 100%; white-space: normal; }
  /* 도해(SVG)는 화면 폭에 맞춰 줄이고, 누르면 크게 본다 */
  .li-view .uld-diagram svg { min-width: 0; }
  .li-view .uld-diagram .uld-svg-wrap { cursor: zoom-in; position: relative; }
  .li-view .uld-diagram .uld-svg-wrap::after { content: '크게 보기'; position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(18, 50, 80, .78); color: #fff; font-size: 11px; font-weight: 600; pointer-events: none; }
}
@media (max-width: 480px) {
  /* 두 칸짜리 표는 항목 아래에 설명을 쌓는다(설명 칸이 6~8글자마다 줄바꿈되던 것) */
  .li-view .lib-article table:not(:has(th:nth-child(3), td:nth-child(3))) { display: block; }
  .li-view .lib-article table:not(:has(th:nth-child(3), td:nth-child(3))) thead { display: none; }
  .li-view .lib-article table:not(:has(th:nth-child(3), td:nth-child(3))) :is(tbody, tr, td, th) { display: block; width: auto; min-width: 0; white-space: normal; }
  .li-view .lib-article table:not(:has(th:nth-child(3), td:nth-child(3))) tr { padding: 9px 2px; border-bottom: 1px solid var(--line); }
  .li-view .lib-article table:not(:has(th:nth-child(3), td:nth-child(3))) :is(td, th) { padding: 0; border: 0; background: none; }
  .li-view .lib-article table:not(:has(th:nth-child(3), td:nth-child(3))) :is(td, th):first-child { margin-bottom: 3px; color: var(--navy); font-weight: 700; }
}
/* 크게 보기 창 */
.li-zoom { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(10, 22, 36, .92); }
.li-zoom-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; font-size: 13px; }
.li-zoom-bar button { border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: #fff; font: inherit; padding: 4px 12px; }
.li-zoom-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 10px 16px; }
.li-zoom-body svg { display: block; width: 760px; max-width: none; height: auto; background: #fff; border-radius: 10px; }

/* 검색 결과(색인 자리에 관련도 순으로) */
.li-results { overflow-y: auto; padding: 6px 10px 12px; scrollbar-gutter: stable; }
.li-res-head { margin: 6px 4px 8px; color: var(--muted); font-size: 12.5px; }
.li-res-head b { color: var(--navy); }
.li-res-head span { display: block; margin-top: 2px; }
.li-res { display: block; padding: 8px 10px; border-radius: 8px; color: #2c4560; text-decoration: none; border-left: 2px solid transparent; }
.li-res:hover { background: #f2f5f8; }
.li-res[aria-current="page"] { background: var(--blue-soft); border-left-color: var(--blue); }
.li-res > b { display: block; color: var(--navy); font-size: 13.5px; line-height: 1.4; }
.li-res > small { display: block; margin-top: 1px; color: var(--g2); font-size: 11.5px; font-weight: 600; }
.li-res .li-snip { margin: 3px 0 0; }
.li-res-cat > b { color: var(--blue); }
.li-res-more { margin: 10px 6px 0; color: var(--muted); font-size: 12px; }

/* 화면을 옮긴 뒤 제목으로 옮긴 초점은 테두리 없이 */
.li-view h1[tabindex="-1"]:focus { outline: none; }

/* ---------------------------------------------------------------- 휴대폰: 목차 버튼은 화면에 고정, 색인은 화면을 덮는 서랍 */
@media (max-width: 900px) {
  /* 닫혀 있을 때는 오른쪽 아래에 떠 있어 본문 첫 줄을 가리지 않는다 */
  .li-toggle { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; padding: 10px 16px; box-shadow: 0 4px 14px rgba(18, 50, 80, .22); }
  .li-body.li-side-open { overflow: hidden; }
  .li-body.li-side-open .li-side {
    position: fixed; top: 44px; left: 0; right: 0; bottom: 0; z-index: 40;
    overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 60px 12px 28px; border: 0; border-radius: 0; background: var(--page-bg);
  }
  .li-body.li-side-open .li-tree, .li-body.li-side-open .li-results { max-height: none; overflow: visible; }
  .li-body.li-side-open .li-toggle { position: fixed; top: 56px; left: 16px; right: auto; bottom: auto; }
  .li-body.li-side-open .li-toggle::before { content: '✕'; }
}

/* ---------------------------------------------------------------- 사고 사례 모음: 찾기 칸과 표 */
.case-finder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.case-finder[hidden] { display: none; }
.case-finder input,
.case-finder select,
.case-finder button {
  padding: 7px 10px;
  border: 1px solid #d3dbe4;
  border-radius: 8px;
  background: var(--surface);
  color: var(--value);
  font: inherit;
  font-size: 14px;
}
.case-finder input { flex: 1 1 260px; min-width: 0; }
.case-finder button { cursor: pointer; }
.case-finder :focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.case-count { margin-left: auto; color: var(--navy); font-weight: 700; white-space: nowrap; }
.case-table small { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .case-finder select { flex: 1 1 calc(50% - 4px); min-width: 0; }
}
.case-table .case-meta { display: none; }
@media (max-width: 640px) {
  /* 휴대폰: 분야·연도·구분 칸을 숨기고 사례 이름 아래 한 줄로 보여 준다(표를 옆으로 밀지 않게) */
  .library-view .lib-article .case-table th:not(:first-child),
  .library-view .lib-article .case-table td:not(:first-child) { display: none; }
  .library-view .lib-article .case-table td { min-width: 0; }
  .case-table .case-meta { display: block; margin-top: 4px; color: var(--blue); font-size: 12.5px; }
}

/* 문서마다 '이 분야 사고 사례 보기'(tools/prerender.py가 핵심 요약 뒤나 개요 카드 아래에 넣는다) */
.lib-case-link { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.lib-case-link a {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid #c9d9ea;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.lib-case-link a:hover { background: #dcebf7; }
.lib-case-link a + a { background: var(--surface); color: var(--text); font-weight: 600; }

/* 문서 끝 이전·다음(tools/prerender.py가 색인 순서로 단다) */
.li-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 6px; }
.li-pager a {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--value); text-decoration: none;
}
.li-pager a:hover { border-color: var(--blue); }
.li-pager .li-next { text-align: right; }
.li-pager small { color: var(--muted); font-size: 12px; }
.li-pager b { font-size: 14.5px; line-height: 1.45; }
@media (max-width: 640px) {
  .li-pager { grid-template-columns: 1fr; }
  .li-pager span { display: none; }
}
