/* library.css */

/* 演奏会予定を横並びにするグリッド */
.concert-grid {
  display: grid;
  grid-template-columns: 1fr; /* スマホ：1列 */
  gap: 12px;
}

@media (min-width: 768px) {
  .concert-grid {
    grid-template-columns: repeat(3, 1fr); /* PC・タブレット：3列 */
  }
}

.concert-block {
  padding: 12px 14px;
  background: #fffbeb;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  min-width: 0; /* 長いタイトル・詳細でグリッド幅が広がるのを防ぐ(以前の home-card と同じ理由) */
}

.concert-date {
  font-size: 0.8rem;
  font-weight: bold;
  color: #92400e;
}

.concert-title {
  font-size: 1rem;
  font-weight: bold;
  color: #1e293b;
  margin-top: 2px;
}

.concert-detail {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 6px;
  line-height: 1.6;
}

/* 資料庫：見出しの標準余白を消して、他画面と行間をそろえる */
#view-library .card-header-title h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #1e293b;
}

/* 資料庫：フォルダ（入れ子）表示 */
.library-folder-summary {
  list-style: none;            /* 標準の三角を消す */
}
.library-folder-summary::-webkit-details-marker {
  display: none;               /* Safari対策 */
}
.library-folder-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.library-folder[open] > .library-folder-summary .library-folder-arrow {
  transform: rotate(90deg);    /* 開いたら ▼ 向きに */
}
.library-sub-links {
  margin: 8px 0 0 12px;
  padding-left: 12px;
  border-left: 2px solid #e2e8f0;  /* 階層が分かるガイド線 */
}

.library-link-item {
  text-align: left;
  text-wrap: pretty;
}

.library-link-button {
  text-align: left;
  text-wrap: pretty;
}

.library-link-item > span:first-child {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.library-arrow {
  flex-shrink: 0;
  margin-left: 8px;
}

