/* BBOLab publications（news.css の上に重ねる） */
:root {
  --journal: #5b2a86;
  --conference: #3d5a99;
  --domestic: #1f6f78;
  --other: #6b6774;
  --award-c: #a05a00;
  --rank: #8a5a00;
  --rank-bg: #fff6e6;
}
.type {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 3px;
  color: #fff; white-space: nowrap; line-height: 18px;
}
.type-journal { background: var(--journal); }
.type-conference { background: var(--conference); }
.type-domestic { background: var(--domestic); }
.type-other { background: var(--other); }
.type-award { background: var(--award-c); }
.kind {
  display: inline-block; font-size: 11px; padding: 0 6px; border: 1px solid var(--line);
  color: var(--muted); border-radius: 3px; white-space: nowrap; line-height: 18px;
}
.kind-accepted { border-color: var(--accent); color: var(--accent); }
.rank {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 3px;
  white-space: nowrap; line-height: 18px; color: var(--rank); background: var(--rank-bg);
  border: 1px solid #f0d9ad; font-variant-numeric: tabular-nums;
}

/* ---------- 一覧ページ ---------- */
.pubs .summary { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0 0; }
.pubs .summary div { display: flex; align-items: baseline; gap: 6px; }
.pubs .summary dt { font-size: 13px; color: var(--muted); }
.pubs .summary dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pubs .controls { position: sticky; top: 0; background: #fff; z-index: 1; padding: 4px 0 10px; border-bottom: 1px solid var(--line); }
.pubs .filters { margin: 14px 0 10px; }
.pubs .row2 { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 13px; }
.pubs .search { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.pubs .search input {
  font: inherit; font-size: 14px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
  width: 240px; max-width: 60vw; color: var(--ink);
}
.pubs .search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.pubs .check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pubs .count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.pubs-list { list-style: none; margin: 0; padding: 0; }
.pubs-list li { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.pubs-list li:target { background: var(--accent-soft); box-shadow: -12px 0 0 var(--accent-soft), 12px 0 0 var(--accent-soft); }
.pubs-list .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.pubs-list .ttl { font-size: 16px; font-weight: 600; line-height: 1.5; }
.pubs-list .au { font-size: 14px; color: #3a3742; margin-top: 2px; }
.pubs-list .au strong { font-weight: 600; color: var(--ink); }
.pubs-list .bib { font-size: 14px; color: var(--muted); margin-top: 1px; }
.pubs-list .vn { font-style: italic; }
.pubs-list .links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin-top: 4px; }
.pubs-list .links a { text-decoration: none; }
.pubs-list .links a:hover { text-decoration: underline; }
.pubs-list .links a::after { content: " ↗"; font-size: 11px; }
.pubs .note { line-height: 1.6; margin: 0 0 10px; }
@media (max-width: 520px) {
  .pubs .controls { position: static; }
  .pubs .search input { width: 100%; max-width: none; }
  .pubs .search { width: 100%; }
  .pubs .count { margin-left: 0; }
  .pubs-list .ttl { font-size: 15px; }
}

/* ---------- 埋め込み ---------- */
.pubs-embed .stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 2px 0 6px; }
.pubs-embed .stat {
  font: inherit; text-align: left; cursor: pointer; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px 6px; min-width: 0; border-top: 3px solid var(--c, var(--accent));
  display: flex; flex-direction: column; gap: 0;
}
.pubs-embed .stat-conference { --c: var(--conference); }
.pubs-embed .stat-journal { --c: var(--journal); }
.pubs-embed .stat-award { --c: var(--award-c); }
.pubs-embed .stat-other { --c: var(--other); }
.pubs-embed .stat-domestic { --c: var(--domestic); }
.pubs-embed .stat-domestic { --c: var(--domestic); }
.pubs-embed .stat .n { font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--c); }
.pubs-embed .stat .l { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pubs-embed .stat[aria-selected="true"] { background: var(--accent-soft); border-color: var(--c); border-top-width: 3px; }
.pubs-embed .stat:hover { background: var(--accent-soft); }
.pubs-embed .stat:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pubs-embed .embed-list a.row { grid-template-columns: 44px 1fr; padding: 6px 4px; gap: 0 12px; }
.pubs-embed .panel-note { margin: 0 4px 2px; font-size: 11px; color: var(--muted); }
.pubs-embed .title { font-size: 14px; }
.pubs-embed .tags { gap: 5px; }
.pubs-embed .title { -webkit-line-clamp: 1; }
.pubs-embed .meta2 { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 1px; }
.pubs-embed .meta2 .rank, .pubs-embed .meta2 .kind { font-size: 10px; line-height: 16px; padding: 0 5px; flex: none; }
.pubs-embed .vn-short {
  display: block; flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 520px) {
  .pubs-embed .stat { padding: 6px 8px 5px; }
  .pubs-embed .stat .l { white-space: normal; line-height: 1.3; }
  .pubs-embed .stat .l { font-size: 11px; }
  /* news.css のスマホ用の件数制限を，業績の埋め込みでは 440px 以下だけにする */
  .pubs-embed .embed-list li:nth-child(n+6) { display: list-item; }
  .pubs-embed .embed-list a.row { grid-template-columns: 44px 1fr; padding: 6px 2px; }
}
@media (max-width: 440px) {
  .pubs-embed .stats { grid-template-columns: repeat(3, 1fr); }
  .pubs-embed .stat .n { font-size: 22px; }
  .pubs-embed .embed-list a.row { grid-template-columns: 1fr; }
  .pubs-embed .embed-list li:nth-child(n+6) { display: none; }
  .pubs-embed .title { -webkit-line-clamp: 2; }
}
