/* 术语表（/glossary/）和时间线（/timeline/）专用样式。颜色只用 site.css 的 CSS 变量。 */

/* ---------- 术语页 ---------- */
.glossary-term h1, .glossary-index h1, .timeline-page h1 { overflow-wrap: anywhere; }
.term-aka { font-weight: 400; font-size: .62em; opacity: .75; white-space: normal; }
.term-definition {
  margin: 1.25rem 0 1.5rem;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
}
.term-def-label { margin: 0 0 .25rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.term-short { margin: 0; font-size: 1.08rem; line-height: 1.55; overflow-wrap: anywhere; }
.term-short dfn { font-style: normal; }
.glossary-term .prose { overflow-wrap: break-word; }
.term-related, .term-see-also { margin-top: 2rem; }
.term-chips { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.term-chips a {
  display: inline-block;
  padding: .3rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.term-chips a:hover, .term-chips a:focus-visible { border-color: var(--accent); }
.term-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: center;
  margin: 2.5rem 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.term-pager a { text-decoration: none; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.term-pager .term-next { text-align: right; align-items: flex-end; }
.term-pager .term-all { font-size: .9rem; text-align: center; }
@media (max-width: 560px) {
  .term-pager { grid-template-columns: 1fr 1fr; }
  .term-pager .term-all { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- 术语表首页 ---------- */
.glossary-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1rem 0; }
.glossary-tools input[type="search"] {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 100%;
  padding: .6rem .8rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: inherit;
}
.glossary-count { margin: 0; }
.glossary-letters { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.5rem; }
.glossary-letters a {
  min-width: 2.1rem;
  padding: .25rem .4rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.glossary-letters a.is-empty { opacity: .3; pointer-events: none; }
.glossary-group { margin: 0 0 2rem; scroll-margin-top: 1rem; }
.glossary-group h2 { border-bottom: 1px solid var(--border); padding-bottom: .25rem; }
.glossary-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .25rem 2rem; }
.glossary-item { padding: .6rem 0; min-width: 0; }
.glossary-item dt { font-weight: 600; overflow-wrap: anywhere; }
.glossary-item dt .muted { font-weight: 400; font-size: .88em; }
.glossary-item dd { margin: .2rem 0 0; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.glossary-item[hidden], .glossary-group[hidden] { display: none; }

/* ---------- 时间线 ---------- */
.tl-next {
  margin: 1.25rem 0;
  padding: .9rem 1.1rem;
  border: 1px solid var(--info);
  border-left-width: 4px;
  border-radius: 8px;
}
.tl-next .eyebrow { margin: 0 0 .2rem; }
.tl-next-title { margin: 0 0 .2rem; font-weight: 600; font-size: 1.05rem; }
.tl-table { margin: 1.5rem 0; }
.tl-table table { width: 100%; }
.tl-table td, .tl-table th { white-space: normal; vertical-align: top; }
.tl-table td:first-child { white-space: nowrap; }
@media (max-width: 480px) {
  .tl-table td, .tl-table th { padding-left: .35rem; padding-right: .35rem; font-size: .88rem; }
  .tl-table td:first-child { white-space: normal; }
}
.tl-table-note { font-size: .88rem; }
.tl { list-style: none; margin: 1rem 0 2rem; padding: 0 0 0 1.4rem; border-left: 2px solid var(--border); }
.tl-item { position: relative; margin: 0 0 1.4rem; scroll-margin-top: 1rem; }
.tl-dot {
  position: absolute;
  left: calc(-1.4rem - 7px);
  top: .35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
}
.tl-upcoming .tl-dot { background: transparent; border-color: var(--info); }
.tl-card { min-width: 0; overflow-wrap: anywhere; }
.tl-date { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .2rem; font-size: .9rem; font-weight: 600; }
.tl-tag { font-size: .78rem; font-weight: 500; padding: .05rem .45rem; border: 1px solid var(--border); border-radius: 999px; }
.tl-title { margin: 0 0 .3rem; font-size: 1.05rem; line-height: 1.4; }
.tl-title a { text-decoration: none; }
.tl-text p { margin: 0 0 .4rem; }
.tl-who, .tl-source { margin: .25rem 0 0; font-size: .9rem; }
.tl-upcoming .tl-title::after { content: ""; }
.tl-compact { list-style: none; padding: 0; margin: .5rem 0 2rem; }
.tl-compact li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; padding: .45rem 0; border-bottom: 1px solid var(--border); min-width: 0; }
.tl-compact time { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.tl-compact a { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.tl-cards { margin: 1.5rem 0 2rem; }
.tl-card-title { font-size: 1.1rem; margin: 0 0 .35rem; }
.tl-card-next { font-size: .88rem; margin: .5rem 0 0; }
.tl-table .badge { white-space: nowrap; }
