/* ===== 专题页 =====
 * bin/seo.mjs 生成的静态页专用（紫微主星宫位四化、八字十神长生神煞、干支历法逐年）：纯文字，无交互。
 * 版式承六十四卦逐卦页（左文右目录）；三站同用，故归共用层；卦页早于此，仍用 zhouyi/gua.css。 */

.tp-crumb{ margin: .9rem 0 0; font-size: var(--t-micro); letter-spacing: var(--ls-note); color: var(--ink-3); }
.tp-crumb a{ color: var(--ink-3); text-decoration: none; }
.tp-crumb a:hover{ color: var(--zhu); }

.tp{
  display: grid; grid-template-columns: minmax(0, 46rem) minmax(11rem, 14rem);
  gap: 3rem; align-items: start;
  padding: 1.6rem 0 2rem;
  line-height: 1.95;
}
.tp h2{
  margin: 2rem 0 .6rem; padding-bottom: .45rem;
  font-size: var(--t-body); font-weight: 400; letter-spacing: var(--ls-note);
  border-bottom: 1px solid var(--hair-2);
}
.tp p{ margin: 0 0 .6rem; }
.tp a{ color: var(--ink); text-decoration-color: var(--hair-2); text-underline-offset: .2em; }
.tp a:hover{ color: var(--zhu); }
.tp-lead{ font-size: 1.05rem; }

.tp-dl{ display: flex; flex-wrap: wrap; gap: .3rem 2.2rem; margin: 0; }
.tp-dl div{ display: flex; gap: .7rem; }
.tp-dl dt{ flex-shrink: 0; color: var(--ink-3); font-size: var(--t-label); }
.tp-dl dd{ margin: 0; }

/* 宽表在窄屏里自己横滑，页面不跟着横滚 */
.tp-scroll{ overflow-x: auto; margin: .4rem 0 1rem; }
.tp-table{ width: 100%; border-collapse: collapse; font-size: var(--t-label); line-height: 1.6; }
.tp-table th, .tp-table td{ padding: .45rem .6rem; border-bottom: 1px solid var(--hair-2); text-align: left; font-weight: 400; }
.tp-table thead th{ color: var(--ink-3); }
.tp-table tbody th{ white-space: nowrap; }
.tp-table--bright th, .tp-table--bright td{ text-align: center; padding: .4rem .35rem; }
.tp-table--bright th{ color: var(--ink-3); white-space: nowrap; }

.tp-side{ position: sticky; top: 1.5rem; font-size: var(--t-label); border-left: 1px solid var(--hair-2); padding-left: 1.2rem; }
.tp-side h2{ margin: 0 0 .5rem; padding: 0; border: 0; font-size: var(--t-label); color: var(--ink-3); }
.tp-side h2 ~ h2{ margin-top: 1.2rem; }
.tp-side ol{ display: grid; grid-template-columns: 1fr; gap: .1rem .8rem; margin: 0; padding: 0; list-style: none; }
.tp-side ol.tp-cols2{ grid-template-columns: 1fr 1fr; }
.tp-side ol.tp-cols3{ grid-template-columns: repeat(3, 1fr); }
.tp-side a{ text-decoration: none; }
.tp-side [aria-current]{ color: var(--zhu); }
.tp-side__app{ margin-top: 1rem !important; }
.tp-side__app a{ color: var(--zhu); }

.tp-foot{ margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hair-2); font-size: var(--t-micro); color: var(--ink-3); letter-spacing: var(--ls-note); }

@media (max-width: 760px){
  .tp{ grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .tp-side{ position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--hair-2); padding-top: 1rem; }
  .tp-side ol, .tp-side ol.tp-cols2, .tp-side ol.tp-cols3{ grid-template-columns: repeat(4, 1fr); }
}

/* 表中当前项（本页所讲之星、之干、之年）朱书 */
.tp-table .is-on{ color: var(--zhu); }
.tp-note{ color: var(--ink-3); font-size: var(--t-label); }
.tp-ul{ margin: 0 0 .6rem; padding-left: 1.2rem; }
.tp-order{ display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin: 0 0 .6rem; padding: 0; list-style: none; counter-reset: tp; }
.tp-order li{ counter-increment: tp; }
.tp-order li::before{ content: counter(tp) ' '; color: var(--ink-3); font-size: var(--t-micro); }
.tp-order .is-on{ color: var(--zhu); }
.tp h3{ margin: 1.2rem 0 .3rem; font-size: var(--t-label); font-weight: 400; color: var(--ink-3); }
.tp-dl--rows{ display: block; }
.tp-dl--rows div{ padding: .15rem 0; }
.tp-dl--rows dt{ flex: 0 0 2.6rem; }
