/* 看號碼／合盤／比號碼（2026-11-19；第二輪 2026-11-20）：號碼上的你、號碼命書、你可以怎麼做。
   Colours come from style.css tokens only; text sizes follow owner B8 (body ≥17px on phones, ≥18px on desktop, small ≥15px). */

/* 號碼上的你：one line each, read like a letter */
.rd-lines { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rd-lines li { font-size: 1.1875rem; line-height: 1.85; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); letter-spacing: .03em; }
.rd-lines li:first-child { border-top: 0; padding-top: 2px; }
.rd-lines li.rd-pain { color: #f3d7cf; }
.rd-lines li.rd-end { color: var(--accent); }
/* round 2: the line, then one faint 「為什麼」 line (owner R2); still ≥15px and AA contrast (B8) */
.rd-lines .rd-text { display: block; }
.rd-lines .rd-why { display: block; margin-top: 4px; font-size: 0.9375rem; line-height: 1.7; color: var(--muted); font-weight: 400; letter-spacing: .02em; }
.rd-lines li.rd-yin .rd-text { font-weight: 300; text-decoration: underline dashed var(--muted); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.rd-sum { margin: 0 0 8px; font-size: 1.0625rem; color: var(--muted); letter-spacing: .05em; }

/* 你最在意的那件事 */
.rd-focus p { font-size: 1.125rem; line-height: 1.85; margin: 0 0 12px; }
.rd-focus p:last-child { margin-bottom: 0; }

/* 化解之道 */
.rd-remedy .rd-way { margin: 6px 0 10px; font-size: 1.125rem; letter-spacing: .3em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.rd-remedy .rd-way ~ .rd-way { margin-top: 22px; }
.rd-road { margin: 0 0 16px; }
.rd-road h5 { margin: 0 0 8px; font-size: 1.125rem; color: var(--accent); letter-spacing: .08em; font-weight: 700; }
.rd-road p, .rd-list li { font-size: 1.0625rem; line-height: 1.8; }
.rd-list { margin: 0; padding: 0; list-style: none; }
.rd-list li { padding: 8px 0; border-top: 1px dashed var(--line); }
.rd-list li:first-child { border-top: 0; }
.rd-star { color: var(--accent); margin-right: 6px; }
.rd-list small, .rd-bad small { color: var(--muted); font-size: 0.9375rem; margin-right: 8px; }
.rd-bad { padding: 10px 0; border-top: 1px dashed var(--line); }
.rd-bad:first-of-type { border-top: 0; }
.rd-bad p { margin: 4px 0; }
.rd-tag { display: inline-block; font-size: 0.9375rem; color: var(--seal); border: 1px solid var(--seal); padding: 0 6px; margin-right: 8px; border-radius: 2px; }
.rd-tag.alt { color: var(--muted); border-color: var(--line); }
.rd-tail-btn { margin: 6px 0 10px; letter-spacing: .2em; text-indent: .2em; }
.rd-tail-btn:disabled { opacity: .6; cursor: progress; }
.rd-tail-out { font-size: 1.0625rem; line-height: 1.8; }
.rd-tail-out:empty { display: none; }
.rd-tail-table { font-size: 1rem; }
.rd-tail-table th[scope="row"] { white-space: nowrap; color: var(--muted); font-weight: 600; }
.rd-tail-table td { white-space: nowrap; }
.rd-tail-table td small { color: var(--good); font-size: 0.9375rem; }
.rd-tail-table td small.neg { color: var(--bad); }
.rd-tail-table tr.now td, .rd-tail-table tr.now th { color: var(--muted); }
.rd-pre { color: var(--muted); }
.rd-remedy a { color: var(--accent); }

/* 完整命書：chapters named by the question */
.rd-chapters { display: grid; grid-template-columns: minmax(0, 1fr); }
.rd-ch, .rd-ct, .rd-cb { min-width: 0; }
.rd-cb { overflow-wrap: anywhere; }
.rd-cb .life-steps { flex-wrap: wrap; }
.rd-ch { border-top: 1px solid var(--line); }
.rd-ch:first-child { border-top: 0; }
.rd-ch > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: start; padding: 16px 2px; }
.rd-ch > summary::-webkit-details-marker { display: none; }
.rd-ch > summary::after { content: '＋'; color: var(--accent); font-size: 1.125rem; }
.rd-ch[open] > summary::after { content: '－'; }
.rd-ch > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-no { color: var(--seal); font-family: var(--num-font); font-size: 1.25rem; min-width: 1.4em; text-align: right; }
.rd-ct { display: grid; gap: 4px; }
.rd-ct b { font-size: 1.1875rem; letter-spacing: .1em; color: var(--text); }
.rd-ct small { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.rd-cb { padding: 0 0 16px; font-size: 1.0625rem; line-height: 1.8; min-width: 0; }
.rd-cb .card { margin: 12px 0 0; }
.rd-cb .causal ol { padding-left: 0; }
/* 查因果 inside a 命書 chapter (final17 book, folded): one more layer, closed unless it is the aspect the person cares
   most about; 檯面下 (陰八星) is one layer deeper still */
.bk-aspect, .bk-yin { margin: 14px 0 0; border-top: 1px dashed var(--line); padding-top: 8px; }
.bk-aspect > summary, .bk-yin > summary { cursor: pointer; color: var(--accent); letter-spacing: .06em; padding: 6px 0; }
.bk-aspect > summary small { display: block; color: var(--muted); letter-spacing: 0; font-size: 0.9375rem; }
.bk-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.bk-steps li { padding-left: 12px; border-left: 2px solid var(--line); }
.bk-steps li.bad { border-left-color: var(--seal-deep); }
.bk-steps li.good { border-left-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.bk-steps .rd-why { display: block; margin-top: 2px; }

/* 比號碼：一句話 */
.rd-rank-line { min-width: 10em; font-size: 1rem; color: var(--text); }


@media (min-width: 768px) {
  .rd-lines li { font-size: 1.25rem; }
  .rd-focus p, .rd-road p, .rd-list li, .rd-cb { font-size: 1.125rem; }
}
@media (max-width: 480px) {
  .rd-tail-table { font-size: 0.9375rem; }
  .rd-tail-table th, .rd-tail-table td { padding-left: 4px; padding-right: 4px; }
  .rd-tail-table th[scope="row"] { white-space: normal; width: 4.5em; }
}

/* 375px：「運勢 1」不拆兩行 */
.rd-tail-table th, .rd-tail-table td:first-child { white-space: nowrap; word-break: keep-all; }
.rd-tail-table th[scope="row"] { white-space: nowrap !important; word-break: keep-all !important; min-width: 3.6em; }
@media (max-width: 420px) { .rd-tail-table td { white-space: normal; } .rd-tail-table td small { display: block; } .rd-tail-table td:first-of-type { white-space: nowrap; } }

/* ---------- final10：命盤頭、三才拆解、速讀、兩層節、會員卡 ---------- */
.rd-sumrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -8px 0 0; }
.summary .rd-sum { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--text); letter-spacing: .04em; line-height: 1.5; }
.ng-how { flex: none; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 2px; border: 0; background: none; font: inherit;
  font-size: 0.9375rem; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; }
.ng-how[aria-expanded="true"] { color: var(--accent); }
.summary .ng { margin-bottom: 6px; }
.ng-head { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.ng-head .verdict.band { padding: 8px 12px; margin-top: 4px; }
.v-body { display: grid; gap: 2px; min-width: 0; }
.v-t { display: flex; align-items: center; gap: 6px; font-size: 1.125rem; white-space: nowrap; }
.v-chip { width: 1.75em; height: 1.75em; font-size: 0.9375rem; padding: 0; border: 1px solid currentColor; border-radius: 3px; }
.verdict.good .v-chip { color: var(--good); } .verdict.bad .v-chip { color: var(--bad); } .verdict.neutral .v-chip { color: var(--muted); }
.v-line { font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.ng-head .gauges { margin: 6px 0 0; }
.gauge figcaption b.score small { font-size: 0.9375rem; font-weight: 400; color: var(--muted); margin-left: 2px; }
.sc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; margin: 4px 0 0; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: inherit; font-size: 1.0625rem; text-align: left; cursor: pointer; }
.sc-toggle i { font-style: normal; color: var(--accent); transition: transform .2s; }
.sc-toggle[aria-expanded="true"] i { transform: rotate(90deg); }
.sancai { margin-top: 10px; }
.sc-gua { display: grid; gap: 10px; margin: 4px 0 12px; }
.sc-row { display: grid; grid-template-columns: 3.2em 1fr 2em; align-items: center; gap: 10px; margin: 0; font-size: 1.0625rem; }
.sc-yao { position: relative; height: 13px; border-radius: 2px; background: rgba(211, 180, 120, .10); overflow: hidden; }
.sc-yao i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; }
.sc-good .sc-yao i { background: var(--good); } .sc-good .sc-w { color: var(--good); }
.sc-faint .sc-yao i { background: var(--muted); opacity: .55; } .sc-faint .sc-w { color: var(--muted); }
.sc-bad .sc-yao i { background: transparent; border: 1px dashed var(--bad); } .sc-bad .sc-w { color: var(--bad); }
.rd-go { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding-left: 6px; white-space: nowrap; font-size: 1rem; font-weight: 400; color: var(--accent); text-decoration: none; letter-spacing: .06em; }
.rd-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-quick { margin-bottom: 14px !important; }
.cl-q { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cl-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-deep { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 4px; }
.cl-deep > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent); font-size: 1rem; list-style: none; }
.cl-deep > summary::-webkit-details-marker { display: none; }
.cl-deep > summary::before { content: "＋"; margin-right: 6px; }
.cl-deep[open] > summary::before { content: "－"; }
.cl-deep .rd-why { display: block; margin: 6px 0; }
.dp-more { min-height: 44px; margin: 6px 0 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 1rem; cursor: pointer; }
.dp-more[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.rd-member p { font-size: 1.0625rem; line-height: 1.8; }
.rd-member .rd-free { color: var(--accent); }
.rd-member .rd-open-adv { margin: 4px 0 10px; }
