/* ACM Browse — 사이트 전역 색·글꼴 변수를 그대로 쓴다(디자인 변경 없음). */
.acmb { --acmb-green: var(--e-global-color-cd6eece, #78BB59); --acmb-gray: var(--e-global-color-accent, #B1B1B1); --acmb-line: #d9d9d9; }
.acmb p { margin: 0; }
.acmb-note { margin: 0 0 1rem !important; font-size: .9em; color: #666; }
.acmb-empty { padding: 1.5rem 0; }
.acmb-heading { margin: 1.5rem 0 .5rem; }
.acmb-heading span { font-weight: 400; color: #666; font-size: .8em; }

/* 논문 항목: 호별 목차 페이지와 같은 순서(유형 → 제목 → 저자 → 서지) */
.acmb-item { display: flex; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px dotted var(--acmb-gray); }
.acmb-body { flex: 1; min-width: 0; }
.acmb-type { font-family: var(--e-global-typography-primary-font-family, "Roboto"), sans-serif; font-weight: 600; color: var(--acmb-gray); }
.acmb-title { margin: .2rem 0 .35rem; font-size: 1.25rem; line-height: 1.35; }
.acmb-title a { color: #000; }
.acmb-title a:hover { color: var(--acmb-green); }
.acmb-authors, .acmb-cite { font-size: .95em; }
.acmb-cite { color: #555; }
.acmb-count { flex: 0 0 5.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: flex-start; padding: .5rem 0; border: 1px solid var(--acmb-line); font-family: var(--e-global-typography-primary-font-family, "Roboto"), sans-serif; }
.acmb-count strong { font-size: 1.6rem; line-height: 1.1; color: var(--acmb-green); }
.acmb-count span { font-size: .75rem; color: #666; }

/* 유형 목록 */
.acmb-types { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2rem; }
.acmb-types a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--acmb-line); color: #000; }
.acmb-types a:hover, .acmb-types .current a { color: var(--acmb-green); }
.acmb-types .current a { font-weight: 700; }
.acmb .n { color: #666; font-variant-numeric: tabular-nums; }

/* 저자 색인 */
.acmb-letters { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.25rem; font-family: var(--e-global-typography-primary-font-family, "Roboto"), sans-serif; font-weight: 600; }
.acmb-letters a, .acmb-letters span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; border: 1px solid var(--acmb-line); color: #000; }
.acmb-letters a:hover { border-color: var(--acmb-green); color: var(--acmb-green); }
.acmb-letters .current { background: var(--acmb-green); border-color: var(--acmb-green); color: #fff; }
.acmb-letters .off { color: #ccc; }
.acmb-authors-list { list-style: none; margin: 0 0 1rem; padding: 0; columns: 3 14rem; column-gap: 2rem; }
.acmb-authors-list li { padding: .2rem 0; break-inside: avoid; }
.acmb-back { margin-bottom: .5rem !important; }

/* 쪽 번호 */
.acmb-pager { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1.5rem 0 0; }
.acmb-pager a, .acmb-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .4rem; border: 1px solid var(--acmb-line); color: #000; }
.acmb-pager .current { background: var(--acmb-gray); border-color: var(--acmb-gray); color: #fff; }

/* Metrics */
.acmb-tiles { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; }
.acmb-tiles li { padding: 1rem; border: 1px solid var(--acmb-line); text-align: center; }
.acmb-tiles strong { display: block; font-family: var(--e-global-typography-primary-font-family, "Roboto"), sans-serif; font-size: 1.6rem; line-height: 1.2; color: var(--acmb-green); }
.acmb-tiles span { font-size: .85rem; color: #555; }
.acmb-chart { margin: 0 0 1.5rem; }
.acmb-cols { display: flex; align-items: flex-end; gap: 3px; height: 14rem; padding-top: 1.25rem; border-bottom: 1px solid #999; }
.acmb-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.acmb-col .bar { width: 100%; background: var(--acmb-green); min-height: 1px; }
.acmb-col .v { font-size: .68rem; line-height: 1.3; color: #555; }
.acmb-col .l { position: absolute; bottom: -1.3rem; font-size: .68rem; color: #555; }
.acmb-axis { margin-top: 1.5rem !important; font-size: .8rem; color: #666; text-align: right; }
.acmb-bars { margin: 0; }
.acmb-bars > div { display: grid; grid-template-columns: 12rem 1fr; gap: .75rem; align-items: center; padding: .25rem 0; }
.acmb-bars dt { font-weight: 400; font-size: .95em; }
.acmb-bars dd { margin: 0; display: flex; align-items: center; gap: .5rem; }
.acmb-bars .bar { height: 1rem; background: var(--acmb-green); }
.acmb-bars .v { font-size: .8rem; color: #555; }

@media (max-width: 767px) {
  .acmb-count { flex-basis: 4.25rem; }
  .acmb-col .v { display: none; }
  .acmb-col .l { font-size: .55rem; }
  .acmb-bars > div { grid-template-columns: 8.5rem 1fr; }
}
